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/3305.86da9247.async.js

310 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 hv=Object.getOwnPropertySymbols;var I1=Object.prototype.hasOwnProperty,O1=Object.prototype.propertyIsEnumerable;var o0=Math.pow,R1=(Oe,J,S)=>J in Oe?mS(Oe,J,{enumerable:!0,configurable:!0,writable:!0,value:S}):Oe[J]=S,Ii=(Oe,J)=>{for(var S in J||(J={}))I1.call(J,S)&&R1(Oe,S,J[S]);if(hv)for(var S of hv(J))O1.call(J,S)&&R1(Oe,S,J[S]);return Oe},Th=(Oe,J)=>vS(Oe,yS(J));var s0=(Oe,J)=>{var S={};for(var B in Oe)I1.call(Oe,B)&&J.indexOf(B)<0&&(S[B]=Oe[B]);if(Oe!=null&&hv)for(var B of hv(Oe))J.indexOf(B)<0&&O1.call(Oe,B)&&(S[B]=Oe[B]);return S};var a0=(Oe,J,S)=>new Promise((B,Y)=>{var s=u=>{try{_(S.next(u))}catch(p){Y(p)}},w=u=>{try{_(S.throw(u))}catch(p){Y(p)}},_=u=>u.done?B(u.value):Promise.resolve(u.value).then(s,w);_((S=S.apply(Oe,J)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3305],{38470:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return Re}});var B=S(98506),Y=S(67711),s=S(26420),w=S(16886),_=S(33346),u=S(59301),p=S(43403),y=S(65030),m=S(92310),b=S.n(m),v=S(34280),c=S(18929);function h(ke){return ke!==null&&(0,s.Z)(ke)==="object"}function g(ke,Ne,De){if(ke===!1||Ne===!1&&(!h(ke)||!ke.closeIcon))return null;var Me=typeof Ne!="boolean"?Ne:void 0;if(h(ke)){var We;return(0,B.Z)((0,B.Z)({},ke),{},{closeIcon:(We=ke.closeIcon)!==null&&We!==void 0?We:Me})}return De||ke||Ne?{closeIcon:Me}:"empty"}function x(ke,Ne,De,Me){return u.useMemo(function(){var We=g(ke,Ne,!1),je=g(De,Me,!0);return We!=="empty"?We:je},[De,Me,ke,Ne])}var T=S(6089);function I(ke){var Ne=window.innerWidth||document.documentElement.clientWidth,De=window.innerHeight||document.documentElement.clientHeight,Me=ke.getBoundingClientRect(),We=Me.top,je=Me.right,et=Me.bottom,it=Me.left;return We>=0&&it>=0&&je<=Ne&&et<=De}function R(ke,Ne,De){var Me;return(Me=De!=null?De:Ne)!==null&&Me!==void 0?Me:ke===null?"center":"bottom"}function N(ke){return typeof ke=="number"&&!Number.isNaN(ke)}function k(ke,Ne,De,Me){var We=(0,u.useState)(void 0),je=(0,w.Z)(We,2),et=je[0],it=je[1];(0,v.Z)(function(){var re=typeof ke=="function"?ke():ke;it(re||null)});var ze=(0,u.useState)(null),xe=(0,w.Z)(ze,2),fe=xe[0],W=xe[1],Z=(0,T.Z)(function(){if(et){!I(et)&&Ne&&et.scrollIntoView(Me);var re=et.getBoundingClientRect(),ie=re.left,de=re.top,Ae=re.width,Be=re.height,He={left:ie,top:de,width:Ae,height:Be,radius:0};W(function(st){return JSON.stringify(st)!==JSON.stringify(He)?He:st})}else W(null)}),me=function(ie){var de;return(de=Array.isArray(De==null?void 0:De.offset)?De==null?void 0:De.offset[ie]:De==null?void 0:De.offset)!==null&&de!==void 0?de:6};(0,v.Z)(function(){return Z(),window.addEventListener("resize",Z),function(){window.removeEventListener("resize",Z)}},[et,Ne,Z]);var Ce=(0,u.useMemo)(function(){if(!fe)return fe;var re=me(0),ie=me(1),de=N(De==null?void 0:De.radius)?De==null?void 0:De.radius:2;return{left:fe.left-re,top:fe.top-ie,width:fe.width+re*2,height:fe.height+ie*2,radius:de}},[fe,De]);return[Ce,et]}var L=S(80402),H={fill:"transparent",pointerEvents:"auto"},M=function(Ne){var De=Ne.prefixCls,Me=Ne.rootClassName,We=Ne.pos,je=Ne.showMask,et=Ne.style,it=et===void 0?{}:et,ze=Ne.fill,xe=ze===void 0?"rgba(0,0,0,0.5)":ze,fe=Ne.open,W=Ne.animated,Z=Ne.zIndex,me=Ne.disabledInteraction,Ce=(0,L.Z)(),re="".concat(De,"-mask-").concat(Ce),ie=(0,s.Z)(W)==="object"?W==null?void 0:W.placeholder:W,de=typeof navigator!="undefined"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ae=de?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return u.createElement(p.Z,{open:fe,autoLock:!0},u.createElement("div",{className:b()("".concat(De,"-mask"),Me),style:(0,B.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:Z,pointerEvents:We&&!me?"none":"auto"},it)},je?u.createElement("svg",{style:{width:"100%",height:"100%"}},u.createElement("defs",null,u.createElement("mask",{id:re},u.createElement("rect",(0,Y.Z)({x:"0",y:"0"},Ae,{fill:"white"})),We&&u.createElement("rect",{x:We.left,y:We.top,rx:We.radius,width:We.width,height:We.height,fill:"black",className:ie?"".concat(De,"-placeholder-animated"):""}))),u.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:xe,mask:"url(#".concat(re,")")}),We&&u.createElement(u.Fragment,null,u.createElement("rect",(0,Y.Z)({},H,{x:"0",y:"0",width:"100%",height:We.top})),u.createElement("rect",(0,Y.Z)({},H,{x:"0",y:"0",width:We.left,height:"100%"})),u.createElement("rect",(0,Y.Z)({},H,{x:"0",y:We.top+We.height,width:"100%",height:"calc(100vh - ".concat(We.top+We.height,"px)")})),u.createElement("rect",(0,Y.Z)({},H,{x:We.left+We.width,y:"0",width:"calc(100vw - ".concat(We.left+We.width,"px)"),height:"100%"})))):null))},F=M,P={adjustX:1,adjustY:1},U=[0,0],G={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 Q(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ne={};return Object.keys(G).forEach(function(De){Ne[De]=(0,B.Z)((0,B.Z)({},G[De]),{},{autoArrow:ke,targetOffset:U})}),Ne}var ee=Q(),ae=S(15142),oe=S(26112);function he(ke){var Ne,De=ke.prefixCls,Me=ke.current,We=ke.total,je=ke.title,et=ke.description,it=ke.onClose,ze=ke.onPrev,xe=ke.onNext,fe=ke.onFinish,W=ke.className,Z=ke.closable,me=(0,oe.Z)(Z||{},!0),Ce=(Ne=Z==null?void 0:Z.closeIcon)!==null&&Ne!==void 0?Ne:u.createElement("span",{className:"".concat(De,"-close-x")},"\xD7"),re=!!Z;return u.createElement("div",{className:b()("".concat(De,"-content"),W)},u.createElement("div",{className:"".concat(De,"-inner")},re&&u.createElement("button",(0,Y.Z)({type:"button",onClick:it,"aria-label":"Close"},me,{className:"".concat(De,"-close")}),Ce),u.createElement("div",{className:"".concat(De,"-header")},u.createElement("div",{className:"".concat(De,"-title")},je)),u.createElement("div",{className:"".concat(De,"-description")},et),u.createElement("div",{className:"".concat(De,"-footer")},u.createElement("div",{className:"".concat(De,"-sliders")},We>1?(0,ae.Z)(Array.from({length:We}).keys()).map(function(ie,de){return u.createElement("span",{key:ie,className:de===Me?"active":""})}):null),u.createElement("div",{className:"".concat(De,"-buttons")},Me!==0?u.createElement("button",{className:"".concat(De,"-prev-btn"),onClick:ze},"Prev"):null,Me===We-1?u.createElement("button",{className:"".concat(De,"-finish-btn"),onClick:fe},"Finish"):u.createElement("button",{className:"".concat(De,"-next-btn"),onClick:xe},"Next")))))}var le=function(Ne){var De=Ne.current,Me=Ne.renderPanel;return u.createElement(u.Fragment,null,typeof Me=="function"?Me(Ne,De):u.createElement(he,Ne))},be=le,pe=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],_e={left:"50%",top:"50%",width:1,height:1},ne={block:"center",inline:"center"},ue=function(Ne){var De=Ne.prefixCls,Me=De===void 0?"rc-tour":De,We=Ne.steps,je=We===void 0?[]:We,et=Ne.defaultCurrent,it=Ne.current,ze=Ne.onChange,xe=Ne.onClose,fe=Ne.onFinish,W=Ne.open,Z=Ne.mask,me=Z===void 0?!0:Z,Ce=Ne.arrow,re=Ce===void 0?!0:Ce,ie=Ne.rootClassName,de=Ne.placement,Ae=Ne.renderPanel,Be=Ne.gap,He=Ne.animated,st=Ne.scrollIntoViewOptions,Qe=st===void 0?ne:st,pt=Ne.zIndex,It=pt===void 0?1001:pt,gt=Ne.closeIcon,rt=Ne.closable,ut=Ne.builtinPlacements,At=Ne.disabledInteraction,bt=(0,_.Z)(Ne,pe),Tt=u.useRef(),Mt=(0,c.Z)(0,{value:it,defaultValue:et}),Ot=(0,w.Z)(Mt,2),$e=Ot[0],$t=Ot[1],gn=(0,c.Z)(void 0,{value:W,postState:function(_t){return $e<0||$e>=je.length?!1:_t!=null?_t:!0}}),Et=(0,w.Z)(gn,2),Mn=Et[0],qn=Et[1],Zn=u.useState(Mn),Bt=(0,w.Z)(Zn,2),yr=Bt[0],vr=Bt[1],Un=u.useRef(Mn);(0,v.Z)(function(){Mn&&(Un.current||$t(0),vr(!0)),Un.current=Mn},[Mn]);var Wn=je[$e]||{},wr=Wn.target,ye=Wn.placement,Fn=Wn.style,wn=Wn.arrow,Jn=Wn.className,Ir=Wn.mask,Wr=Wn.scrollIntoViewOptions,cr=Wr===void 0?ne:Wr,ro=Wn.closeIcon,Kr=Wn.closable,oi=x(Kr,ro,rt,gt),Kn=Mn&&(Ir!=null?Ir:me),Dn=cr!=null?cr:Qe,li=k(wr,W,Be,Dn),Nr=(0,w.Z)(li,2),Yr=Nr[0],mn=Nr[1],zn=R(mn,de,ye),Mr=mn?typeof wn=="undefined"?re:wn:!1,Ci=(0,s.Z)(Mr)==="object"?Mr.pointAtCenter:!1;(0,v.Z)(function(){var kn;(kn=Tt.current)===null||kn===void 0||kn.forceAlign()},[Ci,$e]);var vi=function(_t){$t(_t),ze==null||ze(_t)},nt=(0,u.useMemo)(function(){return ut?typeof ut=="function"?ut({arrowPointAtCenter:Ci}):ut:Q(Ci)},[ut,Ci]);if(mn===void 0||!yr)return null;var vt=function(){qn(!1),xe==null||xe($e)},hn=function(){return u.createElement(be,(0,Y.Z)({arrow:Mr,key:"content",prefixCls:Me,total:je.length,renderPanel:Ae,onPrev:function(){vi($e-1)},onNext:function(){vi($e+1)},onClose:vt,current:$e,onFinish:function(){vt(),fe==null||fe()}},je[$e],{closable:oi}))},yn=typeof Kn=="boolean"?Kn:!!Kn,dt=typeof Kn=="boolean"?void 0:Kn,on=function(_t){return _t||mn||document.body};return u.createElement(u.Fragment,null,u.createElement(F,{zIndex:It,prefixCls:Me,pos:Yr,showMask:yn,style:dt==null?void 0:dt.style,fill:dt==null?void 0:dt.color,open:Mn,animated:He,rootClassName:ie,disabledInteraction:At}),u.createElement(y.Z,(0,Y.Z)({},bt,{builtinPlacements:nt,ref:Tt,popupStyle:Fn,popupPlacement:zn,popupVisible:Mn,popupClassName:b()(ie,Jn),prefixCls:Me,popup:hn,forceRender:!1,destroyPopupOnHide:!0,zIndex:It,getTriggerDOMNode:on,arrow:!!Mr}),u.createElement(p.Z,{open:Mn,autoLock:!0},u.createElement("div",{className:b()(ie,"".concat(Me,"-target-placeholder")),style:(0,B.Z)((0,B.Z)({},Yr||_e),{},{position:"fixed",pointerEvents:"none"})}))))},ce=ue,Re=ce},8336:function(){"use strict"},12469:function(){"use strict"},47257:function(Oe){(function(J){(function(S){if(1)Oe.exports=S();else var B})(function(){var S,B,Y;return function(){function s(w,_,u){function p(b,v){if(!_[b]){if(!w[b]){var c=void 0;if(!v&&c)return require(b,!0);if(y)return y(b,!0);var h=new Error("Cannot find module '"+b+"'");throw h.code="MODULE_NOT_FOUND",h}var g=_[b]={exports:{}};w[b][0].call(g.exports,function(x){var T=w[b][1][x];return p(T||x)},g,g.exports,s,w,_,u)}return _[b].exports}for(var y=void 0,m=0;m<u.length;m++)p(u[m]);return p}return s}()({1:[function(s,w,_){"use strict";var u=s("./browser/client");u.Buffer=s("buffer").Buffer,u.urllib=s("../shims/xhr"),u.version=s("./browser/version").version,w.exports=u},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(s,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=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 m=s("assert"),b=s("../common/utils/checkBucketName"),v=b.checkBucketName,c=_;function h(x){return Array.isArray?Array.isArray(x):Object.prototype.toString.call(x)==="[object Array]"}function g(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,y.default)(p.default.mark(function I(R,N){var k,L;return p.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return k=this._bucketRequestParams("DELETE",R,"",N),M.next=3,this.request(k);case 3:if(L=M.sent,!(L.status===200||L.status===204)){M.next=6;break}return M.abrupt("return",{res:L.res});case 6:return M.next=8,this.requestError(L);case 8:throw M.sent;case 9:case"end":return M.stop()}},I,this)}));function T(I,R){return x.apply(this,arguments)}return T}(),c.putBucketACL=function(){var x=(0,y.default)(p.default.mark(function I(R,N,k){var L,H;return p.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return L=this._bucketRequestParams("PUT",R,"acl",k),L.headers={"x-oss-acl":N},L.successStatuses=[200],F.next=5,this.request(L);case 5:return H=F.sent,F.abrupt("return",{bucket:H.headers.location&&H.headers.location.substring(1)||null,res:H.res});case 7:case"end":return F.stop()}},I,this)}));function T(I,R,N){return x.apply(this,arguments)}return T}(),c.getBucketACL=function(){var x=(0,y.default)(p.default.mark(function I(R,N){var k,L;return p.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return k=this._bucketRequestParams("GET",R,"acl",N),k.successStatuses=[200],k.xmlResponse=!0,M.next=5,this.request(k);case 5:return L=M.sent,M.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 M.stop()}},I,this)}));function T(I,R){return x.apply(this,arguments)}return T}(),c.putBucketLogging=function(){var x=(0,y.default)(p.default.mark(function I(R,N,k){var L,H,M;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return L=this._bucketRequestParams("PUT",R,"logging",k),H=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(R,`</TargetBucket>
`),N&&(H+="<TargetPrefix>".concat(N,`</TargetPrefix>
`)),H+=`</LoggingEnabled>
</BucketLoggingStatus>`,L.content=H,L.mime="xml",L.successStatuses=[200],P.next=9,this.request(L);case 9:return M=P.sent,P.abrupt("return",{res:M.res});case 11:case"end":return P.stop()}},I,this)}));function T(I,R,N){return x.apply(this,arguments)}return T}(),c.getBucketLogging=function(){var x=(0,y.default)(p.default.mark(function I(R,N){var k,L,H;return p.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return k=this._bucketRequestParams("GET",R,"logging",N),k.successStatuses=[200],k.xmlResponse=!0,F.next=5,this.request(k);case 5:return L=F.sent,H=L.data.LoggingEnabled,F.abrupt("return",{enable:!!H,prefix:H&&H.TargetPrefix||null,res:L.res});case 8:case"end":return F.stop()}},I,this)}));function T(I,R){return x.apply(this,arguments)}return T}(),c.deleteBucketLogging=function(){var x=(0,y.default)(p.default.mark(function I(R,N){var k,L;return p.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return k=this._bucketRequestParams("DELETE",R,"logging",N),k.successStatuses=[204,200],M.next=4,this.request(k);case 4:return L=M.sent,M.abrupt("return",{res:L.res});case 6:case"end":return M.stop()}},I,this)}));function T(I,R){return x.apply(this,arguments)}return T}(),c.putBucketCORS=function(){var x=(0,y.default)(p.default.mark(function I(R,N,k){var L,H,M,F,P,U,G,Q,ee,ae;return p.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:for(N=N||[],m(N.length,"rules is required"),N.forEach(function(le){m(le.allowedOrigin,"allowedOrigin is required"),m(le.allowedMethod,"allowedMethod is required")}),L=this._bucketRequestParams("PUT",R,"cors",k),H=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,M=function(be){H+="<AllowedOrigin>".concat(be,"</AllowedOrigin>")},F=function(be){H+="<AllowedMethod>".concat(be,"</AllowedMethod>")},P=function(be){H+="<AllowedHeader>".concat(be,"</AllowedHeader>")},U=function(be){H+="<ExposeHeader>".concat(be,"</ExposeHeader>")},G=0,Q=N.length;G<Q;G++)ee=N[G],H+="<CORSRule>",g(ee.allowedOrigin).forEach(M),g(ee.allowedMethod).forEach(F),g(ee.allowedHeader).forEach(P),g(ee.exposeHeader).forEach(U),ee.maxAgeSeconds&&(H+="<MaxAgeSeconds>".concat(ee.maxAgeSeconds,"</MaxAgeSeconds>")),H+="</CORSRule>";return H+="</CORSConfiguration>",L.content=H,L.mime="xml",L.successStatuses=[200],he.next=16,this.request(L);case 16:return ae=he.sent,he.abrupt("return",{res:ae.res});case 18:case"end":return he.stop()}},I,this)}));function T(I,R,N){return x.apply(this,arguments)}return T}(),c.getBucketCORS=function(){var x=(0,y.default)(p.default.mark(function I(R,N){var k,L,H,M;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return k=this._bucketRequestParams("GET",R,"cors",N),k.successStatuses=[200],k.xmlResponse=!0,P.next=5,this.request(k);case 5:return L=P.sent,H=[],L.data&&L.data.CORSRule&&(M=L.data.CORSRule,h(M)||(M=[M]),M.forEach(function(U){var G={};Object.keys(U).forEach(function(Q){G[Q.slice(0,1).toLowerCase()+Q.slice(1,Q.length)]=U[Q]}),H.push(G)})),P.abrupt("return",{rules:H,res:L.res});case 9:case"end":return P.stop()}},I,this)}));function T(I,R){return x.apply(this,arguments)}return T}(),c.deleteBucketCORS=function(){var x=(0,y.default)(p.default.mark(function I(R,N){var k,L;return p.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return k=this._bucketRequestParams("DELETE",R,"cors",N),k.successStatuses=[204],M.next=4,this.request(k);case 4:return L=M.sent,M.abrupt("return",{res:L.res});case 6:case"end":return M.stop()}},I,this)}));function T(I,R){return x.apply(this,arguments)}return T}(),c.putBucketReferer=function(){var x=(0,y.default)(p.default.mark(function I(R,N,k,L){var H,M,F,P;return p.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(H=this._bucketRequestParams("PUT",R,"referer",L),M=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,M+=" <AllowEmptyReferer>".concat(N?"true":"false",`</AllowEmptyReferer>
`),k&&k.length>0){for(M+=` <RefererList>
`,F=0;F<k.length;F++)M+=" <Referer>".concat(k[F],`</Referer>
`);M+=` </RefererList>
`}else M+=` <RefererList />
`;return M+="</RefererConfiguration>",H.content=M,H.mime="xml",H.successStatuses=[200],G.next=10,this.request(H);case 10:return P=G.sent,G.abrupt("return",{res:P.res});case 12:case"end":return G.stop()}},I,this)}));function T(I,R,N,k){return x.apply(this,arguments)}return T}(),c.getBucketReferer=function(){var x=(0,y.default)(p.default.mark(function I(R,N){var k,L,H;return p.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return k=this._bucketRequestParams("GET",R,"referer",N),k.successStatuses=[200],k.xmlResponse=!0,F.next=5,this.request(k);case 5:return L=F.sent,H=L.data.RefererList.Referer||null,H&&(h(H)||(H=[H])),F.abrupt("return",{allowEmpty:L.data.AllowEmptyReferer==="true",referers:H,res:L.res});case 9:case"end":return F.stop()}},I,this)}));function T(I,R){return x.apply(this,arguments)}return T}(),c.deleteBucketReferer=function(){var x=(0,y.default)(p.default.mark(function I(R,N){return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.putBucketReferer(R,!0,null,N);case 2:return L.abrupt("return",L.sent);case 3:case"end":return L.stop()}},I,this)}));function T(I,R){return x.apply(this,arguments)}return T}(),c._bucketRequestParams=function(T,I,R,N){return{method:T,bucket:I,subres:R,timeout:N&&N.timeout,ctx:N&&N.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,w,_){(function(u,p){(function(){"use strict";var y=s("@babel/runtime/helpers/interopRequireDefault"),m=y(s("@babel/runtime/regenerator")),b=y(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"),g=s("merge-descriptors"),x=s("platform"),T=s("utility"),I=s("urllib"),R=s("./version"),N=s("bowser"),k=s("../common/signUtils"),L=s("../common/client/initOptions"),H=s("../common/utils/createRequest"),M=H.createRequest,F=s("../common/utils/encoder"),P=F.encoder,U=s("../common/client/getReqUrl"),G=U.getReqUrl,Q=s("../common/utils/setSTSToken"),ee=Q.setSTSToken,ae=s("../common/utils/retry"),oe=ae.retry,he=s("../common/utils/isFunction"),le=he.isFunction,be=new h;function pe(){var ke=x.name,Ne=x.version;ke&&ke.toLowerCase&&ke.toLowerCase()==="ie"&&Ne.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function _e(){return location&&location.protocol==="https:"}function ne(ke,Ne){if(pe(),!(this instanceof ne))return new ne(ke,Ne);ke&&ke.inited?this.options=ke:this.options=ne.initOptions(ke),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=I,this.agent=this.options.agent||be),this.ctx=Ne,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}w.exports=ne,ne.initOptions=function(Ne){Ne.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var De=Object.assign({secure:_e(),useFetch:!1},Ne);return L(De)};var ue=ne.prototype;ue.debug=v,g(ue,s("./object")),g(ue,s("./bucket")),g(ue,s("../common/bucket/getBucketWebsite")),g(ue,s("../common/bucket/putBucketWebsite")),g(ue,s("../common/bucket/deleteBucketWebsite")),g(ue,s("../common/bucket/getBucketLifecycle")),g(ue,s("../common/bucket/putBucketLifecycle")),g(ue,s("../common/bucket/deleteBucketLifecycle")),g(ue,s("../common/bucket/putBucketVersioning")),g(ue,s("../common/bucket/getBucketVersioning")),g(ue,s("../common/bucket/getBucketInventory")),g(ue,s("../common/bucket/deleteBucketInventory")),g(ue,s("../common/bucket/listBucketInventory")),g(ue,s("../common/bucket/putBucketInventory")),g(ue,s("../common/bucket/abortBucketWorm")),g(ue,s("../common/bucket/completeBucketWorm")),g(ue,s("../common/bucket/extendBucketWorm")),g(ue,s("../common/bucket/getBucketWorm")),g(ue,s("../common/bucket/initiateBucketWorm")),g(ue,s("./managed-upload")),g(ue,s("../common/multipart-copy")),g(ue,s("../common/multipart")),g(ue,s("../common/parallel")),ue.signature=function(Ne){return this.debug("authorization stringToSign: %s",Ne,"info"),k.computeSignature(this.options.accessKeySecret,Ne,this.options.headerEncoding)},ue._getReqUrl=G,ue.authorization=function(Ne,De,Me,We){var je=k.buildCanonicalString(Ne.toUpperCase(),De,{headers:We,parameters:Me});return k.authorization(this.options.accessKeyId,this.options.accessKeySecret,je,this.options.headerEncoding)},ue.request=function(){var ke=(0,b.default)(m.default.mark(function Ne(De){var Me=this;return m.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!this.options.retryMax){je.next=6;break}return je.next=3,oe(ce.bind(this),this.options.retryMax,{errorHandler:function(it){var ze=function(fe){if(De.stream)return!1;var W=[-1,-2].includes(fe.status),Z=Me.options.requestErrorRetryHandle||function(){return!0};return W&&Z(fe)};return!!ze(it)}})(De);case 3:return je.abrupt("return",je.sent);case 6:return je.abrupt("return",ce.call(this,De));case 7:case"end":return je.stop()}},Ne,this)}));return function(Ne){return ke.apply(this,arguments)}}();function ce(ke){return Re.apply(this,arguments)}function Re(){return Re=(0,b.default)(m.default.mark(function ke(Ne){var De,Me,We,je,et,it;return m.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(!(this.options.stsToken&&le(this.options.refreshSTSToken))){xe.next=3;break}return xe.next=3,ee.call(this);case 3:return De=M.call(this,Ne),this.options.useFetch||(De.params.mode="disable-fetch"),je=!!Ne.stream,xe.prev=6,xe.next=9,this.urllib.request(De.url,De.params);case 9:Me=xe.sent,this.debug("response %s %s, got %s, headers: %j",Ne.method,De.url,Me.status,Me.headers,"info"),xe.next=16;break;case 13:xe.prev=13,xe.t0=xe.catch(6),We=xe.t0;case 16:if(!(Me&&Ne.successStatuses&&Ne.successStatuses.indexOf(Me.status)===-1)){xe.next=28;break}return xe.next=19,this.requestError(Me);case 19:if(et=xe.sent,!(et.code==="RequestTimeTooSkewed"&&!je)){xe.next=25;break}return this.options.amendTimeSkewed=+new Date(et.serverTime)-new Date,xe.next=24,this.request(Ne);case 24:return xe.abrupt("return",xe.sent);case 25:et.params=Ne,xe.next=32;break;case 28:if(!We){xe.next=32;break}return xe.next=31,this.requestError(We);case 31:et=xe.sent;case 32:if(!et){xe.next=34;break}throw et;case 34:if(!Ne.xmlResponse){xe.next=39;break}return xe.next=37,this.parseXML(Me.data);case 37:it=xe.sent,Me.data=it;case 39:return xe.abrupt("return",Me);case 40:case"end":return xe.stop()}},ke,this,[[6,13]])})),Re.apply(this,arguments)}ue._getResource=function(Ne){var De="/";return Ne.bucket&&(De+="".concat(Ne.bucket,"/")),Ne.object&&(De+=P(Ne.object,this.options.headerEncoding)),De},ue._escape=function(Ne){return T.encodeURIComponent(Ne).replace(/%2F/g,"/")},ue._getUserAgent=function(){var Ne=p&&p.browser?"js":"nodejs",De="aliyun-sdk-".concat(Ne,"/").concat(R.version),Me=x.description;return!Me&&p&&(Me="Node.js ".concat(p.version.slice(1)," on ").concat(p.platform," ").concat(p.arch)),this._checkUserAgent("".concat(De," ").concat(Me))},ue._checkUserAgent=function(Ne){var De=Ne.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return De},ue.checkBrowserAndVersion=function(Ne,De){return N.name===Ne&&N.version.split(".")[0]===De},ue.parseXML=function(Ne){return new Promise(function(De,Me){u.isBuffer(Ne)&&(Ne=Ne.toString()),c.parseString(Ne,{explicitRoot:!1,explicitArray:!1},function(We,je){We?Me(We):De(je)})})},ue.requestError=function(){var ke=(0,b.default)(m.default.mark(function De(Me){var We,je,et,it;return m.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(We=null,!(!Me.data||!Me.data.length)){xe.next=5;break}Me.status===-1||Me.status===-2?(We=new Error(Me.message),We.name=Me.name,We.status=Me.status,We.code=Me.name):(Me.status===404?(We=new Error("Object not exists"),We.name="NoSuchKeyError",We.status=404,We.code="NoSuchKey"):Me.status===412?(We=new Error("Pre condition failed"),We.name="PreconditionFailedError",We.status=412,We.code="PreconditionFailed"):(We=new Error("Unknow error, status: ".concat(Me.status)),We.name="UnknownError",We.status=Me.status),We.requestId=Me.headers["x-oss-request-id"],We.host=""),xe.next=32;break;case 5:return je=String(Me.data),this.debug("request response error data: %s",je,"error"),xe.prev=7,xe.next=10,this.parseXML(je);case 10:if(xe.t0=xe.sent,xe.t0){xe.next=13;break}xe.t0={};case 13:et=xe.t0,xe.next=23;break;case 16:return xe.prev=16,xe.t1=xe.catch(7),this.debug(je,"error"),xe.t1.message+=`
raw xml: `.concat(je),xe.t1.status=Me.status,xe.t1.requestId=Me.headers["x-oss-request-id"],xe.abrupt("return",xe.t1);case 23:it=et.Message||"unknow request error, status: ".concat(Me.status),et.Condition&&(it+=" (condition: ".concat(et.Condition,")")),We=new Error(it),We.name=et.Code?"".concat(et.Code,"Error"):"UnknownError",We.status=Me.status,We.code=et.Code,We.requestId=et.RequestId,We.hostId=et.HostId,We.serverTime=et.ServerTime;case 32:return this.debug("generate error %j",We,"error"),xe.abrupt("return",We);case 34:case"end":return xe.stop()}},De,this,[[7,16]])}));function Ne(De){return ke.apply(this,arguments)}return Ne}()}).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,w,_){(function(u){(function(){"use strict";var p=s("@babel/runtime/helpers/interopRequireDefault"),y=p(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 m=p(s("@babel/runtime/helpers/asyncToGenerator")),b=s("util"),v=s("path"),c=s("mime"),h=s("copy-to"),g=s("../common/utils/isBlob"),x=g.isBlob,T=s("../common/utils/isFile"),I=T.isFile,R=s("../common/utils/isBuffer"),N=R.isBuffer,k=_;k.multipartUpload=function(){var P=(0,m.default)(y.default.mark(function G(Q,ee){var ae,oe,he,le,be,pe,_e,ne,ue,ce=arguments;return y.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(ae=ce.length>2&&ce[2]!==void 0?ce[2]:{},this.resetCancelFlag(),ae.disabledMD5=ae.disabledMD5===void 0?!0:!!ae.disabledMD5,!(ae.checkpoint&&ae.checkpoint.uploadId)){ke.next=8;break}return ee&&I(ee)&&(ae.checkpoint.file=ee),ke.next=7,this._resumeMultipart(ae.checkpoint,ae);case 7:return ke.abrupt("return",ke.sent);case 8:return oe=102400,ae.mime||(I(ee)?ae.mime=c.getType(v.extname(ee.name)):x(ee)?ae.mime=ee.type:N(ee)?ae.mime="":ae.mime=c.getType(v.extname(ee))),ae.headers=ae.headers||{},this._convertMetaToHeaders(ae.meta,ae.headers),ke.next=14,this._getFileSize(ee);case 14:if(he=ke.sent,!(he<oe)){ke.next=26;break}return ae.contentLength=he,ke.next=19,this.put(Q,ee,ae);case 19:if(le=ke.sent,!(ae&&ae.progress)){ke.next=23;break}return ke.next=23,ae.progress(1);case 23:return be={res:le.res,bucket:this.options.bucket,name:Q,etag:le.res.headers.etag},(ae.headers&&ae.headers["x-oss-callback"]||ae.callback)&&(be.data=le.data),ke.abrupt("return",be);case 26:if(!(ae.partSize&&parseInt(ae.partSize,10)!==ae.partSize)){ke.next=28;break}throw new Error("partSize must be int number");case 28:if(!(ae.partSize&&ae.partSize<oe)){ke.next=30;break}throw new Error("partSize must not be smaller than ".concat(oe));case 30:return ke.next=32,this.initMultipartUpload(Q,ae);case 32:if(pe=ke.sent,_e=pe.uploadId,ne=this._getPartSize(he,ae.partSize),ue={file:ee,name:Q,fileSize:he,partSize:ne,uploadId:_e,doneParts:[]},!(ae&&ae.progress)){ke.next=39;break}return ke.next=39,ae.progress(0,ue,pe.res);case 39:return ke.next=41,this._resumeMultipart(ue,ae);case 41:return ke.abrupt("return",ke.sent);case 42:case"end":return ke.stop()}},G,this)}));function U(G,Q){return P.apply(this,arguments)}return U}(),k._resumeMultipart=function(){var P=(0,m.default)(y.default.mark(function G(Q,ee){var ae,oe,he,le,be,pe,_e,ne,ue,ce,Re,ke,Ne,De,Me,We,je,et,it;return y.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(ae=this,!this.isCancel()){xe.next=3;break}throw this._makeCancelEvent();case 3:return oe=Q.file,he=Q.fileSize,le=Q.partSize,be=Q.uploadId,pe=Q.doneParts,_e=Q.name,ne=[],pe.length>0&&h(pe).to(ne),ue=this._divideParts(he,le),ce=ue.length,Re=!1,ke=function(W,Z){return new Promise(function(){var me=(0,m.default)(y.default.mark(function Ce(re,ie){var de,Ae,Be,He,st;return y.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(pt.prev=0,W.isCancel()){pt.next=29;break}return de=ue[Z-1],pt.next=5,W._createBuffer(oe,de.start,de.end);case 5:return Ae=pt.sent,Be={content:Ae,size:de.end-de.start},pt.prev=7,pt.next=10,W._uploadPart(_e,be,Z,Be,ee);case 10:He=pt.sent,pt.next=18;break;case 13:if(pt.prev=13,pt.t0=pt.catch(7),pt.t0.status!==404){pt.next=17;break}throw W._makeAbortEvent();case 17:throw pt.t0;case 18:if(!(!W.isCancel()&&!Re)){pt.next=26;break}if(Q.doneParts.push({number:Z,etag:He.res.headers.etag}),!ee.progress){pt.next=23;break}return pt.next=23,ee.progress(pe.length/(ce+1),Q,He.res);case 23:re({number:Z,etag:He.res.headers.etag}),pt.next=27;break;case 26:re();case 27:pt.next=30;break;case 29:re();case 30:pt.next=41;break;case 32:pt.prev=32,pt.t1=pt.catch(0),st=new Error,st.name=pt.t1.name,st.message=pt.t1.message,st.stack=pt.t1.stack,st.partNum=Z,h(pt.t1).to(st),ie(st);case 41:case"end":return pt.stop()}},Ce,null,[[0,32],[7,13]])}));return function(Ce,re){return me.apply(this,arguments)}}())},Ne=Array.from(new Array(ce),function(fe,W){return W+1}),De=ne.map(function(fe){return fe.number}),Me=Ne.filter(function(fe){return De.indexOf(fe)<0}),We=5,je=ee.parallel||We,xe.next=17,this._parallel(Me,je,function(fe){return new Promise(function(W,Z){ke(ae,fe).then(function(me){me&&ne.push(me),W()}).catch(function(me){Z(me)})})});case 17:if(et=xe.sent,Re=!0,it=et.find(function(fe){return fe.name==="abort"}),!it){xe.next=22;break}throw it;case 22:if(!this.isCancel()){xe.next=25;break}throw ke=null,this._makeCancelEvent();case 25:if(!(et&&et.length>0)){xe.next=28;break}throw et[0].message="Failed to upload some parts with error: ".concat(et[0].toString()," part_num: ").concat(et[0].partNum),et[0];case 28:return xe.next=30,this.completeMultipartUpload(_e,be,ne,ee);case 30:return xe.abrupt("return",xe.sent);case 31:case"end":return xe.stop()}},G,this)}));function U(G,Q){return P.apply(this,arguments)}return U}(),k._getFileSize=function(){var P=(0,m.default)(y.default.mark(function G(Q){return y.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(!N(Q)){ae.next=4;break}return ae.abrupt("return",Q.length);case 4:if(!(x(Q)||I(Q))){ae.next=6;break}return ae.abrupt("return",Q.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return ae.stop()}},G)}));function U(G){return P.apply(this,arguments)}return U}();var L=s("stream"),H=L.Readable;function M(P,U){if(!(this instanceof M))return new M(P,U);H.call(this,U),this.file=P,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}b.inherits(M,H),M.prototype.readFileAndPush=function(U){if(this.fileBuffer)for(var G=!0;G&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Q=this.start,ee=Q+U;ee=ee>this.fileBuffer.length?this.fileBuffer.length:ee,this.start=ee,G=this.push(this.fileBuffer.slice(Q,ee))}},M.prototype._read=function(U){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;U=U||G;var Q=this;this.reader.onload=function(ae){Q.fileBuffer=u.from(new Uint8Array(ae.target.result)),Q.file=null,Q.readFileAndPush(U)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(U)};function F(P){return P.arrayBuffer?P.arrayBuffer():new Promise(function(U,G){var Q=new FileReader;Q.onload=function(ee){U(ee.target.result)},Q.onerror=function(ee){G(ee)},Q.readAsArrayBuffer(P)})}k._createBuffer=function(){var P=(0,m.default)(y.default.mark(function G(Q,ee,ae){var oe,he;return y.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(!(x(Q)||I(Q))){be.next=8;break}return oe=Q.slice(ee,ae),be.next=4,F(oe);case 4:return he=be.sent,be.abrupt("return",u.from(he));case 8:if(!N(Q)){be.next=12;break}return be.abrupt("return",Q.subarray(ee,ae));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return be.stop()}},G)}));function U(G,Q,ee){return P.apply(this,arguments)}return U}(),k._getPartSize=function(U,G){var Q=1e4,ee=1*1024*1024;G||(G=ee);var ae=Math.ceil(U/Q);return G<ae&&(G=ae,console.warn("partSize has been set to ".concat(G,", because the partSize you provided causes partNumber to be greater than 10,000"))),G},k._divideParts=function(U,G){for(var Q=Math.ceil(U/G),ee=[],ae=0;ae<Q;ae++){var oe=G*ae,he=Math.min(oe+G,U);ee.push({start:oe,end:he})}return ee}}).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,w,_){"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 p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("fs"),b=s("copy-to"),v=s("path"),c=s("mime"),h=s("../common/callback"),g=s("merge-descriptors"),x=s("../common/utils/isBlob"),T=x.isBlob,I=s("../common/utils/isFile"),R=I.isFile,N=s("../common/utils/isBuffer"),k=N.isBuffer,L=s("../common/utils/obj2xml"),H=L.obj2xml,M=_;M.append=function(){var F=(0,y.default)(p.default.mark(function U(G,Q,ee){var ae;return p.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ee=ee||{},ee.position===void 0&&(ee.position="0"),ee.subres={append:"",position:ee.position},ee.method="POST",he.next=6,this.put(G,Q,ee);case 6:return ae=he.sent,ae.nextAppendPosition=ae.res.headers["x-oss-next-append-position"],he.abrupt("return",ae);case 9:case"end":return he.stop()}},U,this)}));function P(U,G,Q){return F.apply(this,arguments)}return P}(),M.put=function(){var F=(0,y.default)(p.default.mark(function U(G,Q,ee){var ae,oe,he,le,be;return p.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(ee=ee||{},ee.disabledMD5=ee.disabledMD5===void 0?!0:!!ee.disabledMD5,ee.headers=ee.headers||{},G=this._objectName(G),!k(Q)){_e.next=8;break}ae=Q,_e.next=19;break;case 8:if(!(T(Q)||R(Q))){_e.next=18;break}return ee.mime||(R(Q)?ee.mime=c.getType(v.extname(Q.name)):ee.mime=Q.type),_e.next=12,this._createBuffer(Q,0,Q.size);case 12:return ae=_e.sent,_e.next=15,this._getFileSize(Q);case 15:ee.contentLength=_e.sent,_e.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(ee.meta,ee.headers),oe=ee.method||"PUT",he=this._objectRequestParams(oe,G,ee),h.encodeCallback(he,ee),he.mime=ee.mime,he.disabledMD5=ee.disabledMD5,he.content=ae,he.successStatuses=[200],_e.next=29,this.request(he);case 29:return le=_e.sent,be={name:G,url:this._objectUrl(G),res:le.res},he.headers&&he.headers["x-oss-callback"]&&(be.data=JSON.parse(le.data.toString())),_e.abrupt("return",be);case 33:case"end":return _e.stop()}},U,this)}));function P(U,G,Q){return F.apply(this,arguments)}return P}(),M.putStream=function(){var F=(0,y.default)(p.default.mark(function U(G,Q,ee){var ae,oe,he,le;return p.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ee=ee||{},ee.headers=ee.headers||{},G=this._objectName(G),ee.contentLength?ee.headers["Content-Length"]=ee.contentLength:ee.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(ee.meta,ee.headers),ae=ee.method||"PUT",oe=this._objectRequestParams(ae,G,ee),h.encodeCallback(oe,ee),oe.mime=ee.mime,oe.stream=Q,oe.successStatuses=[200],pe.next=13,this.request(oe);case 13:return he=pe.sent,le={name:G,url:this._objectUrl(G),res:he.res},oe.headers&&oe.headers["x-oss-callback"]&&(le.data=JSON.parse(he.data.toString())),pe.abrupt("return",le);case 17:case"end":return pe.stop()}},U,this)}));function P(U,G,Q){return F.apply(this,arguments)}return P}(),g(M,s("../common/object/copyObject")),g(M,s("../common/object/getObjectTagging")),g(M,s("../common/object/putObjectTagging")),g(M,s("../common/object/deleteObjectTagging")),g(M,s("../common/image")),g(M,s("../common/object/getBucketVersions")),g(M,s("../common/object/getACL")),g(M,s("../common/object/putACL")),g(M,s("../common/object/head")),g(M,s("../common/object/delete")),g(M,s("../common/object/get")),g(M,s("../common/object/putSymlink")),g(M,s("../common/object/getSymlink")),g(M,s("../common/object/deleteMulti")),g(M,s("../common/object/getObjectMeta")),g(M,s("../common/object/getObjectUrl")),g(M,s("../common/object/generateObjectUrl")),g(M,s("../common/object/signatureUrl")),g(M,s("../common/object/asyncSignatureUrl")),M.putMeta=function(){var F=(0,y.default)(p.default.mark(function U(G,Q,ee){var ae;return p.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,this.copy(G,G,{meta:Q||{},timeout:ee&&ee.timeout,ctx:ee&&ee.ctx});case 2:return ae=he.sent,he.abrupt("return",ae);case 4:case"end":return he.stop()}},U,this)}));function P(U,G,Q){return F.apply(this,arguments)}return P}(),M.list=function(){var F=(0,y.default)(p.default.mark(function U(G,Q){var ee,ae,oe,he,le;return p.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ee=this._objectRequestParams("GET","",Q),ee.query=G,ee.xmlResponse=!0,ee.successStatuses=[200],pe.next=6,this.request(ee);case 6:return ae=pe.sent,oe=ae.data.Contents||[],he=this,oe&&(Array.isArray(oe)||(oe=[oe]),oe=oe.map(function(_e){return{name:_e.Key,url:he._objectUrl(_e.Key),lastModified:_e.LastModified,etag:_e.ETag,type:_e.Type,size:Number(_e.Size),storageClass:_e.StorageClass,owner:{id:_e.Owner.ID,displayName:_e.Owner.DisplayName}}})),le=ae.data.CommonPrefixes||null,le&&(Array.isArray(le)||(le=[le]),le=le.map(function(_e){return _e.Prefix})),pe.abrupt("return",{res:ae.res,objects:oe,prefixes:le,nextMarker:ae.data.NextMarker||null,isTruncated:ae.data.IsTruncated==="true"});case 13:case"end":return pe.stop()}},U,this)}));function P(U,G){return F.apply(this,arguments)}return P}(),M.listV2=function(){var F=(0,y.default)(p.default.mark(function U(G){var Q,ee,ae,oe,he,le,be,pe=arguments;return p.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return Q=pe.length>1&&pe[1]!==void 0?pe[1]:{},ee=G["continuation-token"]||G.continuationToken,ee&&(Q.subres=Object.assign({"continuation-token":ee},Q.subres)),ae=this._objectRequestParams("GET","",Q),ae.query=Object.assign({"list-type":2},G),delete ae.query["continuation-token"],delete ae.query.continuationToken,ae.xmlResponse=!0,ae.successStatuses=[200],ne.next=11,this.request(ae);case 11:return oe=ne.sent,he=oe.data.Contents||[],le=this,he&&(Array.isArray(he)||(he=[he]),he=he.map(function(ue){var ce=null;return ue.Owner&&(ce={id:ue.Owner.ID,displayName:ue.Owner.DisplayName}),{name:ue.Key,url:le._objectUrl(ue.Key),lastModified:ue.LastModified,etag:ue.ETag,type:ue.Type,size:Number(ue.Size),storageClass:ue.StorageClass,owner:ce}})),be=oe.data.CommonPrefixes||null,be&&(Array.isArray(be)||(be=[be]),be=be.map(function(ue){return ue.Prefix})),ne.abrupt("return",{res:oe.res,objects:he,prefixes:be,isTruncated:oe.data.IsTruncated==="true",keyCount:+oe.data.KeyCount,continuationToken:oe.data.ContinuationToken||null,nextContinuationToken:oe.data.NextContinuationToken||null});case 18:case"end":return ne.stop()}},U,this)}));function P(U){return F.apply(this,arguments)}return P}(),M.restore=function(){var F=(0,y.default)(p.default.mark(function U(G){var Q,ee,ae,oe,he=arguments;return p.default.wrap(function(be){for(;;)switch(be.prev=be.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),ee=this._objectRequestParams("POST",G,Q),Q.type==="ColdArchive"&&(ae={RestoreRequest:{Days:Q.Days?Q.Days:2,JobParameters:{Tier:Q.JobParameters?Q.JobParameters:"Standard"}}},ee.content=H(ae,{headers:!0}),ee.mime="xml"),ee.successStatuses=[202],be.next=9,this.request(ee);case 9:return oe=be.sent,be.abrupt("return",{res:oe.res});case 11:case"end":return be.stop()}},U,this)}));function P(U){return F.apply(this,arguments)}return P}(),M._objectUrl=function(P){return this._getReqUrl({bucket:this.options.bucket,object:P})},M._objectRequestParams=function(P,U,G){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");G=G||{},U=this._objectName(U);var Q={object:U,bucket:this.options.bucket,method:P,subres:G&&G.subres,timeout:G&&G.timeout,ctx:G&&G.ctx};return G.headers&&(Q.headers={},b(G.headers).to(Q.headers)),Q},M._objectName=function(P){return P.replace(/^\/+/,"")},M._convertMetaToHeaders=function(P,U){P&&Object.keys(P).forEach(function(G){U["x-oss-meta-".concat(G)]=P[G]})},M._deleteFileSafe=function(P){var U=this;return new Promise(function(G){m.exists(P,function(Q){Q?m.unlink(P,function(ee){ee&&U.debug("unlink %j error: %s",P,ee,"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,w,_){"use strict";_.version="6.18.1"},{}],7:[function(s,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.abortBucketWorm=void 0;var m=s("../utils/checkBucketName");function b(c,h){return v.apply(this,arguments)}function v(){return v=(0,y.default)(p.default.mark(function c(h,g){var x,T;return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return m.checkBucketName(h),x=this._bucketRequestParams("DELETE",h,"worm",g),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)}_.abortBucketWorm=b},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(s,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.completeBucketWorm=void 0;var m=s("../utils/checkBucketName");function b(c,h,g){return v.apply(this,arguments)}function v(){return v=(0,y.default)(p.default.mark(function c(h,g,x){var T,I;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return m.checkBucketName(h),T=this._bucketRequestParams("POST",h,{wormId:g},x),N.next=4,this.request(T);case 4:return I=N.sent,N.abrupt("return",{res:I.res,status:I.status});case 6:case"end":return N.stop()}},c,this)})),v.apply(this,arguments)}_.completeBucketWorm=b},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(s,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.deleteBucketInventory=void 0;var m=s("../utils/checkBucketName");function b(c,h){return v.apply(this,arguments)}function v(){return v=(0,y.default)(p.default.mark(function c(h,g){var x,T,I,R,N=arguments;return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return x=N.length>2&&N[2]!==void 0?N[2]:{},T=Object.assign({inventory:"",inventoryId:g},x.subres),m.checkBucketName(h),I=this._bucketRequestParams("DELETE",h,T,x),I.successStatuses=[204],L.next=7,this.request(I);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)}_.deleteBucketInventory=b},{"../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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkBucketName"),b=m.checkBucketName,v=_;v.deleteBucketLifecycle=function(){var c=(0,y.default)(p.default.mark(function g(x,T){var I,R;return p.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return b(x),I=this._bucketRequestParams("DELETE",x,"lifecycle",T),I.successStatuses=[204],k.next=5,this.request(I);case 5:return R=k.sent,k.abrupt("return",{res:R.res});case 7:case"end":return k.stop()}},g,this)}));function h(g,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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkBucketName"),b=m.checkBucketName,v=_;v.deleteBucketWebsite=function(){var c=(0,y.default)(p.default.mark(function g(x,T){var I,R;return p.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return b(x),I=this._bucketRequestParams("DELETE",x,"website",T),I.successStatuses=[204],k.next=5,this.request(I);case 5:return R=k.sent,k.abrupt("return",{res:R.res});case 7:case"end":return k.stop()}},g,this)}));function h(g,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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.extendBucketWorm=void 0;var m=s("../utils/checkBucketName"),b=s("../utils/obj2xml");function v(h,g,x,T){return c.apply(this,arguments)}function c(){return c=(0,y.default)(p.default.mark(function h(g,x,T,I){var R,N,k;return p.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return m.checkBucketName(g),R=this._bucketRequestParams("POST",g,{wormExtend:"",wormId:x},I),N={ExtendWormConfiguration:{RetentionPeriodInDays:T}},R.mime="xml",R.content=b.obj2xml(N,{headers:!0}),R.successStatuses=[200],H.next=8,this.request(R);case 8:return k=H.sent,H.abrupt("return",{res:k.res,status:k.status});case 10:case"end":return H.stop()}},h,this)})),c.apply(this,arguments)}_.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.getBucketInventory=void 0;var m=s("../utils/checkBucketName"),b=s("../utils/formatInventoryConfig");function v(h,g){return c.apply(this,arguments)}function c(){return c=(0,y.default)(p.default.mark(function h(g,x){var T,I,R,N,k=arguments;return p.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return T=k.length>2&&k[2]!==void 0?k[2]:{},I=Object.assign({inventory:"",inventoryId:x},T.subres),m.checkBucketName(g),R=this._bucketRequestParams("GET",g,I,T),R.successStatuses=[200],R.xmlResponse=!0,H.next=8,this.request(R);case 8:return N=H.sent,H.abrupt("return",{status:N.status,res:N.res,inventory:b.formatInventoryConfig(N.data)});case 10:case"end":return H.stop()}},h,this)})),c.apply(this,arguments)}_.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.map.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkBucketName"),b=m.checkBucketName,v=s("../utils/isArray"),c=v.isArray,h=s("../utils/formatObjKey"),g=h.formatObjKey,x=_;x.getBucketLifecycle=function(){var T=(0,y.default)(p.default.mark(function R(N,k){var L,H,M;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return b(N),L=this._bucketRequestParams("GET",N,"lifecycle",k),L.successStatuses=[200],L.xmlResponse=!0,P.next=6,this.request(L);case 6:return H=P.sent,M=H.data.Rule||null,M&&(c(M)||(M=[M]),M=M.map(function(U){return U.ID&&(U.id=U.ID,delete U.ID),U.Tag&&!c(U.Tag)&&(U.Tag=[U.Tag]),g(U,"firstLowerCase")})),P.abrupt("return",{rules:M,res:H.res});case 10:case"end":return P.stop()}},R,this)}));function I(R,N){return T.apply(this,arguments)}return I}()},{"../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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkBucketName"),b=m.checkBucketName,v=_;v.getBucketVersioning=function(){var c=(0,y.default)(p.default.mark(function g(x,T){var I,R,N;return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return b(x),I=this._bucketRequestParams("GET",x,"versioning",T),I.xmlResponse=!0,I.successStatuses=[200],L.next=6,this.request(I);case 6:return R=L.sent,N=R.data.Status,L.abrupt("return",{status:R.status,versionStatus:N,res:R.res});case 9:case"end":return L.stop()}},g,this)}));function h(g,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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkBucketName"),b=m.checkBucketName,v=s("../utils/isObject"),c=v.isObject,h=_;h.getBucketWebsite=function(){var g=(0,y.default)(p.default.mark(function T(I,R){var N,k,L;return p.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return b(I),N=this._bucketRequestParams("GET",I,"website",R),N.successStatuses=[200],N.xmlResponse=!0,M.next=6,this.request(N);case 6:return k=M.sent,L=[],k.data.RoutingRules&&k.data.RoutingRules.RoutingRule&&(c(k.data.RoutingRules.RoutingRule)?L=[k.data.RoutingRules.RoutingRule]:L=k.data.RoutingRules.RoutingRule),M.abrupt("return",{index:k.data.IndexDocument&&k.data.IndexDocument.Suffix||"",supportSubDir:k.data.IndexDocument&&k.data.IndexDocument.SupportSubDir||"false",type:k.data.IndexDocument&&k.data.IndexDocument.Type,routingRules:L,error:k.data.ErrorDocument&&k.data.ErrorDocument.Key||null,res:k.res});case 10:case"end":return M.stop()}},T,this)}));function x(T,I){return g.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.getBucketWorm=void 0;var m=s("../utils/checkBucketName"),b=s("../utils/dataFix");function v(h,g){return c.apply(this,arguments)}function c(){return c=(0,y.default)(p.default.mark(function h(g,x){var T,I;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return m.checkBucketName(g),T=this._bucketRequestParams("GET",g,"worm",x),T.successStatuses=[200],T.xmlResponse=!0,N.next=6,this.request(T);case 6:return I=N.sent,b.dataFix(I.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),N.abrupt("return",Object.assign(Object.assign({},I.data),{res:I.res,status:I.status}));case 9:case"end":return N.stop()}},h,this)})),c.apply(this,arguments)}_.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.initiateBucketWorm=void 0;var m=s("../utils/obj2xml"),b=s("../utils/checkBucketName");function v(h,g,x){return c.apply(this,arguments)}function c(){return c=(0,y.default)(p.default.mark(function h(g,x,T){var I,R,N;return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return b.checkBucketName(g),I=this._bucketRequestParams("POST",g,"worm",T),R={InitiateWormConfiguration:{RetentionPeriodInDays:x}},I.mime="xml",I.content=m.obj2xml(R,{headers:!0}),I.successStatuses=[200],L.next=8,this.request(I);case 8:return N=L.sent,L.abrupt("return",{res:N.res,wormId:N.res.headers["x-oss-worm-id"],status:N.status});case 10:case"end":return L.stop()}},h,this)})),c.apply(this,arguments)}_.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.listBucketInventory=void 0;var m=s("../utils/checkBucketName"),b=s("../utils/formatInventoryConfig");function v(h){return c.apply(this,arguments)}function c(){return c=(0,y.default)(p.default.mark(function h(g){var x,T,I,R,N,k,L,H,M=arguments;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return x=M.length>1&&M[1]!==void 0?M[1]:{},T=x.continuationToken,I=Object.assign({inventory:""},T&&{"continuation-token":T},x.subres),m.checkBucketName(g),R=this._bucketRequestParams("GET",g,I,x),R.successStatuses=[200],R.xmlResponse=!0,P.next=9,this.request(R);case 9:return N=P.sent,k=N.data,L=N.res,H=N.status,P.abrupt("return",{isTruncated:k.IsTruncated==="true",nextContinuationToken:k.NextContinuationToken,inventoryList:b.formatInventoryConfig(k.InventoryConfiguration,!0),status:H,res:L});case 12:case"end":return P.stop()}},h,this)})),c.apply(this,arguments)}_.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.concat.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.putBucketInventory=void 0;var m=s("../utils/checkBucketName"),b=s("../utils/obj2xml");function v(h,g){return c.apply(this,arguments)}function c(){return c=(0,y.default)(p.default.mark(function h(g,x){var T,I,R,N,k,L,H,M,F,P,U,G=arguments;return p.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return T=G.length>2&&G[2]!==void 0?G[2]:{},I=Object.assign({inventory:"",inventoryId:x.id},T.subres),m.checkBucketName(g),R=x.OSSBucketDestination,N=x.optionalFields,k=x.includedObjectVersions,L="acs:oss:::",H="acs:ram::".concat(R.accountId,":role/"),M={InventoryConfiguration:{Id:x.id,IsEnabled:x.isEnabled,Filter:{Prefix:x.prefix||""},Destination:{OSSBucketDestination:{Format:R.format,AccountId:R.accountId,RoleArn:"".concat(H).concat(R.rolename),Bucket:"".concat(L).concat(R.bucket),Prefix:R.prefix||"",Encryption:R.encryption||""}},Schedule:{Frequency:x.frequency},IncludedObjectVersions:k,OptionalFields:{Field:(N==null?void 0:N.field)||[]}}},F=b.obj2xml(M,{headers:!0,firstUpperCase:!0}),P=this._bucketRequestParams("PUT",g,I,T),P.successStatuses=[200],P.mime="xml",P.content=F,ee.next=14,this.request(P);case 14:return U=ee.sent,ee.abrupt("return",{status:U.status,res:U.res});case 16:case"end":return ee.stop()}},h,this)})),c.apply(this,arguments)}_.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkBucketName"),b=m.checkBucketName,v=s("../utils/isArray"),c=v.isArray,h=s("../utils/deepCopy"),g=h.deepCopy,x=s("../utils/isObject"),T=x.isObject,I=s("../utils/obj2xml"),R=I.obj2xml,N=s("../utils/checkObjectTag"),k=N.checkObjectTag,L=s("../utils/getStrBytesCount"),H=L.getStrBytesCount,M=_;M.putBucketLifecycle=function(){var Q=(0,y.default)(p.default.mark(function ae(oe,he,le){var be,pe,_e,ne,ue;return p.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(b(oe),c(he)){Re.next=3;break}throw new Error("rules must be Array");case 3:return be=this._bucketRequestParams("PUT",oe,"lifecycle",le),pe=[],_e={LifecycleConfiguration:{Rule:pe}},he.forEach(function(ke){F(ke),G(ke),ke.id&&(ke.ID=ke.id,delete ke.id),pe.push(ke)}),ne=R(_e,{headers:!0,firstUpperCase:!0}),be.content=ne,be.mime="xml",be.successStatuses=[200],Re.next=13,this.request(be);case 13:return ue=Re.sent,Re.abrupt("return",{res:ue.res});case 15:case"end":return Re.stop()}},ae,this)}));function ee(ae,oe,he){return Q.apply(this,arguments)}return ee}();function F(Q){Q.days&&(Q.expiration={days:Q.days}),Q.date&&(Q.expiration={createdBeforeDate:Q.date})}function P(Q,ee){var ae=Q.days,oe=Q.createdBeforeDate;if(!ae&&!oe)throw new Error("".concat(ee," must includes days or createdBeforeDate"));if(ae&&!/^[1-9][0-9]*$/.test(ae))throw new Error("days must be a positive integer");if(oe&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(oe))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function U(Q){if(!c(Q)&&!T(Q))throw new Error("tag must be Object or Array");Q=T(Q)?[Q]:Q;var ee={},ae=g(Q);ae.forEach(function(oe){ee[oe.key]=oe.value}),k(ee)}function G(Q){if(Q.id&&H(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");U(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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.includes.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkBucketName"),b=m.checkBucketName,v=s("../utils/obj2xml"),c=v.obj2xml,h=_;h.putBucketVersioning=function(){var g=(0,y.default)(p.default.mark(function T(I,R){var N,k,L,H,M=arguments;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(N=M.length>2&&M[2]!==void 0?M[2]:{},b(I),["Enabled","Suspended"].includes(R)){P.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return k=this._bucketRequestParams("PUT",I,"versioning",N),L={VersioningConfiguration:{Status:R}},k.mime="xml",k.content=c(L,{headers:!0}),P.next=10,this.request(k);case 10:return H=P.sent,P.abrupt("return",{res:H.res,status:H.status});case 12:case"end":return P.stop()}},T,this)}));function x(T,I){return g.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkBucketName"),b=m.checkBucketName,v=s("../utils/obj2xml"),c=v.obj2xml,h=s("../utils/isArray"),g=h.isArray,x=_;x.putBucketWebsite=function(){var T=(0,y.default)(p.default.mark(function R(N){var k,L,H,M,F,P,U,G=arguments;return p.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(k=G.length>1&&G[1]!==void 0?G[1]:{},L=G.length>2?G[2]:void 0,b(N),H=this._bucketRequestParams("PUT",N,"website",L),M={Suffix:k.index||"index.html"},F={IndexDocument:M},P={WebsiteConfiguration:F},k.supportSubDir&&(M.SupportSubDir=k.supportSubDir),k.type&&(M.Type=k.type),k.error&&(F.ErrorDocument={Key:k.error}),k.routingRules===void 0){ee.next=14;break}if(g(k.routingRules)){ee.next=13;break}throw new Error("RoutingRules must be Array");case 13:F.RoutingRules={RoutingRule:k.routingRules};case 14:return P=c(P),H.content=P,H.mime="xml",H.successStatuses=[200],ee.next=20,this.request(H);case 20:return U=ee.sent,ee.abrupt("return",{res:U.res});case 22:case"end":return ee.stop()}},R,this)}));function I(R){return T.apply(this,arguments)}return I}()},{"../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,w,_){(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"),_.encodeCallback=function(y,m){if(y.headers=y.headers||{},!Object.prototype.hasOwnProperty.call(y.headers,"x-oss-callback")&&m.callback){var b={callbackUrl:encodeURI(m.callback.url),callbackBody:m.callback.body};m.callback.host&&(b.callbackHost=m.callback.host),m.callback.contentType&&(b.callbackBodyType=m.callback.contentType);var v=u.from(JSON.stringify(b)).toString("base64");if(y.headers["x-oss-callback"]=v,m.callback.customValue){var c={};Object.keys(m.callback.customValue).forEach(function(h){c["x:".concat(h)]=m.callback.customValue[h].toString()}),y.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,w,_){"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(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(_,"__esModule",{value:!0}),_.getReqUrl=void 0;var p=u(s("copy-to")),y=u(s("url")),m=u(s("merge-descriptors")),b=u(s("is-type-of")),v=s("../utils/isIP"),c=s("../utils/checkConfigValid");function h(g){var x={},T=this.options.cname;c.checkConfigValid(this.options.endpoint,"endpoint"),p.default(this.options.endpoint,!1).to(x),g.bucket&&!T&&!v.isIP(x.hostname)&&!this.options.sldEnable&&(x.host="".concat(g.bucket,".").concat(x.host));var I="/";g.bucket&&this.options.sldEnable&&(I+="".concat(g.bucket,"/")),g.object&&(I+=this._escape(g.object).replace(/\+/g,"%2B")),x.pathname=I;var R={};if(g.query&&m.default(R,g.query),g.subres){var N={};b.default.string(g.subres)?N[g.subres]="":b.default.array(g.subres)?g.subres.forEach(function(k){N[k]=""}):N=g.subres,m.default(R,N)}return x.query=R,y.default.format(x)}_.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,w,_){"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"),p=s("url"),y=s("../utils/checkBucketName"),m=y.checkBucketName,b=s("../utils/setRegion"),v=b.setRegion,c=s("../utils/checkConfigValid"),h=c.checkConfigValid;function g(x,T){h(x,"endpoint");var I=p.parse(x);if(I.protocol||(I=p.parse("http".concat(T?"s":"","://").concat(x))),I.protocol!=="http:"&&I.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return I}w.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&&m(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=g(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,w,_){"use strict";var u=s("merge-descriptors"),p=_;u(p,s("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(s,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.concat.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkBucketName"),b=m.checkBucketName,v=s("querystring"),c=s("js-base64"),h=c.Base64.encode,g=_;g.processObjectSave=function(){var T=(0,y.default)(p.default.mark(function R(N,k,L,H){var M,F,P,U;return p.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return x(N,"sourceObject"),x(k,"targetObject"),x(L,"process"),k=this._objectName(k),H&&b(H),M=this._objectRequestParams("POST",N,{subres:"x-oss-process"}),F=H?",b_".concat(h(H)):"",k=h(k),P={"x-oss-process":"".concat(L,"|sys/saveas,o_").concat(k).concat(F)},M.content=v.stringify(P),Q.next=12,this.request(M);case 12:return U=Q.sent,Q.abrupt("return",{res:U.res,status:U.res.status});case 14:case"end":return Q.stop()}},R,this)}));function I(R,N,k,L){return T.apply(this,arguments)}return I}();function x(T,I){if(!T)throw new Error("".concat(I," is required"));if(typeof T!="string")throw new Error("".concat(I," 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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("debug")("ali-oss:multipart-copy"),b=s("copy-to"),v=_;v.uploadPartCopy=function(){var c=(0,y.default)(p.default.mark(function g(x,T,I,R,N){var k,L,H,M,F,P=arguments;return p.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return k=P.length>5&&P[5]!==void 0?P[5]:{},k.headers=k.headers||{},L=k.versionId||k.subres&&k.subres.versionId||null,L?H="/".concat(N.sourceBucketName,"/").concat(encodeURIComponent(N.sourceKey),"?versionId=").concat(L):H="/".concat(N.sourceBucketName,"/").concat(encodeURIComponent(N.sourceKey)),k.headers["x-oss-copy-source"]=H,R&&(k.headers["x-oss-copy-source-range"]="bytes=".concat(R)),k.subres={partNumber:I,uploadId:T},M=this._objectRequestParams("PUT",x,k),M.mime=k.mime,M.successStatuses=[200],G.next=12,this.request(M);case 12:return F=G.sent,G.abrupt("return",{name:x,etag:F.res.headers.etag,res:F.res});case 14:case"end":return G.stop()}},g,this)}));function h(g,x,T,I,R){return c.apply(this,arguments)}return h}(),v.multipartUploadCopy=function(){var c=(0,y.default)(p.default.mark(function g(x,T){var I,R,N,k,L,H,M,F,P,U,G,Q,ee=arguments;return p.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return I=ee.length>2&&ee[2]!==void 0?ee[2]:{},this.resetCancelFlag(),R=I.versionId,N=R===void 0?null:R,k={versionId:N},oe.next=6,this._getObjectMeta(T.sourceBucketName,T.sourceKey,k);case 6:if(L=oe.sent,H=L.res.headers["content-length"],T.startOffset=T.startOffset||0,T.endOffset=T.endOffset||H,!(I.checkpoint&&I.checkpoint.uploadId)){oe.next=14;break}return oe.next=13,this._resumeMultipartCopy(I.checkpoint,T,I);case 13:return oe.abrupt("return",oe.sent);case 14:if(M=102400,F=T.endOffset-T.startOffset,!(F<M)){oe.next=18;break}throw new Error("copySize must not be smaller than ".concat(M));case 18:if(!(I.partSize&&I.partSize<M)){oe.next=20;break}throw new Error("partSize must not be smaller than ".concat(M));case 20:return oe.next=22,this.initMultipartUpload(x,I);case 22:if(P=oe.sent,U=P.uploadId,G=this._getPartSize(F,I.partSize),Q={name:x,copySize:F,partSize:G,uploadId:U,doneParts:[]},!(I&&I.progress)){oe.next=29;break}return oe.next=29,I.progress(0,Q,P.res);case 29:return oe.next=31,this._resumeMultipartCopy(Q,T,I);case 31:return oe.abrupt("return",oe.sent);case 32:case"end":return oe.stop()}},g,this)}));function h(g,x){return c.apply(this,arguments)}return h}(),v._resumeMultipartCopy=function(){var c=(0,y.default)(p.default.mark(function g(x,T,I){var R,N,k,L,H,M,F,P,U,G,Q,ee,ae,oe,he,le,be,pe,_e,ne,ue;return p.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(!this.isCancel()){Re.next=2;break}throw this._makeCancelEvent();case 2:if(R=I.versionId,N=R===void 0?null:R,k={versionId:N},L=x.copySize,H=x.partSize,M=x.uploadId,F=x.doneParts,P=x.name,U=this._divideMultipartCopyParts(L,H,T.startOffset),G=U.length,Q={headers:{}},I.copyheaders&&b(I.copyheaders).to(Q.headers),N&&b(k).to(Q),ee=function(Ne,De,Me){return new Promise(function(){var We=(0,y.default)(p.default.mark(function je(et,it){var ze,xe,fe;return p.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(Z.prev=0,Ne.isCancel()){Z.next=22;break}return ze=U[De-1],xe="".concat(ze.start,"-").concat(ze.end-1),Z.prev=4,Z.next=7,Ne.uploadPartCopy(P,M,De,xe,Me,Q);case 7:fe=Z.sent,Z.next=15;break;case 10:if(Z.prev=10,Z.t0=Z.catch(4),Z.t0.status!==404){Z.next=14;break}throw Ne._makeAbortEvent();case 14:throw Z.t0;case 15:if(Ne.isCancel()){Z.next=22;break}if(m("content-range ".concat(fe.res.headers["content-range"])),F.push({number:De,etag:fe.res.headers.etag}),x.doneParts=F,!(I&&I.progress)){Z.next=22;break}return Z.next=22,I.progress(F.length/G,x,fe.res);case 22:et(),Z.next=29;break;case 25:Z.prev=25,Z.t1=Z.catch(0),Z.t1.partNum=De,it(Z.t1);case 29:case"end":return Z.stop()}},je,null,[[0,25],[4,10]])}));return function(je,et){return We.apply(this,arguments)}}())},ae=Array.from(new Array(G),function(ke,Ne){return Ne+1}),oe=F.map(function(ke){return ke.number}),he=ae.filter(function(ke){return oe.indexOf(ke)<0}),le=5,be=I.parallel||le,!(this.checkBrowserAndVersion("Internet Explorer","10")||be===1)){Re.next=28;break}pe=0;case 18:if(!(pe<he.length)){Re.next=26;break}if(!this.isCancel()){Re.next=21;break}throw this._makeCancelEvent();case 21:return Re.next=23,ee(this,he[pe],T);case 23:pe++,Re.next=18;break;case 26:Re.next=40;break;case 28:return Re.next=30,this._parallelNode(he,be,ee,T);case 30:if(_e=Re.sent,ne=_e.find(function(ke){return ke.name==="abort"}),!ne){Re.next=34;break}throw ne;case 34:if(!this.isCancel()){Re.next=36;break}throw this._makeCancelEvent();case 36:if(!(_e&&_e.length>0)){Re.next=40;break}throw ue=_e[0],ue.message="Failed to copy some parts with error: ".concat(ue.toString()," part_num: ").concat(ue.partNum),ue;case 40:return Re.next=42,this.completeMultipartUpload(P,M,F,I);case 42:return Re.abrupt("return",Re.sent);case 43:case"end":return Re.stop()}},g,this)}));function h(g,x,T){return c.apply(this,arguments)}return h}(),v._divideMultipartCopyParts=function(h,g,x){for(var T=Math.ceil(h/g),I=[],R=0;R<T;R++){var N=g*R+x,k=Math.min(N+g,h+x);I.push({start:N,end:k})}return I},v._getObjectMeta=function(){var c=(0,y.default)(p.default.mark(function g(x,T,I){var R,N;return p.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,I);case 4:return N=L.sent,this.setBucket(R),L.abrupt("return",N);case 7:case"end":return L.stop()}},g,this)}));function h(g,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,w,_){(function(u){(function(){"use strict";var p=s("@babel/runtime/helpers/interopRequireDefault"),y=p(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 m=p(s("@babel/runtime/helpers/asyncToGenerator")),b=s("copy-to"),v=s("./callback"),c=s("./utils/deepCopy"),h=c.deepCopyWith,g=s("./utils/isBuffer"),x=g.isBuffer,T=s("./utils/omit"),I=T.omit,R=_;R.listUploads=function(){var N=(0,m.default)(y.default.mark(function L(H,M){var F,P,U,G;return y.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return M=M||{},F={},b(M).to(F),F.subres="uploads",P=this._objectRequestParams("GET","",F),P.query=H,P.xmlResponse=!0,P.successStatuses=[200],ee.next=10,this.request(P);case 10:return U=ee.sent,G=U.data.Upload||[],Array.isArray(G)||(G=[G]),G=G.map(function(ae){return{name:ae.Key,uploadId:ae.UploadId,initiated:ae.Initiated}}),ee.abrupt("return",{res:U.res,uploads:G,bucket:U.data.Bucket,nextKeyMarker:U.data.NextKeyMarker,nextUploadIdMarker:U.data.NextUploadIdMarker,isTruncated:U.data.IsTruncated==="true"});case 15:case"end":return ee.stop()}},L,this)}));function k(L,H){return N.apply(this,arguments)}return k}(),R.listParts=function(){var N=(0,m.default)(y.default.mark(function L(H,M,F,P){var U,G,Q;return y.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return P=P||{},U={},b(P).to(U),U.subres={uploadId:M},G=this._objectRequestParams("GET",H,U),G.query=F,G.xmlResponse=!0,G.successStatuses=[200],ae.next=10,this.request(G);case 10:return Q=ae.sent,ae.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 ae.stop()}},L,this)}));function k(L,H,M,F){return N.apply(this,arguments)}return k}(),R.abortMultipartUpload=function(){var N=(0,m.default)(y.default.mark(function L(H,M,F){var P,U,G;return y.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return this._stop(),F=F||{},P={},b(F).to(P),P.subres={uploadId:M},U=this._objectRequestParams("DELETE",H,P),U.successStatuses=[204],ee.next=9,this.request(U);case 9:return G=ee.sent,ee.abrupt("return",{res:G.res});case 11:case"end":return ee.stop()}},L,this)}));function k(L,H,M){return N.apply(this,arguments)}return k}(),R.initMultipartUpload=function(){var N=(0,m.default)(y.default.mark(function L(H,M){var F,P,U;return y.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return M=M||{},F={},b(M).to(F),F.headers=F.headers||{},this._convertMetaToHeaders(M.meta,F.headers),F.subres="uploads",P=this._objectRequestParams("POST",H,F),P.mime=M.mime,P.xmlResponse=!0,P.successStatuses=[200],Q.next=12,this.request(P);case 12:return U=Q.sent,Q.abrupt("return",{res:U.res,bucket:U.data.Bucket,name:U.data.Key,uploadId:U.data.UploadId});case 14:case"end":return Q.stop()}},L,this)}));function k(L,H){return N.apply(this,arguments)}return k}(),R.uploadPart=function(){var N=(0,m.default)(y.default.mark(function L(H,M,F,P,U,G,Q){var ee,ae;return y.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(ee={size:G-U},ae=u&&u.browser,!ae){he.next=8;break}return he.next=5,this._createBuffer(P,U,G);case 5:ee.content=he.sent,he.next=11;break;case 8:return he.next=10,this._createStream(P,U,G);case 10:ee.stream=he.sent;case 11:return he.next=13,this._uploadPart(H,M,F,ee,Q);case 13:return he.abrupt("return",he.sent);case 14:case"end":return he.stop()}},L,this)}));function k(L,H,M,F,P,U,G){return N.apply(this,arguments)}return k}(),R.completeMultipartUpload=function(){var N=(0,m.default)(y.default.mark(function L(H,M,F,P){var U,G,Q,ee,ae,oe,he,le;return y.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:for(U=F.concat().sort(function(_e,ne){return _e.number-ne.number}).filter(function(_e,ne,ue){return!ne||_e.number!==ue[ne-1].number}),G=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Q=0;Q<U.length;Q++)ee=U[Q],G+=`<Part>
`,G+="<PartNumber>".concat(ee.number,`</PartNumber>
`),G+="<ETag>".concat(ee.etag,`</ETag>
`),G+=`</Part>
`;return G+="</CompleteMultipartUpload>",P=P||{},ae={},ae=h(P,function(_e){if(x(_e))return null}),ae.subres={uploadId:M},ae.headers=I(ae.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),oe=this._objectRequestParams("POST",H,ae),v.encodeCallback(oe,ae),oe.mime="xml",oe.content=G,oe.headers&&oe.headers["x-oss-callback"]||(oe.xmlResponse=!0),oe.successStatuses=[200],pe.next=17,this.request(oe);case 17:if(he=pe.sent,!P.progress){pe.next=21;break}return pe.next=21,P.progress(1,null,he.res);case 21:return le={res:he.res,bucket:oe.bucket,name:H,etag:he.res.headers.etag},oe.headers&&oe.headers["x-oss-callback"]&&(le.data=JSON.parse(he.data.toString())),pe.abrupt("return",le);case 24:case"end":return pe.stop()}},L,this)}));function k(L,H,M,F){return N.apply(this,arguments)}return k}(),R._uploadPart=function(){var N=(0,m.default)(y.default.mark(function L(H,M,F,P,U){var G,Q,ee,ae;return y.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return U=U||{},G={},b(U).to(G),G.headers=G.headers||{},G.headers["Content-Length"]=P.size,G.headers=I(G.headers,["x-oss-server-side-encryption"]),G.subres={partNumber:F,uploadId:M},Q=this._objectRequestParams("PUT",H,G),Q.mime=G.mime,ee=u&&u.browser,ee?Q.content=P.content:Q.stream=P.stream,Q.successStatuses=[200],Q.disabledMD5=U.disabledMD5,he.next=15,this.request(Q);case 15:if(ae=he.sent,ae.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:H,etag:ae.res.headers.etag,res:ae.res});case 20:case"end":return he.stop()}},L,this)}));function k(L,H,M,F,P){return N.apply(this,arguments)}return k}()}).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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator")),y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("url"),b=s("utility"),v=s("copy-to"),c=s("../../common/signUtils"),h=s("../utils/isIP"),g=h.isIP,x=s("../utils/setSTSToken"),T=x.setSTSToken,I=s("../utils/isFunction"),R=I.isFunction,N=_;N.asyncSignatureUrl=function(){var k=(0,y.default)(p.default.mark(function H(M,F){var P,U,G,Q,ee;return p.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(!g(this.options.endpoint.hostname)){oe.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(F=F||{},M=this._objectName(M),F.method=F.method||"GET",P=b.timestamp()+(F.expires||1800),U={bucket:this.options.bucket,object:M},G=this._getResource(U),!(this.options.stsToken&&R(this.options.refreshSTSToken))){oe.next=11;break}return oe.next=11,T.call(this);case 11:return this.options.stsToken&&(F["security-token"]=this.options.stsToken),Q=c._signatureForURL(this.options.accessKeySecret,F,G,P),ee=m.parse(this._getReqUrl(U)),ee.query={OSSAccessKeyId:this.options.accessKeyId,Expires:P,Signature:Q.Signature},v(Q.subResource).to(ee.query),oe.abrupt("return",ee.format());case 17:case"end":return oe.stop()}},H,this)}));function L(H,M){return k.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=u(s("@babel/runtime/helpers/typeof")),m=u(s("@babel/runtime/helpers/asyncToGenerator")),b=s("../utils/checkBucketName"),v=b.checkBucketName,c=_,h=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];c.copy=function(){var g=(0,m.default)(p.default.mark(function T(I,R,N,k){var L,H,M;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return(0,y.default)(N)==="object"&&(k=N),k=k||{},k.headers=k.headers||{},Object.keys(k.headers).forEach(function(U){k.headers["x-oss-copy-source-".concat(U.toLowerCase())]=k.headers[U]}),(k.meta||Object.keys(k.headers).find(function(U){return h.includes(U.toLowerCase())}))&&(k.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(k.meta,k.headers),R=this._getSourceName(R,N),k.versionId&&(R="".concat(R,"?versionId=").concat(k.versionId)),k.headers["x-oss-copy-source"]=R,L=this._objectRequestParams("PUT",I,k),L.xmlResponse=!0,L.successStatuses=[200,304],P.next=14,this.request(L);case 14:return H=P.sent,M=H.data,M&&(M={etag:M.ETag,lastModified:M.LastModified}),P.abrupt("return",{data:M,res:H.res});case 18:case"end":return P.stop()}},T,this)}));function x(T,I,R,N){return g.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=_;m.delete=function(){var b=(0,y.default)(p.default.mark(function c(h){var g,x,T,I=arguments;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return g=I.length>1&&I[1]!==void 0?I[1]:{},g.subres=Object.assign({},g.subres),g.versionId&&(g.subres.versionId=g.versionId),x=this._objectRequestParams("DELETE",h,g),x.successStatuses=[204],N.next=7,this.request(x);case 7:return T=N.sent,N.abrupt("return",{res:T.res});case 9:case"end":return N.stop()}},c,this)}));function v(c){return b.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("utility"),b=s("../utils/obj2xml"),v=b.obj2xml,c=_;c.deleteMulti=function(){var h=(0,y.default)(p.default.mark(function x(T){var I,R,N,k,L,H,M,F,P,U,G,Q,ee,ae=arguments;return p.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(I=ae.length>1&&ae[1]!==void 0?ae[1]:{},R=[],!(!T||!T.length)){he.next=4;break}throw new Error("names is required");case 4:for(N=0;N<T.length;N++)k={},typeof T[N]=="string"?k.Key=m.escape(this._objectName(T[N])):(L=T[N],H=L.key,M=L.versionId,k.Key=m.escape(this._objectName(H)),k.VersionId=M),R.push(k);return F={Delete:{Quiet:!!I.quiet,Object:R}},P=v(F,{headers:!0}),I.subres=Object.assign({delete:""},I.subres),I.versionId&&(I.subres.versionId=I.versionId),U=this._objectRequestParams("POST","",I),U.mime="xml",U.content=P,U.xmlResponse=!0,U.successStatuses=[200],he.next=16,this.request(U);case 16:return G=he.sent,Q=G.data,ee=Q&&Q.Deleted||null,ee&&(Array.isArray(ee)||(ee=[ee])),he.abrupt("return",{res:G.res,deleted:ee||[]});case 21:case"end":return he.stop()}},x,this)}));function g(x){return h.apply(this,arguments)}return g}()},{"../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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=_;m.deleteObjectTagging=function(){var b=(0,y.default)(p.default.mark(function c(h){var g,x,T,I=arguments;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return g=I.length>1&&I[1]!==void 0?I[1]:{},g.subres=Object.assign({tagging:""},g.subres),g.versionId&&(g.subres.versionId=g.versionId),h=this._objectName(h),x=this._objectRequestParams("DELETE",h,g),x.successStatuses=[204],N.next=8,this.request(x);case 8:return T=N.sent,N.abrupt("return",{status:T.status,res:T.res});case 10:case"end":return N.stop()}},c,this)}));function v(c){return b.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,w,_){"use strict";s("core-js/modules/es.array.concat.js");var u=s("url"),p=s("../utils/isIP"),y=p.isIP,m=_;m.generateObjectUrl=function(v,c){if(y(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),g=this.options.bucket;h.hostname="".concat(g,".").concat(h.hostname),h.host="".concat(g,".").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,w,_){(function(u){(function(){"use strict";var p=s("@babel/runtime/helpers/interopRequireDefault"),y=p(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var m=p(s("@babel/runtime/helpers/asyncToGenerator")),b=s("fs"),v=s("is-type-of"),c=_;c.get=function(){var h=(0,m.default)(y.default.mark(function x(T,I){var R,N,k,L,H,M,F,P,U=arguments;return y.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return R=U.length>2&&U[2]!==void 0?U[2]:{},N=null,k=!1,v.writableStream(I)?N=I:v.string(I)?(N=b.createWriteStream(I),k=!0):R=I,R=R||{},L=u&&u.browser,H=R.responseCacheControl===null?"":"no-cache",M=L&&H?{"response-cache-control":H}:{},R.subres=Object.assign(M,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=N,P.successStatuses=[200,206,304],Q.next=17,this.request(P);case 17:F=Q.sent,k&&N.destroy(),Q.next=28;break;case 21:if(Q.prev=21,Q.t0=Q.catch(11),!k){Q.next=27;break}return N.destroy(),Q.next=27,this._deleteFileSafe(I);case 27:throw Q.t0;case 28:return Q.abrupt("return",{res:F.res,content:F.data});case 29:case"end":return Q.stop()}},x,this,[[11,21]])}));function g(x,T){return h.apply(this,arguments)}return g}()}).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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=_;m.getACL=function(){var b=(0,y.default)(p.default.mark(function c(h){var g,x,T,I=arguments;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return g=I.length>1&&I[1]!==void 0?I[1]:{},g.subres=Object.assign({acl:""},g.subres),g.versionId&&(g.subres.versionId=g.versionId),h=this._objectName(h),x=this._objectRequestParams("GET",h,g),x.successStatuses=[200],x.xmlResponse=!0,N.next=9,this.request(x);case 9:return T=N.sent,N.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 N.stop()}},c,this)}));function v(c){return b.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=_,b=s("../utils/isObject"),v=b.isObject,c=s("../utils/isArray"),h=c.isArray;m.getBucketVersions=g,m.listObjectVersions=g;function g(){return x.apply(this,arguments)}function x(){return x=(0,y.default)(p.default.mark(function R(){var N,k,L,H,M,F,P,U,G=arguments;return p.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(N=G.length>0&&G[0]!==void 0?G[0]:{},k=G.length>1&&G[1]!==void 0?G[1]:{},!(N.versionIdMarker&&N.keyMarker===void 0)){ee.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return k.subres=Object.assign({versions:""},k.subres),k.versionId&&(k.subres.versionId=k.versionId),L=this._objectRequestParams("GET","",k),L.xmlResponse=!0,L.successStatuses=[200],L.query=I(N),ee.next=12,this.request(L);case 12:return H=ee.sent,M=H.data.Version||[],F=H.data.DeleteMarker||[],P=this,M&&(Array.isArray(M)||(M=[M]),M=M.map(function(ae){return{name:ae.Key,url:P._objectUrl(ae.Key),lastModified:ae.LastModified,isLatest:ae.IsLatest==="true",versionId:ae.VersionId,etag:ae.ETag,type:ae.Type,size:Number(ae.Size),storageClass:ae.StorageClass,owner:{id:ae.Owner.ID,displayName:ae.Owner.DisplayName}}})),F&&(h(F)||(F=[F]),F=F.map(function(ae){return{name:ae.Key,lastModified:ae.LastModified,versionId:ae.VersionId,owner:{id:ae.Owner.ID,displayName:ae.Owner.DisplayName}}})),U=H.data.CommonPrefixes||null,U&&(h(U)||(U=[U]),U=U.map(function(ae){return ae.Prefix})),ee.abrupt("return",{res:H.res,objects:M,deleteMarker:F,prefixes:U,nextMarker:H.data.NextKeyMarker||null,NextVersionIdMarker:H.data.NextVersionIdMarker||null,nextKeyMarker:H.data.NextKeyMarker||null,nextVersionIdMarker:H.data.NextVersionIdMarker||null,isTruncated:H.data.IsTruncated==="true"});case 21:case"end":return ee.stop()}},R,this)})),x.apply(this,arguments)}function T(R){return R.replace(/([A-Z])/g,"-$1").toLowerCase()}function I(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N={};return v(R)&&Object.keys(R).forEach(function(k){N[T(k)]=R[k]}),N}},{"../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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=_;m.getObjectMeta=function(){var b=(0,y.default)(p.default.mark(function c(h,g){var x,T;return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return g=g||{},h=this._objectName(h),g.subres=Object.assign({objectMeta:""},g.subres),g.versionId&&(g.subres.versionId=g.versionId),x=this._objectRequestParams("HEAD",h,g),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 b.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=_,b=s("../utils/isObject"),v=b.isObject;m.getObjectTagging=function(){var c=(0,y.default)(p.default.mark(function g(x){var T,I,R,N,k,L,H=arguments;return p.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return T=H.length>1&&H[1]!==void 0?H[1]:{},T.subres=Object.assign({tagging:""},T.subres),T.versionId&&(T.subres.versionId=T.versionId),x=this._objectName(x),I=this._objectRequestParams("GET",x,T),I.successStatuses=[200],F.next=8,this.request(I);case 8:return R=F.sent,F.next=11,this.parseXML(R.data);case 11:return N=F.sent,k=N.TagSet.Tag,k=k&&v(k)?[k]:k||[],L={},k.forEach(function(P){L[P.Key]=P.Value}),F.abrupt("return",{status:R.status,res:R.res,tag:L});case 17:case"end":return F.stop()}},g,this)}));function h(g){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,w,_){"use strict";var u=s("../utils/isIP"),p=u.isIP,y=_;y.getObjectUrl=function(b,v){if(p(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(b))}},{"../utils/isIP":69}],43:[function(s,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=_;m.getSymlink=function(){var b=(0,y.default)(p.default.mark(function c(h){var g,x,T,I,R=arguments;return p.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return g=R.length>1&&R[1]!==void 0?R[1]:{},g.subres=Object.assign({symlink:""},g.subres),g.versionId&&(g.subres.versionId=g.versionId),h=this._objectName(h),x=this._objectRequestParams("GET",h,g),x.successStatuses=[200],k.next=8,this.request(x);case 8:return T=k.sent,I=T.res.headers["x-oss-symlink-target"],k.abrupt("return",{targetName:decodeURIComponent(I),res:T.res});case 11:case"end":return k.stop()}},c,this)}));function v(c){return b.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/checkEnv"),b=m.checkEnv,v=_;v.head=function(){var c=(0,y.default)(p.default.mark(function g(x){var T,I,R,N,k=arguments;return p.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return T=k.length>1&&k[1]!==void 0?k[1]:{},b("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),I=this._objectRequestParams("HEAD",x,T),I.successStatuses=[200,304],H.next=8,this.request(I);case 8:return R=H.sent,N={meta:null,res:R.res,status:R.status},R.status===200&&Object.keys(R.headers).forEach(function(M){M.indexOf("x-oss-meta-")===0&&(N.meta||(N.meta={}),N.meta[M.substring(11)]=R.headers[M])}),H.abrupt("return",N);case 12:case"end":return H.stop()}},g,this)}));function h(g){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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=_;m.putACL=function(){var b=(0,y.default)(p.default.mark(function c(h,g,x){var T,I;return p.default.wrap(function(N){for(;;)switch(N.prev=N.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"]=g,h=this._objectName(h),T=this._objectRequestParams("PUT",h,x),T.successStatuses=[200],N.next=10,this.request(T);case 10:return I=N.sent,N.abrupt("return",{res:I.res});case 12:case"end":return N.stop()}},c,this)}));function v(c,h,g){return b.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("../utils/obj2xml"),b=m.obj2xml,v=s("../utils/checkObjectTag"),c=v.checkObjectTag,h=_;h.putObjectTagging=function(){var g=(0,y.default)(p.default.mark(function T(I,R){var N,k,L,H,M=arguments;return p.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return N=M.length>2&&M[2]!==void 0?M[2]:{},c(R),N.subres=Object.assign({tagging:""},N.subres),N.versionId&&(N.subres.versionId=N.versionId),I=this._objectName(I),k=this._objectRequestParams("PUT",I,N),k.successStatuses=[200],R=Object.keys(R).map(function(U){return{Key:U,Value:R[U]}}),L={Tagging:{TagSet:{Tag:R}}},k.mime="xml",k.content=b(L),P.next=13,this.request(k);case 13:return H=P.sent,P.abrupt("return",{res:H.res,status:H.status});case 15:case"end":return P.stop()}},T,this)}));function x(T,I){return g.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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=_;m.putSymlink=function(){var b=(0,y.default)(p.default.mark(function c(h,g,x){var T,I;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return x=x||{},x.headers=x.headers||{},g=this._escape(this._objectName(g)),this._convertMetaToHeaders(x.meta,x.headers),x.headers["x-oss-symlink-target"]=g,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],N.next=13,this.request(T);case 13:return I=N.sent,N.abrupt("return",{res:I.res});case 15:case"end":return N.stop()}},c,this)}));function v(c,h,g){return b.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,w,_){"use strict";var u=s("url"),p=s("utility"),y=s("copy-to"),m=s("../../common/signUtils"),b=s("../utils/isIP"),v=b.isIP,c=_;c.signatureUrl=function(g,x){if(v(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");x=x||{},g=this._objectName(g),x.method=x.method||"GET";var T=p.timestamp()+(x.expires||1800),I={bucket:this.options.bucket,object:g},R=this._getResource(I);this.options.stsToken&&(x["security-token"]=this.options.stsToken);var N=m._signatureForURL(this.options.accessKeySecret,x,R,T),k=u.parse(this._getReqUrl(I));return k.query={OSSAccessKeyId:this.options.accessKeyId,Expires:T,Signature:N.Signature},y(N.subResource).to(k.query),k.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(s,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=u(s("@babel/runtime/helpers/asyncToGenerator")),m=s("./utils/isArray"),b=m.isArray,v=_;v._parallelNode=function(){var c=(0,y.default)(p.default.mark(function g(x,T,I,R){var N,k,L,H,M,F,P,U;return p.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:N=this,k=[],L=[],H=x.length/T,M=x.length%T,F=M===0?H:(x.length-M)/T+1,P=1,U=0;case 8:if(!(U<x.length)){Q.next=26;break}if(!N.isCancel()){Q.next=11;break}return Q.abrupt("break",26);case 11:if(R?L.push(I(N,x[U],R)):L.push(I(N,x[U])),!(L.length===T||P===F&&U===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),k.push(Q.t0);case 22:L=[];case 23:U++,Q.next=8;break;case 26:return Q.abrupt("return",k);case 27:case"end":return Q.stop()}},g,this,[[13,19]])}));function h(g,x,T,I){return c.apply(this,arguments)}return h}(),v._parallel=function(h,g,x){var T=this;return new Promise(function(I){var R=[];if(g<=0||!h){I(R);return}function N(Q){return function(){if(Q===null)throw new Error("Callback was already called.");var ee=Q;Q=null;for(var ae=arguments.length,oe=new Array(ae),he=0;he<ae;he++)oe[he]=arguments[he];ee.apply(this,oe)}}function k(Q){var ee=-1,ae=Q.length;return function(){return++ee<ae&&!T.isCancel()?{value:Q[ee],key:ee}:null}}var L=k(h),H=!1,M=0,F=!1;function P(Q){M-=1,Q?(H=!0,R.push(Q),I(R)):H&&M<=0?(H=!0,I(R)):F||(T.isCancel()?I(R):G())}function U(Q,ee){x(Q).then(function(ae){ee(null,ae)}).catch(function(ae){ee(ae)})}function G(){for(F=!0;M<g&&!H&&!T.isCancel();){var Q=L();if(Q===null||R.length>0){H=!0,M<=0&&I(R);return}M+=1,U(Q.value,N(P))}F=!1}G()})},v.cancel=function(h){this.options.cancelFlag=!0,b(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(g){if(g.destroyed===!1){var x={name:"cancel",message:"cancel"};g.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,w,_){(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 p=s("./../../shims/crypto/crypto.js"),y=s("is-type-of"),m=s("./utils/lowercaseKeyHeader"),b=m.lowercaseKeyHeader;_.buildCanonicalizedResource=function(c,h){var g="".concat(c),x="?";if(y.string(h)&&h.trim()!=="")g+=x+h;else if(y.array(h))h.sort(),g+=x+h.join("&");else if(h){var T=function(N,k){return N[0]>k[0]?1:N[0]<k[0]?-1:0},I=function(N){g+=x+N,(h[N]||h[N]===0)&&(g+="=".concat(h[N])),x="&"};Object.keys(h).sort(T).forEach(I)}return g},_.buildCanonicalString=function(c,h,g,x){g=g||{};var T=b(g.headers),I="x-oss-",R=[],N={},k=[c.toUpperCase(),T["content-md5"]||"",T["content-type"],x||T["x-oss-date"]];return Object.keys(T).forEach(function(L){var H=L.toLowerCase();H.indexOf(I)===0&&(N[H]=String(T[L]).trim())}),Object.keys(N).sort().forEach(function(L){R.push("".concat(L,":").concat(N[L]))}),k=k.concat(R),k.push(this.buildCanonicalizedResource(h,g.parameters)),k.join(`
`)},_.computeSignature=function(c,h){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",x=p.createHmac("sha1",c);return x.update(u.from(h,g)).digest("base64")},_.authorization=function(c,h,g,x){return"OSS ".concat(c,":").concat(this.computeSignature(h,g,x))},_._signatureForURL=function(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=arguments.length>2?arguments[2]:void 0,x=arguments.length>3?arguments[3]:void 0,T=arguments.length>4?arguments[4]:void 0,I={},R=h.subResource,N=R===void 0?{}:R;if(h.process){var k="x-oss-process";N[k]=h.process}if(h.trafficLimit){var L="x-oss-traffic-limit";N[L]=h.trafficLimit}if(h.response&&Object.keys(h.response).forEach(function(P){var U="response-".concat(P.toLowerCase());N[U]=h.response[P]}),Object.keys(h).forEach(function(P){var U=P.toLowerCase(),G=h[P];U.indexOf("x-oss-")===0?I[U]=G:(U.indexOf("content-md5")===0||U.indexOf("content-type")===0)&&(I[P]=G)}),Object.prototype.hasOwnProperty.call(h,"security-token")&&(N["security-token"]=h["security-token"]),Object.prototype.hasOwnProperty.call(h,"callback")){var H={callbackUrl:encodeURI(h.callback.url),callbackBody:h.callback.body};if(h.callback.host&&(H.callbackHost=h.callback.host),h.callback.contentType&&(H.callbackBodyType=h.callback.contentType),N.callback=u.from(JSON.stringify(H)).toString("base64"),h.callback.customValue){var M={};Object.keys(h.callback.customValue).forEach(function(P){M["x:".concat(P)]=h.callback.customValue[P]}),N["callback-var"]=u.from(JSON.stringify(M)).toString("base64")}}var F=this.buildCanonicalString(h.method,g,{headers:I,parameters:N},x.toString());return{Signature:this.computeSignature(c,F,T),subResource:N}}}).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,w,_){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(_,"__esModule",{value:!0}),_.checkBucketName=void 0,_.checkBucketName=function(u){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=p?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!y.test(u))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(s,w,_){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(_,"__esModule",{value:!0}),_.checkConfigValid=void 0;var u={endpoint:p,region:/^[a-zA-Z0-9\-_]+$/};function p(y){return typeof y=="string"?/^[a-zA-Z0-9._:/-]+$/.test(y):y.host?/^[a-zA-Z0-9._:/-]+$/.test(y.host):!1}_.checkConfigValid=function(y,m){if(u[m]){var b=!0;if(u[m]instanceof Function?b=u[m](y):b=u[m].test(y),!b)throw new Error("The ".concat(m," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(s,w,_){(function(u){(function(){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.checkEnv=void 0;function p(y){u.browser&&console.warn(y)}_.checkEnv=p}).call(this)}).call(this,s("_process"))},{_process:467}],54:[function(s,w,_){"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(_,"__esModule",{value:!0}),_.checkObjectTag=void 0;var u=s("./checkValid"),p=u.checkValid,y=s("./isObject"),m=y.isObject,b=[{validator:function(g){if(typeof g!="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(b,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(b,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function c(h){if(!m(h))throw new Error("tag must be Object");var g=Object.entries(h);if(g.length>10)throw new Error("maximum of 10 tags for a object");var x=["key","value"];g.forEach(function(T){T.forEach(function(I,R){p(I,v[x[R]])})})}_.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,w,_){"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(_,"__esModule",{value:!0}),_.checkValid=void 0;function u(p,y){y.forEach(function(m){if(m.validator)m.validator(p);else if(m.pattern&&!m.pattern.test(p))throw new Error(m.msg)})}_.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,w,_){(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(_,"__esModule",{value:!0}),_.createRequest=void 0;var p=s("./../../../shims/crypto/crypto.js"),y=s("debug")("ali-oss"),m=s("mime"),b=s("dateformat"),v=s("copy-to"),c=s("path"),h=s("./encoder"),g=h.encoder,x=s("./isIP"),T=x.isIP,I=s("./setRegion"),R=I.setRegion,N=s("../client/getReqUrl"),k=N.getReqUrl,L=s("./isDingTalk"),H=L.isDingTalk;function M(U,G){return U[G]||U[G.toLowerCase()]}function F(U,G){delete U[G],delete U[G.toLowerCase()]}function P(U){var G=new Date;this.options.amendTimeSkewed&&(G=+new Date+this.options.amendTimeSkewed);var Q={"x-oss-date":b(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(U.headers).to(Q),M(Q,"Content-Type")||(U.mime&&U.mime.indexOf("/")>0?Q["Content-Type"]=U.mime:H()?Q["Content-Type"]="application/octet-stream":Q["Content-Type"]=m.getType(U.mime||c.extname(U.object||""))),M(Q,"Content-Type")||F(Q,"Content-Type"),U.content&&(U.disabledMD5||(!U.headers||!U.headers["Content-MD5"]?Q["Content-MD5"]=p.createHash("md5").update(u.from(U.content,"utf8")).digest("base64"):Q["Content-MD5"]=U.headers["Content-MD5"]),Q["Content-Length"]||(Q["Content-Length"]=U.content.length));var ee=Object.prototype.hasOwnProperty;for(var ae in Q)Q[ae]&&ee.call(Q,ae)&&(Q[ae]=g(String(Q[ae]),this.options.headerEncoding));var oe=this._getResource(U);if(Q.authorization=this.authorization(U.method,oe,U.subres,Q,this.options.headerEncoding),T(this.options.endpoint.hostname)){var he=this.options,le=he.region,be=he.internal,pe=he.secure,_e=R(le,be,pe);Q.host="".concat(U.bucket,".").concat(_e.host)}var ne=k.bind(this)(U);y("request %s %s, with headers %j, !!stream: %s",U.method,ne,Q,!!U.stream);var ue=U.timeout||this.options.timeout,ce={method:U.method,content:U.content,stream:U.stream,headers:Q,timeout:ue,writeStream:U.writeStream,customResponse:U.customResponse,ctx:U.ctx||this.ctx};return this.agent&&(ce.agent=this.agent),this.httpsAgent&&(ce.httpsAgent=this.httpsAgent),ce.enableProxy=!!this.options.enableProxy,ce.proxy=this.options.proxy?this.options.proxy:null,{url:ne,params:ce}}_.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,w,_){"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(_,"__esModule",{value:!0}),_.dataFix=void 0;var u=s("./isObject"),p=["true","TRUE","1",1],y=["false","FALSE","0",0];function m(c,h,g){if(u.isObject(c)){var x=h.remove,T=x===void 0?[]:x,I=h.rename,R=I===void 0?{}:I,N=h.camel,k=N===void 0?[]:N,L=h.bool,H=L===void 0?[]:L,M=h.lowerFirst,F=M===void 0?!1:M;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]]))}),k.forEach(function(P){if(c[P]){var U=P.replace(/^(.)/,function(G){return G.toLowerCase()}).replace(/-(\w)/g,function(G,Q){return Q.toUpperCase()});c[U]||(c[U]=c[P])}}),H.forEach(function(P){c[P]=b(c[P])}),typeof g=="function"&&g(c),v(c,F),m}}_.dataFix=m;function b(c){return c?p.includes(c)?!0:y.includes(c)?!1:c:!1}function v(c,h){h&&Object.keys(c).forEach(function(g){var x=g.replace(/^\w/,function(T){return T.toLowerCase()});typeof c[x]=="undefined"&&(c[x]=c[g],delete c[g])})}},{"./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,w,_){"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 p=u(s("@babel/runtime/helpers/typeof"));Object.defineProperty(_,"__esModule",{value:!0}),_.deepCopyWith=_.deepCopy=void 0;var y=s("./isBuffer");_.deepCopy=function(m){if(m===null||(0,p.default)(m)!=="object")return m;if(y.isBuffer(m))return m.slice();var b=Array.isArray(m)?[]:{};return Object.keys(m).forEach(function(v){b[v]=_.deepCopy(m[v])}),b},_.deepCopyWith=function(m,b){function v(c,h,g){var x=b(c,h,g);if(x!==void 0)return x;if(c===null||(0,p.default)(c)!=="object")return c;if(y.isBuffer(c))return c.slice();var T=Array.isArray(c)?[]:{};return Object.keys(c).forEach(function(I){T[I]=v(c[I],I,c)}),T}return b?v(m,"",null):_.deepCopy(m)}},{"./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,w,_){(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(_,"__esModule",{value:!0}),_.encoder=void 0;function p(y){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return m==="utf-8"?y:u.from(y).toString("latin1")}_.encoder=p}).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,w,_){"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(_,"__esModule",{value:!0}),_.formatInventoryConfig=void 0;var u=s("../utils/dataFix"),p=s("../utils/isObject"),y=s("../utils/isArray"),m=s("../utils/formatObjKey");function b(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return h&&p.isObject(c)&&(c=[c]),y.isArray(c)?c=c.map(v):c=v(c),c}_.formatInventoryConfig=b;function v(c){return u.dataFix(c,{bool:["IsEnabled"]},function(h){var g,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,!((g=h==null?void 0:h.OptionalFields)===null||g===void 0)&&g.Field&&!y.isArray((x=h.OptionalFields)===null||x===void 0?void 0:x.Field)&&(h.OptionalFields.Field=[h.OptionalFields.Field])}),c=m.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,w,_){"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 p=u(s("@babel/runtime/helpers/typeof"));Object.defineProperty(_,"__esModule",{value:!0}),_.formatObjKey=void 0;function y(b,v,c){if(b===null||(0,p.default)(b)!=="object")return b;var h;if(Array.isArray(b)){h=[];for(var g=0;g<b.length;g++)h.push(y(b[g],v,c))}else h={},Object.keys(b).forEach(function(x){h[m(x,v,c)]=y(b[x],v,c)});return h}_.formatObjKey=y;function m(b,v,c){return c&&c.exclude&&c.exclude.includes(b)||(v==="firstUpperCase"?b=b.replace(/^./,function(h){return h.toUpperCase()}):v==="firstLowerCase"&&(b=b.replace(/^./,function(h){return h.toLowerCase()}))),b}},{"@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,w,_){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(_,"__esModule",{value:!0}),_.getStrBytesCount=void 0;function u(p){for(var y=0,m=0;m<p.length;m++){var b=p.charAt(m);/^[\u00-\uff]$/.test(b)?y+=1:y+=2}return y}_.getStrBytesCount=u},{"core-js/modules/es.regexp.exec.js":300}],63:[function(s,w,_){"use strict";s("core-js/modules/es.object.to-string.js"),Object.defineProperty(_,"__esModule",{value:!0}),_.isArray=void 0,_.isArray=function(u){return Object.prototype.toString.call(u)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(s,w,_){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.isBlob=void 0;function u(p){return typeof Blob!="undefined"&&p instanceof Blob}_.isBlob=u},{}],65:[function(s,w,_){(function(u){(function(){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.isBuffer=void 0;function p(y){return u.isBuffer(y)}_.isBuffer=p}).call(this)}).call(this,{isBuffer:s("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(s,w,_){(function(u){(function(){"use strict";s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.string.includes.js"),Object.defineProperty(_,"__esModule",{value:!0}),_.isDingTalk=void 0;function p(){return!!(u.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}_.isDingTalk=p}).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,w,_){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.isFile=void 0,_.isFile=function(u){return typeof File!="undefined"&&u instanceof File}},{}],68:[function(s,w,_){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.isFunction=void 0,_.isFunction=function(u){return typeof u=="function"}},{}],69:[function(s,w,_){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(_,"__esModule",{value:!0}),_.isIP=void 0,_.isIP=function(u){var p=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,y=/^\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 p.test(u)||y.test(u)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(s,w,_){"use strict";s("core-js/modules/es.object.to-string.js"),Object.defineProperty(_,"__esModule",{value:!0}),_.isObject=void 0,_.isObject=function(u){return Object.prototype.toString.call(u)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(s,w,_){"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(_,"__esModule",{value:!0}),_.lowercaseKeyHeader=void 0;var u=s("./isObject");function p(y){var m={};return u.isObject(y)&&Object.keys(y).forEach(function(b){m[b.toLowerCase()]=y[b]}),m}_.lowercaseKeyHeader=p},{"./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,w,_){"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(_,"__esModule",{value:!0}),_.obj2xml=void 0;var u=s("./formatObjKey");function p(m){return Object.prototype.toString.call(m).replace(/(.*? |])/g,"").toLowerCase()}function y(m,b){var v="";return b&&b.headers&&(v=`<?xml version="1.0" encoding="UTF-8"?>
`),b&&b.firstUpperCase&&(m=u.formatObjKey(m,"firstUpperCase")),p(m)==="object"?Object.keys(m).forEach(function(c){p(m[c])!=="undefined"&&p(m[c])!=="null"&&(p(m[c])==="string"||p(m[c])==="number"?v+="<".concat(c,">").concat(m[c],"</").concat(c,">"):p(m[c])==="object"?v+="<".concat(c,">").concat(y(m[c]),"</").concat(c,">"):p(m[c])==="array"?v+=m[c].map(function(h){return"<".concat(c,">").concat(y(h),"</").concat(c,">")}).join(""):v+="<".concat(c,">").concat(m[c].toString(),"</").concat(c,">"))}):v+=m.toString(),v}_.obj2xml=y},{"./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,w,_){"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(b,v){var c=typeof Symbol!="undefined"&&b[Symbol.iterator]||b["@@iterator"];if(!c){if(Array.isArray(b)||(c=p(b))||v&&b&&typeof b.length=="number"){c&&(b=c);var h=0,g=function(){};return{s:g,n:function(){return h>=b.length?{done:!0}:{done:!1,value:b[h++]}},e:function(N){throw N},f:g}}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,I;return{s:function(){c=c.call(b)},n:function(){var N=c.next();return x=N.done,N},e:function(N){T=!0,I=N},f:function(){try{!x&&c.return!=null&&c.return()}finally{if(T)throw I}}}}function p(b,v){if(b){if(typeof b=="string")return y(b,v);var c=Object.prototype.toString.call(b).slice(8,-1);if(c==="Object"&&b.constructor&&(c=b.constructor.name),c==="Map"||c==="Set")return Array.from(b);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return y(b,v)}}function y(b,v){(v==null||v>b.length)&&(v=b.length);for(var c=0,h=new Array(v);c<v;c++)h[c]=b[c];return h}Object.defineProperty(_,"__esModule",{value:!0}),_.omit=void 0;function m(b,v){var c=Object.assign({},b),h=u(v),g;try{for(h.s();!(g=h.n()).done;){var x=g.value;delete c[x]}}catch(T){h.e(T)}finally{h.f()}return c}_.omit=m},{"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,w,_){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),Object.defineProperty(_,"__esModule",{value:!0}),_.retry=void 0;function u(p,y){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=0,v=m.retryDelay,c=v===void 0?500:v,h=m.errorHandler,g=h===void 0?function(){return!0}:h,x=function T(){for(var I=arguments.length,R=new Array(I),N=0;N<I;N++)R[N]=arguments[N];return new Promise(function(k,L){p.apply(void 0,R).then(function(H){b=0,k(H)}).catch(function(H){b<y&&g(H)?(b++,setTimeout(function(){k(T.apply(void 0,R))},c)):(b=0,L(H))})})};return x}_.retry=u},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(s,w,_){"use strict";var u=function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(_,"__esModule",{value:!0}),_.setRegion=void 0;var p=u(s("url")),y=s("./checkConfigValid");function m(b){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;y.checkConfigValid(b,"region");var h=c?"https://":"http://",g=v?"-internal.aliyuncs.com":".aliyuncs.com",x="vpc100-oss-cn-";return b.substr(0,x.length)===x&&(g=".aliyuncs.com"),p.default.parse(h+b+g)}_.setRegion=m},{"./checkConfigValid":52,url:472}],76:[function(s,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(_,"__esModule",{value:!0}),_.checkCredentials=_.setSTSToken=void 0;var m=s("./formatObjKey");function b(){return v.apply(this,arguments)}function v(){return v=(0,y.default)(p.default.mark(function h(){var g,x;return p.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(this.options||(this.options={}),g=new Date,!this.stsTokenFreshTime){I.next=14;break}if(!(+g-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){I.next=12;break}return this.stsTokenFreshTime=g,I.next=7,this.options.refreshSTSToken();case 7:x=I.sent,x=m.formatObjKey(x,"firstLowerCase"),x.securityToken&&(x.stsToken=x.securityToken),c(x),Object.assign(this.options,x);case 12:I.next=15;break;case 14:this.stsTokenFreshTime=g;case 15:return I.abrupt("return",null);case 16:case"end":return I.stop()}},h,this)})),v.apply(this,arguments)}_.setSTSToken=b;function c(h){var g=["accessKeySecret","accessKeyId","stsToken"],x=Object.keys(h);g.forEach(function(T){if(!x.find(function(I){return I===T}))throw Error("refreshSTSToken must return contains ".concat(T))})}_.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,w,_){function u(y,m,b,v,c,h,g){try{var x=y[h](g),T=x.value}catch(I){b(I);return}x.done?m(T):Promise.resolve(T).then(v,c)}function p(y){return function(){var m=this,b=arguments;return new Promise(function(v,c){var h=y.apply(m,b);function g(T){u(h,v,c,g,x,"next",T)}function x(T){u(h,v,c,g,x,"throw",T)}g(void 0)})}}w.exports=p,w.exports.__esModule=!0,w.exports.default=w.exports},{}],78:[function(s,w,_){function u(p){return p&&p.__esModule?p:{default:p}}w.exports=u,w.exports.__esModule=!0,w.exports.default=w.exports},{}],79:[function(s,w,_){function u(p){"@babel/helpers - typeof";return w.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},w.exports.__esModule=!0,w.exports.default=w.exports,u(p)}w.exports=u,w.exports.__esModule=!0,w.exports.default=w.exports},{}],80:[function(s,w,_){w.exports=s("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(s,w,_){w.exports=u,w.exports.HttpsAgent=u;function u(){}},{}],82:[function(s,w,_){(function(u){(function(){"use strict";var p=s("object-assign");function y(le,be){if(le===be)return 0;for(var pe=le.length,_e=be.length,ne=0,ue=Math.min(pe,_e);ne<ue;++ne)if(le[ne]!==be[ne]){pe=le[ne],_e=be[ne];break}return pe<_e?-1:_e<pe?1:0}function m(le){return u.Buffer&&typeof u.Buffer.isBuffer=="function"?u.Buffer.isBuffer(le):!!(le!=null&&le._isBuffer)}var b=s("util/"),v=Object.prototype.hasOwnProperty,c=Array.prototype.slice,h=function(){return function(){}.name==="foo"}();function g(le){return Object.prototype.toString.call(le)}function x(le){return m(le)||typeof u.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(le):le?!!(le instanceof DataView||le.buffer&&le.buffer instanceof ArrayBuffer):!1}var T=w.exports=M,I=/\s*function\s+([^\(\s]*)\s*/;function R(le){if(b.isFunction(le)){if(h)return le.name;var be=le.toString(),pe=be.match(I);return pe&&pe[1]}}T.AssertionError=function(be){this.name="AssertionError",this.actual=be.actual,this.expected=be.expected,this.operator=be.operator,be.message?(this.message=be.message,this.generatedMessage=!1):(this.message=L(this),this.generatedMessage=!0);var pe=be.stackStartFunction||H;if(Error.captureStackTrace)Error.captureStackTrace(this,pe);else{var _e=new Error;if(_e.stack){var ne=_e.stack,ue=R(pe),ce=ne.indexOf(`
`+ue);if(ce>=0){var Re=ne.indexOf(`
`,ce+1);ne=ne.substring(Re+1)}this.stack=ne}}},b.inherits(T.AssertionError,Error);function N(le,be){return typeof le=="string"?le.length<be?le:le.slice(0,be):le}function k(le){if(h||!b.isFunction(le))return b.inspect(le);var be=R(le),pe=be?": "+be:"";return"[Function"+pe+"]"}function L(le){return N(k(le.actual),128)+" "+le.operator+" "+N(k(le.expected),128)}function H(le,be,pe,_e,ne){throw new T.AssertionError({message:pe,actual:le,expected:be,operator:_e,stackStartFunction:ne})}T.fail=H;function M(le,be){le||H(le,!0,be,"==",T.ok)}T.ok=M,T.equal=function(be,pe,_e){be!=pe&&H(be,pe,_e,"==",T.equal)},T.notEqual=function(be,pe,_e){be==pe&&H(be,pe,_e,"!=",T.notEqual)},T.deepEqual=function(be,pe,_e){F(be,pe,!1)||H(be,pe,_e,"deepEqual",T.deepEqual)},T.deepStrictEqual=function(be,pe,_e){F(be,pe,!0)||H(be,pe,_e,"deepStrictEqual",T.deepStrictEqual)};function F(le,be,pe,_e){if(le===be)return!0;if(m(le)&&m(be))return y(le,be)===0;if(b.isDate(le)&&b.isDate(be))return le.getTime()===be.getTime();if(b.isRegExp(le)&&b.isRegExp(be))return le.source===be.source&&le.global===be.global&&le.multiline===be.multiline&&le.lastIndex===be.lastIndex&&le.ignoreCase===be.ignoreCase;if((le===null||typeof le!="object")&&(be===null||typeof be!="object"))return pe?le===be:le==be;if(x(le)&&x(be)&&g(le)===g(be)&&!(le instanceof Float32Array||le instanceof Float64Array))return y(new Uint8Array(le.buffer),new Uint8Array(be.buffer))===0;if(m(le)!==m(be))return!1;_e=_e||{actual:[],expected:[]};var ne=_e.actual.indexOf(le);return ne!==-1&&ne===_e.expected.indexOf(be)?!0:(_e.actual.push(le),_e.expected.push(be),U(le,be,pe,_e))}function P(le){return Object.prototype.toString.call(le)=="[object Arguments]"}function U(le,be,pe,_e){if(le==null||be===null||be===void 0)return!1;if(b.isPrimitive(le)||b.isPrimitive(be))return le===be;if(pe&&Object.getPrototypeOf(le)!==Object.getPrototypeOf(be))return!1;var ne=P(le),ue=P(be);if(ne&&!ue||!ne&&ue)return!1;if(ne)return le=c.call(le),be=c.call(be),F(le,be,pe);var ce=he(le),Re=he(be),ke,Ne;if(ce.length!==Re.length)return!1;for(ce.sort(),Re.sort(),Ne=ce.length-1;Ne>=0;Ne--)if(ce[Ne]!==Re[Ne])return!1;for(Ne=ce.length-1;Ne>=0;Ne--)if(ke=ce[Ne],!F(le[ke],be[ke],pe,_e))return!1;return!0}T.notDeepEqual=function(be,pe,_e){F(be,pe,!1)&&H(be,pe,_e,"notDeepEqual",T.notDeepEqual)},T.notDeepStrictEqual=G;function G(le,be,pe){F(le,be,!0)&&H(le,be,pe,"notDeepStrictEqual",G)}T.strictEqual=function(be,pe,_e){be!==pe&&H(be,pe,_e,"===",T.strictEqual)},T.notStrictEqual=function(be,pe,_e){be===pe&&H(be,pe,_e,"!==",T.notStrictEqual)};function Q(le,be){if(!le||!be)return!1;if(Object.prototype.toString.call(be)=="[object RegExp]")return be.test(le);try{if(le instanceof be)return!0}catch(pe){}return Error.isPrototypeOf(be)?!1:be.call({},le)===!0}function ee(le){var be;try{le()}catch(pe){be=pe}return be}function ae(le,be,pe,_e){var ne;if(typeof be!="function")throw new TypeError('"block" argument must be a function');typeof pe=="string"&&(_e=pe,pe=null),ne=ee(be),_e=(pe&&pe.name?" ("+pe.name+").":".")+(_e?" "+_e:"."),le&&!ne&&H(ne,pe,"Missing expected exception"+_e);var ue=typeof _e=="string",ce=!le&&b.isError(ne),Re=!le&&ne&&!pe;if((ce&&ue&&Q(ne,pe)||Re)&&H(ne,pe,"Got unwanted exception"+_e),le&&ne&&pe&&!Q(ne,pe)||!le&&ne)throw ne}T.throws=function(le,be,pe){ae(!0,le,be,pe)},T.doesNotThrow=function(le,be,pe){ae(!1,le,be,pe)},T.ifError=function(le){if(le)throw le};function oe(le,be){le||H(le,!0,be,"==",oe)}T.strict=p(oe,T,{equal:T.strictEqual,deepEqual:T.deepStrictEqual,notEqual:T.notStrictEqual,notDeepEqual:T.notDeepStrictEqual}),T.strict.strict=T.strict;var he=Object.keys||function(le){var be=[];for(var pe in le)v.call(le,pe)&&be.push(pe);return be}}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(s,w,_){typeof Object.create=="function"?w.exports=function(p,y){p.super_=y,p.prototype=Object.create(y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:w.exports=function(p,y){p.super_=y;var m=function(){};m.prototype=y.prototype,p.prototype=new m,p.prototype.constructor=p}},{}],84:[function(s,w,_){w.exports=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}},{}],85:[function(s,w,_){(function(u,p){(function(){var y=/%[sdj%]/g;_.format=function(Re){if(!U(Re)){for(var ke=[],Ne=0;Ne<arguments.length;Ne++)ke.push(v(arguments[Ne]));return ke.join(" ")}for(var Ne=1,De=arguments,Me=De.length,We=String(Re).replace(y,function(et){if(et==="%%")return"%";if(Ne>=Me)return et;switch(et){case"%s":return String(De[Ne++]);case"%d":return Number(De[Ne++]);case"%j":try{return JSON.stringify(De[Ne++])}catch(it){return"[Circular]"}default:return et}}),je=De[Ne];Ne<Me;je=De[++Ne])M(je)||!ae(je)?We+=" "+je:We+=" "+v(je);return We},_.deprecate=function(Re,ke){if(Q(p.process))return function(){return _.deprecate(Re,ke).apply(this,arguments)};if(u.noDeprecation===!0)return Re;var Ne=!1;function De(){if(!Ne){if(u.throwDeprecation)throw new Error(ke);u.traceDeprecation?console.trace(ke):console.error(ke),Ne=!0}return Re.apply(this,arguments)}return De};var m={},b;_.debuglog=function(Re){if(Q(b)&&(b=u.env.NODE_DEBUG||""),Re=Re.toUpperCase(),!m[Re])if(new RegExp("\\b"+Re+"\\b","i").test(b)){var ke=u.pid;m[Re]=function(){var Ne=_.format.apply(_,arguments);console.error("%s %d: %s",Re,ke,Ne)}}else m[Re]=function(){};return m[Re]};function v(Re,ke){var Ne={seen:[],stylize:h};return arguments.length>=3&&(Ne.depth=arguments[2]),arguments.length>=4&&(Ne.colors=arguments[3]),H(ke)?Ne.showHidden=ke:ke&&_._extend(Ne,ke),Q(Ne.showHidden)&&(Ne.showHidden=!1),Q(Ne.depth)&&(Ne.depth=2),Q(Ne.colors)&&(Ne.colors=!1),Q(Ne.customInspect)&&(Ne.customInspect=!0),Ne.colors&&(Ne.stylize=c),x(Ne,Re,Ne.depth)}_.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(Re,ke){var Ne=v.styles[ke];return Ne?"\x1B["+v.colors[Ne][0]+"m"+Re+"\x1B["+v.colors[Ne][1]+"m":Re}function h(Re,ke){return Re}function g(Re){var ke={};return Re.forEach(function(Ne,De){ke[Ne]=!0}),ke}function x(Re,ke,Ne){if(Re.customInspect&&ke&&le(ke.inspect)&&ke.inspect!==_.inspect&&!(ke.constructor&&ke.constructor.prototype===ke)){var De=ke.inspect(Ne,Re);return U(De)||(De=x(Re,De,Ne)),De}var Me=T(Re,ke);if(Me)return Me;var We=Object.keys(ke),je=g(We);if(Re.showHidden&&(We=Object.getOwnPropertyNames(ke)),he(ke)&&(We.indexOf("message")>=0||We.indexOf("description")>=0))return I(ke);if(We.length===0){if(le(ke)){var et=ke.name?": "+ke.name:"";return Re.stylize("[Function"+et+"]","special")}if(ee(ke))return Re.stylize(RegExp.prototype.toString.call(ke),"regexp");if(oe(ke))return Re.stylize(Date.prototype.toString.call(ke),"date");if(he(ke))return I(ke)}var it="",ze=!1,xe=["{","}"];if(L(ke)&&(ze=!0,xe=["[","]"]),le(ke)){var fe=ke.name?": "+ke.name:"";it=" [Function"+fe+"]"}if(ee(ke)&&(it=" "+RegExp.prototype.toString.call(ke)),oe(ke)&&(it=" "+Date.prototype.toUTCString.call(ke)),he(ke)&&(it=" "+I(ke)),We.length===0&&(!ze||ke.length==0))return xe[0]+it+xe[1];if(Ne<0)return ee(ke)?Re.stylize(RegExp.prototype.toString.call(ke),"regexp"):Re.stylize("[Object]","special");Re.seen.push(ke);var W;return ze?W=R(Re,ke,Ne,je,We):W=We.map(function(Z){return N(Re,ke,Ne,je,Z,ze)}),Re.seen.pop(),k(W,it,xe)}function T(Re,ke){if(Q(ke))return Re.stylize("undefined","undefined");if(U(ke)){var Ne="'"+JSON.stringify(ke).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Re.stylize(Ne,"string")}if(P(ke))return Re.stylize(""+ke,"number");if(H(ke))return Re.stylize(""+ke,"boolean");if(M(ke))return Re.stylize("null","null")}function I(Re){return"["+Error.prototype.toString.call(Re)+"]"}function R(Re,ke,Ne,De,Me){for(var We=[],je=0,et=ke.length;je<et;++je)ce(ke,String(je))?We.push(N(Re,ke,Ne,De,String(je),!0)):We.push("");return Me.forEach(function(it){it.match(/^\d+$/)||We.push(N(Re,ke,Ne,De,it,!0))}),We}function N(Re,ke,Ne,De,Me,We){var je,et,it;if(it=Object.getOwnPropertyDescriptor(ke,Me)||{value:ke[Me]},it.get?it.set?et=Re.stylize("[Getter/Setter]","special"):et=Re.stylize("[Getter]","special"):it.set&&(et=Re.stylize("[Setter]","special")),ce(De,Me)||(je="["+Me+"]"),et||(Re.seen.indexOf(it.value)<0?(M(Ne)?et=x(Re,it.value,null):et=x(Re,it.value,Ne-1),et.indexOf(`
`)>-1&&(We?et=et.split(`
`).map(function(ze){return" "+ze}).join(`
`).substr(2):et=`
`+et.split(`
`).map(function(ze){return" "+ze}).join(`
`))):et=Re.stylize("[Circular]","special")),Q(je)){if(We&&Me.match(/^\d+$/))return et;je=JSON.stringify(""+Me),je.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(je=je.substr(1,je.length-2),je=Re.stylize(je,"name")):(je=je.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),je=Re.stylize(je,"string"))}return je+": "+et}function k(Re,ke,Ne){var De=0,Me=Re.reduce(function(We,je){return De++,je.indexOf(`
`)>=0&&De++,We+je.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Me>60?Ne[0]+(ke===""?"":ke+`
`)+" "+Re.join(`,
`)+" "+Ne[1]:Ne[0]+ke+" "+Re.join(", ")+" "+Ne[1]}function L(Re){return Array.isArray(Re)}_.isArray=L;function H(Re){return typeof Re=="boolean"}_.isBoolean=H;function M(Re){return Re===null}_.isNull=M;function F(Re){return Re==null}_.isNullOrUndefined=F;function P(Re){return typeof Re=="number"}_.isNumber=P;function U(Re){return typeof Re=="string"}_.isString=U;function G(Re){return typeof Re=="symbol"}_.isSymbol=G;function Q(Re){return Re===void 0}_.isUndefined=Q;function ee(Re){return ae(Re)&&pe(Re)==="[object RegExp]"}_.isRegExp=ee;function ae(Re){return typeof Re=="object"&&Re!==null}_.isObject=ae;function oe(Re){return ae(Re)&&pe(Re)==="[object Date]"}_.isDate=oe;function he(Re){return ae(Re)&&(pe(Re)==="[object Error]"||Re instanceof Error)}_.isError=he;function le(Re){return typeof Re=="function"}_.isFunction=le;function be(Re){return Re===null||typeof Re=="boolean"||typeof Re=="number"||typeof Re=="string"||typeof Re=="symbol"||typeof Re=="undefined"}_.isPrimitive=be,_.isBuffer=s("./support/isBuffer");function pe(Re){return Object.prototype.toString.call(Re)}function _e(Re){return Re<10?"0"+Re.toString(10):Re.toString(10)}var ne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ue(){var Re=new Date,ke=[_e(Re.getHours()),_e(Re.getMinutes()),_e(Re.getSeconds())].join(":");return[Re.getDate(),ne[Re.getMonth()],ke].join(" ")}_.log=function(){console.log("%s - %s",ue(),_.format.apply(_,arguments))},_.inherits=s("inherits"),_._extend=function(Re,ke){if(!ke||!ae(ke))return Re;for(var Ne=Object.keys(ke),De=Ne.length;De--;)Re[Ne[De]]=ke[Ne[De]];return Re};function ce(Re,ke){return Object.prototype.hasOwnProperty.call(Re,ke)}}).call(this)}).call(this,s("_process"),typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(s,w,_){(function(u){(function(){"use strict";var p=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],y=typeof globalThis=="undefined"?u:globalThis;w.exports=function(){for(var b=[],v=0;v<p.length;v++)typeof y[p[v]]=="function"&&(b[b.length]=p[v]);return b}}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(s,w,_){"use strict";_.byteLength=h,_.toByteArray=x,_.fromByteArray=R;for(var u=[],p=[],y=typeof Uint8Array!="undefined"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,v=m.length;b<v;++b)u[b]=m[b],p[m.charCodeAt(b)]=b;p[45]=62,p[95]=63;function c(N){var k=N.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var L=N.indexOf("=");L===-1&&(L=k);var H=L===k?0:4-L%4;return[L,H]}function h(N){var k=c(N),L=k[0],H=k[1];return(L+H)*3/4-H}function g(N,k,L){return(k+L)*3/4-L}function x(N){var k,L=c(N),H=L[0],M=L[1],F=new y(g(N,H,M)),P=0,U=M>0?H-4:H,G;for(G=0;G<U;G+=4)k=p[N.charCodeAt(G)]<<18|p[N.charCodeAt(G+1)]<<12|p[N.charCodeAt(G+2)]<<6|p[N.charCodeAt(G+3)],F[P++]=k>>16&255,F[P++]=k>>8&255,F[P++]=k&255;return M===2&&(k=p[N.charCodeAt(G)]<<2|p[N.charCodeAt(G+1)]>>4,F[P++]=k&255),M===1&&(k=p[N.charCodeAt(G)]<<10|p[N.charCodeAt(G+1)]<<4|p[N.charCodeAt(G+2)]>>2,F[P++]=k>>8&255,F[P++]=k&255),F}function T(N){return u[N>>18&63]+u[N>>12&63]+u[N>>6&63]+u[N&63]}function I(N,k,L){for(var H,M=[],F=k;F<L;F+=3)H=(N[F]<<16&16711680)+(N[F+1]<<8&65280)+(N[F+2]&255),M.push(T(H));return M.join("")}function R(N){for(var k,L=N.length,H=L%3,M=[],F=16383,P=0,U=L-H;P<U;P+=F)M.push(I(N,P,P+F>U?U:P+F));return H===1?(k=N[L-1],M.push(u[k>>2]+u[k<<4&63]+"==")):H===2&&(k=(N[L-2]<<8)+N[L-1],M.push(u[k>>10]+u[k>>4&63]+u[k<<2&63]+"=")),M.join("")}},{}],88:[function(s,w,_){(function(u,p,y){typeof w!="undefined"&&w.exports?w.exports=y():typeof S=="function"&&S.amd?S(p,y):u[p]=y()})(this,"bowser",function(){var u=!0;function p(g){function x(ke){var Ne=g.match(ke);return Ne&&Ne.length>1&&Ne[1]||""}function T(ke){var Ne=g.match(ke);return Ne&&Ne.length>1&&Ne[2]||""}var I=x(/(ipod|iphone|ipad)/i).toLowerCase(),R=/like android/i.test(g),N=!R&&/android/i.test(g),k=/nexus\s*[0-6]\s*/i.test(g),L=!k&&/nexus\s*[0-9]+/i.test(g),H=/CrOS/.test(g),M=/silk/i.test(g),F=/sailfish/i.test(g),P=/tizen/i.test(g),U=/(web|hpw)(o|0)s/i.test(g),G=/windows phone/i.test(g),Q=/SamsungBrowser/i.test(g),ee=!G&&/windows/i.test(g),ae=!I&&!M&&/macintosh/i.test(g),oe=!N&&!F&&!P&&!U&&/linux/i.test(g),he=T(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),le=x(/version\/(\d+(\.\d+)?)/i),be=/tablet/i.test(g)&&!/tablet pc/i.test(g),pe=!be&&/[^-]mobi/i.test(g),_e=/xbox/i.test(g),ne;/opera/i.test(g)?ne={name:"Opera",opera:u,version:le||x(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(g)?ne={name:"Opera",opera:u,version:x(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||le}:/SamsungBrowser/i.test(g)?ne={name:"Samsung Internet for Android",samsungBrowser:u,version:le||x(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(g)?ne={name:"NAVER Whale browser",whale:u,version:x(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(g)?ne={name:"MZ Browser",mzbrowser:u,version:x(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(g)?ne={name:"Opera Coast",coast:u,version:le||x(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(g)?ne={name:"Focus",focus:u,version:x(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(g)?ne={name:"Yandex Browser",yandexbrowser:u,version:le||x(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(g)?ne={name:"UC Browser",ucbrowser:u,version:x(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(g)?ne={name:"Maxthon",maxthon:u,version:x(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(g)?ne={name:"Epiphany",epiphany:u,version:x(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(g)?ne={name:"Puffin",puffin:u,version:x(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(g)?ne={name:"Sleipnir",sleipnir:u,version:x(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(g)?ne={name:"K-Meleon",kMeleon:u,version:x(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:G?(ne={name:"Windows Phone",osname:"Windows Phone",windowsphone:u},he?(ne.msedge=u,ne.version=he):(ne.msie=u,ne.version=x(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(g)?ne={name:"Internet Explorer",msie:u,version:x(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:H?ne={name:"Chrome",osname:"Chrome OS",chromeos:u,chromeBook:u,chrome:u,version:x(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(g)?ne={name:"Microsoft Edge",msedge:u,version:he}:/vivaldi/i.test(g)?ne={name:"Vivaldi",vivaldi:u,version:x(/vivaldi\/(\d+(\.\d+)?)/i)||le}:F?ne={name:"Sailfish",osname:"Sailfish OS",sailfish:u,version:x(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(g)?ne={name:"SeaMonkey",seamonkey:u,version:x(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(g)?(ne={name:"Firefox",firefox:u,version:x(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(g)&&(ne.firefoxos=u,ne.osname="Firefox OS")):M?ne={name:"Amazon Silk",silk:u,version:x(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(g)?ne={name:"PhantomJS",phantom:u,version:x(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(g)?ne={name:"SlimerJS",slimer:u,version:x(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(g)||/rim\stablet/i.test(g)?ne={name:"BlackBerry",osname:"BlackBerry OS",blackberry:u,version:le||x(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:U?(ne={name:"WebOS",osname:"WebOS",webos:u,version:le||x(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(g)&&(ne.touchpad=u)):/bada/i.test(g)?ne={name:"Bada",osname:"Bada",bada:u,version:x(/dolfin\/(\d+(\.\d+)?)/i)}:P?ne={name:"Tizen",osname:"Tizen",tizen:u,version:x(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||le}:/qupzilla/i.test(g)?ne={name:"QupZilla",qupzilla:u,version:x(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||le}:/chromium/i.test(g)?ne={name:"Chromium",chromium:u,version:x(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||le}:/chrome|crios|crmo/i.test(g)?ne={name:"Chrome",chrome:u,version:x(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:N?ne={name:"Android",version:le}:/safari|applewebkit/i.test(g)?(ne={name:"Safari",safari:u},le&&(ne.version=le)):I?(ne={name:I=="iphone"?"iPhone":I=="ipad"?"iPad":"iPod"},le&&(ne.version=le)):/googlebot/i.test(g)?ne={name:"Googlebot",googlebot:u,version:x(/googlebot\/(\d+(\.\d+))/i)||le}:ne={name:x(/^(.*)\/(.*) /),version:T(/^(.*)\/(.*) /)},!ne.msedge&&/(apple)?webkit/i.test(g)?(/(apple)?webkit\/537\.36/i.test(g)?(ne.name=ne.name||"Blink",ne.blink=u):(ne.name=ne.name||"Webkit",ne.webkit=u),!ne.version&&le&&(ne.version=le)):!ne.opera&&/gecko\//i.test(g)&&(ne.name=ne.name||"Gecko",ne.gecko=u,ne.version=ne.version||x(/gecko\/(\d+(\.\d+)?)/i)),!ne.windowsphone&&(N||ne.silk)?(ne.android=u,ne.osname="Android"):!ne.windowsphone&&I?(ne[I]=u,ne.ios=u,ne.osname="iOS"):ae?(ne.mac=u,ne.osname="macOS"):_e?(ne.xbox=u,ne.osname="Xbox"):ee?(ne.windows=u,ne.osname="Windows"):oe&&(ne.linux=u,ne.osname="Linux");function ue(ke){switch(ke){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 ce="";ne.windows?ce=ue(x(/Windows ((NT|XP)( \d\d?.\d)?)/i)):ne.windowsphone?ce=x(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):ne.mac?(ce=x(/Mac OS X (\d+([_\.\s]\d+)*)/i),ce=ce.replace(/[_\s]/g,".")):I?(ce=x(/os (\d+([_\s]\d+)*) like mac os x/i),ce=ce.replace(/[_\s]/g,".")):N?ce=x(/android[ \/-](\d+(\.\d+)*)/i):ne.webos?ce=x(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):ne.blackberry?ce=x(/rim\stablet\sos\s(\d+(\.\d+)*)/i):ne.bada?ce=x(/bada\/(\d+(\.\d+)*)/i):ne.tizen&&(ce=x(/tizen[\/\s](\d+(\.\d+)*)/i)),ce&&(ne.osversion=ce);var Re=!ne.windows&&ce.split(".")[0];return be||L||I=="ipad"||N&&(Re==3||Re>=4&&!pe)||ne.silk?ne.tablet=u:(pe||I=="iphone"||I=="ipod"||N||k||ne.blackberry||ne.webos||ne.bada)&&(ne.mobile=u),ne.msedge||ne.msie&&ne.version>=10||ne.yandexbrowser&&ne.version>=15||ne.vivaldi&&ne.version>=1||ne.chrome&&ne.version>=20||ne.samsungBrowser&&ne.version>=4||ne.whale&&v([ne.version,"1.0"])===1||ne.mzbrowser&&v([ne.version,"6.0"])===1||ne.focus&&v([ne.version,"1.0"])===1||ne.firefox&&ne.version>=20||ne.safari&&ne.version>=6||ne.opera&&ne.version>=10||ne.ios&&ne.osversion&&ne.osversion.split(".")[0]>=6||ne.blackberry&&ne.version>=10.1||ne.chromium&&ne.version>=20?ne.a=u:ne.msie&&ne.version<10||ne.chrome&&ne.version<20||ne.firefox&&ne.version<20||ne.safari&&ne.version<6||ne.opera&&ne.version<10||ne.ios&&ne.osversion&&ne.osversion.split(".")[0]<6||ne.chromium&&ne.version<20?ne.c=u:ne.x=u,ne}var y=p(typeof navigator!="undefined"&&navigator.userAgent||"");y.test=function(g){for(var x=0;x<g.length;++x){var T=g[x];if(typeof T=="string"&&T in y)return!0}return!1};function m(g){return g.split(".").length}function b(g,x){var T=[],I;if(Array.prototype.map)return Array.prototype.map.call(g,x);for(I=0;I<g.length;I++)T.push(x(g[I]));return T}function v(g){for(var x=Math.max(m(g[0]),m(g[1])),T=b(g,function(I){var R=x-m(I);return I=I+new Array(R+1).join(".0"),b(I.split("."),function(N){return new Array(20-N.length).join("0")+N}).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(g,x,T){var I=y;typeof x=="string"&&(T=x,x=void 0),x===void 0&&(x=!1),T&&(I=p(T));var R=""+I.version;for(var N in g)if(g.hasOwnProperty(N)&&I[N]){if(typeof g[N]!="string")throw new Error("Browser version in the minVersion map should be a string: "+N+": "+String(g));return v([R,g[N]])<0}return x}function h(g,x,T){return!c(g,x,T)}return y.isUnsupportedBrowser=c,y.compareVersions=v,y.check=h,y._detect=p,y.detect=p,y})},{}],89:[function(s,w,_){},{}],90:[function(s,w,_){(function(u){(function(){"use strict";var p=s("base64-js"),y=s("ieee754");_.Buffer=c,_.SlowBuffer=H,_.INSPECT_MAX_BYTES=50;var m=2147483647;_.kMaxLength=m,c.TYPED_ARRAY_SUPPORT=b(),!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 b(){try{var ie=new Uint8Array(1);return ie.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ie.foo()===42}catch(de){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>m)throw new RangeError('The value "'+ie+'" is invalid for option "size"');var de=new Uint8Array(ie);return de.__proto__=c.prototype,de}function c(ie,de,Ae){if(typeof ie=="number"){if(typeof de=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(ie)}return h(ie,de,Ae)}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,de,Ae){if(typeof ie=="string")return I(ie,de);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(Ce(ie,ArrayBuffer)||ie&&Ce(ie.buffer,ArrayBuffer))return N(ie,de,Ae);if(typeof ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Be=ie.valueOf&&ie.valueOf();if(Be!=null&&Be!==ie)return c.from(Be,de,Ae);var He=k(ie);if(He)return He;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ie[Symbol.toPrimitive]=="function")return c.from(ie[Symbol.toPrimitive]("string"),de,Ae);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,de,Ae){return h(ie,de,Ae)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array;function g(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,de,Ae){return g(ie),ie<=0?v(ie):de!==void 0?typeof Ae=="string"?v(ie).fill(de,Ae):v(ie).fill(de):v(ie)}c.alloc=function(ie,de,Ae){return x(ie,de,Ae)};function T(ie){return g(ie),v(ie<0?0:L(ie)|0)}c.allocUnsafe=function(ie){return T(ie)},c.allocUnsafeSlow=function(ie){return T(ie)};function I(ie,de){if((typeof de!="string"||de==="")&&(de="utf8"),!c.isEncoding(de))throw new TypeError("Unknown encoding: "+de);var Ae=M(ie,de)|0,Be=v(Ae),He=Be.write(ie,de);return He!==Ae&&(Be=Be.slice(0,He)),Be}function R(ie){for(var de=ie.length<0?0:L(ie.length)|0,Ae=v(de),Be=0;Be<de;Be+=1)Ae[Be]=ie[Be]&255;return Ae}function N(ie,de,Ae){if(de<0||ie.byteLength<de)throw new RangeError('"offset" is outside of buffer bounds');if(ie.byteLength<de+(Ae||0))throw new RangeError('"length" is outside of buffer bounds');var Be;return de===void 0&&Ae===void 0?Be=new Uint8Array(ie):Ae===void 0?Be=new Uint8Array(ie,de):Be=new Uint8Array(ie,de,Ae),Be.__proto__=c.prototype,Be}function k(ie){if(c.isBuffer(ie)){var de=L(ie.length)|0,Ae=v(de);return Ae.length===0||ie.copy(Ae,0,0,de),Ae}if(ie.length!==void 0)return typeof ie.length!="number"||re(ie.length)?v(0):R(ie);if(ie.type==="Buffer"&&Array.isArray(ie.data))return R(ie.data)}function L(ie){if(ie>=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return ie|0}function H(ie){return+ie!=ie&&(ie=0),c.alloc(+ie)}c.isBuffer=function(de){return de!=null&&de._isBuffer===!0&&de!==c.prototype},c.compare=function(de,Ae){if(Ce(de,Uint8Array)&&(de=c.from(de,de.offset,de.byteLength)),Ce(Ae,Uint8Array)&&(Ae=c.from(Ae,Ae.offset,Ae.byteLength)),!c.isBuffer(de)||!c.isBuffer(Ae))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(de===Ae)return 0;for(var Be=de.length,He=Ae.length,st=0,Qe=Math.min(Be,He);st<Qe;++st)if(de[st]!==Ae[st]){Be=de[st],He=Ae[st];break}return Be<He?-1:He<Be?1:0},c.isEncoding=function(de){switch(String(de).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(de,Ae){if(!Array.isArray(de))throw new TypeError('"list" argument must be an Array of Buffers');if(de.length===0)return c.alloc(0);var Be;if(Ae===void 0)for(Ae=0,Be=0;Be<de.length;++Be)Ae+=de[Be].length;var He=c.allocUnsafe(Ae),st=0;for(Be=0;Be<de.length;++Be){var Qe=de[Be];if(Ce(Qe,Uint8Array)&&(Qe=c.from(Qe)),!c.isBuffer(Qe))throw new TypeError('"list" argument must be an Array of Buffers');Qe.copy(He,st),st+=Qe.length}return He};function M(ie,de){if(c.isBuffer(ie))return ie.length;if(ArrayBuffer.isView(ie)||Ce(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 Ae=ie.length,Be=arguments.length>2&&arguments[2]===!0;if(!Be&&Ae===0)return 0;for(var He=!1;;)switch(de){case"ascii":case"latin1":case"binary":return Ae;case"utf8":case"utf-8":return xe(ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae*2;case"hex":return Ae>>>1;case"base64":return Z(ie).length;default:if(He)return Be?-1:xe(ie).length;de=(""+de).toLowerCase(),He=!0}}c.byteLength=M;function F(ie,de,Ae){var Be=!1;if((de===void 0||de<0)&&(de=0),de>this.length||((Ae===void 0||Ae>this.length)&&(Ae=this.length),Ae<=0)||(Ae>>>=0,de>>>=0,Ae<=de))return"";for(ie||(ie="utf8");;)switch(ie){case"hex":return Re(this,de,Ae);case"utf8":case"utf-8":return pe(this,de,Ae);case"ascii":return ue(this,de,Ae);case"latin1":case"binary":return ce(this,de,Ae);case"base64":return be(this,de,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,de,Ae);default:if(Be)throw new TypeError("Unknown encoding: "+ie);ie=(ie+"").toLowerCase(),Be=!0}}c.prototype._isBuffer=!0;function P(ie,de,Ae){var Be=ie[de];ie[de]=ie[Ae],ie[Ae]=Be}c.prototype.swap16=function(){var de=this.length;if(de%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ae=0;Ae<de;Ae+=2)P(this,Ae,Ae+1);return this},c.prototype.swap32=function(){var de=this.length;if(de%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ae=0;Ae<de;Ae+=4)P(this,Ae,Ae+3),P(this,Ae+1,Ae+2);return this},c.prototype.swap64=function(){var de=this.length;if(de%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ae=0;Ae<de;Ae+=8)P(this,Ae,Ae+7),P(this,Ae+1,Ae+6),P(this,Ae+2,Ae+5),P(this,Ae+3,Ae+4);return this},c.prototype.toString=function(){var de=this.length;return de===0?"":arguments.length===0?pe(this,0,de):F.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(de){if(!c.isBuffer(de))throw new TypeError("Argument must be a Buffer");return this===de?!0:c.compare(this,de)===0},c.prototype.inspect=function(){var de="",Ae=_.INSPECT_MAX_BYTES;return de=this.toString("hex",0,Ae).replace(/(.{2})/g,"$1 ").trim(),this.length>Ae&&(de+=" ... "),"<Buffer "+de+">"},c.prototype.compare=function(de,Ae,Be,He,st){if(Ce(de,Uint8Array)&&(de=c.from(de,de.offset,de.byteLength)),!c.isBuffer(de))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof de);if(Ae===void 0&&(Ae=0),Be===void 0&&(Be=de?de.length:0),He===void 0&&(He=0),st===void 0&&(st=this.length),Ae<0||Be>de.length||He<0||st>this.length)throw new RangeError("out of range index");if(He>=st&&Ae>=Be)return 0;if(He>=st)return-1;if(Ae>=Be)return 1;if(Ae>>>=0,Be>>>=0,He>>>=0,st>>>=0,this===de)return 0;for(var Qe=st-He,pt=Be-Ae,It=Math.min(Qe,pt),gt=this.slice(He,st),rt=de.slice(Ae,Be),ut=0;ut<It;++ut)if(gt[ut]!==rt[ut]){Qe=gt[ut],pt=rt[ut];break}return Qe<pt?-1:pt<Qe?1:0};function U(ie,de,Ae,Be,He){if(ie.length===0)return-1;if(typeof Ae=="string"?(Be=Ae,Ae=0):Ae>2147483647?Ae=2147483647:Ae<-2147483648&&(Ae=-2147483648),Ae=+Ae,re(Ae)&&(Ae=He?0:ie.length-1),Ae<0&&(Ae=ie.length+Ae),Ae>=ie.length){if(He)return-1;Ae=ie.length-1}else if(Ae<0)if(He)Ae=0;else return-1;if(typeof de=="string"&&(de=c.from(de,Be)),c.isBuffer(de))return de.length===0?-1:G(ie,de,Ae,Be,He);if(typeof de=="number")return de=de&255,typeof Uint8Array.prototype.indexOf=="function"?He?Uint8Array.prototype.indexOf.call(ie,de,Ae):Uint8Array.prototype.lastIndexOf.call(ie,de,Ae):G(ie,[de],Ae,Be,He);throw new TypeError("val must be string, number or Buffer")}function G(ie,de,Ae,Be,He){var st=1,Qe=ie.length,pt=de.length;if(Be!==void 0&&(Be=String(Be).toLowerCase(),Be==="ucs2"||Be==="ucs-2"||Be==="utf16le"||Be==="utf-16le")){if(ie.length<2||de.length<2)return-1;st=2,Qe/=2,pt/=2,Ae/=2}function It(bt,Tt){return st===1?bt[Tt]:bt.readUInt16BE(Tt*st)}var gt;if(He){var rt=-1;for(gt=Ae;gt<Qe;gt++)if(It(ie,gt)===It(de,rt===-1?0:gt-rt)){if(rt===-1&&(rt=gt),gt-rt+1===pt)return rt*st}else rt!==-1&&(gt-=gt-rt),rt=-1}else for(Ae+pt>Qe&&(Ae=Qe-pt),gt=Ae;gt>=0;gt--){for(var ut=!0,At=0;At<pt;At++)if(It(ie,gt+At)!==It(de,At)){ut=!1;break}if(ut)return gt}return-1}c.prototype.includes=function(de,Ae,Be){return this.indexOf(de,Ae,Be)!==-1},c.prototype.indexOf=function(de,Ae,Be){return U(this,de,Ae,Be,!0)},c.prototype.lastIndexOf=function(de,Ae,Be){return U(this,de,Ae,Be,!1)};function Q(ie,de,Ae,Be){Ae=Number(Ae)||0;var He=ie.length-Ae;Be?(Be=Number(Be),Be>He&&(Be=He)):Be=He;var st=de.length;Be>st/2&&(Be=st/2);for(var Qe=0;Qe<Be;++Qe){var pt=parseInt(de.substr(Qe*2,2),16);if(re(pt))return Qe;ie[Ae+Qe]=pt}return Qe}function ee(ie,de,Ae,Be){return me(xe(de,ie.length-Ae),ie,Ae,Be)}function ae(ie,de,Ae,Be){return me(fe(de),ie,Ae,Be)}function oe(ie,de,Ae,Be){return ae(ie,de,Ae,Be)}function he(ie,de,Ae,Be){return me(Z(de),ie,Ae,Be)}function le(ie,de,Ae,Be){return me(W(de,ie.length-Ae),ie,Ae,Be)}c.prototype.write=function(de,Ae,Be,He){if(Ae===void 0)He="utf8",Be=this.length,Ae=0;else if(Be===void 0&&typeof Ae=="string")He=Ae,Be=this.length,Ae=0;else if(isFinite(Ae))Ae=Ae>>>0,isFinite(Be)?(Be=Be>>>0,He===void 0&&(He="utf8")):(He=Be,Be=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var st=this.length-Ae;if((Be===void 0||Be>st)&&(Be=st),de.length>0&&(Be<0||Ae<0)||Ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");He||(He="utf8");for(var Qe=!1;;)switch(He){case"hex":return Q(this,de,Ae,Be);case"utf8":case"utf-8":return ee(this,de,Ae,Be);case"ascii":return ae(this,de,Ae,Be);case"latin1":case"binary":return oe(this,de,Ae,Be);case"base64":return he(this,de,Ae,Be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,de,Ae,Be);default:if(Qe)throw new TypeError("Unknown encoding: "+He);He=(""+He).toLowerCase(),Qe=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function be(ie,de,Ae){return de===0&&Ae===ie.length?p.fromByteArray(ie):p.fromByteArray(ie.slice(de,Ae))}function pe(ie,de,Ae){Ae=Math.min(ie.length,Ae);for(var Be=[],He=de;He<Ae;){var st=ie[He],Qe=null,pt=st>239?4:st>223?3:st>191?2:1;if(He+pt<=Ae){var It,gt,rt,ut;switch(pt){case 1:st<128&&(Qe=st);break;case 2:It=ie[He+1],(It&192)===128&&(ut=(st&31)<<6|It&63,ut>127&&(Qe=ut));break;case 3:It=ie[He+1],gt=ie[He+2],(It&192)===128&&(gt&192)===128&&(ut=(st&15)<<12|(It&63)<<6|gt&63,ut>2047&&(ut<55296||ut>57343)&&(Qe=ut));break;case 4:It=ie[He+1],gt=ie[He+2],rt=ie[He+3],(It&192)===128&&(gt&192)===128&&(rt&192)===128&&(ut=(st&15)<<18|(It&63)<<12|(gt&63)<<6|rt&63,ut>65535&&ut<1114112&&(Qe=ut))}}Qe===null?(Qe=65533,pt=1):Qe>65535&&(Qe-=65536,Be.push(Qe>>>10&1023|55296),Qe=56320|Qe&1023),Be.push(Qe),He+=pt}return ne(Be)}var _e=4096;function ne(ie){var de=ie.length;if(de<=_e)return String.fromCharCode.apply(String,ie);for(var Ae="",Be=0;Be<de;)Ae+=String.fromCharCode.apply(String,ie.slice(Be,Be+=_e));return Ae}function ue(ie,de,Ae){var Be="";Ae=Math.min(ie.length,Ae);for(var He=de;He<Ae;++He)Be+=String.fromCharCode(ie[He]&127);return Be}function ce(ie,de,Ae){var Be="";Ae=Math.min(ie.length,Ae);for(var He=de;He<Ae;++He)Be+=String.fromCharCode(ie[He]);return Be}function Re(ie,de,Ae){var Be=ie.length;(!de||de<0)&&(de=0),(!Ae||Ae<0||Ae>Be)&&(Ae=Be);for(var He="",st=de;st<Ae;++st)He+=ze(ie[st]);return He}function ke(ie,de,Ae){for(var Be=ie.slice(de,Ae),He="",st=0;st<Be.length;st+=2)He+=String.fromCharCode(Be[st]+Be[st+1]*256);return He}c.prototype.slice=function(de,Ae){var Be=this.length;de=~~de,Ae=Ae===void 0?Be:~~Ae,de<0?(de+=Be,de<0&&(de=0)):de>Be&&(de=Be),Ae<0?(Ae+=Be,Ae<0&&(Ae=0)):Ae>Be&&(Ae=Be),Ae<de&&(Ae=de);var He=this.subarray(de,Ae);return He.__proto__=c.prototype,He};function Ne(ie,de,Ae){if(ie%1!==0||ie<0)throw new RangeError("offset is not uint");if(ie+de>Ae)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(de,Ae,Be){de=de>>>0,Ae=Ae>>>0,Be||Ne(de,Ae,this.length);for(var He=this[de],st=1,Qe=0;++Qe<Ae&&(st*=256);)He+=this[de+Qe]*st;return He},c.prototype.readUIntBE=function(de,Ae,Be){de=de>>>0,Ae=Ae>>>0,Be||Ne(de,Ae,this.length);for(var He=this[de+--Ae],st=1;Ae>0&&(st*=256);)He+=this[de+--Ae]*st;return He},c.prototype.readUInt8=function(de,Ae){return de=de>>>0,Ae||Ne(de,1,this.length),this[de]},c.prototype.readUInt16LE=function(de,Ae){return de=de>>>0,Ae||Ne(de,2,this.length),this[de]|this[de+1]<<8},c.prototype.readUInt16BE=function(de,Ae){return de=de>>>0,Ae||Ne(de,2,this.length),this[de]<<8|this[de+1]},c.prototype.readUInt32LE=function(de,Ae){return de=de>>>0,Ae||Ne(de,4,this.length),(this[de]|this[de+1]<<8|this[de+2]<<16)+this[de+3]*16777216},c.prototype.readUInt32BE=function(de,Ae){return de=de>>>0,Ae||Ne(de,4,this.length),this[de]*16777216+(this[de+1]<<16|this[de+2]<<8|this[de+3])},c.prototype.readIntLE=function(de,Ae,Be){de=de>>>0,Ae=Ae>>>0,Be||Ne(de,Ae,this.length);for(var He=this[de],st=1,Qe=0;++Qe<Ae&&(st*=256);)He+=this[de+Qe]*st;return st*=128,He>=st&&(He-=Math.pow(2,8*Ae)),He},c.prototype.readIntBE=function(de,Ae,Be){de=de>>>0,Ae=Ae>>>0,Be||Ne(de,Ae,this.length);for(var He=Ae,st=1,Qe=this[de+--He];He>0&&(st*=256);)Qe+=this[de+--He]*st;return st*=128,Qe>=st&&(Qe-=Math.pow(2,8*Ae)),Qe},c.prototype.readInt8=function(de,Ae){return de=de>>>0,Ae||Ne(de,1,this.length),this[de]&128?(255-this[de]+1)*-1:this[de]},c.prototype.readInt16LE=function(de,Ae){de=de>>>0,Ae||Ne(de,2,this.length);var Be=this[de]|this[de+1]<<8;return Be&32768?Be|4294901760:Be},c.prototype.readInt16BE=function(de,Ae){de=de>>>0,Ae||Ne(de,2,this.length);var Be=this[de+1]|this[de]<<8;return Be&32768?Be|4294901760:Be},c.prototype.readInt32LE=function(de,Ae){return de=de>>>0,Ae||Ne(de,4,this.length),this[de]|this[de+1]<<8|this[de+2]<<16|this[de+3]<<24},c.prototype.readInt32BE=function(de,Ae){return de=de>>>0,Ae||Ne(de,4,this.length),this[de]<<24|this[de+1]<<16|this[de+2]<<8|this[de+3]},c.prototype.readFloatLE=function(de,Ae){return de=de>>>0,Ae||Ne(de,4,this.length),y.read(this,de,!0,23,4)},c.prototype.readFloatBE=function(de,Ae){return de=de>>>0,Ae||Ne(de,4,this.length),y.read(this,de,!1,23,4)},c.prototype.readDoubleLE=function(de,Ae){return de=de>>>0,Ae||Ne(de,8,this.length),y.read(this,de,!0,52,8)},c.prototype.readDoubleBE=function(de,Ae){return de=de>>>0,Ae||Ne(de,8,this.length),y.read(this,de,!1,52,8)};function De(ie,de,Ae,Be,He,st){if(!c.isBuffer(ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(de>He||de<st)throw new RangeError('"value" argument is out of bounds');if(Ae+Be>ie.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(de,Ae,Be,He){if(de=+de,Ae=Ae>>>0,Be=Be>>>0,!He){var st=Math.pow(2,8*Be)-1;De(this,de,Ae,Be,st,0)}var Qe=1,pt=0;for(this[Ae]=de&255;++pt<Be&&(Qe*=256);)this[Ae+pt]=de/Qe&255;return Ae+Be},c.prototype.writeUIntBE=function(de,Ae,Be,He){if(de=+de,Ae=Ae>>>0,Be=Be>>>0,!He){var st=Math.pow(2,8*Be)-1;De(this,de,Ae,Be,st,0)}var Qe=Be-1,pt=1;for(this[Ae+Qe]=de&255;--Qe>=0&&(pt*=256);)this[Ae+Qe]=de/pt&255;return Ae+Be},c.prototype.writeUInt8=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,1,255,0),this[Ae]=de&255,Ae+1},c.prototype.writeUInt16LE=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,2,65535,0),this[Ae]=de&255,this[Ae+1]=de>>>8,Ae+2},c.prototype.writeUInt16BE=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,2,65535,0),this[Ae]=de>>>8,this[Ae+1]=de&255,Ae+2},c.prototype.writeUInt32LE=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,4,4294967295,0),this[Ae+3]=de>>>24,this[Ae+2]=de>>>16,this[Ae+1]=de>>>8,this[Ae]=de&255,Ae+4},c.prototype.writeUInt32BE=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,4,4294967295,0),this[Ae]=de>>>24,this[Ae+1]=de>>>16,this[Ae+2]=de>>>8,this[Ae+3]=de&255,Ae+4},c.prototype.writeIntLE=function(de,Ae,Be,He){if(de=+de,Ae=Ae>>>0,!He){var st=Math.pow(2,8*Be-1);De(this,de,Ae,Be,st-1,-st)}var Qe=0,pt=1,It=0;for(this[Ae]=de&255;++Qe<Be&&(pt*=256);)de<0&&It===0&&this[Ae+Qe-1]!==0&&(It=1),this[Ae+Qe]=(de/pt>>0)-It&255;return Ae+Be},c.prototype.writeIntBE=function(de,Ae,Be,He){if(de=+de,Ae=Ae>>>0,!He){var st=Math.pow(2,8*Be-1);De(this,de,Ae,Be,st-1,-st)}var Qe=Be-1,pt=1,It=0;for(this[Ae+Qe]=de&255;--Qe>=0&&(pt*=256);)de<0&&It===0&&this[Ae+Qe+1]!==0&&(It=1),this[Ae+Qe]=(de/pt>>0)-It&255;return Ae+Be},c.prototype.writeInt8=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,1,127,-128),de<0&&(de=255+de+1),this[Ae]=de&255,Ae+1},c.prototype.writeInt16LE=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,2,32767,-32768),this[Ae]=de&255,this[Ae+1]=de>>>8,Ae+2},c.prototype.writeInt16BE=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,2,32767,-32768),this[Ae]=de>>>8,this[Ae+1]=de&255,Ae+2},c.prototype.writeInt32LE=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,4,2147483647,-2147483648),this[Ae]=de&255,this[Ae+1]=de>>>8,this[Ae+2]=de>>>16,this[Ae+3]=de>>>24,Ae+4},c.prototype.writeInt32BE=function(de,Ae,Be){return de=+de,Ae=Ae>>>0,Be||De(this,de,Ae,4,2147483647,-2147483648),de<0&&(de=4294967295+de+1),this[Ae]=de>>>24,this[Ae+1]=de>>>16,this[Ae+2]=de>>>8,this[Ae+3]=de&255,Ae+4};function Me(ie,de,Ae,Be,He,st){if(Ae+Be>ie.length)throw new RangeError("Index out of range");if(Ae<0)throw new RangeError("Index out of range")}function We(ie,de,Ae,Be,He){return de=+de,Ae=Ae>>>0,He||Me(ie,de,Ae,4,34028234663852886e22,-34028234663852886e22),y.write(ie,de,Ae,Be,23,4),Ae+4}c.prototype.writeFloatLE=function(de,Ae,Be){return We(this,de,Ae,!0,Be)},c.prototype.writeFloatBE=function(de,Ae,Be){return We(this,de,Ae,!1,Be)};function je(ie,de,Ae,Be,He){return de=+de,Ae=Ae>>>0,He||Me(ie,de,Ae,8,17976931348623157e292,-17976931348623157e292),y.write(ie,de,Ae,Be,52,8),Ae+8}c.prototype.writeDoubleLE=function(de,Ae,Be){return je(this,de,Ae,!0,Be)},c.prototype.writeDoubleBE=function(de,Ae,Be){return je(this,de,Ae,!1,Be)},c.prototype.copy=function(de,Ae,Be,He){if(!c.isBuffer(de))throw new TypeError("argument should be a Buffer");if(Be||(Be=0),!He&&He!==0&&(He=this.length),Ae>=de.length&&(Ae=de.length),Ae||(Ae=0),He>0&&He<Be&&(He=Be),He===Be||de.length===0||this.length===0)return 0;if(Ae<0)throw new RangeError("targetStart out of bounds");if(Be<0||Be>=this.length)throw new RangeError("Index out of range");if(He<0)throw new RangeError("sourceEnd out of bounds");He>this.length&&(He=this.length),de.length-Ae<He-Be&&(He=de.length-Ae+Be);var st=He-Be;if(this===de&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ae,Be,He);else if(this===de&&Be<Ae&&Ae<He)for(var Qe=st-1;Qe>=0;--Qe)de[Qe+Ae]=this[Qe+Be];else Uint8Array.prototype.set.call(de,this.subarray(Be,He),Ae);return st},c.prototype.fill=function(de,Ae,Be,He){if(typeof de=="string"){if(typeof Ae=="string"?(He=Ae,Ae=0,Be=this.length):typeof Be=="string"&&(He=Be,Be=this.length),He!==void 0&&typeof He!="string")throw new TypeError("encoding must be a string");if(typeof He=="string"&&!c.isEncoding(He))throw new TypeError("Unknown encoding: "+He);if(de.length===1){var st=de.charCodeAt(0);(He==="utf8"&&st<128||He==="latin1")&&(de=st)}}else typeof de=="number"&&(de=de&255);if(Ae<0||this.length<Ae||this.length<Be)throw new RangeError("Out of range index");if(Be<=Ae)return this;Ae=Ae>>>0,Be=Be===void 0?this.length:Be>>>0,de||(de=0);var Qe;if(typeof de=="number")for(Qe=Ae;Qe<Be;++Qe)this[Qe]=de;else{var pt=c.isBuffer(de)?de:c.from(de,He),It=pt.length;if(It===0)throw new TypeError('The value "'+de+'" is invalid for argument "value"');for(Qe=0;Qe<Be-Ae;++Qe)this[Qe+Ae]=pt[Qe%It]}return this};var et=/[^+/0-9A-Za-z-_]/g;function it(ie){if(ie=ie.split("=")[0],ie=ie.trim().replace(et,""),ie.length<2)return"";for(;ie.length%4!==0;)ie=ie+"=";return ie}function ze(ie){return ie<16?"0"+ie.toString(16):ie.toString(16)}function xe(ie,de){de=de||1/0;for(var Ae,Be=ie.length,He=null,st=[],Qe=0;Qe<Be;++Qe){if(Ae=ie.charCodeAt(Qe),Ae>55295&&Ae<57344){if(!He){if(Ae>56319){(de-=3)>-1&&st.push(239,191,189);continue}else if(Qe+1===Be){(de-=3)>-1&&st.push(239,191,189);continue}He=Ae;continue}if(Ae<56320){(de-=3)>-1&&st.push(239,191,189),He=Ae;continue}Ae=(He-55296<<10|Ae-56320)+65536}else He&&(de-=3)>-1&&st.push(239,191,189);if(He=null,Ae<128){if((de-=1)<0)break;st.push(Ae)}else if(Ae<2048){if((de-=2)<0)break;st.push(Ae>>6|192,Ae&63|128)}else if(Ae<65536){if((de-=3)<0)break;st.push(Ae>>12|224,Ae>>6&63|128,Ae&63|128)}else if(Ae<1114112){if((de-=4)<0)break;st.push(Ae>>18|240,Ae>>12&63|128,Ae>>6&63|128,Ae&63|128)}else throw new Error("Invalid code point")}return st}function fe(ie){for(var de=[],Ae=0;Ae<ie.length;++Ae)de.push(ie.charCodeAt(Ae)&255);return de}function W(ie,de){for(var Ae,Be,He,st=[],Qe=0;Qe<ie.length&&!((de-=2)<0);++Qe)Ae=ie.charCodeAt(Qe),Be=Ae>>8,He=Ae%256,st.push(He),st.push(Be);return st}function Z(ie){return p.toByteArray(it(ie))}function me(ie,de,Ae,Be){for(var He=0;He<Be&&!(He+Ae>=de.length||He>=ie.length);++He)de[He+Ae]=ie[He];return He}function Ce(ie,de){return ie instanceof de||ie!=null&&ie.constructor!=null&&ie.constructor.name!=null&&ie.constructor.name===de.name}function re(ie){return ie!==ie}}).call(this)}).call(this,s("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(s,w,_){w.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,w,_){"use strict";var u=s("get-intrinsic"),p=s("./"),y=p(u("String.prototype.indexOf"));w.exports=function(b,v){var c=u(b,!!v);return typeof c=="function"&&y(b,".prototype.")>-1?p(c):c}},{"./":93,"get-intrinsic":348}],93:[function(s,w,_){"use strict";var u=s("function-bind"),p=s("get-intrinsic"),y=p("%Function.prototype.apply%"),m=p("%Function.prototype.call%"),b=p("%Reflect.apply%",!0)||u.call(m,y),v=p("%Object.getOwnPropertyDescriptor%",!0),c=p("%Object.defineProperty%",!0),h=p("%Math.max%");if(c)try{c({},"a",{value:1})}catch(x){c=null}w.exports=function(T){var I=b(u,m,arguments);if(v&&c){var R=v(I,"length");R.configurable&&c(I,"length",{value:1+h(0,T.length-(arguments.length-1))})}return I};var g=function(){return b(u,y,arguments)};c?c(w.exports,"apply",{value:g}):w.exports.apply=g},{"function-bind":347,"get-intrinsic":348}],94:[function(s,w,_){"use strict";var u=Array.prototype.slice;w.exports=p;function p(m,b){if(!(this instanceof p))return new p(m,b);this.src=m,this._withAccess=b}p.prototype.withAccess=function(m){return this._withAccess=m!==!1,this},p.prototype.pick=function(m){return Array.isArray(m)||(m=u.call(arguments)),m.length&&(this.keys=m),this},p.prototype.to=function(m){if(m=m||{},!this.src)return m;var b=this.keys||Object.keys(this.src);if(!this._withAccess){for(var v=0;v<b.length;v++)c=b[v],m[c]===void 0&&(m[c]=this.src[c]);return m}for(var v=0;v<b.length;v++){var c=b[v];if(y(m,c)){var h=this.src.__lookupGetter__(c),g=this.src.__lookupSetter__(c);h&&m.__defineGetter__(c,h),g&&m.__defineSetter__(c,g),!h&&!g&&(m[c]=this.src[c])}}return m},p.prototype.toCover=function(m){for(var b=this.keys||Object.keys(this.src),v=0;v<b.length;v++){var c=b[v];delete m[c];var h=this.src.__lookupGetter__(c),g=this.src.__lookupSetter__(c);h&&m.__defineGetter__(c,h),g&&m.__defineSetter__(c,g),!h&&!g&&(m[c]=this.src[c])}},p.prototype.override=p.prototype.toCover,p.prototype.and=function(m){var b={};return this.to(b),this.src=m,this.to(b),this.src=b,this};function y(m,b){return m[b]===void 0&&m.__lookupGetter__(b)===void 0&&m.__lookupSetter__(b)===void 0}},{}],95:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-callable"),y=s("../internals/try-to-string"),m=u.TypeError;w.exports=function(b){if(p(b))return b;throw m(y(b)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-constructor"),y=s("../internals/try-to-string"),m=u.TypeError;w.exports=function(b){if(p(b))return b;throw m(y(b)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-callable"),y=u.String,m=u.TypeError;w.exports=function(b){if(typeof b=="object"||p(b))return b;throw m("Can't set "+y(b)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(s,w,_){var u=s("../internals/well-known-symbol"),p=s("../internals/object-create"),y=s("../internals/object-define-property"),m=u("unscopables"),b=Array.prototype;b[m]==null&&y.f(b,m,{configurable:!0,value:p(null)}),w.exports=function(v){b[m][v]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(s,w,_){"use strict";var u=s("../internals/string-multibyte").charAt;w.exports=function(p,y,m){return y+(m?u(p,y).length:1)}},{"../internals/string-multibyte":239}],100:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/object-is-prototype-of"),y=u.TypeError;w.exports=function(m,b){if(p(b,m))return m;throw y("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-object"),y=u.String,m=u.TypeError;w.exports=function(b){if(p(b))return b;throw m(y(b)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(s,w,_){w.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-native"),p=s("../internals/descriptors"),y=s("../internals/global"),m=s("../internals/is-callable"),b=s("../internals/is-object"),v=s("../internals/has-own-property"),c=s("../internals/classof"),h=s("../internals/try-to-string"),g=s("../internals/create-non-enumerable-property"),x=s("../internals/redefine"),T=s("../internals/object-define-property").f,I=s("../internals/object-is-prototype-of"),R=s("../internals/object-get-prototype-of"),N=s("../internals/object-set-prototype-of"),k=s("../internals/well-known-symbol"),L=s("../internals/uid"),H=y.Int8Array,M=H&&H.prototype,F=y.Uint8ClampedArray,P=F&&F.prototype,U=H&&R(H),G=M&&R(M),Q=Object.prototype,ee=y.TypeError,ae=k("toStringTag"),oe=L("TYPED_ARRAY_TAG"),he=L("TYPED_ARRAY_CONSTRUCTOR"),le=u&&!!N&&c(y.opera)!=="Opera",be=!1,pe,_e,ne,ue={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ce={BigInt64Array:8,BigUint64Array:8},Re=function(et){if(!b(et))return!1;var it=c(et);return it==="DataView"||v(ue,it)||v(ce,it)},ke=function(je){if(!b(je))return!1;var et=c(je);return v(ue,et)||v(ce,et)},Ne=function(je){if(ke(je))return je;throw ee("Target is not a typed array")},De=function(je){if(m(je)&&(!N||I(U,je)))return je;throw ee(h(je)+" is not a typed array constructor")},Me=function(je,et,it,ze){if(p){if(it)for(var xe in ue){var fe=y[xe];if(fe&&v(fe.prototype,je))try{delete fe.prototype[je]}catch(W){try{fe.prototype[je]=et}catch(Z){}}}(!G[je]||it)&&x(G,je,it?et:le&&M[je]||et,ze)}},We=function(je,et,it){var ze,xe;if(p){if(N){if(it){for(ze in ue)if(xe=y[ze],xe&&v(xe,je))try{delete xe[je]}catch(fe){}}if(!U[je]||it)try{return x(U,je,it?et:le&&U[je]||et)}catch(fe){}else return}for(ze in ue)xe=y[ze],xe&&(!xe[je]||it)&&x(xe,je,et)}};for(pe in ue)_e=y[pe],ne=_e&&_e.prototype,ne?g(ne,he,_e):le=!1;for(pe in ce)_e=y[pe],ne=_e&&_e.prototype,ne&&g(ne,he,_e);if((!le||!m(U)||U===Function.prototype)&&(U=function(){throw ee("Incorrect invocation")},le))for(pe in ue)y[pe]&&N(y[pe],U);if((!le||!G||G===Q)&&(G=U.prototype,le))for(pe in ue)y[pe]&&N(y[pe].prototype,G);if(le&&R(P)!==G&&N(P,G),p&&!v(G,ae)){be=!0,T(G,ae,{get:function(){return b(this)?this[oe]:void 0}});for(pe in ue)y[pe]&&g(y[pe],oe,pe)}w.exports={NATIVE_ARRAY_BUFFER_VIEWS:le,TYPED_ARRAY_CONSTRUCTOR:he,TYPED_ARRAY_TAG:be&&oe,aTypedArray:Ne,aTypedArrayConstructor:De,exportTypedArrayMethod:Me,exportTypedArrayStaticMethod:We,isView:Re,isTypedArray:ke,TypedArray:U,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,w,_){"use strict";var u=s("../internals/global"),p=s("../internals/function-uncurry-this"),y=s("../internals/descriptors"),m=s("../internals/array-buffer-native"),b=s("../internals/function-name"),v=s("../internals/create-non-enumerable-property"),c=s("../internals/redefine-all"),h=s("../internals/fails"),g=s("../internals/an-instance"),x=s("../internals/to-integer-or-infinity"),T=s("../internals/to-length"),I=s("../internals/to-index"),R=s("../internals/ieee754"),N=s("../internals/object-get-prototype-of"),k=s("../internals/object-set-prototype-of"),L=s("../internals/object-get-own-property-names").f,H=s("../internals/object-define-property").f,M=s("../internals/array-fill"),F=s("../internals/array-slice-simple"),P=s("../internals/set-to-string-tag"),U=s("../internals/internal-state"),G=b.PROPER,Q=b.CONFIGURABLE,ee=U.get,ae=U.set,oe="ArrayBuffer",he="DataView",le="prototype",be="Wrong length",pe="Wrong index",_e=u[oe],ne=_e,ue=ne&&ne[le],ce=u[he],Re=ce&&ce[le],ke=Object.prototype,Ne=u.Array,De=u.RangeError,Me=p(M),We=p([].reverse),je=R.pack,et=R.unpack,it=function(Qe){return[Qe&255]},ze=function(Qe){return[Qe&255,Qe>>8&255]},xe=function(Qe){return[Qe&255,Qe>>8&255,Qe>>16&255,Qe>>24&255]},fe=function(Qe){return Qe[3]<<24|Qe[2]<<16|Qe[1]<<8|Qe[0]},W=function(Qe){return je(Qe,23,4)},Z=function(Qe){return je(Qe,52,8)},me=function(Qe,pt){H(Qe[le],pt,{get:function(){return ee(this)[pt]}})},Ce=function(Qe,pt,It,gt){var rt=I(It),ut=ee(Qe);if(rt+pt>ut.byteLength)throw De(pe);var At=ee(ut.buffer).bytes,bt=rt+ut.byteOffset,Tt=F(At,bt,bt+pt);return gt?Tt:We(Tt)},re=function(Qe,pt,It,gt,rt,ut){var At=I(It),bt=ee(Qe);if(At+pt>bt.byteLength)throw De(pe);for(var Tt=ee(bt.buffer).bytes,Mt=At+bt.byteOffset,Ot=gt(+rt),$e=0;$e<pt;$e++)Tt[Mt+$e]=Ot[ut?$e:pt-$e-1]};if(!m)ne=function(pt){g(this,ue);var It=I(pt);ae(this,{bytes:Me(Ne(It),0),byteLength:It}),y||(this.byteLength=It)},ue=ne[le],ce=function(pt,It,gt){g(this,Re),g(pt,ue);var rt=ee(pt).byteLength,ut=x(It);if(ut<0||ut>rt)throw De("Wrong offset");if(gt=gt===void 0?rt-ut:T(gt),ut+gt>rt)throw De(be);ae(this,{buffer:pt,byteLength:gt,byteOffset:ut}),y||(this.buffer=pt,this.byteLength=gt,this.byteOffset=ut)},Re=ce[le],y&&(me(ne,"byteLength"),me(ce,"buffer"),me(ce,"byteLength"),me(ce,"byteOffset")),c(Re,{getInt8:function(pt){return Ce(this,1,pt)[0]<<24>>24},getUint8:function(pt){return Ce(this,1,pt)[0]},getInt16:function(pt){var It=Ce(this,2,pt,arguments.length>1?arguments[1]:void 0);return(It[1]<<8|It[0])<<16>>16},getUint16:function(pt){var It=Ce(this,2,pt,arguments.length>1?arguments[1]:void 0);return It[1]<<8|It[0]},getInt32:function(pt){return fe(Ce(this,4,pt,arguments.length>1?arguments[1]:void 0))},getUint32:function(pt){return fe(Ce(this,4,pt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(pt){return et(Ce(this,4,pt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(pt){return et(Ce(this,8,pt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(pt,It){re(this,1,pt,it,It)},setUint8:function(pt,It){re(this,1,pt,it,It)},setInt16:function(pt,It){re(this,2,pt,ze,It,arguments.length>2?arguments[2]:void 0)},setUint16:function(pt,It){re(this,2,pt,ze,It,arguments.length>2?arguments[2]:void 0)},setInt32:function(pt,It){re(this,4,pt,xe,It,arguments.length>2?arguments[2]:void 0)},setUint32:function(pt,It){re(this,4,pt,xe,It,arguments.length>2?arguments[2]:void 0)},setFloat32:function(pt,It){re(this,4,pt,W,It,arguments.length>2?arguments[2]:void 0)},setFloat64:function(pt,It){re(this,8,pt,Z,It,arguments.length>2?arguments[2]:void 0)}});else{var ie=G&&_e.name!==oe;if(!h(function(){_e(1)})||!h(function(){new _e(-1)})||h(function(){return new _e,new _e(1.5),new _e(NaN),ie&&!Q})){ne=function(pt){return g(this,ue),new _e(I(pt))},ne[le]=ue;for(var de=L(_e),Ae=0,Be;de.length>Ae;)(Be=de[Ae++])in ne||v(ne,Be,_e[Be]);ue.constructor=ne}else ie&&Q&&v(_e,"name",oe);k&&N(Re)!==ke&&k(Re,ke);var He=new ce(new ne(2)),st=p(Re.setInt8);He.setInt8(0,2147483648),He.setInt8(1,2147483649),(He.getInt8(0)||!He.getInt8(1))&&c(Re,{setInt8:function(pt,It){st(this,pt,It<<24>>24)},setUint8:function(pt,It){st(this,pt,It<<24>>24)}},{unsafe:!0})}P(ne,oe),P(ce,he),w.exports={ArrayBuffer:ne,DataView:ce}},{"../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,w,_){"use strict";var u=s("../internals/to-object"),p=s("../internals/to-absolute-index"),y=s("../internals/length-of-array-like"),m=Math.min;w.exports=[].copyWithin||function(v,c){var h=u(this),g=y(h),x=p(v,g),T=p(c,g),I=arguments.length>2?arguments[2]:void 0,R=m((I===void 0?g:p(I,g))-T,g-x),N=1;for(T<x&&x<T+R&&(N=-1,T+=R-1,x+=R-1);R-- >0;)T in h?h[x]=h[T]:delete h[x],x+=N,T+=N;return h}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(s,w,_){"use strict";var u=s("../internals/to-object"),p=s("../internals/to-absolute-index"),y=s("../internals/length-of-array-like");w.exports=function(b){for(var v=u(this),c=y(v),h=arguments.length,g=p(h>1?arguments[1]:void 0,c),x=h>2?arguments[2]:void 0,T=x===void 0?c:p(x,c);T>g;)v[g++]=b;return v}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(s,w,_){"use strict";var u=s("../internals/array-iteration").forEach,p=s("../internals/array-method-is-strict"),y=p("forEach");w.exports=y?[].forEach:function(b){return u(this,b,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(s,w,_){var u=s("../internals/length-of-array-like");w.exports=function(p,y){for(var m=0,b=u(y),v=new p(b);b>m;)v[m]=y[m++];return v}},{"../internals/length-of-array-like":188}],109:[function(s,w,_){"use strict";var u=s("../internals/global"),p=s("../internals/function-bind-context"),y=s("../internals/function-call"),m=s("../internals/to-object"),b=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"),g=s("../internals/create-property"),x=s("../internals/get-iterator"),T=s("../internals/get-iterator-method"),I=u.Array;w.exports=function(N){var k=m(N),L=c(this),H=arguments.length,M=H>1?arguments[1]:void 0,F=M!==void 0;F&&(M=p(M,H>2?arguments[2]:void 0));var P=T(k),U=0,G,Q,ee,ae,oe,he;if(P&&!(this==I&&v(P)))for(ae=x(k,P),oe=ae.next,Q=L?new this:[];!(ee=y(oe,ae)).done;U++)he=F?b(ae,M,[ee.value,U],!0):ee.value,g(Q,U,he);else for(G=h(k),Q=L?new this(G):I(G);G>U;U++)he=F?M(k[U],U):k[U],g(Q,U,he);return Q.length=U,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,w,_){var u=s("../internals/to-indexed-object"),p=s("../internals/to-absolute-index"),y=s("../internals/length-of-array-like"),m=function(b){return function(v,c,h){var g=u(v),x=y(g),T=p(h,x),I;if(b&&c!=c){for(;x>T;)if(I=g[T++],I!=I)return!0}else for(;x>T;T++)if((b||T in g)&&g[T]===c)return b||T||0;return!b&&-1}};w.exports={includes:m(!0),indexOf:m(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(s,w,_){var u=s("../internals/function-bind-context"),p=s("../internals/function-uncurry-this"),y=s("../internals/indexed-object"),m=s("../internals/to-object"),b=s("../internals/length-of-array-like"),v=s("../internals/array-species-create"),c=p([].push),h=function(g){var x=g==1,T=g==2,I=g==3,R=g==4,N=g==6,k=g==7,L=g==5||N;return function(H,M,F,P){for(var U=m(H),G=y(U),Q=u(M,F),ee=b(G),ae=0,oe=P||v,he=x?oe(H,ee):T||k?oe(H,0):void 0,le,be;ee>ae;ae++)if((L||ae in G)&&(le=G[ae],be=Q(le,ae,U),g))if(x)he[ae]=be;else if(be)switch(g){case 3:return!0;case 5:return le;case 6:return ae;case 2:c(he,le)}else switch(g){case 4:return!1;case 7:c(he,le)}return N?-1:I||R?R:he}};w.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,w,_){"use strict";var u=s("../internals/function-apply"),p=s("../internals/to-indexed-object"),y=s("../internals/to-integer-or-infinity"),m=s("../internals/length-of-array-like"),b=s("../internals/array-method-is-strict"),v=Math.min,c=[].lastIndexOf,h=!!c&&1/[1].lastIndexOf(1,-0)<0,g=b("lastIndexOf"),x=h||!g;w.exports=x?function(I){if(h)return u(c,this,arguments)||0;var R=p(this),N=m(R),k=N-1;for(arguments.length>1&&(k=v(k,y(arguments[1]))),k<0&&(k=N+k);k>=0;k--)if(k in R&&R[k]===I)return k||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,w,_){var u=s("../internals/fails"),p=s("../internals/well-known-symbol"),y=s("../internals/engine-v8-version"),m=p("species");w.exports=function(b){return y>=51||!u(function(){var v=[],c=v.constructor={};return c[m]=function(){return{foo:1}},v[b](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(s,w,_){"use strict";var u=s("../internals/fails");w.exports=function(p,y){var m=[][p];return!!m&&u(function(){m.call(null,y||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/a-callable"),y=s("../internals/to-object"),m=s("../internals/indexed-object"),b=s("../internals/length-of-array-like"),v=u.TypeError,c=function(h){return function(g,x,T,I){p(x);var R=y(g),N=m(R),k=b(R),L=h?k-1:0,H=h?-1:1;if(T<2)for(;;){if(L in N){I=N[L],L+=H;break}if(L+=H,h?L<0:k<=L)throw v("Reduce of empty array with no initial value")}for(;h?L>=0:k>L;L+=H)L in N&&(I=x(I,N[L],L,R));return I}};w.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,w,_){var u=s("../internals/global"),p=s("../internals/to-absolute-index"),y=s("../internals/length-of-array-like"),m=s("../internals/create-property"),b=u.Array,v=Math.max;w.exports=function(c,h,g){for(var x=y(c),T=p(h,x),I=p(g===void 0?x:g,x),R=b(v(I-T,0)),N=0;T<I;T++,N++)m(R,N,c[T]);return R.length=N,R}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(s,w,_){var u=s("../internals/function-uncurry-this");w.exports=u([].slice)},{"../internals/function-uncurry-this":157}],118:[function(s,w,_){var u=s("../internals/array-slice-simple"),p=Math.floor,y=function(v,c){var h=v.length,g=p(h/2);return h<8?m(v,c):b(v,y(u(v,0,g),c),y(u(v,g),c),c)},m=function(v,c){for(var h=v.length,g=1,x,T;g<h;){for(T=g,x=v[g];T&&c(v[T-1],x)>0;)v[T]=v[--T];T!==g++&&(v[T]=x)}return v},b=function(v,c,h,g){for(var x=c.length,T=h.length,I=0,R=0;I<x||R<T;)v[I+R]=I<x&&R<T?g(c[I],h[R])<=0?c[I++]:h[R++]:I<x?c[I++]:h[R++];return v};w.exports=y},{"../internals/array-slice-simple":116}],119:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-array"),y=s("../internals/is-constructor"),m=s("../internals/is-object"),b=s("../internals/well-known-symbol"),v=b("species"),c=u.Array;w.exports=function(h){var g;return p(h)&&(g=h.constructor,y(g)&&(g===c||p(g.prototype))?g=void 0:m(g)&&(g=g[v],g===null&&(g=void 0))),g===void 0?c:g}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(s,w,_){var u=s("../internals/array-species-constructor");w.exports=function(p,y){return new(u(p))(y===0?0:y)}},{"../internals/array-species-constructor":119}],121:[function(s,w,_){var u=s("../internals/an-object"),p=s("../internals/iterator-close");w.exports=function(y,m,b,v){try{return v?m(u(b)[0],b[1]):m(b)}catch(c){p(y,"throw",c)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(s,w,_){var u=s("../internals/well-known-symbol"),p=u("iterator"),y=!1;try{var m=0,b={next:function(){return{done:!!m++}},return:function(){y=!0}};b[p]=function(){return this},Array.from(b,function(){throw 2})}catch(v){}w.exports=function(v,c){if(!c&&!y)return!1;var h=!1;try{var g={};g[p]=function(){return{next:function(){return{done:h=!0}}}},v(g)}catch(x){}return h}},{"../internals/well-known-symbol":268}],123:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=u({}.toString),y=u("".slice);w.exports=function(m){return y(p(m),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/to-string-tag-support"),y=s("../internals/is-callable"),m=s("../internals/classof-raw"),b=s("../internals/well-known-symbol"),v=b("toStringTag"),c=u.Object,h=m(function(){return arguments}())=="Arguments",g=function(x,T){try{return x[T]}catch(I){}};w.exports=p?m:function(x){var T,I,R;return x===void 0?"Undefined":x===null?"Null":typeof(I=g(T=c(x),v))=="string"?I:h?m(T):(R=m(T))=="Object"&&y(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,w,_){var u=s("../internals/has-own-property"),p=s("../internals/own-keys"),y=s("../internals/object-get-own-property-descriptor"),m=s("../internals/object-define-property");w.exports=function(b,v,c){for(var h=p(v),g=m.f,x=y.f,T=0;T<h.length;T++){var I=h[T];!u(b,I)&&!(c&&u(c,I))&&g(b,I,x(v,I))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(s,w,_){var u=s("../internals/well-known-symbol"),p=u("match");w.exports=function(y){var m=/./;try{"/./"[y](m)}catch(b){try{return m[p]=!1,"/./"[y](m)}catch(v){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(s,w,_){var u=s("../internals/fails");w.exports=!u(function(){function p(){}return p.prototype.constructor=null,Object.getPrototypeOf(new p)!==p.prototype})},{"../internals/fails":150}],128:[function(s,w,_){"use strict";var u=s("../internals/iterators-core").IteratorPrototype,p=s("../internals/object-create"),y=s("../internals/create-property-descriptor"),m=s("../internals/set-to-string-tag"),b=s("../internals/iterators"),v=function(){return this};w.exports=function(c,h,g,x){var T=h+" Iterator";return c.prototype=p(u,{next:y(+!x,g)}),m(c,T,!1,!0),b[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,w,_){var u=s("../internals/descriptors"),p=s("../internals/object-define-property"),y=s("../internals/create-property-descriptor");w.exports=u?function(m,b,v){return p.f(m,b,y(1,v))}:function(m,b,v){return m[b]=v,m}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(s,w,_){w.exports=function(u,p){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:p}}},{}],131:[function(s,w,_){"use strict";var u=s("../internals/to-property-key"),p=s("../internals/object-define-property"),y=s("../internals/create-property-descriptor");w.exports=function(m,b,v){var c=u(b);c in m?p.f(m,c,y(0,v)):m[c]=v}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(s,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/function-call"),y=s("../internals/is-pure"),m=s("../internals/function-name"),b=s("../internals/is-callable"),v=s("../internals/create-iterator-constructor"),c=s("../internals/object-get-prototype-of"),h=s("../internals/object-set-prototype-of"),g=s("../internals/set-to-string-tag"),x=s("../internals/create-non-enumerable-property"),T=s("../internals/redefine"),I=s("../internals/well-known-symbol"),R=s("../internals/iterators"),N=s("../internals/iterators-core"),k=m.PROPER,L=m.CONFIGURABLE,H=N.IteratorPrototype,M=N.BUGGY_SAFARI_ITERATORS,F=I("iterator"),P="keys",U="values",G="entries",Q=function(){return this};w.exports=function(ee,ae,oe,he,le,be,pe){v(oe,ae,he);var _e=function(je){if(je===le&&ke)return ke;if(!M&&je in ce)return ce[je];switch(je){case P:return function(){return new oe(this,je)};case U:return function(){return new oe(this,je)};case G:return function(){return new oe(this,je)}}return function(){return new oe(this)}},ne=ae+" Iterator",ue=!1,ce=ee.prototype,Re=ce[F]||ce["@@iterator"]||le&&ce[le],ke=!M&&Re||_e(le),Ne=ae=="Array"&&ce.entries||Re,De,Me,We;if(Ne&&(De=c(Ne.call(new ee)),De!==Object.prototype&&De.next&&(!y&&c(De)!==H&&(h?h(De,H):b(De[F])||T(De,F,Q)),g(De,ne,!0,!0),y&&(R[ne]=Q))),k&&le==U&&Re&&Re.name!==U&&(!y&&L?x(ce,"name",U):(ue=!0,ke=function(){return p(Re,this)})),le)if(Me={values:_e(U),keys:be?ke:_e(P),entries:_e(G)},pe)for(We in Me)(M||ue||!(We in ce))&&T(ce,We,Me[We]);else u({target:ae,proto:!0,forced:M||ue},Me);return(!y||pe)&&ce[F]!==ke&&T(ce,F,ke,{name:le}),R[ae]=ke,Me}},{"../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,w,_){var u=s("../internals/path"),p=s("../internals/has-own-property"),y=s("../internals/well-known-symbol-wrapped"),m=s("../internals/object-define-property").f;w.exports=function(b){var v=u.Symbol||(u.Symbol={});p(v,b)||m(v,b,{value:y.f(b)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(s,w,_){var u=s("../internals/fails");w.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-object"),y=u.document,m=p(y)&&p(y.createElement);w.exports=function(b){return m?y.createElement(b):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(s,w,_){w.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,w,_){var u=s("../internals/document-create-element"),p=u("span").classList,y=p&&p.constructor&&p.constructor.prototype;w.exports=y===Object.prototype?void 0:y},{"../internals/document-create-element":135}],138:[function(s,w,_){var u=s("../internals/engine-user-agent"),p=u.match(/firefox\/(\d+)/i);w.exports=!!p&&+p[1]},{"../internals/engine-user-agent":145}],139:[function(s,w,_){w.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(s,w,_){var u=s("../internals/engine-user-agent");w.exports=/MSIE|Trident/.test(u)},{"../internals/engine-user-agent":145}],141:[function(s,w,_){var u=s("../internals/engine-user-agent"),p=s("../internals/global");w.exports=/ipad|iphone|ipod/i.test(u)&&p.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(s,w,_){var u=s("../internals/engine-user-agent");w.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},{"../internals/engine-user-agent":145}],143:[function(s,w,_){var u=s("../internals/classof-raw"),p=s("../internals/global");w.exports=u(p.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(s,w,_){var u=s("../internals/engine-user-agent");w.exports=/web0s(?!.*chrome)/i.test(u)},{"../internals/engine-user-agent":145}],145:[function(s,w,_){var u=s("../internals/get-built-in");w.exports=u("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/engine-user-agent"),y=u.process,m=u.Deno,b=y&&y.versions||m&&m.version,v=b&&b.v8,c,h;v&&(c=v.split("."),h=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!h&&p&&(c=p.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=p.match(/Chrome\/(\d+)/),c&&(h=+c[1]))),w.exports=h},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(s,w,_){var u=s("../internals/engine-user-agent"),p=u.match(/AppleWebKit\/(\d+)\./);w.exports=!!p&&+p[1]},{"../internals/engine-user-agent":145}],148:[function(s,w,_){w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/object-get-own-property-descriptor").f,y=s("../internals/create-non-enumerable-property"),m=s("../internals/redefine"),b=s("../internals/set-global"),v=s("../internals/copy-constructor-properties"),c=s("../internals/is-forced");w.exports=function(h,g){var x=h.target,T=h.global,I=h.stat,R,N,k,L,H,M;if(T?N=u:I?N=u[x]||b(x,{}):N=(u[x]||{}).prototype,N)for(k in g){if(H=g[k],h.noTargetGet?(M=p(N,k),L=M&&M.value):L=N[k],R=c(T?k:x+(I?".":"#")+k,h.forced),!R&&L!==void 0){if(typeof H==typeof L)continue;v(H,L)}(h.sham||L&&L.sham)&&y(H,"sham",!0),m(N,k,H,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,w,_){w.exports=function(u){try{return!!u()}catch(p){return!0}}},{}],151:[function(s,w,_){"use strict";s("../modules/es.regexp.exec");var u=s("../internals/function-uncurry-this"),p=s("../internals/redefine"),y=s("../internals/regexp-exec"),m=s("../internals/fails"),b=s("../internals/well-known-symbol"),v=s("../internals/create-non-enumerable-property"),c=b("species"),h=RegExp.prototype;w.exports=function(g,x,T,I){var R=b(g),N=!m(function(){var M={};return M[R]=function(){return 7},""[g](M)!=7}),k=N&&!m(function(){var M=!1,F=/a/;return g==="split"&&(F={},F.constructor={},F.constructor[c]=function(){return F},F.flags="",F[R]=/./[R]),F.exec=function(){return M=!0,null},F[R](""),!M});if(!N||!k||T){var L=u(/./[R]),H=x(R,""[g],function(M,F,P,U,G){var Q=u(M),ee=F.exec;return ee===y||ee===h.exec?N&&!G?{done:!0,value:L(F,P,U)}:{done:!0,value:Q(P,F,U)}:{done:!1}});p(String.prototype,g,H[0]),p(h,R,H[1])}I&&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,w,_){var u=s("../internals/function-bind-native"),p=Function.prototype,y=p.apply,m=p.call;w.exports=typeof Reflect=="object"&&Reflect.apply||(u?m.bind(y):function(){return m.apply(y,arguments)})},{"../internals/function-bind-native":154}],153:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=s("../internals/a-callable"),y=s("../internals/function-bind-native"),m=u(u.bind);w.exports=function(b,v){return p(b),v===void 0?b:y?m(b,v):function(){return b.apply(v,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(s,w,_){var u=s("../internals/fails");w.exports=!u(function(){var p=function(){}.bind();return typeof p!="function"||p.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(s,w,_){var u=s("../internals/function-bind-native"),p=Function.prototype.call;w.exports=u?p.bind(p):function(){return p.apply(p,arguments)}},{"../internals/function-bind-native":154}],156:[function(s,w,_){var u=s("../internals/descriptors"),p=s("../internals/has-own-property"),y=Function.prototype,m=u&&Object.getOwnPropertyDescriptor,b=p(y,"name"),v=b&&function(){}.name==="something",c=b&&(!u||u&&m(y,"name").configurable);w.exports={EXISTS:b,PROPER:v,CONFIGURABLE:c}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(s,w,_){var u=s("../internals/function-bind-native"),p=Function.prototype,y=p.bind,m=p.call,b=u&&y.bind(m,m);w.exports=u?function(v){return v&&b(v)}:function(v){return v&&function(){return m.apply(v,arguments)}}},{"../internals/function-bind-native":154}],158:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-callable"),y=function(m){return p(m)?m:void 0};w.exports=function(m,b){return arguments.length<2?y(u[m]):u[m]&&u[m][b]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(s,w,_){var u=s("../internals/classof"),p=s("../internals/get-method"),y=s("../internals/iterators"),m=s("../internals/well-known-symbol"),b=m("iterator");w.exports=function(v){if(v!=null)return p(v,b)||p(v,"@@iterator")||y[u(v)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/function-call"),y=s("../internals/a-callable"),m=s("../internals/an-object"),b=s("../internals/try-to-string"),v=s("../internals/get-iterator-method"),c=u.TypeError;w.exports=function(h,g){var x=arguments.length<2?v(h):g;if(y(x))return m(p(x,h));throw c(b(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,w,_){var u=s("../internals/a-callable");w.exports=function(p,y){var m=p[y];return m==null?void 0:u(m)}},{"../internals/a-callable":95}],162:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=s("../internals/to-object"),y=Math.floor,m=u("".charAt),b=u("".replace),v=u("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h=/\$([$&'`]|\d{1,2})/g;w.exports=function(g,x,T,I,R,N){var k=T+g.length,L=I.length,H=h;return R!==void 0&&(R=p(R),H=c),b(N,H,function(M,F){var P;switch(m(F,0)){case"$":return"$";case"&":return g;case"`":return v(x,0,T);case"'":return v(x,k);case"<":P=R[v(F,1,-1)];break;default:var U=+F;if(U===0)return M;if(U>L){var G=y(U/10);return G===0?M:G<=L?I[G-1]===void 0?m(F,1):I[G-1]+m(F,1):M}P=I[U-1]}return P===void 0?"":P})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(s,w,_){(function(u){(function(){var p=function(y){return y&&y.Math==Math&&y};w.exports=p(typeof globalThis=="object"&&globalThis)||p(typeof window=="object"&&window)||p(typeof self=="object"&&self)||p(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=s("../internals/to-object"),y=u({}.hasOwnProperty);w.exports=Object.hasOwn||function(b,v){return y(p(b),v)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(s,w,_){w.exports={}},{}],166:[function(s,w,_){var u=s("../internals/global");w.exports=function(p,y){var m=u.console;m&&m.error&&(arguments.length==1?m.error(p):m.error(p,y))}},{"../internals/global":163}],167:[function(s,w,_){var u=s("../internals/get-built-in");w.exports=u("document","documentElement")},{"../internals/get-built-in":158}],168:[function(s,w,_){var u=s("../internals/descriptors"),p=s("../internals/fails"),y=s("../internals/document-create-element");w.exports=!u&&!p(function(){return Object.defineProperty(y("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(s,w,_){var u=s("../internals/global"),p=u.Array,y=Math.abs,m=Math.pow,b=Math.floor,v=Math.log,c=Math.LN2,h=function(x,T,I){var R=p(I),N=I*8-T-1,k=(1<<N)-1,L=k>>1,H=T===23?m(2,-24)-m(2,-77):0,M=x<0||x===0&&1/x<0?1:0,F=0,P,U,G;for(x=y(x),x!=x||x===1/0?(U=x!=x?1:0,P=k):(P=b(v(x)/c),G=m(2,-P),x*G<1&&(P--,G*=2),P+L>=1?x+=H/G:x+=H*m(2,1-L),x*G>=2&&(P++,G/=2),P+L>=k?(U=0,P=k):P+L>=1?(U=(x*G-1)*m(2,T),P=P+L):(U=x*m(2,L-1)*m(2,T),P=0));T>=8;)R[F++]=U&255,U/=256,T-=8;for(P=P<<T|U,N+=T;N>0;)R[F++]=P&255,P/=256,N-=8;return R[--F]|=M*128,R},g=function(x,T){var I=x.length,R=I*8-T-1,N=(1<<R)-1,k=N>>1,L=R-7,H=I-1,M=x[H--],F=M&127,P;for(M>>=7;L>0;)F=F*256+x[H--],L-=8;for(P=F&(1<<-L)-1,F>>=-L,L+=T;L>0;)P=P*256+x[H--],L-=8;if(F===0)F=1-k;else{if(F===N)return P?NaN:M?-1/0:1/0;P=P+m(2,T),F=F-k}return(M?-1:1)*P*m(2,F-T)};w.exports={pack:h,unpack:g}},{"../internals/global":163}],170:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/function-uncurry-this"),y=s("../internals/fails"),m=s("../internals/classof-raw"),b=u.Object,v=p("".split);w.exports=y(function(){return!b("z").propertyIsEnumerable(0)})?function(c){return m(c)=="String"?v(c,""):b(c)}:b},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(s,w,_){var u=s("../internals/is-callable"),p=s("../internals/is-object"),y=s("../internals/object-set-prototype-of");w.exports=function(m,b,v){var c,h;return y&&u(c=b.constructor)&&c!==v&&p(h=c.prototype)&&h!==v.prototype&&y(m,h),m}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=s("../internals/is-callable"),y=s("../internals/shared-store"),m=u(Function.toString);p(y.inspectSource)||(y.inspectSource=function(b){return m(b)}),w.exports=y.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(s,w,_){var u=s("../internals/native-weak-map"),p=s("../internals/global"),y=s("../internals/function-uncurry-this"),m=s("../internals/is-object"),b=s("../internals/create-non-enumerable-property"),v=s("../internals/has-own-property"),c=s("../internals/shared-store"),h=s("../internals/shared-key"),g=s("../internals/hidden-keys"),x="Object already initialized",T=p.TypeError,I=p.WeakMap,R,N,k,L=function(Q){return k(Q)?N(Q):R(Q,{})},H=function(Q){return function(ee){var ae;if(!m(ee)||(ae=N(ee)).type!==Q)throw T("Incompatible receiver, "+Q+" required");return ae}};if(u||c.state){var M=c.state||(c.state=new I),F=y(M.get),P=y(M.has),U=y(M.set);R=function(Q,ee){if(P(M,Q))throw new T(x);return ee.facade=Q,U(M,Q,ee),ee},N=function(Q){return F(M,Q)||{}},k=function(Q){return P(M,Q)}}else{var G=h("state");g[G]=!0,R=function(Q,ee){if(v(Q,G))throw new T(x);return ee.facade=Q,b(Q,G,ee),ee},N=function(Q){return v(Q,G)?Q[G]:{}},k=function(Q){return v(Q,G)}}w.exports={set:R,get:N,has:k,enforce:L,getterFor:H}},{"../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,w,_){var u=s("../internals/well-known-symbol"),p=s("../internals/iterators"),y=u("iterator"),m=Array.prototype;w.exports=function(b){return b!==void 0&&(p.Array===b||m[y]===b)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(s,w,_){var u=s("../internals/classof-raw");w.exports=Array.isArray||function(y){return u(y)=="Array"}},{"../internals/classof-raw":123}],176:[function(s,w,_){w.exports=function(u){return typeof u=="function"}},{}],177:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=s("../internals/fails"),y=s("../internals/is-callable"),m=s("../internals/classof"),b=s("../internals/get-built-in"),v=s("../internals/inspect-source"),c=function(){},h=[],g=b("Reflect","construct"),x=/^\s*(?:class|function)\b/,T=u(x.exec),I=!x.exec(c),R=function(L){if(!y(L))return!1;try{return g(c,h,L),!0}catch(H){return!1}},N=function(L){if(!y(L))return!1;switch(m(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return I||!!T(x,v(L))}catch(H){return!0}};N.sham=!0,w.exports=!g||p(function(){var k;return R(R.call)||!R(Object)||!R(function(){k=!0})||k})?N: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,w,_){var u=s("../internals/fails"),p=s("../internals/is-callable"),y=/#|\.prototype\./,m=function(g,x){var T=v[b(g)];return T==h?!0:T==c?!1:p(x)?u(x):!!x},b=m.normalize=function(g){return String(g).replace(y,".").toLowerCase()},v=m.data={},c=m.NATIVE="N",h=m.POLYFILL="P";w.exports=m},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(s,w,_){var u=s("../internals/is-object"),p=Math.floor;w.exports=Number.isInteger||function(m){return!u(m)&&isFinite(m)&&p(m)===m}},{"../internals/is-object":180}],180:[function(s,w,_){var u=s("../internals/is-callable");w.exports=function(p){return typeof p=="object"?p!==null:u(p)}},{"../internals/is-callable":176}],181:[function(s,w,_){w.exports=!1},{}],182:[function(s,w,_){var u=s("../internals/is-object"),p=s("../internals/classof-raw"),y=s("../internals/well-known-symbol"),m=y("match");w.exports=function(b){var v;return u(b)&&((v=b[m])!==void 0?!!v:p(b)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/get-built-in"),y=s("../internals/is-callable"),m=s("../internals/object-is-prototype-of"),b=s("../internals/use-symbol-as-uid"),v=u.Object;w.exports=b?function(c){return typeof c=="symbol"}:function(c){var h=p("Symbol");return y(h)&&m(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,w,_){var u=s("../internals/global"),p=s("../internals/function-bind-context"),y=s("../internals/function-call"),m=s("../internals/an-object"),b=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"),g=s("../internals/get-iterator"),x=s("../internals/get-iterator-method"),T=s("../internals/iterator-close"),I=u.TypeError,R=function(k,L){this.stopped=k,this.result=L},N=R.prototype;w.exports=function(k,L,H){var M=H&&H.that,F=!!(H&&H.AS_ENTRIES),P=!!(H&&H.IS_ITERATOR),U=!!(H&&H.INTERRUPTED),G=p(L,M),Q,ee,ae,oe,he,le,be,pe=function(ne){return Q&&T(Q,"normal",ne),new R(!0,ne)},_e=function(ne){return F?(m(ne),U?G(ne[0],ne[1],pe):G(ne[0],ne[1])):U?G(ne,pe):G(ne)};if(P)Q=k;else{if(ee=x(k),!ee)throw I(b(k)+" is not iterable");if(v(ee)){for(ae=0,oe=c(k);oe>ae;ae++)if(he=_e(k[ae]),he&&h(N,he))return he;return new R(!1)}Q=g(k,ee)}for(le=Q.next;!(be=y(le,Q)).done;){try{he=_e(be.value)}catch(ne){T(Q,"throw",ne)}if(typeof he=="object"&&he&&h(N,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,w,_){var u=s("../internals/function-call"),p=s("../internals/an-object"),y=s("../internals/get-method");w.exports=function(m,b,v){var c,h;p(m);try{if(c=y(m,"return"),!c){if(b==="throw")throw v;return v}c=u(c,m)}catch(g){h=!0,c=g}if(b==="throw")throw v;if(h)throw c;return p(c),v}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(s,w,_){"use strict";var u=s("../internals/fails"),p=s("../internals/is-callable"),y=s("../internals/object-create"),m=s("../internals/object-get-prototype-of"),b=s("../internals/redefine"),v=s("../internals/well-known-symbol"),c=s("../internals/is-pure"),h=v("iterator"),g=!1,x,T,I;[].keys&&(I=[].keys(),"next"in I?(T=m(m(I)),T!==Object.prototype&&(x=T)):g=!0);var R=x==null||u(function(){var N={};return x[h].call(N)!==N});R?x={}:c&&(x=y(x)),p(x[h])||b(x,h,function(){return this}),w.exports={IteratorPrototype:x,BUGGY_SAFARI_ITERATORS:g}},{"../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,w,_){arguments[4][165][0].apply(_,arguments)},{dup:165}],188:[function(s,w,_){var u=s("../internals/to-length");w.exports=function(p){return u(p.length)}},{"../internals/to-length":249}],189:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/function-bind-context"),y=s("../internals/object-get-own-property-descriptor").f,m=s("../internals/task").set,b=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"),g=u.MutationObserver||u.WebKitMutationObserver,x=u.document,T=u.process,I=u.Promise,R=y(u,"queueMicrotask"),N=R&&R.value,k,L,H,M,F,P,U,G;N||(k=function(){var Q,ee;for(h&&(Q=T.domain)&&Q.exit();L;){ee=L.fn,L=L.next;try{ee()}catch(ae){throw L?M():H=void 0,ae}}H=void 0,Q&&Q.enter()},!b&&!h&&!c&&g&&x?(F=!0,P=x.createTextNode(""),new g(k).observe(P,{characterData:!0}),M=function(){P.data=F=!F}):!v&&I&&I.resolve?(U=I.resolve(void 0),U.constructor=I,G=p(U.then,U),M=function(){G(k)}):h?M=function(){T.nextTick(k)}:(m=p(m,u),M=function(){m(k)})),w.exports=N||function(Q){var ee={fn:Q,next:void 0};H&&(H.next=ee),L||(L=ee,M()),H=ee}},{"../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,w,_){var u=s("../internals/native-symbol");w.exports=u&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(s,w,_){var u=s("../internals/engine-v8-version"),p=s("../internals/fails");w.exports=!!Object.getOwnPropertySymbols&&!p(function(){var y=Symbol();return!String(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&u&&u<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-callable"),y=s("../internals/inspect-source"),m=u.WeakMap;w.exports=p(m)&&/native code/.test(y(m))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(s,w,_){"use strict";var u=s("../internals/a-callable"),p=function(y){var m,b;this.promise=new y(function(v,c){if(m!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");m=v,b=c}),this.resolve=u(m),this.reject=u(b)};w.exports.f=function(y){return new p(y)}},{"../internals/a-callable":95}],194:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-regexp"),y=u.TypeError;w.exports=function(m){if(p(m))throw y("The method doesn't accept regular expressions");return m}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(s,w,_){"use strict";var u=s("../internals/descriptors"),p=s("../internals/function-uncurry-this"),y=s("../internals/function-call"),m=s("../internals/fails"),b=s("../internals/object-keys"),v=s("../internals/object-get-own-property-symbols"),c=s("../internals/object-property-is-enumerable"),h=s("../internals/to-object"),g=s("../internals/indexed-object"),x=Object.assign,T=Object.defineProperty,I=p([].concat);w.exports=!x||m(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={},N={},k=Symbol(),L="abcdefghijklmnopqrst";return R[k]=7,L.split("").forEach(function(H){N[H]=H}),x({},R)[k]!=7||b(x({},N)).join("")!=L})?function(N,k){for(var L=h(N),H=arguments.length,M=1,F=v.f,P=c.f;H>M;)for(var U=g(arguments[M++]),G=F?I(b(U),F(U)):b(U),Q=G.length,ee=0,ae;Q>ee;)ae=G[ee++],(!u||y(P,U,ae))&&(L[ae]=U[ae]);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,w,_){var u=s("../internals/an-object"),p=s("../internals/object-define-properties"),y=s("../internals/enum-bug-keys"),m=s("../internals/hidden-keys"),b=s("../internals/html"),v=s("../internals/document-create-element"),c=s("../internals/shared-key"),h=">",g="<",x="prototype",T="script",I=c("IE_PROTO"),R=function(){},N=function(F){return g+T+h+F+g+"/"+T+h},k=function(F){F.write(N("")),F.close();var P=F.parentWindow.Object;return F=null,P},L=function(){var F=v("iframe"),P="java"+T+":",U;return F.style.display="none",b.appendChild(F),F.src=String(P),U=F.contentWindow.document,U.open(),U.write(N("document.F=Object")),U.close(),U.F},H,M=function(){try{H=new ActiveXObject("htmlfile")}catch(P){}M=typeof document!="undefined"?document.domain&&H?k(H):L():k(H);for(var F=y.length;F--;)delete M[x][y[F]];return M()};m[I]=!0,w.exports=Object.create||function(P,U){var G;return P!==null?(R[x]=u(P),G=new R,R[x]=null,G[I]=P):G=M(),U===void 0?G:p.f(G,U)}},{"../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,w,_){var u=s("../internals/descriptors"),p=s("../internals/v8-prototype-define-bug"),y=s("../internals/object-define-property"),m=s("../internals/an-object"),b=s("../internals/to-indexed-object"),v=s("../internals/object-keys");_.f=u&&!p?Object.defineProperties:function(h,g){m(h);for(var x=b(g),T=v(g),I=T.length,R=0,N;I>R;)y.f(h,N=T[R++],x[N]);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,w,_){var u=s("../internals/global"),p=s("../internals/descriptors"),y=s("../internals/ie8-dom-define"),m=s("../internals/v8-prototype-define-bug"),b=s("../internals/an-object"),v=s("../internals/to-property-key"),c=u.TypeError,h=Object.defineProperty,g=Object.getOwnPropertyDescriptor,x="enumerable",T="configurable",I="writable";_.f=p?m?function(N,k,L){if(b(N),k=v(k),b(L),typeof N=="function"&&k==="prototype"&&"value"in L&&I in L&&!L[I]){var H=g(N,k);H&&H[I]&&(N[k]=L.value,L={configurable:T in L?L[T]:H[T],enumerable:x in L?L[x]:H[x],writable:!1})}return h(N,k,L)}:h:function(N,k,L){if(b(N),k=v(k),b(L),y)try{return h(N,k,L)}catch(H){}if("get"in L||"set"in L)throw c("Accessors not supported");return"value"in L&&(N[k]=L.value),N}},{"../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,w,_){var u=s("../internals/descriptors"),p=s("../internals/function-call"),y=s("../internals/object-property-is-enumerable"),m=s("../internals/create-property-descriptor"),b=s("../internals/to-indexed-object"),v=s("../internals/to-property-key"),c=s("../internals/has-own-property"),h=s("../internals/ie8-dom-define"),g=Object.getOwnPropertyDescriptor;_.f=u?g:function(T,I){if(T=b(T),I=v(I),h)try{return g(T,I)}catch(R){}if(c(T,I))return m(!p(y.f,T,I),T[I])}},{"../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,w,_){var u=s("../internals/classof-raw"),p=s("../internals/to-indexed-object"),y=s("../internals/object-get-own-property-names").f,m=s("../internals/array-slice-simple"),b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],v=function(c){try{return y(c)}catch(h){return m(b)}};w.exports.f=function(h){return b&&u(h)=="Window"?v(h):y(p(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,w,_){var u=s("../internals/object-keys-internal"),p=s("../internals/enum-bug-keys"),y=p.concat("length","prototype");_.f=Object.getOwnPropertyNames||function(b){return u(b,y)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(s,w,_){_.f=Object.getOwnPropertySymbols},{}],203:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/has-own-property"),y=s("../internals/is-callable"),m=s("../internals/to-object"),b=s("../internals/shared-key"),v=s("../internals/correct-prototype-getter"),c=b("IE_PROTO"),h=u.Object,g=h.prototype;w.exports=v?h.getPrototypeOf:function(x){var T=m(x);if(p(T,c))return T[c];var I=T.constructor;return y(I)&&T instanceof I?I.prototype:T instanceof h?g: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,w,_){var u=s("../internals/function-uncurry-this");w.exports=u({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=s("../internals/has-own-property"),y=s("../internals/to-indexed-object"),m=s("../internals/array-includes").indexOf,b=s("../internals/hidden-keys"),v=u([].push);w.exports=function(c,h){var g=y(c),x=0,T=[],I;for(I in g)!p(b,I)&&p(g,I)&&v(T,I);for(;h.length>x;)p(g,I=h[x++])&&(~m(T,I)||v(T,I));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,w,_){var u=s("../internals/object-keys-internal"),p=s("../internals/enum-bug-keys");w.exports=Object.keys||function(m){return u(m,p)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(s,w,_){"use strict";var u={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,y=p&&!u.call({1:2},1);_.f=y?function(b){var v=p(this,b);return!!v&&v.enumerable}:u},{}],208:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=s("../internals/an-object"),y=s("../internals/a-possible-prototype");w.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,b={},v;try{v=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),v(b,[]),m=b instanceof Array}catch(c){}return function(h,g){return p(h),y(g),m?v(h,g):h.__proto__=g,h}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(s,w,_){var u=s("../internals/descriptors"),p=s("../internals/function-uncurry-this"),y=s("../internals/object-keys"),m=s("../internals/to-indexed-object"),b=s("../internals/object-property-is-enumerable").f,v=p(b),c=p([].push),h=function(g){return function(x){for(var T=m(x),I=y(T),R=I.length,N=0,k=[],L;R>N;)L=I[N++],(!u||v(T,L))&&c(k,g?[L,T[L]]:T[L]);return k}};w.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,w,_){"use strict";var u=s("../internals/to-string-tag-support"),p=s("../internals/classof");w.exports=u?{}.toString:function(){return"[object "+p(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/function-call"),y=s("../internals/is-callable"),m=s("../internals/is-object"),b=u.TypeError;w.exports=function(v,c){var h,g;if(c==="string"&&y(h=v.toString)&&!m(g=p(h,v))||y(h=v.valueOf)&&!m(g=p(h,v))||c!=="string"&&y(h=v.toString)&&!m(g=p(h,v)))return g;throw b("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,w,_){var u=s("../internals/get-built-in"),p=s("../internals/function-uncurry-this"),y=s("../internals/object-get-own-property-names"),m=s("../internals/object-get-own-property-symbols"),b=s("../internals/an-object"),v=p([].concat);w.exports=u("Reflect","ownKeys")||function(h){var g=y.f(b(h)),x=m.f;return x?v(g,x(h)):g}},{"../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,w,_){var u=s("../internals/global");w.exports=u},{"../internals/global":163}],214:[function(s,w,_){w.exports=function(u){try{return{error:!1,value:u()}}catch(p){return{error:!0,value:p}}}},{}],215:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/promise-native-constructor"),y=s("../internals/is-callable"),m=s("../internals/is-forced"),b=s("../internals/inspect-source"),v=s("../internals/well-known-symbol"),c=s("../internals/engine-is-browser"),h=s("../internals/is-pure"),g=s("../internals/engine-v8-version"),x=p&&p.prototype,T=v("species"),I=!1,R=y(u.PromiseRejectionEvent),N=m("Promise",function(){var k=b(p),L=k!==String(p);if(!L&&g===66||h&&!(x.catch&&x.finally))return!0;if(g>=51&&/native code/.test(k))return!1;var H=new p(function(P){P(1)}),M=function(P){P(function(){},function(){})},F=H.constructor={};return F[T]=M,I=H.then(function(){})instanceof M,I?!L&&c&&!R:!0});w.exports={CONSTRUCTOR:N,REJECTION_EVENT:R,SUBCLASSING:I}},{"../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,w,_){var u=s("../internals/global");w.exports=u.Promise},{"../internals/global":163}],217:[function(s,w,_){var u=s("../internals/an-object"),p=s("../internals/is-object"),y=s("../internals/new-promise-capability");w.exports=function(m,b){if(u(m),p(b)&&b.constructor===m)return b;var v=y.f(m),c=v.resolve;return c(b),v.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(s,w,_){var u=s("../internals/promise-native-constructor"),p=s("../internals/check-correctness-of-iteration"),y=s("../internals/promise-constructor-detection").CONSTRUCTOR;w.exports=y||!p(function(m){u.all(m).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(s,w,_){var u=s("../internals/object-define-property").f;w.exports=function(p,y,m){m in p||u(p,m,{configurable:!0,get:function(){return y[m]},set:function(b){y[m]=b}})}},{"../internals/object-define-property":198}],220:[function(s,w,_){var u=function(){this.head=null,this.tail=null};u.prototype={add:function(p){var y={item:p,next:null};this.head?this.tail.next=y:this.head=y,this.tail=y},get:function(){var p=this.head;if(p)return this.head=p.next,this.tail===p&&(this.tail=null),p.item}},w.exports=u},{}],221:[function(s,w,_){var u=s("../internals/redefine");w.exports=function(p,y,m){for(var b in y)u(p,b,y[b],m);return p}},{"../internals/redefine":222}],222:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/is-callable"),y=s("../internals/has-own-property"),m=s("../internals/create-non-enumerable-property"),b=s("../internals/set-global"),v=s("../internals/inspect-source"),c=s("../internals/internal-state"),h=s("../internals/function-name").CONFIGURABLE,g=c.get,x=c.enforce,T=String(String).split("String");(w.exports=function(I,R,N,k){var L=k?!!k.unsafe:!1,H=k?!!k.enumerable:!1,M=k?!!k.noTargetGet:!1,F=k&&k.name!==void 0?k.name:R,P;if(p(N)&&(String(F).slice(0,7)==="Symbol("&&(F="["+String(F).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(N,"name")||h&&N.name!==F)&&m(N,"name",F),P=x(N),P.source||(P.source=T.join(typeof F=="string"?F:""))),I===u){H?I[R]=N:b(R,N);return}else L?!M&&I[R]&&(H=!0):delete I[R];H?I[R]=N:m(I,R,N)})(Function.prototype,"toString",function(){return p(this)&&g(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,w,_){var u=s("../internals/global"),p=s("../internals/function-call"),y=s("../internals/an-object"),m=s("../internals/is-callable"),b=s("../internals/classof-raw"),v=s("../internals/regexp-exec"),c=u.TypeError;w.exports=function(h,g){var x=h.exec;if(m(x)){var T=p(x,h,g);return T!==null&&y(T),T}if(b(h)==="RegExp")return p(v,h,g);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,w,_){"use strict";var u=s("../internals/function-call"),p=s("../internals/function-uncurry-this"),y=s("../internals/to-string"),m=s("../internals/regexp-flags"),b=s("../internals/regexp-sticky-helpers"),v=s("../internals/shared"),c=s("../internals/object-create"),h=s("../internals/internal-state").get,g=s("../internals/regexp-unsupported-dot-all"),x=s("../internals/regexp-unsupported-ncg"),T=v("native-string-replace",String.prototype.replace),I=RegExp.prototype.exec,R=I,N=p("".charAt),k=p("".indexOf),L=p("".replace),H=p("".slice),M=function(){var G=/a/,Q=/b*/g;return u(I,G,"a"),u(I,Q,"a"),G.lastIndex!==0||Q.lastIndex!==0}(),F=b.BROKEN_CARET,P=/()??/.exec("")[1]!==void 0,U=M||P||F||g||x;U&&(R=function(Q){var ee=this,ae=h(ee),oe=y(Q),he=ae.raw,le,be,pe,_e,ne,ue,ce;if(he)return he.lastIndex=ee.lastIndex,le=u(R,he,oe),ee.lastIndex=he.lastIndex,le;var Re=ae.groups,ke=F&&ee.sticky,Ne=u(m,ee),De=ee.source,Me=0,We=oe;if(ke&&(Ne=L(Ne,"y",""),k(Ne,"g")===-1&&(Ne+="g"),We=H(oe,ee.lastIndex),ee.lastIndex>0&&(!ee.multiline||ee.multiline&&N(oe,ee.lastIndex-1)!==`
`)&&(De="(?: "+De+")",We=" "+We,Me++),be=new RegExp("^(?:"+De+")",Ne)),P&&(be=new RegExp("^"+De+"$(?!\\s)",Ne)),M&&(pe=ee.lastIndex),_e=u(I,ke?be:ee,We),ke?_e?(_e.input=H(_e.input,Me),_e[0]=H(_e[0],Me),_e.index=ee.lastIndex,ee.lastIndex+=_e[0].length):ee.lastIndex=0:M&&_e&&(ee.lastIndex=ee.global?_e.index+_e[0].length:pe),P&&_e&&_e.length>1&&u(T,_e[0],be,function(){for(ne=1;ne<arguments.length-2;ne++)arguments[ne]===void 0&&(_e[ne]=void 0)}),_e&&Re)for(_e.groups=ue=c(null),ne=0;ne<Re.length;ne++)ce=Re[ne],ue[ce[0]]=_e[ce[1]];return _e}),w.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,w,_){"use strict";var u=s("../internals/an-object");w.exports=function(){var p=u(this),y="";return p.hasIndices&&(y+="d"),p.global&&(y+="g"),p.ignoreCase&&(y+="i"),p.multiline&&(y+="m"),p.dotAll&&(y+="s"),p.unicode&&(y+="u"),p.sticky&&(y+="y"),y}},{"../internals/an-object":101}],226:[function(s,w,_){var u=s("../internals/function-call"),p=s("../internals/has-own-property"),y=s("../internals/object-is-prototype-of"),m=s("../internals/regexp-flags"),b=RegExp.prototype;w.exports=function(v){var c=v.flags;return c===void 0&&!("flags"in b)&&!p(v,"flags")&&y(b,v)?u(m,v):c}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(s,w,_){var u=s("../internals/fails"),p=s("../internals/global"),y=p.RegExp,m=u(function(){var c=y("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),b=m||u(function(){return!y("a","y").sticky}),v=m||u(function(){var c=y("^r","gy");return c.lastIndex=2,c.exec("str")!=null});w.exports={BROKEN_CARET:v,MISSED_STICKY:b,UNSUPPORTED_Y:m}},{"../internals/fails":150,"../internals/global":163}],228:[function(s,w,_){var u=s("../internals/fails"),p=s("../internals/global"),y=p.RegExp;w.exports=u(function(){var m=y(".","s");return!(m.dotAll&&m.exec(`
`)&&m.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(s,w,_){var u=s("../internals/fails"),p=s("../internals/global"),y=p.RegExp;w.exports=u(function(){var m=y("(?<a>b)","g");return m.exec("b").groups.a!=="b"||"b".replace(m,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(s,w,_){var u=s("../internals/global"),p=u.TypeError;w.exports=function(y){if(y==null)throw p("Can't call method on "+y);return y}},{"../internals/global":163}],231:[function(s,w,_){w.exports=Object.is||function(p,y){return p===y?p!==0||1/p===1/y:p!=p&&y!=y}},{}],232:[function(s,w,_){var u=s("../internals/global"),p=Object.defineProperty;w.exports=function(y,m){try{p(u,y,{value:m,configurable:!0,writable:!0})}catch(b){u[y]=m}return m}},{"../internals/global":163}],233:[function(s,w,_){"use strict";var u=s("../internals/get-built-in"),p=s("../internals/object-define-property"),y=s("../internals/well-known-symbol"),m=s("../internals/descriptors"),b=y("species");w.exports=function(v){var c=u(v),h=p.f;m&&c&&!c[b]&&h(c,b,{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,w,_){var u=s("../internals/object-define-property").f,p=s("../internals/has-own-property"),y=s("../internals/well-known-symbol"),m=y("toStringTag");w.exports=function(b,v,c){b&&!c&&(b=b.prototype),b&&!p(b,m)&&u(b,m,{configurable:!0,value:v})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(s,w,_){var u=s("../internals/shared"),p=s("../internals/uid"),y=u("keys");w.exports=function(m){return y[m]||(y[m]=p(m))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/set-global"),y="__core-js_shared__",m=u[y]||p(y,{});w.exports=m},{"../internals/global":163,"../internals/set-global":232}],237:[function(s,w,_){var u=s("../internals/is-pure"),p=s("../internals/shared-store");(w.exports=function(y,m){return p[y]||(p[y]=m!==void 0?m:{})})("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,w,_){var u=s("../internals/an-object"),p=s("../internals/a-constructor"),y=s("../internals/well-known-symbol"),m=y("species");w.exports=function(b,v){var c=u(b).constructor,h;return c===void 0||(h=u(c)[m])==null?v:p(h)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=s("../internals/to-integer-or-infinity"),y=s("../internals/to-string"),m=s("../internals/require-object-coercible"),b=u("".charAt),v=u("".charCodeAt),c=u("".slice),h=function(g){return function(x,T){var I=y(m(x)),R=p(T),N=I.length,k,L;return R<0||R>=N?g?"":void 0:(k=v(I,R),k<55296||k>56319||R+1===N||(L=v(I,R+1))<56320||L>57343?g?b(I,R):k:g?c(I,R,R+2):(k-55296<<10)+(L-56320)+65536)}};w.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,w,_){var u=s("../internals/function-name").PROPER,p=s("../internals/fails"),y=s("../internals/whitespaces"),m="\u200B\x85\u180E";w.exports=function(b){return p(function(){return!!y[b]()||m[b]()!==m||u&&y[b].name!==b})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=s("../internals/require-object-coercible"),y=s("../internals/to-string"),m=s("../internals/whitespaces"),b=u("".replace),v="["+m+"]",c=RegExp("^"+v+v+"*"),h=RegExp(v+v+"*$"),g=function(x){return function(T){var I=y(p(T));return x&1&&(I=b(I,c,"")),x&2&&(I=b(I,h,"")),I}};w.exports={start:g(1),end:g(2),trim:g(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(s,w,_){var u=s("../internals/function-call"),p=s("../internals/get-built-in"),y=s("../internals/well-known-symbol"),m=s("../internals/redefine");w.exports=function(){var b=p("Symbol"),v=b&&b.prototype,c=v&&v.valueOf,h=y("toPrimitive");v&&!v[h]&&m(v,h,function(g){return u(c,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/function-apply"),y=s("../internals/function-bind-context"),m=s("../internals/is-callable"),b=s("../internals/has-own-property"),v=s("../internals/fails"),c=s("../internals/html"),h=s("../internals/array-slice"),g=s("../internals/document-create-element"),x=s("../internals/validate-arguments-length"),T=s("../internals/engine-is-ios"),I=s("../internals/engine-is-node"),R=u.setImmediate,N=u.clearImmediate,k=u.process,L=u.Dispatch,H=u.Function,M=u.MessageChannel,F=u.String,P=0,U={},G="onreadystatechange",Q,ee,ae,oe;try{Q=u.location}catch(_e){}var he=function(_e){if(b(U,_e)){var ne=U[_e];delete U[_e],ne()}},le=function(_e){return function(){he(_e)}},be=function(_e){he(_e.data)},pe=function(_e){u.postMessage(F(_e),Q.protocol+"//"+Q.host)};(!R||!N)&&(R=function(ne){x(arguments.length,1);var ue=m(ne)?ne:H(ne),ce=h(arguments,1);return U[++P]=function(){p(ue,void 0,ce)},ee(P),P},N=function(ne){delete U[ne]},I?ee=function(_e){k.nextTick(le(_e))}:L&&L.now?ee=function(_e){L.now(le(_e))}:M&&!T?(ae=new M,oe=ae.port2,ae.port1.onmessage=be,ee=y(oe.postMessage,oe)):u.addEventListener&&m(u.postMessage)&&!u.importScripts&&Q&&Q.protocol!=="file:"&&!v(pe)?(ee=pe,u.addEventListener("message",be,!1)):G in g("script")?ee=function(_e){c.appendChild(g("script"))[G]=function(){c.removeChild(this),he(_e)}}:ee=function(_e){setTimeout(le(_e),0)}),w.exports={set:R,clear:N}},{"../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,w,_){var u=s("../internals/function-uncurry-this");w.exports=u(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(s,w,_){var u=s("../internals/to-integer-or-infinity"),p=Math.max,y=Math.min;w.exports=function(m,b){var v=u(m);return v<0?p(v+b,0):y(v,b)}},{"../internals/to-integer-or-infinity":248}],246:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/to-integer-or-infinity"),y=s("../internals/to-length"),m=u.RangeError;w.exports=function(b){if(b===void 0)return 0;var v=p(b),c=y(v);if(v!==c)throw m("Wrong length or index");return c}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(s,w,_){var u=s("../internals/indexed-object"),p=s("../internals/require-object-coercible");w.exports=function(y){return u(p(y))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(s,w,_){var u=Math.ceil,p=Math.floor;w.exports=function(y){var m=+y;return m!==m||m===0?0:(m>0?p:u)(m)}},{}],249:[function(s,w,_){var u=s("../internals/to-integer-or-infinity"),p=Math.min;w.exports=function(y){return y>0?p(u(y),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/require-object-coercible"),y=u.Object;w.exports=function(m){return y(p(m))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/to-positive-integer"),y=u.RangeError;w.exports=function(m,b){var v=p(m);if(v%b)throw y("Wrong offset");return v}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/to-integer-or-infinity"),y=u.RangeError;w.exports=function(m){var b=p(m);if(b<0)throw y("The argument can't be less than 0");return b}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/function-call"),y=s("../internals/is-object"),m=s("../internals/is-symbol"),b=s("../internals/get-method"),v=s("../internals/ordinary-to-primitive"),c=s("../internals/well-known-symbol"),h=u.TypeError,g=c("toPrimitive");w.exports=function(x,T){if(!y(x)||m(x))return x;var I=b(x,g),R;if(I){if(T===void 0&&(T="default"),R=p(I,x,T),!y(R)||m(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,w,_){var u=s("../internals/to-primitive"),p=s("../internals/is-symbol");w.exports=function(y){var m=u(y,"string");return p(m)?m:m+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(s,w,_){var u=s("../internals/well-known-symbol"),p=u("toStringTag"),y={};y[p]="z",w.exports=String(y)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/classof"),y=u.String;w.exports=function(m){if(p(m)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return y(m)}},{"../internals/classof":124,"../internals/global":163}],257:[function(s,w,_){var u=s("../internals/global"),p=u.String;w.exports=function(y){try{return p(y)}catch(m){return"Object"}}},{"../internals/global":163}],258:[function(s,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/global"),y=s("../internals/function-call"),m=s("../internals/descriptors"),b=s("../internals/typed-array-constructors-require-wrappers"),v=s("../internals/array-buffer-view-core"),c=s("../internals/array-buffer"),h=s("../internals/an-instance"),g=s("../internals/create-property-descriptor"),x=s("../internals/create-non-enumerable-property"),T=s("../internals/is-integral-number"),I=s("../internals/to-length"),R=s("../internals/to-index"),N=s("../internals/to-offset"),k=s("../internals/to-property-key"),L=s("../internals/has-own-property"),H=s("../internals/classof"),M=s("../internals/is-object"),F=s("../internals/is-symbol"),P=s("../internals/object-create"),U=s("../internals/object-is-prototype-of"),G=s("../internals/object-set-prototype-of"),Q=s("../internals/object-get-own-property-names").f,ee=s("../internals/typed-array-from"),ae=s("../internals/array-iteration").forEach,oe=s("../internals/set-species"),he=s("../internals/object-define-property"),le=s("../internals/object-get-own-property-descriptor"),be=s("../internals/internal-state"),pe=s("../internals/inherit-if-required"),_e=be.get,ne=be.set,ue=he.f,ce=le.f,Re=Math.round,ke=p.RangeError,Ne=c.ArrayBuffer,De=Ne.prototype,Me=c.DataView,We=v.NATIVE_ARRAY_BUFFER_VIEWS,je=v.TYPED_ARRAY_CONSTRUCTOR,et=v.TYPED_ARRAY_TAG,it=v.TypedArray,ze=v.TypedArrayPrototype,xe=v.aTypedArrayConstructor,fe=v.isTypedArray,W="BYTES_PER_ELEMENT",Z="Wrong length",me=function(Be,He){xe(Be);for(var st=0,Qe=He.length,pt=new Be(Qe);Qe>st;)pt[st]=He[st++];return pt},Ce=function(Be,He){ue(Be,He,{get:function(){return _e(this)[He]}})},re=function(Be){var He;return U(De,Be)||(He=H(Be))=="ArrayBuffer"||He=="SharedArrayBuffer"},ie=function(Be,He){return fe(Be)&&!F(He)&&He in Be&&T(+He)&&He>=0},de=function(He,st){return st=k(st),ie(He,st)?g(2,He[st]):ce(He,st)},Ae=function(He,st,Qe){return st=k(st),ie(He,st)&&M(Qe)&&L(Qe,"value")&&!L(Qe,"get")&&!L(Qe,"set")&&!Qe.configurable&&(!L(Qe,"writable")||Qe.writable)&&(!L(Qe,"enumerable")||Qe.enumerable)?(He[st]=Qe.value,He):ue(He,st,Qe)};m?(We||(le.f=de,he.f=Ae,Ce(ze,"buffer"),Ce(ze,"byteOffset"),Ce(ze,"byteLength"),Ce(ze,"length")),u({target:"Object",stat:!0,forced:!We},{getOwnPropertyDescriptor:de,defineProperty:Ae}),w.exports=function(Be,He,st){var Qe=Be.match(/\d+$/)[0]/8,pt=Be+(st?"Clamped":"")+"Array",It="get"+Be,gt="set"+Be,rt=p[pt],ut=rt,At=ut&&ut.prototype,bt={},Tt=function($e,$t){var gn=_e($e);return gn.view[It]($t*Qe+gn.byteOffset,!0)},Mt=function($e,$t,gn){var Et=_e($e);st&&(gn=(gn=Re(gn))<0?0:gn>255?255:gn&255),Et.view[gt]($t*Qe+Et.byteOffset,gn,!0)},Ot=function($e,$t){ue($e,$t,{get:function(){return Tt(this,$t)},set:function(gn){return Mt(this,$t,gn)},enumerable:!0})};We?b&&(ut=He(function($e,$t,gn,Et){return h($e,At),pe(function(){return M($t)?re($t)?Et!==void 0?new rt($t,N(gn,Qe),Et):gn!==void 0?new rt($t,N(gn,Qe)):new rt($t):fe($t)?me(ut,$t):y(ee,ut,$t):new rt(R($t))}(),$e,ut)}),G&&G(ut,it),ae(Q(rt),function($e){$e in ut||x(ut,$e,rt[$e])}),ut.prototype=At):(ut=He(function($e,$t,gn,Et){h($e,At);var Mn=0,qn=0,Zn,Bt,yr;if(!M($t))yr=R($t),Bt=yr*Qe,Zn=new Ne(Bt);else if(re($t)){Zn=$t,qn=N(gn,Qe);var vr=$t.byteLength;if(Et===void 0){if(vr%Qe||(Bt=vr-qn,Bt<0))throw ke(Z)}else if(Bt=I(Et)*Qe,Bt+qn>vr)throw ke(Z);yr=Bt/Qe}else return fe($t)?me(ut,$t):y(ee,ut,$t);for(ne($e,{buffer:Zn,byteOffset:qn,byteLength:Bt,length:yr,view:new Me(Zn)});Mn<yr;)Ot($e,Mn++)}),G&&G(ut,it),At=ut.prototype=P(ze)),At.constructor!==ut&&x(At,"constructor",ut),x(At,je,ut),et&&x(At,et,pt),bt[pt]=ut,u({global:!0,forced:ut!=rt,sham:!We},bt),W in ut||x(ut,W,Qe),W in At||x(At,W,Qe),oe(pt)}):w.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,w,_){var u=s("../internals/global"),p=s("../internals/fails"),y=s("../internals/check-correctness-of-iteration"),m=s("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,b=u.ArrayBuffer,v=u.Int8Array;w.exports=!m||!p(function(){v(1)})||!p(function(){new v(-1)})||!y(function(c){new v,new v(null),new v(1.5),new v(c)},!0)||p(function(){return new v(new b(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,w,_){var u=s("../internals/array-from-constructor-and-list"),p=s("../internals/typed-array-species-constructor");w.exports=function(y,m){return u(p(y),m)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(s,w,_){var u=s("../internals/function-bind-context"),p=s("../internals/function-call"),y=s("../internals/a-constructor"),m=s("../internals/to-object"),b=s("../internals/length-of-array-like"),v=s("../internals/get-iterator"),c=s("../internals/get-iterator-method"),h=s("../internals/is-array-iterator-method"),g=s("../internals/array-buffer-view-core").aTypedArrayConstructor;w.exports=function(T){var I=y(this),R=m(T),N=arguments.length,k=N>1?arguments[1]:void 0,L=k!==void 0,H=c(R),M,F,P,U,G,Q;if(H&&!h(H))for(G=v(R,H),Q=G.next,R=[];!(U=p(Q,G)).done;)R.push(U.value);for(L&&N>2&&(k=u(k,arguments[2])),F=b(R),P=new(g(I))(F),M=0;F>M;M++)P[M]=L?k(R[M],M):R[M];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,w,_){var u=s("../internals/array-buffer-view-core"),p=s("../internals/species-constructor"),y=u.TYPED_ARRAY_CONSTRUCTOR,m=u.aTypedArrayConstructor;w.exports=function(b){return m(p(b,b[y]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(s,w,_){var u=s("../internals/function-uncurry-this"),p=0,y=Math.random(),m=u(1 .toString);w.exports=function(b){return"Symbol("+(b===void 0?"":b)+")_"+m(++p+y,36)}},{"../internals/function-uncurry-this":157}],264:[function(s,w,_){var u=s("../internals/native-symbol");w.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(s,w,_){var u=s("../internals/descriptors"),p=s("../internals/fails");w.exports=u&&p(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(s,w,_){var u=s("../internals/global"),p=u.TypeError;w.exports=function(y,m){if(y<m)throw p("Not enough arguments");return y}},{"../internals/global":163}],267:[function(s,w,_){var u=s("../internals/well-known-symbol");_.f=u},{"../internals/well-known-symbol":268}],268:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/shared"),y=s("../internals/has-own-property"),m=s("../internals/uid"),b=s("../internals/native-symbol"),v=s("../internals/use-symbol-as-uid"),c=p("wks"),h=u.Symbol,g=h&&h.for,x=v?h:h&&h.withoutSetter||m;w.exports=function(T){if(!y(c,T)||!(b||typeof c[T]=="string")){var I="Symbol."+T;b&&y(h,T)?c[T]=h[T]:v&&g?c[T]=g(I):c[T]=x(I)}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,w,_){w.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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/global"),y=s("../internals/array-buffer"),m=s("../internals/set-species"),b="ArrayBuffer",v=y[b],c=p[b];u({global:!0,forced:c!==v},{ArrayBuffer:v}),m(b)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(s,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/function-uncurry-this"),y=s("../internals/fails"),m=s("../internals/array-buffer"),b=s("../internals/an-object"),v=s("../internals/to-absolute-index"),c=s("../internals/to-length"),h=s("../internals/species-constructor"),g=m.ArrayBuffer,x=m.DataView,T=x.prototype,I=p(g.prototype.slice),R=p(T.getUint8),N=p(T.setUint8),k=y(function(){return!new g(2).slice(1,void 0).byteLength});u({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:k},{slice:function(H,M){if(I&&M===void 0)return I(b(this),H);for(var F=b(this).byteLength,P=v(H,F),U=v(M===void 0?F:M,F),G=new(h(this,g))(c(U-P)),Q=new x(this),ee=new x(G),ae=0;P<U;)N(ee,ae++,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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/global"),y=s("../internals/fails"),m=s("../internals/is-array"),b=s("../internals/is-object"),v=s("../internals/to-object"),c=s("../internals/length-of-array-like"),h=s("../internals/create-property"),g=s("../internals/array-species-create"),x=s("../internals/array-method-has-species-support"),T=s("../internals/well-known-symbol"),I=s("../internals/engine-v8-version"),R=T("isConcatSpreadable"),N=9007199254740991,k="Maximum allowed index exceeded",L=p.TypeError,H=I>=51||!y(function(){var U=[];return U[R]=!1,U.concat()[0]!==U}),M=x("concat"),F=function(U){if(!b(U))return!1;var G=U[R];return G!==void 0?!!G:m(U)},P=!H||!M;u({target:"Array",proto:!0,forced:P},{concat:function(G){var Q=v(this),ee=g(Q,0),ae=0,oe,he,le,be,pe;for(oe=-1,le=arguments.length;oe<le;oe++)if(pe=oe===-1?Q:arguments[oe],F(pe)){if(be=c(pe),ae+be>N)throw L(k);for(he=0;he<be;he++,ae++)he in pe&&h(ee,ae,pe[he])}else{if(ae>=N)throw L(k);h(ee,ae++,pe)}return ee.length=ae,ee}})},{"../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,w,_){var u=s("../internals/export"),p=s("../internals/array-fill"),y=s("../internals/add-to-unscopables");u({target:"Array",proto:!0},{fill:p}),y("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(s,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/array-iteration").filter,y=s("../internals/array-method-has-species-support"),m=y("filter");u({target:"Array",proto:!0,forced:!m},{filter:function(v){return p(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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/array-iteration").find,y=s("../internals/add-to-unscopables"),m="find",b=!0;m in[]&&Array(1)[m](function(){b=!1}),u({target:"Array",proto:!0,forced:b},{find:function(c){return p(this,c,arguments.length>1?arguments[1]:void 0)}}),y(m)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(s,w,_){var u=s("../internals/export"),p=s("../internals/array-from"),y=s("../internals/check-correctness-of-iteration"),m=!y(function(b){Array.from(b)});u({target:"Array",stat:!0,forced:m},{from:p})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(s,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/array-includes").includes,y=s("../internals/add-to-unscopables");u({target:"Array",proto:!0},{includes:function(b){return p(this,b,arguments.length>1?arguments[1]:void 0)}}),y("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(s,w,_){"use strict";var u=s("../internals/to-indexed-object"),p=s("../internals/add-to-unscopables"),y=s("../internals/iterators"),m=s("../internals/internal-state"),b=s("../internals/object-define-property").f,v=s("../internals/define-iterator"),c=s("../internals/is-pure"),h=s("../internals/descriptors"),g="Array Iterator",x=m.set,T=m.getterFor(g);w.exports=v(Array,"Array",function(R,N){x(this,{type:g,target:u(R),index:0,kind:N})},function(){var R=T(this),N=R.target,k=R.kind,L=R.index++;return!N||L>=N.length?(R.target=void 0,{value:void 0,done:!0}):k=="keys"?{value:L,done:!1}:k=="values"?{value:N[L],done:!1}:{value:[L,N[L]],done:!1}},"values");var I=y.Arguments=y.Array;if(p("keys"),p("values"),p("entries"),!c&&h&&I.name!=="values")try{b(I,"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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/function-uncurry-this"),y=s("../internals/indexed-object"),m=s("../internals/to-indexed-object"),b=s("../internals/array-method-is-strict"),v=p([].join),c=y!=Object,h=b("join",",");u({target:"Array",proto:!0,forced:c||!h},{join:function(x){return v(m(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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/array-iteration").map,y=s("../internals/array-method-has-species-support"),m=y("map");u({target:"Array",proto:!0,forced:!m},{map:function(v){return p(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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/global"),y=s("../internals/is-array"),m=s("../internals/is-constructor"),b=s("../internals/is-object"),v=s("../internals/to-absolute-index"),c=s("../internals/length-of-array-like"),h=s("../internals/to-indexed-object"),g=s("../internals/create-property"),x=s("../internals/well-known-symbol"),T=s("../internals/array-method-has-species-support"),I=s("../internals/array-slice"),R=T("slice"),N=x("species"),k=p.Array,L=Math.max;u({target:"Array",proto:!0,forced:!R},{slice:function(M,F){var P=h(this),U=c(P),G=v(M,U),Q=v(F===void 0?U:F,U),ee,ae,oe;if(y(P)&&(ee=P.constructor,m(ee)&&(ee===k||y(ee.prototype))?ee=void 0:b(ee)&&(ee=ee[N],ee===null&&(ee=void 0)),ee===k||ee===void 0))return I(P,G,Q);for(ae=new(ee===void 0?k:ee)(L(Q-G,0)),oe=0;G<Q;G++,oe++)G in P&&g(ae,oe,P[G]);return ae.length=oe,ae}})},{"../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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/function-uncurry-this"),y=s("../internals/a-callable"),m=s("../internals/to-object"),b=s("../internals/length-of-array-like"),v=s("../internals/to-string"),c=s("../internals/fails"),h=s("../internals/array-sort"),g=s("../internals/array-method-is-strict"),x=s("../internals/engine-ff-version"),T=s("../internals/engine-is-ie-or-edge"),I=s("../internals/engine-v8-version"),R=s("../internals/engine-webkit-version"),N=[],k=p(N.sort),L=p(N.push),H=c(function(){N.sort(void 0)}),M=c(function(){N.sort(null)}),F=g("sort"),P=!c(function(){if(I)return I<70;if(!(x&&x>3)){if(T)return!0;if(R)return R<603;var Q="",ee,ae,oe,he;for(ee=65;ee<76;ee++){switch(ae=String.fromCharCode(ee),ee){case 66:case 69:case 70:case 72:oe=3;break;case 68:case 71:oe=4;break;default:oe=2}for(he=0;he<47;he++)N.push({k:ae+he,v:oe})}for(N.sort(function(le,be){return be.v-le.v}),he=0;he<N.length;he++)ae=N[he].k.charAt(0),Q.charAt(Q.length-1)!==ae&&(Q+=ae);return Q!=="DGBEFHACIJK"}}),U=H||!M||!F||!P,G=function(Q){return function(ee,ae){return ae===void 0?-1:ee===void 0?1:Q!==void 0?+Q(ee,ae)||0:v(ee)>v(ae)?1:-1}};u({target:"Array",proto:!0,forced:U},{sort:function(ee){ee!==void 0&&y(ee);var ae=m(this);if(P)return ee===void 0?k(ae):k(ae,ee);var oe=[],he=b(ae),le,be;for(be=0;be<he;be++)be in ae&&L(oe,ae[be]);for(h(oe,G(ee)),le=oe.length,be=0;be<le;)ae[be]=oe[be++];for(;be<he;)delete ae[be++];return ae}})},{"../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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/global"),y=s("../internals/to-absolute-index"),m=s("../internals/to-integer-or-infinity"),b=s("../internals/length-of-array-like"),v=s("../internals/to-object"),c=s("../internals/array-species-create"),h=s("../internals/create-property"),g=s("../internals/array-method-has-species-support"),x=g("splice"),T=p.TypeError,I=Math.max,R=Math.min,N=9007199254740991,k="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!x},{splice:function(H,M){var F=v(this),P=b(F),U=y(H,P),G=arguments.length,Q,ee,ae,oe,he,le;if(G===0?Q=ee=0:G===1?(Q=0,ee=P-U):(Q=G-2,ee=R(I(m(M),0),P-U)),P+Q-ee>N)throw T(k);for(ae=c(F,ee),oe=0;oe<ee;oe++)he=U+oe,he in F&&h(ae,oe,F[he]);if(ae.length=ee,Q<ee){for(oe=U;oe<P-ee;oe++)he=oe+ee,le=oe+Q,he in F?F[le]=F[he]:delete F[le];for(oe=P;oe>P-ee+Q;oe--)delete F[oe-1]}else if(Q>ee)for(oe=P-ee;oe>U;oe--)he=oe+ee-1,le=oe+Q-1,he in F?F[le]=F[he]:delete F[le];for(oe=0;oe<Q;oe++)F[oe+U]=arguments[oe+2];return F.length=P-ee+Q,ae}})},{"../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,w,_){var u=s("../internals/descriptors"),p=s("../internals/function-name").EXISTS,y=s("../internals/function-uncurry-this"),m=s("../internals/object-define-property").f,b=Function.prototype,v=y(b.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,h=y(c.exec),g="name";u&&!p&&m(b,g,{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,w,_){var u=s("../internals/export"),p=s("../internals/get-built-in"),y=s("../internals/function-apply"),m=s("../internals/function-call"),b=s("../internals/function-uncurry-this"),v=s("../internals/fails"),c=s("../internals/is-array"),h=s("../internals/is-callable"),g=s("../internals/is-object"),x=s("../internals/is-symbol"),T=s("../internals/array-slice"),I=s("../internals/native-symbol"),R=p("JSON","stringify"),N=b(/./.exec),k=b("".charAt),L=b("".charCodeAt),H=b("".replace),M=b(1 .toString),F=/[\uD800-\uDFFF]/g,P=/^[\uD800-\uDBFF]$/,U=/^[\uDC00-\uDFFF]$/,G=!I||v(function(){var oe=p("Symbol")();return R([oe])!="[null]"||R({a:oe})!="{}"||R(Object(oe))!="{}"}),Q=v(function(){return R("\uDF06\uD834")!=='"\\udf06\\ud834"'||R("\uDEAD")!=='"\\udead"'}),ee=function(oe,he){var le=T(arguments),be=he;if(!(!g(he)&&oe===void 0||x(oe)))return c(he)||(he=function(pe,_e){if(h(be)&&(_e=m(be,this,pe,_e)),!x(_e))return _e}),le[1]=he,y(R,null,le)},ae=function(oe,he,le){var be=k(le,he-1),pe=k(le,he+1);return N(P,oe)&&!N(U,pe)||N(U,oe)&&!N(P,be)?"\\u"+M(L(oe,0),16):oe};R&&u({target:"JSON",stat:!0,forced:G||Q},{stringify:function(he,le,be){var pe=T(arguments),_e=y(G?ee:R,null,pe);return Q&&typeof _e=="string"?H(_e,F,ae):_e}})},{"../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,w,_){"use strict";var u=s("../internals/descriptors"),p=s("../internals/global"),y=s("../internals/function-uncurry-this"),m=s("../internals/is-forced"),b=s("../internals/redefine"),v=s("../internals/has-own-property"),c=s("../internals/inherit-if-required"),h=s("../internals/object-is-prototype-of"),g=s("../internals/is-symbol"),x=s("../internals/to-primitive"),T=s("../internals/fails"),I=s("../internals/object-get-own-property-names").f,R=s("../internals/object-get-own-property-descriptor").f,N=s("../internals/object-define-property").f,k=s("../internals/this-number-value"),L=s("../internals/string-trim").trim,H="Number",M=p[H],F=M.prototype,P=p.TypeError,U=y("".slice),G=y("".charCodeAt),Q=function(be){var pe=x(be,"number");return typeof pe=="bigint"?pe:ee(pe)},ee=function(be){var pe=x(be,"number"),_e,ne,ue,ce,Re,ke,Ne,De;if(g(pe))throw P("Cannot convert a Symbol value to a number");if(typeof pe=="string"&&pe.length>2){if(pe=L(pe),_e=G(pe,0),_e===43||_e===45){if(ne=G(pe,2),ne===88||ne===120)return NaN}else if(_e===48){switch(G(pe,1)){case 66:case 98:ue=2,ce=49;break;case 79:case 111:ue=8,ce=55;break;default:return+pe}for(Re=U(pe,2),ke=Re.length,Ne=0;Ne<ke;Ne++)if(De=G(Re,Ne),De<48||De>ce)return NaN;return parseInt(Re,ue)}}return+pe};if(m(H,!M(" 0o1")||!M("0b1")||M("+0x1"))){for(var ae=function(pe){var _e=arguments.length<1?0:M(Q(pe)),ne=this;return h(F,ne)&&T(function(){k(ne)})?c(Object(_e),ne,ae):_e},oe=u?I(M):"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,le;oe.length>he;he++)v(M,le=oe[he])&&!v(ae,le)&&N(ae,le,R(M,le));ae.prototype=F,F.constructor=ae,b(p,H,ae)}},{"../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,w,_){var u=s("../internals/export"),p=s("../internals/object-assign");u({target:"Object",stat:!0,forced:Object.assign!==p},{assign:p})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(s,w,_){var u=s("../internals/export"),p=s("../internals/object-to-array").entries;u({target:"Object",stat:!0},{entries:function(m){return p(m)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(s,w,_){var u=s("../internals/export"),p=s("../internals/native-symbol"),y=s("../internals/fails"),m=s("../internals/object-get-own-property-symbols"),b=s("../internals/to-object"),v=!p||y(function(){m.f(1)});u({target:"Object",stat:!0,forced:v},{getOwnPropertySymbols:function(h){var g=m.f;return g?g(b(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,w,_){var u=s("../internals/export"),p=s("../internals/to-object"),y=s("../internals/object-keys"),m=s("../internals/fails"),b=m(function(){y(1)});u({target:"Object",stat:!0,forced:b},{keys:function(c){return y(p(c))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(s,w,_){var u=s("../internals/to-string-tag-support"),p=s("../internals/redefine"),y=s("../internals/object-to-string");u||p(Object.prototype,"toString",y,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(s,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/function-call"),y=s("../internals/a-callable"),m=s("../internals/new-promise-capability"),b=s("../internals/perform"),v=s("../internals/iterate"),c=s("../internals/promise-statics-incorrect-iteration");u({target:"Promise",stat:!0,forced:c},{all:function(g){var x=this,T=m.f(x),I=T.resolve,R=T.reject,N=b(function(){var k=y(x.resolve),L=[],H=0,M=1;v(g,function(F){var P=H++,U=!1;M++,p(k,x,F).then(function(G){U||(U=!0,L[P]=G,--M||I(L))},R)}),--M||I(L)});return N.error&&R(N.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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/is-pure"),y=s("../internals/promise-constructor-detection").CONSTRUCTOR,m=s("../internals/promise-native-constructor"),b=s("../internals/get-built-in"),v=s("../internals/is-callable"),c=s("../internals/redefine"),h=m&&m.prototype;if(u({target:"Promise",proto:!0,forced:y,real:!0},{catch:function(x){return this.then(void 0,x)}}),!p&&v(m)){var g=b("Promise").prototype.catch;h.catch!==g&&c(h,"catch",g,{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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/is-pure"),y=s("../internals/engine-is-node"),m=s("../internals/global"),b=s("../internals/function-call"),v=s("../internals/redefine"),c=s("../internals/redefine-all"),h=s("../internals/object-set-prototype-of"),g=s("../internals/set-to-string-tag"),x=s("../internals/set-species"),T=s("../internals/a-callable"),I=s("../internals/is-callable"),R=s("../internals/is-object"),N=s("../internals/an-instance"),k=s("../internals/species-constructor"),L=s("../internals/task").set,H=s("../internals/microtask"),M=s("../internals/host-report-errors"),F=s("../internals/perform"),P=s("../internals/queue"),U=s("../internals/internal-state"),G=s("../internals/promise-native-constructor"),Q=s("../internals/promise-constructor-detection"),ee=s("../internals/new-promise-capability"),ae="Promise",oe=Q.CONSTRUCTOR,he=Q.REJECTION_EVENT,le=Q.SUBCLASSING,be=U.getterFor(ae),pe=U.set,_e=G&&G.prototype,ne=G,ue=_e,ce=m.TypeError,Re=m.document,ke=m.process,Ne=ee.f,De=Ne,Me=!!(Re&&Re.createEvent&&m.dispatchEvent),We="unhandledrejection",je="rejectionhandled",et=0,it=1,ze=2,xe=1,fe=2,W,Z,me,Ce,re=function(gt){var rt;return R(gt)&&I(rt=gt.then)?rt:!1},ie=function(gt,rt){var ut=rt.value,At=rt.state==it,bt=At?gt.ok:gt.fail,Tt=gt.resolve,Mt=gt.reject,Ot=gt.domain,$e,$t,gn;try{bt?(At||(rt.rejection===fe&&st(rt),rt.rejection=xe),bt===!0?$e=ut:(Ot&&Ot.enter(),$e=bt(ut),Ot&&(Ot.exit(),gn=!0)),$e===gt.promise?Mt(ce("Promise-chain cycle")):($t=re($e))?b($t,$e,Tt,Mt):Tt($e)):Mt(ut)}catch(Et){Ot&&!gn&&Ot.exit(),Mt(Et)}},de=function(gt,rt){gt.notified||(gt.notified=!0,H(function(){for(var ut=gt.reactions,At;At=ut.get();)ie(At,gt);gt.notified=!1,rt&&!gt.rejection&&Be(gt)}))},Ae=function(gt,rt,ut){var At,bt;Me?(At=Re.createEvent("Event"),At.promise=rt,At.reason=ut,At.initEvent(gt,!1,!0),m.dispatchEvent(At)):At={promise:rt,reason:ut},!he&&(bt=m["on"+gt])?bt(At):gt===We&&M("Unhandled promise rejection",ut)},Be=function(gt){b(L,m,function(){var rt=gt.facade,ut=gt.value,At=He(gt),bt;if(At&&(bt=F(function(){y?ke.emit("unhandledRejection",ut,rt):Ae(We,rt,ut)}),gt.rejection=y||He(gt)?fe:xe,bt.error))throw bt.value})},He=function(gt){return gt.rejection!==xe&&!gt.parent},st=function(gt){b(L,m,function(){var rt=gt.facade;y?ke.emit("rejectionHandled",rt):Ae(je,rt,gt.value)})},Qe=function(gt,rt,ut){return function(At){gt(rt,At,ut)}},pt=function(gt,rt,ut){gt.done||(gt.done=!0,ut&&(gt=ut),gt.value=rt,gt.state=ze,de(gt,!0))},It=function(gt,rt,ut){if(!gt.done){gt.done=!0,ut&&(gt=ut);try{if(gt.facade===rt)throw ce("Promise can't be resolved itself");var At=re(rt);At?H(function(){var bt={done:!1};try{b(At,rt,Qe(It,bt,gt),Qe(pt,bt,gt))}catch(Tt){pt(bt,Tt,gt)}}):(gt.value=rt,gt.state=it,de(gt,!1))}catch(bt){pt({done:!1},bt,gt)}}};if(oe&&(ne=function(rt){N(this,ue),T(rt),b(W,this);var ut=be(this);try{rt(Qe(It,ut),Qe(pt,ut))}catch(At){pt(ut,At)}},ue=ne.prototype,W=function(rt){pe(this,{type:ae,done:!1,notified:!1,parent:!1,reactions:new P,rejection:!1,state:et,value:void 0})},W.prototype=c(ue,{then:function(rt,ut){var At=be(this),bt=Ne(k(this,ne));return At.parent=!0,bt.ok=I(rt)?rt:!0,bt.fail=I(ut)&&ut,bt.domain=y?ke.domain:void 0,At.state==et?At.reactions.add(bt):H(function(){ie(bt,At)}),bt.promise}}),Z=function(){var gt=new W,rt=be(gt);this.promise=gt,this.resolve=Qe(It,rt),this.reject=Qe(pt,rt)},ee.f=Ne=function(gt){return gt===ne||gt===me?new Z(gt):De(gt)},!p&&I(G)&&_e!==Object.prototype)){Ce=_e.then,le||v(_e,"then",function(rt,ut){var At=this;return new ne(function(bt,Tt){b(Ce,At,bt,Tt)}).then(rt,ut)},{unsafe:!0});try{delete _e.constructor}catch(gt){}h&&h(_e,ue)}u({global:!0,wrap:!0,forced:oe},{Promise:ne}),g(ne,ae,!1,!0),x(ae)},{"../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,w,_){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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/function-call"),y=s("../internals/a-callable"),m=s("../internals/new-promise-capability"),b=s("../internals/perform"),v=s("../internals/iterate"),c=s("../internals/promise-statics-incorrect-iteration");u({target:"Promise",stat:!0,forced:c},{race:function(g){var x=this,T=m.f(x),I=T.reject,R=b(function(){var N=y(x.resolve);v(g,function(k){p(N,x,k).then(T.resolve,I)})});return R.error&&I(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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/function-call"),y=s("../internals/new-promise-capability"),m=s("../internals/promise-constructor-detection").CONSTRUCTOR;u({target:"Promise",stat:!0,forced:m},{reject:function(v){var c=y.f(this);return p(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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/get-built-in"),y=s("../internals/is-pure"),m=s("../internals/promise-native-constructor"),b=s("../internals/promise-constructor-detection").CONSTRUCTOR,v=s("../internals/promise-resolve"),c=p("Promise"),h=y&&!b;u({target:"Promise",stat:!0,forced:y||b},{resolve:function(x){return v(h&&this===c?m: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,w,_){var u=s("../internals/descriptors"),p=s("../internals/global"),y=s("../internals/function-uncurry-this"),m=s("../internals/is-forced"),b=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"),g=s("../internals/is-regexp"),x=s("../internals/to-string"),T=s("../internals/regexp-get-flags"),I=s("../internals/regexp-sticky-helpers"),R=s("../internals/proxy-accessor"),N=s("../internals/redefine"),k=s("../internals/fails"),L=s("../internals/has-own-property"),H=s("../internals/internal-state").enforce,M=s("../internals/set-species"),F=s("../internals/well-known-symbol"),P=s("../internals/regexp-unsupported-dot-all"),U=s("../internals/regexp-unsupported-ncg"),G=F("match"),Q=p.RegExp,ee=Q.prototype,ae=p.SyntaxError,oe=y(ee.exec),he=y("".charAt),le=y("".replace),be=y("".indexOf),pe=y("".slice),_e=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ne=/a/g,ue=/a/g,ce=new Q(ne)!==ne,Re=I.MISSED_STICKY,ke=I.UNSUPPORTED_Y,Ne=u&&(!ce||Re||P||U||k(function(){return ue[G]=!1,Q(ne)!=ne||Q(ue)==ue||Q(ne,"i")!="/a/i"})),De=function(it){for(var ze=it.length,xe=0,fe="",W=!1,Z;xe<=ze;xe++){if(Z=he(it,xe),Z==="\\"){fe+=Z+he(it,++xe);continue}!W&&Z==="."?fe+="[\\s\\S]":(Z==="["?W=!0:Z==="]"&&(W=!1),fe+=Z)}return fe},Me=function(it){for(var ze=it.length,xe=0,fe="",W=[],Z={},me=!1,Ce=!1,re=0,ie="",de;xe<=ze;xe++){if(de=he(it,xe),de==="\\")de=de+he(it,++xe);else if(de==="]")me=!1;else if(!me)switch(!0){case de==="[":me=!0;break;case de==="(":oe(_e,pe(it,xe+1))&&(xe+=2,Ce=!0),fe+=de,re++;continue;case(de===">"&&Ce):if(ie===""||L(Z,ie))throw new ae("Invalid capture group name");Z[ie]=!0,W[W.length]=[ie,re],Ce=!1,ie="";continue}Ce?ie+=de:fe+=de}return[fe,W]};if(m("RegExp",Ne)){for(var We=function(ze,xe){var fe=h(ee,this),W=g(ze),Z=xe===void 0,me=[],Ce=ze,re,ie,de,Ae,Be,He;if(!fe&&W&&Z&&ze.constructor===We)return ze;if((W||h(ee,ze))&&(ze=ze.source,Z&&(xe=T(Ce))),ze=ze===void 0?"":x(ze),xe=xe===void 0?"":x(xe),Ce=ze,P&&"dotAll"in ne&&(ie=!!xe&&be(xe,"s")>-1,ie&&(xe=le(xe,/s/g,""))),re=xe,Re&&"sticky"in ne&&(de=!!xe&&be(xe,"y")>-1,de&&ke&&(xe=le(xe,/y/g,""))),U&&(Ae=Me(ze),ze=Ae[0],me=Ae[1]),Be=b(Q(ze,xe),fe?this:ee,We),(ie||de||me.length)&&(He=H(Be),ie&&(He.dotAll=!0,He.raw=We(De(ze),re)),de&&(He.sticky=!0),me.length&&(He.groups=me)),ze!==Ce)try{v(Be,"source",Ce===""?"(?:)":Ce)}catch(st){}return Be},je=c(Q),et=0;je.length>et;)R(We,Q,je[et++]);ee.constructor=We,We.prototype=ee,N(p,"RegExp",We)}M("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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/regexp-exec");u({target:"RegExp",proto:!0,forced:/./.exec!==p},{exec:p})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(s,w,_){"use strict";var u=s("../internals/function-name").PROPER,p=s("../internals/redefine"),y=s("../internals/an-object"),m=s("../internals/to-string"),b=s("../internals/fails"),v=s("../internals/regexp-get-flags"),c="toString",h=RegExp.prototype,g=h[c],x=b(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),T=u&&g.name!=c;(x||T)&&p(RegExp.prototype,c,function(){var R=y(this),N=m(R.source),k=m(v(R));return"/"+N+"/"+k},{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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/function-uncurry-this"),y=s("../internals/not-a-regexp"),m=s("../internals/require-object-coercible"),b=s("../internals/to-string"),v=s("../internals/correct-is-regexp-logic"),c=p("".indexOf);u({target:"String",proto:!0,forced:!v("includes")},{includes:function(g){return!!~c(b(m(this)),b(y(g)),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,w,_){"use strict";var u=s("../internals/string-multibyte").charAt,p=s("../internals/to-string"),y=s("../internals/internal-state"),m=s("../internals/define-iterator"),b="String Iterator",v=y.set,c=y.getterFor(b);m(String,"String",function(h){v(this,{type:b,string:p(h),index:0})},function(){var g=c(this),x=g.string,T=g.index,I;return T>=x.length?{value:void 0,done:!0}:(I=u(x,T),g.index+=I.length,{value:I,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(s,w,_){"use strict";var u=s("../internals/function-call"),p=s("../internals/fix-regexp-well-known-symbol-logic"),y=s("../internals/an-object"),m=s("../internals/to-length"),b=s("../internals/to-string"),v=s("../internals/require-object-coercible"),c=s("../internals/get-method"),h=s("../internals/advance-string-index"),g=s("../internals/regexp-exec-abstract");p("match",function(x,T,I){return[function(N){var k=v(this),L=N==null?void 0:c(N,x);return L?u(L,N,k):new RegExp(N)[x](b(k))},function(R){var N=y(this),k=b(R),L=I(T,N,k);if(L.done)return L.value;if(!N.global)return g(N,k);var H=N.unicode;N.lastIndex=0;for(var M=[],F=0,P;(P=g(N,k))!==null;){var U=b(P[0]);M[F]=U,U===""&&(N.lastIndex=h(k,m(N.lastIndex),H)),F++}return F===0?null:M}]})},{"../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,w,_){"use strict";var u=s("../internals/function-apply"),p=s("../internals/function-call"),y=s("../internals/function-uncurry-this"),m=s("../internals/fix-regexp-well-known-symbol-logic"),b=s("../internals/fails"),v=s("../internals/an-object"),c=s("../internals/is-callable"),h=s("../internals/to-integer-or-infinity"),g=s("../internals/to-length"),x=s("../internals/to-string"),T=s("../internals/require-object-coercible"),I=s("../internals/advance-string-index"),R=s("../internals/get-method"),N=s("../internals/get-substitution"),k=s("../internals/regexp-exec-abstract"),L=s("../internals/well-known-symbol"),H=L("replace"),M=Math.max,F=Math.min,P=y([].concat),U=y([].push),G=y("".indexOf),Q=y("".slice),ee=function(le){return le===void 0?le:String(le)},ae=function(){return"a".replace(/./,"$0")==="$0"}(),oe=function(){return/./[H]?/./[H]("a","$0")==="":!1}(),he=!b(function(){var le=/./;return le.exec=function(){var be=[];return be.groups={a:"7"},be},"".replace(le,"$<a>")!=="7"});m("replace",function(le,be,pe){var _e=oe?"$":"$0";return[function(ue,ce){var Re=T(this),ke=ue==null?void 0:R(ue,H);return ke?p(ke,ue,Re,ce):p(be,x(Re),ue,ce)},function(ne,ue){var ce=v(this),Re=x(ne);if(typeof ue=="string"&&G(ue,_e)===-1&&G(ue,"$<")===-1){var ke=pe(be,ce,Re,ue);if(ke.done)return ke.value}var Ne=c(ue);Ne||(ue=x(ue));var De=ce.global;if(De){var Me=ce.unicode;ce.lastIndex=0}for(var We=[];;){var je=k(ce,Re);if(je===null||(U(We,je),!De))break;var et=x(je[0]);et===""&&(ce.lastIndex=I(Re,g(ce.lastIndex),Me))}for(var it="",ze=0,xe=0;xe<We.length;xe++){je=We[xe];for(var fe=x(je[0]),W=M(F(h(je.index),Re.length),0),Z=[],me=1;me<je.length;me++)U(Z,ee(je[me]));var Ce=je.groups;if(Ne){var re=P([fe],Z,W,Re);Ce!==void 0&&U(re,Ce);var ie=x(u(ue,void 0,re))}else ie=N(fe,Re,W,Z,Ce,ue);W>=ze&&(it+=Q(Re,ze,W)+ie,ze=W+fe.length)}return it+Q(Re,ze)}]},!he||!ae||oe)},{"../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,w,_){"use strict";var u=s("../internals/function-call"),p=s("../internals/fix-regexp-well-known-symbol-logic"),y=s("../internals/an-object"),m=s("../internals/require-object-coercible"),b=s("../internals/same-value"),v=s("../internals/to-string"),c=s("../internals/get-method"),h=s("../internals/regexp-exec-abstract");p("search",function(g,x,T){return[function(R){var N=m(this),k=R==null?void 0:c(R,g);return k?u(k,R,N):new RegExp(R)[g](v(N))},function(I){var R=y(this),N=v(I),k=T(x,R,N);if(k.done)return k.value;var L=R.lastIndex;b(L,0)||(R.lastIndex=0);var H=h(R,N);return b(R.lastIndex,L)||(R.lastIndex=L),H===null?-1:H.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,w,_){"use strict";var u=s("../internals/function-apply"),p=s("../internals/function-call"),y=s("../internals/function-uncurry-this"),m=s("../internals/fix-regexp-well-known-symbol-logic"),b=s("../internals/is-regexp"),v=s("../internals/an-object"),c=s("../internals/require-object-coercible"),h=s("../internals/species-constructor"),g=s("../internals/advance-string-index"),x=s("../internals/to-length"),T=s("../internals/to-string"),I=s("../internals/get-method"),R=s("../internals/array-slice-simple"),N=s("../internals/regexp-exec-abstract"),k=s("../internals/regexp-exec"),L=s("../internals/regexp-sticky-helpers"),H=s("../internals/fails"),M=L.UNSUPPORTED_Y,F=4294967295,P=Math.min,U=[].push,G=y(/./.exec),Q=y(U),ee=y("".slice),ae=!H(function(){var oe=/(?:)/,he=oe.exec;oe.exec=function(){return he.apply(this,arguments)};var le="ab".split(oe);return le.length!==2||le[0]!=="a"||le[1]!=="b"});m("split",function(oe,he,le){var be;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?be=function(pe,_e){var ne=T(c(this)),ue=_e===void 0?F:_e>>>0;if(ue===0)return[];if(pe===void 0)return[ne];if(!b(pe))return p(he,ne,pe,ue);for(var ce=[],Re=(pe.ignoreCase?"i":"")+(pe.multiline?"m":"")+(pe.unicode?"u":"")+(pe.sticky?"y":""),ke=0,Ne=new RegExp(pe.source,Re+"g"),De,Me,We;(De=p(k,Ne,ne))&&(Me=Ne.lastIndex,!(Me>ke&&(Q(ce,ee(ne,ke,De.index)),De.length>1&&De.index<ne.length&&u(U,ce,R(De,1)),We=De[0].length,ke=Me,ce.length>=ue)));)Ne.lastIndex===De.index&&Ne.lastIndex++;return ke===ne.length?(We||!G(Ne,""))&&Q(ce,""):Q(ce,ee(ne,ke)),ce.length>ue?R(ce,0,ue):ce}:"0".split(void 0,0).length?be=function(pe,_e){return pe===void 0&&_e===0?[]:p(he,this,pe,_e)}:be=he,[function(_e,ne){var ue=c(this),ce=_e==null?void 0:I(_e,oe);return ce?p(ce,_e,ue,ne):p(be,T(ue),_e,ne)},function(pe,_e){var ne=v(this),ue=T(pe),ce=le(be,ne,ue,_e,be!==he);if(ce.done)return ce.value;var Re=h(ne,RegExp),ke=ne.unicode,Ne=(ne.ignoreCase?"i":"")+(ne.multiline?"m":"")+(ne.unicode?"u":"")+(M?"g":"y"),De=new Re(M?"^(?:"+ne.source+")":ne,Ne),Me=_e===void 0?F:_e>>>0;if(Me===0)return[];if(ue.length===0)return N(De,ue)===null?[ue]:[];for(var We=0,je=0,et=[];je<ue.length;){De.lastIndex=M?0:je;var it=N(De,M?ee(ue,je):ue),ze;if(it===null||(ze=P(x(De.lastIndex+(M?je:0)),ue.length))===We)je=g(ue,je,ke);else{if(Q(et,ee(ue,We,je)),et.length===Me)return et;for(var xe=1;xe<=it.length-1;xe++)if(Q(et,it[xe]),et.length===Me)return et;je=We=ze}}return Q(et,ee(ue,We)),et}]},!ae,M)},{"../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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/string-trim").trim,y=s("../internals/string-trim-forced");u({target:"String",proto:!0,forced:y("trim")},{trim:function(){return p(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(s,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/global"),y=s("../internals/function-call"),m=s("../internals/function-uncurry-this"),b=s("../internals/is-pure"),v=s("../internals/descriptors"),c=s("../internals/native-symbol"),h=s("../internals/fails"),g=s("../internals/has-own-property"),x=s("../internals/object-is-prototype-of"),T=s("../internals/an-object"),I=s("../internals/to-indexed-object"),R=s("../internals/to-property-key"),N=s("../internals/to-string"),k=s("../internals/create-property-descriptor"),L=s("../internals/object-create"),H=s("../internals/object-keys"),M=s("../internals/object-get-own-property-names"),F=s("../internals/object-get-own-property-names-external"),P=s("../internals/object-get-own-property-symbols"),U=s("../internals/object-get-own-property-descriptor"),G=s("../internals/object-define-property"),Q=s("../internals/object-define-properties"),ee=s("../internals/object-property-is-enumerable"),ae=s("../internals/redefine"),oe=s("../internals/shared"),he=s("../internals/shared-key"),le=s("../internals/hidden-keys"),be=s("../internals/uid"),pe=s("../internals/well-known-symbol"),_e=s("../internals/well-known-symbol-wrapped"),ne=s("../internals/define-well-known-symbol"),ue=s("../internals/symbol-define-to-primitive"),ce=s("../internals/set-to-string-tag"),Re=s("../internals/internal-state"),ke=s("../internals/array-iteration").forEach,Ne=he("hidden"),De="Symbol",Me="prototype",We=Re.set,je=Re.getterFor(De),et=Object[Me],it=p.Symbol,ze=it&&it[Me],xe=p.TypeError,fe=p.QObject,W=U.f,Z=G.f,me=F.f,Ce=ee.f,re=m([].push),ie=oe("symbols"),de=oe("op-symbols"),Ae=oe("wks"),Be=!fe||!fe[Me]||!fe[Me].findChild,He=v&&h(function(){return L(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a!=7})?function(bt,Tt,Mt){var Ot=W(et,Tt);Ot&&delete et[Tt],Z(bt,Tt,Mt),Ot&&bt!==et&&Z(et,Tt,Ot)}:Z,st=function(bt,Tt){var Mt=ie[bt]=L(ze);return We(Mt,{type:De,tag:bt,description:Tt}),v||(Mt.description=Tt),Mt},Qe=function(Tt,Mt,Ot){Tt===et&&Qe(de,Mt,Ot),T(Tt);var $e=R(Mt);return T(Ot),g(ie,$e)?(Ot.enumerable?(g(Tt,Ne)&&Tt[Ne][$e]&&(Tt[Ne][$e]=!1),Ot=L(Ot,{enumerable:k(0,!1)})):(g(Tt,Ne)||Z(Tt,Ne,k(1,{})),Tt[Ne][$e]=!0),He(Tt,$e,Ot)):Z(Tt,$e,Ot)},pt=function(Tt,Mt){T(Tt);var Ot=I(Mt),$e=H(Ot).concat(At(Ot));return ke($e,function($t){(!v||y(gt,Ot,$t))&&Qe(Tt,$t,Ot[$t])}),Tt},It=function(Tt,Mt){return Mt===void 0?L(Tt):pt(L(Tt),Mt)},gt=function(Tt){var Mt=R(Tt),Ot=y(Ce,this,Mt);return this===et&&g(ie,Mt)&&!g(de,Mt)?!1:Ot||!g(this,Mt)||!g(ie,Mt)||g(this,Ne)&&this[Ne][Mt]?Ot:!0},rt=function(Tt,Mt){var Ot=I(Tt),$e=R(Mt);if(!(Ot===et&&g(ie,$e)&&!g(de,$e))){var $t=W(Ot,$e);return $t&&g(ie,$e)&&!(g(Ot,Ne)&&Ot[Ne][$e])&&($t.enumerable=!0),$t}},ut=function(Tt){var Mt=me(I(Tt)),Ot=[];return ke(Mt,function($e){!g(ie,$e)&&!g(le,$e)&&re(Ot,$e)}),Ot},At=function(bt){var Tt=bt===et,Mt=me(Tt?de:I(bt)),Ot=[];return ke(Mt,function($e){g(ie,$e)&&(!Tt||g(et,$e))&&re(Ot,ie[$e])}),Ot};c||(it=function(){if(x(ze,this))throw xe("Symbol is not a constructor");var Tt=!arguments.length||arguments[0]===void 0?void 0:N(arguments[0]),Mt=be(Tt),Ot=function($e){this===et&&y(Ot,de,$e),g(this,Ne)&&g(this[Ne],Mt)&&(this[Ne][Mt]=!1),He(this,Mt,k(1,$e))};return v&&Be&&He(et,Mt,{configurable:!0,set:Ot}),st(Mt,Tt)},ze=it[Me],ae(ze,"toString",function(){return je(this).tag}),ae(it,"withoutSetter",function(bt){return st(be(bt),bt)}),ee.f=gt,G.f=Qe,Q.f=pt,U.f=rt,M.f=F.f=ut,P.f=At,_e.f=function(bt){return st(pe(bt),bt)},v&&(Z(ze,"description",{configurable:!0,get:function(){return je(this).description}}),b||ae(et,"propertyIsEnumerable",gt,{unsafe:!0}))),u({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:it}),ke(H(Ae),function(bt){ne(bt)}),u({target:De,stat:!0,forced:!c},{useSetter:function(){Be=!0},useSimple:function(){Be=!1}}),u({target:"Object",stat:!0,forced:!c,sham:!v},{create:It,defineProperty:Qe,defineProperties:pt,getOwnPropertyDescriptor:rt}),u({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ut}),ue(),ce(it,De),le[Ne]=!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,w,_){"use strict";var u=s("../internals/export"),p=s("../internals/descriptors"),y=s("../internals/global"),m=s("../internals/function-uncurry-this"),b=s("../internals/has-own-property"),v=s("../internals/is-callable"),c=s("../internals/object-is-prototype-of"),h=s("../internals/to-string"),g=s("../internals/object-define-property").f,x=s("../internals/copy-constructor-properties"),T=y.Symbol,I=T&&T.prototype;if(p&&v(T)&&(!("description"in I)||T().description!==void 0)){var R={},N=function(){var G=arguments.length<1||arguments[0]===void 0?void 0:h(arguments[0]),Q=c(I,this)?new T(G):G===void 0?T():T(G);return G===""&&(R[Q]=!0),Q};x(N,T),N.prototype=I,I.constructor=N;var k=String(T("test"))=="Symbol(test)",L=m(I.toString),H=m(I.valueOf),M=/^Symbol\((.*)\)[^)]+$/,F=m("".replace),P=m("".slice);g(I,"description",{configurable:!0,get:function(){var G=H(this),Q=L(G);if(b(R,G))return"";var ee=k?P(Q,7,-1):F(Q,M,"$1");return ee===""?void 0:ee}}),u({global:!0,forced:!0},{Symbol:N})}},{"../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,w,_){var u=s("../internals/export"),p=s("../internals/get-built-in"),y=s("../internals/has-own-property"),m=s("../internals/to-string"),b=s("../internals/shared"),v=s("../internals/native-symbol-registry"),c=b("string-to-symbol-registry"),h=b("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!v},{for:function(g){var x=m(g);if(y(c,x))return c[x];var T=p("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,w,_){var u=s("../internals/define-well-known-symbol");u("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(s,w,_){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,w,_){var u=s("../internals/export"),p=s("../internals/has-own-property"),y=s("../internals/is-symbol"),m=s("../internals/try-to-string"),b=s("../internals/shared"),v=s("../internals/native-symbol-registry"),c=b("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!v},{keyFor:function(g){if(!y(g))throw TypeError(m(g)+" is not a symbol");if(p(c,g))return c[g]}})},{"../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,w,_){"use strict";var u=s("../internals/function-uncurry-this"),p=s("../internals/array-buffer-view-core"),y=s("../internals/array-copy-within"),m=u(y),b=p.aTypedArray,v=p.exportTypedArrayMethod;v("copyWithin",function(h,g){return m(b(this),h,g,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,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").every,y=u.aTypedArray,m=u.exportTypedArrayMethod;m("every",function(v){return p(y(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/function-call"),y=s("../internals/array-fill"),m=u.aTypedArray,b=u.exportTypedArrayMethod;b("fill",function(c){var h=arguments.length;return p(y,m(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,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").filter,y=s("../internals/typed-array-from-species-and-list"),m=u.aTypedArray,b=u.exportTypedArrayMethod;b("filter",function(c){var h=p(m(this),c,arguments.length>1?arguments[1]:void 0);return y(this,h)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").findIndex,y=u.aTypedArray,m=u.exportTypedArrayMethod;m("findIndex",function(v){return p(y(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").find,y=u.aTypedArray,m=u.exportTypedArrayMethod;m("find",function(v){return p(y(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").forEach,y=u.aTypedArray,m=u.exportTypedArrayMethod;m("forEach",function(v){p(y(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-includes").includes,y=u.aTypedArray,m=u.exportTypedArrayMethod;m("includes",function(v){return p(y(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-includes").indexOf,y=u.aTypedArray,m=u.exportTypedArrayMethod;m("indexOf",function(v){return p(y(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(s,w,_){"use strict";var u=s("../internals/global"),p=s("../internals/fails"),y=s("../internals/function-uncurry-this"),m=s("../internals/array-buffer-view-core"),b=s("../modules/es.array.iterator"),v=s("../internals/well-known-symbol"),c=v("iterator"),h=u.Uint8Array,g=y(b.values),x=y(b.keys),T=y(b.entries),I=m.aTypedArray,R=m.exportTypedArrayMethod,N=h&&h.prototype,k=!p(function(){N[c].call([1])}),L=!!N&&N.values&&N[c]===N.values&&N.values.name==="values",H=function(){return g(I(this))};R("entries",function(){return T(I(this))},k),R("keys",function(){return x(I(this))},k),R("values",H,k||!L,{name:"values"}),R(c,H,k||!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,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/function-uncurry-this"),y=u.aTypedArray,m=u.exportTypedArrayMethod,b=p([].join);m("join",function(c){return b(y(this),c)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/function-apply"),y=s("../internals/array-last-index-of"),m=u.aTypedArray,b=u.exportTypedArrayMethod;b("lastIndexOf",function(c){var h=arguments.length;return p(y,m(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,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").map,y=s("../internals/typed-array-species-constructor"),m=u.aTypedArray,b=u.exportTypedArrayMethod;b("map",function(c){return p(m(this),c,arguments.length>1?arguments[1]:void 0,function(h,g){return new(y(h))(g)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-reduce").right,y=u.aTypedArray,m=u.exportTypedArrayMethod;m("reduceRight",function(v){var c=arguments.length;return p(y(this),v,c,c>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-reduce").left,y=u.aTypedArray,m=u.exportTypedArrayMethod;m("reduce",function(v){var c=arguments.length;return p(y(this),v,c,c>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=u.aTypedArray,y=u.exportTypedArrayMethod,m=Math.floor;y("reverse",function(){for(var v=this,c=p(v).length,h=m(c/2),g=0,x;g<h;)x=v[g],v[g++]=v[--c],v[c]=x;return v})},{"../internals/array-buffer-view-core":103}],331:[function(s,w,_){"use strict";var u=s("../internals/global"),p=s("../internals/function-call"),y=s("../internals/array-buffer-view-core"),m=s("../internals/length-of-array-like"),b=s("../internals/to-offset"),v=s("../internals/to-object"),c=s("../internals/fails"),h=u.RangeError,g=u.Int8Array,x=g&&g.prototype,T=x&&x.set,I=y.aTypedArray,R=y.exportTypedArrayMethod,N=!c(function(){var L=new Uint8ClampedArray(2);return p(T,L,{length:1,0:3},1),L[1]!==3}),k=N&&y.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var L=new g(2);return L.set(1),L.set("2",1),L[0]!==0||L[1]!==2});R("set",function(H){I(this);var M=b(arguments.length>1?arguments[1]:void 0,1),F=v(H);if(N)return p(T,this,F,M);var P=this.length,U=m(F),G=0;if(U+M>P)throw h("Wrong length");for(;G<U;)this[M+G]=F[G++]},!N||k)},{"../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,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/typed-array-species-constructor"),y=s("../internals/fails"),m=s("../internals/array-slice"),b=u.aTypedArray,v=u.exportTypedArrayMethod,c=y(function(){new Int8Array(1).slice()});v("slice",function(g,x){for(var T=m(b(this),g,x),I=p(this),R=0,N=T.length,k=new I(N);N>R;)k[R]=T[R++];return k},c)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(s,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/array-iteration").some,y=u.aTypedArray,m=u.exportTypedArrayMethod;m("some",function(v){return p(y(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(s,w,_){"use strict";var u=s("../internals/global"),p=s("../internals/function-uncurry-this"),y=s("../internals/fails"),m=s("../internals/a-callable"),b=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"),g=s("../internals/engine-v8-version"),x=s("../internals/engine-webkit-version"),T=v.aTypedArray,I=v.exportTypedArrayMethod,R=u.Uint16Array,N=R&&p(R.prototype.sort),k=!!N&&!(y(function(){N(new R(2),null)})&&y(function(){N(new R(2),{})})),L=!!N&&!y(function(){if(g)return g<74;if(c)return c<67;if(h)return!0;if(x)return x<602;var M=new R(516),F=Array(516),P,U;for(P=0;P<516;P++)U=P%4,M[P]=515-P,F[P]=P-2*U+3;for(N(M,function(G,Q){return(G/4|0)-(Q/4|0)}),P=0;P<516;P++)if(M[P]!==F[P])return!0}),H=function(M){return function(F,P){return M!==void 0?+M(F,P)||0:P!==P?-1:F!==F?1:F===0&&P===0?1/F>0&&1/P<0?1:-1:F>P}};I("sort",function(F){return F!==void 0&&m(F),L?N(this,F):b(T(this),H(F))},!L||k)},{"../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,w,_){"use strict";var u=s("../internals/array-buffer-view-core"),p=s("../internals/to-length"),y=s("../internals/to-absolute-index"),m=s("../internals/typed-array-species-constructor"),b=u.aTypedArray,v=u.exportTypedArrayMethod;v("subarray",function(h,g){var x=b(this),T=x.length,I=y(h,T),R=m(x);return new R(x.buffer,x.byteOffset+I*x.BYTES_PER_ELEMENT,p((g===void 0?T:y(g,T))-I))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(s,w,_){"use strict";var u=s("../internals/global"),p=s("../internals/function-apply"),y=s("../internals/array-buffer-view-core"),m=s("../internals/fails"),b=s("../internals/array-slice"),v=u.Int8Array,c=y.aTypedArray,h=y.exportTypedArrayMethod,g=[].toLocaleString,x=!!v&&m(function(){g.call(new v(1))}),T=m(function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()})||!m(function(){v.prototype.toLocaleString.call([1,2])});h("toLocaleString",function(){return p(g,x?b(c(this)):c(this),b(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,w,_){"use strict";var u=s("../internals/array-buffer-view-core").exportTypedArrayMethod,p=s("../internals/fails"),y=s("../internals/global"),m=s("../internals/function-uncurry-this"),b=y.Uint8Array,v=b&&b.prototype||{},c=[].toString,h=m([].join);p(function(){c.call({})})&&(c=function(){return h(this)});var g=v.toString!=c;u("toString",c,g)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(s,w,_){var u=s("../internals/typed-array-constructor");u("Uint8",function(p){return function(m,b,v){return p(this,m,b,v)}})},{"../internals/typed-array-constructor":258}],339:[function(s,w,_){var u=s("../internals/global"),p=s("../internals/dom-iterables"),y=s("../internals/dom-token-list-prototype"),m=s("../internals/array-for-each"),b=s("../internals/create-non-enumerable-property"),v=function(h){if(h&&h.forEach!==m)try{b(h,"forEach",m)}catch(g){h.forEach=m}};for(var c in p)p[c]&&v(u[c]&&u[c].prototype);v(y)},{"../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,w,_){var u=s("../internals/global"),p=s("../internals/dom-iterables"),y=s("../internals/dom-token-list-prototype"),m=s("../modules/es.array.iterator"),b=s("../internals/create-non-enumerable-property"),v=s("../internals/well-known-symbol"),c=v("iterator"),h=v("toStringTag"),g=m.values,x=function(I,R){if(I){if(I[c]!==g)try{b(I,c,g)}catch(k){I[c]=g}if(I[h]||b(I,h,R),p[R]){for(var N in m)if(I[N]!==m[N])try{b(I,N,m[N])}catch(k){I[N]=m[N]}}}};for(var T in p)x(u[T]&&u[T].prototype,T);x(y,"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,w,_){function u(L){return Array.isArray?Array.isArray(L):k(L)==="[object Array]"}_.isArray=u;function p(L){return typeof L=="boolean"}_.isBoolean=p;function y(L){return L===null}_.isNull=y;function m(L){return L==null}_.isNullOrUndefined=m;function b(L){return typeof L=="number"}_.isNumber=b;function v(L){return typeof L=="string"}_.isString=v;function c(L){return typeof L=="symbol"}_.isSymbol=c;function h(L){return L===void 0}_.isUndefined=h;function g(L){return k(L)==="[object RegExp]"}_.isRegExp=g;function x(L){return typeof L=="object"&&L!==null}_.isObject=x;function T(L){return k(L)==="[object Date]"}_.isDate=T;function I(L){return k(L)==="[object Error]"||L instanceof Error}_.isError=I;function R(L){return typeof L=="function"}_.isFunction=R;function N(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||typeof L=="undefined"}_.isPrimitive=N,_.isBuffer=s("buffer").Buffer.isBuffer;function k(L){return Object.prototype.toString.call(L)}},{buffer:90}],342:[function(s,w,_){(function(u){"use strict";var p=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,g=/[^-+\dA-Z]/g;return function(x,T,I,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(p.masks[T]||T||p.masks.default);var N=T.slice(0,4);(N==="UTC:"||N==="GMT:")&&(T=T.slice(4),I=!0,N==="GMT:"&&(R=!0));var k=I?"getUTC":"get",L=x[k+"Date"](),H=x[k+"Day"](),M=x[k+"Month"](),F=x[k+"FullYear"](),P=x[k+"Hours"](),U=x[k+"Minutes"](),G=x[k+"Seconds"](),Q=x[k+"Milliseconds"](),ee=I?0:x.getTimezoneOffset(),ae=m(x),oe=b(x),he={d:L,dd:y(L),ddd:p.i18n.dayNames[H],dddd:p.i18n.dayNames[H+7],m:M+1,mm:y(M+1),mmm:p.i18n.monthNames[M],mmmm:p.i18n.monthNames[M+12],yy:String(F).slice(2),yyyy:F,h:P%12||12,hh:y(P%12||12),H:P,HH:y(P),M:U,MM:y(U),s:G,ss:y(G),l:y(Q,3),L:y(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":I?"UTC":(String(x).match(h)||[""]).pop().replace(g,""),o:(ee>0?"-":"+")+y(Math.floor(Math.abs(ee)/60)*100+Math.abs(ee)%60,4),S:["th","st","nd","rd"][L%10>3?0:(L%100-L%10!=10)*L%10],W:ae,N:oe};return T.replace(c,function(le){return le in he?he[le]:le.slice(1,le.length-1)})}}();p.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"},p.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 y(c,h){for(c=String(c),h=h||2;c.length<h;)c="0"+c;return c}function m(c){var h=new Date(c.getFullYear(),c.getMonth(),c.getDate());h.setDate(h.getDate()-(h.getDay()+6)%7+3);var g=new Date(h.getFullYear(),0,4);g.setDate(g.getDate()-(g.getDay()+6)%7+3);var x=h.getTimezoneOffset()-g.getTimezoneOffset();h.setHours(h.getHours()-x);var T=(h-g)/(864e5*7);return 1+Math.floor(T)}function b(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 S=="function"&&S.amd?S(function(){return p}):typeof _=="object"?w.exports=p:u.dateFormat=p})(this)},{}],343:[function(s,w,_){"use strict";var u=/["'&<>]/;w.exports=p;function p(y){var m=""+y,b=u.exec(m);if(!b)return m;var v,c="",h=0,g=0;for(h=b.index;h<m.length;h++){switch(m.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}g!==h&&(c+=m.substring(g,h)),g=h+1,c+=v}return g!==h?c+m.substring(g,h):c}},{}],344:[function(s,w,_){"use strict";var u=typeof Reflect=="object"?Reflect:null,p=u&&typeof u.apply=="function"?u.apply:function(G,Q,ee){return Function.prototype.apply.call(G,Q,ee)},y;u&&typeof u.ownKeys=="function"?y=u.ownKeys:Object.getOwnPropertySymbols?y=function(G){return Object.getOwnPropertyNames(G).concat(Object.getOwnPropertySymbols(G))}:y=function(G){return Object.getOwnPropertyNames(G)};function m(U){console&&console.warn&&console.warn(U)}var b=Number.isNaN||function(G){return G!==G};function v(){v.init.call(this)}w.exports=v,w.exports.once=M,v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var c=10;function h(U){if(typeof U!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof U)}Object.defineProperty(v,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(U){if(typeof U!="number"||U<0||b(U))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+U+".");c=U}}),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||b(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 g(U){return U._maxListeners===void 0?v.defaultMaxListeners:U._maxListeners}v.prototype.getMaxListeners=function(){return g(this)},v.prototype.emit=function(G){for(var Q=[],ee=1;ee<arguments.length;ee++)Q.push(arguments[ee]);var ae=G==="error",oe=this._events;if(oe!==void 0)ae=ae&&oe.error===void 0;else if(!ae)return!1;if(ae){var he;if(Q.length>0&&(he=Q[0]),he instanceof Error)throw he;var le=new Error("Unhandled error."+(he?" ("+he.message+")":""));throw le.context=he,le}var be=oe[G];if(be===void 0)return!1;if(typeof be=="function")p(be,this,Q);else for(var pe=be.length,_e=k(be,pe),ee=0;ee<pe;++ee)p(_e[ee],this,Q);return!0};function x(U,G,Q,ee){var ae,oe,he;if(h(Q),oe=U._events,oe===void 0?(oe=U._events=Object.create(null),U._eventsCount=0):(oe.newListener!==void 0&&(U.emit("newListener",G,Q.listener?Q.listener:Q),oe=U._events),he=oe[G]),he===void 0)he=oe[G]=Q,++U._eventsCount;else if(typeof he=="function"?he=oe[G]=ee?[Q,he]:[he,Q]:ee?he.unshift(Q):he.push(Q),ae=g(U),ae>0&&he.length>ae&&!he.warned){he.warned=!0;var le=new Error("Possible EventEmitter memory leak detected. "+he.length+" "+String(G)+" listeners added. Use emitter.setMaxListeners() to increase limit");le.name="MaxListenersExceededWarning",le.emitter=U,le.type=G,le.count=he.length,m(le)}return U}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 I(U,G,Q){var ee={fired:!1,wrapFn:void 0,target:U,type:G,listener:Q},ae=T.bind(ee);return ae.listener=Q,ee.wrapFn=ae,ae}v.prototype.once=function(G,Q){return h(Q),this.on(G,I(this,G,Q)),this},v.prototype.prependOnceListener=function(G,Q){return h(Q),this.prependListener(G,I(this,G,Q)),this},v.prototype.removeListener=function(G,Q){var ee,ae,oe,he,le;if(h(Q),ae=this._events,ae===void 0)return this;if(ee=ae[G],ee===void 0)return this;if(ee===Q||ee.listener===Q)--this._eventsCount===0?this._events=Object.create(null):(delete ae[G],ae.removeListener&&this.emit("removeListener",G,ee.listener||Q));else if(typeof ee!="function"){for(oe=-1,he=ee.length-1;he>=0;he--)if(ee[he]===Q||ee[he].listener===Q){le=ee[he].listener,oe=he;break}if(oe<0)return this;oe===0?ee.shift():L(ee,oe),ee.length===1&&(ae[G]=ee[0]),ae.removeListener!==void 0&&this.emit("removeListener",G,le||Q)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(G){var Q,ee,ae;if(ee=this._events,ee===void 0)return this;if(ee.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ee[G]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ee[G]),this;if(arguments.length===0){var oe=Object.keys(ee),he;for(ae=0;ae<oe.length;++ae)he=oe[ae],he!=="removeListener"&&this.removeAllListeners(he);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Q=ee[G],typeof Q=="function")this.removeListener(G,Q);else if(Q!==void 0)for(ae=Q.length-1;ae>=0;ae--)this.removeListener(G,Q[ae]);return this};function R(U,G,Q){var ee=U._events;if(ee===void 0)return[];var ae=ee[G];return ae===void 0?[]:typeof ae=="function"?Q?[ae.listener||ae]:[ae]:Q?H(ae):k(ae,ae.length)}v.prototype.listeners=function(G){return R(this,G,!0)},v.prototype.rawListeners=function(G){return R(this,G,!1)},v.listenerCount=function(U,G){return typeof U.listenerCount=="function"?U.listenerCount(G):N.call(U,G)},v.prototype.listenerCount=N;function N(U){var G=this._events;if(G!==void 0){var Q=G[U];if(typeof Q=="function")return 1;if(Q!==void 0)return Q.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?y(this._events):[]};function k(U,G){for(var Q=new Array(G),ee=0;ee<G;++ee)Q[ee]=U[ee];return Q}function L(U,G){for(;G+1<U.length;G++)U[G]=U[G+1];U.pop()}function H(U){for(var G=new Array(U.length),Q=0;Q<G.length;++Q)G[Q]=U[Q].listener||U[Q];return G}function M(U,G){return new Promise(function(Q,ee){function ae(he){U.removeListener(G,oe),ee(he)}function oe(){typeof U.removeListener=="function"&&U.removeListener("error",ae),Q([].slice.call(arguments))}P(U,G,oe,{once:!0}),G!=="error"&&F(U,ae,{once:!0})})}function F(U,G,Q){typeof U.on=="function"&&P(U,"error",G,Q)}function P(U,G,Q,ee){if(typeof U.on=="function")ee.once?U.once(G,Q):U.on(G,Q);else if(typeof U.addEventListener=="function")U.addEventListener(G,function ae(oe){ee.once&&U.removeEventListener(G,ae),Q(oe)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof U)}},{}],345:[function(s,w,_){"use strict";var u=s("is-callable"),p=Object.prototype.toString,y=Object.prototype.hasOwnProperty,m=function(g,x,T){for(var I=0,R=g.length;I<R;I++)y.call(g,I)&&(T==null?x(g[I],I,g):x.call(T,g[I],I,g))},b=function(g,x,T){for(var I=0,R=g.length;I<R;I++)T==null?x(g.charAt(I),I,g):x.call(T,g.charAt(I),I,g)},v=function(g,x,T){for(var I in g)y.call(g,I)&&(T==null?x(g[I],I,g):x.call(T,g[I],I,g))},c=function(g,x,T){if(!u(x))throw new TypeError("iterator must be a function");var I;arguments.length>=3&&(I=T),p.call(g)==="[object Array]"?m(g,x,I):typeof g=="string"?b(g,x,I):v(g,x,I)};w.exports=c},{"is-callable":367}],346:[function(s,w,_){"use strict";var u="Function.prototype.bind called on incompatible ",p=Array.prototype.slice,y=Object.prototype.toString,m="[object Function]";w.exports=function(v){var c=this;if(typeof c!="function"||y.call(c)!==m)throw new TypeError(u+c);for(var h=p.call(arguments,1),g,x=function(){if(this instanceof g){var k=c.apply(this,h.concat(p.call(arguments)));return Object(k)===k?k:this}else return c.apply(v,h.concat(p.call(arguments)))},T=Math.max(0,c.length-h.length),I=[],R=0;R<T;R++)I.push("$"+R);if(g=Function("binder","return function ("+I.join(",")+"){ return binder.apply(this,arguments); }")(x),c.prototype){var N=function(){};N.prototype=c.prototype,g.prototype=new N,N.prototype=null}return g}},{}],347:[function(s,w,_){"use strict";var u=s("./implementation");w.exports=Function.prototype.bind||u},{"./implementation":346}],348:[function(s,w,_){"use strict";var u,p=SyntaxError,y=Function,m=TypeError,b=function(be){try{return y('"use strict"; return ('+be+").constructor;")()}catch(pe){}},v=Object.getOwnPropertyDescriptor;if(v)try{v({},"")}catch(be){v=null}var c=function(){throw new m},h=v?function(){try{return arguments.callee,c}catch(be){try{return v(arguments,"callee").get}catch(pe){return c}}}():c,g=s("has-symbols")(),x=s("has-proto")(),T=Object.getPrototypeOf||(x?function(be){return be.__proto__}:null),I={},R=typeof Uint8Array=="undefined"||!T?u:T(Uint8Array),N={"%AggregateError%":typeof AggregateError=="undefined"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?u:ArrayBuffer,"%ArrayIteratorPrototype%":g&&T?T([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%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%":y,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array=="undefined"?u:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?u:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&T?T(T([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map=="undefined"?u:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!g||!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"||!g||!T?u:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&T?T(""[Symbol.iterator]()):u,"%Symbol%":g?Symbol:u,"%SyntaxError%":p,"%ThrowTypeError%":h,"%TypedArray%":R,"%TypeError%":m,"%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(be){var k=T(T(be));N["%Error.prototype%"]=k}var L=function be(pe){var _e;if(pe==="%AsyncFunction%")_e=b("async function () {}");else if(pe==="%GeneratorFunction%")_e=b("function* () {}");else if(pe==="%AsyncGeneratorFunction%")_e=b("async function* () {}");else if(pe==="%AsyncGenerator%"){var ne=be("%AsyncGeneratorFunction%");ne&&(_e=ne.prototype)}else if(pe==="%AsyncIteratorPrototype%"){var ue=be("%AsyncGenerator%");ue&&T&&(_e=T(ue.prototype))}return N[pe]=_e,_e},H={"%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"]},M=s("function-bind"),F=s("has"),P=M.call(Function.call,Array.prototype.concat),U=M.call(Function.apply,Array.prototype.splice),G=M.call(Function.call,String.prototype.replace),Q=M.call(Function.call,String.prototype.slice),ee=M.call(Function.call,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,he=function(pe){var _e=Q(pe,0,1),ne=Q(pe,-1);if(_e==="%"&&ne!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(ne==="%"&&_e!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var ue=[];return G(pe,ae,function(ce,Re,ke,Ne){ue[ue.length]=ke?G(Ne,oe,"$1"):Re||ce}),ue},le=function(pe,_e){var ne=pe,ue;if(F(H,ne)&&(ue=H[ne],ne="%"+ue[0]+"%"),F(N,ne)){var ce=N[ne];if(ce===I&&(ce=L(ne)),typeof ce=="undefined"&&!_e)throw new m("intrinsic "+pe+" exists, but is not available. Please file an issue!");return{alias:ue,name:ne,value:ce}}throw new p("intrinsic "+pe+" does not exist!")};w.exports=function(pe,_e){if(typeof pe!="string"||pe.length===0)throw new m("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof _e!="boolean")throw new m('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,pe)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ne=he(pe),ue=ne.length>0?ne[0]:"",ce=le("%"+ue+"%",_e),Re=ce.name,ke=ce.value,Ne=!1,De=ce.alias;De&&(ue=De[0],U(ne,P([0,1],De)));for(var Me=1,We=!0;Me<ne.length;Me+=1){var je=ne[Me],et=Q(je,0,1),it=Q(je,-1);if((et==='"'||et==="'"||et==="`"||it==='"'||it==="'"||it==="`")&&et!==it)throw new p("property names with quotes must have matching quotes");if((je==="constructor"||!We)&&(Ne=!0),ue+="."+je,Re="%"+ue+"%",F(N,Re))ke=N[Re];else if(ke!=null){if(!(je in ke)){if(!_e)throw new m("base intrinsic for "+pe+" exists, but the property is not available.");return}if(v&&Me+1>=ne.length){var ze=v(ke,je);We=!!ze,We&&"get"in ze&&!("originalValue"in ze.get)?ke=ze.get:ke=ke[je]}else We=F(ke,je),ke=ke[je];We&&!Ne&&(N[Re]=ke)}}return ke}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(s,w,_){"use strict";var u=s("get-intrinsic"),p=u("%Object.getOwnPropertyDescriptor%",!0);if(p)try{p([],"length")}catch(y){p=null}w.exports=p},{"get-intrinsic":348}],350:[function(s,w,_){"use strict";var u={foo:{}},p=Object;w.exports=function(){return{__proto__:u}.foo===u.foo&&!({__proto__:null}instanceof p)}},{}],351:[function(s,w,_){"use strict";var u=typeof Symbol!="undefined"&&Symbol,p=s("./shams");w.exports=function(){return typeof u!="function"||typeof Symbol!="function"||typeof u("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:p()}},{"./shams":352}],352:[function(s,w,_){"use strict";w.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var p={},y=Symbol("test"),m=Object(y);if(typeof y=="string"||Object.prototype.toString.call(y)!=="[object Symbol]"||Object.prototype.toString.call(m)!=="[object Symbol]")return!1;var b=42;p[y]=b;for(y in p)return!1;if(typeof Object.keys=="function"&&Object.keys(p).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(p).length!==0)return!1;var v=Object.getOwnPropertySymbols(p);if(v.length!==1||v[0]!==y||!Object.prototype.propertyIsEnumerable.call(p,y))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(p,y);if(c.value!==b||c.enumerable!==!0)return!1}return!0}},{}],353:[function(s,w,_){"use strict";var u=s("has-symbols/shams");w.exports=function(){return u()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(s,w,_){"use strict";var u=s("function-bind");w.exports=u.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(s,w,_){var u=s("http"),p=s("url"),y=w.exports;for(var m in u)u.hasOwnProperty(m)&&(y[m]=u[m]);y.request=function(v,c){return v=b(v),u.request.call(this,v,c)},y.get=function(v,c){return v=b(v),u.get.call(this,v,c)};function b(v){if(typeof v=="string"&&(v=p.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,w,_){"use strict";var u=s("util"),p=s("ms");w.exports=function(y){if(typeof y=="number")return y;var m=p(y);if(m===void 0){var b=new Error(u.format("humanize-ms(%j) result undefined",y));console.warn(b.stack)}return m}},{ms:376,util:419}],357:[function(s,w,_){_.read=function(u,p,y,m,b){var v,c,h=b*8-m-1,g=(1<<h)-1,x=g>>1,T=-7,I=y?b-1:0,R=y?-1:1,N=u[p+I];for(I+=R,v=N&(1<<-T)-1,N>>=-T,T+=h;T>0;v=v*256+u[p+I],I+=R,T-=8);for(c=v&(1<<-T)-1,v>>=-T,T+=m;T>0;c=c*256+u[p+I],I+=R,T-=8);if(v===0)v=1-x;else{if(v===g)return c?NaN:(N?-1:1)*(1/0);c=c+Math.pow(2,m),v=v-x}return(N?-1:1)*c*Math.pow(2,v-m)},_.write=function(u,p,y,m,b,v){var c,h,g,x=v*8-b-1,T=(1<<x)-1,I=T>>1,R=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=m?0:v-1,k=m?1:-1,L=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(h=isNaN(p)?1:0,c=T):(c=Math.floor(Math.log(p)/Math.LN2),p*(g=Math.pow(2,-c))<1&&(c--,g*=2),c+I>=1?p+=R/g:p+=R*Math.pow(2,1-I),p*g>=2&&(c++,g/=2),c+I>=T?(h=0,c=T):c+I>=1?(h=(p*g-1)*Math.pow(2,b),c=c+I):(h=p*Math.pow(2,I-1)*Math.pow(2,b),c=0));b>=8;u[y+N]=h&255,N+=k,h/=256,b-=8);for(c=c<<b|h,x+=b;x>0;u[y+N]=c&255,N+=k,c/=256,x-=8);u[y+N-k]|=L*128}},{}],358:[function(s,w,_){"use strict";var u=[s("./nextTick"),s("./queueMicrotask"),s("./mutation.js"),s("./messageChannel"),s("./stateChange"),s("./timeout")],p,y,m=-1,b=[],v=!1;function c(){!p||!y||(p=!1,y.length?b=y.concat(b):m=-1,b.length&&h())}function h(){if(!p){v=!1,p=!0;for(var N=b.length,k=setTimeout(c);N;){for(y=b,b=[];y&&++m<N;)y[m].run();m=-1,N=b.length}y=null,m=-1,p=!1,clearTimeout(k)}}for(var g,x=-1,T=u.length;++x<T;)if(u[x]&&u[x].test&&u[x].test()){g=u[x].install(h);break}function I(N,k){this.fun=N,this.array=k}I.prototype.run=function(){var N=this.fun,k=this.array;switch(k.length){case 0:return N();case 1:return N(k[0]);case 2:return N(k[0],k[1]);case 3:return N(k[0],k[1],k[2]);default:return N.apply(null,k)}},w.exports=R;function R(N){var k=new Array(arguments.length-1);if(arguments.length>1)for(var L=1;L<arguments.length;L++)k[L-1]=arguments[L];b.push(new I(N,k)),!v&&!p&&(v=!0,g())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(s,w,_){(function(u){(function(){"use strict";_.test=function(){return u.setImmediate?!1:typeof u.MessageChannel!="undefined"},_.install=function(p){var y=new u.MessageChannel;return y.port1.onmessage=p,function(){y.port2.postMessage(0)}}}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(s,w,_){(function(u){(function(){"use strict";var p=u.MutationObserver||u.WebKitMutationObserver;_.test=function(){return p},_.install=function(y){var m=0,b=new p(y),v=u.document.createTextNode("");return b.observe(v,{characterData:!0}),function(){v.data=m=++m%2}}}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(s,w,_){(function(u){(function(){"use strict";_.test=function(){return typeof u.queueMicrotask=="function"},_.install=function(p){return function(){u.queueMicrotask(p)}}}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(s,w,_){(function(u){(function(){"use strict";_.test=function(){return"document"in u&&"onreadystatechange"in u.document.createElement("script")},_.install=function(p){return function(){var y=u.document.createElement("script");return y.onreadystatechange=function(){p(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},u.document.documentElement.appendChild(y),p}}}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(s,w,_){"use strict";_.test=function(){return!0},_.install=function(u){return function(){setTimeout(u,0)}}},{}],364:[function(s,w,_){typeof Object.create=="function"?w.exports=function(p,y){y&&(p.super_=y,p.prototype=Object.create(y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:w.exports=function(p,y){if(y){p.super_=y;var m=function(){};m.prototype=y.prototype,p.prototype=new m,p.prototype.constructor=p}}},{}],365:[function(s,w,_){"use strict";var u=s("has-tostringtag/shams")(),p=s("call-bind/callBound"),y=p("Object.prototype.toString"),m=function(h){return u&&h&&typeof h=="object"&&Symbol.toStringTag in h?!1:y(h)==="[object Arguments]"},b=function(h){return m(h)?!0:h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&y(h)!=="[object Array]"&&y(h.callee)==="[object Function]"},v=function(){return m(arguments)}();m.isLegacyArguments=b,w.exports=v?m:b},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(s,w,_){w.exports=function(y){return y!=null&&(u(y)||p(y)||!!y._isBuffer)};function u(y){return!!y.constructor&&typeof y.constructor.isBuffer=="function"&&y.constructor.isBuffer(y)}function p(y){return typeof y.readFloatLE=="function"&&typeof y.slice=="function"&&u(y.slice(0,0))}},{}],367:[function(s,w,_){"use strict";var u=Function.prototype.toString,p=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,y,m;if(typeof p=="function"&&typeof Object.defineProperty=="function")try{y=Object.defineProperty({},"length",{get:function(){throw m}}),m={},p(function(){throw 42},null,y)}catch(F){F!==m&&(p=null)}else p=null;var b=/^\s*class\b/,v=function(P){try{var U=u.call(P);return b.test(U)}catch(G){return!1}},c=function(P){try{return v(P)?!1:(u.call(P),!0)}catch(U){return!1}},h=Object.prototype.toString,g="[object Object]",x="[object Function]",T="[object GeneratorFunction]",I="[object HTMLAllCollection]",R="[object HTML document.all class]",N="[object HTMLCollection]",k=typeof Symbol=="function"&&!!Symbol.toStringTag,L=!(0 in[,]),H=function(){return!1};if(typeof document=="object"){var M=document.all;h.call(M)===h.call(document.all)&&(H=function(P){if((L||!P)&&(typeof P=="undefined"||typeof P=="object"))try{var U=h.call(P);return(U===I||U===R||U===N||U===g)&&P("")==null}catch(G){}return!1})}w.exports=p?function(P){if(H(P))return!0;if(!P||typeof P!="function"&&typeof P!="object")return!1;try{p(P,null,y)}catch(U){if(U!==m)return!1}return!v(P)&&c(P)}:function(P){if(H(P))return!0;if(!P||typeof P!="function"&&typeof P!="object")return!1;if(k)return c(P);if(v(P))return!1;var U=h.call(P);return U!==x&&U!==T&&!/^\[object HTML/.test(U)?!1:c(P)}},{}],368:[function(s,w,_){"use strict";var u=Object.prototype.toString,p=Function.prototype.toString,y=/^\s*(?:function)?\*/,m=s("has-tostringtag/shams")(),b=Object.getPrototypeOf,v=function(){if(!m)return!1;try{return Function("return function*() {}")()}catch(h){}},c;w.exports=function(g){if(typeof g!="function")return!1;if(y.test(p.call(g)))return!0;if(!m){var x=u.call(g);return x==="[object GeneratorFunction]"}if(!b)return!1;if(typeof c=="undefined"){var T=v();c=T?b(T):!1}return b(g)===c}},{"has-tostringtag/shams":353}],369:[function(s,w,_){"use strict";var u=s("which-typed-array");w.exports=function(y){return!!u(y)}},{"which-typed-array":420}],370:[function(s,w,_){var u={}.toString;w.exports=Array.isArray||function(p){return u.call(p)=="[object Array]"}},{}],371:[function(s,w,_){(function(u){(function(){(function(p,y){typeof _=="object"&&typeof w!="undefined"?w.exports=y(p):typeof S=="function"&&S.amd?S(y):y(p)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof u!="undefined"?u:this,function(p){"use strict";p=p||{};var y=p.Base64,m="2.6.4",b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=function(pe){for(var _e={},ne=0,ue=pe.length;ne<ue;ne++)_e[pe.charAt(ne)]=ne;return _e}(b),c=String.fromCharCode,h=function(pe){if(pe.length<2){var _e=pe.charCodeAt(0);return _e<128?pe:_e<2048?c(192|_e>>>6)+c(128|_e&63):c(224|_e>>>12&15)+c(128|_e>>>6&63)+c(128|_e&63)}else{var _e=65536+(pe.charCodeAt(0)-55296)*1024+(pe.charCodeAt(1)-56320);return c(240|_e>>>18&7)+c(128|_e>>>12&63)+c(128|_e>>>6&63)+c(128|_e&63)}},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,x=function(pe){return pe.replace(g,h)},T=function(pe){var _e=[0,2,1][pe.length%3],ne=pe.charCodeAt(0)<<16|(pe.length>1?pe.charCodeAt(1):0)<<8|(pe.length>2?pe.charCodeAt(2):0),ue=[b.charAt(ne>>>18),b.charAt(ne>>>12&63),_e>=2?"=":b.charAt(ne>>>6&63),_e>=1?"=":b.charAt(ne&63)];return ue.join("")},I=p.btoa&&typeof p.btoa=="function"?function(pe){return p.btoa(pe)}:function(pe){if(pe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return pe.replace(/[\s\S]{1,3}/g,T)},R=function(pe){return I(x(String(pe)))},N=function(pe){return pe.replace(/[+\/]/g,function(_e){return _e=="+"?"-":"_"}).replace(/=/g,"")},k=function(pe,_e){return _e?N(R(pe)):R(pe)},L=function(pe){return k(pe,!0)},H;p.Uint8Array&&(H=function(pe,_e){for(var ne="",ue=0,ce=pe.length;ue<ce;ue+=3){var Re=pe[ue],ke=pe[ue+1],Ne=pe[ue+2],De=Re<<16|ke<<8|Ne;ne+=b.charAt(De>>>18)+b.charAt(De>>>12&63)+(typeof ke!="undefined"?b.charAt(De>>>6&63):"=")+(typeof Ne!="undefined"?b.charAt(De&63):"=")}return _e?N(ne):ne});var M=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,F=function(pe){switch(pe.length){case 4:var _e=(7&pe.charCodeAt(0))<<18|(63&pe.charCodeAt(1))<<12|(63&pe.charCodeAt(2))<<6|63&pe.charCodeAt(3),ne=_e-65536;return c((ne>>>10)+55296)+c((ne&1023)+56320);case 3:return c((15&pe.charCodeAt(0))<<12|(63&pe.charCodeAt(1))<<6|63&pe.charCodeAt(2));default:return c((31&pe.charCodeAt(0))<<6|63&pe.charCodeAt(1))}},P=function(pe){return pe.replace(M,F)},U=function(pe){var _e=pe.length,ne=_e%4,ue=(_e>0?v[pe.charAt(0)]<<18:0)|(_e>1?v[pe.charAt(1)]<<12:0)|(_e>2?v[pe.charAt(2)]<<6:0)|(_e>3?v[pe.charAt(3)]:0),ce=[c(ue>>>16),c(ue>>>8&255),c(ue&255)];return ce.length-=[0,0,2,1][ne],ce.join("")},G=p.atob&&typeof p.atob=="function"?function(pe){return p.atob(pe)}:function(pe){return pe.replace(/\S{1,4}/g,U)},Q=function(pe){return G(String(pe).replace(/[^A-Za-z0-9\+\/]/g,""))},ee=function(pe){return P(G(pe))},ae=function(pe){return String(pe).replace(/[-_]/g,function(_e){return _e=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},oe=function(pe){return ee(ae(pe))},he;p.Uint8Array&&(he=function(pe){return Uint8Array.from(Q(ae(pe)),function(_e){return _e.charCodeAt(0)})});var le=function(){var pe=p.Base64;return p.Base64=y,pe};if(p.Base64={VERSION:m,atob:Q,btoa:I,fromBase64:oe,toBase64:k,utob:x,encode:k,encodeURI:L,btou:P,decode:oe,noConflict:le,fromUint8Array:H,toUint8Array:he},typeof Object.defineProperty=="function"){var be=function(pe){return{value:pe,enumerable:!1,writable:!0,configurable:!0}};p.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",be(function(){return oe(this)})),Object.defineProperty(String.prototype,"toBase64",be(function(pe){return k(this,pe)})),Object.defineProperty(String.prototype,"toBase64URI",be(function(){return k(this,!0)}))}}return p.Meteor&&(Base64=p.Base64),typeof w!="undefined"&&w.exports?w.exports.Base64=p.Base64:typeof S=="function"&&S.amd&&S([],function(){return p.Base64}),{Base64:p.Base64}})}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(s,w,_){"use strict";w.exports=p;var u=Object.prototype.hasOwnProperty;function p(y,m,b){if(!y)throw new TypeError("argument dest is required");if(!m)throw new TypeError("argument src is required");return b===void 0&&(b=!0),Object.getOwnPropertyNames(m).forEach(function(c){if(!(!b&&u.call(y,c))){var h=Object.getOwnPropertyDescriptor(m,c);Object.defineProperty(y,c,h)}}),y}},{}],373:[function(s,w,_){"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 p=0;p<arguments.length;p++)this.define(arguments[p]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}u.prototype.define=function(p,y){for(var m in p){var b=p[m].map(function(g){return g.toLowerCase()});m=m.toLowerCase();for(var v=0;v<b.length;v++){var c=b[v];if(c[0]!=="*"){if(!y&&c in this._types)throw new Error('Attempt to change mapping for "'+c+'" extension from "'+this._types[c]+'" to "'+m+'". Pass `force=true` to allow this, otherwise remove "'+c+'" from the list of extensions for "'+m+'".');this._types[c]=m}}if(y||!this._extensions[m]){var h=b[0];this._extensions[m]=h[0]!=="*"?h:h.substr(1)}}},u.prototype.getType=function(p){p=String(p);var y=p.replace(/^.*[/\\]/,"").toLowerCase(),m=y.replace(/^.*\./,"").toLowerCase(),b=y.length<p.length,v=m.length<y.length-1;return(v||!b)&&this._types[m]||null},u.prototype.getExtension=function(p){return p=/^\s*([^;\s]*)/.test(p)&&RegExp.$1,p&&this._extensions[p.toLowerCase()]||null},w.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,w,_){"use strict";var u=s("./Mime");w.exports=new u(s("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(s,w,_){"use strict";w.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,w,_){var u=1e3,p=u*60,y=p*60,m=y*24,b=m*7,v=m*365.25;w.exports=function(T,I){I=I||{};var R=typeof T;if(R==="string"&&T.length>0)return c(T);if(R==="number"&&isFinite(T))return I.long?g(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 I=/^(-?(?:\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(I){var R=parseFloat(I[1]),N=(I[2]||"ms").toLowerCase();switch(N){case"years":case"year":case"yrs":case"yr":case"y":return R*v;case"weeks":case"week":case"w":return R*b;case"days":case"day":case"d":return R*m;case"hours":case"hour":case"hrs":case"hr":case"h":return R*y;case"minutes":case"minute":case"mins":case"min":case"m":return R*p;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 I=Math.abs(T);return I>=m?Math.round(T/m)+"d":I>=y?Math.round(T/y)+"h":I>=p?Math.round(T/p)+"m":I>=u?Math.round(T/u)+"s":T+"ms"}function g(T){var I=Math.abs(T);return I>=m?x(T,I,m,"day"):I>=y?x(T,I,y,"hour"):I>=p?x(T,I,p,"minute"):I>=u?x(T,I,u,"second"):T+" ms"}function x(T,I,R,N){var k=I>=R*1.5;return Math.round(T/R)+" "+N+(k?"s":"")}},{}],377:[function(s,w,_){"use strict";var u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;function m(v){if(v==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(v)}function b(){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 g=Object.getOwnPropertyNames(c).map(function(T){return c[T]});if(g.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}}w.exports=b()?Object.assign:function(v,c){for(var h,g=m(v),x,T=1;T<arguments.length;T++){h=Object(arguments[T]);for(var I in h)p.call(h,I)&&(g[I]=h[I]);if(u){x=u(h);for(var R=0;R<x.length;R++)y.call(h,x[R])&&(g[x[R]]=h[x[R]])}}return g}},{}],378:[function(s,w,_){(function(u){(function(){"use strict";function p(v){if(typeof v!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(v))}function y(v,c){for(var h="",g=0,x=-1,T=0,I,R=0;R<=v.length;++R){if(R<v.length)I=v.charCodeAt(R);else{if(I===47)break;I=47}if(I===47){if(!(x===R-1||T===1))if(x!==R-1&&T===2){if(h.length<2||g!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){var N=h.lastIndexOf("/");if(N!==h.length-1){N===-1?(h="",g=0):(h=h.slice(0,N),g=h.length-1-h.lastIndexOf("/")),x=R,T=0;continue}}else if(h.length===2||h.length===1){h="",g=0,x=R,T=0;continue}}c&&(h.length>0?h+="/..":h="..",g=2)}else h.length>0?h+="/"+v.slice(x+1,R):h=v.slice(x+1,R),g=R-x-1;x=R,T=0}else I===46&&T!==-1?++T:T=-1}return h}function m(v,c){var h=c.dir||c.root,g=c.base||(c.name||"")+(c.ext||"");return h?h===c.root?h+g:h+v+g:g}var b={resolve:function(){for(var c="",h=!1,g,x=arguments.length-1;x>=-1&&!h;x--){var T;x>=0?T=arguments[x]:(g===void 0&&(g=u.cwd()),T=g),p(T),T.length!==0&&(c=T+"/"+c,h=T.charCodeAt(0)===47)}return c=y(c,!h),h?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(c){if(p(c),c.length===0)return".";var h=c.charCodeAt(0)===47,g=c.charCodeAt(c.length-1)===47;return c=y(c,!h),c.length===0&&!h&&(c="."),c.length>0&&g&&(c+="/"),h?"/"+c:c},isAbsolute:function(c){return p(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 g=arguments[h];p(g),g.length>0&&(c===void 0?c=g:c+="/"+g)}return c===void 0?".":b.normalize(c)},relative:function(c,h){if(p(c),p(h),c===h||(c=b.resolve(c),h=b.resolve(h),c===h))return"";for(var g=1;g<c.length&&c.charCodeAt(g)===47;++g);for(var x=c.length,T=x-g,I=1;I<h.length&&h.charCodeAt(I)===47;++I);for(var R=h.length,N=R-I,k=T<N?T:N,L=-1,H=0;H<=k;++H){if(H===k){if(N>k){if(h.charCodeAt(I+H)===47)return h.slice(I+H+1);if(H===0)return h.slice(I+H)}else T>k&&(c.charCodeAt(g+H)===47?L=H:H===0&&(L=0));break}var M=c.charCodeAt(g+H),F=h.charCodeAt(I+H);if(M!==F)break;M===47&&(L=H)}var P="";for(H=g+L+1;H<=x;++H)(H===x||c.charCodeAt(H)===47)&&(P.length===0?P+="..":P+="/..");return P.length>0?P+h.slice(I+L):(I+=L,h.charCodeAt(I)===47&&++I,h.slice(I))},_makeLong:function(c){return c},dirname:function(c){if(p(c),c.length===0)return".";for(var h=c.charCodeAt(0),g=h===47,x=-1,T=!0,I=c.length-1;I>=1;--I)if(h=c.charCodeAt(I),h===47){if(!T){x=I;break}}else T=!1;return x===-1?g?"/":".":g&&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');p(c);var g=0,x=-1,T=!0,I;if(h!==void 0&&h.length>0&&h.length<=c.length){if(h.length===c.length&&h===c)return"";var R=h.length-1,N=-1;for(I=c.length-1;I>=0;--I){var k=c.charCodeAt(I);if(k===47){if(!T){g=I+1;break}}else N===-1&&(T=!1,N=I+1),R>=0&&(k===h.charCodeAt(R)?--R===-1&&(x=I):(R=-1,x=N))}return g===x?x=N:x===-1&&(x=c.length),c.slice(g,x)}else{for(I=c.length-1;I>=0;--I)if(c.charCodeAt(I)===47){if(!T){g=I+1;break}}else x===-1&&(T=!1,x=I+1);return x===-1?"":c.slice(g,x)}},extname:function(c){p(c);for(var h=-1,g=0,x=-1,T=!0,I=0,R=c.length-1;R>=0;--R){var N=c.charCodeAt(R);if(N===47){if(!T){g=R+1;break}continue}x===-1&&(T=!1,x=R+1),N===46?h===-1?h=R:I!==1&&(I=1):h!==-1&&(I=-1)}return h===-1||x===-1||I===0||I===1&&h===x-1&&h===g+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 m("/",c)},parse:function(c){p(c);var h={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return h;var g=c.charCodeAt(0),x=g===47,T;x?(h.root="/",T=1):T=0;for(var I=-1,R=0,N=-1,k=!0,L=c.length-1,H=0;L>=T;--L){if(g=c.charCodeAt(L),g===47){if(!k){R=L+1;break}continue}N===-1&&(k=!1,N=L+1),g===46?I===-1?I=L:H!==1&&(H=1):I!==-1&&(H=-1)}return I===-1||N===-1||H===0||H===1&&I===N-1&&I===R+1?N!==-1&&(R===0&&x?h.base=h.name=c.slice(1,N):h.base=h.name=c.slice(R,N)):(R===0&&x?(h.name=c.slice(1,I),h.base=c.slice(1,N)):(h.name=c.slice(R,I),h.base=c.slice(R,N)),h.ext=c.slice(I,N)),R>0?h.dir=c.slice(0,R-1):x&&(h.dir="/"),h},sep:"/",delimiter:":",win32:null,posix:null};b.posix=b,w.exports=b}).call(this)}).call(this,s("_process"))},{_process:467}],379:[function(s,w,_){(function(u){(function(){(function(){"use strict";var p={function:!0,object:!0},y=p[typeof window]&&window||this,m=y,b=p[typeof _]&&_,v=p[typeof w]&&w&&!w.nodeType&&w,c=b&&v&&typeof u=="object"&&u;c&&(c.global===c||c.window===c||c.self===c)&&(y=c);var h=Math.pow(2,53)-1,g=/\bOpera/,x=this,T=Object.prototype,I=T.hasOwnProperty,R=T.toString;function N(oe){return oe=String(oe),oe.charAt(0).toUpperCase()+oe.slice(1)}function k(oe,he,le){var be={"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&&le&&/^Win/i.test(oe)&&!/^Windows Phone /i.test(oe)&&(be=be[/[\d.]+$/.exec(oe)])&&(oe="Windows "+be),oe=String(oe),he&&le&&(oe=oe.replace(RegExp(he,"i"),le)),oe=H(oe.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]),oe}function L(oe,he){var le=-1,be=oe?oe.length:0;if(typeof be=="number"&&be>-1&&be<=h)for(;++le<be;)he(oe[le],le,oe);else M(oe,he)}function H(oe){return oe=Q(oe),/^(?:webOS|i(?:OS|P))/.test(oe)?oe:N(oe)}function M(oe,he){for(var le in oe)I.call(oe,le)&&he(oe[le],le,oe)}function F(oe){return oe==null?N(oe):R.call(oe).slice(8,-1)}function P(oe,he){var le=oe!=null?typeof oe[he]:"number";return!/^(?:boolean|number|string|undefined)$/.test(le)&&(le=="object"?!!oe[he]:!0)}function U(oe){return String(oe).replace(/([ -])(?!$)/g,"$1?")}function G(oe,he){var le=null;return L(oe,function(be,pe){le=he(le,be,pe,oe)}),le}function Q(oe){return String(oe).replace(/^ +| +$/g,"")}function ee(oe){var he=y,le=oe&&typeof oe=="object"&&F(oe)!="String";le&&(he=oe,oe=null);var be=he.navigator||{},pe=be.userAgent||"";oe||(oe=pe);var _e=le||x==m,ne=le?!!be.likeChrome:/\bChrome\b/.test(oe)&&!/internal|\n/i.test(R.toString()),ue="Object",ce=le?ue:"ScriptBridgingProxyObject",Re=le?ue:"Environment",ke=le&&he.java?"JavaPackage":F(he.java),Ne=le?ue:"RuntimeObject",De=/\bJava/.test(ke)&&he.java,Me=De&&F(he.environment)==Re,We=De?"a":"\u03B1",je=De?"b":"\u03B2",et=he.document||{},it=he.operamini||he.opera,ze=g.test(ze=le&&it?it["[[Class]]"]:F(it))?ze:it=null,xe,fe=oe,W=[],Z=null,me=oe==pe,Ce=me&&it&&typeof it.version=="function"&&it.version(),re,ie=st([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),de=pt(["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"]),Ae=gt([{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"]),Be=Qe({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}}),He=It(["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 st(bt){return G(bt,function(Tt,Mt){return Tt||RegExp("\\b"+(Mt.pattern||U(Mt))+"\\b","i").exec(oe)&&(Mt.label||Mt)})}function Qe(bt){return G(bt,function(Tt,Mt,Ot){return Tt||(Mt[Ae]||Mt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ae)]||RegExp("\\b"+U(Ot)+"(?:\\b|\\w*\\d)","i").exec(oe))&&Ot})}function pt(bt){return G(bt,function(Tt,Mt){return Tt||RegExp("\\b"+(Mt.pattern||U(Mt))+"\\b","i").exec(oe)&&(Mt.label||Mt)})}function It(bt){return G(bt,function(Tt,Mt){var Ot=Mt.pattern||U(Mt);return!Tt&&(Tt=RegExp("\\b"+Ot+"(?:/[\\d.]+|[ \\w.]*)","i").exec(oe))&&(Tt=k(Tt,Ot,Mt.label||Mt)),Tt})}function gt(bt){return G(bt,function(Tt,Mt){var Ot=Mt.pattern||U(Mt);return!Tt&&(Tt=RegExp("\\b"+Ot+" *\\d+[.\\w_]*","i").exec(oe)||RegExp("\\b"+Ot+" *\\w+-[\\w]*","i").exec(oe)||RegExp("\\b"+Ot+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(oe))&&((Tt=String(Mt.label&&!RegExp(Ot,"i").test(Mt.label)?Mt.label:Tt).split("/"))[1]&&!/[\d.]+/.test(Tt[0])&&(Tt[0]+=" "+Tt[1]),Mt=Mt.label||Mt,Tt=H(Tt[0].replace(RegExp(Ot,"i"),Mt).replace(RegExp("; *(?:"+Mt+"[_-])?","i")," ").replace(RegExp("("+Mt+")[-_.]?(\\w)","i"),"$1 $2"))),Tt})}function rt(bt){return G(bt,function(Tt,Mt){return Tt||(RegExp(Mt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(oe)||0)[1]||null})}function ut(){return this.description||""}if(ie&&(ie=[ie]),/\bAndroid\b/.test(He)&&!Ae&&(xe=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(oe))&&(Ae=Q(xe[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Be&&!Ae?Ae=gt([Be]):Be&&Ae&&(Ae=Ae.replace(RegExp("^("+U(Be)+")[-_.\\s]","i"),Be+" ").replace(RegExp("^("+U(Be)+")[-_.]?(\\w)","i"),Be+" $2")),(xe=/\bGoogle TV\b/.exec(Ae))&&(Ae=xe[0]),/\bSimulator\b/i.test(oe)&&(Ae=(Ae?Ae+" ":"")+"Simulator"),de=="Opera Mini"&&/\bOPiOS\b/.test(oe)&&W.push("running in Turbo/Uncompressed mode"),de=="IE"&&/\blike iPhone OS\b/.test(oe)?(xe=ee(oe.replace(/like iPhone OS/,"")),Be=xe.manufacturer,Ae=xe.product):/^iP/.test(Ae)?(de||(de="Safari"),He="iOS"+((xe=/ OS ([\d_]+)/i.exec(oe))?" "+xe[1].replace(/_/g,"."):"")):de=="Konqueror"&&/^Linux\b/i.test(He)?He="Kubuntu":Be&&Be!="Google"&&(/Chrome/.test(de)&&!/\bMobile Safari\b/i.test(oe)||/\bVita\b/.test(Ae))||/\bAndroid\b/.test(He)&&/^Chrome/.test(de)&&/\bVersion\//i.test(oe)?(de="Android Browser",He=/\bAndroid\b/.test(He)?He:"Android"):de=="Silk"?(/\bMobi/i.test(oe)||(He="Android",W.unshift("desktop mode")),/Accelerated *= *true/i.test(oe)&&W.unshift("accelerated")):de=="UC Browser"&&/\bUCWEB\b/.test(oe)?W.push("speed mode"):de=="PaleMoon"&&(xe=/\bFirefox\/([\d.]+)\b/.exec(oe))?W.push("identifying as Firefox "+xe[1]):de=="Firefox"&&(xe=/\b(Mobile|Tablet|TV)\b/i.exec(oe))?(He||(He="Firefox OS"),Ae||(Ae=xe[1])):!de||(xe=!/\bMinefield\b/i.test(oe)&&/\b(?:Firefox|Safari)\b/.exec(de))?(de&&!Ae&&/[\/,]|^[^(]+?\)/.test(oe.slice(oe.indexOf(xe+"/")+8))&&(de=null),(xe=Ae||Be||He)&&(Ae||Be||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(He))&&(de=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(He)?He:xe)+" Browser")):de=="Electron"&&(xe=(/\bChrome\/([\d.]+)\b/.exec(oe)||0)[1])&&W.push("Chromium "+xe),Ce||(Ce=rt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",U(de),"(?:Firefox|Minefield|NetFront)"])),(xe=ie=="iCab"&&parseFloat(Ce)>3&&"WebKit"||/\bOpera\b/.test(de)&&(/\bOPR\b/.test(oe)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(oe)&&!/^(?:Trident|EdgeHTML)$/.test(ie)&&"WebKit"||!ie&&/\bMSIE\b/i.test(oe)&&(He=="Mac OS"?"Tasman":"Trident")||ie=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(de)&&"NetFront")&&(ie=[xe]),de=="IE"&&(xe=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(oe)||0)[1])?(de+=" Mobile",He="Windows Phone "+(/\+$/.test(xe)?xe:xe+".x"),W.unshift("desktop mode")):/\bWPDesktop\b/i.test(oe)?(de="IE Mobile",He="Windows Phone 8.x",W.unshift("desktop mode"),Ce||(Ce=(/\brv:([\d.]+)/.exec(oe)||0)[1])):de!="IE"&&ie=="Trident"&&(xe=/\brv:([\d.]+)/.exec(oe))&&(de&&W.push("identifying as "+de+(Ce?" "+Ce:"")),de="IE",Ce=xe[1]),me){if(P(he,"global"))if(De&&(xe=De.lang.System,fe=xe.getProperty("os.arch"),He=He||xe.getProperty("os.name")+" "+xe.getProperty("os.version")),Me){try{Ce=he.require("ringo/engine").version.join("."),de="RingoJS"}catch(bt){(xe=he.system)&&xe.global.system==he.system&&(de="Narwhal",He||(He=xe[0].os||null))}de||(de="Rhino")}else typeof he.process=="object"&&!he.process.browser&&(xe=he.process)&&(typeof xe.versions=="object"&&(typeof xe.versions.electron=="string"?(W.push("Node "+xe.versions.node),de="Electron",Ce=xe.versions.electron):typeof xe.versions.nw=="string"&&(W.push("Chromium "+Ce,"Node "+xe.versions.node),de="NW.js",Ce=xe.versions.nw)),de||(de="Node.js",fe=xe.arch,He=xe.platform,Ce=/[\d.]+/.exec(xe.version),Ce=Ce?Ce[0]:null));else F(xe=he.runtime)==ce?(de="Adobe AIR",He=xe.flash.system.Capabilities.os):F(xe=he.phantom)==Ne?(de="PhantomJS",Ce=(xe=xe.version||null)&&xe.major+"."+xe.minor+"."+xe.patch):typeof et.documentMode=="number"&&(xe=/\bTrident\/(\d+)/i.exec(oe))?(Ce=[Ce,et.documentMode],(xe=+xe[1]+4)!=Ce[1]&&(W.push("IE "+Ce[1]+" mode"),ie&&(ie[1]=""),Ce[1]=xe),Ce=de=="IE"?String(Ce[1].toFixed(1)):Ce[0]):typeof et.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(de)&&(W.push("masking as "+de+" "+Ce),de="IE",Ce="11.0",ie=["Trident"],He="Windows");He=He&&H(He)}if(Ce&&(xe=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ce)||/(?:alpha|beta)(?: ?\d)?/i.exec(oe+";"+(me&&be.appMinorVersion))||/\bMinefield\b/i.test(oe)&&"a")&&(Z=/b/i.test(xe)?"beta":"alpha",Ce=Ce.replace(RegExp(xe+"\\+?$"),"")+(Z=="beta"?je:We)+(/\d+\+?/.exec(xe)||"")),de=="Fennec"||de=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(He))de="Firefox Mobile";else if(de=="Maxthon"&&Ce)Ce=Ce.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ae))Ae=="Xbox 360"&&(He=null),Ae=="Xbox 360"&&/\bIEMobile\b/.test(oe)&&W.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(de)||de&&!Ae&&!/Browser|Mobi/.test(de))&&(He=="Windows CE"||/Mobi/i.test(oe)))de+=" Mobile";else if(de=="IE"&&me)try{he.external===null&&W.unshift("platform preview")}catch(bt){W.unshift("embedded")}else(/\bBlackBerry\b/.test(Ae)||/\bBB10\b/.test(oe))&&(xe=(RegExp(Ae.replace(/ +/g," *")+"/([.\\d]+)","i").exec(oe)||0)[1]||Ce)?(xe=[xe,/BB10/.test(oe)],He=(xe[1]?(Ae=null,Be="BlackBerry"):"Device Software")+" "+xe[0],Ce=null):this!=M&&Ae!="Wii"&&(me&&it||/Opera/.test(de)&&/\b(?:MSIE|Firefox)\b/i.test(oe)||de=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(He)||de=="IE"&&(He&&!/^Win/.test(He)&&Ce>5.5||/\bWindows XP\b/.test(He)&&Ce>8||Ce==8&&!/\bTrident\b/.test(oe)))&&!g.test(xe=ee.call(M,oe.replace(g,"")+";"))&&xe.name&&(xe="ing as "+xe.name+((xe=xe.version)?" "+xe:""),g.test(de)?(/\bIE\b/.test(xe)&&He=="Mac OS"&&(He=null),xe="identify"+xe):(xe="mask"+xe,ze?de=H(ze.replace(/([a-z])([A-Z])/g,"$1 $2")):de="Opera",/\bIE\b/.test(xe)&&(He=null),me||(Ce=null)),ie=["Presto"],W.push(xe));(xe=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(oe)||0)[1])&&(xe=[parseFloat(xe.replace(/\.(\d)$/,".0$1")),xe],de=="Safari"&&xe[1].slice(-1)=="+"?(de="WebKit Nightly",Z="alpha",Ce=xe[1].slice(0,-1)):(Ce==xe[1]||Ce==(xe[2]=(/\bSafari\/([\d.]+\+?)/i.exec(oe)||0)[1]))&&(Ce=null),xe[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(oe)||0)[1],xe[0]==537.36&&xe[2]==537.36&&parseFloat(xe[1])>=28&&ie=="WebKit"&&(ie=["Blink"]),!me||!ne&&!xe[1]?(ie&&(ie[1]="like Safari"),xe=(xe=xe[0],xe<400?1:xe<500?2:xe<526?3:xe<533?4:xe<534?"4+":xe<535?5:xe<537?6:xe<538?7:xe<601?8:xe<602?9:xe<604?10:xe<606?11:xe<608?12:"12")):(ie&&(ie[1]="like Chrome"),xe=xe[1]||(xe=xe[0],xe<530?1:xe<532?2:xe<532.05?3:xe<533?4:xe<534.03?5:xe<534.07?6:xe<534.1?7:xe<534.13?8:xe<534.16?9:xe<534.24?10:xe<534.3?11:xe<535.01?12:xe<535.02?"13+":xe<535.07?15:xe<535.11?16:xe<535.19?17:xe<536.05?18:xe<536.1?19:xe<537.01?20:xe<537.11?"21+":xe<537.13?23:xe<537.18?24:xe<537.24?25:xe<537.36?26:ie!="Blink"?"27":"28")),ie&&(ie[1]+=" "+(xe+=typeof xe=="number"?".x":/[.+]/.test(xe)?"":"+")),de=="Safari"&&(!Ce||parseInt(Ce)>45)?Ce=xe:de=="Chrome"&&/\bHeadlessChrome/i.test(oe)&&W.unshift("headless")),de=="Opera"&&(xe=/\bzbov|zvav$/.exec(He))?(de+=" ",W.unshift("desktop mode"),xe=="zvav"?(de+="Mini",Ce=null):de+="Mobile",He=He.replace(RegExp(" *"+xe+"$"),"")):de=="Safari"&&/\bChrome\b/.exec(ie&&ie[1])?(W.unshift("desktop mode"),de="Chrome Mobile",Ce=null,/\bOS X\b/.test(He)?(Be="Apple",He="iOS 4.3+"):He=null):/\bSRWare Iron\b/.test(de)&&!Ce&&(Ce=rt("Chrome")),Ce&&Ce.indexOf(xe=/[\d.]+$/.exec(He))==0&&oe.indexOf("/"+xe+"-")>-1&&(He=Q(He.replace(xe,""))),He&&He.indexOf(de)!=-1&&!RegExp(de+" OS").test(He)&&(He=He.replace(RegExp(" *"+U(de)+" *"),"")),ie&&!/\b(?:Avant|Nook)\b/.test(de)&&(/Browser|Lunascape|Maxthon/.test(de)||de!="Safari"&&/^iOS/.test(He)&&/\bSafari\b/.test(ie[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(de)&&ie[1])&&(xe=ie[ie.length-1])&&W.push(xe),W.length&&(W=["("+W.join("; ")+")"]),Be&&Ae&&Ae.indexOf(Be)<0&&W.push("on "+Be),Ae&&W.push((/^on /.test(W[W.length-1])?"":"on ")+Ae),He&&(xe=/ ([\d.+]+)$/.exec(He),re=xe&&He.charAt(He.length-xe[0].length-1)=="/",He={architecture:32,family:xe&&!re?He.replace(xe[0],""):He,version:xe?xe[1]:null,toString:function(){var bt=this.version;return this.family+(bt&&!re?" "+bt:"")+(this.architecture==64?" 64-bit":"")}}),(xe=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(fe))&&!/\bi686\b/i.test(fe)?(He&&(He.architecture=64,He.family=He.family.replace(RegExp(" *"+xe),"")),de&&(/\bWOW64\b/i.test(oe)||me&&/\w(?:86|32)$/.test(be.cpuClass||be.platform)&&!/\bWin64; x64\b/i.test(oe))&&W.unshift("32-bit")):He&&/^OS X/.test(He.family)&&de=="Chrome"&&parseFloat(Ce)>=39&&(He.architecture=64),oe||(oe=null);var At={};return At.description=oe,At.layout=ie&&ie[0],At.manufacturer=Be,At.name=de,At.prerelease=Z,At.product=Ae,At.ua=oe,At.version=de&&Ce,At.os=He||{architecture:null,family:null,version:null,toString:function(){return"null"}},At.parse=ee,At.toString=ut,At.version&&W.unshift(Ce),At.name&&W.unshift(de),He&&de&&!(He==String(He).split(" ")[0]&&(He==de.split(" ")[0]||Ae))&&W.push(Ae?"("+He+")":"on "+He),W.length&&(At.description=W.join(" ")),At}var ae=ee();typeof S=="function"&&typeof S.amd=="object"&&S.amd?(y.platform=ae,S(function(){return ae})):b&&v?M(ae,function(oe,he){b[he]=oe}):y.platform=ae}).call(this)}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(s,w,_){(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?w.exports={nextTick:p}:w.exports=u;function p(y,m,b,v){if(typeof y!="function")throw new TypeError('"callback" argument must be a function');var c=arguments.length,h,g;switch(c){case 0:case 1:return u.nextTick(y);case 2:return u.nextTick(function(){y.call(null,m)});case 3:return u.nextTick(function(){y.call(null,m,b)});case 4:return u.nextTick(function(){y.call(null,m,b,v)});default:for(h=new Array(c-1),g=0;g<h.length;)h[g++]=arguments[g];return u.nextTick(function(){y.apply(null,h)})}}}).call(this)}).call(this,s("_process"))},{_process:467}],381:[function(s,w,_){var u=w.exports={},p,y;function m(){throw new Error("setTimeout has not been defined")}function b(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?p=setTimeout:p=m}catch(L){p=m}try{typeof clearTimeout=="function"?y=clearTimeout:y=b}catch(L){y=b}})();function v(L){if(p===setTimeout)return setTimeout(L,0);if((p===m||!p)&&setTimeout)return p=setTimeout,setTimeout(L,0);try{return p(L,0)}catch(H){try{return p.call(null,L,0)}catch(M){return p.call(this,L,0)}}}function c(L){if(y===clearTimeout)return clearTimeout(L);if((y===b||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(L);try{return y(L)}catch(H){try{return y.call(null,L)}catch(M){return y.call(this,L)}}}var h=[],g=!1,x,T=-1;function I(){!g||!x||(g=!1,x.length?h=x.concat(h):T=-1,h.length&&R())}function R(){if(!g){var L=v(I);g=!0;for(var H=h.length;H;){for(x=h,h=[];++T<H;)x&&x[T].run();T=-1,H=h.length}x=null,g=!1,c(L)}}u.nextTick=function(L){var H=new Array(arguments.length-1);if(arguments.length>1)for(var M=1;M<arguments.length;M++)H[M-1]=arguments[M];h.push(new N(L,H)),h.length===1&&!g&&v(R)};function N(L,H){this.fun=L,this.array=H}N.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function k(){}u.on=k,u.addListener=k,u.once=k,u.off=k,u.removeListener=k,u.removeAllListeners=k,u.emit=k,u.prependListener=k,u.prependOnceListener=k,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,w,_){(function(u){(function(){(function(p){var y=typeof _=="object"&&_&&!_.nodeType&&_,m=typeof w=="object"&&w&&!w.nodeType&&w,b=typeof u=="object"&&u;(b.global===b||b.window===b||b.self===b)&&(p=b);var v,c=2147483647,h=36,g=1,x=26,T=38,I=700,R=72,N=128,k="-",L=/^xn--/,H=/[^\x20-\x7E]/,M=/[\x2E\u3002\uFF0E\uFF61]/g,F={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=h-g,U=Math.floor,G=String.fromCharCode,Q;function ee(ke){throw new RangeError(F[ke])}function ae(ke,Ne){for(var De=ke.length,Me=[];De--;)Me[De]=Ne(ke[De]);return Me}function oe(ke,Ne){var De=ke.split("@"),Me="";De.length>1&&(Me=De[0]+"@",ke=De[1]),ke=ke.replace(M,".");var We=ke.split("."),je=ae(We,Ne).join(".");return Me+je}function he(ke){for(var Ne=[],De=0,Me=ke.length,We,je;De<Me;)We=ke.charCodeAt(De++),We>=55296&&We<=56319&&De<Me?(je=ke.charCodeAt(De++),(je&64512)==56320?Ne.push(((We&1023)<<10)+(je&1023)+65536):(Ne.push(We),De--)):Ne.push(We);return Ne}function le(ke){return ae(ke,function(Ne){var De="";return Ne>65535&&(Ne-=65536,De+=G(Ne>>>10&1023|55296),Ne=56320|Ne&1023),De+=G(Ne),De}).join("")}function be(ke){return ke-48<10?ke-22:ke-65<26?ke-65:ke-97<26?ke-97:h}function pe(ke,Ne){return ke+22+75*(ke<26)-((Ne!=0)<<5)}function _e(ke,Ne,De){var Me=0;for(ke=De?U(ke/I):ke>>1,ke+=U(ke/Ne);ke>P*x>>1;Me+=h)ke=U(ke/P);return U(Me+(P+1)*ke/(ke+T))}function ne(ke){var Ne=[],De=ke.length,Me,We=0,je=N,et=R,it,ze,xe,fe,W,Z,me,Ce,re;for(it=ke.lastIndexOf(k),it<0&&(it=0),ze=0;ze<it;++ze)ke.charCodeAt(ze)>=128&&ee("not-basic"),Ne.push(ke.charCodeAt(ze));for(xe=it>0?it+1:0;xe<De;){for(fe=We,W=1,Z=h;xe>=De&&ee("invalid-input"),me=be(ke.charCodeAt(xe++)),(me>=h||me>U((c-We)/W))&&ee("overflow"),We+=me*W,Ce=Z<=et?g:Z>=et+x?x:Z-et,!(me<Ce);Z+=h)re=h-Ce,W>U(c/re)&&ee("overflow"),W*=re;Me=Ne.length+1,et=_e(We-fe,Me,fe==0),U(We/Me)>c-je&&ee("overflow"),je+=U(We/Me),We%=Me,Ne.splice(We++,0,je)}return le(Ne)}function ue(ke){var Ne,De,Me,We,je,et,it,ze,xe,fe,W,Z=[],me,Ce,re,ie;for(ke=he(ke),me=ke.length,Ne=N,De=0,je=R,et=0;et<me;++et)W=ke[et],W<128&&Z.push(G(W));for(Me=We=Z.length,We&&Z.push(k);Me<me;){for(it=c,et=0;et<me;++et)W=ke[et],W>=Ne&&W<it&&(it=W);for(Ce=Me+1,it-Ne>U((c-De)/Ce)&&ee("overflow"),De+=(it-Ne)*Ce,Ne=it,et=0;et<me;++et)if(W=ke[et],W<Ne&&++De>c&&ee("overflow"),W==Ne){for(ze=De,xe=h;fe=xe<=je?g:xe>=je+x?x:xe-je,!(ze<fe);xe+=h)ie=ze-fe,re=h-fe,Z.push(G(pe(fe+ie%re,0))),ze=U(ie/re);Z.push(G(pe(ze,0))),je=_e(De,Ce,Me==We),De=0,++Me}++De,++Ne}return Z.join("")}function ce(ke){return oe(ke,function(Ne){return L.test(Ne)?ne(Ne.slice(4).toLowerCase()):Ne})}function Re(ke){return oe(ke,function(Ne){return H.test(Ne)?"xn--"+ue(Ne):Ne})}if(v={version:"1.4.1",ucs2:{decode:he,encode:le},decode:ne,encode:ue,toASCII:Re,toUnicode:ce},typeof S=="function"&&typeof S.amd=="object"&&S.amd)S("punycode",function(){return v});else if(y&&m)if(w.exports==y)m.exports=v;else for(Q in v)v.hasOwnProperty(Q)&&(y[Q]=v[Q]);else p.punycode=v})(this)}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(s,w,_){"use strict";function u(y,m){return Object.prototype.hasOwnProperty.call(y,m)}w.exports=function(y,m,b,v){m=m||"&",b=b||"=";var c={};if(typeof y!="string"||y.length===0)return c;var h=/\+/g;y=y.split(m);var g=1e3;v&&typeof v.maxKeys=="number"&&(g=v.maxKeys);var x=y.length;g>0&&x>g&&(x=g);for(var T=0;T<x;++T){var I=y[T].replace(h,"%20"),R=I.indexOf(b),N,k,L,H;R>=0?(N=I.substr(0,R),k=I.substr(R+1)):(N=I,k=""),L=decodeURIComponent(N),H=decodeURIComponent(k),u(c,L)?p(c[L])?c[L].push(H):c[L]=[c[L],H]:c[L]=H}return c};var p=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],384:[function(s,w,_){"use strict";var u=function(b){switch(typeof b){case"string":return b;case"boolean":return b?"true":"false";case"number":return isFinite(b)?b:"";default:return""}};w.exports=function(b,v,c,h){return v=v||"&",c=c||"=",b===null&&(b=void 0),typeof b=="object"?y(m(b),function(g){var x=encodeURIComponent(u(g))+c;return p(b[g])?y(b[g],function(T){return x+encodeURIComponent(u(T))}).join(v):x+encodeURIComponent(u(b[g]))}).join(v):h?encodeURIComponent(u(h))+c+encodeURIComponent(u(b)):""};var p=Array.isArray||function(b){return Object.prototype.toString.call(b)==="[object Array]"};function y(b,v){if(b.map)return b.map(v);for(var c=[],h=0;h<b.length;h++)c.push(v(b[h],h));return c}var m=Object.keys||function(b){var v=[];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&v.push(c);return v}},{}],385:[function(s,w,_){"use strict";_.decode=_.parse=s("./decode"),_.encode=_.stringify=s("./encode")},{"./decode":383,"./encode":384}],386:[function(s,w,_){"use strict";var u=s("process-nextick-args"),p=Object.keys||function(I){var R=[];for(var N in I)R.push(N);return R};w.exports=g;var y=Object.create(s("core-util-is"));y.inherits=s("inherits");var m=s("./_stream_readable"),b=s("./_stream_writable");y.inherits(g,m);for(var v=p(b.prototype),c=0;c<v.length;c++){var h=v[c];g.prototype[h]||(g.prototype[h]=b.prototype[h])}function g(I){if(!(this instanceof g))return new g(I);m.call(this,I),b.call(this,I),I&&I.readable===!1&&(this.readable=!1),I&&I.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,I&&I.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",x)}Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(){this.allowHalfOpen||this._writableState.ended||u.nextTick(T,this)}function T(I){I.end()}Object.defineProperty(g.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(I){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=I,this._writableState.destroyed=I)}}),g.prototype._destroy=function(I,R){this.push(null),this.end(),u.nextTick(R,I)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(s,w,_){"use strict";w.exports=y;var u=s("./_stream_transform"),p=Object.create(s("core-util-is"));p.inherits=s("inherits"),p.inherits(y,u);function y(m){if(!(this instanceof y))return new y(m);u.call(this,m)}y.prototype._transform=function(m,b,v){v(null,m)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(s,w,_){(function(u,p){(function(){"use strict";var y=s("process-nextick-args");w.exports=G;var m=s("isarray"),b;G.ReadableState=U;var v=s("events").EventEmitter,c=function(W,Z){return W.listeners(Z).length},h=s("./internal/streams/stream"),g=s("safe-buffer").Buffer,x=p.Uint8Array||function(){};function T(W){return g.from(W)}function I(W){return g.isBuffer(W)||W instanceof x}var R=Object.create(s("core-util-is"));R.inherits=s("inherits");var N=s("util"),k=void 0;N&&N.debuglog?k=N.debuglog("stream"):k=function(){};var L=s("./internal/streams/BufferList"),H=s("./internal/streams/destroy"),M;R.inherits(G,h);var F=["error","close","destroy","pause","resume"];function P(W,Z,me){if(typeof W.prependListener=="function")return W.prependListener(Z,me);!W._events||!W._events[Z]?W.on(Z,me):m(W._events[Z])?W._events[Z].unshift(me):W._events[Z]=[me,W._events[Z]]}function U(W,Z){b=b||s("./_stream_duplex"),W=W||{};var me=Z instanceof b;this.objectMode=!!W.objectMode,me&&(this.objectMode=this.objectMode||!!W.readableObjectMode);var Ce=W.highWaterMark,re=W.readableHighWaterMark,ie=this.objectMode?16:16*1024;Ce||Ce===0?this.highWaterMark=Ce:me&&(re||re===0)?this.highWaterMark=re: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=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(M||(M=s("string_decoder/").StringDecoder),this.decoder=new M(W.encoding),this.encoding=W.encoding)}function G(W){if(b=b||s("./_stream_duplex"),!(this instanceof G))return new G(W);this._readableState=new U(W,this),this.readable=!0,W&&(typeof W.read=="function"&&(this._read=W.read),typeof W.destroy=="function"&&(this._destroy=W.destroy)),h.call(this)}Object.defineProperty(G.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(W){this._readableState&&(this._readableState.destroyed=W)}}),G.prototype.destroy=H.destroy,G.prototype._undestroy=H.undestroy,G.prototype._destroy=function(W,Z){this.push(null),Z(W)},G.prototype.push=function(W,Z){var me=this._readableState,Ce;return me.objectMode?Ce=!0:typeof W=="string"&&(Z=Z||me.defaultEncoding,Z!==me.encoding&&(W=g.from(W,Z),Z=""),Ce=!0),Q(this,W,Z,!1,Ce)},G.prototype.unshift=function(W){return Q(this,W,null,!0,!1)};function Q(W,Z,me,Ce,re){var ie=W._readableState;if(Z===null)ie.reading=!1,pe(W,ie);else{var de;re||(de=ae(ie,Z)),de?W.emit("error",de):ie.objectMode||Z&&Z.length>0?(typeof Z!="string"&&!ie.objectMode&&Object.getPrototypeOf(Z)!==g.prototype&&(Z=T(Z)),Ce?ie.endEmitted?W.emit("error",new Error("stream.unshift() after end event")):ee(W,ie,Z,!0):ie.ended?W.emit("error",new Error("stream.push() after EOF")):(ie.reading=!1,ie.decoder&&!me?(Z=ie.decoder.write(Z),ie.objectMode||Z.length!==0?ee(W,ie,Z,!1):ue(W,ie)):ee(W,ie,Z,!1))):Ce||(ie.reading=!1)}return oe(ie)}function ee(W,Z,me,Ce){Z.flowing&&Z.length===0&&!Z.sync?(W.emit("data",me),W.read(0)):(Z.length+=Z.objectMode?1:me.length,Ce?Z.buffer.unshift(me):Z.buffer.push(me),Z.needReadable&&_e(W)),ue(W,Z)}function ae(W,Z){var me;return!I(Z)&&typeof Z!="string"&&Z!==void 0&&!W.objectMode&&(me=new TypeError("Invalid non-string/buffer chunk")),me}function oe(W){return!W.ended&&(W.needReadable||W.length<W.highWaterMark||W.length===0)}G.prototype.isPaused=function(){return this._readableState.flowing===!1},G.prototype.setEncoding=function(W){return M||(M=s("string_decoder/").StringDecoder),this._readableState.decoder=new M(W),this._readableState.encoding=W,this};var he=8388608;function le(W){return W>=he?W=he:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}function be(W,Z){return W<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:W!==W?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(W>Z.highWaterMark&&(Z.highWaterMark=le(W)),W<=Z.length?W:Z.ended?Z.length:(Z.needReadable=!0,0))}G.prototype.read=function(W){k("read",W),W=parseInt(W,10);var Z=this._readableState,me=W;if(W!==0&&(Z.emittedReadable=!1),W===0&&Z.needReadable&&(Z.length>=Z.highWaterMark||Z.ended))return k("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?ze(this):_e(this),null;if(W=be(W,Z),W===0&&Z.ended)return Z.length===0&&ze(this),null;var Ce=Z.needReadable;k("need readable",Ce),(Z.length===0||Z.length-W<Z.highWaterMark)&&(Ce=!0,k("length less than watermark",Ce)),Z.ended||Z.reading?(Ce=!1,k("reading or ended",Ce)):Ce&&(k("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(W=be(me,Z)));var re;return W>0?re=We(W,Z):re=null,re===null?(Z.needReadable=!0,W=0):Z.length-=W,Z.length===0&&(Z.ended||(Z.needReadable=!0),me!==W&&Z.ended&&ze(this)),re!==null&&this.emit("data",re),re};function pe(W,Z){if(!Z.ended){if(Z.decoder){var me=Z.decoder.end();me&&me.length&&(Z.buffer.push(me),Z.length+=Z.objectMode?1:me.length)}Z.ended=!0,_e(W)}}function _e(W){var Z=W._readableState;Z.needReadable=!1,Z.emittedReadable||(k("emitReadable",Z.flowing),Z.emittedReadable=!0,Z.sync?y.nextTick(ne,W):ne(W))}function ne(W){k("emit readable"),W.emit("readable"),Me(W)}function ue(W,Z){Z.readingMore||(Z.readingMore=!0,y.nextTick(ce,W,Z))}function ce(W,Z){for(var me=Z.length;!Z.reading&&!Z.flowing&&!Z.ended&&Z.length<Z.highWaterMark&&(k("maybeReadMore read 0"),W.read(0),me!==Z.length);)me=Z.length;Z.readingMore=!1}G.prototype._read=function(W){this.emit("error",new Error("_read() is not implemented"))},G.prototype.pipe=function(W,Z){var me=this,Ce=this._readableState;switch(Ce.pipesCount){case 0:Ce.pipes=W;break;case 1:Ce.pipes=[Ce.pipes,W];break;default:Ce.pipes.push(W);break}Ce.pipesCount+=1,k("pipe count=%d opts=%j",Ce.pipesCount,Z);var re=(!Z||Z.end!==!1)&&W!==u.stdout&&W!==u.stderr,ie=re?Ae:ut;Ce.endEmitted?y.nextTick(ie):me.once("end",ie),W.on("unpipe",de);function de(At,bt){k("onunpipe"),At===me&&bt&&bt.hasUnpiped===!1&&(bt.hasUnpiped=!0,st())}function Ae(){k("onend"),W.end()}var Be=Re(me);W.on("drain",Be);var He=!1;function st(){k("cleanup"),W.removeListener("close",gt),W.removeListener("finish",rt),W.removeListener("drain",Be),W.removeListener("error",It),W.removeListener("unpipe",de),me.removeListener("end",Ae),me.removeListener("end",ut),me.removeListener("data",pt),He=!0,Ce.awaitDrain&&(!W._writableState||W._writableState.needDrain)&&Be()}var Qe=!1;me.on("data",pt);function pt(At){k("ondata"),Qe=!1;var bt=W.write(At);bt===!1&&!Qe&&((Ce.pipesCount===1&&Ce.pipes===W||Ce.pipesCount>1&&fe(Ce.pipes,W)!==-1)&&!He&&(k("false write response, pause",me._readableState.awaitDrain),me._readableState.awaitDrain++,Qe=!0),me.pause())}function It(At){k("onerror",At),ut(),W.removeListener("error",It),c(W,"error")===0&&W.emit("error",At)}P(W,"error",It);function gt(){W.removeListener("finish",rt),ut()}W.once("close",gt);function rt(){k("onfinish"),W.removeListener("close",gt),ut()}W.once("finish",rt);function ut(){k("unpipe"),me.unpipe(W)}return W.emit("pipe",me),Ce.flowing||(k("pipe resume"),me.resume()),W};function Re(W){return function(){var Z=W._readableState;k("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&c(W,"data")&&(Z.flowing=!0,Me(W))}}G.prototype.unpipe=function(W){var Z=this._readableState,me={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return W&&W!==Z.pipes?this:(W||(W=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,W&&W.emit("unpipe",this,me),this);if(!W){var Ce=Z.pipes,re=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var ie=0;ie<re;ie++)Ce[ie].emit("unpipe",this,me);return this}var de=fe(Z.pipes,W);return de===-1?this:(Z.pipes.splice(de,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),W.emit("unpipe",this,me),this)},G.prototype.on=function(W,Z){var me=h.prototype.on.call(this,W,Z);if(W==="data")this._readableState.flowing!==!1&&this.resume();else if(W==="readable"){var Ce=this._readableState;!Ce.endEmitted&&!Ce.readableListening&&(Ce.readableListening=Ce.needReadable=!0,Ce.emittedReadable=!1,Ce.reading?Ce.length&&_e(this):y.nextTick(ke,this))}return me},G.prototype.addListener=G.prototype.on;function ke(W){k("readable nexttick read 0"),W.read(0)}G.prototype.resume=function(){var W=this._readableState;return W.flowing||(k("resume"),W.flowing=!0,Ne(this,W)),this};function Ne(W,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,y.nextTick(De,W,Z))}function De(W,Z){Z.reading||(k("resume read 0"),W.read(0)),Z.resumeScheduled=!1,Z.awaitDrain=0,W.emit("resume"),Me(W),Z.flowing&&!Z.reading&&W.read(0)}G.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Me(W){var Z=W._readableState;for(k("flow",Z.flowing);Z.flowing&&W.read()!==null;);}G.prototype.wrap=function(W){var Z=this,me=this._readableState,Ce=!1;W.on("end",function(){if(k("wrapped end"),me.decoder&&!me.ended){var de=me.decoder.end();de&&de.length&&Z.push(de)}Z.push(null)}),W.on("data",function(de){if(k("wrapped data"),me.decoder&&(de=me.decoder.write(de)),!(me.objectMode&&de==null)&&!(!me.objectMode&&(!de||!de.length))){var Ae=Z.push(de);Ae||(Ce=!0,W.pause())}});for(var re in W)this[re]===void 0&&typeof W[re]=="function"&&(this[re]=function(de){return function(){return W[de].apply(W,arguments)}}(re));for(var ie=0;ie<F.length;ie++)W.on(F[ie],this.emit.bind(this,F[ie]));return this._read=function(de){k("wrapped _read",de),Ce&&(Ce=!1,W.resume())},this},Object.defineProperty(G.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),G._fromList=We;function We(W,Z){if(Z.length===0)return null;var me;return Z.objectMode?me=Z.buffer.shift():!W||W>=Z.length?(Z.decoder?me=Z.buffer.join(""):Z.buffer.length===1?me=Z.buffer.head.data:me=Z.buffer.concat(Z.length),Z.buffer.clear()):me=je(W,Z.buffer,Z.decoder),me}function je(W,Z,me){var Ce;return W<Z.head.data.length?(Ce=Z.head.data.slice(0,W),Z.head.data=Z.head.data.slice(W)):W===Z.head.data.length?Ce=Z.shift():Ce=me?et(W,Z):it(W,Z),Ce}function et(W,Z){var me=Z.head,Ce=1,re=me.data;for(W-=re.length;me=me.next;){var ie=me.data,de=W>ie.length?ie.length:W;if(de===ie.length?re+=ie:re+=ie.slice(0,W),W-=de,W===0){de===ie.length?(++Ce,me.next?Z.head=me.next:Z.head=Z.tail=null):(Z.head=me,me.data=ie.slice(de));break}++Ce}return Z.length-=Ce,re}function it(W,Z){var me=g.allocUnsafe(W),Ce=Z.head,re=1;for(Ce.data.copy(me),W-=Ce.data.length;Ce=Ce.next;){var ie=Ce.data,de=W>ie.length?ie.length:W;if(ie.copy(me,me.length-W,0,de),W-=de,W===0){de===ie.length?(++re,Ce.next?Z.head=Ce.next:Z.head=Z.tail=null):(Z.head=Ce,Ce.data=ie.slice(de));break}++re}return Z.length-=re,me}function ze(W){var Z=W._readableState;if(Z.length>0)throw new Error('"endReadable()" called on non-empty stream');Z.endEmitted||(Z.ended=!0,y.nextTick(xe,Z,W))}function xe(W,Z){!W.endEmitted&&W.length===0&&(W.endEmitted=!0,Z.readable=!1,Z.emit("end"))}function fe(W,Z){for(var me=0,Ce=W.length;me<Ce;me++)if(W[me]===Z)return me;return-1}}).call(this)}).call(this,s("_process"),typeof J!="undefined"?J: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,w,_){"use strict";w.exports=m;var u=s("./_stream_duplex"),p=Object.create(s("core-util-is"));p.inherits=s("inherits"),p.inherits(m,u);function y(c,h){var g=this._transformState;g.transforming=!1;var x=g.writecb;if(!x)return this.emit("error",new Error("write callback called multiple times"));g.writechunk=null,g.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 m(c){if(!(this instanceof m))return new m(c);u.call(this,c),this._transformState={afterTransform:y.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",b)}function b(){var c=this;typeof this._flush=="function"?this._flush(function(h,g){v(c,h,g)}):v(this,null,null)}m.prototype.push=function(c,h){return this._transformState.needTransform=!1,u.prototype.push.call(this,c,h)},m.prototype._transform=function(c,h,g){throw new Error("_transform() is not implemented")},m.prototype._write=function(c,h,g){var x=this._transformState;if(x.writecb=g,x.writechunk=c,x.writeencoding=h,!x.transforming){var T=this._readableState;(x.needTransform||T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}},m.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},m.prototype._destroy=function(c,h){var g=this;u.prototype._destroy.call(this,c,function(x){h(x),g.emit("close")})};function v(c,h,g){if(h)return c.emit("error",h);if(g!=null&&c.push(g),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,w,_){(function(u,p,y){(function(){"use strict";var m=s("process-nextick-args");w.exports=P;function b(De,Me,We){this.chunk=De,this.encoding=Me,this.callback=We,this.next=null}function v(De){var Me=this;this.next=null,this.entry=null,this.finish=function(){Ne(Me,De)}}var c=!u.browser&&["v0.10","v0.9."].indexOf(u.version.slice(0,5))>-1?y:m.nextTick,h;P.WritableState=M;var g=Object.create(s("core-util-is"));g.inherits=s("inherits");var x={deprecate:s("util-deprecate")},T=s("./internal/streams/stream"),I=s("safe-buffer").Buffer,R=p.Uint8Array||function(){};function N(De){return I.from(De)}function k(De){return I.isBuffer(De)||De instanceof R}var L=s("./internal/streams/destroy");g.inherits(P,T);function H(){}function M(De,Me){h=h||s("./_stream_duplex"),De=De||{};var We=Me instanceof h;this.objectMode=!!De.objectMode,We&&(this.objectMode=this.objectMode||!!De.writableObjectMode);var je=De.highWaterMark,et=De.writableHighWaterMark,it=this.objectMode?16:16*1024;je||je===0?this.highWaterMark=je:We&&(et||et===0)?this.highWaterMark=et:this.highWaterMark=it,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 ze=De.decodeStrings===!1;this.decodeStrings=!ze,this.defaultEncoding=De.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(xe){le(Me,xe)},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)}M.prototype.getBuffer=function(){for(var Me=this.bufferedRequest,We=[];Me;)We.push(Me),Me=Me.next;return We},function(){try{Object.defineProperty(M.prototype,"buffer",{get:x.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(De){}}();var F;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(F=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(De){return F.call(this,De)?!0:this!==P?!1:De&&De._writableState instanceof M}})):F=function(De){return De instanceof this};function P(De){if(h=h||s("./_stream_duplex"),!F.call(P,this)&&!(this instanceof h))return new P(De);this._writableState=new M(De,this),this.writable=!0,De&&(typeof De.write=="function"&&(this._write=De.write),typeof De.writev=="function"&&(this._writev=De.writev),typeof De.destroy=="function"&&(this._destroy=De.destroy),typeof De.final=="function"&&(this._final=De.final)),T.call(this)}P.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function U(De,Me){var We=new Error("write after end");De.emit("error",We),m.nextTick(Me,We)}function G(De,Me,We,je){var et=!0,it=!1;return We===null?it=new TypeError("May not write null values to stream"):typeof We!="string"&&We!==void 0&&!Me.objectMode&&(it=new TypeError("Invalid non-string/buffer chunk")),it&&(De.emit("error",it),m.nextTick(je,it),et=!1),et}P.prototype.write=function(De,Me,We){var je=this._writableState,et=!1,it=!je.objectMode&&k(De);return it&&!I.isBuffer(De)&&(De=N(De)),typeof Me=="function"&&(We=Me,Me=null),it?Me="buffer":Me||(Me=je.defaultEncoding),typeof We!="function"&&(We=H),je.ended?U(this,We):(it||G(this,je,De,We))&&(je.pendingcb++,et=ee(this,je,it,De,Me,We)),et},P.prototype.cork=function(){var De=this._writableState;De.corked++},P.prototype.uncork=function(){var De=this._writableState;De.corked&&(De.corked--,!De.writing&&!De.corked&&!De.finished&&!De.bufferProcessing&&De.bufferedRequest&&_e(this,De))},P.prototype.setDefaultEncoding=function(Me){if(typeof Me=="string"&&(Me=Me.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Me+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Me);return this._writableState.defaultEncoding=Me,this};function Q(De,Me,We){return!De.objectMode&&De.decodeStrings!==!1&&typeof Me=="string"&&(Me=I.from(Me,We)),Me}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(De,Me,We,je,et,it){if(!We){var ze=Q(Me,je,et);je!==ze&&(We=!0,et="buffer",je=ze)}var xe=Me.objectMode?1:je.length;Me.length+=xe;var fe=Me.length<Me.highWaterMark;if(fe||(Me.needDrain=!0),Me.writing||Me.corked){var W=Me.lastBufferedRequest;Me.lastBufferedRequest={chunk:je,encoding:et,isBuf:We,callback:it,next:null},W?W.next=Me.lastBufferedRequest:Me.bufferedRequest=Me.lastBufferedRequest,Me.bufferedRequestCount+=1}else ae(De,Me,!1,xe,je,et,it);return fe}function ae(De,Me,We,je,et,it,ze){Me.writelen=je,Me.writecb=ze,Me.writing=!0,Me.sync=!0,We?De._writev(et,Me.onwrite):De._write(et,it,Me.onwrite),Me.sync=!1}function oe(De,Me,We,je,et){--Me.pendingcb,We?(m.nextTick(et,je),m.nextTick(Re,De,Me),De._writableState.errorEmitted=!0,De.emit("error",je)):(et(je),De._writableState.errorEmitted=!0,De.emit("error",je),Re(De,Me))}function he(De){De.writing=!1,De.writecb=null,De.length-=De.writelen,De.writelen=0}function le(De,Me){var We=De._writableState,je=We.sync,et=We.writecb;if(he(We),Me)oe(De,We,je,Me,et);else{var it=ne(We);!it&&!We.corked&&!We.bufferProcessing&&We.bufferedRequest&&_e(De,We),je?c(be,De,We,it,et):be(De,We,it,et)}}function be(De,Me,We,je){We||pe(De,Me),Me.pendingcb--,je(),Re(De,Me)}function pe(De,Me){Me.length===0&&Me.needDrain&&(Me.needDrain=!1,De.emit("drain"))}function _e(De,Me){Me.bufferProcessing=!0;var We=Me.bufferedRequest;if(De._writev&&We&&We.next){var je=Me.bufferedRequestCount,et=new Array(je),it=Me.corkedRequestsFree;it.entry=We;for(var ze=0,xe=!0;We;)et[ze]=We,We.isBuf||(xe=!1),We=We.next,ze+=1;et.allBuffers=xe,ae(De,Me,!0,Me.length,et,"",it.finish),Me.pendingcb++,Me.lastBufferedRequest=null,it.next?(Me.corkedRequestsFree=it.next,it.next=null):Me.corkedRequestsFree=new v(Me),Me.bufferedRequestCount=0}else{for(;We;){var fe=We.chunk,W=We.encoding,Z=We.callback,me=Me.objectMode?1:fe.length;if(ae(De,Me,!1,me,fe,W,Z),We=We.next,Me.bufferedRequestCount--,Me.writing)break}We===null&&(Me.lastBufferedRequest=null)}Me.bufferedRequest=We,Me.bufferProcessing=!1}P.prototype._write=function(De,Me,We){We(new Error("_write() is not implemented"))},P.prototype._writev=null,P.prototype.end=function(De,Me,We){var je=this._writableState;typeof De=="function"?(We=De,De=null,Me=null):typeof Me=="function"&&(We=Me,Me=null),De!=null&&this.write(De,Me),je.corked&&(je.corked=1,this.uncork()),!je.ending&&!je.finished&&ke(this,je,We)};function ne(De){return De.ending&&De.length===0&&De.bufferedRequest===null&&!De.finished&&!De.writing}function ue(De,Me){De._final(function(We){Me.pendingcb--,We&&De.emit("error",We),Me.prefinished=!0,De.emit("prefinish"),Re(De,Me)})}function ce(De,Me){!Me.prefinished&&!Me.finalCalled&&(typeof De._final=="function"?(Me.pendingcb++,Me.finalCalled=!0,m.nextTick(ue,De,Me)):(Me.prefinished=!0,De.emit("prefinish")))}function Re(De,Me){var We=ne(Me);return We&&(ce(De,Me),Me.pendingcb===0&&(Me.finished=!0,De.emit("finish"))),We}function ke(De,Me,We){Me.ending=!0,Re(De,Me),We&&(Me.finished?m.nextTick(We):De.once("finish",We)),Me.ended=!0,De.writable=!1}function Ne(De,Me,We){var je=De.entry;for(De.entry=null;je;){var et=je.callback;Me.pendingcb--,et(We),je=je.next}Me.corkedRequestsFree?Me.corkedRequestsFree.next=De:Me.corkedRequestsFree=De}Object.defineProperty(P.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(De){this._writableState&&(this._writableState.destroyed=De)}}),P.prototype.destroy=L.destroy,P.prototype._undestroy=L.undestroy,P.prototype._destroy=function(De,Me){this.end(),Me(De)}}).call(this)}).call(this,s("_process"),typeof J!="undefined"?J: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,w,_){"use strict";function u(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}var p=s("safe-buffer").Buffer,y=s("util");function m(b,v,c){b.copy(v,c)}w.exports=function(){function b(){u(this,b),this.head=null,this.tail=null,this.length=0}return b.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},b.prototype.unshift=function(c){var h={data:c,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length},b.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}},b.prototype.clear=function(){this.head=this.tail=null,this.length=0},b.prototype.join=function(c){if(this.length===0)return"";for(var h=this.head,g=""+h.data;h=h.next;)g+=c+h.data;return g},b.prototype.concat=function(c){if(this.length===0)return p.alloc(0);if(this.length===1)return this.head.data;for(var h=p.allocUnsafe(c>>>0),g=this.head,x=0;g;)m(g.data,h,x),x+=g.data.length,g=g.next;return h},b}(),y&&y.inspect&&y.inspect.custom&&(w.exports.prototype[y.inspect.custom]=function(){var b=y.inspect({length:this.length});return this.constructor.name+" "+b})},{"safe-buffer":396,util:89}],392:[function(s,w,_){"use strict";var u=s("process-nextick-args");function p(b,v){var c=this,h=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return h||g?(v?v(b):b&&(!this._writableState||!this._writableState.errorEmitted)&&u.nextTick(m,this,b),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(b||null,function(x){!v&&x?(u.nextTick(m,c,x),c._writableState&&(c._writableState.errorEmitted=!0)):v&&v(x)}),this)}function y(){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 m(b,v){b.emit("error",v)}w.exports={destroy:p,undestroy:y}},{"process-nextick-args":380}],393:[function(s,w,_){w.exports=s("events").EventEmitter},{events:344}],394:[function(s,w,_){_=w.exports=s("./lib/_stream_readable.js"),_.Stream=_,_.Readable=_,_.Writable=s("./lib/_stream_writable.js"),_.Duplex=s("./lib/_stream_duplex.js"),_.Transform=s("./lib/_stream_transform.js"),_.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,w,_){var u=function(p){"use strict";var y=Object.prototype,m=y.hasOwnProperty,b,v=typeof Symbol=="function"?Symbol:{},c=v.iterator||"@@iterator",h=v.asyncIterator||"@@asyncIterator",g=v.toStringTag||"@@toStringTag";function x(ce,Re,ke){return Object.defineProperty(ce,Re,{value:ke,enumerable:!0,configurable:!0,writable:!0}),ce[Re]}try{x({},"")}catch(ce){x=function(Re,ke,Ne){return Re[ke]=Ne}}function T(ce,Re,ke,Ne){var De=Re&&Re.prototype instanceof M?Re:M,Me=Object.create(De.prototype),We=new _e(Ne||[]);return Me._invoke=he(ce,ke,We),Me}p.wrap=T;function I(ce,Re,ke){try{return{type:"normal",arg:ce.call(Re,ke)}}catch(Ne){return{type:"throw",arg:Ne}}}var R="suspendedStart",N="suspendedYield",k="executing",L="completed",H={};function M(){}function F(){}function P(){}var U={};x(U,c,function(){return this});var G=Object.getPrototypeOf,Q=G&&G(G(ne([])));Q&&Q!==y&&m.call(Q,c)&&(U=Q);var ee=P.prototype=M.prototype=Object.create(U);F.prototype=P,x(ee,"constructor",P),x(P,"constructor",F),F.displayName=x(P,g,"GeneratorFunction");function ae(ce){["next","throw","return"].forEach(function(Re){x(ce,Re,function(ke){return this._invoke(Re,ke)})})}p.isGeneratorFunction=function(ce){var Re=typeof ce=="function"&&ce.constructor;return Re?Re===F||(Re.displayName||Re.name)==="GeneratorFunction":!1},p.mark=function(ce){return Object.setPrototypeOf?Object.setPrototypeOf(ce,P):(ce.__proto__=P,x(ce,g,"GeneratorFunction")),ce.prototype=Object.create(ee),ce},p.awrap=function(ce){return{__await:ce}};function oe(ce,Re){function ke(Me,We,je,et){var it=I(ce[Me],ce,We);if(it.type==="throw")et(it.arg);else{var ze=it.arg,xe=ze.value;return xe&&typeof xe=="object"&&m.call(xe,"__await")?Re.resolve(xe.__await).then(function(fe){ke("next",fe,je,et)},function(fe){ke("throw",fe,je,et)}):Re.resolve(xe).then(function(fe){ze.value=fe,je(ze)},function(fe){return ke("throw",fe,je,et)})}}var Ne;function De(Me,We){function je(){return new Re(function(et,it){ke(Me,We,et,it)})}return Ne=Ne?Ne.then(je,je):je()}this._invoke=De}ae(oe.prototype),x(oe.prototype,h,function(){return this}),p.AsyncIterator=oe,p.async=function(ce,Re,ke,Ne,De){De===void 0&&(De=Promise);var Me=new oe(T(ce,Re,ke,Ne),De);return p.isGeneratorFunction(Re)?Me:Me.next().then(function(We){return We.done?We.value:Me.next()})};function he(ce,Re,ke){var Ne=R;return function(Me,We){if(Ne===k)throw new Error("Generator is already running");if(Ne===L){if(Me==="throw")throw We;return ue()}for(ke.method=Me,ke.arg=We;;){var je=ke.delegate;if(je){var et=le(je,ke);if(et){if(et===H)continue;return et}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(Ne===R)throw Ne=L,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);Ne=k;var it=I(ce,Re,ke);if(it.type==="normal"){if(Ne=ke.done?L:N,it.arg===H)continue;return{value:it.arg,done:ke.done}}else it.type==="throw"&&(Ne=L,ke.method="throw",ke.arg=it.arg)}}}function le(ce,Re){var ke=ce.iterator[Re.method];if(ke===b){if(Re.delegate=null,Re.method==="throw"){if(ce.iterator.return&&(Re.method="return",Re.arg=b,le(ce,Re),Re.method==="throw"))return H;Re.method="throw",Re.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}var Ne=I(ke,ce.iterator,Re.arg);if(Ne.type==="throw")return Re.method="throw",Re.arg=Ne.arg,Re.delegate=null,H;var De=Ne.arg;if(!De)return Re.method="throw",Re.arg=new TypeError("iterator result is not an object"),Re.delegate=null,H;if(De.done)Re[ce.resultName]=De.value,Re.next=ce.nextLoc,Re.method!=="return"&&(Re.method="next",Re.arg=b);else return De;return Re.delegate=null,H}ae(ee),x(ee,g,"Generator"),x(ee,c,function(){return this}),x(ee,"toString",function(){return"[object Generator]"});function be(ce){var Re={tryLoc:ce[0]};1 in ce&&(Re.catchLoc=ce[1]),2 in ce&&(Re.finallyLoc=ce[2],Re.afterLoc=ce[3]),this.tryEntries.push(Re)}function pe(ce){var Re=ce.completion||{};Re.type="normal",delete Re.arg,ce.completion=Re}function _e(ce){this.tryEntries=[{tryLoc:"root"}],ce.forEach(be,this),this.reset(!0)}p.keys=function(ce){var Re=[];for(var ke in ce)Re.push(ke);return Re.reverse(),function Ne(){for(;Re.length;){var De=Re.pop();if(De in ce)return Ne.value=De,Ne.done=!1,Ne}return Ne.done=!0,Ne}};function ne(ce){if(ce){var Re=ce[c];if(Re)return Re.call(ce);if(typeof ce.next=="function")return ce;if(!isNaN(ce.length)){var ke=-1,Ne=function De(){for(;++ke<ce.length;)if(m.call(ce,ke))return De.value=ce[ke],De.done=!1,De;return De.value=b,De.done=!0,De};return Ne.next=Ne}}return{next:ue}}p.values=ne;function ue(){return{value:b,done:!0}}return _e.prototype={constructor:_e,reset:function(ce){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(pe),!ce)for(var Re in this)Re.charAt(0)==="t"&&m.call(this,Re)&&!isNaN(+Re.slice(1))&&(this[Re]=b)},stop:function(){this.done=!0;var ce=this.tryEntries[0],Re=ce.completion;if(Re.type==="throw")throw Re.arg;return this.rval},dispatchException:function(ce){if(this.done)throw ce;var Re=this;function ke(et,it){return Me.type="throw",Me.arg=ce,Re.next=et,it&&(Re.method="next",Re.arg=b),!!it}for(var Ne=this.tryEntries.length-1;Ne>=0;--Ne){var De=this.tryEntries[Ne],Me=De.completion;if(De.tryLoc==="root")return ke("end");if(De.tryLoc<=this.prev){var We=m.call(De,"catchLoc"),je=m.call(De,"finallyLoc");if(We&&je){if(this.prev<De.catchLoc)return ke(De.catchLoc,!0);if(this.prev<De.finallyLoc)return ke(De.finallyLoc)}else if(We){if(this.prev<De.catchLoc)return ke(De.catchLoc,!0)}else if(je){if(this.prev<De.finallyLoc)return ke(De.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(ce,Re){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var Ne=this.tryEntries[ke];if(Ne.tryLoc<=this.prev&&m.call(Ne,"finallyLoc")&&this.prev<Ne.finallyLoc){var De=Ne;break}}De&&(ce==="break"||ce==="continue")&&De.tryLoc<=Re&&Re<=De.finallyLoc&&(De=null);var Me=De?De.completion:{};return Me.type=ce,Me.arg=Re,De?(this.method="next",this.next=De.finallyLoc,H):this.complete(Me)},complete:function(ce,Re){if(ce.type==="throw")throw ce.arg;return ce.type==="break"||ce.type==="continue"?this.next=ce.arg:ce.type==="return"?(this.rval=this.arg=ce.arg,this.method="return",this.next="end"):ce.type==="normal"&&Re&&(this.next=Re),H},finish:function(ce){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var ke=this.tryEntries[Re];if(ke.finallyLoc===ce)return this.complete(ke.completion,ke.afterLoc),pe(ke),H}},catch:function(ce){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var ke=this.tryEntries[Re];if(ke.tryLoc===ce){var Ne=ke.completion;if(Ne.type==="throw"){var De=Ne.arg;pe(ke)}return De}}throw new Error("illegal catch attempt")},delegateYield:function(ce,Re,ke){return this.delegate={iterator:ne(ce),resultName:Re,nextLoc:ke},this.method==="next"&&(this.arg=b),H}},p}(typeof w=="object"?w.exports:{});try{regeneratorRuntime=u}catch(p){typeof globalThis=="object"?globalThis.regeneratorRuntime=u:Function("r","regeneratorRuntime = r")(u)}},{}],396:[function(s,w,_){var u=s("buffer"),p=u.Buffer;function y(b,v){for(var c in b)v[c]=b[c]}p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?w.exports=u:(y(u,_),_.Buffer=m);function m(b,v,c){return p(b,v,c)}y(p,m),m.from=function(b,v,c){if(typeof b=="number")throw new TypeError("Argument must not be a number");return p(b,v,c)},m.alloc=function(b,v,c){if(typeof b!="number")throw new TypeError("Argument must be a number");var h=p(b);return v!==void 0?typeof c=="string"?h.fill(v,c):h.fill(v):h.fill(0),h},m.allocUnsafe=function(b){if(typeof b!="number")throw new TypeError("Argument must be a number");return p(b)},m.allocUnsafeSlow=function(b){if(typeof b!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(b)}},{buffer:90}],397:[function(s,w,_){(function(u){(function(){(function(p){p.parser=function(ze,xe){return new m(ze,xe)},p.SAXParser=m,p.SAXStream=T,p.createStream=x,p.MAX_BUFFER_LENGTH=64*1024;var y=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];p.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function m(ze,xe){if(!(this instanceof m))return new m(ze,xe);var fe=this;v(fe),fe.q=fe.c="",fe.bufferCheckPosition=p.MAX_BUFFER_LENGTH,fe.opt=xe||{},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=!!ze,fe.noscript=!!(ze||fe.opt.noscript),fe.state=oe.BEGIN,fe.strictEntities=fe.opt.strictEntities,fe.ENTITIES=fe.strictEntities?Object.create(p.XML_ENTITIES):Object.create(p.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),le(fe,"onready")}Object.create||(Object.create=function(ze){function xe(){}xe.prototype=ze;var fe=new xe;return fe}),Object.keys||(Object.keys=function(ze){var xe=[];for(var fe in ze)ze.hasOwnProperty(fe)&&xe.push(fe);return xe});function b(ze){for(var xe=Math.max(p.MAX_BUFFER_LENGTH,10),fe=0,W=0,Z=y.length;W<Z;W++){var me=ze[y[W]].length;if(me>xe)switch(y[W]){case"textNode":pe(ze);break;case"cdata":be(ze,"oncdata",ze.cdata),ze.cdata="";break;case"script":be(ze,"onscript",ze.script),ze.script="";break;default:ne(ze,"Max buffer length exceeded: "+y[W])}fe=Math.max(fe,me)}var Ce=p.MAX_BUFFER_LENGTH-fe;ze.bufferCheckPosition=Ce+ze.position}function v(ze){for(var xe=0,fe=y.length;xe<fe;xe++)ze[y[xe]]=""}function c(ze){pe(ze),ze.cdata!==""&&(be(ze,"oncdata",ze.cdata),ze.cdata=""),ze.script!==""&&(be(ze,"onscript",ze.script),ze.script="")}m.prototype={end:function(){ue(this)},write:it,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(ze){h=function(){}}var g=p.EVENTS.filter(function(ze){return ze!=="error"&&ze!=="end"});function x(ze,xe){return new T(ze,xe)}function T(ze,xe){if(!(this instanceof T))return new T(ze,xe);h.apply(this),this._parser=new m(ze,xe),this.writable=!0,this.readable=!0;var fe=this;this._parser.onend=function(){fe.emit("end")},this._parser.onerror=function(W){fe.emit("error",W),fe._parser.error=null},this._decoder=null,g.forEach(function(W){Object.defineProperty(fe,"on"+W,{get:function(){return fe._parser["on"+W]},set:function(Z){if(!Z)return fe.removeAllListeners(W),fe._parser["on"+W]=Z,Z;fe.on(W,Z)},enumerable:!0,configurable:!1})})}T.prototype=Object.create(h.prototype,{constructor:{value:T}}),T.prototype.write=function(ze){if(typeof u=="function"&&typeof u.isBuffer=="function"&&u.isBuffer(ze)){if(!this._decoder){var xe=s("string_decoder").StringDecoder;this._decoder=new xe("utf8")}ze=this._decoder.write(ze)}return this._parser.write(ze.toString()),this.emit("data",ze),!0},T.prototype.end=function(ze){return ze&&ze.length&&this.write(ze),this._parser.end(),!0},T.prototype.on=function(ze,xe){var fe=this;return!fe._parser["on"+ze]&&g.indexOf(ze)!==-1&&(fe._parser["on"+ze]=function(){var W=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,ze),fe.emit.apply(fe,W)}),h.prototype.on.call(fe,ze,xe)};var I="[CDATA[",R="DOCTYPE",N="http://www.w3.org/XML/1998/namespace",k="http://www.w3.org/2000/xmlns/",L={xml:N,xmlns:k},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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,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]/,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 U(ze){return ze===" "||ze===`
`||ze==="\r"||ze===" "}function G(ze){return ze==='"'||ze==="'"}function Q(ze){return ze===">"||U(ze)}function ee(ze,xe){return ze.test(xe)}function ae(ze,xe){return!ee(ze,xe)}var oe=0;p.STATE={BEGIN:oe++,BEGIN_WHITESPACE:oe++,TEXT:oe++,TEXT_ENTITY:oe++,OPEN_WAKA:oe++,SGML_DECL:oe++,SGML_DECL_QUOTED:oe++,DOCTYPE:oe++,DOCTYPE_QUOTED:oe++,DOCTYPE_DTD:oe++,DOCTYPE_DTD_QUOTED:oe++,COMMENT_STARTING:oe++,COMMENT:oe++,COMMENT_ENDING:oe++,COMMENT_ENDED:oe++,CDATA:oe++,CDATA_ENDING:oe++,CDATA_ENDING_2:oe++,PROC_INST:oe++,PROC_INST_BODY:oe++,PROC_INST_ENDING:oe++,OPEN_TAG:oe++,OPEN_TAG_SLASH:oe++,ATTRIB:oe++,ATTRIB_NAME:oe++,ATTRIB_NAME_SAW_WHITE:oe++,ATTRIB_VALUE:oe++,ATTRIB_VALUE_QUOTED:oe++,ATTRIB_VALUE_CLOSED:oe++,ATTRIB_VALUE_UNQUOTED:oe++,ATTRIB_VALUE_ENTITY_Q:oe++,ATTRIB_VALUE_ENTITY_U:oe++,CLOSE_TAG:oe++,CLOSE_TAG_SAW_WHITE:oe++,SCRIPT:oe++,SCRIPT_ENDING:oe++},p.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},p.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(p.ENTITIES).forEach(function(ze){var xe=p.ENTITIES[ze],fe=typeof xe=="number"?String.fromCharCode(xe):xe;p.ENTITIES[ze]=fe});for(var he in p.STATE)p.STATE[p.STATE[he]]=he;oe=p.STATE;function le(ze,xe,fe){ze[xe]&&ze[xe](fe)}function be(ze,xe,fe){ze.textNode&&pe(ze),le(ze,xe,fe)}function pe(ze){ze.textNode=_e(ze.opt,ze.textNode),ze.textNode&&le(ze,"ontext",ze.textNode),ze.textNode=""}function _e(ze,xe){return ze.trim&&(xe=xe.trim()),ze.normalize&&(xe=xe.replace(/\s+/g," ")),xe}function ne(ze,xe){return pe(ze),ze.trackPosition&&(xe+=`
Line: `+ze.line+`
Column: `+ze.column+`
Char: `+ze.c),xe=new Error(xe),ze.error=xe,le(ze,"onerror",xe),ze}function ue(ze){return ze.sawRoot&&!ze.closedRoot&&ce(ze,"Unclosed root tag"),ze.state!==oe.BEGIN&&ze.state!==oe.BEGIN_WHITESPACE&&ze.state!==oe.TEXT&&ne(ze,"Unexpected end"),pe(ze),ze.c="",ze.closed=!0,le(ze,"onend"),m.call(ze,ze.strict,ze.opt),ze}function ce(ze,xe){if(typeof ze!="object"||!(ze instanceof m))throw new Error("bad call to strictFail");ze.strict&&ne(ze,xe)}function Re(ze){ze.strict||(ze.tagName=ze.tagName[ze.looseCase]());var xe=ze.tags[ze.tags.length-1]||ze,fe=ze.tag={name:ze.tagName,attributes:{}};ze.opt.xmlns&&(fe.ns=xe.ns),ze.attribList.length=0,be(ze,"onopentagstart",fe)}function ke(ze,xe){var fe=ze.indexOf(":"),W=fe<0?["",ze]:ze.split(":"),Z=W[0],me=W[1];return xe&&ze==="xmlns"&&(Z="xmlns",me=""),{prefix:Z,local:me}}function Ne(ze){if(ze.strict||(ze.attribName=ze.attribName[ze.looseCase]()),ze.attribList.indexOf(ze.attribName)!==-1||ze.tag.attributes.hasOwnProperty(ze.attribName)){ze.attribName=ze.attribValue="";return}if(ze.opt.xmlns){var xe=ke(ze.attribName,!0),fe=xe.prefix,W=xe.local;if(fe==="xmlns")if(W==="xml"&&ze.attribValue!==N)ce(ze,"xml: prefix must be bound to "+N+`
Actual: `+ze.attribValue);else if(W==="xmlns"&&ze.attribValue!==k)ce(ze,"xmlns: prefix must be bound to "+k+`
Actual: `+ze.attribValue);else{var Z=ze.tag,me=ze.tags[ze.tags.length-1]||ze;Z.ns===me.ns&&(Z.ns=Object.create(me.ns)),Z.ns[W]=ze.attribValue}ze.attribList.push([ze.attribName,ze.attribValue])}else ze.tag.attributes[ze.attribName]=ze.attribValue,be(ze,"onattribute",{name:ze.attribName,value:ze.attribValue});ze.attribName=ze.attribValue=""}function De(ze,xe){if(ze.opt.xmlns){var fe=ze.tag,W=ke(ze.tagName);fe.prefix=W.prefix,fe.local=W.local,fe.uri=fe.ns[W.prefix]||"",fe.prefix&&!fe.uri&&(ce(ze,"Unbound namespace prefix: "+JSON.stringify(ze.tagName)),fe.uri=W.prefix);var Z=ze.tags[ze.tags.length-1]||ze;fe.ns&&Z.ns!==fe.ns&&Object.keys(fe.ns).forEach(function(pt){be(ze,"onopennamespace",{prefix:pt,uri:fe.ns[pt]})});for(var me=0,Ce=ze.attribList.length;me<Ce;me++){var re=ze.attribList[me],ie=re[0],de=re[1],Ae=ke(ie,!0),Be=Ae.prefix,He=Ae.local,st=Be===""?"":fe.ns[Be]||"",Qe={name:ie,value:de,prefix:Be,local:He,uri:st};Be&&Be!=="xmlns"&&!st&&(ce(ze,"Unbound namespace prefix: "+JSON.stringify(Be)),Qe.uri=Be),ze.tag.attributes[ie]=Qe,be(ze,"onattribute",Qe)}ze.attribList.length=0}ze.tag.isSelfClosing=!!xe,ze.sawRoot=!0,ze.tags.push(ze.tag),be(ze,"onopentag",ze.tag),xe||(!ze.noscript&&ze.tagName.toLowerCase()==="script"?ze.state=oe.SCRIPT:ze.state=oe.TEXT,ze.tag=null,ze.tagName=""),ze.attribName=ze.attribValue="",ze.attribList.length=0}function Me(ze){if(!ze.tagName){ce(ze,"Weird empty close tag."),ze.textNode+="</>",ze.state=oe.TEXT;return}if(ze.script){if(ze.tagName!=="script"){ze.script+="</"+ze.tagName+">",ze.tagName="",ze.state=oe.SCRIPT;return}be(ze,"onscript",ze.script),ze.script=""}var xe=ze.tags.length,fe=ze.tagName;ze.strict||(fe=fe[ze.looseCase]());for(var W=fe;xe--;){var Z=ze.tags[xe];if(Z.name!==W)ce(ze,"Unexpected close tag");else break}if(xe<0){ce(ze,"Unmatched closing tag: "+ze.tagName),ze.textNode+="</"+ze.tagName+">",ze.state=oe.TEXT;return}ze.tagName=fe;for(var me=ze.tags.length;me-- >xe;){var Ce=ze.tag=ze.tags.pop();ze.tagName=ze.tag.name,be(ze,"onclosetag",ze.tagName);var re={};for(var ie in Ce.ns)re[ie]=Ce.ns[ie];var de=ze.tags[ze.tags.length-1]||ze;ze.opt.xmlns&&Ce.ns!==de.ns&&Object.keys(Ce.ns).forEach(function(Ae){var Be=Ce.ns[Ae];be(ze,"onclosenamespace",{prefix:Ae,uri:Be})})}xe===0&&(ze.closedRoot=!0),ze.tagName=ze.attribValue=ze.attribName="",ze.attribList.length=0,ze.state=oe.TEXT}function We(ze){var xe=ze.entity,fe=xe.toLowerCase(),W,Z="";return ze.ENTITIES[xe]?ze.ENTITIES[xe]:ze.ENTITIES[fe]?ze.ENTITIES[fe]:(xe=fe,xe.charAt(0)==="#"&&(xe.charAt(1)==="x"?(xe=xe.slice(2),W=parseInt(xe,16),Z=W.toString(16)):(xe=xe.slice(1),W=parseInt(xe,10),Z=W.toString(10))),xe=xe.replace(/^0+/,""),isNaN(W)||Z.toLowerCase()!==xe?(ce(ze,"Invalid character entity"),"&"+ze.entity+";"):String.fromCodePoint(W))}function je(ze,xe){xe==="<"?(ze.state=oe.OPEN_WAKA,ze.startTagPosition=ze.position):U(xe)||(ce(ze,"Non-whitespace before first tag."),ze.textNode=xe,ze.state=oe.TEXT)}function et(ze,xe){var fe="";return xe<ze.length&&(fe=ze.charAt(xe)),fe}function it(ze){var xe=this;if(this.error)throw this.error;if(xe.closed)return ne(xe,"Cannot write after close. Assign an onready handler.");if(ze===null)return ue(xe);typeof ze=="object"&&(ze=ze.toString());for(var fe=0,W="";W=et(ze,fe++),xe.c=W,!!W;)switch(xe.trackPosition&&(xe.position++,W===`
`?(xe.line++,xe.column=0):xe.column++),xe.state){case oe.BEGIN:if(xe.state=oe.BEGIN_WHITESPACE,W==="\uFEFF")continue;je(xe,W);continue;case oe.BEGIN_WHITESPACE:je(xe,W);continue;case oe.TEXT:if(xe.sawRoot&&!xe.closedRoot){for(var Z=fe-1;W&&W!=="<"&&W!=="&";)W=et(ze,fe++),W&&xe.trackPosition&&(xe.position++,W===`
`?(xe.line++,xe.column=0):xe.column++);xe.textNode+=ze.substring(Z,fe-1)}W==="<"&&!(xe.sawRoot&&xe.closedRoot&&!xe.strict)?(xe.state=oe.OPEN_WAKA,xe.startTagPosition=xe.position):(!U(W)&&(!xe.sawRoot||xe.closedRoot)&&ce(xe,"Text data outside of root node."),W==="&"?xe.state=oe.TEXT_ENTITY:xe.textNode+=W);continue;case oe.SCRIPT:W==="<"?xe.state=oe.SCRIPT_ENDING:xe.script+=W;continue;case oe.SCRIPT_ENDING:W==="/"?xe.state=oe.CLOSE_TAG:(xe.script+="<"+W,xe.state=oe.SCRIPT);continue;case oe.OPEN_WAKA:if(W==="!")xe.state=oe.SGML_DECL,xe.sgmlDecl="";else if(!U(W))if(ee(H,W))xe.state=oe.OPEN_TAG,xe.tagName=W;else if(W==="/")xe.state=oe.CLOSE_TAG,xe.tagName="";else if(W==="?")xe.state=oe.PROC_INST,xe.procInstName=xe.procInstBody="";else{if(ce(xe,"Unencoded <"),xe.startTagPosition+1<xe.position){var me=xe.position-xe.startTagPosition;W=new Array(me).join(" ")+W}xe.textNode+="<"+W,xe.state=oe.TEXT}continue;case oe.SGML_DECL:(xe.sgmlDecl+W).toUpperCase()===I?(be(xe,"onopencdata"),xe.state=oe.CDATA,xe.sgmlDecl="",xe.cdata=""):xe.sgmlDecl+W==="--"?(xe.state=oe.COMMENT,xe.comment="",xe.sgmlDecl=""):(xe.sgmlDecl+W).toUpperCase()===R?(xe.state=oe.DOCTYPE,(xe.doctype||xe.sawRoot)&&ce(xe,"Inappropriately located doctype declaration"),xe.doctype="",xe.sgmlDecl=""):W===">"?(be(xe,"onsgmldeclaration",xe.sgmlDecl),xe.sgmlDecl="",xe.state=oe.TEXT):(G(W)&&(xe.state=oe.SGML_DECL_QUOTED),xe.sgmlDecl+=W);continue;case oe.SGML_DECL_QUOTED:W===xe.q&&(xe.state=oe.SGML_DECL,xe.q=""),xe.sgmlDecl+=W;continue;case oe.DOCTYPE:W===">"?(xe.state=oe.TEXT,be(xe,"ondoctype",xe.doctype),xe.doctype=!0):(xe.doctype+=W,W==="["?xe.state=oe.DOCTYPE_DTD:G(W)&&(xe.state=oe.DOCTYPE_QUOTED,xe.q=W));continue;case oe.DOCTYPE_QUOTED:xe.doctype+=W,W===xe.q&&(xe.q="",xe.state=oe.DOCTYPE);continue;case oe.DOCTYPE_DTD:xe.doctype+=W,W==="]"?xe.state=oe.DOCTYPE:G(W)&&(xe.state=oe.DOCTYPE_DTD_QUOTED,xe.q=W);continue;case oe.DOCTYPE_DTD_QUOTED:xe.doctype+=W,W===xe.q&&(xe.state=oe.DOCTYPE_DTD,xe.q="");continue;case oe.COMMENT:W==="-"?xe.state=oe.COMMENT_ENDING:xe.comment+=W;continue;case oe.COMMENT_ENDING:W==="-"?(xe.state=oe.COMMENT_ENDED,xe.comment=_e(xe.opt,xe.comment),xe.comment&&be(xe,"oncomment",xe.comment),xe.comment=""):(xe.comment+="-"+W,xe.state=oe.COMMENT);continue;case oe.COMMENT_ENDED:W!==">"?(ce(xe,"Malformed comment"),xe.comment+="--"+W,xe.state=oe.COMMENT):xe.state=oe.TEXT;continue;case oe.CDATA:W==="]"?xe.state=oe.CDATA_ENDING:xe.cdata+=W;continue;case oe.CDATA_ENDING:W==="]"?xe.state=oe.CDATA_ENDING_2:(xe.cdata+="]"+W,xe.state=oe.CDATA);continue;case oe.CDATA_ENDING_2:W===">"?(xe.cdata&&be(xe,"oncdata",xe.cdata),be(xe,"onclosecdata"),xe.cdata="",xe.state=oe.TEXT):W==="]"?xe.cdata+="]":(xe.cdata+="]]"+W,xe.state=oe.CDATA);continue;case oe.PROC_INST:W==="?"?xe.state=oe.PROC_INST_ENDING:U(W)?xe.state=oe.PROC_INST_BODY:xe.procInstName+=W;continue;case oe.PROC_INST_BODY:if(!xe.procInstBody&&U(W))continue;W==="?"?xe.state=oe.PROC_INST_ENDING:xe.procInstBody+=W;continue;case oe.PROC_INST_ENDING:W===">"?(be(xe,"onprocessinginstruction",{name:xe.procInstName,body:xe.procInstBody}),xe.procInstName=xe.procInstBody="",xe.state=oe.TEXT):(xe.procInstBody+="?"+W,xe.state=oe.PROC_INST_BODY);continue;case oe.OPEN_TAG:ee(M,W)?xe.tagName+=W:(Re(xe),W===">"?De(xe):W==="/"?xe.state=oe.OPEN_TAG_SLASH:(U(W)||ce(xe,"Invalid character in tag name"),xe.state=oe.ATTRIB));continue;case oe.OPEN_TAG_SLASH:W===">"?(De(xe,!0),Me(xe)):(ce(xe,"Forward-slash in opening tag not followed by >"),xe.state=oe.ATTRIB);continue;case oe.ATTRIB:if(U(W))continue;W===">"?De(xe):W==="/"?xe.state=oe.OPEN_TAG_SLASH:ee(H,W)?(xe.attribName=W,xe.attribValue="",xe.state=oe.ATTRIB_NAME):ce(xe,"Invalid attribute name");continue;case oe.ATTRIB_NAME:W==="="?xe.state=oe.ATTRIB_VALUE:W===">"?(ce(xe,"Attribute without value"),xe.attribValue=xe.attribName,Ne(xe),De(xe)):U(W)?xe.state=oe.ATTRIB_NAME_SAW_WHITE:ee(M,W)?xe.attribName+=W:ce(xe,"Invalid attribute name");continue;case oe.ATTRIB_NAME_SAW_WHITE:if(W==="=")xe.state=oe.ATTRIB_VALUE;else{if(U(W))continue;ce(xe,"Attribute without value"),xe.tag.attributes[xe.attribName]="",xe.attribValue="",be(xe,"onattribute",{name:xe.attribName,value:""}),xe.attribName="",W===">"?De(xe):ee(H,W)?(xe.attribName=W,xe.state=oe.ATTRIB_NAME):(ce(xe,"Invalid attribute name"),xe.state=oe.ATTRIB)}continue;case oe.ATTRIB_VALUE:if(U(W))continue;G(W)?(xe.q=W,xe.state=oe.ATTRIB_VALUE_QUOTED):(ce(xe,"Unquoted attribute value"),xe.state=oe.ATTRIB_VALUE_UNQUOTED,xe.attribValue=W);continue;case oe.ATTRIB_VALUE_QUOTED:if(W!==xe.q){W==="&"?xe.state=oe.ATTRIB_VALUE_ENTITY_Q:xe.attribValue+=W;continue}Ne(xe),xe.q="",xe.state=oe.ATTRIB_VALUE_CLOSED;continue;case oe.ATTRIB_VALUE_CLOSED:U(W)?xe.state=oe.ATTRIB:W===">"?De(xe):W==="/"?xe.state=oe.OPEN_TAG_SLASH:ee(H,W)?(ce(xe,"No whitespace between attributes"),xe.attribName=W,xe.attribValue="",xe.state=oe.ATTRIB_NAME):ce(xe,"Invalid attribute name");continue;case oe.ATTRIB_VALUE_UNQUOTED:if(!Q(W)){W==="&"?xe.state=oe.ATTRIB_VALUE_ENTITY_U:xe.attribValue+=W;continue}Ne(xe),W===">"?De(xe):xe.state=oe.ATTRIB;continue;case oe.CLOSE_TAG:if(xe.tagName)W===">"?Me(xe):ee(M,W)?xe.tagName+=W:xe.script?(xe.script+="</"+xe.tagName,xe.tagName="",xe.state=oe.SCRIPT):(U(W)||ce(xe,"Invalid tagname in closing tag"),xe.state=oe.CLOSE_TAG_SAW_WHITE);else{if(U(W))continue;ae(H,W)?xe.script?(xe.script+="</"+W,xe.state=oe.SCRIPT):ce(xe,"Invalid tagname in closing tag."):xe.tagName=W}continue;case oe.CLOSE_TAG_SAW_WHITE:if(U(W))continue;W===">"?Me(xe):ce(xe,"Invalid characters in closing tag");continue;case oe.TEXT_ENTITY:case oe.ATTRIB_VALUE_ENTITY_Q:case oe.ATTRIB_VALUE_ENTITY_U:var Ce,re;switch(xe.state){case oe.TEXT_ENTITY:Ce=oe.TEXT,re="textNode";break;case oe.ATTRIB_VALUE_ENTITY_Q:Ce=oe.ATTRIB_VALUE_QUOTED,re="attribValue";break;case oe.ATTRIB_VALUE_ENTITY_U:Ce=oe.ATTRIB_VALUE_UNQUOTED,re="attribValue";break}W===";"?(xe[re]+=We(xe),xe.entity="",xe.state=Ce):ee(xe.entity.length?P:F,W)?xe.entity+=W:(ce(xe,"Invalid character in entity name"),xe[re]+="&"+xe.entity+W,xe.entity="",xe.state=Ce);continue;default:throw new Error(xe,"Unknown state: "+xe.state)}return xe.position>=xe.bufferCheckPosition&&b(xe),xe}String.fromCodePoint||function(){var ze=String.fromCharCode,xe=Math.floor,fe=function(){var W=16384,Z=[],me,Ce,re=-1,ie=arguments.length;if(!ie)return"";for(var de="";++re<ie;){var Ae=Number(arguments[re]);if(!isFinite(Ae)||Ae<0||Ae>1114111||xe(Ae)!==Ae)throw RangeError("Invalid code point: "+Ae);Ae<=65535?Z.push(Ae):(Ae-=65536,me=(Ae>>10)+55296,Ce=Ae%1024+56320,Z.push(me,Ce)),(re+1===ie||Z.length>W)&&(de+=ze.apply(null,Z),Z.length=0)}return de};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(typeof _=="undefined"?this.sax={}:_)}).call(this)}).call(this,s("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(s,w,_){w.exports=y;var u=s("events").EventEmitter,p=s("inherits");p(y,u),y.Readable=s("readable-stream/lib/_stream_readable.js"),y.Writable=s("readable-stream/lib/_stream_writable.js"),y.Duplex=s("readable-stream/lib/_stream_duplex.js"),y.Transform=s("readable-stream/lib/_stream_transform.js"),y.PassThrough=s("readable-stream/lib/_stream_passthrough.js"),y.finished=s("readable-stream/lib/internal/streams/end-of-stream.js"),y.pipeline=s("readable-stream/lib/internal/streams/pipeline.js"),y.Stream=y;function y(){u.call(this)}y.prototype.pipe=function(m,b){var v=this;function c(N){m.writable&&m.write(N)===!1&&v.pause&&v.pause()}v.on("data",c);function h(){v.readable&&v.resume&&v.resume()}m.on("drain",h),!m._isStdio&&(!b||b.end!==!1)&&(v.on("end",x),v.on("close",T));var g=!1;function x(){g||(g=!0,m.end())}function T(){g||(g=!0,typeof m.destroy=="function"&&m.destroy())}function I(N){if(R(),u.listenerCount(this,"error")===0)throw N}v.on("error",I),m.on("error",I);function R(){v.removeListener("data",c),m.removeListener("drain",h),v.removeListener("end",x),v.removeListener("close",T),v.removeListener("error",I),m.removeListener("error",I),v.removeListener("end",R),v.removeListener("close",R),m.removeListener("close",R)}return v.on("end",R),v.on("close",R),m.on("close",R),m.emit("pipe",v),m}},{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,w,_){"use strict";function u(h,g){h.prototype=Object.create(g.prototype),h.prototype.constructor=h,h.__proto__=g}var p={};function y(h,g,x){x||(x=Error);function T(R,N,k){return typeof g=="string"?g:g(R,N,k)}var I=function(R){u(N,R);function N(k,L,H){return R.call(this,T(k,L,H))||this}return N}(x);I.prototype.name=x.name,I.prototype.code=h,p[h]=I}function m(h,g){if(Array.isArray(h)){var x=h.length;return h=h.map(function(T){return String(T)}),x>2?"one of ".concat(g," ").concat(h.slice(0,x-1).join(", "),", or ")+h[x-1]:x===2?"one of ".concat(g," ").concat(h[0]," or ").concat(h[1]):"of ".concat(g," ").concat(h[0])}else return"of ".concat(g," ").concat(String(h))}function b(h,g,x){return h.substr(!x||x<0?0:+x,g.length)===g}function v(h,g,x){return(x===void 0||x>h.length)&&(x=h.length),h.substring(x-g.length,x)===g}function c(h,g,x){return typeof x!="number"&&(x=0),x+g.length>h.length?!1:h.indexOf(g,x)!==-1}y("ERR_INVALID_OPT_VALUE",function(h,g){return'The value "'+g+'" is invalid for option "'+h+'"'},TypeError),y("ERR_INVALID_ARG_TYPE",function(h,g,x){var T;typeof g=="string"&&b(g,"not ")?(T="must not be",g=g.replace(/^not /,"")):T="must be";var I;if(v(h," argument"))I="The ".concat(h," ").concat(T," ").concat(m(g,"type"));else{var R=c(h,".")?"property":"argument";I='The "'.concat(h,'" ').concat(R," ").concat(T," ").concat(m(g,"type"))}return I+=". Received type ".concat(typeof x),I},TypeError),y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),y("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),y("ERR_STREAM_PREMATURE_CLOSE","Premature close"),y("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),y("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),y("ERR_STREAM_WRITE_AFTER_END","write after end"),y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),y("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),w.exports.codes=p},{}],400:[function(s,w,_){(function(u){(function(){"use strict";var p=Object.keys||function(T){var I=[];for(var R in T)I.push(R);return I};w.exports=h;var y=s("./_stream_readable"),m=s("./_stream_writable");s("inherits")(h,y);for(var b=p(m.prototype),v=0;v<b.length;v++){var c=b[v];h.prototype[c]||(h.prototype[c]=m.prototype[c])}function h(T){if(!(this instanceof h))return new h(T);y.call(this,T),m.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",g)))}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 g(){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(I){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=I,this._writableState.destroyed=I)}})}).call(this)}).call(this,s("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(s,w,_){"use strict";w.exports=p;var u=s("./_stream_transform");s("inherits")(p,u);function p(y){if(!(this instanceof p))return new p(y);u.call(this,y)}p.prototype._transform=function(y,m,b){b(null,y)}},{"./_stream_transform":403,inherits:364}],402:[function(s,w,_){(function(u,p){(function(){"use strict";w.exports=be;var y;be.ReadableState=le;var m=s("events").EventEmitter,b=function(ie,de){return ie.listeners(de).length},v=s("./internal/streams/stream"),c=s("buffer").Buffer,h=(typeof p!="undefined"?p:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function g(re){return c.from(re)}function x(re){return c.isBuffer(re)||re instanceof h}var T=s("util"),I;T&&T.debuglog?I=T.debuglog("stream"):I=function(){};var R=s("./internal/streams/buffer_list"),N=s("./internal/streams/destroy"),k=s("./internal/streams/state"),L=k.getHighWaterMark,H=s("../errors").codes,M=H.ERR_INVALID_ARG_TYPE,F=H.ERR_STREAM_PUSH_AFTER_EOF,P=H.ERR_METHOD_NOT_IMPLEMENTED,U=H.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,G,Q,ee;s("inherits")(be,v);var ae=N.errorOrDestroy,oe=["error","close","destroy","pause","resume"];function he(re,ie,de){if(typeof re.prependListener=="function")return re.prependListener(ie,de);!re._events||!re._events[ie]?re.on(ie,de):Array.isArray(re._events[ie])?re._events[ie].unshift(de):re._events[ie]=[de,re._events[ie]]}function le(re,ie,de){y=y||s("./_stream_duplex"),re=re||{},typeof de!="boolean"&&(de=ie instanceof y),this.objectMode=!!re.objectMode,de&&(this.objectMode=this.objectMode||!!re.readableObjectMode),this.highWaterMark=L(this,re,"readableHighWaterMark",de),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=re.emitClose!==!1,this.autoDestroy=!!re.autoDestroy,this.destroyed=!1,this.defaultEncoding=re.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,re.encoding&&(G||(G=s("string_decoder/").StringDecoder),this.decoder=new G(re.encoding),this.encoding=re.encoding)}function be(re){if(y=y||s("./_stream_duplex"),!(this instanceof be))return new be(re);var ie=this instanceof y;this._readableState=new le(re,this,ie),this.readable=!0,re&&(typeof re.read=="function"&&(this._read=re.read),typeof re.destroy=="function"&&(this._destroy=re.destroy)),v.call(this)}Object.defineProperty(be.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ie){this._readableState&&(this._readableState.destroyed=ie)}}),be.prototype.destroy=N.destroy,be.prototype._undestroy=N.undestroy,be.prototype._destroy=function(re,ie){ie(re)},be.prototype.push=function(re,ie){var de=this._readableState,Ae;return de.objectMode?Ae=!0:typeof re=="string"&&(ie=ie||de.defaultEncoding,ie!==de.encoding&&(re=c.from(re,ie),ie=""),Ae=!0),pe(this,re,ie,!1,Ae)},be.prototype.unshift=function(re){return pe(this,re,null,!0,!1)};function pe(re,ie,de,Ae,Be){I("readableAddChunk",ie);var He=re._readableState;if(ie===null)He.reading=!1,ke(re,He);else{var st;if(Be||(st=ne(He,ie)),st)ae(re,st);else if(He.objectMode||ie&&ie.length>0)if(typeof ie!="string"&&!He.objectMode&&Object.getPrototypeOf(ie)!==c.prototype&&(ie=g(ie)),Ae)He.endEmitted?ae(re,new U):_e(re,He,ie,!0);else if(He.ended)ae(re,new F);else{if(He.destroyed)return!1;He.reading=!1,He.decoder&&!de?(ie=He.decoder.write(ie),He.objectMode||ie.length!==0?_e(re,He,ie,!1):Me(re,He)):_e(re,He,ie,!1)}else Ae||(He.reading=!1,Me(re,He))}return!He.ended&&(He.length<He.highWaterMark||He.length===0)}function _e(re,ie,de,Ae){ie.flowing&&ie.length===0&&!ie.sync?(ie.awaitDrain=0,re.emit("data",de)):(ie.length+=ie.objectMode?1:de.length,Ae?ie.buffer.unshift(de):ie.buffer.push(de),ie.needReadable&&Ne(re)),Me(re,ie)}function ne(re,ie){var de;return!x(ie)&&typeof ie!="string"&&ie!==void 0&&!re.objectMode&&(de=new M("chunk",["string","Buffer","Uint8Array"],ie)),de}be.prototype.isPaused=function(){return this._readableState.flowing===!1},be.prototype.setEncoding=function(re){G||(G=s("string_decoder/").StringDecoder);var ie=new G(re);this._readableState.decoder=ie,this._readableState.encoding=this._readableState.decoder.encoding;for(var de=this._readableState.buffer.head,Ae="";de!==null;)Ae+=ie.write(de.data),de=de.next;return this._readableState.buffer.clear(),Ae!==""&&this._readableState.buffer.push(Ae),this._readableState.length=Ae.length,this};var ue=1073741824;function ce(re){return re>=ue?re=ue:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}function Re(re,ie){return re<=0||ie.length===0&&ie.ended?0:ie.objectMode?1:re!==re?ie.flowing&&ie.length?ie.buffer.head.data.length:ie.length:(re>ie.highWaterMark&&(ie.highWaterMark=ce(re)),re<=ie.length?re:ie.ended?ie.length:(ie.needReadable=!0,0))}be.prototype.read=function(re){I("read",re),re=parseInt(re,10);var ie=this._readableState,de=re;if(re!==0&&(ie.emittedReadable=!1),re===0&&ie.needReadable&&((ie.highWaterMark!==0?ie.length>=ie.highWaterMark:ie.length>0)||ie.ended))return I("read: emitReadable",ie.length,ie.ended),ie.length===0&&ie.ended?Z(this):Ne(this),null;if(re=Re(re,ie),re===0&&ie.ended)return ie.length===0&&Z(this),null;var Ae=ie.needReadable;I("need readable",Ae),(ie.length===0||ie.length-re<ie.highWaterMark)&&(Ae=!0,I("length less than watermark",Ae)),ie.ended||ie.reading?(Ae=!1,I("reading or ended",Ae)):Ae&&(I("do read"),ie.reading=!0,ie.sync=!0,ie.length===0&&(ie.needReadable=!0),this._read(ie.highWaterMark),ie.sync=!1,ie.reading||(re=Re(de,ie)));var Be;return re>0?Be=W(re,ie):Be=null,Be===null?(ie.needReadable=ie.length<=ie.highWaterMark,re=0):(ie.length-=re,ie.awaitDrain=0),ie.length===0&&(ie.ended||(ie.needReadable=!0),de!==re&&ie.ended&&Z(this)),Be!==null&&this.emit("data",Be),Be};function ke(re,ie){if(I("onEofChunk"),!ie.ended){if(ie.decoder){var de=ie.decoder.end();de&&de.length&&(ie.buffer.push(de),ie.length+=ie.objectMode?1:de.length)}ie.ended=!0,ie.sync?Ne(re):(ie.needReadable=!1,ie.emittedReadable||(ie.emittedReadable=!0,De(re)))}}function Ne(re){var ie=re._readableState;I("emitReadable",ie.needReadable,ie.emittedReadable),ie.needReadable=!1,ie.emittedReadable||(I("emitReadable",ie.flowing),ie.emittedReadable=!0,u.nextTick(De,re))}function De(re){var ie=re._readableState;I("emitReadable_",ie.destroyed,ie.length,ie.ended),!ie.destroyed&&(ie.length||ie.ended)&&(re.emit("readable"),ie.emittedReadable=!1),ie.needReadable=!ie.flowing&&!ie.ended&&ie.length<=ie.highWaterMark,fe(re)}function Me(re,ie){ie.readingMore||(ie.readingMore=!0,u.nextTick(We,re,ie))}function We(re,ie){for(;!ie.reading&&!ie.ended&&(ie.length<ie.highWaterMark||ie.flowing&&ie.length===0);){var de=ie.length;if(I("maybeReadMore read 0"),re.read(0),de===ie.length)break}ie.readingMore=!1}be.prototype._read=function(re){ae(this,new P("_read()"))},be.prototype.pipe=function(re,ie){var de=this,Ae=this._readableState;switch(Ae.pipesCount){case 0:Ae.pipes=re;break;case 1:Ae.pipes=[Ae.pipes,re];break;default:Ae.pipes.push(re);break}Ae.pipesCount+=1,I("pipe count=%d opts=%j",Ae.pipesCount,ie);var Be=(!ie||ie.end!==!1)&&re!==u.stdout&&re!==u.stderr,He=Be?Qe:Tt;Ae.endEmitted?u.nextTick(He):de.once("end",He),re.on("unpipe",st);function st(Mt,Ot){I("onunpipe"),Mt===de&&Ot&&Ot.hasUnpiped===!1&&(Ot.hasUnpiped=!0,gt())}function Qe(){I("onend"),re.end()}var pt=je(de);re.on("drain",pt);var It=!1;function gt(){I("cleanup"),re.removeListener("close",At),re.removeListener("finish",bt),re.removeListener("drain",pt),re.removeListener("error",ut),re.removeListener("unpipe",st),de.removeListener("end",Qe),de.removeListener("end",Tt),de.removeListener("data",rt),It=!0,Ae.awaitDrain&&(!re._writableState||re._writableState.needDrain)&&pt()}de.on("data",rt);function rt(Mt){I("ondata");var Ot=re.write(Mt);I("dest.write",Ot),Ot===!1&&((Ae.pipesCount===1&&Ae.pipes===re||Ae.pipesCount>1&&Ce(Ae.pipes,re)!==-1)&&!It&&(I("false write response, pause",Ae.awaitDrain),Ae.awaitDrain++),de.pause())}function ut(Mt){I("onerror",Mt),Tt(),re.removeListener("error",ut),b(re,"error")===0&&ae(re,Mt)}he(re,"error",ut);function At(){re.removeListener("finish",bt),Tt()}re.once("close",At);function bt(){I("onfinish"),re.removeListener("close",At),Tt()}re.once("finish",bt);function Tt(){I("unpipe"),de.unpipe(re)}return re.emit("pipe",de),Ae.flowing||(I("pipe resume"),de.resume()),re};function je(re){return function(){var de=re._readableState;I("pipeOnDrain",de.awaitDrain),de.awaitDrain&&de.awaitDrain--,de.awaitDrain===0&&b(re,"data")&&(de.flowing=!0,fe(re))}}be.prototype.unpipe=function(re){var ie=this._readableState,de={hasUnpiped:!1};if(ie.pipesCount===0)return this;if(ie.pipesCount===1)return re&&re!==ie.pipes?this:(re||(re=ie.pipes),ie.pipes=null,ie.pipesCount=0,ie.flowing=!1,re&&re.emit("unpipe",this,de),this);if(!re){var Ae=ie.pipes,Be=ie.pipesCount;ie.pipes=null,ie.pipesCount=0,ie.flowing=!1;for(var He=0;He<Be;He++)Ae[He].emit("unpipe",this,{hasUnpiped:!1});return this}var st=Ce(ie.pipes,re);return st===-1?this:(ie.pipes.splice(st,1),ie.pipesCount-=1,ie.pipesCount===1&&(ie.pipes=ie.pipes[0]),re.emit("unpipe",this,de),this)},be.prototype.on=function(re,ie){var de=v.prototype.on.call(this,re,ie),Ae=this._readableState;return re==="data"?(Ae.readableListening=this.listenerCount("readable")>0,Ae.flowing!==!1&&this.resume()):re==="readable"&&!Ae.endEmitted&&!Ae.readableListening&&(Ae.readableListening=Ae.needReadable=!0,Ae.flowing=!1,Ae.emittedReadable=!1,I("on readable",Ae.length,Ae.reading),Ae.length?Ne(this):Ae.reading||u.nextTick(it,this)),de},be.prototype.addListener=be.prototype.on,be.prototype.removeListener=function(re,ie){var de=v.prototype.removeListener.call(this,re,ie);return re==="readable"&&u.nextTick(et,this),de},be.prototype.removeAllListeners=function(re){var ie=v.prototype.removeAllListeners.apply(this,arguments);return(re==="readable"||re===void 0)&&u.nextTick(et,this),ie};function et(re){var ie=re._readableState;ie.readableListening=re.listenerCount("readable")>0,ie.resumeScheduled&&!ie.paused?ie.flowing=!0:re.listenerCount("data")>0&&re.resume()}function it(re){I("readable nexttick read 0"),re.read(0)}be.prototype.resume=function(){var re=this._readableState;return re.flowing||(I("resume"),re.flowing=!re.readableListening,ze(this,re)),re.paused=!1,this};function ze(re,ie){ie.resumeScheduled||(ie.resumeScheduled=!0,u.nextTick(xe,re,ie))}function xe(re,ie){I("resume",ie.reading),ie.reading||re.read(0),ie.resumeScheduled=!1,re.emit("resume"),fe(re),ie.flowing&&!ie.reading&&re.read(0)}be.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function fe(re){var ie=re._readableState;for(I("flow",ie.flowing);ie.flowing&&re.read()!==null;);}be.prototype.wrap=function(re){var ie=this,de=this._readableState,Ae=!1;re.on("end",function(){if(I("wrapped end"),de.decoder&&!de.ended){var st=de.decoder.end();st&&st.length&&ie.push(st)}ie.push(null)}),re.on("data",function(st){if(I("wrapped data"),de.decoder&&(st=de.decoder.write(st)),!(de.objectMode&&st==null)&&!(!de.objectMode&&(!st||!st.length))){var Qe=ie.push(st);Qe||(Ae=!0,re.pause())}});for(var Be in re)this[Be]===void 0&&typeof re[Be]=="function"&&(this[Be]=function(Qe){return function(){return re[Qe].apply(re,arguments)}}(Be));for(var He=0;He<oe.length;He++)re.on(oe[He],this.emit.bind(this,oe[He]));return this._read=function(st){I("wrapped _read",st),Ae&&(Ae=!1,re.resume())},this},typeof Symbol=="function"&&(be.prototype[Symbol.asyncIterator]=function(){return Q===void 0&&(Q=s("./internal/streams/async_iterator")),Q(this)}),Object.defineProperty(be.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(be.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(be.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ie){this._readableState&&(this._readableState.flowing=ie)}}),be._fromList=W,Object.defineProperty(be.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function W(re,ie){if(ie.length===0)return null;var de;return ie.objectMode?de=ie.buffer.shift():!re||re>=ie.length?(ie.decoder?de=ie.buffer.join(""):ie.buffer.length===1?de=ie.buffer.first():de=ie.buffer.concat(ie.length),ie.buffer.clear()):de=ie.buffer.consume(re,ie.decoder),de}function Z(re){var ie=re._readableState;I("endReadable",ie.endEmitted),ie.endEmitted||(ie.ended=!0,u.nextTick(me,ie,re))}function me(re,ie){if(I("endReadableNT",re.endEmitted,re.length),!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ie.readable=!1,ie.emit("end"),re.autoDestroy)){var de=ie._writableState;(!de||de.autoDestroy&&de.finished)&&ie.destroy()}}typeof Symbol=="function"&&(be.from=function(re,ie){return ee===void 0&&(ee=s("./internal/streams/from")),ee(be,re,ie)});function Ce(re,ie){for(var de=0,Ae=re.length;de<Ae;de++)if(re[de]===ie)return de;return-1}}).call(this)}).call(this,s("_process"),typeof J!="undefined"?J: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,w,_){"use strict";w.exports=h;var u=s("../errors").codes,p=u.ERR_METHOD_NOT_IMPLEMENTED,y=u.ERR_MULTIPLE_CALLBACK,m=u.ERR_TRANSFORM_ALREADY_TRANSFORMING,b=u.ERR_TRANSFORM_WITH_LENGTH_0,v=s("./_stream_duplex");s("inherits")(h,v);function c(T,I){var R=this._transformState;R.transforming=!1;var N=R.writecb;if(N===null)return this.emit("error",new y);R.writechunk=null,R.writecb=null,I!=null&&this.push(I),N(T);var k=this._readableState;k.reading=!1,(k.needReadable||k.length<k.highWaterMark)&&this._read(k.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",g)}function g(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(I,R){x(T,I,R)}):x(this,null,null)}h.prototype.push=function(T,I){return this._transformState.needTransform=!1,v.prototype.push.call(this,T,I)},h.prototype._transform=function(T,I,R){R(new p("_transform()"))},h.prototype._write=function(T,I,R){var N=this._transformState;if(N.writecb=R,N.writechunk=T,N.writeencoding=I,!N.transforming){var k=this._readableState;(N.needTransform||k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}},h.prototype._read=function(T){var I=this._transformState;I.writechunk!==null&&!I.transforming?(I.transforming=!0,this._transform(I.writechunk,I.writeencoding,I.afterTransform)):I.needTransform=!0},h.prototype._destroy=function(T,I){v.prototype._destroy.call(this,T,function(R){I(R)})};function x(T,I,R){if(I)return T.emit("error",I);if(R!=null&&T.push(R),T._writableState.length)throw new b;if(T._transformState.transforming)throw new m;return T.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(s,w,_){(function(u,p){(function(){"use strict";w.exports=le;function y(fe,W,Z){this.chunk=fe,this.encoding=W,this.callback=Z,this.next=null}function m(fe){var W=this;this.next=null,this.entry=null,this.finish=function(){xe(W,fe)}}var b;le.WritableState=oe;var v={deprecate:s("util-deprecate")},c=s("./internal/streams/stream"),h=s("buffer").Buffer,g=(typeof p!="undefined"?p: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 g}var I=s("./internal/streams/destroy"),R=s("./internal/streams/state"),N=R.getHighWaterMark,k=s("../errors").codes,L=k.ERR_INVALID_ARG_TYPE,H=k.ERR_METHOD_NOT_IMPLEMENTED,M=k.ERR_MULTIPLE_CALLBACK,F=k.ERR_STREAM_CANNOT_PIPE,P=k.ERR_STREAM_DESTROYED,U=k.ERR_STREAM_NULL_VALUES,G=k.ERR_STREAM_WRITE_AFTER_END,Q=k.ERR_UNKNOWN_ENCODING,ee=I.errorOrDestroy;s("inherits")(le,c);function ae(){}function oe(fe,W,Z){b=b||s("./_stream_duplex"),fe=fe||{},typeof Z!="boolean"&&(Z=W instanceof b),this.objectMode=!!fe.objectMode,Z&&(this.objectMode=this.objectMode||!!fe.writableObjectMode),this.highWaterMark=N(this,fe,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var me=fe.decodeStrings===!1;this.decodeStrings=!me,this.defaultEncoding=fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ce){ke(W,Ce)},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 m(this)}oe.prototype.getBuffer=function(){for(var W=this.bufferedRequest,Z=[];W;)Z.push(W),W=W.next;return Z},function(){try{Object.defineProperty(oe.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(le,Symbol.hasInstance,{value:function(W){return he.call(this,W)?!0:this!==le?!1:W&&W._writableState instanceof oe}})):he=function(W){return W instanceof this};function le(fe){b=b||s("./_stream_duplex");var W=this instanceof b;if(!W&&!he.call(le,this))return new le(fe);this._writableState=new oe(fe,this,W),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)}le.prototype.pipe=function(){ee(this,new F)};function be(fe,W){var Z=new G;ee(fe,Z),u.nextTick(W,Z)}function pe(fe,W,Z,me){var Ce;return Z===null?Ce=new U:typeof Z!="string"&&!W.objectMode&&(Ce=new L("chunk",["string","Buffer"],Z)),Ce?(ee(fe,Ce),u.nextTick(me,Ce),!1):!0}le.prototype.write=function(fe,W,Z){var me=this._writableState,Ce=!1,re=!me.objectMode&&T(fe);return re&&!h.isBuffer(fe)&&(fe=x(fe)),typeof W=="function"&&(Z=W,W=null),re?W="buffer":W||(W=me.defaultEncoding),typeof Z!="function"&&(Z=ae),me.ending?be(this,Z):(re||pe(this,me,fe,Z))&&(me.pendingcb++,Ce=ne(this,me,re,fe,W,Z)),Ce},le.prototype.cork=function(){this._writableState.corked++},le.prototype.uncork=function(){var fe=this._writableState;fe.corked&&(fe.corked--,!fe.writing&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&Me(this,fe))},le.prototype.setDefaultEncoding=function(W){if(typeof W=="string"&&(W=W.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((W+"").toLowerCase())>-1))throw new Q(W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(le.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _e(fe,W,Z){return!fe.objectMode&&fe.decodeStrings!==!1&&typeof W=="string"&&(W=h.from(W,Z)),W}Object.defineProperty(le.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ne(fe,W,Z,me,Ce,re){if(!Z){var ie=_e(W,me,Ce);me!==ie&&(Z=!0,Ce="buffer",me=ie)}var de=W.objectMode?1:me.length;W.length+=de;var Ae=W.length<W.highWaterMark;if(Ae||(W.needDrain=!0),W.writing||W.corked){var Be=W.lastBufferedRequest;W.lastBufferedRequest={chunk:me,encoding:Ce,isBuf:Z,callback:re,next:null},Be?Be.next=W.lastBufferedRequest:W.bufferedRequest=W.lastBufferedRequest,W.bufferedRequestCount+=1}else ue(fe,W,!1,de,me,Ce,re);return Ae}function ue(fe,W,Z,me,Ce,re,ie){W.writelen=me,W.writecb=ie,W.writing=!0,W.sync=!0,W.destroyed?W.onwrite(new P("write")):Z?fe._writev(Ce,W.onwrite):fe._write(Ce,re,W.onwrite),W.sync=!1}function ce(fe,W,Z,me,Ce){--W.pendingcb,Z?(u.nextTick(Ce,me),u.nextTick(it,fe,W),fe._writableState.errorEmitted=!0,ee(fe,me)):(Ce(me),fe._writableState.errorEmitted=!0,ee(fe,me),it(fe,W))}function Re(fe){fe.writing=!1,fe.writecb=null,fe.length-=fe.writelen,fe.writelen=0}function ke(fe,W){var Z=fe._writableState,me=Z.sync,Ce=Z.writecb;if(typeof Ce!="function")throw new M;if(Re(Z),W)ce(fe,Z,me,W,Ce);else{var re=We(Z)||fe.destroyed;!re&&!Z.corked&&!Z.bufferProcessing&&Z.bufferedRequest&&Me(fe,Z),me?u.nextTick(Ne,fe,Z,re,Ce):Ne(fe,Z,re,Ce)}}function Ne(fe,W,Z,me){Z||De(fe,W),W.pendingcb--,me(),it(fe,W)}function De(fe,W){W.length===0&&W.needDrain&&(W.needDrain=!1,fe.emit("drain"))}function Me(fe,W){W.bufferProcessing=!0;var Z=W.bufferedRequest;if(fe._writev&&Z&&Z.next){var me=W.bufferedRequestCount,Ce=new Array(me),re=W.corkedRequestsFree;re.entry=Z;for(var ie=0,de=!0;Z;)Ce[ie]=Z,Z.isBuf||(de=!1),Z=Z.next,ie+=1;Ce.allBuffers=de,ue(fe,W,!0,W.length,Ce,"",re.finish),W.pendingcb++,W.lastBufferedRequest=null,re.next?(W.corkedRequestsFree=re.next,re.next=null):W.corkedRequestsFree=new m(W),W.bufferedRequestCount=0}else{for(;Z;){var Ae=Z.chunk,Be=Z.encoding,He=Z.callback,st=W.objectMode?1:Ae.length;if(ue(fe,W,!1,st,Ae,Be,He),Z=Z.next,W.bufferedRequestCount--,W.writing)break}Z===null&&(W.lastBufferedRequest=null)}W.bufferedRequest=Z,W.bufferProcessing=!1}le.prototype._write=function(fe,W,Z){Z(new H("_write()"))},le.prototype._writev=null,le.prototype.end=function(fe,W,Z){var me=this._writableState;return typeof fe=="function"?(Z=fe,fe=null,W=null):typeof W=="function"&&(Z=W,W=null),fe!=null&&this.write(fe,W),me.corked&&(me.corked=1,this.uncork()),me.ending||ze(this,me,Z),this},Object.defineProperty(le.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function We(fe){return fe.ending&&fe.length===0&&fe.bufferedRequest===null&&!fe.finished&&!fe.writing}function je(fe,W){fe._final(function(Z){W.pendingcb--,Z&&ee(fe,Z),W.prefinished=!0,fe.emit("prefinish"),it(fe,W)})}function et(fe,W){!W.prefinished&&!W.finalCalled&&(typeof fe._final=="function"&&!W.destroyed?(W.pendingcb++,W.finalCalled=!0,u.nextTick(je,fe,W)):(W.prefinished=!0,fe.emit("prefinish")))}function it(fe,W){var Z=We(W);if(Z&&(et(fe,W),W.pendingcb===0&&(W.finished=!0,fe.emit("finish"),W.autoDestroy))){var me=fe._readableState;(!me||me.autoDestroy&&me.endEmitted)&&fe.destroy()}return Z}function ze(fe,W,Z){W.ending=!0,it(fe,W),Z&&(W.finished?u.nextTick(Z):fe.once("finish",Z)),W.ended=!0,fe.writable=!1}function xe(fe,W,Z){var me=fe.entry;for(fe.entry=null;me;){var Ce=me.callback;W.pendingcb--,Ce(Z),me=me.next}W.corkedRequestsFree.next=fe}Object.defineProperty(le.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(W){this._writableState&&(this._writableState.destroyed=W)}}),le.prototype.destroy=I.destroy,le.prototype._undestroy=I.undestroy,le.prototype._destroy=function(fe,W){W(fe)}}).call(this)}).call(this,s("_process"),typeof J!="undefined"?J: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,w,_){(function(u){(function(){"use strict";var p;function y(U,G,Q){return G=m(G),G in U?Object.defineProperty(U,G,{value:Q,enumerable:!0,configurable:!0,writable:!0}):U[G]=Q,U}function m(U){var G=b(U,"string");return typeof G=="symbol"?G:String(G)}function b(U,G){if(typeof U!="object"||U===null)return U;var Q=U[Symbol.toPrimitive];if(Q!==void 0){var ee=Q.call(U,G||"default");if(typeof ee!="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(U)}var v=s("./end-of-stream"),c=Symbol("lastResolve"),h=Symbol("lastReject"),g=Symbol("error"),x=Symbol("ended"),T=Symbol("lastPromise"),I=Symbol("handlePromise"),R=Symbol("stream");function N(U,G){return{value:U,done:G}}function k(U){var G=U[c];if(G!==null){var Q=U[R].read();Q!==null&&(U[T]=null,U[c]=null,U[h]=null,G(N(Q,!1)))}}function L(U){u.nextTick(k,U)}function H(U,G){return function(Q,ee){U.then(function(){if(G[x]){Q(N(void 0,!0));return}G[I](Q,ee)},ee)}}var M=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((p={get stream(){return this[R]},next:function(){var G=this,Q=this[g];if(Q!==null)return Promise.reject(Q);if(this[x])return Promise.resolve(N(void 0,!0));if(this[R].destroyed)return new Promise(function(he,le){u.nextTick(function(){G[g]?le(G[g]):he(N(void 0,!0))})});var ee=this[T],ae;if(ee)ae=new Promise(H(ee,this));else{var oe=this[R].read();if(oe!==null)return Promise.resolve(N(oe,!1));ae=new Promise(this[I])}return this[T]=ae,ae}},y(p,Symbol.asyncIterator,function(){return this}),y(p,"return",function(){var G=this;return new Promise(function(Q,ee){G[R].destroy(null,function(ae){if(ae){ee(ae);return}Q(N(void 0,!0))})})}),p),M),P=function(G){var Q,ee=Object.create(F,(Q={},y(Q,R,{value:G,writable:!0}),y(Q,c,{value:null,writable:!0}),y(Q,h,{value:null,writable:!0}),y(Q,g,{value:null,writable:!0}),y(Q,x,{value:G._readableState.endEmitted,writable:!0}),y(Q,I,{value:function(oe,he){var le=ee[R].read();le?(ee[T]=null,ee[c]=null,ee[h]=null,oe(N(le,!1))):(ee[c]=oe,ee[h]=he)},writable:!0}),Q));return ee[T]=null,v(G,function(ae){if(ae&&ae.code!=="ERR_STREAM_PREMATURE_CLOSE"){var oe=ee[h];oe!==null&&(ee[T]=null,ee[c]=null,ee[h]=null,oe(ae)),ee[g]=ae;return}var he=ee[c];he!==null&&(ee[T]=null,ee[c]=null,ee[h]=null,he(N(void 0,!0))),ee[x]=!0}),G.on("readable",L.bind(null,ee)),ee};w.exports=P}).call(this)}).call(this,s("_process"))},{"./end-of-stream":408,_process:467}],406:[function(s,w,_){"use strict";function u(k,L){var H=Object.keys(k);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(k);L&&(M=M.filter(function(F){return Object.getOwnPropertyDescriptor(k,F).enumerable})),H.push.apply(H,M)}return H}function p(k){for(var L=1;L<arguments.length;L++){var H=arguments[L]!=null?arguments[L]:{};L%2?u(Object(H),!0).forEach(function(M){y(k,M,H[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(H)):u(Object(H)).forEach(function(M){Object.defineProperty(k,M,Object.getOwnPropertyDescriptor(H,M))})}return k}function y(k,L,H){return L=c(L),L in k?Object.defineProperty(k,L,{value:H,enumerable:!0,configurable:!0,writable:!0}):k[L]=H,k}function m(k,L){if(!(k instanceof L))throw new TypeError("Cannot call a class as a function")}function b(k,L){for(var H=0;H<L.length;H++){var M=L[H];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(k,c(M.key),M)}}function v(k,L,H){return L&&b(k.prototype,L),H&&b(k,H),Object.defineProperty(k,"prototype",{writable:!1}),k}function c(k){var L=h(k,"string");return typeof L=="symbol"?L:String(L)}function h(k,L){if(typeof k!="object"||k===null)return k;var H=k[Symbol.toPrimitive];if(H!==void 0){var M=H.call(k,L||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(k)}var g=s("buffer"),x=g.Buffer,T=s("util"),I=T.inspect,R=I&&I.custom||"inspect";function N(k,L,H){x.prototype.copy.call(k,L,H)}w.exports=function(){function k(){m(this,k),this.head=null,this.tail=null,this.length=0}return v(k,[{key:"push",value:function(H){var M={data:H,next:null};this.length>0?this.tail.next=M:this.head=M,this.tail=M,++this.length}},{key:"unshift",value:function(H){var M={data:H,next:this.head};this.length===0&&(this.tail=M),this.head=M,++this.length}},{key:"shift",value:function(){if(this.length!==0){var H=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,H}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(H){if(this.length===0)return"";for(var M=this.head,F=""+M.data;M=M.next;)F+=H+M.data;return F}},{key:"concat",value:function(H){if(this.length===0)return x.alloc(0);for(var M=x.allocUnsafe(H>>>0),F=this.head,P=0;F;)N(F.data,M,P),P+=F.data.length,F=F.next;return M}},{key:"consume",value:function(H,M){var F;return H<this.head.data.length?(F=this.head.data.slice(0,H),this.head.data=this.head.data.slice(H)):H===this.head.data.length?F=this.shift():F=M?this._getString(H):this._getBuffer(H),F}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(H){var M=this.head,F=1,P=M.data;for(H-=P.length;M=M.next;){var U=M.data,G=H>U.length?U.length:H;if(G===U.length?P+=U:P+=U.slice(0,H),H-=G,H===0){G===U.length?(++F,M.next?this.head=M.next:this.head=this.tail=null):(this.head=M,M.data=U.slice(G));break}++F}return this.length-=F,P}},{key:"_getBuffer",value:function(H){var M=x.allocUnsafe(H),F=this.head,P=1;for(F.data.copy(M),H-=F.data.length;F=F.next;){var U=F.data,G=H>U.length?U.length:H;if(U.copy(M,M.length-H,0,G),H-=G,H===0){G===U.length?(++P,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=U.slice(G));break}++P}return this.length-=P,M}},{key:R,value:function(H,M){return I(this,p(p({},M),{},{depth:0,customInspect:!1}))}}]),k}()},{buffer:90,util:89}],407:[function(s,w,_){(function(u){(function(){"use strict";function p(h,g){var x=this,T=this._readableState&&this._readableState.destroyed,I=this._writableState&&this._writableState.destroyed;return T||I?(g?g(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){!g&&R?x._writableState?x._writableState.errorEmitted?u.nextTick(m,x):(x._writableState.errorEmitted=!0,u.nextTick(y,x,R)):u.nextTick(y,x,R):g?(u.nextTick(m,x),g(R)):u.nextTick(m,x)}),this)}function y(h,g){v(h,g),m(h)}function m(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function b(){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,g){h.emit("error",g)}function c(h,g){var x=h._readableState,T=h._writableState;x&&x.autoDestroy||T&&T.autoDestroy?h.destroy(g):h.emit("error",g)}w.exports={destroy:p,undestroy:b,errorOrDestroy:c}}).call(this)}).call(this,s("_process"))},{_process:467}],408:[function(s,w,_){"use strict";var u=s("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function p(v){var c=!1;return function(){if(!c){c=!0;for(var h=arguments.length,g=new Array(h),x=0;x<h;x++)g[x]=arguments[x];v.apply(this,g)}}}function y(){}function m(v){return v.setHeader&&typeof v.abort=="function"}function b(v,c,h){if(typeof c=="function")return b(v,null,c);c||(c={}),h=p(h||y);var g=c.readable||c.readable!==!1&&v.readable,x=c.writable||c.writable!==!1&&v.writable,T=function(){v.writable||R()},I=v._writableState&&v._writableState.finished,R=function(){x=!1,I=!0,g||h.call(v)},N=v._readableState&&v._readableState.endEmitted,k=function(){g=!1,N=!0,x||h.call(v)},L=function(P){h.call(v,P)},H=function(){var P;if(g&&!N)return(!v._readableState||!v._readableState.ended)&&(P=new u),h.call(v,P);if(x&&!I)return(!v._writableState||!v._writableState.ended)&&(P=new u),h.call(v,P)},M=function(){v.req.on("finish",R)};return m(v)?(v.on("complete",R),v.on("abort",H),v.req?M():v.on("request",M)):x&&!v._writableState&&(v.on("end",T),v.on("close",T)),v.on("end",k),v.on("finish",R),c.error!==!1&&v.on("error",L),v.on("close",H),function(){v.removeListener("complete",R),v.removeListener("abort",H),v.removeListener("request",M),v.req&&v.req.removeListener("finish",R),v.removeListener("end",T),v.removeListener("close",T),v.removeListener("finish",R),v.removeListener("end",k),v.removeListener("error",L),v.removeListener("close",H)}}w.exports=b},{"../../../errors":399}],409:[function(s,w,_){w.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(s,w,_){"use strict";var u;function p(R){var N=!1;return function(){N||(N=!0,R.apply(void 0,arguments))}}var y=s("../../../errors").codes,m=y.ERR_MISSING_ARGS,b=y.ERR_STREAM_DESTROYED;function v(R){if(R)throw R}function c(R){return R.setHeader&&typeof R.abort=="function"}function h(R,N,k,L){L=p(L);var H=!1;R.on("close",function(){H=!0}),u===void 0&&(u=s("./end-of-stream")),u(R,{readable:N,writable:k},function(F){if(F)return L(F);H=!0,L()});var M=!1;return function(F){if(!H&&!M){if(M=!0,c(R))return R.abort();if(typeof R.destroy=="function")return R.destroy();L(F||new b("pipe"))}}}function g(R){R()}function x(R,N){return R.pipe(N)}function T(R){return!R.length||typeof R[R.length-1]!="function"?v:R.pop()}function I(){for(var R=arguments.length,N=new Array(R),k=0;k<R;k++)N[k]=arguments[k];var L=T(N);if(Array.isArray(N[0])&&(N=N[0]),N.length<2)throw new m("streams");var H,M=N.map(function(F,P){var U=P<N.length-1,G=P>0;return h(F,U,G,function(Q){H||(H=Q),Q&&M.forEach(g),!U&&(M.forEach(g),L(H))})});return N.reduce(x)}w.exports=I},{"../../../errors":399,"./end-of-stream":408}],411:[function(s,w,_){"use strict";var u=s("../../../errors").codes.ERR_INVALID_OPT_VALUE;function p(m,b,v){return m.highWaterMark!=null?m.highWaterMark:b?m[v]:null}function y(m,b,v,c){var h=p(b,c,v);if(h!=null){if(!(isFinite(h)&&Math.floor(h)===h)||h<0){var g=c?v:"highWaterMark";throw new u(g,h)}return Math.floor(h)}return m.objectMode?16:16*1024}w.exports={getHighWaterMark:y}},{"../../../errors":399}],412:[function(s,w,_){arguments[4][393][0].apply(_,arguments)},{dup:393,events:344}],413:[function(s,w,_){"use strict";var u=s("safe-buffer").Buffer,p=u.isEncoding||function(M){switch(M=""+M,M&&M.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 y(M){if(!M)return"utf8";for(var F;;)switch(M){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 M;default:if(F)return;M=(""+M).toLowerCase(),F=!0}}function m(M){var F=y(M);if(typeof F!="string"&&(u.isEncoding===p||!p(M)))throw new Error("Unknown encoding: "+M);return F||M}_.StringDecoder=b;function b(M){this.encoding=m(M);var F;switch(this.encoding){case"utf16le":this.text=I,this.end=R,F=4;break;case"utf8":this.fillLast=g,F=4;break;case"base64":this.text=N,this.end=k,F=3;break;default:this.write=L,this.end=H;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=u.allocUnsafe(F)}b.prototype.write=function(M){if(M.length===0)return"";var F,P;if(this.lastNeed){if(F=this.fillLast(M),F===void 0)return"";P=this.lastNeed,this.lastNeed=0}else P=0;return P<M.length?F?F+this.text(M,P):this.text(M,P):F||""},b.prototype.end=T,b.prototype.text=x,b.prototype.fillLast=function(M){if(this.lastNeed<=M.length)return M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,M.length),this.lastNeed-=M.length};function v(M){return M<=127?0:M>>5===6?2:M>>4===14?3:M>>3===30?4:M>>6===2?-1:-2}function c(M,F,P){var U=F.length-1;if(U<P)return 0;var G=v(F[U]);return G>=0?(G>0&&(M.lastNeed=G-1),G):--U<P||G===-2?0:(G=v(F[U]),G>=0?(G>0&&(M.lastNeed=G-2),G):--U<P||G===-2?0:(G=v(F[U]),G>=0?(G>0&&(G===2?G=0:M.lastNeed=G-3),G):0))}function h(M,F,P){if((F[0]&192)!==128)return M.lastNeed=0,"\uFFFD";if(M.lastNeed>1&&F.length>1){if((F[1]&192)!==128)return M.lastNeed=1,"\uFFFD";if(M.lastNeed>2&&F.length>2&&(F[2]&192)!==128)return M.lastNeed=2,"\uFFFD"}}function g(M){var F=this.lastTotal-this.lastNeed,P=h(this,M,F);if(P!==void 0)return P;if(this.lastNeed<=M.length)return M.copy(this.lastChar,F,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);M.copy(this.lastChar,F,0,M.length),this.lastNeed-=M.length}function x(M,F){var P=c(this,M,F);if(!this.lastNeed)return M.toString("utf8",F);this.lastTotal=P;var U=M.length-(P-this.lastNeed);return M.copy(this.lastChar,0,U),M.toString("utf8",F,U)}function T(M){var F=M&&M.length?this.write(M):"";return this.lastNeed?F+"\uFFFD":F}function I(M,F){if((M.length-F)%2===0){var P=M.toString("utf16le",F);if(P){var U=P.charCodeAt(P.length-1);if(U>=55296&&U<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1],P.slice(0,-1)}return P}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=M[M.length-1],M.toString("utf16le",F,M.length-1)}function R(M){var F=M&&M.length?this.write(M):"";if(this.lastNeed){var P=this.lastTotal-this.lastNeed;return F+this.lastChar.toString("utf16le",0,P)}return F}function N(M,F){var P=(M.length-F)%3;return P===0?M.toString("base64",F):(this.lastNeed=3-P,this.lastTotal=3,P===1?this.lastChar[0]=M[M.length-1]:(this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1]),M.toString("base64",F,M.length-P))}function k(M){var F=M&&M.length?this.write(M):"";return this.lastNeed?F+this.lastChar.toString("base64",0,3-this.lastNeed):F}function L(M){return M.toString(this.encoding)}function H(M){return M&&M.length?this.write(M):""}},{"safe-buffer":396}],414:[function(s,w,_){(function(u,p){(function(){var y=s("process/browser.js").nextTick,m=Function.prototype.apply,b=Array.prototype.slice,v={},c=0;_.setTimeout=function(){return new h(m.call(setTimeout,window,arguments),clearTimeout)},_.setInterval=function(){return new h(m.call(setInterval,window,arguments),clearInterval)},_.clearTimeout=_.clearInterval=function(g){g.close()};function h(g,x){this._id=g,this._clearFn=x}h.prototype.unref=h.prototype.ref=function(){},h.prototype.close=function(){this._clearFn.call(window,this._id)},_.enroll=function(g,x){clearTimeout(g._idleTimeoutId),g._idleTimeout=x},_.unenroll=function(g){clearTimeout(g._idleTimeoutId),g._idleTimeout=-1},_._unrefActive=_.active=function(g){clearTimeout(g._idleTimeoutId);var x=g._idleTimeout;x>=0&&(g._idleTimeoutId=setTimeout(function(){g._onTimeout&&g._onTimeout()},x))},_.setImmediate=typeof u=="function"?u:function(g){var x=c++,T=arguments.length<2?!1:b.call(arguments,1);return v[x]=!0,y(function(){v[x]&&(T?g.apply(null,T):g.call(null),_.clearImmediate(x))}),x},_.clearImmediate=typeof p=="function"?p:function(g){delete v[g]}}).call(this)}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(s,w,_){var u=s("buffer").Buffer;w.exports=function(p){if(p instanceof Uint8Array){if(p.byteOffset===0&&p.byteLength===p.buffer.byteLength)return p.buffer;if(typeof p.buffer.slice=="function")return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}if(u.isBuffer(p)){for(var y=new Uint8Array(p.length),m=p.length,b=0;b<m;b++)y[b]=p[b];return y.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(s,w,_){(function(u){(function(){w.exports=p;function p(m,b){if(y("noDeprecation"))return m;var v=!1;function c(){if(!v){if(y("throwDeprecation"))throw new Error(b);y("traceDeprecation")?console.trace(b):console.warn(b),v=!0}return m.apply(this,arguments)}return c}function y(m){try{if(!u.localStorage)return!1}catch(v){return!1}var b=u.localStorage[m];return b==null?!1:String(b).toLowerCase()==="true"}}).call(this)}).call(this,typeof J!="undefined"?J:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(s,w,_){arguments[4][84][0].apply(_,arguments)},{dup:84}],418:[function(s,w,_){"use strict";var u=s("is-arguments"),p=s("is-generator-function"),y=s("which-typed-array"),m=s("is-typed-array");function b(Be){return Be.call.bind(Be)}var v=typeof BigInt!="undefined",c=typeof Symbol!="undefined",h=b(Object.prototype.toString),g=b(Number.prototype.valueOf),x=b(String.prototype.valueOf),T=b(Boolean.prototype.valueOf);if(v)var I=b(BigInt.prototype.valueOf);if(c)var R=b(Symbol.prototype.valueOf);function N(Be,He){if(typeof Be!="object")return!1;try{return He(Be),!0}catch(st){return!1}}_.isArgumentsObject=u,_.isGeneratorFunction=p,_.isTypedArray=m;function k(Be){return typeof Promise!="undefined"&&Be instanceof Promise||Be!==null&&typeof Be=="object"&&typeof Be.then=="function"&&typeof Be.catch=="function"}_.isPromise=k;function L(Be){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Be):m(Be)||Me(Be)}_.isArrayBufferView=L;function H(Be){return y(Be)==="Uint8Array"}_.isUint8Array=H;function M(Be){return y(Be)==="Uint8ClampedArray"}_.isUint8ClampedArray=M;function F(Be){return y(Be)==="Uint16Array"}_.isUint16Array=F;function P(Be){return y(Be)==="Uint32Array"}_.isUint32Array=P;function U(Be){return y(Be)==="Int8Array"}_.isInt8Array=U;function G(Be){return y(Be)==="Int16Array"}_.isInt16Array=G;function Q(Be){return y(Be)==="Int32Array"}_.isInt32Array=Q;function ee(Be){return y(Be)==="Float32Array"}_.isFloat32Array=ee;function ae(Be){return y(Be)==="Float64Array"}_.isFloat64Array=ae;function oe(Be){return y(Be)==="BigInt64Array"}_.isBigInt64Array=oe;function he(Be){return y(Be)==="BigUint64Array"}_.isBigUint64Array=he;function le(Be){return h(Be)==="[object Map]"}le.working=typeof Map!="undefined"&&le(new Map);function be(Be){return typeof Map=="undefined"?!1:le.working?le(Be):Be instanceof Map}_.isMap=be;function pe(Be){return h(Be)==="[object Set]"}pe.working=typeof Set!="undefined"&&pe(new Set);function _e(Be){return typeof Set=="undefined"?!1:pe.working?pe(Be):Be instanceof Set}_.isSet=_e;function ne(Be){return h(Be)==="[object WeakMap]"}ne.working=typeof WeakMap!="undefined"&&ne(new WeakMap);function ue(Be){return typeof WeakMap=="undefined"?!1:ne.working?ne(Be):Be instanceof WeakMap}_.isWeakMap=ue;function ce(Be){return h(Be)==="[object WeakSet]"}ce.working=typeof WeakSet!="undefined"&&ce(new WeakSet);function Re(Be){return ce(Be)}_.isWeakSet=Re;function ke(Be){return h(Be)==="[object ArrayBuffer]"}ke.working=typeof ArrayBuffer!="undefined"&&ke(new ArrayBuffer);function Ne(Be){return typeof ArrayBuffer=="undefined"?!1:ke.working?ke(Be):Be instanceof ArrayBuffer}_.isArrayBuffer=Ne;function De(Be){return h(Be)==="[object DataView]"}De.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&De(new DataView(new ArrayBuffer(1),0,1));function Me(Be){return typeof DataView=="undefined"?!1:De.working?De(Be):Be instanceof DataView}_.isDataView=Me;var We=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function je(Be){return h(Be)==="[object SharedArrayBuffer]"}function et(Be){return typeof We=="undefined"?!1:(typeof je.working=="undefined"&&(je.working=je(new We)),je.working?je(Be):Be instanceof We)}_.isSharedArrayBuffer=et;function it(Be){return h(Be)==="[object AsyncFunction]"}_.isAsyncFunction=it;function ze(Be){return h(Be)==="[object Map Iterator]"}_.isMapIterator=ze;function xe(Be){return h(Be)==="[object Set Iterator]"}_.isSetIterator=xe;function fe(Be){return h(Be)==="[object Generator]"}_.isGeneratorObject=fe;function W(Be){return h(Be)==="[object WebAssembly.Module]"}_.isWebAssemblyCompiledModule=W;function Z(Be){return N(Be,g)}_.isNumberObject=Z;function me(Be){return N(Be,x)}_.isStringObject=me;function Ce(Be){return N(Be,T)}_.isBooleanObject=Ce;function re(Be){return v&&N(Be,I)}_.isBigIntObject=re;function ie(Be){return c&&N(Be,R)}_.isSymbolObject=ie;function de(Be){return Z(Be)||me(Be)||Ce(Be)||re(Be)||ie(Be)}_.isBoxedPrimitive=de;function Ae(Be){return typeof Uint8Array!="undefined"&&(Ne(Be)||et(Be))}_.isAnyArrayBuffer=Ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Be){Object.defineProperty(_,Be,{enumerable:!1,value:function(){throw new Error(Be+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(s,w,_){(function(u){(function(){var p=Object.getOwnPropertyDescriptors||function(We){for(var je=Object.keys(We),et={},it=0;it<je.length;it++)et[je[it]]=Object.getOwnPropertyDescriptor(We,je[it]);return et},y=/%[sdj%]/g;_.format=function(Me){if(!G(Me)){for(var We=[],je=0;je<arguments.length;je++)We.push(c(arguments[je]));return We.join(" ")}for(var je=1,et=arguments,it=et.length,ze=String(Me).replace(y,function(fe){if(fe==="%%")return"%";if(je>=it)return fe;switch(fe){case"%s":return String(et[je++]);case"%d":return Number(et[je++]);case"%j":try{return JSON.stringify(et[je++])}catch(W){return"[Circular]"}default:return fe}}),xe=et[je];je<it;xe=et[++je])F(xe)||!oe(xe)?ze+=" "+xe:ze+=" "+c(xe);return ze},_.deprecate=function(Me,We){if(typeof u!="undefined"&&u.noDeprecation===!0)return Me;if(typeof u=="undefined")return function(){return _.deprecate(Me,We).apply(this,arguments)};var je=!1;function et(){if(!je){if(u.throwDeprecation)throw new Error(We);u.traceDeprecation?console.trace(We):console.error(We),je=!0}return Me.apply(this,arguments)}return et};var m={},b=/^$/;if(u.env.NODE_DEBUG){var v=u.env.NODE_DEBUG;v=v.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),b=new RegExp("^"+v+"$","i")}_.debuglog=function(Me){if(Me=Me.toUpperCase(),!m[Me])if(b.test(Me)){var We=u.pid;m[Me]=function(){var je=_.format.apply(_,arguments);console.error("%s %d: %s",Me,We,je)}}else m[Me]=function(){};return m[Me]};function c(Me,We){var je={seen:[],stylize:g};return arguments.length>=3&&(je.depth=arguments[2]),arguments.length>=4&&(je.colors=arguments[3]),M(We)?je.showHidden=We:We&&_._extend(je,We),ee(je.showHidden)&&(je.showHidden=!1),ee(je.depth)&&(je.depth=2),ee(je.colors)&&(je.colors=!1),ee(je.customInspect)&&(je.customInspect=!0),je.colors&&(je.stylize=h),T(je,Me,je.depth)}_.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(Me,We){var je=c.styles[We];return je?"\x1B["+c.colors[je][0]+"m"+Me+"\x1B["+c.colors[je][1]+"m":Me}function g(Me,We){return Me}function x(Me){var We={};return Me.forEach(function(je,et){We[je]=!0}),We}function T(Me,We,je){if(Me.customInspect&&We&&be(We.inspect)&&We.inspect!==_.inspect&&!(We.constructor&&We.constructor.prototype===We)){var et=We.inspect(je,Me);return G(et)||(et=T(Me,et,je)),et}var it=I(Me,We);if(it)return it;var ze=Object.keys(We),xe=x(ze);if(Me.showHidden&&(ze=Object.getOwnPropertyNames(We)),le(We)&&(ze.indexOf("message")>=0||ze.indexOf("description")>=0))return R(We);if(ze.length===0){if(be(We)){var fe=We.name?": "+We.name:"";return Me.stylize("[Function"+fe+"]","special")}if(ae(We))return Me.stylize(RegExp.prototype.toString.call(We),"regexp");if(he(We))return Me.stylize(Date.prototype.toString.call(We),"date");if(le(We))return R(We)}var W="",Z=!1,me=["{","}"];if(H(We)&&(Z=!0,me=["[","]"]),be(We)){var Ce=We.name?": "+We.name:"";W=" [Function"+Ce+"]"}if(ae(We)&&(W=" "+RegExp.prototype.toString.call(We)),he(We)&&(W=" "+Date.prototype.toUTCString.call(We)),le(We)&&(W=" "+R(We)),ze.length===0&&(!Z||We.length==0))return me[0]+W+me[1];if(je<0)return ae(We)?Me.stylize(RegExp.prototype.toString.call(We),"regexp"):Me.stylize("[Object]","special");Me.seen.push(We);var re;return Z?re=N(Me,We,je,xe,ze):re=ze.map(function(ie){return k(Me,We,je,xe,ie,Z)}),Me.seen.pop(),L(re,W,me)}function I(Me,We){if(ee(We))return Me.stylize("undefined","undefined");if(G(We)){var je="'"+JSON.stringify(We).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Me.stylize(je,"string")}if(U(We))return Me.stylize(""+We,"number");if(M(We))return Me.stylize(""+We,"boolean");if(F(We))return Me.stylize("null","null")}function R(Me){return"["+Error.prototype.toString.call(Me)+"]"}function N(Me,We,je,et,it){for(var ze=[],xe=0,fe=We.length;xe<fe;++xe)Re(We,String(xe))?ze.push(k(Me,We,je,et,String(xe),!0)):ze.push("");return it.forEach(function(W){W.match(/^\d+$/)||ze.push(k(Me,We,je,et,W,!0))}),ze}function k(Me,We,je,et,it,ze){var xe,fe,W;if(W=Object.getOwnPropertyDescriptor(We,it)||{value:We[it]},W.get?W.set?fe=Me.stylize("[Getter/Setter]","special"):fe=Me.stylize("[Getter]","special"):W.set&&(fe=Me.stylize("[Setter]","special")),Re(et,it)||(xe="["+it+"]"),fe||(Me.seen.indexOf(W.value)<0?(F(je)?fe=T(Me,W.value,null):fe=T(Me,W.value,je-1),fe.indexOf(`
`)>-1&&(ze?fe=fe.split(`
`).map(function(Z){return" "+Z}).join(`
`).slice(2):fe=`
`+fe.split(`
`).map(function(Z){return" "+Z}).join(`
`))):fe=Me.stylize("[Circular]","special")),ee(xe)){if(ze&&it.match(/^\d+$/))return fe;xe=JSON.stringify(""+it),xe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(xe=xe.slice(1,-1),xe=Me.stylize(xe,"name")):(xe=xe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),xe=Me.stylize(xe,"string"))}return xe+": "+fe}function L(Me,We,je){var et=0,it=Me.reduce(function(ze,xe){return et++,xe.indexOf(`
`)>=0&&et++,ze+xe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return it>60?je[0]+(We===""?"":We+`
`)+" "+Me.join(`,
`)+" "+je[1]:je[0]+We+" "+Me.join(", ")+" "+je[1]}_.types=s("./support/types");function H(Me){return Array.isArray(Me)}_.isArray=H;function M(Me){return typeof Me=="boolean"}_.isBoolean=M;function F(Me){return Me===null}_.isNull=F;function P(Me){return Me==null}_.isNullOrUndefined=P;function U(Me){return typeof Me=="number"}_.isNumber=U;function G(Me){return typeof Me=="string"}_.isString=G;function Q(Me){return typeof Me=="symbol"}_.isSymbol=Q;function ee(Me){return Me===void 0}_.isUndefined=ee;function ae(Me){return oe(Me)&&_e(Me)==="[object RegExp]"}_.isRegExp=ae,_.types.isRegExp=ae;function oe(Me){return typeof Me=="object"&&Me!==null}_.isObject=oe;function he(Me){return oe(Me)&&_e(Me)==="[object Date]"}_.isDate=he,_.types.isDate=he;function le(Me){return oe(Me)&&(_e(Me)==="[object Error]"||Me instanceof Error)}_.isError=le,_.types.isNativeError=le;function be(Me){return typeof Me=="function"}_.isFunction=be;function pe(Me){return Me===null||typeof Me=="boolean"||typeof Me=="number"||typeof Me=="string"||typeof Me=="symbol"||typeof Me=="undefined"}_.isPrimitive=pe,_.isBuffer=s("./support/isBuffer");function _e(Me){return Object.prototype.toString.call(Me)}function ne(Me){return Me<10?"0"+Me.toString(10):Me.toString(10)}var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ce(){var Me=new Date,We=[ne(Me.getHours()),ne(Me.getMinutes()),ne(Me.getSeconds())].join(":");return[Me.getDate(),ue[Me.getMonth()],We].join(" ")}_.log=function(){console.log("%s - %s",ce(),_.format.apply(_,arguments))},_.inherits=s("inherits"),_._extend=function(Me,We){if(!We||!oe(We))return Me;for(var je=Object.keys(We),et=je.length;et--;)Me[je[et]]=We[je[et]];return Me};function Re(Me,We){return Object.prototype.hasOwnProperty.call(Me,We)}var ke=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;_.promisify=function(We){if(typeof We!="function")throw new TypeError('The "original" argument must be of type Function');if(ke&&We[ke]){var je=We[ke];if(typeof je!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(je,ke,{value:je,enumerable:!1,writable:!1,configurable:!0}),je}function je(){for(var et,it,ze=new Promise(function(W,Z){et=W,it=Z}),xe=[],fe=0;fe<arguments.length;fe++)xe.push(arguments[fe]);xe.push(function(W,Z){W?it(W):et(Z)});try{We.apply(this,xe)}catch(W){it(W)}return ze}return Object.setPrototypeOf(je,Object.getPrototypeOf(We)),ke&&Object.defineProperty(je,ke,{value:je,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(je,p(We))},_.promisify.custom=ke;function Ne(Me,We){if(!Me){var je=new Error("Promise was rejected with a falsy value");je.reason=Me,Me=je}return We(Me)}function De(Me){if(typeof Me!="function")throw new TypeError('The "original" argument must be of type Function');function We(){for(var je=[],et=0;et<arguments.length;et++)je.push(arguments[et]);var it=je.pop();if(typeof it!="function")throw new TypeError("The last argument must be of type Function");var ze=this,xe=function(){return it.apply(ze,arguments)};Me.apply(this,je).then(function(fe){u.nextTick(xe.bind(null,null,fe))},function(fe){u.nextTick(Ne.bind(null,fe,xe))})}return Object.setPrototypeOf(We,Object.getPrototypeOf(Me)),Object.defineProperties(We,p(Me)),We}_.callbackify=De}).call(this)}).call(this,s("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(s,w,_){(function(u){(function(){"use strict";var p=s("for-each"),y=s("available-typed-arrays"),m=s("call-bind"),b=s("call-bind/callBound"),v=s("gopd"),c=b("Object.prototype.toString"),h=s("has-tostringtag/shams")(),g=typeof globalThis=="undefined"?u:globalThis,x=y(),T=b("String.prototype.slice"),I=Object.getPrototypeOf,R=b("Array.prototype.indexOf",!0)||function(M,F){for(var P=0;P<M.length;P+=1)if(M[P]===F)return P;return-1},N={__proto__:null};h&&v&&I?p(x,function(H){var M=new g[H];if(Symbol.toStringTag in M){var F=I(M),P=v(F,Symbol.toStringTag);if(!P){var U=I(F);P=v(U,Symbol.toStringTag)}N["$"+H]=m(P.get)}}):p(x,function(H){var M=new g[H];N["$"+H]=m(M.slice)});var k=function(M){var F=!1;return p(N,function(P,U){if(!F)try{"$"+P(M)===U&&(F=T(U,1))}catch(G){}}),F},L=function(M){var F=!1;return p(N,function(P,U){if(!F)try{P(M),F=T(U,1)}catch(G){}}),F};w.exports=function(M){if(!M||typeof M!="object")return!1;if(!h){var F=T(c(M),8,-1);return R(x,F)>-1?F:F!=="Object"?!1:L(M)}return v?k(M):null}}).call(this)}).call(this,typeof J!="undefined"?J: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,w,_){(function(){"use strict";_.stripBOM=function(u){return u[0]==="\uFEFF"?u.substring(1):u}}).call(this)},{}],422:[function(s,w,_){(function(){"use strict";var u,p,y,m,b,v={}.hasOwnProperty;u=s("xmlbuilder"),p=s("./defaults").defaults,m=function(c){return typeof c=="string"&&(c.indexOf("&")>=0||c.indexOf(">")>=0||c.indexOf("<")>=0)},b=function(c){return"<![CDATA["+y(c)+"]]>"},y=function(c){return c.replace("]]>","]]]]><![CDATA[>")},_.Builder=function(){function c(h){var g,x,T;this.options={},x=p["0.2"];for(g in x)v.call(x,g)&&(T=x[g],this.options[g]=T);for(g in h)v.call(h,g)&&(T=h[g],this.options[g]=T)}return c.prototype.buildObject=function(h){var g,x,T,I,R;return g=this.options.attrkey,x=this.options.charkey,Object.keys(h).length===1&&this.options.rootName===p["0.2"].rootName?(R=Object.keys(h)[0],h=h[R]):R=this.options.rootName,T=function(N){return function(k,L){var H,M,F,P,U,G;if(typeof L!="object")N.options.cdata&&m(L)?k.raw(b(L)):k.txt(L);else if(Array.isArray(L)){for(P in L)if(v.call(L,P)){M=L[P];for(U in M)F=M[U],k=T(k.ele(U),F).up()}}else for(U in L)if(v.call(L,U))if(M=L[U],U===g){if(typeof M=="object")for(H in M)G=M[H],k=k.att(H,G)}else if(U===x)N.options.cdata&&m(M)?k=k.raw(b(M)):k=k.txt(M);else if(Array.isArray(M))for(P in M)v.call(M,P)&&(F=M[P],typeof F=="string"?N.options.cdata&&m(F)?k=k.ele(U).raw(b(F)).up():k=k.ele(U,F).up():k=T(k.ele(U),F).up());else typeof M=="object"?k=T(k.ele(U),M).up():typeof M=="string"&&N.options.cdata&&m(M)?k=k.ele(U).raw(b(M)).up():(M==null&&(M=""),k=k.ele(U,M.toString()).up());return k}}(this),I=u.create(R,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(I,h).end(this.options.renderOpts)},c}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(s,w,_){(function(){_.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,w,_){(function(){"use strict";var u,p,y,m,b,v,c,h,g,x=function(R,N){return function(){return R.apply(N,arguments)}},T=function(R,N){for(var k in N)I.call(N,k)&&(R[k]=N[k]);function L(){this.constructor=R}return L.prototype=N.prototype,R.prototype=new L,R.__super__=N.prototype,R},I={}.hasOwnProperty;h=s("sax"),m=s("events"),u=s("./bom"),c=s("./processors"),g=s("timers").setImmediate,p=s("./defaults").defaults,b=function(R){return typeof R=="object"&&R!=null&&Object.keys(R).length===0},v=function(R,N,k){var L,H,M;for(L=0,H=R.length;L<H;L++)M=R[L],N=M(N,k);return N},y=function(R,N,k){var L;return L=Object.create(null),L.value=k,L.writable=!0,L.enumerable=!0,L.configurable=!0,Object.defineProperty(R,N,L)},_.Parser=function(R){T(N,R);function N(k){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,H,M;if(!(this instanceof _.Parser))return new _.Parser(k);this.options={},H=p["0.2"];for(L in H)I.call(H,L)&&(M=H[L],this.options[L]=M);for(L in k)I.call(k,L)&&(M=k[L],this.options[L]=M);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 N.prototype.processAsync=function(){var k,L;try{return this.remaining.length<=this.options.chunkSize?(k=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(k),this.saxParser.close()):(k=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(k),g(this.processAsync))}catch(H){if(L=H,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(L)}},N.prototype.assignOrPush=function(k,L,H){return L in k?(k[L]instanceof Array||y(k,L,[k[L]]),k[L].push(H)):this.options.explicitArray?y(k,L,[H]):y(k,L,H)},N.prototype.reset=function(){var k,L,H,M;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(F){return function(P){if(F.saxParser.resume(),!F.saxParser.errThrown)return F.saxParser.errThrown=!0,F.emit("error",P)}}(this),this.saxParser.onend=function(F){return function(){if(!F.saxParser.ended)return F.saxParser.ended=!0,F.emit("end",F.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,M=[],k=this.options.attrkey,L=this.options.charkey,this.saxParser.onopentag=function(F){return function(P){var U,G,Q,ee,ae;if(Q={},Q[L]="",!F.options.ignoreAttrs){ae=P.attributes;for(U in ae)I.call(ae,U)&&(!(k in Q)&&!F.options.mergeAttrs&&(Q[k]={}),G=F.options.attrValueProcessors?v(F.options.attrValueProcessors,P.attributes[U],U):P.attributes[U],ee=F.options.attrNameProcessors?v(F.options.attrNameProcessors,U):U,F.options.mergeAttrs?F.assignOrPush(Q,ee,G):y(Q[k],ee,G))}return Q["#name"]=F.options.tagNameProcessors?v(F.options.tagNameProcessors,P.name):P.name,F.options.xmlns&&(Q[F.options.xmlnskey]={uri:P.uri,local:P.local}),M.push(Q)}}(this),this.saxParser.onclosetag=function(F){return function(){var P,U,G,Q,ee,ae,oe,he,le,be;if(ae=M.pop(),ee=ae["#name"],(!F.options.explicitChildren||!F.options.preserveChildrenOrder)&&delete ae["#name"],ae.cdata===!0&&(P=ae.cdata,delete ae.cdata),le=M[M.length-1],ae[L].match(/^\s*$/)&&!P?(U=ae[L],delete ae[L]):(F.options.trim&&(ae[L]=ae[L].trim()),F.options.normalize&&(ae[L]=ae[L].replace(/\s{2,}/g," ").trim()),ae[L]=F.options.valueProcessors?v(F.options.valueProcessors,ae[L],ee):ae[L],Object.keys(ae).length===1&&L in ae&&!F.EXPLICIT_CHARKEY&&(ae=ae[L])),b(ae)&&(typeof F.options.emptyTag=="function"?ae=F.options.emptyTag():ae=F.options.emptyTag!==""?F.options.emptyTag:U),F.options.validator!=null&&(be="/"+function(){var pe,_e,ne;for(ne=[],pe=0,_e=M.length;pe<_e;pe++)Q=M[pe],ne.push(Q["#name"]);return ne}().concat(ee).join("/"),function(){var pe;try{return ae=F.options.validator(be,le&&le[ee],ae)}catch(_e){return pe=_e,F.emit("error",pe)}}()),F.options.explicitChildren&&!F.options.mergeAttrs&&typeof ae=="object"){if(!F.options.preserveChildrenOrder)Q={},F.options.attrkey in ae&&(Q[F.options.attrkey]=ae[F.options.attrkey],delete ae[F.options.attrkey]),!F.options.charsAsChildren&&F.options.charkey in ae&&(Q[F.options.charkey]=ae[F.options.charkey],delete ae[F.options.charkey]),Object.getOwnPropertyNames(ae).length>0&&(Q[F.options.childkey]=ae),ae=Q;else if(le){le[F.options.childkey]=le[F.options.childkey]||[],oe={};for(G in ae)I.call(ae,G)&&y(oe,G,ae[G]);le[F.options.childkey].push(oe),delete ae["#name"],Object.keys(ae).length===1&&L in ae&&!F.EXPLICIT_CHARKEY&&(ae=ae[L])}}return M.length>0?F.assignOrPush(le,ee,ae):(F.options.explicitRoot&&(he=ae,ae={},y(ae,ee,he)),F.resultObject=ae,F.saxParser.ended=!0,F.emit("end",F.resultObject))}}(this),H=function(F){return function(P){var U,G;if(G=M[M.length-1],G)return G[L]+=P,F.options.explicitChildren&&F.options.preserveChildrenOrder&&F.options.charsAsChildren&&(F.options.includeWhiteChars||P.replace(/\\n/g,"").trim()!=="")&&(G[F.options.childkey]=G[F.options.childkey]||[],U={"#name":"__text__"},U[L]=P,F.options.normalize&&(U[L]=U[L].replace(/\s{2,}/g," ").trim()),G[F.options.childkey].push(U)),G}}(this),this.saxParser.ontext=H,this.saxParser.oncdata=function(F){return function(P){var U;if(U=H(P),U)return U.cdata=!0}}(this)},N.prototype.parseString=function(k,L){var H;L!=null&&typeof L=="function"&&(this.on("end",function(M){return this.reset(),L(null,M)}),this.on("error",function(M){return this.reset(),L(M)}));try{return k=k.toString(),k.trim()===""?(this.emit("end",null),!0):(k=u.stripBOM(k),this.options.async?(this.remaining=k,g(this.processAsync),this.saxParser):this.saxParser.write(k).close())}catch(M){if(H=M,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw H}else return this.emit("error",H),this.saxParser.errThrown=!0}},N.prototype.parseStringPromise=function(k){return new Promise(function(L){return function(H,M){return L.parseString(k,function(F,P){return F?M(F):H(P)})}}(this))},N}(m),_.parseString=function(R,N,k){var L,H,M;return k!=null?(typeof k=="function"&&(L=k),typeof N=="object"&&(H=N)):(typeof N=="function"&&(L=N),H={}),M=new _.Parser(H),M.parseString(R,L)},_.parseStringPromise=function(R,N){var k,L;return typeof N=="object"&&(k=N),L=new _.Parser(k),L.parseStringPromise(R)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(s,w,_){(function(){"use strict";var u;u=new RegExp(/(?!xmlns)^.*:/),_.normalize=function(p){return p.toLowerCase()},_.firstCharLowerCase=function(p){return p.charAt(0).toLowerCase()+p.slice(1)},_.stripPrefix=function(p){return p.replace(u,"")},_.parseNumbers=function(p){return isNaN(p)||(p=p%1===0?parseInt(p,10):parseFloat(p)),p},_.parseBooleans=function(p){return/^(?:true|false)$/i.test(p)&&(p=p.toLowerCase()==="true"),p}}).call(this)},{}],426:[function(s,w,_){(function(){"use strict";var u,p,y,m,b=function(c,h){for(var g in h)v.call(h,g)&&(c[g]=h[g]);function x(){this.constructor=c}return x.prototype=h.prototype,c.prototype=new x,c.__super__=h.prototype,c},v={}.hasOwnProperty;p=s("./defaults"),u=s("./builder"),y=s("./parser"),m=s("./processors"),_.defaults=p.defaults,_.processors=m,_.ValidationError=function(c){b(h,c);function h(g){this.message=g}return h}(Error),_.Builder=u.Builder,_.Parser=y.Parser,_.parseString=y.parseString,_.parseStringPromise=y.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(s,w,_){(function(){w.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(s,w,_){(function(){w.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,w,_){(function(){var u,p,y,m,b,v,c,h=[].slice,g={}.hasOwnProperty;u=function(){var x,T,I,R,N,k;if(k=arguments[0],N=2<=arguments.length?h.call(arguments,1):[],b(Object.assign))Object.assign.apply(null,arguments);else for(x=0,I=N.length;x<I;x++)if(R=N[x],R!=null)for(T in R)g.call(R,T)&&(k[T]=R[T]);return k},b=function(x){return!!x&&Object.prototype.toString.call(x)==="[object Function]"},v=function(x){var T;return!!x&&((T=typeof x)=="function"||T==="object")},y=function(x){return b(Array.isArray)?Array.isArray(x):Object.prototype.toString.call(x)==="[object Array]"},m=function(x){var T;if(y(x))return!x.length;for(T in x)if(g.call(x,T))return!1;return!0},c=function(x){var T,I;return v(x)&&(I=Object.getPrototypeOf(x))&&(T=I.constructor)&&typeof T=="function"&&T instanceof T&&Function.prototype.toString.call(T)===Function.prototype.toString.call(Object)},p=function(x){return b(x.valueOf)?x.valueOf():x},w.exports.assign=u,w.exports.isFunction=b,w.exports.isObject=v,w.exports.isArray=y,w.exports.isEmpty=m,w.exports.isPlainObject=c,w.exports.getValue=p}).call(this)},{}],430:[function(s,w,_){(function(){w.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(s,w,_){(function(){var u,p,y;u=s("./NodeType"),y=s("./XMLNode"),w.exports=p=function(){function m(b,v,c){if(this.parent=b,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(m.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(m.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(m.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}}),Object.defineProperty(m.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(m.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(m.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(m.prototype,"specified",{get:function(){return!0}}),m.prototype.clone=function(){return Object.create(this)},m.prototype.toString=function(b){return this.options.writer.attribute(this,this.options.writer.filterOptions(b))},m.prototype.debugInfo=function(b){return b=b||this.name,b==null?"parent: <"+this.parent.name+">":"attribute: {"+b+"}, parent: <"+this.parent.name+">"},m.prototype.isEqualNode=function(b){return!(b.namespaceURI!==this.namespaceURI||b.prefix!==this.prefix||b.localName!==this.localName||b.value!==this.value)},m}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(s,w,_){(function(){var u,p,y,m=function(v,c){for(var h in c)b.call(c,h)&&(v[h]=c[h]);function g(){this.constructor=v}return g.prototype=c.prototype,v.prototype=new g,v.__super__=c.prototype,v},b={}.hasOwnProperty;u=s("./NodeType"),y=s("./XMLCharacterData"),w.exports=p=function(v){m(c,v);function c(h,g){if(c.__super__.constructor.call(this,h),g==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=u.CData,this.value=this.stringify.cdata(g)}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}(y)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(s,w,_){(function(){var u,p,y=function(b,v){for(var c in v)m.call(v,c)&&(b[c]=v[c]);function h(){this.constructor=b}return h.prototype=v.prototype,b.prototype=new h,b.__super__=v.prototype,b},m={}.hasOwnProperty;p=s("./XMLNode"),w.exports=u=function(b){y(v,b);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,g){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}(p)}).call(this)},{"./XMLNode":450}],434:[function(s,w,_){(function(){var u,p,y,m=function(v,c){for(var h in c)b.call(c,h)&&(v[h]=c[h]);function g(){this.constructor=v}return g.prototype=c.prototype,v.prototype=new g,v.__super__=c.prototype,v},b={}.hasOwnProperty;u=s("./NodeType"),p=s("./XMLCharacterData"),w.exports=y=function(v){m(c,v);function c(h,g){if(c.__super__.constructor.call(this,h),g==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=u.Comment,this.value=this.stringify.comment(g)}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}(p)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(s,w,_){(function(){var u,p,y;p=s("./XMLDOMErrorHandler"),y=s("./XMLDOMStringList"),w.exports=u=function(){function m(){var b;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new p,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=b=Object.create(this.defaultParams)}return Object.defineProperty(m.prototype,"parameterNames",{get:function(){return new y(Object.keys(this.defaultParams))}}),m.prototype.getParameter=function(b){return this.params.hasOwnProperty(b)?this.params[b]:null},m.prototype.canSetParameter=function(b,v){return!0},m.prototype.setParameter=function(b,v){return v!=null?this.params[b]=v:delete this.params[b]},m}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(s,w,_){(function(){var u;w.exports=u=function(){function p(){}return p.prototype.handleError=function(y){throw new Error(y)},p}()}).call(this)},{}],437:[function(s,w,_){(function(){var u;w.exports=u=function(){function p(){}return p.prototype.hasFeature=function(y,m){return!0},p.prototype.createDocumentType=function(y,m,b){throw new Error("This DOM method is not implemented.")},p.prototype.createDocument=function(y,m,b){throw new Error("This DOM method is not implemented.")},p.prototype.createHTMLDocument=function(y){throw new Error("This DOM method is not implemented.")},p.prototype.getFeature=function(y,m){throw new Error("This DOM method is not implemented.")},p}()}).call(this)},{}],438:[function(s,w,_){(function(){var u;w.exports=u=function(){function p(y){this.arr=y||[]}return Object.defineProperty(p.prototype,"length",{get:function(){return this.arr.length}}),p.prototype.item=function(y){return this.arr[y]||null},p.prototype.contains=function(y){return this.arr.indexOf(y)!==-1},p}()}).call(this)},{}],439:[function(s,w,_){(function(){var u,p,y,m=function(v,c){for(var h in c)b.call(c,h)&&(v[h]=c[h]);function g(){this.constructor=v}return g.prototype=c.prototype,v.prototype=new g,v.__super__=c.prototype,v},b={}.hasOwnProperty;y=s("./XMLNode"),u=s("./NodeType"),w.exports=p=function(v){m(c,v);function c(h,g,x,T,I,R){if(c.__super__.constructor.call(this,h),g==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(x==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(g));if(!T)throw new Error("Missing DTD attribute type. "+this.debugInfo(g));if(!I)throw new Error("Missing DTD attribute default. "+this.debugInfo(g));if(I.indexOf("#")!==0&&(I="#"+I),!I.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(g));if(R&&!I.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(g));this.elementName=this.stringify.name(g),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=I}return c.prototype.toString=function(h){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(h))},c}(y)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(s,w,_){(function(){var u,p,y,m=function(v,c){for(var h in c)b.call(c,h)&&(v[h]=c[h]);function g(){this.constructor=v}return g.prototype=c.prototype,v.prototype=new g,v.__super__=c.prototype,v},b={}.hasOwnProperty;y=s("./XMLNode"),u=s("./NodeType"),w.exports=p=function(v){m(c,v);function c(h,g,x){if(c.__super__.constructor.call(this,h),g==null)throw new Error("Missing DTD element name. "+this.debugInfo());x||(x="(#PCDATA)"),Array.isArray(x)&&(x="("+x.join(",")+")"),this.name=this.stringify.name(g),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}(y)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(s,w,_){(function(){var u,p,y,m,b=function(c,h){for(var g in h)v.call(h,g)&&(c[g]=h[g]);function x(){this.constructor=c}return x.prototype=h.prototype,c.prototype=new x,c.__super__=h.prototype,c},v={}.hasOwnProperty;m=s("./Utility").isObject,y=s("./XMLNode"),u=s("./NodeType"),w.exports=p=function(c){b(h,c);function h(g,x,T,I){if(h.__super__.constructor.call(this,g),T==null)throw new Error("Missing DTD entity name. "+this.debugInfo(T));if(I==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,!m(I))this.value=this.stringify.dtdEntityValue(I),this.internal=!0;else{if(!I.pubID&&!I.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(T));if(I.pubID&&!I.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(T));if(this.internal=!1,I.pubID!=null&&(this.pubID=this.stringify.dtdPubID(I.pubID)),I.sysID!=null&&(this.sysID=this.stringify.dtdSysID(I.sysID)),I.nData!=null&&(this.nData=this.stringify.dtdNData(I.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(g){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(g))},h}(y)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(s,w,_){(function(){var u,p,y,m=function(v,c){for(var h in c)b.call(c,h)&&(v[h]=c[h]);function g(){this.constructor=v}return g.prototype=c.prototype,v.prototype=new g,v.__super__=c.prototype,v},b={}.hasOwnProperty;y=s("./XMLNode"),u=s("./NodeType"),w.exports=p=function(v){m(c,v);function c(h,g,x){if(c.__super__.constructor.call(this,h),g==null)throw new Error("Missing DTD notation name. "+this.debugInfo(g));if(!x.pubID&&!x.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(g));this.name=this.stringify.name(g),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}(y)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(s,w,_){(function(){var u,p,y,m,b=function(c,h){for(var g in h)v.call(h,g)&&(c[g]=h[g]);function x(){this.constructor=c}return x.prototype=h.prototype,c.prototype=new x,c.__super__=h.prototype,c},v={}.hasOwnProperty;m=s("./Utility").isObject,y=s("./XMLNode"),u=s("./NodeType"),w.exports=p=function(c){b(h,c);function h(g,x,T,I){var R;h.__super__.constructor.call(this,g),m(x)&&(R=x,x=R.version,T=R.encoding,I=R.standalone),x||(x="1.0"),this.type=u.Declaration,this.version=this.stringify.xmlVersion(x),T!=null&&(this.encoding=this.stringify.xmlEncoding(T)),I!=null&&(this.standalone=this.stringify.xmlStandalone(I))}return h.prototype.toString=function(g){return this.options.writer.declaration(this,this.options.writer.filterOptions(g))},h}(y)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(s,w,_){(function(){var u,p,y,m,b,v,c,h,g,x=function(I,R){for(var N in R)T.call(R,N)&&(I[N]=R[N]);function k(){this.constructor=I}return k.prototype=R.prototype,I.prototype=new k,I.__super__=R.prototype,I},T={}.hasOwnProperty;g=s("./Utility").isObject,h=s("./XMLNode"),u=s("./NodeType"),p=s("./XMLDTDAttList"),m=s("./XMLDTDEntity"),y=s("./XMLDTDElement"),b=s("./XMLDTDNotation"),c=s("./XMLNamedNodeMap"),w.exports=v=function(I){x(R,I);function R(N,k,L){var H,M,F,P,U,G;if(R.__super__.constructor.call(this,N),this.type=u.DocType,N.children){for(P=N.children,M=0,F=P.length;M<F;M++)if(H=P[M],H.type===u.Element){this.name=H.name;break}}this.documentObject=N,g(k)&&(U=k,k=U.pubID,L=U.sysID),L==null&&(G=[k,L],L=G[0],k=G[1]),k!=null&&(this.pubID=this.stringify.dtdPubID(k)),L!=null&&(this.sysID=this.stringify.dtdSysID(L))}return Object.defineProperty(R.prototype,"entities",{get:function(){var N,k,L,H,M;for(H={},M=this.children,k=0,L=M.length;k<L;k++)N=M[k],N.type===u.EntityDeclaration&&!N.pe&&(H[N.name]=N);return new c(H)}}),Object.defineProperty(R.prototype,"notations",{get:function(){var N,k,L,H,M;for(H={},M=this.children,k=0,L=M.length;k<L;k++)N=M[k],N.type===u.NotationDeclaration&&(H[N.name]=N);return new c(H)}}),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(N,k){var L;return L=new y(this,N,k),this.children.push(L),this},R.prototype.attList=function(N,k,L,H,M){var F;return F=new p(this,N,k,L,H,M),this.children.push(F),this},R.prototype.entity=function(N,k){var L;return L=new m(this,!1,N,k),this.children.push(L),this},R.prototype.pEntity=function(N,k){var L;return L=new m(this,!0,N,k),this.children.push(L),this},R.prototype.notation=function(N,k){var L;return L=new b(this,N,k),this.children.push(L),this},R.prototype.toString=function(N){return this.options.writer.docType(this,this.options.writer.filterOptions(N))},R.prototype.ele=function(N,k){return this.element(N,k)},R.prototype.att=function(N,k,L,H,M){return this.attList(N,k,L,H,M)},R.prototype.ent=function(N,k){return this.entity(N,k)},R.prototype.pent=function(N,k){return this.pEntity(N,k)},R.prototype.not=function(N,k){return this.notation(N,k)},R.prototype.up=function(){return this.root()||this.documentObject},R.prototype.isEqualNode=function(N){return!(!R.__super__.isEqualNode.apply(this,arguments).isEqualNode(N)||N.name!==this.name||N.publicId!==this.publicId||N.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,w,_){(function(){var u,p,y,m,b,v,c,h,g=function(T,I){for(var R in I)x.call(I,R)&&(T[R]=I[R]);function N(){this.constructor=T}return N.prototype=I.prototype,T.prototype=new N,T.__super__=I.prototype,T},x={}.hasOwnProperty;h=s("./Utility").isPlainObject,y=s("./XMLDOMImplementation"),p=s("./XMLDOMConfiguration"),b=s("./XMLNode"),u=s("./NodeType"),c=s("./XMLStringifier"),v=s("./XMLStringWriter"),w.exports=m=function(T){g(I,T);function I(R){I.__super__.constructor.call(this,null),this.name="#document",this.type=u.Document,this.documentURI=null,this.domConfig=new p,R||(R={}),R.writer||(R.writer=new v),this.options=R,this.stringify=new c(R)}return Object.defineProperty(I.prototype,"implementation",{value:new y}),Object.defineProperty(I.prototype,"doctype",{get:function(){var R,N,k,L;for(L=this.children,N=0,k=L.length;N<k;N++)if(R=L[N],R.type===u.DocType)return R;return null}}),Object.defineProperty(I.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(I.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(I.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(I.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].encoding:null}}),Object.defineProperty(I.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(I.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(I.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(I.prototype,"origin",{get:function(){return null}}),Object.defineProperty(I.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(I.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(I.prototype,"contentType",{get:function(){return null}}),I.prototype.end=function(R){var N;return N={},R?h(R)&&(N=R,R=this.options.writer):R=this.options.writer,R.document(this,R.filterOptions(N))},I.prototype.toString=function(R){return this.options.writer.document(this,this.options.writer.filterOptions(R))},I.prototype.createElement=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createTextNode=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createComment=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createCDATASection=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createProcessingInstruction=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createAttribute=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createEntityReference=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.getElementsByTagName=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.importNode=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createElementNS=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createAttributeNS=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.getElementsByTagNameNS=function(R,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.getElementById=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.adoptNode=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.renameNode=function(R,N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.getElementsByClassName=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createEvent=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createNodeIterator=function(R,N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},I.prototype.createTreeWalker=function(R,N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},I}(b)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(s,w,_){(function(){var u,p,y,m,b,v,c,h,g,x,T,I,R,N,k,L,H,M,F,P,U,G,Q,ee,ae={}.hasOwnProperty;ee=s("./Utility"),G=ee.isObject,U=ee.isFunction,Q=ee.isPlainObject,P=ee.getValue,u=s("./NodeType"),I=s("./XMLDocument"),N=s("./XMLElement"),m=s("./XMLCData"),b=s("./XMLComment"),L=s("./XMLRaw"),F=s("./XMLText"),k=s("./XMLProcessingInstruction"),x=s("./XMLDeclaration"),T=s("./XMLDocType"),v=s("./XMLDTDAttList"),h=s("./XMLDTDEntity"),c=s("./XMLDTDElement"),g=s("./XMLDTDNotation"),y=s("./XMLAttribute"),M=s("./XMLStringifier"),H=s("./XMLStringWriter"),p=s("./WriterState"),w.exports=R=function(){function oe(he,le,be){var pe;this.name="?xml",this.type=u.Document,he||(he={}),pe={},he.writer?Q(he.writer)&&(pe=he.writer,he.writer=new H):he.writer=new H,this.options=he,this.writer=he.writer,this.writerOptions=this.writer.filterOptions(pe),this.stringify=new M(he),this.onDataCallback=le||function(){},this.onEndCallback=be||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return oe.prototype.createChildNode=function(he){var le,be,pe,_e,ne,ue,ce,Re;switch(he.type){case u.CData:this.cdata(he.value);break;case u.Comment:this.comment(he.value);break;case u.Element:pe={},ce=he.attribs;for(be in ce)ae.call(ce,be)&&(le=ce[be],pe[be]=le.value);this.node(he.name,pe);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(Re=he.children,ne=0,ue=Re.length;ne<ue;ne++)_e=Re[ne],this.createChildNode(_e),_e.type===u.Element&&this.up();return this},oe.prototype.dummy=function(){return this},oe.prototype.node=function(he,le,be){var pe;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),le==null&&(le={}),le=P(le),G(le)||(pe=[le,be],be=pe[0],le=pe[1]),this.currentNode=new N(this,he,le),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,be!=null&&this.text(be),this},oe.prototype.element=function(he,le,be){var pe,_e,ne,ue,ce,Re;if(this.currentNode&&this.currentNode.type===u.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(he)||G(he)||U(he))for(ue=this.options.noValidation,this.options.noValidation=!0,Re=new I(this.options).element("TEMP_ROOT"),Re.element(he),this.options.noValidation=ue,ce=Re.children,_e=0,ne=ce.length;_e<ne;_e++)pe=ce[_e],this.createChildNode(pe),pe.type===u.Element&&this.up();else this.node(he,le,be);return this},oe.prototype.attribute=function(he,le){var be,pe;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(be in he)ae.call(he,be)&&(pe=he[be],this.attribute(be,pe));else U(le)&&(le=le.apply()),this.options.keepNullAttributes&&le==null?this.currentNode.attribs[he]=new y(this,he,""):le!=null&&(this.currentNode.attribs[he]=new y(this,he,le));return this},oe.prototype.text=function(he){var le;return this.openCurrent(),le=new F(this,he),this.onData(this.writer.text(le,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.cdata=function(he){var le;return this.openCurrent(),le=new m(this,he),this.onData(this.writer.cdata(le,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.comment=function(he){var le;return this.openCurrent(),le=new b(this,he),this.onData(this.writer.comment(le,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.raw=function(he){var le;return this.openCurrent(),le=new L(this,he),this.onData(this.writer.raw(le,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.instruction=function(he,le){var be,pe,_e,ne,ue;if(this.openCurrent(),he!=null&&(he=P(he)),le!=null&&(le=P(le)),Array.isArray(he))for(be=0,ne=he.length;be<ne;be++)pe=he[be],this.instruction(pe);else if(G(he))for(pe in he)ae.call(he,pe)&&(_e=he[pe],this.instruction(pe,_e));else U(le)&&(le=le.apply()),ue=new k(this,he,le),this.onData(this.writer.processingInstruction(ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},oe.prototype.declaration=function(he,le,be){var pe;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return pe=new x(this,he,le,be),this.onData(this.writer.declaration(pe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.doctype=function(he,le,be){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,le,be),this.currentNode.rootNodeName=he,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},oe.prototype.dtdElement=function(he,le){var be;return this.openCurrent(),be=new c(this,he,le),this.onData(this.writer.dtdElement(be,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.attList=function(he,le,be,pe,_e){var ne;return this.openCurrent(),ne=new v(this,he,le,be,pe,_e),this.onData(this.writer.dtdAttList(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.entity=function(he,le){var be;return this.openCurrent(),be=new h(this,!1,he,le),this.onData(this.writer.dtdEntity(be,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.pEntity=function(he,le){var be;return this.openCurrent(),be=new h(this,!0,he,le),this.onData(this.writer.dtdEntity(be,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.prototype.notation=function(he,le){var be;return this.openCurrent(),be=new g(this,he,le),this.onData(this.writer.dtdNotation(be,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},oe.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},oe.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},oe.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},oe.prototype.openNode=function(he){var le,be,pe,_e;if(!he.isOpen){if(!this.root&&this.currentLevel===0&&he.type===u.Element&&(this.root=he),be="",he.type===u.Element){this.writerOptions.state=p.OpenTag,be=this.writer.indent(he,this.writerOptions,this.currentLevel)+"<"+he.name,_e=he.attribs;for(pe in _e)ae.call(_e,pe)&&(le=_e[pe],be+=this.writer.attribute(le,this.writerOptions,this.currentLevel));be+=(he.children?">":"/>")+this.writer.endline(he,this.writerOptions,this.currentLevel),this.writerOptions.state=p.InsideTag}else this.writerOptions.state=p.OpenTag,be=this.writer.indent(he,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+he.rootNodeName,he.pubID&&he.sysID?be+=' PUBLIC "'+he.pubID+'" "'+he.sysID+'"':he.sysID&&(be+=' SYSTEM "'+he.sysID+'"'),he.children?(be+=" [",this.writerOptions.state=p.InsideTag):(this.writerOptions.state=p.CloseTag,be+=">"),be+=this.writer.endline(he,this.writerOptions,this.currentLevel);return this.onData(be,this.currentLevel),he.isOpen=!0}},oe.prototype.closeNode=function(he){var le;if(!he.isClosed)return le="",this.writerOptions.state=p.CloseTag,he.type===u.Element?le=this.writer.indent(he,this.writerOptions,this.currentLevel)+"</"+he.name+">"+this.writer.endline(he,this.writerOptions,this.currentLevel):le=this.writer.indent(he,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(he,this.writerOptions,this.currentLevel),this.writerOptions.state=p.None,this.onData(le,this.currentLevel),he.isClosed=!0},oe.prototype.onData=function(he,le){return this.documentStarted=!0,this.onDataCallback(he,le+1)},oe.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},oe.prototype.debugInfo=function(he){return he==null?"":"node: <"+he+">"},oe.prototype.ele=function(){return this.element.apply(this,arguments)},oe.prototype.nod=function(he,le,be){return this.node(he,le,be)},oe.prototype.txt=function(he){return this.text(he)},oe.prototype.dat=function(he){return this.cdata(he)},oe.prototype.com=function(he){return this.comment(he)},oe.prototype.ins=function(he,le){return this.instruction(he,le)},oe.prototype.dec=function(he,le,be){return this.declaration(he,le,be)},oe.prototype.dtd=function(he,le,be){return this.doctype(he,le,be)},oe.prototype.e=function(he,le,be){return this.element(he,le,be)},oe.prototype.n=function(he,le,be){return this.node(he,le,be)},oe.prototype.t=function(he){return this.text(he)},oe.prototype.d=function(he){return this.cdata(he)},oe.prototype.c=function(he){return this.comment(he)},oe.prototype.r=function(he){return this.raw(he)},oe.prototype.i=function(he,le){return this.instruction(he,le)},oe.prototype.att=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},oe.prototype.a=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},oe.prototype.ent=function(he,le){return this.entity(he,le)},oe.prototype.pent=function(he,le){return this.pEntity(he,le)},oe.prototype.not=function(he,le){return this.notation(he,le)},oe}()}).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,w,_){(function(){var u,p,y,m=function(v,c){for(var h in c)b.call(c,h)&&(v[h]=c[h]);function g(){this.constructor=v}return g.prototype=c.prototype,v.prototype=new g,v.__super__=c.prototype,v},b={}.hasOwnProperty;y=s("./XMLNode"),u=s("./NodeType"),w.exports=p=function(v){m(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}(y)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(s,w,_){(function(){var u,p,y,m,b,v,c,h,g,x=function(I,R){for(var N in R)T.call(R,N)&&(I[N]=R[N]);function k(){this.constructor=I}return k.prototype=R.prototype,I.prototype=new k,I.__super__=R.prototype,I},T={}.hasOwnProperty;g=s("./Utility"),h=g.isObject,c=g.isFunction,v=g.getValue,b=s("./XMLNode"),u=s("./NodeType"),p=s("./XMLAttribute"),m=s("./XMLNamedNodeMap"),w.exports=y=function(I){x(R,I);function R(N,k,L){var H,M,F,P;if(R.__super__.constructor.call(this,N),k==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(k),this.type=u.Element,this.attribs={},this.schemaTypeInfo=null,L!=null&&this.attribute(L),N.type===u.Document&&(this.isRoot=!0,this.documentObject=N,N.rootObject=this,N.children)){for(P=N.children,M=0,F=P.length;M<F;M++)if(H=P[M],H.type===u.DocType){H.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 m(this.attribs)),this.attributeMap}}),R.prototype.clone=function(){var N,k,L,H;L=Object.create(this),L.isRoot&&(L.documentObject=null),L.attribs={},H=this.attribs;for(k in H)T.call(H,k)&&(N=H[k],L.attribs[k]=N.clone());return L.children=[],this.children.forEach(function(M){var F;return F=M.clone(),F.parent=L,L.children.push(F)}),L},R.prototype.attribute=function(N,k){var L,H;if(N!=null&&(N=v(N)),h(N))for(L in N)T.call(N,L)&&(H=N[L],this.attribute(L,H));else c(k)&&(k=k.apply()),this.options.keepNullAttributes&&k==null?this.attribs[N]=new p(this,N,""):k!=null&&(this.attribs[N]=new p(this,N,k));return this},R.prototype.removeAttribute=function(N){var k,L,H;if(N==null)throw new Error("Missing attribute name. "+this.debugInfo());if(N=v(N),Array.isArray(N))for(L=0,H=N.length;L<H;L++)k=N[L],delete this.attribs[k];else delete this.attribs[N];return this},R.prototype.toString=function(N){return this.options.writer.element(this,this.options.writer.filterOptions(N))},R.prototype.att=function(N,k){return this.attribute(N,k)},R.prototype.a=function(N,k){return this.attribute(N,k)},R.prototype.getAttribute=function(N){return this.attribs.hasOwnProperty(N)?this.attribs[N].value:null},R.prototype.setAttribute=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getAttributeNode=function(N){return this.attribs.hasOwnProperty(N)?this.attribs[N]:null},R.prototype.setAttributeNode=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.removeAttributeNode=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagName=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getAttributeNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setAttributeNS=function(N,k,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.removeAttributeNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getAttributeNodeNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setAttributeNodeNS=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagNameNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.hasAttribute=function(N){return this.attribs.hasOwnProperty(N)},R.prototype.hasAttributeNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setIdAttribute=function(N,k){return this.attribs.hasOwnProperty(N)?this.attribs[N].isId:k},R.prototype.setIdAttributeNS=function(N,k,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setIdAttributeNode=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagName=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagNameNS=function(N,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByClassName=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.isEqualNode=function(N){var k,L,H;if(!R.__super__.isEqualNode.apply(this,arguments).isEqualNode(N)||N.namespaceURI!==this.namespaceURI||N.prefix!==this.prefix||N.localName!==this.localName||N.attribs.length!==this.attribs.length)return!1;for(k=L=0,H=this.attribs.length-1;0<=H?L<=H:L>=H;k=0<=H?++L:--L)if(!this.attribs[k].isEqualNode(N.attribs[k]))return!1;return!0},R}(b)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(s,w,_){(function(){var u;w.exports=u=function(){function p(y){this.nodes=y}return Object.defineProperty(p.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.getNamedItem=function(y){return this.nodes[y]},p.prototype.setNamedItem=function(y){var m;return m=this.nodes[y.nodeName],this.nodes[y.nodeName]=y,m||null},p.prototype.removeNamedItem=function(y){var m;return m=this.nodes[y],delete this.nodes[y],m||null},p.prototype.item=function(y){return this.nodes[Object.keys(this.nodes)[y]]||null},p.prototype.getNamedItemNS=function(y,m){throw new Error("This DOM method is not implemented.")},p.prototype.setNamedItemNS=function(y){throw new Error("This DOM method is not implemented.")},p.prototype.removeNamedItemNS=function(y,m){throw new Error("This DOM method is not implemented.")},p}()}).call(this)},{}],450:[function(s,w,_){(function(){var u,p,y,m,b,v,c,h,g,x,T,I,R,N,k,L,H,M,F,P={}.hasOwnProperty;F=s("./Utility"),M=F.isObject,H=F.isFunction,L=F.isEmpty,k=F.getValue,h=null,y=null,m=null,b=null,v=null,R=null,N=null,I=null,c=null,p=null,T=null,g=null,u=null,w.exports=x=function(){function U(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"),y=s("./XMLCData"),m=s("./XMLComment"),b=s("./XMLDeclaration"),v=s("./XMLDocType"),R=s("./XMLRaw"),N=s("./XMLText"),I=s("./XMLProcessingInstruction"),c=s("./XMLDummy"),p=s("./NodeType"),T=s("./XMLNodeList"),g=s("./XMLNamedNodeMap"),u=s("./DocumentPosition"))}return Object.defineProperty(U.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(U.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(U.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(U.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(U.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new T(this.children)),this.childNodeList}}),Object.defineProperty(U.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(U.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(U.prototype,"previousSibling",{get:function(){var G;return G=this.parent.children.indexOf(this),this.parent.children[G-1]||null}}),Object.defineProperty(U.prototype,"nextSibling",{get:function(){var G;return G=this.parent.children.indexOf(this),this.parent.children[G+1]||null}}),Object.defineProperty(U.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(U.prototype,"textContent",{get:function(){var G,Q,ee,ae,oe;if(this.nodeType===p.Element||this.nodeType===p.DocumentFragment){for(oe="",ae=this.children,Q=0,ee=ae.length;Q<ee;Q++)G=ae[Q],G.textContent&&(oe+=G.textContent);return oe}else return null},set:function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),U.prototype.setParent=function(G){var Q,ee,ae,oe,he;for(this.parent=G,G&&(this.options=G.options,this.stringify=G.stringify),oe=this.children,he=[],ee=0,ae=oe.length;ee<ae;ee++)Q=oe[ee],he.push(Q.setParent(this));return he},U.prototype.element=function(G,Q,ee){var ae,oe,he,le,be,pe,_e,ne,ue,ce,Re;if(pe=null,Q===null&&ee==null&&(ue=[{},null],Q=ue[0],ee=ue[1]),Q==null&&(Q={}),Q=k(Q),M(Q)||(ce=[Q,ee],ee=ce[0],Q=ce[1]),G!=null&&(G=k(G)),Array.isArray(G))for(he=0,_e=G.length;he<_e;he++)oe=G[he],pe=this.element(oe);else if(H(G))pe=this.element(G.apply());else if(M(G)){for(be in G)if(P.call(G,be))if(Re=G[be],H(Re)&&(Re=Re.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&be.indexOf(this.stringify.convertAttKey)===0)pe=this.attribute(be.substr(this.stringify.convertAttKey.length),Re);else if(!this.options.separateArrayItems&&Array.isArray(Re)&&L(Re))pe=this.dummy();else if(M(Re)&&L(Re))pe=this.element(be);else if(!this.options.keepNullNodes&&Re==null)pe=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Re))for(le=0,ne=Re.length;le<ne;le++)oe=Re[le],ae={},ae[be]=oe,pe=this.element(ae);else M(Re)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&be.indexOf(this.stringify.convertTextKey)===0?pe=this.element(Re):(pe=this.element(be),pe.element(Re)):pe=this.element(be,Re)}else!this.options.keepNullNodes&&ee===null?pe=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&G.indexOf(this.stringify.convertTextKey)===0?pe=this.text(ee):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&G.indexOf(this.stringify.convertCDataKey)===0?pe=this.cdata(ee):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&G.indexOf(this.stringify.convertCommentKey)===0?pe=this.comment(ee):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&G.indexOf(this.stringify.convertRawKey)===0?pe=this.raw(ee):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&G.indexOf(this.stringify.convertPIKey)===0?pe=this.instruction(G.substr(this.stringify.convertPIKey.length),ee):pe=this.node(G,Q,ee);if(pe==null)throw new Error("Could not create any elements with: "+G+". "+this.debugInfo());return pe},U.prototype.insertBefore=function(G,Q,ee){var ae,oe,he,le,be;if(G!=null&&G.type)return he=G,le=Q,he.setParent(this),le?(oe=children.indexOf(le),be=children.splice(oe),children.push(he),Array.prototype.push.apply(children,be)):children.push(he),he;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(G));return oe=this.parent.children.indexOf(this),be=this.parent.children.splice(oe),ae=this.parent.element(G,Q,ee),Array.prototype.push.apply(this.parent.children,be),ae},U.prototype.insertAfter=function(G,Q,ee){var ae,oe,he;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(G));return oe=this.parent.children.indexOf(this),he=this.parent.children.splice(oe+1),ae=this.parent.element(G,Q,ee),Array.prototype.push.apply(this.parent.children,he),ae},U.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},U.prototype.node=function(G,Q,ee){var ae,oe;return G!=null&&(G=k(G)),Q||(Q={}),Q=k(Q),M(Q)||(oe=[Q,ee],ee=oe[0],Q=oe[1]),ae=new h(this,G,Q),ee!=null&&ae.text(ee),this.children.push(ae),ae},U.prototype.text=function(G){var Q;return M(G)&&this.element(G),Q=new N(this,G),this.children.push(Q),this},U.prototype.cdata=function(G){var Q;return Q=new y(this,G),this.children.push(Q),this},U.prototype.comment=function(G){var Q;return Q=new m(this,G),this.children.push(Q),this},U.prototype.commentBefore=function(G){var Q,ee,ae;return ee=this.parent.children.indexOf(this),ae=this.parent.children.splice(ee),Q=this.parent.comment(G),Array.prototype.push.apply(this.parent.children,ae),this},U.prototype.commentAfter=function(G){var Q,ee,ae;return ee=this.parent.children.indexOf(this),ae=this.parent.children.splice(ee+1),Q=this.parent.comment(G),Array.prototype.push.apply(this.parent.children,ae),this},U.prototype.raw=function(G){var Q;return Q=new R(this,G),this.children.push(Q),this},U.prototype.dummy=function(){var G;return G=new c(this),G},U.prototype.instruction=function(G,Q){var ee,ae,oe,he,le;if(G!=null&&(G=k(G)),Q!=null&&(Q=k(Q)),Array.isArray(G))for(he=0,le=G.length;he<le;he++)ee=G[he],this.instruction(ee);else if(M(G))for(ee in G)P.call(G,ee)&&(ae=G[ee],this.instruction(ee,ae));else H(Q)&&(Q=Q.apply()),oe=new I(this,G,Q),this.children.push(oe);return this},U.prototype.instructionBefore=function(G,Q){var ee,ae,oe;return ae=this.parent.children.indexOf(this),oe=this.parent.children.splice(ae),ee=this.parent.instruction(G,Q),Array.prototype.push.apply(this.parent.children,oe),this},U.prototype.instructionAfter=function(G,Q){var ee,ae,oe;return ae=this.parent.children.indexOf(this),oe=this.parent.children.splice(ae+1),ee=this.parent.instruction(G,Q),Array.prototype.push.apply(this.parent.children,oe),this},U.prototype.declaration=function(G,Q,ee){var ae,oe;return ae=this.document(),oe=new b(ae,G,Q,ee),ae.children.length===0?ae.children.unshift(oe):ae.children[0].type===p.Declaration?ae.children[0]=oe:ae.children.unshift(oe),ae.root()||ae},U.prototype.dtd=function(G,Q){var ee,ae,oe,he,le,be,pe,_e,ne,ue;for(ae=this.document(),oe=new v(ae,G,Q),ne=ae.children,he=le=0,pe=ne.length;le<pe;he=++le)if(ee=ne[he],ee.type===p.DocType)return ae.children[he]=oe,oe;for(ue=ae.children,he=be=0,_e=ue.length;be<_e;he=++be)if(ee=ue[he],ee.isRoot)return ae.children.splice(he,0,oe),oe;return ae.children.push(oe),oe},U.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},U.prototype.root=function(){var G;for(G=this;G;){if(G.type===p.Document)return G.rootObject;if(G.isRoot)return G;G=G.parent}},U.prototype.document=function(){var G;for(G=this;G;){if(G.type===p.Document)return G;G=G.parent}},U.prototype.end=function(G){return this.document().end(G)},U.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]},U.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]},U.prototype.importDocument=function(G){var Q;return Q=G.root().clone(),Q.parent=this,Q.isRoot=!1,this.children.push(Q),this},U.prototype.debugInfo=function(G){var Q,ee;return G=G||this.name,G==null&&!((Q=this.parent)!=null&&Q.name)?"":G==null?"parent: <"+this.parent.name+">":(ee=this.parent)!=null&&ee.name?"node: <"+G+">, parent: <"+this.parent.name+">":"node: <"+G+">"},U.prototype.ele=function(G,Q,ee){return this.element(G,Q,ee)},U.prototype.nod=function(G,Q,ee){return this.node(G,Q,ee)},U.prototype.txt=function(G){return this.text(G)},U.prototype.dat=function(G){return this.cdata(G)},U.prototype.com=function(G){return this.comment(G)},U.prototype.ins=function(G,Q){return this.instruction(G,Q)},U.prototype.doc=function(){return this.document()},U.prototype.dec=function(G,Q,ee){return this.declaration(G,Q,ee)},U.prototype.e=function(G,Q,ee){return this.element(G,Q,ee)},U.prototype.n=function(G,Q,ee){return this.node(G,Q,ee)},U.prototype.t=function(G){return this.text(G)},U.prototype.d=function(G){return this.cdata(G)},U.prototype.c=function(G){return this.comment(G)},U.prototype.r=function(G){return this.raw(G)},U.prototype.i=function(G,Q){return this.instruction(G,Q)},U.prototype.u=function(){return this.up()},U.prototype.importXMLBuilder=function(G){return this.importDocument(G)},U.prototype.replaceChild=function(G,Q){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.removeChild=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.appendChild=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.hasChildNodes=function(){return this.children.length!==0},U.prototype.cloneNode=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.isSupported=function(G,Q){return!0},U.prototype.hasAttributes=function(){return this.attribs.length!==0},U.prototype.compareDocumentPosition=function(G){var Q,ee;return Q=this,Q===G?0:this.document()!==G.document()?(ee=u.Disconnected|u.ImplementationSpecific,Math.random()<.5?ee|=u.Preceding:ee|=u.Following,ee):Q.isAncestor(G)?u.Contains|u.Preceding:Q.isDescendant(G)?u.Contains|u.Following:Q.isPreceding(G)?u.Preceding:u.Following},U.prototype.isSameNode=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.lookupPrefix=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.isDefaultNamespace=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.lookupNamespaceURI=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.isEqualNode=function(G){var Q,ee,ae;if(G.nodeType!==this.nodeType||G.children.length!==this.children.length)return!1;for(Q=ee=0,ae=this.children.length-1;0<=ae?ee<=ae:ee>=ae;Q=0<=ae?++ee:--ee)if(!this.children[Q].isEqualNode(G.children[Q]))return!1;return!0},U.prototype.getFeature=function(G,Q){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.setUserData=function(G,Q,ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.getUserData=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.contains=function(G){return G?G===this||this.isDescendant(G):!1},U.prototype.isDescendant=function(G){var Q,ee,ae,oe,he;for(he=this.children,ae=0,oe=he.length;ae<oe;ae++)if(Q=he[ae],G===Q||(ee=Q.isDescendant(G),ee))return!0;return!1},U.prototype.isAncestor=function(G){return G.isDescendant(this)},U.prototype.isPreceding=function(G){var Q,ee;return Q=this.treePosition(G),ee=this.treePosition(this),Q===-1||ee===-1?!1:Q<ee},U.prototype.isFollowing=function(G){var Q,ee;return Q=this.treePosition(G),ee=this.treePosition(this),Q===-1||ee===-1?!1:Q>ee},U.prototype.treePosition=function(G){var Q,ee;return ee=0,Q=!1,this.foreachTreeNode(this.document(),function(ae){if(ee++,!Q&&ae===G)return Q=!0}),Q?ee:-1},U.prototype.foreachTreeNode=function(G,Q){var ee,ae,oe,he,le;for(G||(G=this.document()),he=G.children,ae=0,oe=he.length;ae<oe;ae++){if(ee=he[ae],le=Q(ee))return le;if(le=this.foreachTreeNode(ee,Q),le)return le}},U}()}).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,w,_){(function(){var u;w.exports=u=function(){function p(y){this.nodes=y}return Object.defineProperty(p.prototype,"length",{get:function(){return this.nodes.length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.item=function(y){return this.nodes[y]||null},p}()}).call(this)},{}],452:[function(s,w,_){(function(){var u,p,y,m=function(v,c){for(var h in c)b.call(c,h)&&(v[h]=c[h]);function g(){this.constructor=v}return g.prototype=c.prototype,v.prototype=new g,v.__super__=c.prototype,v},b={}.hasOwnProperty;u=s("./NodeType"),p=s("./XMLCharacterData"),w.exports=y=function(v){m(c,v);function c(h,g,x){if(c.__super__.constructor.call(this,h),g==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=u.ProcessingInstruction,this.target=this.stringify.insTarget(g),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}(p)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(s,w,_){(function(){var u,p,y,m=function(v,c){for(var h in c)b.call(c,h)&&(v[h]=c[h]);function g(){this.constructor=v}return g.prototype=c.prototype,v.prototype=new g,v.__super__=c.prototype,v},b={}.hasOwnProperty;u=s("./NodeType"),p=s("./XMLNode"),w.exports=y=function(v){m(c,v);function c(h,g){if(c.__super__.constructor.call(this,h),g==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=u.Raw,this.value=this.stringify.raw(g)}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}(p)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(s,w,_){(function(){var u,p,y,m,b=function(c,h){for(var g in h)v.call(h,g)&&(c[g]=h[g]);function x(){this.constructor=c}return x.prototype=h.prototype,c.prototype=new x,c.__super__=h.prototype,c},v={}.hasOwnProperty;u=s("./NodeType"),m=s("./XMLWriterBase"),p=s("./WriterState"),w.exports=y=function(c){b(h,c);function h(g,x){this.stream=g,h.__super__.constructor.call(this,x)}return h.prototype.endline=function(g,x,T){return g.isLastRootNode&&x.state===p.CloseTag?"":h.__super__.endline.call(this,g,x,T)},h.prototype.document=function(g,x){var T,I,R,N,k,L,H,M,F;for(H=g.children,I=R=0,k=H.length;R<k;I=++R)T=H[I],T.isLastRootNode=I===g.children.length-1;for(x=this.filterOptions(x),M=g.children,F=[],N=0,L=M.length;N<L;N++)T=M[N],F.push(this.writeChildNode(T,x,0));return F},h.prototype.attribute=function(g,x,T){return this.stream.write(h.__super__.attribute.call(this,g,x,T))},h.prototype.cdata=function(g,x,T){return this.stream.write(h.__super__.cdata.call(this,g,x,T))},h.prototype.comment=function(g,x,T){return this.stream.write(h.__super__.comment.call(this,g,x,T))},h.prototype.declaration=function(g,x,T){return this.stream.write(h.__super__.declaration.call(this,g,x,T))},h.prototype.docType=function(g,x,T){var I,R,N,k;if(T||(T=0),this.openNode(g,x,T),x.state=p.OpenTag,this.stream.write(this.indent(g,x,T)),this.stream.write("<!DOCTYPE "+g.root().name),g.pubID&&g.sysID?this.stream.write(' PUBLIC "'+g.pubID+'" "'+g.sysID+'"'):g.sysID&&this.stream.write(' SYSTEM "'+g.sysID+'"'),g.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(g,x,T)),x.state=p.InsideTag,k=g.children,R=0,N=k.length;R<N;R++)I=k[R],this.writeChildNode(I,x,T+1);x.state=p.CloseTag,this.stream.write("]")}return x.state=p.CloseTag,this.stream.write(x.spaceBeforeSlash+">"),this.stream.write(this.endline(g,x,T)),x.state=p.None,this.closeNode(g,x,T)},h.prototype.element=function(g,x,T){var I,R,N,k,L,H,M,F,P,U;T||(T=0),this.openNode(g,x,T),x.state=p.OpenTag,this.stream.write(this.indent(g,x,T)+"<"+g.name),P=g.attribs;for(M in P)v.call(P,M)&&(I=P[M],this.attribute(I,x,T));if(N=g.children.length,k=N===0?null:g.children[0],N===0||g.children.every(function(G){return(G.type===u.Text||G.type===u.Raw)&&G.value===""}))x.allowEmpty?(this.stream.write(">"),x.state=p.CloseTag,this.stream.write("</"+g.name+">")):(x.state=p.CloseTag,this.stream.write(x.spaceBeforeSlash+"/>"));else if(x.pretty&&N===1&&(k.type===u.Text||k.type===u.Raw)&&k.value!=null)this.stream.write(">"),x.state=p.InsideTag,x.suppressPrettyCount++,F=!0,this.writeChildNode(k,x,T+1),x.suppressPrettyCount--,F=!1,x.state=p.CloseTag,this.stream.write("</"+g.name+">");else{for(this.stream.write(">"+this.endline(g,x,T)),x.state=p.InsideTag,U=g.children,L=0,H=U.length;L<H;L++)R=U[L],this.writeChildNode(R,x,T+1);x.state=p.CloseTag,this.stream.write(this.indent(g,x,T)+"</"+g.name+">")}return this.stream.write(this.endline(g,x,T)),x.state=p.None,this.closeNode(g,x,T)},h.prototype.processingInstruction=function(g,x,T){return this.stream.write(h.__super__.processingInstruction.call(this,g,x,T))},h.prototype.raw=function(g,x,T){return this.stream.write(h.__super__.raw.call(this,g,x,T))},h.prototype.text=function(g,x,T){return this.stream.write(h.__super__.text.call(this,g,x,T))},h.prototype.dtdAttList=function(g,x,T){return this.stream.write(h.__super__.dtdAttList.call(this,g,x,T))},h.prototype.dtdElement=function(g,x,T){return this.stream.write(h.__super__.dtdElement.call(this,g,x,T))},h.prototype.dtdEntity=function(g,x,T){return this.stream.write(h.__super__.dtdEntity.call(this,g,x,T))},h.prototype.dtdNotation=function(g,x,T){return this.stream.write(h.__super__.dtdNotation.call(this,g,x,T))},h}(m)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(s,w,_){(function(){var u,p,y=function(b,v){for(var c in v)m.call(v,c)&&(b[c]=v[c]);function h(){this.constructor=b}return h.prototype=v.prototype,b.prototype=new h,b.__super__=v.prototype,b},m={}.hasOwnProperty;p=s("./XMLWriterBase"),w.exports=u=function(b){y(v,b);function v(c){v.__super__.constructor.call(this,c)}return v.prototype.document=function(c,h){var g,x,T,I,R;for(h=this.filterOptions(h),I="",R=c.children,x=0,T=R.length;x<T;x++)g=R[x],I+=this.writeChildNode(g,h,0);return h.pretty&&I.slice(-h.newline.length)===h.newline&&(I=I.slice(0,-h.newline.length)),I},v}(p)}).call(this)},{"./XMLWriterBase":458}],456:[function(s,w,_){(function(){var u,p=function(m,b){return function(){return m.apply(b,arguments)}},y={}.hasOwnProperty;w.exports=u=function(){function m(b){this.assertLegalName=p(this.assertLegalName,this),this.assertLegalChar=p(this.assertLegalChar,this);var v,c,h;b||(b={}),this.options=b,this.options.version||(this.options.version="1.0"),c=b.stringify||{};for(v in c)y.call(c,v)&&(h=c[v],this[v]=h)}return m.prototype.name=function(b){return this.options.noValidation?b:this.assertLegalName(""+b||"")},m.prototype.text=function(b){return this.options.noValidation?b:this.assertLegalChar(this.textEscape(""+b||""))},m.prototype.cdata=function(b){return this.options.noValidation?b:(b=""+b||"",b=b.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(b))},m.prototype.comment=function(b){if(this.options.noValidation)return b;if(b=""+b||"",b.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+b);return this.assertLegalChar(b)},m.prototype.raw=function(b){return this.options.noValidation?b:""+b||""},m.prototype.attValue=function(b){return this.options.noValidation?b:this.assertLegalChar(this.attEscape(b=""+b||""))},m.prototype.insTarget=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},m.prototype.insValue=function(b){if(this.options.noValidation)return b;if(b=""+b||"",b.match(/\?>/))throw new Error("Invalid processing instruction value: "+b);return this.assertLegalChar(b)},m.prototype.xmlVersion=function(b){if(this.options.noValidation)return b;if(b=""+b||"",!b.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+b);return b},m.prototype.xmlEncoding=function(b){if(this.options.noValidation)return b;if(b=""+b||"",!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+b);return this.assertLegalChar(b)},m.prototype.xmlStandalone=function(b){return this.options.noValidation?b:b?"yes":"no"},m.prototype.dtdPubID=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},m.prototype.dtdSysID=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},m.prototype.dtdElementValue=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},m.prototype.dtdAttType=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},m.prototype.dtdAttDefault=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},m.prototype.dtdEntityValue=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},m.prototype.dtdNData=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},m.prototype.convertAttKey="@",m.prototype.convertPIKey="?",m.prototype.convertTextKey="#text",m.prototype.convertCDataKey="#cdata",m.prototype.convertCommentKey="#comment",m.prototype.convertRawKey="#raw",m.prototype.assertLegalChar=function(b){var v,c;if(this.options.noValidation)return b;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=b.match(v))throw new Error("Invalid character in string: "+b+" at index "+c.index)}else if(this.options.version==="1.1"&&(v=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=b.match(v)))throw new Error("Invalid character in string: "+b+" at index "+c.index);return b},m.prototype.assertLegalName=function(b){var v;if(this.options.noValidation)return b;if(this.assertLegalChar(b),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])*$/,!b.match(v))throw new Error("Invalid character in name");return b},m.prototype.textEscape=function(b){var v;return this.options.noValidation?b:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,b.replace(v,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},m.prototype.attEscape=function(b){var v;return this.options.noValidation?b:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,b.replace(v,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},m}()}).call(this)},{}],457:[function(s,w,_){(function(){var u,p,y,m=function(v,c){for(var h in c)b.call(c,h)&&(v[h]=c[h]);function g(){this.constructor=v}return g.prototype=c.prototype,v.prototype=new g,v.__super__=c.prototype,v},b={}.hasOwnProperty;u=s("./NodeType"),p=s("./XMLCharacterData"),w.exports=y=function(v){m(c,v);function c(h,g){if(c.__super__.constructor.call(this,h),g==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=u.Text,this.value=this.stringify.text(g)}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,g,x;for(x="",g=this.previousSibling;g;)x=g.data+x,g=g.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}(p)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(s,w,_){(function(){var u,p,y,m,b,v,c,h,g,x,T,I,R,N,k,L,H,M={}.hasOwnProperty;H=s("./Utility").assign,u=s("./NodeType"),g=s("./XMLDeclaration"),x=s("./XMLDocType"),y=s("./XMLCData"),m=s("./XMLComment"),I=s("./XMLElement"),N=s("./XMLRaw"),k=s("./XMLText"),R=s("./XMLProcessingInstruction"),T=s("./XMLDummy"),b=s("./XMLDTDAttList"),v=s("./XMLDTDElement"),c=s("./XMLDTDEntity"),h=s("./XMLDTDNotation"),p=s("./WriterState"),w.exports=L=function(){function F(P){var U,G,Q;P||(P={}),this.options=P,G=P.writer||{};for(U in G)M.call(G,U)&&(Q=G[U],this["_"+U]=this[U],this[U]=Q)}return F.prototype.filterOptions=function(P){var U,G,Q,ee,ae,oe,he,le;return P||(P={}),P=H({},this.options,P),U={writer:this},U.pretty=P.pretty||!1,U.allowEmpty=P.allowEmpty||!1,U.indent=(G=P.indent)!=null?G:" ",U.newline=(Q=P.newline)!=null?Q:`
`,U.offset=(ee=P.offset)!=null?ee:0,U.dontPrettyTextNodes=(ae=(oe=P.dontPrettyTextNodes)!=null?oe:P.dontprettytextnodes)!=null?ae:0,U.spaceBeforeSlash=(he=(le=P.spaceBeforeSlash)!=null?le:P.spacebeforeslash)!=null?he:"",U.spaceBeforeSlash===!0&&(U.spaceBeforeSlash=" "),U.suppressPrettyCount=0,U.user={},U.state=p.None,U},F.prototype.indent=function(P,U,G){var Q;return!U.pretty||U.suppressPrettyCount?"":U.pretty&&(Q=(G||0)+U.offset+1,Q>0)?new Array(Q).join(U.indent):""},F.prototype.endline=function(P,U,G){return!U.pretty||U.suppressPrettyCount?"":U.newline},F.prototype.attribute=function(P,U,G){var Q;return this.openAttribute(P,U,G),Q=" "+P.name+'="'+P.value+'"',this.closeAttribute(P,U,G),Q},F.prototype.cdata=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G)+"<![CDATA[",U.state=p.InsideTag,Q+=P.value,U.state=p.CloseTag,Q+="]]>"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.comment=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G)+"<!-- ",U.state=p.InsideTag,Q+=P.value,U.state=p.CloseTag,Q+=" -->"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.declaration=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G)+"<?xml",U.state=p.InsideTag,Q+=' version="'+P.version+'"',P.encoding!=null&&(Q+=' encoding="'+P.encoding+'"'),P.standalone!=null&&(Q+=' standalone="'+P.standalone+'"'),U.state=p.CloseTag,Q+=U.spaceBeforeSlash+"?>",Q+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.docType=function(P,U,G){var Q,ee,ae,oe,he;if(G||(G=0),this.openNode(P,U,G),U.state=p.OpenTag,oe=this.indent(P,U,G),oe+="<!DOCTYPE "+P.root().name,P.pubID&&P.sysID?oe+=' PUBLIC "'+P.pubID+'" "'+P.sysID+'"':P.sysID&&(oe+=' SYSTEM "'+P.sysID+'"'),P.children.length>0){for(oe+=" [",oe+=this.endline(P,U,G),U.state=p.InsideTag,he=P.children,ee=0,ae=he.length;ee<ae;ee++)Q=he[ee],oe+=this.writeChildNode(Q,U,G+1);U.state=p.CloseTag,oe+="]"}return U.state=p.CloseTag,oe+=U.spaceBeforeSlash+">",oe+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),oe},F.prototype.element=function(P,U,G){var Q,ee,ae,oe,he,le,be,pe,_e,ne,ue,ce,Re,ke;G||(G=0),ne=!1,ue="",this.openNode(P,U,G),U.state=p.OpenTag,ue+=this.indent(P,U,G)+"<"+P.name,ce=P.attribs;for(_e in ce)M.call(ce,_e)&&(Q=ce[_e],ue+=this.attribute(Q,U,G));if(ae=P.children.length,oe=ae===0?null:P.children[0],ae===0||P.children.every(function(Ne){return(Ne.type===u.Text||Ne.type===u.Raw)&&Ne.value===""}))U.allowEmpty?(ue+=">",U.state=p.CloseTag,ue+="</"+P.name+">"+this.endline(P,U,G)):(U.state=p.CloseTag,ue+=U.spaceBeforeSlash+"/>"+this.endline(P,U,G));else if(U.pretty&&ae===1&&(oe.type===u.Text||oe.type===u.Raw)&&oe.value!=null)ue+=">",U.state=p.InsideTag,U.suppressPrettyCount++,ne=!0,ue+=this.writeChildNode(oe,U,G+1),U.suppressPrettyCount--,ne=!1,U.state=p.CloseTag,ue+="</"+P.name+">"+this.endline(P,U,G);else{if(U.dontPrettyTextNodes){for(Re=P.children,he=0,be=Re.length;he<be;he++)if(ee=Re[he],(ee.type===u.Text||ee.type===u.Raw)&&ee.value!=null){U.suppressPrettyCount++,ne=!0;break}}for(ue+=">"+this.endline(P,U,G),U.state=p.InsideTag,ke=P.children,le=0,pe=ke.length;le<pe;le++)ee=ke[le],ue+=this.writeChildNode(ee,U,G+1);U.state=p.CloseTag,ue+=this.indent(P,U,G)+"</"+P.name+">",ne&&U.suppressPrettyCount--,ue+=this.endline(P,U,G),U.state=p.None}return this.closeNode(P,U,G),ue},F.prototype.writeChildNode=function(P,U,G){switch(P.type){case u.CData:return this.cdata(P,U,G);case u.Comment:return this.comment(P,U,G);case u.Element:return this.element(P,U,G);case u.Raw:return this.raw(P,U,G);case u.Text:return this.text(P,U,G);case u.ProcessingInstruction:return this.processingInstruction(P,U,G);case u.Dummy:return"";case u.Declaration:return this.declaration(P,U,G);case u.DocType:return this.docType(P,U,G);case u.AttributeDeclaration:return this.dtdAttList(P,U,G);case u.ElementDeclaration:return this.dtdElement(P,U,G);case u.EntityDeclaration:return this.dtdEntity(P,U,G);case u.NotationDeclaration:return this.dtdNotation(P,U,G);default:throw new Error("Unknown XML node type: "+P.constructor.name)}},F.prototype.processingInstruction=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G)+"<?",U.state=p.InsideTag,Q+=P.target,P.value&&(Q+=" "+P.value),U.state=p.CloseTag,Q+=U.spaceBeforeSlash+"?>",Q+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.raw=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G),U.state=p.InsideTag,Q+=P.value,U.state=p.CloseTag,Q+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.text=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G),U.state=p.InsideTag,Q+=P.value,U.state=p.CloseTag,Q+=this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.dtdAttList=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G)+"<!ATTLIST",U.state=p.InsideTag,Q+=" "+P.elementName+" "+P.attributeName+" "+P.attributeType,P.defaultValueType!=="#DEFAULT"&&(Q+=" "+P.defaultValueType),P.defaultValue&&(Q+=' "'+P.defaultValue+'"'),U.state=p.CloseTag,Q+=U.spaceBeforeSlash+">"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.dtdElement=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G)+"<!ELEMENT",U.state=p.InsideTag,Q+=" "+P.name+" "+P.value,U.state=p.CloseTag,Q+=U.spaceBeforeSlash+">"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.dtdEntity=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G)+"<!ENTITY",U.state=p.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)),U.state=p.CloseTag,Q+=U.spaceBeforeSlash+">"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.dtdNotation=function(P,U,G){var Q;return this.openNode(P,U,G),U.state=p.OpenTag,Q=this.indent(P,U,G)+"<!NOTATION",U.state=p.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+'"'),U.state=p.CloseTag,Q+=U.spaceBeforeSlash+">"+this.endline(P,U,G),U.state=p.None,this.closeNode(P,U,G),Q},F.prototype.openNode=function(P,U,G){},F.prototype.closeNode=function(P,U,G){},F.prototype.openAttribute=function(P,U,G){},F.prototype.closeAttribute=function(P,U,G){},F}()}).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,w,_){(function(){var u,p,y,m,b,v,c,h,g,x;x=s("./Utility"),h=x.assign,g=x.isFunction,y=s("./XMLDOMImplementation"),m=s("./XMLDocument"),b=s("./XMLDocumentCB"),c=s("./XMLStringWriter"),v=s("./XMLStreamWriter"),u=s("./NodeType"),p=s("./WriterState"),w.exports.create=function(T,I,R,N){var k,L;if(T==null)throw new Error("Root element needs a name.");return N=h({},I,R,N),k=new m(N),L=k.element(T),N.headless||(k.declaration(N),(N.pubID!=null||N.sysID!=null)&&k.dtd(N)),L},w.exports.begin=function(T,I,R){var N;return g(T)&&(N=[T,I],I=N[0],R=N[1],T={}),I?new b(T,I,R):new m(T)},w.exports.stringWriter=function(T){return new c(T)},w.exports.streamWriter=function(T,I){return new v(T,I)},w.exports.implementation=new y,w.exports.nodeType=u,w.exports.writerState=p}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(s,w,_){w.exports=p;var u=Object.prototype.hasOwnProperty;function p(){for(var y={},m=0;m<arguments.length;m++){var b=arguments[m];for(var v in b)u.call(b,v)&&(y[v]=b[v])}return y}},{}],461:[function(s,w,_){"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,p=s("./sha"),y=s("./md5"),m={sha1:p,md5:y},b=64,v=u.alloc(b);v.fill(0);function c(x,T,I){u.isBuffer(T)||(T=u.from(T)),u.isBuffer(I)||(I=u.from(I)),T.length>b?T=x(T):T.length<b&&(T=u.concat([T,v],b));for(var R=u.alloc(b),N=u.alloc(b),k=0;k<b;k++)R[k]=T[k]^54,N[k]=T[k]^92;var L=x(u.concat([R,I]));return x(u.concat([N,L]))}function h(x,T){x=x||"sha1";var I=m[x],R=[],N=0;return I||g("algorithm:",x,"is not yet supported"),{update:function(L){return u.isBuffer(L)||(L=u.from(L)),R.push(L),N+=L.length,this},digest:function(L){var H=u.concat(R),M=T?c(I,T,H):I(H);return R=null,L?M.toString(L):M}}}function g(){var x=[].slice.call(arguments).join(" ");throw new Error([x,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}_.createHash=function(x){return h(x)},_.createHmac=function(x,T){return h(x,T)},_.createCredentials=function(){g("sorry,createCredentials is not implemented yet")},_.createCipher=function(){g("sorry,createCipher is not implemented yet")},_.createCipheriv=function(){g("sorry,createCipheriv is not implemented yet")},_.createDecipher=function(){g("sorry,createDecipher is not implemented yet")},_.createDecipheriv=function(){g("sorry,createDecipheriv is not implemented yet")},_.createSign=function(){g("sorry,createSign is not implemented yet")},_.createVerify=function(){g("sorry,createVerify is not implemented yet")},_.createDiffieHellman=function(){g("sorry,createDiffieHellman is not implemented yet")},_.pbkdf2=function(){g("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,w,_){"use strict";s("core-js/modules/es.array.fill.js"),s("core-js/modules/es.array.concat.js");var u=s("buffer").Buffer,p=4,y=u.alloc(p);y.fill(0);var m=8;function b(h,g){if(h.length%p!==0){var x=h.length+(p-h.length%p);h=u.concat([h,y],x)}for(var T=[],I=g?h.readInt32BE:h.readInt32LE,R=0;R<h.length;R+=p)T.push(I.call(h,R));return T}function v(h,g,x){for(var T=u.alloc(g),I=x?T.writeInt32BE:T.writeInt32LE,R=0;R<h.length;R++)I.call(T,h[R],R*4,!0);return T}function c(h,g,x,T){u.isBuffer(h)||(h=u.from(h));var I=g(b(h,T),h.length*m);return v(I,x,T)}w.exports={hash:c}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(s,w,_){"use strict";var u=s("./helpers");function p(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function y(T,I){T[I>>5]|=128<<I%32,T[(I+64>>>9<<4)+14]=I;for(var R=1732584193,N=-271733879,k=-1732584194,L=271733878,H=0;H<T.length;H+=16){var M=R,F=N,P=k,U=L;R=b(R,N,k,L,T[H+0],7,-680876936),L=b(L,R,N,k,T[H+1],12,-389564586),k=b(k,L,R,N,T[H+2],17,606105819),N=b(N,k,L,R,T[H+3],22,-1044525330),R=b(R,N,k,L,T[H+4],7,-176418897),L=b(L,R,N,k,T[H+5],12,1200080426),k=b(k,L,R,N,T[H+6],17,-1473231341),N=b(N,k,L,R,T[H+7],22,-45705983),R=b(R,N,k,L,T[H+8],7,1770035416),L=b(L,R,N,k,T[H+9],12,-1958414417),k=b(k,L,R,N,T[H+10],17,-42063),N=b(N,k,L,R,T[H+11],22,-1990404162),R=b(R,N,k,L,T[H+12],7,1804603682),L=b(L,R,N,k,T[H+13],12,-40341101),k=b(k,L,R,N,T[H+14],17,-1502002290),N=b(N,k,L,R,T[H+15],22,1236535329),R=v(R,N,k,L,T[H+1],5,-165796510),L=v(L,R,N,k,T[H+6],9,-1069501632),k=v(k,L,R,N,T[H+11],14,643717713),N=v(N,k,L,R,T[H+0],20,-373897302),R=v(R,N,k,L,T[H+5],5,-701558691),L=v(L,R,N,k,T[H+10],9,38016083),k=v(k,L,R,N,T[H+15],14,-660478335),N=v(N,k,L,R,T[H+4],20,-405537848),R=v(R,N,k,L,T[H+9],5,568446438),L=v(L,R,N,k,T[H+14],9,-1019803690),k=v(k,L,R,N,T[H+3],14,-187363961),N=v(N,k,L,R,T[H+8],20,1163531501),R=v(R,N,k,L,T[H+13],5,-1444681467),L=v(L,R,N,k,T[H+2],9,-51403784),k=v(k,L,R,N,T[H+7],14,1735328473),N=v(N,k,L,R,T[H+12],20,-1926607734),R=c(R,N,k,L,T[H+5],4,-378558),L=c(L,R,N,k,T[H+8],11,-2022574463),k=c(k,L,R,N,T[H+11],16,1839030562),N=c(N,k,L,R,T[H+14],23,-35309556),R=c(R,N,k,L,T[H+1],4,-1530992060),L=c(L,R,N,k,T[H+4],11,1272893353),k=c(k,L,R,N,T[H+7],16,-155497632),N=c(N,k,L,R,T[H+10],23,-1094730640),R=c(R,N,k,L,T[H+13],4,681279174),L=c(L,R,N,k,T[H+0],11,-358537222),k=c(k,L,R,N,T[H+3],16,-722521979),N=c(N,k,L,R,T[H+6],23,76029189),R=c(R,N,k,L,T[H+9],4,-640364487),L=c(L,R,N,k,T[H+12],11,-421815835),k=c(k,L,R,N,T[H+15],16,530742520),N=c(N,k,L,R,T[H+2],23,-995338651),R=h(R,N,k,L,T[H+0],6,-198630844),L=h(L,R,N,k,T[H+7],10,1126891415),k=h(k,L,R,N,T[H+14],15,-1416354905),N=h(N,k,L,R,T[H+5],21,-57434055),R=h(R,N,k,L,T[H+12],6,1700485571),L=h(L,R,N,k,T[H+3],10,-1894986606),k=h(k,L,R,N,T[H+10],15,-1051523),N=h(N,k,L,R,T[H+1],21,-2054922799),R=h(R,N,k,L,T[H+8],6,1873313359),L=h(L,R,N,k,T[H+15],10,-30611744),k=h(k,L,R,N,T[H+6],15,-1560198380),N=h(N,k,L,R,T[H+13],21,1309151649),R=h(R,N,k,L,T[H+4],6,-145523070),L=h(L,R,N,k,T[H+11],10,-1120210379),k=h(k,L,R,N,T[H+2],15,718787259),N=h(N,k,L,R,T[H+9],21,-343485551),R=g(R,M),N=g(N,F),k=g(k,P),L=g(L,U)}return Array(R,N,k,L)}function m(T,I,R,N,k,L){return g(x(g(g(I,T),g(N,L)),k),R)}function b(T,I,R,N,k,L,H){return m(I&R|~I&N,T,I,k,L,H)}function v(T,I,R,N,k,L,H){return m(I&N|R&~N,T,I,k,L,H)}function c(T,I,R,N,k,L,H){return m(I^R^N,T,I,k,L,H)}function h(T,I,R,N,k,L,H){return m(R^(I|~N),T,I,k,L,H)}function g(T,I){var R=(T&65535)+(I&65535),N=(T>>16)+(I>>16)+(R>>16);return N<<16|R&65535}function x(T,I){return T<<I|T>>>32-I}w.exports=function(I){return u.hash(I,y,16)}},{"./helpers":462}],464:[function(s,w,_){"use strict";var u=s("./helpers");function p(c,h){c[h>>5]|=128<<24-h%32,c[(h+64>>9<<4)+15]=h;for(var g=Array(80),x=1732584193,T=-271733879,I=-1732584194,R=271733878,N=-1009589776,k=0;k<c.length;k+=16){for(var L=x,H=T,M=I,F=R,P=N,U=0;U<80;U++){U<16?g[U]=c[k+U]:g[U]=v(g[U-3]^g[U-8]^g[U-14]^g[U-16],1);var G=b(b(v(x,5),y(U,T,I,R)),b(b(N,g[U]),m(U)));N=R,R=I,I=v(T,30),T=x,x=G}x=b(x,L),T=b(T,H),I=b(I,M),R=b(R,F),N=b(N,P)}return Array(x,T,I,R,N)}function y(c,h,g,x){return c<20?h&g|~h&x:c<40?h^g^x:c<60?h&g|h&x|g&x:h^g^x}function m(c){return c<20?1518500249:c<40?1859775393:c<60?-1894007588:-899497514}function b(c,h){var g=(c&65535)+(h&65535),x=(c>>16)+(h>>16)+(g>>16);return x<<16|g&65535}function v(c,h){return c<<h|c>>>32-h}w.exports=function(h){return u.hash(h,p,20,!0)}},{"./helpers":462}],465:[function(s,w,_){"use strict";w.exports=function(){return function(){}}},{}],466:[function(s,w,_){(function(u){(function(){"use strict";var p=s("@babel/runtime/helpers/interopRequireDefault"),y=p(s("@babel/runtime/helpers/typeof")),m=s("stream"),b=m.Stream,v=s("../lib/common/utils/isArray"),c=v.isArray;w.exports.string=function(x){return typeof x=="string"},w.exports.array=c,w.exports.buffer=u.isBuffer;function h(g){return g instanceof b}w.exports.writableStream=function(x){return h(x)&&typeof x._write=="function"&&(0,y.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,w,_){"use strict";var u=s("immediate"),p=w.exports={};p.nextTick=u,p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={};function y(){}p.on=y,p.addListener=y,p.once=y,p.off=y,p.removeListener=y,p.removeAllListeners=y,p.emit=y,p.prependListener=y,p.prependOnceListener=y,p.listeners=function(m){return[]},p.binding=function(m){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(m){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{immediate:358}],468:[function(s,w,_){(function(u){(function(){"use strict";s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.search.js");var p=s("./lib/request"),y=s("./lib/response"),m=s("xtend"),b=s("builtin-status-codes"),v=s("url"),c=_;c.request=function(h,g){typeof h=="string"?h=v.parse(h):h=m(h);var x=u.location.protocol.search(/^https?:$/)===-1?"http:":"",T=h.protocol||x,I=h.hostname||h.host,R=h.port,N=h.path||"/";I&&I.indexOf(":")!==-1&&(I="["+I+"]"),h.url=(I?T+"//"+I:"")+(R?":"+R:"")+N,h.method=(h.method||"GET").toUpperCase(),h.headers=h.headers||{};var k=new p(h);return g&&k.on("response",g),k},c.get=function(g,x){var T=c.request(g,x);return T.end(),T},c.ClientRequest=p,c.IncomingMessage=y.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=b,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 J!="undefined"?J: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,w,_){(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"),_.fetch=c(u.fetch)&&c(u.ReadableStream),_.writableStream=c(u.WritableStream),_.abortController=c(u.AbortController),_.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),_.blobConstructor=!0}catch(h){}var p;function y(){if(p!==void 0)return p;if(u.XMLHttpRequest){p=new u.XMLHttpRequest;try{p.open("GET",u.XDomainRequest?"/":"https://example.com")}catch(h){p=null}}else p=null;return p}function m(h){var g=y();if(!g)return!1;try{return g.responseType=h,g.responseType===h}catch(x){}return!1}var b=typeof u.ArrayBuffer!="undefined",v=b&&c(u.ArrayBuffer.prototype.slice);_.arraybuffer=_.fetch||b&&m("arraybuffer"),_.msstream=!_.fetch&&v&&m("ms-stream"),_.mozchunkedarraybuffer=!_.fetch&&b&&m("moz-chunked-arraybuffer"),_.overrideMimeType=_.fetch||(y()?c(y().overrideMimeType):!1),_.vbArray=c(u.VBArray);function c(h){return typeof h=="function"}p=null}).call(this)}).call(this,typeof J!="undefined"?J: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,w,_){(function(u,p,y){(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 m=s("./capability"),b=s("inherits"),v=s("./response"),c=s("readable-stream"),h=s("to-arraybuffer"),g=v.IncomingMessage,x=v.readyStates;function T(k,L){return m.fetch&&L?"fetch":m.mozchunkedarraybuffer?"moz-chunked-arraybuffer":m.msstream?"ms-stream":m.arraybuffer&&k?"arraybuffer":m.vbArray&&k?"text:vbarray":"text"}var I=w.exports=function(k){var L=this;c.Writable.call(L),L._opts=k,L._body=[],L._headers={},k.auth&&L.setHeader("Authorization","Basic "+new y(k.auth).toString("base64")),Object.keys(k.headers).forEach(function(F){L.setHeader(F,k.headers[F])});var H,M=!0;if(k.mode==="disable-fetch"||"requestTimeout"in k&&!m.abortController)M=!1,H=!0;else if(k.mode==="prefer-streaming")H=!1;else if(k.mode==="allow-wrong-content-type")H=!m.overrideMimeType;else if(!k.mode||k.mode==="default"||k.mode==="prefer-fast")H=!0;else throw new Error("Invalid value for opts.mode");L._mode=T(H,M),L._fetchTimer=null,L.on("finish",function(){L._onFinish()})};b(I,c.Writable),I.prototype.setHeader=function(k,L){var H=this,M=k.toLowerCase();N.indexOf(M)===-1&&(H._headers[M]={name:k,value:L})},I.prototype.getHeader=function(k){var L=this._headers[k.toLowerCase()];return L?L.value:null},I.prototype.removeHeader=function(k){var L=this;delete L._headers[k.toLowerCase()]},I.prototype._onFinish=function(){var k=this;if(!k._destroyed){var L=k._opts,H=k._headers,M=null;L.method!=="GET"&&L.method!=="HEAD"&&(m.arraybuffer?M=h(y.concat(k._body)):m.blobConstructor?M=new p.Blob(k._body.map(function(ee){return h(ee)}),{type:(H["content-type"]||{}).value||""}):M=y.concat(k._body).toString());var F=[];if(Object.keys(H).forEach(function(ee){var ae=H[ee].name,oe=H[ee].value;Array.isArray(oe)?oe.forEach(function(he){F.push([ae,he])}):F.push([ae,oe])}),k._mode==="fetch"){var P=null,U=null;if(m.abortController){var G=new AbortController;P=G.signal,k._fetchAbortController=G,"requestTimeout"in L&&L.requestTimeout!==0&&(k._fetchTimer=p.setTimeout(function(){k.emit("requestTimeout"),k._fetchAbortController&&k._fetchAbortController.abort()},L.requestTimeout))}p.fetch(k._opts.url,{method:k._opts.method,headers:F,body:M||void 0,mode:"cors",credentials:L.withCredentials?"include":"same-origin",signal:P}).then(function(ee){k._fetchResponse=ee,k._connect()},function(ee){p.clearTimeout(k._fetchTimer),k._destroyed||k.emit("error",ee)})}else{var Q=k._xhr=new p.XMLHttpRequest;try{Q.open(k._opts.method,k._opts.url,!0)}catch(ee){u.nextTick(function(){k.emit("error",ee)});return}"responseType"in Q&&(Q.responseType=k._mode.split(":")[0]),"withCredentials"in Q&&(Q.withCredentials=!!L.withCredentials),k._mode==="text"&&"overrideMimeType"in Q&&Q.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in L&&(Q.timeout=L.requestTimeout,Q.ontimeout=function(){k.emit("requestTimeout")}),F.forEach(function(ee){Q.setRequestHeader(ee[0],ee[1])}),k._response=null,Q.onreadystatechange=function(){switch(Q.readyState){case x.LOADING:case x.DONE:k._onXHRProgress();break}},k._mode==="moz-chunked-arraybuffer"&&(Q.onprogress=function(){k._onXHRProgress()}),Q.onerror=function(){k._destroyed||k.emit("error",new Error("XHR error"))};try{Q.send(M)}catch(ee){u.nextTick(function(){k.emit("error",ee)});return}}}};function R(k){try{var L=k.status;return L!==null&&L!==0}catch(H){return!1}}I.prototype._onXHRProgress=function(){var k=this;!R(k._xhr)||k._destroyed||(k._response||k._connect(),k._response._onXHRProgress())},I.prototype._connect=function(){var k=this;k._destroyed||(k._response=new g(k._xhr,k._fetchResponse,k._mode,k._fetchTimer),k._response.on("error",function(L){k.emit("error",L)}),k.emit("response",k._response))},I.prototype._write=function(k,L,H){var M=this;M._body.push(k),H()},I.prototype.abort=I.prototype.destroy=function(){var k=this;k._destroyed=!0,p.clearTimeout(k._fetchTimer),k._response&&(k._response._destroyed=!0),k._xhr?k._xhr.abort():k._fetchAbortController&&k._fetchAbortController.abort()},I.prototype.end=function(k,L,H){var M=this;typeof k=="function"&&(H=k,k=void 0),c.Writable.prototype.end.call(M,k,L,H)},I.prototype.flushHeaders=function(){},I.prototype.setTimeout=function(){},I.prototype.setNoDelay=function(){},I.prototype.setSocketKeepAlive=function(){};var N=["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 J!="undefined"?J: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,w,_){(function(u,p,y){(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 m=s("./capability"),b=s("inherits"),v=s("readable-stream"),c=_.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},h=_.IncomingMessage=function(g,x,T,I){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 N=function P(){L.read().then(function(U){if(!R._destroyed){if(U.done){p.clearTimeout(I),R.push(null);return}R.push(new y(U.value)),P()}}).catch(function(U){p.clearTimeout(I),R._destroyed||R.emit("error",U)})};if(R._fetchResponse=x,R.url=x.url,R.statusCode=x.status,R.statusMessage=x.statusText,x.headers.forEach(function(P,U){R.headers[U.toLowerCase()]=P,R.rawHeaders.push(U,P)}),m.writableStream){var k=new WritableStream({write:function(U){return new Promise(function(G,Q){R._destroyed?Q():R.push(new y(U))?G():R._resumeFetch=G})},close:function(){p.clearTimeout(I),R._destroyed||R.push(null)},abort:function(U){R._destroyed||R.emit("error",U)}});try{x.body.pipeTo(k).catch(function(P){p.clearTimeout(I),R._destroyed||R.emit("error",P)});return}catch(P){}}var L=x.body.getReader();N()}else{R._xhr=g,R._pos=0,R.url=g.responseURL,R.statusCode=g.status,R.statusMessage=g.statusText;var H=g.getAllResponseHeaders().split(/\r?\n/);if(H.forEach(function(P){var U=P.match(/^([^:]+):\s*(.*)/);if(U){var G=U[1].toLowerCase();G==="set-cookie"?(R.headers[G]===void 0&&(R.headers[G]=[]),R.headers[G].push(U[2])):R.headers[G]!==void 0?R.headers[G]+=", "+U[2]:R.headers[G]=U[2],R.rawHeaders.push(U[1],U[2])}}),R._charset="x-user-defined",!m.overrideMimeType){var M=R.rawHeaders["mime-type"];if(M){var F=M.match(/;\s*charset=([^;])(;|$)/);F&&(R._charset=F[1].toLowerCase())}R._charset||(R._charset="utf-8")}}};b(h,v.Readable),h.prototype._read=function(){var g=this,x=g._resumeFetch;x&&(g._resumeFetch=null,x())},h.prototype._onXHRProgress=function(){var g=this,x=g._xhr,T=null;switch(g._mode){case"text:vbarray":if(x.readyState!==c.DONE)break;try{T=new p.VBArray(x.responseBody).toArray()}catch(L){}if(T!==null){g.push(new y(T));break}case"text":try{T=x.responseText}catch(L){g._mode="text:vbarray";break}if(T.length>g._pos){var I=T.substr(g._pos);if(g._charset==="x-user-defined"){for(var R=new y(I.length),N=0;N<I.length;N++)R[N]=I.charCodeAt(N)&255;g.push(R)}else g.push(I,g._charset);g._pos=T.length}break;case"arraybuffer":if(x.readyState!==c.DONE||!x.response)break;T=x.response,g.push(new y(new Uint8Array(T)));break;case"moz-chunked-arraybuffer":if(T=x.response,x.readyState!==c.LOADING||!T)break;g.push(new y(new Uint8Array(T)));break;case"ms-stream":if(T=x.response,x.readyState!==c.LOADING)break;var k=new p.MSStreamReader;k.onprogress=function(){k.result.byteLength>g._pos&&(g.push(new y(new Uint8Array(k.result.slice(g._pos)))),g._pos=k.result.byteLength)},k.onload=function(){g.push(null)},k.readAsArrayBuffer(T);break}g._xhr.readyState===c.DONE&&g._mode!=="ms-stream"&&g.push(null)}}).call(this)}).call(this,s("_process"),typeof J!="undefined"?J: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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=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 y=s("punycode"),m=s("./util");_.parse=U,_.resolve=Q,_.resolveObject=ee,_.format=G,_.Url=b;function b(){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]*)?$/,g=["<",">",'"',"`"," ","\r",`
`," "],x=["{","}","|","\\","^","`"].concat(g),T=["'"].concat(x),I=["%","/","?",";","#"].concat(T),R=["/","?","#"],N=255,k=/^[+a-z0-9A-Z_-]{0,63}$/,L=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,H={javascript:!0,"javascript:":!0},M={javascript:!0,"javascript:":!0},F={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=s("querystring");function U(ae,oe,he){if(ae&&m.isObject(ae)&&ae instanceof b)return ae;var le=new b;return le.parse(ae,oe,he),le}b.prototype.parse=function(ae,oe,he){if(!m.isString(ae))throw new TypeError("Parameter 'url' must be a string, not "+(0,p.default)(ae));var le=ae.indexOf("?"),be=le!==-1&&le<ae.indexOf("#")?"?":"#",pe=ae.split(be),_e=/\\/g;pe[0]=pe[0].replace(_e,"/"),ae=pe.join(be);var ne=ae;if(ne=ne.trim(),!he&&ae.split("#").length===1){var ue=h.exec(ne);if(ue)return this.path=ne,this.href=ne,this.pathname=ue[1],ue[2]?(this.search=ue[2],oe?this.query=P.parse(this.search.substr(1)):this.query=this.search.substr(1)):oe&&(this.search="",this.query={}),this}var ce=v.exec(ne);if(ce){ce=ce[0];var Re=ce.toLowerCase();this.protocol=Re,ne=ne.substr(ce.length)}if(he||ce||ne.match(/^\/\/[^@\/]+@[^@\/]+/)){var ke=ne.substr(0,2)==="//";ke&&!(ce&&M[ce])&&(ne=ne.substr(2),this.slashes=!0)}if(!M[ce]&&(ke||ce&&!F[ce])){for(var Ne=-1,De=0;De<R.length;De++){var Me=ne.indexOf(R[De]);Me!==-1&&(Ne===-1||Me<Ne)&&(Ne=Me)}var We,je;Ne===-1?je=ne.lastIndexOf("@"):je=ne.lastIndexOf("@",Ne),je!==-1&&(We=ne.slice(0,je),ne=ne.slice(je+1),this.auth=decodeURIComponent(We)),Ne=-1;for(var De=0;De<I.length;De++){var Me=ne.indexOf(I[De]);Me!==-1&&(Ne===-1||Me<Ne)&&(Ne=Me)}Ne===-1&&(Ne=ne.length),this.host=ne.slice(0,Ne),ne=ne.slice(Ne),this.parseHost(),this.hostname=this.hostname||"";var et=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!et)for(var it=this.hostname.split("."),De=0,ze=it.length;De<ze;De++){var xe=it[De];if(xe&&!xe.match(k)){for(var fe="",W=0,Z=xe.length;W<Z;W++)xe.charCodeAt(W)>127?fe+="x":fe+=xe[W];if(!fe.match(k)){var me=it.slice(0,De),Ce=it.slice(De+1),re=xe.match(L);re&&(me.push(re[1]),Ce.unshift(re[2])),Ce.length&&(ne="/"+Ce.join(".")+ne),this.hostname=me.join(".");break}}}this.hostname.length>N?this.hostname="":this.hostname=this.hostname.toLowerCase(),et||(this.hostname=y.toASCII(this.hostname));var ie=this.port?":"+this.port:"",de=this.hostname||"";this.host=de+ie,this.href+=this.host,et&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ne[0]!=="/"&&(ne="/"+ne))}if(!H[Re])for(var De=0,ze=T.length;De<ze;De++){var Ae=T[De];if(ne.indexOf(Ae)!==-1){var Be=encodeURIComponent(Ae);Be===Ae&&(Be=escape(Ae)),ne=ne.split(Ae).join(Be)}}var He=ne.indexOf("#");He!==-1&&(this.hash=ne.substr(He),ne=ne.slice(0,He));var st=ne.indexOf("?");if(st!==-1?(this.search=ne.substr(st),this.query=ne.substr(st+1),oe&&(this.query=P.parse(this.query)),ne=ne.slice(0,st)):oe&&(this.search="",this.query={}),ne&&(this.pathname=ne),F[Re]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ie=this.pathname||"",Qe=this.search||"";this.path=ie+Qe}return this.href=this.format(),this};function G(ae){return m.isString(ae)&&(ae=U(ae)),ae instanceof b?ae.format():b.prototype.format.call(ae)}b.prototype.format=function(){var ae=this.auth||"";ae&&(ae=encodeURIComponent(ae),ae=ae.replace(/%3A/i,":"),ae+="@");var oe=this.protocol||"",he=this.pathname||"",le=this.hash||"",be=!1,pe="";this.host?be=ae+this.host:this.hostname&&(be=ae+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(be+=":"+this.port)),this.query&&m.isObject(this.query)&&Object.keys(this.query).length&&(pe=P.stringify(this.query));var _e=this.search||pe&&"?"+pe||"";return oe&&oe.substr(-1)!==":"&&(oe+=":"),this.slashes||(!oe||F[oe])&&be!==!1?(be="//"+(be||""),he&&he.charAt(0)!=="/"&&(he="/"+he)):be||(be=""),le&&le.charAt(0)!=="#"&&(le="#"+le),_e&&_e.charAt(0)!=="?"&&(_e="?"+_e),he=he.replace(/[?#]/g,function(ne){return encodeURIComponent(ne)}),_e=_e.replace("#","%23"),oe+be+he+_e+le};function Q(ae,oe){return U(ae,!1,!0).resolve(oe)}b.prototype.resolve=function(ae){return this.resolveObject(U(ae,!1,!0)).format()};function ee(ae,oe){return ae?U(ae,!1,!0).resolveObject(oe):oe}b.prototype.resolveObject=function(ae){if(m.isString(ae)){var oe=new b;oe.parse(ae,!1,!0),ae=oe}for(var he=new b,le=Object.keys(this),be=0;be<le.length;be++){var pe=le[be];he[pe]=this[pe]}if(he.hash=ae.hash,ae.href==="")return he.href=he.format(),he;if(ae.slashes&&!ae.protocol){for(var _e=Object.keys(ae),ne=0;ne<_e.length;ne++){var ue=_e[ne];ue!=="protocol"&&(he[ue]=ae[ue])}return F[he.protocol]&&he.hostname&&!he.pathname&&(he.path=he.pathname="/"),he.href=he.format(),he}if(ae.protocol&&ae.protocol!==he.protocol){if(!F[ae.protocol]){for(var ce=Object.keys(ae),Re=0;Re<ce.length;Re++){var ke=ce[Re];he[ke]=ae[ke]}return he.href=he.format(),he}if(he.protocol=ae.protocol,!ae.host&&!M[ae.protocol]){for(var ze=(ae.pathname||"").split("/");ze.length&&!(ae.host=ze.shift()););ae.host||(ae.host=""),ae.hostname||(ae.hostname=""),ze[0]!==""&&ze.unshift(""),ze.length<2&&ze.unshift(""),he.pathname=ze.join("/")}else he.pathname=ae.pathname;if(he.search=ae.search,he.query=ae.query,he.host=ae.host||"",he.auth=ae.auth,he.hostname=ae.hostname||ae.host,he.port=ae.port,he.pathname||he.search){var Ne=he.pathname||"",De=he.search||"";he.path=Ne+De}return he.slashes=he.slashes||ae.slashes,he.href=he.format(),he}var Me=he.pathname&&he.pathname.charAt(0)==="/",We=ae.host||ae.pathname&&ae.pathname.charAt(0)==="/",je=We||Me||he.host&&ae.pathname,et=je,it=he.pathname&&he.pathname.split("/")||[],ze=ae.pathname&&ae.pathname.split("/")||[],xe=he.protocol&&!F[he.protocol];if(xe&&(he.hostname="",he.port=null,he.host&&(it[0]===""?it[0]=he.host:it.unshift(he.host)),he.host="",ae.protocol&&(ae.hostname=null,ae.port=null,ae.host&&(ze[0]===""?ze[0]=ae.host:ze.unshift(ae.host)),ae.host=null),je=je&&(ze[0]===""||it[0]==="")),We)he.host=ae.host||ae.host===""?ae.host:he.host,he.hostname=ae.hostname||ae.hostname===""?ae.hostname:he.hostname,he.search=ae.search,he.query=ae.query,it=ze;else if(ze.length)it||(it=[]),it.pop(),it=it.concat(ze),he.search=ae.search,he.query=ae.query;else if(!m.isNullOrUndefined(ae.search)){if(xe){he.hostname=he.host=it.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=ae.search,he.query=ae.query,(!m.isNull(he.pathname)||!m.isNull(he.search))&&(he.path=(he.pathname?he.pathname:"")+(he.search?he.search:"")),he.href=he.format(),he}if(!it.length)return he.pathname=null,he.search?he.path="/"+he.search:he.path=null,he.href=he.format(),he;for(var W=it.slice(-1)[0],Z=(he.host||ae.host||it.length>1)&&(W==="."||W==="..")||W==="",me=0,Ce=it.length;Ce>=0;Ce--)W=it[Ce],W==="."?it.splice(Ce,1):W===".."?(it.splice(Ce,1),me++):me&&(it.splice(Ce,1),me--);if(!je&&!et)for(;me--;me)it.unshift("..");je&&it[0]!==""&&(!it[0]||it[0].charAt(0)!=="/")&&it.unshift(""),Z&&it.join("/").substr(-1)!=="/"&&it.push("");var re=it[0]===""||it[0]&&it[0].charAt(0)==="/";if(xe){he.hostname=he.host=re?"":it.length?it.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 je=je||he.host&&it.length,je&&!re&&it.unshift(""),it.length?he.pathname=it.join("/"):(he.pathname=null,he.path=null),(!m.isNull(he.pathname)||!m.isNull(he.search))&&(he.path=(he.pathname?he.pathname:"")+(he.search?he.search:"")),he.auth=ae.auth||he.auth,he.slashes=he.slashes||ae.slashes,he.href=he.format(),he},b.prototype.parseHost=function(){var ae=this.host,oe=c.exec(ae);oe&&(oe=oe[0],oe!==":"&&(this.port=oe.substr(1)),ae=ae.substr(0,ae.length-oe.length)),ae&&(this.hostname=ae)}},{"./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,w,_){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),p=u(s("@babel/runtime/helpers/typeof"));w.exports={isString:function(m){return typeof m=="string"},isObject:function(m){return(0,p.default)(m)==="object"&&m!==null},isNull:function(m){return m===null},isNullOrUndefined:function(m){return m==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(s,w,_){"use strict";s("core-js/modules/es.number.constructor.js"),_.encodeURIComponent=function(u){try{return encodeURIComponent(u)}catch(p){return u}},_.escape=s("escape-html"),_.timestamp=function(p){if(p){var y=p;return typeof y=="string"&&(y=Number(y)),String(p).length===10&&(y*=1e3),new Date(y)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(s,w,_){(function(u,p){(function(){"use strict";var y=s("@babel/runtime/helpers/interopRequireDefault"),m=y(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 b=s("util"),v=s("url"),c=s("http"),h=s("https"),g=s("debug")("urllib"),x=s("humanize-ms"),T=0,I=Math.pow(2,31)-10,R=/^https?:\/\//i;function N(M,F){return M===void 0?F:M}function k(M){return M?M.split(";")[0].trim().toLowerCase():""}function L(M,F){return function(P,U,G){if(P)return F(P);M({data:U,status:G.statusCode,headers:G.headers,res:G})}}_.TIMEOUTS=[x("300s"),x("300s")];var H=["json","text"];_.request=function(F,P,U){return arguments.length===2&&typeof P=="function"&&(U=P,P=null),typeof U=="function"?_.requestWithCallback(F,P,U):new Promise(function(G,Q){_.requestWithCallback(F,P,L(G,Q))})},_.requestWithCallback=function(F,P,U){if(!F||typeof F!="string"&&(0,m.default)(F)!=="object"){var G=b.format("expect request url to be a string or a http request options, but got %j",F);throw new Error(G)}arguments.length===2&&typeof P=="function"&&(U=P,P=null),P=P||{},T>=I&&(T=0);var Q=++T;P.requestUrls=P.requestUrls||[];var ee={requestId:Q,url:F,args:P,ctx:P.ctx};P.emitter&&P.emitter.emit("request",ee),P.timeout=P.timeout||_.TIMEOUTS,P.maxRedirects=P.maxRedirects||10,P.streaming=P.streaming||P.customResponse;var ae=Date.now(),oe;typeof F=="string"?(R.test(F)||(F="https://"+F),oe=v.parse(F)):oe=F;var he=(P.type||P.method||oe.method||"GET").toUpperCase(),le=oe.port||80,be=c,pe=N(P.agent,_.agent),_e=P.fixJSONCtlChars;oe.protocol==="https:"&&(be=h,pe=N(P.httpsAgent,_.httpsAgent),oe.port||(le=443));var ne={host:oe.hostname||oe.host||"localhost",path:oe.path||"/",method:he,port:le,agent:pe,headers:P.headers||{},lookup:P.lookup};Array.isArray(P.timeout)?ne.requestTimeout=P.timeout[P.timeout.length-1]:typeof P.timeout!="undefined"&&(ne.requestTimeout=P.timeout);var ue=P.auth||oe.auth;ue&&(ne.auth=ue);var ce=P.content||P.data,Re=he==="GET"||he==="HEAD"||P.dataAsQueryString;if(!P.content&&ce&&!(typeof ce=="string"||p.isBuffer(ce)))if(Re)ce=P.nestedQuerystring?qs.stringify(ce):querystring.stringify(ce);else{var ke=ne.headers["Content-Type"]||ne.headers["content-type"];ke||(P.contentType==="json"?ke="application/json":ke="application/x-www-form-urlencoded",ne.headers["Content-Type"]=ke),k(ke)==="application/json"?ce=JSON.stringify(ce):ce=P.nestedQuerystring?qs.stringify(ce):querystring.stringify(ce)}Re&&ce&&(ne.path+=(oe.query?"&":"?")+ce,ce=null);var Ne=0;if(ce){var De=ce.length;p.isBuffer(ce)||(De=p.byteLength(ce)),Ne=ne.headers["Content-Length"]=De}P.dataType==="json"&&(ne.headers.Accept="application/json"),typeof P.beforeRequest=="function"&&P.beforeRequest(ne);var Me=null,We=null,je=null,et=!1,it=!1,ze=0,xe=-1,fe=!1,W="",Z="",me=null;P.timing&&(me={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Ce(){Me&&(clearTimeout(Me),Me=null)}function re(){We&&(clearTimeout(We),We=null)}function ie(ut,At,bt){if(re(),!U){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Q,u.pid,ne.method,F),ut&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Q,u.pid,ut.name,ut.message,ut.stack);return}var Tt=U;U=null;var Mt={};bt&&(xe=bt.statusCode,Mt=bt.headers);var Ot=Date.now()-ae;me&&(me.contentDownload=Ot),g("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ot,ze,xe,ne.method,ne.host,ne.path,it,me);var $e={status:xe,statusCode:xe,headers:Mt,size:ze,aborted:fe,rt:Ot,keepAliveSocket:it,data:At,requestUrls:P.requestUrls,timing:me,remoteAddress:W,remotePort:Z};if(ut){var $t="";pe&&typeof pe.getCurrentStatus=="function"&&($t=", agent status: "+JSON.stringify(pe.getCurrentStatus())),ut.message+=", "+ne.method+" "+F+" "+xe+" (connected: "+et+", keepalive socket: "+it+$t+`)
headers: `+JSON.stringify(Mt),ut.data=At,ut.path=ne.path,ut.status=xe,ut.headers=Mt,ut.res=$e}Tt(ut,At,P.streaming?bt:$e),P.emitter&&(ee.url=F,ee.socket=gt&&gt.connection,ee.options=ne,ee.size=Ne,P.emitter.emit("response",{requestId:Q,error:ut,ctx:P.ctx,req:ee,res:$e}))}function de(ut){var At=null;if(P.followRedirect&&statuses.redirect[ut.statusCode]){P._followRedirectCount=(P._followRedirectCount||0)+1;var bt=ut.headers.location;if(!bt)At=new Error("Got statusCode "+ut.statusCode+" but cannot resolve next location from headers"),At.name="FollowRedirectError";else if(P._followRedirectCount>P.maxRedirects)At=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+F),At.name="MaxRedirectError";else{var Tt=P.formatRedirectUrl?P.formatRedirectUrl(F,bt):v.resolve(F,bt);g("Request#%d %s: `redirected` from %s to %s",Q,ne.path,F,Tt),re(),P.headers&&P.headers.Host&&R.test(bt)&&(P.headers.Host=null);var Mt=U;return U=null,_.requestWithCallback(Tt,P,Mt),{redirect:!0,error:null}}}return{redirect:!1,error:At}}P.gzip&&!ne.headers["Accept-Encoding"]&&!ne.headers["accept-encoding"]&&(ne.headers["Accept-Encoding"]="gzip");function Ae(ut,At,bt){var Tt=ut.headers["content-encoding"];return bt(null,At,Tt)}var Be=P.writeStream;g("Request#%d %s %s with headers %j, options.path: %s",Q,he,F,ne.headers,ne.path),P.requestUrls.push(F);function He(ut){if(me&&(me.waiting=Date.now()-ae),g("Request#%d %s `req response` event emit: status %d, headers: %j",Q,F,ut.statusCode,ut.headers),P.streaming){var At=de(ut);if(At.redirect){ut.resume();return}return At.error?(ut.resume(),ie(At.error,null,ut)):ie(null,null,ut)}if(ut.on("close",function(){g("Request#%d %s: `res close` event emit, total size %d",Q,F,ze)}),ut.on("error",function(){g("Request#%d %s: `res error` event emit, total size %d",Q,F,ze)}),ut.on("aborted",function(){fe=!0,g("Request#%d %s: `res aborted` event emit, total size %d",Q,F,ze)}),Be){var bt=de(ut);if(bt.redirect){ut.resume();return}return bt.error?(ut.resume(),Be.end(),ie(bt.error,null,ut)):(P.consumeWriteStream===!1?ut.on("end",ie.bind(null,null,null,ut)):Be.on("close",function(){g("Request#%d %s: writeStream close event emitted",Q,F),ie(je||null,null,ut)}),ut.pipe(Be))}var Tt=[];ut.on("data",function(Mt){g("Request#%d %s: `res data` event emit, size %d",Q,F,Mt.length),ze+=Mt.length,Tt.push(Mt)}),ut.on("end",function(){var Mt=p.concat(Tt,ze);if(g("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Q,F,ze,ut._dumped),je)return ie(je,Mt,ut);var Ot=de(ut);if(Ot.error)return ie(Ot.error,Mt,ut);Ot.redirect||Ae(ut,Mt,function($e,$t,gn){if($e)return ie($e,Mt,ut);if(!gn&&H.indexOf(P.dataType)>=0){try{$t=decodeBodyByCharset($t,ut)}catch(Mn){return g("decodeBodyByCharset error: %s",Mn),ie(null,$t,ut)}if(P.dataType==="json")if(ze===0)$t=null;else{var Et=parseJSON($t,_e);Et.error?$e=Et.error:$t=Et.data}}fe&&g("Request#%d %s: Remote socket was terminated before `response.end()` was called",Q,F),ie($e,$t,ut)})})}var st,Qe;Array.isArray(P.timeout)?(st=x(P.timeout[0]),Qe=x(P.timeout[1])):st=Qe=x(P.timeout),g("ConnectTimeout: %d, ResponseTimeout: %d",st,Qe);function pt(){g("Connect timer ticking, timeout: %d",st),Me=setTimeout(function(){Me=null,xe===-1&&(xe=-2);var ut="Connect timeout for "+st+"ms",At="ConnectionTimeoutError";gt.socket||(At="SocketAssignTimeoutError",ut+=", working sockets is full"),je=new Error(ut),je.name=At,je.requestId=Q,g("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Q,F,je.name,ut,et),rt()},st)}function It(){g("Response timer ticking, timeout: %d",Qe),We=setTimeout(function(){We=null;var ut="Response timeout for "+Qe+"ms",At="ResponseTimeoutError";je=new Error(ut),je.name=At,je.requestId=Q,g("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Q,F,je.name,ut,et),rt()},Qe)}var gt;ne.mode=P.mode?P.mode:"";try{gt=be.request(ne,He)}catch(ut){return ie(ut)}typeof window=="undefined"?pt():gt.on("requestTimeout",function(){xe===-1&&(xe=-2);var ut="Connect timeout for "+st+"ms",At="ConnectionTimeoutError";je=new Error(ut),je.name=At,je.requestId=Q,rt()});function rt(){g("Request#%d %s abort, connected: %s",Q,F,et),gt.socket||(je.noSocket=!0,ie(je)),gt.abort()}return me&&gt.on("finish",function(){me.requestSent=Date.now()-ae}),gt.once("socket",function(ut){me&&(me.queuing=Date.now()-ae);var At=ut.readyState;if(At==="opening"){ut.once("lookup",function(bt,Tt,Mt){g("Request#%d %s lookup: %s, %s, %s",Q,F,bt,Tt,Mt),me&&(me.dnslookup=Date.now()-ae),Tt&&(W=Tt)}),ut.once("connect",function(){me&&(me.connected=Date.now()-ae),Ce(),It(),g("Request#%d %s new socket connected",Q,F),et=!0,W||(W=ut.remoteAddress),Z=ut.remotePort});return}g("Request#%d %s reuse socket connected, readyState: %s",Q,F,At),et=!0,it=!0,W||(W=ut.remoteAddress),Z=ut.remotePort,Ce(),It()}),gt.on("error",function(ut){(ut.name==="Error"||ut.name==="TypeError")&&(ut.name=et?"ResponseError":"RequestError"),ut.message+=' (req "error")',g("Request#%d %s `req error` event emit, %s: %s",Q,F,ut.name,ut.message),ie(je||ut)}),Be&&Be.once("error",function(ut){ut.message+=' (writeStream "error")',je=ut,g("Request#%d %s `writeStream error` event emit, %s: %s",Q,F,ut.name,ut.message),rt()}),P.stream?(P.stream.pipe(gt),P.stream.once("error",function(ut){ut.message+=' (stream "error")',je=ut,g("Request#%d %s `readStream error` event emit, %s: %s",Q,F,ut.name,ut.message),rt()})):gt.end(ce),gt.requestId=Q,gt}}).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)},57780:function(Oe,J,S){"use strict";S.r(J),S.d(J,{clsx:function(){return Y}});function B(s){var w,_,u="";if(typeof s=="string"||typeof s=="number")u+=s;else if(typeof s=="object")if(Array.isArray(s))for(w=0;w<s.length;w++)s[w]&&(_=B(s[w]))&&(u&&(u+=" "),u+=_);else for(w in s)s[w]&&(u&&(u+=" "),u+=w);return u}function Y(){for(var s,w,_=0,u="";_<arguments.length;)(s=arguments[_++])&&(w=B(s))&&(u&&(u+=" "),u+=w);return u}J.default=Y},99498:function(Oe,J,S){(function(B){B(S(89780))})(function(B){B.defineOption("placeholder","",function(y,m,b){var v=b&&b!=B.Init;if(m&&!v)y.on("blur",_),y.on("change",u),y.on("swapDoc",u),B.on(y.getInputField(),"compositionupdate",y.state.placeholderCompose=function(){w(y)}),u(y);else if(!m&&v){y.off("blur",_),y.off("change",u),y.off("swapDoc",u),B.off(y.getInputField(),"compositionupdate",y.state.placeholderCompose),Y(y);var c=y.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}m&&!y.hasFocus()&&_(y)});function Y(y){y.state.placeholder&&(y.state.placeholder.parentNode.removeChild(y.state.placeholder),y.state.placeholder=null)}function s(y){Y(y);var m=y.state.placeholder=document.createElement("pre");m.style.cssText="height: 0; overflow: visible",m.style.direction=y.getOption("direction"),m.className="CodeMirror-placeholder CodeMirror-line-like";var b=y.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),m.appendChild(b),y.display.lineSpace.insertBefore(m,y.display.lineSpace.firstChild)}function w(y){setTimeout(function(){var m=!1,b=y.getInputField();b.nodeName=="TEXTAREA"?m=!b.value:y.lineCount()==1&&(m=!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)),m?s(y):Y(y)},20)}function _(y){p(y)&&s(y)}function u(y){var m=y.getWrapperElement(),b=p(y);m.className=m.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?s(y):Y(y)}function p(y){return y.lineCount()===1&&y.getLine(0)===""}})},25717:function(Oe,J,S){(function(B){B(S(89780))})(function(B){var Y={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},s=B.Pos;B.defineOption("autoCloseBrackets",!1,function(x,T,I){I&&I!=B.Init&&(x.removeKeyMap(_),x.state.closeBrackets=null),T&&(u(w(T,"pairs")),x.state.closeBrackets=T,x.addKeyMap(_))});function w(x,T){return T=="pairs"&&typeof x=="string"?x:typeof x=="object"&&x[T]!=null?x[T]:Y[T]}var _={Backspace:m,Enter:b};function u(x){for(var T=0;T<x.length;T++){var I=x.charAt(T),R="'"+I+"'";_[R]||(_[R]=p(I))}}u(Y.pairs+"`");function p(x){return function(T){return c(T,x)}}function y(x){var T=x.state.closeBrackets;if(!T||T.override)return T;var I=x.getModeAt(x.getCursor());return I.closeBrackets||T}function m(x){var T=y(x);if(!T||x.getOption("disableInput"))return B.Pass;for(var I=w(T,"pairs"),R=x.listSelections(),N=0;N<R.length;N++){if(!R[N].empty())return B.Pass;var k=h(x,R[N].head);if(!k||I.indexOf(k)%2!=0)return B.Pass}for(var N=R.length-1;N>=0;N--){var L=R[N].head;x.replaceRange("",s(L.line,L.ch-1),s(L.line,L.ch+1),"+delete")}}function b(x){var T=y(x),I=T&&w(T,"explode");if(!I||x.getOption("disableInput"))return B.Pass;for(var R=x.listSelections(),N=0;N<R.length;N++){if(!R[N].empty())return B.Pass;var k=h(x,R[N].head);if(!k||I.indexOf(k)%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 H=0;H<R.length;H++){var M=R[H].head.line;x.indentLine(M,null,!0),x.indentLine(M+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 I=y(x);if(!I||x.getOption("disableInput"))return B.Pass;var R=w(I,"pairs"),N=R.indexOf(T);if(N==-1)return B.Pass;for(var k=w(I,"closeBefore"),L=w(I,"triples"),H=R.charAt(N+1)==T,M=x.listSelections(),F=N%2==0,P,U=0;U<M.length;U++){var G=M[U],Q=G.head,ee,ae=x.getRange(Q,s(Q.line,Q.ch+1));if(F&&!G.empty())ee="surround";else if((H||!F)&&ae==T)H&&g(x,Q)?ee="both":L.indexOf(T)>=0&&x.getRange(Q,s(Q.line,Q.ch+3))==T+T+T?ee="skipThree":ee="skip";else if(H&&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;ee="addFour"}else if(H){var oe=Q.ch==0?" ":x.getRange(s(Q.line,Q.ch-1),Q);if(!B.isWordChar(ae)&&oe!=T&&!B.isWordChar(oe))ee="both";else return B.Pass}else if(F&&(ae.length===0||/\s/.test(ae)||k.indexOf(ae)>-1))ee="both";else return B.Pass;if(!P)P=ee;else if(P!=ee)return B.Pass}var he=N%2?R.charAt(N-1):T,le=N%2?T:R.charAt(N+1);x.operation(function(){if(P=="skip")x.execCommand("goCharRight");else if(P=="skipThree")for(var be=0;be<3;be++)x.execCommand("goCharRight");else if(P=="surround"){for(var pe=x.getSelections(),be=0;be<pe.length;be++)pe[be]=he+pe[be]+le;x.replaceSelections(pe,"around"),pe=x.listSelections().slice();for(var be=0;be<pe.length;be++)pe[be]=v(pe[be]);x.setSelections(pe)}else P=="both"?(x.replaceSelection(he+le,null),x.triggerElectric(he+le),x.execCommand("goCharLeft")):P=="addFour"&&(x.replaceSelection(he+he+he+he,"before"),x.execCommand("goCharRight"))})}function h(x,T){var I=x.getRange(s(T.line,T.ch-1),s(T.line,T.ch+1));return I.length==2?I:null}function g(x,T){var I=x.getTokenAt(s(T.line,T.ch+1));return/\bstring/.test(I.type)&&I.start==T.ch&&(T.ch==0||!/\bstring/.test(x.getTokenTypeAt(T)))}})},6313:function(Oe,J,S){(function(B){B(S(89780),S(32855))})(function(B){B.defineOption("autoCloseTags",!1,function(m,b,v){if(v!=B.Init&&v&&m.removeKeyMap("autoCloseTags"),!!b){var c={name:"autoCloseTags"};(typeof b!="object"||b.whenClosing!==!1)&&(c["'/'"]=function(h){return u(h)}),(typeof b!="object"||b.whenOpening!==!1)&&(c["'>'"]=function(h){return w(h)}),m.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 w(m){if(m.getOption("disableInput"))return B.Pass;for(var b=m.listSelections(),v=[],c=m.getOption("autoCloseTags"),h=0;h<b.length;h++){if(!b[h].empty())return B.Pass;var g=b[h].head,x=m.getTokenAt(g),T=B.innerMode(m.getMode(),x.state),I=T.state,R=T.mode.xmlCurrentTag&&T.mode.xmlCurrentTag(I),N=R&&R.name;if(!N)return B.Pass;var k=T.mode.configuration=="html",L=typeof c=="object"&&c.dontCloseTags||k&&Y,H=typeof c=="object"&&c.indentTags||k&&s;x.end>g.ch&&(N=N.slice(0,N.length-x.end+g.ch));var M=N.toLowerCase();if(!N||x.type=="string"&&(x.end!=g.ch||!/[\"\']/.test(x.string.charAt(x.string.length-1))||x.string.length==1)||x.type=="tag"&&R.close||x.string.indexOf("/")==g.ch-x.start-1||L&&p(L,M)>-1||y(m,T.mode.xmlCurrentContext&&T.mode.xmlCurrentContext(I)||[],N,g,!0))return B.Pass;var F=typeof c=="object"&&c.emptyTags;if(F&&p(F,N)>-1){v[h]={text:"/>",newPos:B.Pos(g.line,g.ch+2)};continue}var P=H&&p(H,M)>-1;v[h]={indent:P,text:">"+(P?`
`:"")+"</"+N+">",newPos:P?B.Pos(g.line+1,0):B.Pos(g.line,g.ch+1)}}for(var U=typeof c=="object"&&c.dontIndentOnAutoClose,h=b.length-1;h>=0;h--){var G=v[h];m.replaceRange(G.text,b[h].head,b[h].anchor,"+insert");var Q=m.listSelections().slice(0);Q[h]={head:G.newPos,anchor:G.newPos},m.setSelections(Q),!U&&G.indent&&(m.indentLine(G.newPos.line,null,!0),m.indentLine(G.newPos.line+1,null,!0))}}function _(m,b){for(var v=m.listSelections(),c=[],h=b?"/":"</",g=m.getOption("autoCloseTags"),x=typeof g=="object"&&g.dontIndentOnSlash,T=0;T<v.length;T++){if(!v[T].empty())return B.Pass;var I=v[T].head,R=m.getTokenAt(I),N=B.innerMode(m.getMode(),R.state),k=N.state;if(b&&(R.type=="string"||R.string.charAt(0)!="<"||R.start!=I.ch-1))return B.Pass;var L,H=N.mode.name!="xml"&&m.getMode().name=="htmlmixed";if(H&&N.mode.name=="javascript")L=h+"script";else if(H&&N.mode.name=="css")L=h+"style";else{var M=N.mode.xmlCurrentContext&&N.mode.xmlCurrentContext(k);if(!M||M.length&&y(m,M,M[M.length-1],I))return B.Pass;L=h+M[M.length-1]}m.getLine(I.line).charAt(R.end)!=">"&&(L+=">"),c[T]=L}if(m.replaceSelections(c),v=m.listSelections(),!x)for(var T=0;T<v.length;T++)(T==v.length-1||v[T].head.line<v[T+1].head.line)&&m.indentLine(v[T].head.line)}function u(m){return m.getOption("disableInput")?B.Pass:_(m,!0)}B.commands.closeTag=function(m){return _(m)};function p(m,b){if(m.indexOf)return m.indexOf(b);for(var v=0,c=m.length;v<c;++v)if(m[v]==b)return v;return-1}function y(m,b,v,c,h){if(!B.scanForClosingTag)return!1;var g=Math.min(m.lastLine()+1,c.line+500),x=B.scanForClosingTag(m,c,null,g);if(!x||x.tag!=v)return!1;for(var T=h?1:0,I=b.length-1;I>=0&&b[I]==v;I--)++T;c=x.to;for(var I=1;I<T;I++){var R=B.scanForClosingTag(m,c,null,g);if(!R||R.tag!=v)return!1;c=R.to}return!0}})},32855:function(Oe,J,S){(function(B){B(S(89780))})(function(B){"use strict";var Y=B.Pos;function s(I,R){return I.line-R.line||I.ch-R.ch}var w="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",_=w+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",u=new RegExp("<(/?)(["+w+"]["+_+"]*)","g");function p(I,R,N,k){this.line=R,this.ch=N,this.cm=I,this.text=I.getLine(R),this.min=k?Math.max(k.from,I.firstLine()):I.firstLine(),this.max=k?Math.min(k.to-1,I.lastLine()):I.lastLine()}function y(I,R){var N=I.cm.getTokenTypeAt(Y(I.line,R));return N&&/\btag\b/.test(N)}function m(I){if(!(I.line>=I.max))return I.ch=0,I.text=I.cm.getLine(++I.line),!0}function b(I){if(!(I.line<=I.min))return I.text=I.cm.getLine(--I.line),I.ch=I.text.length,!0}function v(I){for(;;){var R=I.text.indexOf(">",I.ch);if(R==-1){if(m(I))continue;return}if(!y(I,R+1)){I.ch=R+1;continue}var N=I.text.lastIndexOf("/",R),k=N>-1&&!/\S/.test(I.text.slice(N+1,R));return I.ch=R+1,k?"selfClose":"regular"}}function c(I){for(;;){var R=I.ch?I.text.lastIndexOf("<",I.ch-1):-1;if(R==-1){if(b(I))continue;return}if(!y(I,R+1)){I.ch=R;continue}u.lastIndex=R,I.ch=R;var N=u.exec(I.text);if(N&&N.index==R)return N}}function h(I){for(;;){u.lastIndex=I.ch;var R=u.exec(I.text);if(!R){if(m(I))continue;return}if(!y(I,R.index+1)){I.ch=R.index+1;continue}return I.ch=R.index+R[0].length,R}}function g(I){for(;;){var R=I.ch?I.text.lastIndexOf(">",I.ch-1):-1;if(R==-1){if(b(I))continue;return}if(!y(I,R+1)){I.ch=R;continue}var N=I.text.lastIndexOf("/",R),k=N>-1&&!/\S/.test(I.text.slice(N+1,R));return I.ch=R+1,k?"selfClose":"regular"}}function x(I,R){for(var N=[];;){var k=h(I),L,H=I.line,M=I.ch-(k?k[0].length:0);if(!k||!(L=v(I)))return;if(L!="selfClose")if(k[1]){for(var F=N.length-1;F>=0;--F)if(N[F]==k[2]){N.length=F;break}if(F<0&&(!R||R==k[2]))return{tag:k[2],from:Y(H,M),to:Y(I.line,I.ch)}}else N.push(k[2])}}function T(I,R){for(var N=[];;){var k=g(I);if(!k)return;if(k=="selfClose"){c(I);continue}var L=I.line,H=I.ch,M=c(I);if(!M)return;if(M[1])N.push(M[2]);else{for(var F=N.length-1;F>=0;--F)if(N[F]==M[2]){N.length=F;break}if(F<0&&(!R||R==M[2]))return{tag:M[2],from:Y(I.line,I.ch),to:Y(L,H)}}}}B.registerHelper("fold","xml",function(I,R){for(var N=new p(I,R.line,0);;){var k=h(N);if(!k||N.line!=R.line)return;var L=v(N);if(!L)return;if(!k[1]&&L!="selfClose"){var H=Y(N.line,N.ch),M=x(N,k[2]);return M&&s(M.from,H)>0?{from:H,to:M.from}:null}}}),B.findMatchingTag=function(I,R,N){var k=new p(I,R.line,R.ch,N);if(!(k.text.indexOf(">")==-1&&k.text.indexOf("<")==-1)){var L=v(k),H=L&&Y(k.line,k.ch),M=L&&c(k);if(!(!L||!M||s(k,R)>0)){var F={from:Y(k.line,k.ch),to:H,tag:M[2]};return L=="selfClose"?{open:F,close:null,at:"open"}:M[1]?{open:T(k,M[2]),close:F,at:"close"}:(k=new p(I,H.line,H.ch,N),{open:F,close:x(k,M[2]),at:"open"})}}},B.findEnclosingTag=function(I,R,N,k){for(var L=new p(I,R.line,R.ch,N);;){var H=T(L,k);if(!H)break;var M=new p(I,R.line,R.ch,N),F=x(M,H.tag);if(F)return{open:H,close:F}}},B.scanForClosingTag=function(I,R,N,k){var L=new p(I,R.line,R.ch,k?{from:0,to:k}:null);return x(L,N)}})},89780:function(Oe){(function(J,S){Oe.exports=S()})(this,function(){"use strict";var J=navigator.userAgent,S=navigator.platform,B=/gecko\/\d/i.test(J),Y=/MSIE \d/.test(J),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(J),w=/Edge\/(\d+)/.exec(J),_=Y||s||w,u=_&&(Y?document.documentMode||6:+(w||s)[1]),p=!w&&/WebKit\//.test(J),y=p&&/Qt\/\d+\.\d+/.test(J),m=!w&&/Chrome\//.test(J),b=/Opera\//.test(J),v=/Apple Computer/.test(navigator.vendor),c=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(J),h=/PhantomJS/.test(J),g=!w&&/AppleWebKit/.test(J)&&/Mobile\/\w+/.test(J),x=/Android/.test(J),T=g||x||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(J),I=g||/Mac/.test(S),R=/\bCrOS\b/.test(J),N=/win/i.test(S),k=b&&J.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(b=!1,p=!0);var L=I&&(y||b&&(k==null||k<12.11)),H=B||_&&u>=9;function M(l){return new RegExp("(^|\\s)"+l+"(?:$|\\s)\\s*")}var F=function(l,C){var K=l.className,V=M(C).exec(K);if(V){var q=K.slice(V.index+V[0].length);l.className=K.slice(0,V.index)+(q?V[1]+q:"")}};function P(l){for(var C=l.childNodes.length;C>0;--C)l.removeChild(l.firstChild);return l}function U(l,C){return P(l).appendChild(C)}function G(l,C,K,V){var q=document.createElement(l);if(K&&(q.className=K),V&&(q.style.cssText=V),typeof C=="string")q.appendChild(document.createTextNode(C));else if(C)for(var Se=0;Se<C.length;++Se)q.appendChild(C[Se]);return q}function Q(l,C,K,V){var q=G(l,C,K,V);return q.setAttribute("role","presentation"),q}var ee;document.createRange?ee=function(l,C,K,V){var q=document.createRange();return q.setEnd(V||l,K),q.setStart(l,C),q}:ee=function(l,C,K){var V=document.body.createTextRange();try{V.moveToElementText(l.parentNode)}catch(q){return V}return V.collapse(!0),V.moveEnd("character",K),V.moveStart("character",C),V};function ae(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 oe(){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;M(C).test(K)||(l.className+=(K?" ":"")+C)}function le(l,C){for(var K=l.split(" "),V=0;V<K.length;V++)K[V]&&!M(K[V]).test(C)&&(C+=" "+K[V]);return C}var be=function(l){l.select()};g?be=function(l){l.selectionStart=0,l.selectionEnd=l.value.length}:_&&(be=function(l){try{l.select()}catch(C){}});function pe(l){var C=Array.prototype.slice.call(arguments,1);return function(){return l.apply(null,C)}}function _e(l,C,K){C||(C={});for(var V in l)l.hasOwnProperty(V)&&(K!==!1||!C.hasOwnProperty(V))&&(C[V]=l[V]);return C}function ne(l,C,K,V,q){C==null&&(C=l.search(/[^\s\u00a0]/),C==-1&&(C=l.length));for(var Se=V||0,Fe=q||0;;){var Ye=l.indexOf(" ",Se);if(Ye<0||Ye>=C)return Fe+(C-Se);Fe+=Ye-Se,Fe+=K-Fe%K,Se=Ye+1}}var ue=function(){this.id=null,this.f=null,this.time=0,this.handler=pe(this.onTimeout,this)};ue.prototype.onTimeout=function(l){l.id=0,l.time<=+new Date?l.f():setTimeout(l.handler,l.time-+new Date)},ue.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 ce(l,C){for(var K=0;K<l.length;++K)if(l[K]==C)return K;return-1}var Re=50,ke={toString:function(){return"CodeMirror.Pass"}},Ne={scroll:!1},De={origin:"*mouse"},Me={origin:"+move"};function We(l,C,K){for(var V=0,q=0;;){var Se=l.indexOf(" ",V);Se==-1&&(Se=l.length);var Fe=Se-V;if(Se==l.length||q+Fe>=C)return V+Math.min(Fe,C-q);if(q+=Se-V,q+=K-q%K,V=Se+1,q>=C)return V}}var je=[""];function et(l){for(;je.length<=l;)je.push(it(je)+" ");return je[l]}function it(l){return l[l.length-1]}function ze(l,C){for(var K=[],V=0;V<l.length;V++)K[V]=C(l[V],V);return K}function xe(l,C,K){for(var V=0,q=K(C);V<l.length&&K(l[V])<=q;)V++;l.splice(V,0,C)}function fe(){}function W(l,C){var K;return Object.create?K=Object.create(l):(fe.prototype=l,K=new fe),C&&_e(C,K),K}var Z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function me(l){return/\w/.test(l)||l>"\x80"&&(l.toUpperCase()!=l.toLowerCase()||Z.test(l))}function Ce(l,C){return C?C.source.indexOf("\\w")>-1&&me(l)?!0:C.test(l):me(l)}function re(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 de(l){return l.charCodeAt(0)>=768&&ie.test(l)}function Ae(l,C,K){for(;(K<0?C>0:C<l.length)&&de(l.charAt(C));)C+=K;return C}function Be(l,C,K){for(var V=C>K?-1:1;;){if(C==K)return C;var q=(C+K)/2,Se=V<0?Math.ceil(q):Math.floor(q);if(Se==C)return l(Se)?C:K;l(Se)?K=Se:C=Se+V}}function He(l,C,K,V){if(!l)return V(C,K,"ltr",0);for(var q=!1,Se=0;Se<l.length;++Se){var Fe=l[Se];(Fe.from<K&&Fe.to>C||C==K&&Fe.to==C)&&(V(Math.max(Fe.from,C),Math.min(Fe.to,K),Fe.level==1?"rtl":"ltr",Se),q=!0)}q||V(C,K,"ltr")}var st=null;function Qe(l,C,K){var V;st=null;for(var q=0;q<l.length;++q){var Se=l[q];if(Se.from<C&&Se.to>C)return q;Se.to==C&&(Se.from!=Se.to&&K=="before"?V=q:st=q),Se.from==C&&(Se.from!=Se.to&&K!="before"?V=q:st=q)}return V!=null?V:st}var pt=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 V=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,q=/[stwN]/,Se=/[LRr]/,Fe=/[Lb1n]/,Ye=/[1n]/;function Ve(ot,Rt,ht){this.level=ot,this.from=Rt,this.to=ht}return function(ot,Rt){var ht=Rt=="ltr"?"L":"R";if(ot.length==0||Rt=="ltr"&&!V.test(ot))return!1;for(var Yt=ot.length,jt=[],Rn=0;Rn<Yt;++Rn)jt.push(K(ot.charCodeAt(Rn)));for(var Ln=0,Gn=ht;Ln<Yt;++Ln){var rr=jt[Ln];rr=="m"?jt[Ln]=Gn:Gn=rr}for(var kr=0,mr=ht;kr<Yt;++kr){var Ur=jt[kr];Ur=="1"&&mr=="r"?jt[kr]="n":Se.test(Ur)&&(mr=Ur,Ur=="r"&&(jt[kr]="R"))}for(var xi=1,gr=jt[0];xi<Yt-1;++xi){var no=jt[xi];no=="+"&&gr=="1"&&jt[xi+1]=="1"?jt[xi]="1":no==","&&gr==jt[xi+1]&&(gr=="1"||gr=="n")&&(jt[xi]=gr),gr=no}for(var ss=0;ss<Yt;++ss){var ta=jt[ss];if(ta==",")jt[ss]="N";else if(ta=="%"){var bs=void 0;for(bs=ss+1;bs<Yt&&jt[bs]=="%";++bs);for(var dl=ss&&jt[ss-1]=="!"||bs<Yt&&jt[bs]=="1"?"1":"N",Ha=ss;Ha<bs;++Ha)jt[Ha]=dl;ss=bs-1}}for(var Ys=0,_l=ht;Ys<Yt;++Ys){var Na=jt[Ys];_l=="L"&&Na=="1"?jt[Ys]="L":Se.test(Na)&&(_l=Na)}for(var $s=0;$s<Yt;++$s)if(q.test(jt[$s])){var So=void 0;for(So=$s+1;So<Yt&&q.test(jt[So]);++So);for(var Es=($s?jt[$s-1]:ht)=="L",ha=(So<Yt?jt[So]:ht)=="L",Ra=Es==ha?Es?"L":"R":ht,bu=$s;bu<So;++bu)jt[bu]=Ra;$s=So-1}for(var Ss=[],iu,Ns=0;Ns<Yt;)if(Fe.test(jt[Ns])){var pf=Ns;for(++Ns;Ns<Yt&&Fe.test(jt[Ns]);++Ns);Ss.push(new Ve(0,pf,Ns))}else{var Ul=Ns,Al=Ss.length,pl=Rt=="rtl"?1:0;for(++Ns;Ns<Yt&&jt[Ns]!="L";++Ns);for(var Go=Ul;Go<Ns;)if(Ye.test(jt[Go])){Ul<Go&&(Ss.splice(Al,0,new Ve(1,Ul,Go)),Al+=pl);var fa=Go;for(++Go;Go<Ns&&Ye.test(jt[Go]);++Go);Ss.splice(Al,0,new Ve(2,fa,Go)),Al+=pl,Ul=Go}else++Go;Ul<Ns&&Ss.splice(Al,0,new Ve(1,Ul,Ns))}return Rt=="ltr"&&(Ss[0].level==1&&(iu=ot.match(/^\s+/))&&(Ss[0].from=iu[0].length,Ss.unshift(new Ve(0,0,iu[0].length))),it(Ss).level==1&&(iu=ot.match(/\s+$/))&&(it(Ss).to-=iu[0].length,Ss.push(new Ve(0,Yt-iu[0].length,Yt)))),Rt=="rtl"?Ss.reverse():Ss}}();function It(l,C){var K=l.order;return K==null&&(K=l.order=pt(l.text,C)),K}var gt=[],rt=function(l,C,K){if(l.addEventListener)l.addEventListener(C,K,!1);else if(l.attachEvent)l.attachEvent("on"+C,K);else{var V=l._handlers||(l._handlers={});V[C]=(V[C]||gt).concat(K)}};function ut(l,C){return l._handlers&&l._handlers[C]||gt}function At(l,C,K){if(l.removeEventListener)l.removeEventListener(C,K,!1);else if(l.detachEvent)l.detachEvent("on"+C,K);else{var V=l._handlers,q=V&&V[C];if(q){var Se=ce(q,K);Se>-1&&(V[C]=q.slice(0,Se).concat(q.slice(Se+1)))}}}function bt(l,C){var K=ut(l,C);if(K.length)for(var V=Array.prototype.slice.call(arguments,2),q=0;q<K.length;++q)K[q].apply(null,V)}function Tt(l,C,K){return typeof C=="string"&&(C={type:C,preventDefault:function(){this.defaultPrevented=!0}}),bt(l,K||C.type,l,C),Et(C)||C.codemirrorIgnore}function Mt(l){var C=l._handlers&&l._handlers.cursorActivity;if(C)for(var K=l.curOp.cursorActivityHandlers||(l.curOp.cursorActivityHandlers=[]),V=0;V<C.length;++V)ce(K,C[V])==-1&&K.push(C[V])}function Ot(l,C){return ut(l,C).length>0}function $e(l){l.prototype.on=function(C,K){rt(this,C,K)},l.prototype.off=function(C,K){At(this,C,K)}}function $t(l){l.preventDefault?l.preventDefault():l.returnValue=!1}function gn(l){l.stopPropagation?l.stopPropagation():l.cancelBubble=!0}function Et(l){return l.defaultPrevented!=null?l.defaultPrevented:l.returnValue==!1}function Mn(l){$t(l),gn(l)}function qn(l){return l.target||l.srcElement}function Zn(l){var C=l.which;return C==null&&(l.button&1?C=1:l.button&2?C=3:l.button&4&&(C=2)),I&&l.ctrlKey&&C==1&&(C=3),C}var Bt=function(){if(_&&u<9)return!1;var l=G("div");return"draggable"in l||"dragDrop"in l}(),yr;function vr(l){if(yr==null){var C=G("span","\u200B");U(l,G("span",[C,document.createTextNode("x")])),l.firstChild.offsetHeight!=0&&(yr=C.offsetWidth<=1&&C.offsetHeight>2&&!(_&&u<8))}var K=yr?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return K.setAttribute("cm-text",""),K}var Un;function Wn(l){if(Un!=null)return Un;var C=U(l,document.createTextNode("A\u062EA")),K=ee(C,0,1).getBoundingClientRect(),V=ee(C,1,2).getBoundingClientRect();return P(l),!K||K.left==K.right?!1:Un=V.right-K.right<3}var wr=`
b`.split(/\n/).length!=3?function(l){for(var C=0,K=[],V=l.length;C<=V;){var q=l.indexOf(`
`,C);q==-1&&(q=l.length);var Se=l.slice(C,l.charAt(q-1)=="\r"?q-1:q),Fe=Se.indexOf("\r");Fe!=-1?(K.push(Se.slice(0,Fe)),C+=Fe+1):(K.push(Se),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},Fn=function(){var l=G("div");return"oncopy"in l?!0:(l.setAttribute("oncopy","return;"),typeof l.oncopy=="function")}(),wn=null;function Jn(l){if(wn!=null)return wn;var C=U(l,G("span","x")),K=C.getBoundingClientRect(),V=ee(C,0,1).getBoundingClientRect();return wn=Math.abs(K.left-V.left)>1}var Ir={},Wr={};function cr(l,C){arguments.length>2&&(C.dependencies=Array.prototype.slice.call(arguments,2)),Ir[l]=C}function ro(l,C){Wr[l]=C}function Kr(l){if(typeof l=="string"&&Wr.hasOwnProperty(l))l=Wr[l];else if(l&&typeof l.name=="string"&&Wr.hasOwnProperty(l.name)){var C=Wr[l.name];typeof C=="string"&&(C={name:C}),l=W(C,l),l.name=C.name}else{if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(l))return Kr("application/xml");if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(l))return Kr("application/json")}return typeof l=="string"?{name:l}:l||{name:"null"}}function oi(l,C){C=Kr(C);var K=Ir[C.name];if(!K)return oi(l,"text/plain");var V=K(l,C);if(Kn.hasOwnProperty(C.name)){var q=Kn[C.name];for(var Se in q)q.hasOwnProperty(Se)&&(V.hasOwnProperty(Se)&&(V["_"+Se]=V[Se]),V[Se]=q[Se])}if(V.name=C.name,C.helperType&&(V.helperType=C.helperType),C.modeProps)for(var Fe in C.modeProps)V[Fe]=C.modeProps[Fe];return V}var Kn={};function Dn(l,C){var K=Kn.hasOwnProperty(l)?Kn[l]:Kn[l]={};_e(C,K)}function li(l,C){if(C===!0)return C;if(l.copyState)return l.copyState(C);var K={};for(var V in C){var q=C[V];q instanceof Array&&(q=q.concat([])),K[V]=q}return K}function Nr(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 Yr(l,C,K){return l.startState?l.startState(C,K):!0}var mn=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};mn.prototype.eol=function(){return this.pos>=this.string.length},mn.prototype.sol=function(){return this.pos==this.lineStart},mn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},mn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},mn.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},mn.prototype.eatWhile=function(l){for(var C=this.pos;this.eat(l););return this.pos>C},mn.prototype.eatSpace=function(){for(var l=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>l},mn.prototype.skipToEnd=function(){this.pos=this.string.length},mn.prototype.skipTo=function(l){var C=this.string.indexOf(l,this.pos);if(C>-1)return this.pos=C,!0},mn.prototype.backUp=function(l){this.pos-=l},mn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},mn.prototype.indentation=function(){return ne(this.string,null,this.tabSize)-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},mn.prototype.match=function(l,C,K){if(typeof l=="string"){var V=function(Fe){return K?Fe.toLowerCase():Fe},q=this.string.substr(this.pos,l.length);if(V(q)==V(l))return C!==!1&&(this.pos+=l.length),!0}else{var Se=this.string.slice(this.pos).match(l);return Se&&Se.index>0?null:(Se&&C!==!1&&(this.pos+=Se[0].length),Se)}},mn.prototype.current=function(){return this.string.slice(this.start,this.pos)},mn.prototype.hideFirstChars=function(l,C){this.lineStart+=l;try{return C()}finally{this.lineStart-=l}},mn.prototype.lookAhead=function(l){var C=this.lineOracle;return C&&C.lookAhead(l)},mn.prototype.baseToken=function(){var l=this.lineOracle;return l&&l.baseToken(this.pos)};function zn(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 V=0;;++V){var q=K.children[V],Se=q.chunkSize();if(C<Se){K=q;break}C-=Se}return K.lines[C]}function Mr(l,C,K){var V=[],q=C.line;return l.iter(C.line,K.line+1,function(Se){var Fe=Se.text;q==K.line&&(Fe=Fe.slice(0,K.ch)),q==C.line&&(Fe=Fe.slice(C.ch)),V.push(Fe),++q}),V}function Ci(l,C,K){var V=[];return l.iter(C,K,function(q){V.push(q.text)}),V}function vi(l,C){var K=C-l.height;if(K)for(var V=l;V;V=V.parent)V.height+=K}function nt(l){if(l.parent==null)return null;for(var C=l.parent,K=ce(C.lines,l),V=C.parent;V;C=V,V=V.parent)for(var q=0;V.children[q]!=C;++q)K+=V.children[q].chunkSize();return K+C.first}function vt(l,C){var K=l.first;e:do{for(var V=0;V<l.children.length;++V){var q=l.children[V],Se=q.height;if(C<Se){l=q;continue e}C-=Se,K+=q.chunkSize()}return K}while(!l.lines);for(var Fe=0;Fe<l.lines.length;++Fe){var Ye=l.lines[Fe],Ve=Ye.height;if(C<Ve)break;C-=Ve}return K+Fe}function hn(l,C){return C>=l.first&&C<l.first+l.size}function yn(l,C){return String(l.lineNumberFormatter(C+l.firstLineNumber))}function dt(l,C,K){if(K===void 0&&(K=null),!(this instanceof dt))return new dt(l,C,K);this.line=l,this.ch=C,this.sticky=K}function on(l,C){return l.line-C.line||l.ch-C.ch}function kn(l,C){return l.sticky==C.sticky&&on(l,C)==0}function _t(l){return dt(l.line,l.ch)}function we(l,C){return on(l,C)<0?C:l}function An(l,C){return on(l,C)<0?l:C}function Nn(l,C){return Math.max(l.first,Math.min(C,l.first+l.size-1))}function Ft(l,C){if(C.line<l.first)return dt(l.first,0);var K=l.first+l.size-1;return C.line>K?dt(K,zn(l,K).text.length):hr(C,zn(l,C.line).text.length)}function hr(l,C){var K=l.ch;return K==null||K>C?dt(l.line,C):K<0?dt(l.line,0):l}function Xn(l,C){for(var K=[],V=0;V<C.length;V++)K[V]=Ft(l,C[V]);return K}var or=function(l,C){this.state=l,this.lookAhead=C},Tn=function(l,C,K,V){this.state=C,this.doc=l,this.line=K,this.maxLookAhead=V||0,this.baseTokens=null,this.baseTokenPos=1};Tn.prototype.lookAhead=function(l){var C=this.doc.getLine(this.line+l);return C!=null&&l>this.maxLookAhead&&(this.maxLookAhead=l),C},Tn.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}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(l,C,K){return C instanceof or?new Tn(l,li(l.mode,C.state),K,C.lookAhead):new Tn(l,li(l.mode,C),K)},Tn.prototype.save=function(l){var C=l!==!1?li(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new or(C,this.maxLookAhead):C};function mt(l,C,K,V){var q=[l.state.modeGen],Se={};ui(l,C.text,l.doc.mode,K,function(ot,Rt){return q.push(ot,Rt)},Se,V);for(var Fe=K.state,Ye=function(ot){K.baseTokens=q;var Rt=l.state.overlays[ot],ht=1,Yt=0;K.state=!0,ui(l,C.text,Rt.mode,K,function(jt,Rn){for(var Ln=ht;Yt<jt;){var Gn=q[ht];Gn>jt&&q.splice(ht,1,jt,q[ht+1],Gn),ht+=2,Yt=Math.min(jt,Gn)}if(Rn)if(Rt.opaque)q.splice(Ln,ht-Ln,jt,"overlay "+Rn),ht=Ln+2;else for(;Ln<ht;Ln+=2){var rr=q[Ln+1];q[Ln+1]=(rr?rr+" ":"")+"overlay "+Rn}},Se),K.state=Fe,K.baseTokens=null,K.baseTokenPos=1},Ve=0;Ve<l.state.overlays.length;++Ve)Ye(Ve);return{styles:q,classes:Se.bgClass||Se.textClass?Se:null}}function fr(l,C,K){if(!C.styles||C.styles[0]!=l.state.modeGen){var V=Li(l,nt(C)),q=C.text.length>l.options.maxHighlightLength&&li(l.doc.mode,V.state),Se=mt(l,C,V);q&&(V.state=q),C.stateAfter=V.save(!q),C.styles=Se.styles,Se.classes?C.styleClasses=Se.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 Li(l,C,K){var V=l.doc,q=l.display;if(!V.mode.startState)return new Tn(V,!0,C);var Se=$r(l,C,K),Fe=Se>V.first&&zn(V,Se-1).stateAfter,Ye=Fe?Tn.fromSaved(V,Fe,Se):new Tn(V,Yr(V.mode),Se);return V.iter(Se,C,function(Ve){Ut(l,Ve.text,Ye);var ot=Ye.line;Ve.stateAfter=ot==C-1||ot%5==0||ot>=q.viewFrom&&ot<q.viewTo?Ye.save():null,Ye.nextLine()}),K&&(V.modeFrontier=Ye.line),Ye}function Ut(l,C,K,V){var q=l.doc.mode,Se=new mn(C,l.options.tabSize,K);for(Se.start=Se.pos=V||0,C==""&&wi(q,K.state);!Se.eol();)Mi(q,Se,K.state),Se.start=Se.pos}function wi(l,C){if(l.blankLine)return l.blankLine(C);if(l.innerMode){var K=Nr(l,C);if(K.mode.blankLine)return K.mode.blankLine(K.state)}}function Mi(l,C,K,V){for(var q=0;q<10;q++){V&&(V[0]=Nr(l,K).mode);var Se=l.token(C,K);if(C.pos>C.start)return Se}throw new Error("Mode "+l.name+" failed to advance stream.")}var Or=function(l,C,K){this.start=l.start,this.end=l.pos,this.string=l.current(),this.type=C||null,this.state=K};function Di(l,C,K,V){var q=l.doc,Se=q.mode,Fe;C=Ft(q,C);var Ye=zn(q,C.line),Ve=Li(l,C.line,K),ot=new mn(Ye.text,l.options.tabSize,Ve),Rt;for(V&&(Rt=[]);(V||ot.pos<C.ch)&&!ot.eol();)ot.start=ot.pos,Fe=Mi(Se,ot,Ve.state),V&&Rt.push(new Or(ot,Fe,li(q.mode,Ve.state)));return V?Rt:new Or(ot,Fe,Ve.state)}function ii(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 V=K[1]?"bgClass":"textClass";C[V]==null?C[V]=K[2]:new RegExp("(?:^|\\s)"+K[2]+"(?:$|\\s)").test(C[V])||(C[V]+=" "+K[2])}return l}function ui(l,C,K,V,q,Se,Fe){var Ye=K.flattenSpans;Ye==null&&(Ye=l.options.flattenSpans);var Ve=0,ot=null,Rt=new mn(C,l.options.tabSize,V),ht,Yt=l.options.addModeClass&&[null];for(C==""&&ii(wi(K,V.state),Se);!Rt.eol();){if(Rt.pos>l.options.maxHighlightLength?(Ye=!1,Fe&&Ut(l,C,V,Rt.pos),Rt.pos=C.length,ht=null):ht=ii(Mi(K,Rt,V.state,Yt),Se),Yt){var jt=Yt[0].name;jt&&(ht="m-"+(ht?jt+" "+ht:jt))}if(!Ye||ot!=ht){for(;Ve<Rt.start;)Ve=Math.min(Rt.start,Ve+5e3),q(Ve,ot);ot=ht}Rt.start=Rt.pos}for(;Ve<Rt.pos;){var Rn=Math.min(Rt.pos,Ve+5e3);q(Rn,ot),Ve=Rn}}function $r(l,C,K){for(var V,q,Se=l.doc,Fe=K?-1:C-(l.doc.mode.innerMode?1e3:100),Ye=C;Ye>Fe;--Ye){if(Ye<=Se.first)return Se.first;var Ve=zn(Se,Ye-1),ot=Ve.stateAfter;if(ot&&(!K||Ye+(ot instanceof or?ot.lookAhead:0)<=Se.modeFrontier))return Ye;var Rt=ne(Ve.text,null,l.options.tabSize);(q==null||V>Rt)&&(q=Ye-1,V=Rt)}return q}function ti(l,C){if(l.modeFrontier=Math.min(l.modeFrontier,C),!(l.highlightFrontier<C-10)){for(var K=l.first,V=C-1;V>K;V--){var q=zn(l,V).stateAfter;if(q&&(!(q instanceof or)||V+q.lookAhead<C)){K=V+1;break}}l.highlightFrontier=Math.min(l.highlightFrontier,K)}}var si=!1,Gt=!1;function di(){si=!0}function Wt(){Gt=!0}function Yn(l,C,K){this.marker=l,this.from=C,this.to=K}function Dr(l,C){if(l)for(var K=0;K<l.length;++K){var V=l[K];if(V.marker==C)return V}}function br(l,C){for(var K,V=0;V<l.length;++V)l[V]!=C&&(K||(K=[])).push(l[V]);return K}function mi(l,C){l.markedSpans=l.markedSpans?l.markedSpans.concat([C]):[C],C.marker.attachLine(l)}function Hr(l,C,K){var V;if(l)for(var q=0;q<l.length;++q){var Se=l[q],Fe=Se.marker,Ye=Se.from==null||(Fe.inclusiveLeft?Se.from<=C:Se.from<C);if(Ye||Se.from==C&&Fe.type=="bookmark"&&(!K||!Se.marker.insertLeft)){var Ve=Se.to==null||(Fe.inclusiveRight?Se.to>=C:Se.to>C);(V||(V=[])).push(new Yn(Fe,Se.from,Ve?null:Se.to))}}return V}function Tr(l,C,K){var V;if(l)for(var q=0;q<l.length;++q){var Se=l[q],Fe=Se.marker,Ye=Se.to==null||(Fe.inclusiveRight?Se.to>=C:Se.to>C);if(Ye||Se.from==C&&Fe.type=="bookmark"&&(!K||Se.marker.insertLeft)){var Ve=Se.from==null||(Fe.inclusiveLeft?Se.from<=C:Se.from<C);(V||(V=[])).push(new Yn(Fe,Ve?null:Se.from-C,Se.to==null?null:Se.to-C))}}return V}function Gi(l,C){if(C.full)return null;var K=hn(l,C.from.line)&&zn(l,C.from.line).markedSpans,V=hn(l,C.to.line)&&zn(l,C.to.line).markedSpans;if(!K&&!V)return null;var q=C.from.ch,Se=C.to.ch,Fe=on(C.from,C.to)==0,Ye=Hr(K,q,Fe),Ve=Tr(V,Se,Fe),ot=C.text.length==1,Rt=it(C.text).length+(ot?q:0);if(Ye)for(var ht=0;ht<Ye.length;++ht){var Yt=Ye[ht];if(Yt.to==null){var jt=Dr(Ve,Yt.marker);jt?ot&&(Yt.to=jt.to==null?null:jt.to+Rt):Yt.to=q}}if(Ve)for(var Rn=0;Rn<Ve.length;++Rn){var Ln=Ve[Rn];if(Ln.to!=null&&(Ln.to+=Rt),Ln.from==null){var Gn=Dr(Ye,Ln.marker);Gn||(Ln.from=Rt,ot&&(Ye||(Ye=[])).push(Ln))}else Ln.from+=Rt,ot&&(Ye||(Ye=[])).push(Ln)}Ye&&(Ye=kt(Ye)),Ve&&Ve!=Ye&&(Ve=kt(Ve));var rr=[Ye];if(!ot){var kr=C.text.length-2,mr;if(kr>0&&Ye)for(var Ur=0;Ur<Ye.length;++Ur)Ye[Ur].to==null&&(mr||(mr=[])).push(new Yn(Ye[Ur].marker,null,null));for(var xi=0;xi<kr;++xi)rr.push(mr);rr.push(Ve)}return rr}function kt(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 Xt(l,C,K){var V=null;if(l.iter(C.line,K.line+1,function(jt){if(jt.markedSpans)for(var Rn=0;Rn<jt.markedSpans.length;++Rn){var Ln=jt.markedSpans[Rn].marker;Ln.readOnly&&(!V||ce(V,Ln)==-1)&&(V||(V=[])).push(Ln)}}),!V)return null;for(var q=[{from:C,to:K}],Se=0;Se<V.length;++Se)for(var Fe=V[Se],Ye=Fe.find(0),Ve=0;Ve<q.length;++Ve){var ot=q[Ve];if(!(on(ot.to,Ye.from)<0||on(ot.from,Ye.to)>0)){var Rt=[Ve,1],ht=on(ot.from,Ye.from),Yt=on(ot.to,Ye.to);(ht<0||!Fe.inclusiveLeft&&!ht)&&Rt.push({from:ot.from,to:Ye.from}),(Yt>0||!Fe.inclusiveRight&&!Yt)&&Rt.push({from:Ye.to,to:ot.to}),q.splice.apply(q,Rt),Ve+=Rt.length-3}}return q}function wt(l){var C=l.markedSpans;if(C){for(var K=0;K<C.length;++K)C[K].marker.detachLine(l);l.markedSpans=null}}function Pe(l,C){if(C){for(var K=0;K<C.length;++K)C[K].marker.attachLine(l);l.markedSpans=C}}function an(l){return l.inclusiveLeft?-1:0}function vn(l){return l.inclusiveRight?1:0}function Bn(l,C){var K=l.lines.length-C.lines.length;if(K!=0)return K;var V=l.find(),q=C.find(),Se=on(V.from,q.from)||an(l)-an(C);if(Se)return-Se;var Fe=on(V.to,q.to)||vn(l)-vn(C);return Fe||C.id-l.id}function On(l,C){var K=Gt&&l.markedSpans,V;if(K)for(var q=void 0,Se=0;Se<K.length;++Se)q=K[Se],q.marker.collapsed&&(C?q.from:q.to)==null&&(!V||Bn(V,q.marker)<0)&&(V=q.marker);return V}function En(l){return On(l,!0)}function Vt(l){return On(l,!1)}function cn(l,C){var K=Gt&&l.markedSpans,V;if(K)for(var q=0;q<K.length;++q){var Se=K[q];Se.marker.collapsed&&(Se.from==null||Se.from<C)&&(Se.to==null||Se.to>C)&&(!V||Bn(V,Se.marker)<0)&&(V=Se.marker)}return V}function dn(l,C,K,V,q){var Se=zn(l,C),Fe=Gt&&Se.markedSpans;if(Fe)for(var Ye=0;Ye<Fe.length;++Ye){var Ve=Fe[Ye];if(Ve.marker.collapsed){var ot=Ve.marker.find(0),Rt=on(ot.from,K)||an(Ve.marker)-an(q),ht=on(ot.to,V)||vn(Ve.marker)-vn(q);if(!(Rt>=0&&ht<=0||Rt<=0&&ht>=0)&&(Rt<=0&&(Ve.marker.inclusiveRight&&q.inclusiveLeft?on(ot.to,K)>=0:on(ot.to,K)>0)||Rt>=0&&(Ve.marker.inclusiveRight&&q.inclusiveLeft?on(ot.from,V)<=0:on(ot.from,V)<0)))return!0}}}function rn(l){for(var C;C=En(l);)l=C.find(-1,!0).line;return l}function pn(l){for(var C;C=Vt(l);)l=C.find(1,!0).line;return l}function jn(l){for(var C,K;C=Vt(l);)l=C.find(1,!0).line,(K||(K=[])).push(l);return K}function dr(l,C){var K=zn(l,C),V=rn(K);return K==V?C:nt(V)}function lr(l,C){if(C>l.lastLine())return C;var K=zn(l,C),V;if(!un(l,K))return C;for(;V=Vt(K);)K=V.find(1,!0).line;return nt(K)+1}function un(l,C){var K=Gt&&C.markedSpans;if(K){for(var V=void 0,q=0;q<K.length;++q)if(V=K[q],!!V.marker.collapsed){if(V.from==null)return!0;if(!V.marker.widgetNode&&V.from==0&&V.marker.inclusiveLeft&&zr(l,C,V))return!0}}}function zr(l,C,K){if(K.to==null){var V=K.marker.find(1,!0);return zr(l,V.line,Dr(V.line.markedSpans,K.marker))}if(K.marker.inclusiveRight&&K.to==C.text.length)return!0;for(var q=void 0,Se=0;Se<C.markedSpans.length;++Se)if(q=C.markedSpans[Se],q.marker.collapsed&&!q.marker.widgetNode&&q.from==K.to&&(q.to==null||q.to!=K.from)&&(q.marker.inclusiveLeft||K.marker.inclusiveRight)&&zr(l,C,q))return!0}function _r(l){l=rn(l);for(var C=0,K=l.parent,V=0;V<K.lines.length;++V){var q=K.lines[V];if(q==l)break;C+=q.height}for(var Se=K.parent;Se;K=Se,Se=K.parent)for(var Fe=0;Fe<Se.children.length;++Fe){var Ye=Se.children[Fe];if(Ye==K)break;C+=Ye.height}return C}function ci(l){if(l.height==0)return 0;for(var C=l.text.length,K,V=l;K=En(V);){var q=K.find(0,!0);V=q.from.line,C+=q.from.ch-q.to.ch}for(V=l;K=Vt(V);){var Se=K.find(0,!0);C-=V.text.length-Se.from.ch,V=Se.to.line,C+=V.text.length-Se.to.ch}return C}function Cr(l){var C=l.display,K=l.doc;C.maxLine=zn(K,K.first),C.maxLineLength=ci(C.maxLine),C.maxLineChanged=!0,K.iter(function(V){var q=ci(V);q>C.maxLineLength&&(C.maxLineLength=q,C.maxLine=V)})}var Zi=function(l,C,K){this.text=l,Pe(this,C),this.height=K?K(this):1};Zi.prototype.lineNo=function(){return nt(this)},$e(Zi);function ji(l,C,K,V){l.text=C,l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null),l.order!=null&&(l.order=null),wt(l),Pe(l,K);var q=V?V(l):1;q!=l.height&&vi(l,q)}function Pi(l){l.parent=null,wt(l)}var Ti={},Fi={};function Ji(l,C){if(!l||/^\s*$/.test(l))return null;var K=C.addModeClass?Fi:Ti;return K[l]||(K[l]=l.replace(/\S+/g,"cm-$&"))}function Ct(l,C){var K=Q("span",null,null,p?"padding-right: .1px":null),V={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 Se=q?C.rest[q-1]:C.line,Fe=void 0;V.pos=0,V.addToken=Qr,Wn(l.display.measure)&&(Fe=It(Se,l.doc.direction))&&(V.addToken=Pr(V.addToken,Fe)),V.map=[];var Ye=C!=l.display.externalMeasured&&nt(Se);_i(Se,V,fr(l,Se,Ye)),Se.styleClasses&&(Se.styleClasses.bgClass&&(V.bgClass=le(Se.styleClasses.bgClass,V.bgClass||"")),Se.styleClasses.textClass&&(V.textClass=le(Se.styleClasses.textClass,V.textClass||""))),V.map.length==0&&V.map.push(0,0,V.content.appendChild(vr(l.display.measure))),q==0?(C.measure.map=V.map,C.measure.cache={}):((C.measure.maps||(C.measure.maps=[])).push(V.map),(C.measure.caches||(C.measure.caches=[])).push({}))}if(p){var Ve=V.content.lastChild;(/\bcm-tab\b/.test(Ve.className)||Ve.querySelector&&Ve.querySelector(".cm-tab"))&&(V.content.className="cm-tab-wrap-hack")}return bt(l,"renderLine",l,C.line,V.pre),V.pre.className&&(V.textClass=le(V.pre.className,V.textClass||"")),V}function ai(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 Qr(l,C,K,V,q,Se,Fe){if(C){var Ye=l.splitSpaces?Sr(C,l.trailingSpace):C,Ve=l.cm.state.specialChars,ot=!1,Rt;if(!Ve.test(C))l.col+=C.length,Rt=document.createTextNode(Ye),l.map.push(l.pos,l.pos+C.length,Rt),_&&u<9&&(ot=!0),l.pos+=C.length;else{Rt=document.createDocumentFragment();for(var ht=0;;){Ve.lastIndex=ht;var Yt=Ve.exec(C),jt=Yt?Yt.index-ht:C.length-ht;if(jt){var Rn=document.createTextNode(Ye.slice(ht,ht+jt));_&&u<9?Rt.appendChild(G("span",[Rn])):Rt.appendChild(Rn),l.map.push(l.pos,l.pos+jt,Rn),l.col+=jt,l.pos+=jt}if(!Yt)break;ht+=jt+1;var Ln=void 0;if(Yt[0]==" "){var Gn=l.cm.options.tabSize,rr=Gn-l.col%Gn;Ln=Rt.appendChild(G("span",et(rr),"cm-tab")),Ln.setAttribute("role","presentation"),Ln.setAttribute("cm-text"," "),l.col+=rr}else Yt[0]=="\r"||Yt[0]==`
`?(Ln=Rt.appendChild(G("span",Yt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ln.setAttribute("cm-text",Yt[0]),l.col+=1):(Ln=l.cm.options.specialCharPlaceholder(Yt[0]),Ln.setAttribute("cm-text",Yt[0]),_&&u<9?Rt.appendChild(G("span",[Ln])):Rt.appendChild(Ln),l.col+=1);l.map.push(l.pos,l.pos+1,Ln),l.pos++}}if(l.trailingSpace=Ye.charCodeAt(C.length-1)==32,K||V||q||ot||Se||Fe){var kr=K||"";V&&(kr+=V),q&&(kr+=q);var mr=G("span",[Rt],kr,Se);if(Fe)for(var Ur in Fe)Fe.hasOwnProperty(Ur)&&Ur!="style"&&Ur!="class"&&mr.setAttribute(Ur,Fe[Ur]);return l.content.appendChild(mr)}l.content.appendChild(Rt)}}function Sr(l,C){if(l.length>1&&!/ /.test(l))return l;for(var K=C,V="",q=0;q<l.length;q++){var Se=l.charAt(q);Se==" "&&K&&(q==l.length-1||l.charCodeAt(q+1)==32)&&(Se="\xA0"),V+=Se,K=Se==" "}return V}function Pr(l,C){return function(K,V,q,Se,Fe,Ye,Ve){q=q?q+" cm-force-border":"cm-force-border";for(var ot=K.pos,Rt=ot+V.length;;){for(var ht=void 0,Yt=0;Yt<C.length&&(ht=C[Yt],!(ht.to>ot&&ht.from<=ot));Yt++);if(ht.to>=Rt)return l(K,V,q,Se,Fe,Ye,Ve);l(K,V.slice(0,ht.to-ot),q,Se,null,Ye,Ve),Se=null,V=V.slice(ht.to-ot),ot=ht.to}}}function ri(l,C,K,V){var q=!V&&K.widgetNode;q&&l.map.push(l.pos,l.pos+C,q),!V&&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 _i(l,C,K){var V=l.markedSpans,q=l.text,Se=0;if(!V){for(var Fe=1;Fe<K.length;Fe+=2)C.addToken(C,q.slice(Se,Se=K[Fe]),Ji(K[Fe+1],C.cm.options));return}for(var Ye=q.length,Ve=0,ot=1,Rt="",ht,Yt,jt=0,Rn,Ln,Gn,rr,kr;;){if(jt==Ve){Rn=Ln=Gn=Yt="",kr=null,rr=null,jt=1/0;for(var mr=[],Ur=void 0,xi=0;xi<V.length;++xi){var gr=V[xi],no=gr.marker;if(no.type=="bookmark"&&gr.from==Ve&&no.widgetNode)mr.push(no);else if(gr.from<=Ve&&(gr.to==null||gr.to>Ve||no.collapsed&&gr.to==Ve&&gr.from==Ve)){if(gr.to!=null&&gr.to!=Ve&&jt>gr.to&&(jt=gr.to,Ln=""),no.className&&(Rn+=" "+no.className),no.css&&(Yt=(Yt?Yt+";":"")+no.css),no.startStyle&&gr.from==Ve&&(Gn+=" "+no.startStyle),no.endStyle&&gr.to==jt&&(Ur||(Ur=[])).push(no.endStyle,gr.to),no.title&&((kr||(kr={})).title=no.title),no.attributes)for(var ss in no.attributes)(kr||(kr={}))[ss]=no.attributes[ss];no.collapsed&&(!rr||Bn(rr.marker,no)<0)&&(rr=gr)}else gr.from>Ve&&jt>gr.from&&(jt=gr.from)}if(Ur)for(var ta=0;ta<Ur.length;ta+=2)Ur[ta+1]==jt&&(Ln+=" "+Ur[ta]);if(!rr||rr.from==Ve)for(var bs=0;bs<mr.length;++bs)ri(C,0,mr[bs]);if(rr&&(rr.from||0)==Ve){if(ri(C,(rr.to==null?Ye+1:rr.to)-Ve,rr.marker,rr.from==null),rr.to==null)return;rr.to==Ve&&(rr=!1)}}if(Ve>=Ye)break;for(var dl=Math.min(Ye,jt);;){if(Rt){var Ha=Ve+Rt.length;if(!rr){var Ys=Ha>dl?Rt.slice(0,dl-Ve):Rt;C.addToken(C,Ys,ht?ht+Rn:Rn,Gn,Ve+Ys.length==jt?Ln:"",Yt,kr)}if(Ha>=dl){Rt=Rt.slice(dl-Ve),Ve=dl;break}Ve=Ha,Gn=""}Rt=q.slice(Se,Se=K[ot++]),ht=Ji(K[ot++],C.cm.options)}}}function Nt(l,C,K){this.line=C,this.rest=jn(C),this.size=this.rest?nt(it(this.rest))-K+1:1,this.node=this.text=null,this.hidden=un(l,C)}function Rr(l,C,K){for(var V=[],q,Se=C;Se<K;Se=q){var Fe=new Nt(l.doc,zn(l.doc,Se),Se);q=Se+Fe.size,V.push(Fe)}return V}var Ki=null;function _s(l){Ki?Ki.ops.push(l):l.ownsGroup=Ki={ops:[l],delayedCallbacks:[]}}function fs(l){var C=l.delayedCallbacks,K=0;do{for(;K<C.length;K++)C[K].call(null);for(var V=0;V<l.ops.length;V++){var q=l.ops[V];if(q.cursorActivityHandlers)for(;q.cursorActivityCalled<q.cursorActivityHandlers.length;)q.cursorActivityHandlers[q.cursorActivityCalled++].call(null,q.cm)}}while(K<C.length)}function Da(l,C){var K=l.ownsGroup;if(K)try{fs(K)}finally{Ki=null,C(K)}}var Rs=null;function sr(l,C){var K=ut(l,C);if(K.length){var V=Array.prototype.slice.call(arguments,2),q;Ki?q=Ki.delayedCallbacks:Rs?q=Rs:(q=Rs=[],setTimeout(mo,0));for(var Se=function(Ye){q.push(function(){return K[Ye].apply(null,V)})},Fe=0;Fe<K.length;++Fe)Se(Fe)}}function mo(){var l=Rs;Rs=null;for(var C=0;C<l.length;++C)l[C]()}function vo(l,C,K,V){for(var q=0;q<C.changes.length;q++){var Se=C.changes[q];Se=="text"?Cn(l,C):Se=="gutter"?xr(l,C,K,V):Se=="class"?nr(l,C):Se=="widget"&&Xr(l,C,V)}C.changes=null}function Ko(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),_&&u<8&&(l.node.style.zIndex=2)),l.node}function yo(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 V=Ko(C);C.background=V.insertBefore(G("div",null,K),V.firstChild),l.display.input.setUneditable(C.background)}}function Ao(l,C){var K=l.display.externalMeasured;return K&&K.line==C.line?(l.display.externalMeasured=null,C.measure=K.measure,K.built):Ct(l,C)}function Cn(l,C){var K=C.text.className,V=Ao(l,C);C.text==C.node&&(C.node=V.pre),C.text.parentNode.replaceChild(V.pre,C.text),C.text=V.pre,V.bgClass!=C.bgClass||V.textClass!=C.textClass?(C.bgClass=V.bgClass,C.textClass=V.textClass,nr(l,C)):K&&(C.text.className=K)}function nr(l,C){yo(l,C),C.line.wrapClass?Ko(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 xr(l,C,K,V){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=Ko(C);C.gutterBackground=G("div",null,"CodeMirror-gutter-background "+C.line.gutterClass,"left: "+(l.options.fixedGutter?V.fixedPos:-V.gutterTotalWidth)+"px; width: "+V.gutterTotalWidth+"px"),l.display.input.setUneditable(C.gutterBackground),q.insertBefore(C.gutterBackground,C.text)}var Se=C.line.gutterMarkers;if(l.options.lineNumbers||Se){var Fe=Ko(C),Ye=C.gutter=G("div",null,"CodeMirror-gutter-wrapper","left: "+(l.options.fixedGutter?V.fixedPos:-V.gutterTotalWidth)+"px");if(l.display.input.setUneditable(Ye),Fe.insertBefore(Ye,C.text),C.line.gutterClass&&(Ye.className+=" "+C.line.gutterClass),l.options.lineNumbers&&(!Se||!Se["CodeMirror-linenumbers"])&&(C.lineNumber=Ye.appendChild(G("div",yn(l.options,K),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+V.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+l.display.lineNumInnerWidth+"px"))),Se)for(var Ve=0;Ve<l.display.gutterSpecs.length;++Ve){var ot=l.display.gutterSpecs[Ve].className,Rt=Se.hasOwnProperty(ot)&&Se[ot];Rt&&Ye.appendChild(G("div",[Rt],"CodeMirror-gutter-elt","left: "+V.gutterLeft[ot]+"px; width: "+V.gutterWidth[ot]+"px"))}}}function Xr(l,C,K){C.alignable&&(C.alignable=null);for(var V=M("CodeMirror-linewidget"),q=C.node.firstChild,Se=void 0;q;q=Se)Se=q.nextSibling,V.test(q.className)&&C.node.removeChild(q);Yi(l,C,K)}function Jr(l,C,K,V){var q=Ao(l,C);return C.text=C.node=q.pre,q.bgClass&&(C.bgClass=q.bgClass),q.textClass&&(C.textClass=q.textClass),nr(l,C),xr(l,C,K,V),Yi(l,C,V),C.node}function Yi(l,C,K){if(ir(l,C.line,C,K,!0),C.rest)for(var V=0;V<C.rest.length;V++)ir(l,C.rest[V],C,K,!1)}function ir(l,C,K,V,q){if(C.widgets)for(var Se=Ko(K),Fe=0,Ye=C.widgets;Fe<Ye.length;++Fe){var Ve=Ye[Fe],ot=G("div",[Ve.node],"CodeMirror-linewidget"+(Ve.className?" "+Ve.className:""));Ve.handleMouseEvents||ot.setAttribute("cm-ignore-events","true"),es(Ve,ot,K,V),l.display.input.setUneditable(ot),q&&Ve.above?Se.insertBefore(ot,K.gutter||K.text):Se.appendChild(ot),sr(Ve,"redraw")}}function es(l,C,K,V){if(l.noHScroll){(K.alignable||(K.alignable=[])).push(C);var q=V.wrapperWidth;C.style.left=V.fixedPos+"px",l.coverGutter||(q-=V.gutterTotalWidth,C.style.paddingLeft=V.gutterTotalWidth+"px"),C.style.width=q+"px"}l.coverGutter&&(C.style.zIndex=5,C.style.position="relative",l.noHScroll||(C.style.marginLeft=-V.gutterTotalWidth+"px"))}function Co(l){if(l.height!=null)return l.height;var C=l.doc.cm;if(!C)return 0;if(!ae(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;"),U(C.display.measure,G("div",[l.node],null,K))}return l.height=l.node.parentNode.offsetHeight}function xo(l,C){for(var K=qn(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 ni(l){return l.lineSpace.offsetTop}function Qi(l){return l.mover.offsetHeight-l.lineSpace.offsetHeight}function xs(l){if(l.cachedPaddingH)return l.cachedPaddingH;var C=U(l.measure,G("pre","x","CodeMirror-line-like")),K=window.getComputedStyle?window.getComputedStyle(C):C.currentStyle,V={left:parseInt(K.paddingLeft),right:parseInt(K.paddingRight)};return!isNaN(V.left)&&!isNaN(V.right)&&(l.cachedPaddingH=V),V}function io(l){return Re-l.display.nativeBarWidth}function ds(l){return l.display.scroller.clientWidth-io(l)-l.display.barWidth}function Hs(l){return l.display.scroller.clientHeight-io(l)-l.display.barHeight}function Is(l,C,K){var V=l.options.lineWrapping,q=V&&ds(l);if(!C.measure.heights||V&&C.measure.width!=q){var Se=C.measure.heights=[];if(V){C.measure.width=q;for(var Fe=C.text.firstChild.getClientRects(),Ye=0;Ye<Fe.length-1;Ye++){var Ve=Fe[Ye],ot=Fe[Ye+1];Math.abs(Ve.bottom-ot.bottom)>2&&Se.push((Ve.bottom+ot.top)/2-K.top)}}Se.push(K.bottom-K.top)}}function Lo(l,C,K){if(l.line==C)return{map:l.measure.map,cache:l.measure.cache};for(var V=0;V<l.rest.length;V++)if(l.rest[V]==C)return{map:l.measure.maps[V],cache:l.measure.caches[V]};for(var q=0;q<l.rest.length;q++)if(nt(l.rest[q])>K)return{map:l.measure.maps[q],cache:l.measure.caches[q],before:!0}}function Pa(l,C){C=rn(C);var K=nt(C),V=l.display.externalMeasured=new Nt(l.doc,C,K);V.lineN=K;var q=V.built=Ct(l,V);return V.text=q.pre,U(l.display.lineMeasure,q.pre),V}function $l(l,C,K,V){return Gs(l,oa(l,C),K,V)}function zs(l,C){if(C>=l.display.viewFrom&&C<l.display.viewTo)return l.display.view[Bs(l,C)];var K=l.display.externalMeasured;if(K&&C>=K.lineN&&C<K.lineN+K.size)return K}function oa(l,C){var K=nt(C),V=zs(l,K);V&&!V.text?V=null:V&&V.changes&&(vo(l,V,K,Ea(l)),l.curOp.forceUpdate=!0),V||(V=Pa(l,C));var q=Lo(V,C,K);return{line:C,view:V,rect:null,map:q.map,cache:q.cache,before:q.before,hasHeights:!1}}function Gs(l,C,K,V,q){C.before&&(K=-1);var Se=K+(V||""),Fe;return C.cache.hasOwnProperty(Se)?Fe=C.cache[Se]:(C.rect||(C.rect=C.view.text.getBoundingClientRect()),C.hasHeights||(Is(l,C.view,C.rect),C.hasHeights=!0),Fe=Bo(l,C,K,V),Fe.bogus||(C.cache[Se]=Fe)),{left:Fe.left,right:Fe.right,top:q?Fe.rtop:Fe.top,bottom:q?Fe.rbottom:Fe.bottom}}var ol={left:0,right:0,top:0,bottom:0};function du(l,C,K){for(var V,q,Se,Fe,Ye,Ve,ot=0;ot<l.length;ot+=3)if(Ye=l[ot],Ve=l[ot+1],C<Ye?(q=0,Se=1,Fe="left"):C<Ve?(q=C-Ye,Se=q+1):(ot==l.length-3||C==Ve&&l[ot+3]>C)&&(Se=Ve-Ye,q=Se-1,C>=Ve&&(Fe="right")),q!=null){if(V=l[ot+2],Ye==Ve&&K==(V.insertLeft?"left":"right")&&(Fe=K),K=="left"&&q==0)for(;ot&&l[ot-2]==l[ot-3]&&l[ot-1].insertLeft;)V=l[(ot-=3)+2],Fe="left";if(K=="right"&&q==Ve-Ye)for(;ot<l.length-3&&l[ot+3]==l[ot+4]&&!l[ot+5].insertLeft;)V=l[(ot+=3)+2],Fe="right";break}return{node:V,start:q,end:Se,collapse:Fe,coverStart:Ye,coverEnd:Ve}}function pu(l,C){var K=ol;if(C=="left")for(var V=0;V<l.length&&(K=l[V]).left==K.right;V++);else for(var q=l.length-1;q>=0&&(K=l[q]).left==K.right;q--);return K}function Bo(l,C,K,V){var q=du(C.map,K,V),Se=q.node,Fe=q.start,Ye=q.end,Ve=q.collapse,ot;if(Se.nodeType==3){for(var Rt=0;Rt<4;Rt++){for(;Fe&&de(C.line.text.charAt(q.coverStart+Fe));)--Fe;for(;q.coverStart+Ye<q.coverEnd&&de(C.line.text.charAt(q.coverStart+Ye));)++Ye;if(_&&u<9&&Fe==0&&Ye==q.coverEnd-q.coverStart?ot=Se.parentNode.getBoundingClientRect():ot=pu(ee(Se,Fe,Ye).getClientRects(),V),ot.left||ot.right||Fe==0)break;Ye=Fe,Fe=Fe-1,Ve="right"}_&&u<11&&(ot=Xl(l.display.measure,ot))}else{Fe>0&&(Ve=V="right");var ht;l.options.lineWrapping&&(ht=Se.getClientRects()).length>1?ot=ht[V=="right"?ht.length-1:0]:ot=Se.getBoundingClientRect()}if(_&&u<9&&!Fe&&(!ot||!ot.left&&!ot.right)){var Yt=Se.parentNode.getClientRects()[0];Yt?ot={left:Yt.left,right:Yt.left+sa(l.display),top:Yt.top,bottom:Yt.bottom}:ot=ol}for(var jt=ot.top-C.rect.top,Rn=ot.bottom-C.rect.top,Ln=(jt+Rn)/2,Gn=C.view.measure.heights,rr=0;rr<Gn.length-1&&!(Ln<Gn[rr]);rr++);var kr=rr?Gn[rr-1]:0,mr=Gn[rr],Ur={left:(Ve=="right"?ot.right:ot.left)-C.rect.left,right:(Ve=="left"?ot.left:ot.right)-C.rect.left,top:kr,bottom:mr};return!ot.left&&!ot.right&&(Ur.bogus=!0),l.options.singleCursorHeightPerLine||(Ur.rtop=jt,Ur.rbottom=Rn),Ur}function Xl(l,C){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Jn(l))return C;var K=screen.logicalXDPI/screen.deviceXDPI,V=screen.logicalYDPI/screen.deviceYDPI;return{left:C.left*K,right:C.right*K,top:C.top*V,bottom:C.bottom*V}}function gu(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 bl(l){l.display.externalMeasure=null,P(l.display.lineMeasure);for(var C=0;C<l.display.view.length;C++)gu(l.display.view[C])}function Dl(l){bl(l),l.display.cachedCharWidth=l.display.cachedTextHeight=l.display.cachedPaddingH=null,l.options.lineWrapping||(l.display.maxLineChanged=!0),l.display.lineNumChars=null}function ps(){return m&&x?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function As(){return m&&x?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Zo(l){var C=0;if(l.widgets)for(var K=0;K<l.widgets.length;++K)l.widgets[K].above&&(C+=Co(l.widgets[K]));return C}function us(l,C,K,V,q){if(!q){var Se=Zo(C);K.top+=Se,K.bottom+=Se}if(V=="line")return K;V||(V="local");var Fe=_r(C);if(V=="local"?Fe+=ni(l.display):Fe-=l.display.viewOffset,V=="page"||V=="window"){var Ye=l.display.lineSpace.getBoundingClientRect();Fe+=Ye.top+(V=="window"?0:As());var Ve=Ye.left+(V=="window"?0:ps());K.left+=Ve,K.right+=Ve}return K.top+=Fe,K.bottom+=Fe,K}function Sl(l,C,K){if(K=="div")return C;var V=C.left,q=C.top;if(K=="page")V-=ps(),q-=As();else if(K=="local"||!K){var Se=l.display.sizer.getBoundingClientRect();V+=Se.left,q+=Se.top}var Fe=l.display.lineSpace.getBoundingClientRect();return{left:V-Fe.left,top:q-Fe.top}}function Os(l,C,K,V,q){return V||(V=zn(l.doc,C.line)),us(l,V,$l(l,V,C.ch,q),K)}function so(l,C,K,V,q,Se){V=V||zn(l.doc,C.line),q||(q=oa(l,V));function Fe(Rn,Ln){var Gn=Gs(l,q,Rn,Ln?"right":"left",Se);return Ln?Gn.left=Gn.right:Gn.right=Gn.left,us(l,V,Gn,K)}var Ye=It(V,l.doc.direction),Ve=C.ch,ot=C.sticky;if(Ve>=V.text.length?(Ve=V.text.length,ot="before"):Ve<=0&&(Ve=0,ot="after"),!Ye)return Fe(ot=="before"?Ve-1:Ve,ot=="before");function Rt(Rn,Ln,Gn){var rr=Ye[Ln],kr=rr.level==1;return Fe(Gn?Rn-1:Rn,kr!=Gn)}var ht=Qe(Ye,Ve,ot),Yt=st,jt=Rt(Ve,ht,ot=="before");return Yt!=null&&(jt.other=Rt(Ve,Yt,ot!="before")),jt}function qi(l,C){var K=0;C=Ft(l.doc,C),l.options.lineWrapping||(K=sa(l.display)*C.ch);var V=zn(l.doc,C.line),q=_r(V)+ni(l.display);return{left:K,right:K,top:q,bottom:q+V.height}}function Oi(l,C,K,V,q){var Se=dt(l,C,K);return Se.xRel=q,V&&(Se.outside=V),Se}function Yo(l,C,K){var V=l.doc;if(K+=l.display.viewOffset,K<0)return Oi(V.first,0,null,-1,-1);var q=vt(V,K),Se=V.first+V.size-1;if(q>Se)return Oi(V.first+V.size-1,zn(V,Se).text.length,null,1,1);C<0&&(C=0);for(var Fe=zn(V,q);;){var Ye=Qt(l,Fe,q,C,K),Ve=cn(Fe,Ye.ch+(Ye.xRel>0||Ye.outside>0?1:0));if(!Ve)return Ye;var ot=Ve.find(1);if(ot.line==q)return ot;Fe=zn(V,q=ot.line)}}function Vn(l,C,K,V){V-=Zo(C);var q=C.text.length,Se=Be(function(Fe){return Gs(l,K,Fe-1).bottom<=V},q,0);return q=Be(function(Fe){return Gs(l,K,Fe).top>V},Se,q),{begin:Se,end:q}}function ts(l,C,K,V){K||(K=oa(l,C));var q=us(l,C,Gs(l,K,V),"line").top;return Vn(l,C,K,q)}function lt(l,C,K,V){return l.bottom<=K?!1:l.top>K?!0:(V?l.left:l.right)>C}function Qt(l,C,K,V,q){q-=_r(C);var Se=oa(l,C),Fe=Zo(C),Ye=0,Ve=C.text.length,ot=!0,Rt=It(C,l.doc.direction);if(Rt){var ht=(l.options.lineWrapping?sl:wa)(l,C,K,Se,Rt,V,q);ot=ht.level!=1,Ye=ot?ht.from:ht.to-1,Ve=ot?ht.to:ht.from-1}var Yt=null,jt=null,Rn=Be(function(xi){var gr=Gs(l,Se,xi);return gr.top+=Fe,gr.bottom+=Fe,lt(gr,V,q,!1)?(gr.top<=q&&gr.left<=V&&(Yt=xi,jt=gr),!0):!1},Ye,Ve),Ln,Gn,rr=!1;if(jt){var kr=V-jt.left<jt.right-V,mr=kr==ot;Rn=Yt+(mr?0:1),Gn=mr?"after":"before",Ln=kr?jt.left:jt.right}else{!ot&&(Rn==Ve||Rn==Ye)&&Rn++,Gn=Rn==0?"after":Rn==C.text.length?"before":Gs(l,Se,Rn-(ot?1:0)).bottom+Fe<=q==ot?"after":"before";var Ur=so(l,dt(K,Rn,Gn),"line",C,Se);Ln=Ur.left,rr=q<Ur.top?-1:q>=Ur.bottom?1:0}return Rn=Ae(C.text,Rn,1),Oi(K,Rn,Gn,rr,V-Ln)}function wa(l,C,K,V,q,Se,Fe){var Ye=Be(function(ht){var Yt=q[ht],jt=Yt.level!=1;return lt(so(l,dt(K,jt?Yt.to:Yt.from,jt?"before":"after"),"line",C,V),Se,Fe,!0)},0,q.length-1),Ve=q[Ye];if(Ye>0){var ot=Ve.level!=1,Rt=so(l,dt(K,ot?Ve.from:Ve.to,ot?"after":"before"),"line",C,V);lt(Rt,Se,Fe,!0)&&Rt.top>Fe&&(Ve=q[Ye-1])}return Ve}function sl(l,C,K,V,q,Se,Fe){var Ye=Vn(l,C,V,Fe),Ve=Ye.begin,ot=Ye.end;/\s/.test(C.text.charAt(ot-1))&&ot--;for(var Rt=null,ht=null,Yt=0;Yt<q.length;Yt++){var jt=q[Yt];if(!(jt.from>=ot||jt.to<=Ve)){var Rn=jt.level!=1,Ln=Gs(l,V,Rn?Math.min(ot,jt.to)-1:Math.max(Ve,jt.from)).right,Gn=Ln<Se?Se-Ln+1e9:Ln-Se;(!Rt||ht>Gn)&&(Rt=jt,ht=Gn)}}return Rt||(Rt=q[q.length-1]),Rt.from<Ve&&(Rt={from:Ve,to:Rt.to,level:Rt.level}),Rt.to>ot&&(Rt={from:Rt.from,to:ot,level:Rt.level}),Rt}var jo;function ns(l){if(l.cachedTextHeight!=null)return l.cachedTextHeight;if(jo==null){jo=G("pre",null,"CodeMirror-line-like");for(var C=0;C<49;++C)jo.appendChild(document.createTextNode("x")),jo.appendChild(G("br"));jo.appendChild(document.createTextNode("x"))}U(l.measure,jo);var K=jo.offsetHeight/50;return K>3&&(l.cachedTextHeight=K),P(l.measure),K||1}function sa(l){if(l.cachedCharWidth!=null)return l.cachedCharWidth;var C=G("span","xxxxxxxxxx"),K=G("pre",[C],"CodeMirror-line-like");U(l.measure,K);var V=C.getBoundingClientRect(),q=(V.right-V.left)/10;return q>2&&(l.cachedCharWidth=q),q||10}function Ea(l){for(var C=l.display,K={},V={},q=C.gutters.clientLeft,Se=C.gutters.firstChild,Fe=0;Se;Se=Se.nextSibling,++Fe){var Ye=l.display.gutterSpecs[Fe].className;K[Ye]=Se.offsetLeft+Se.clientLeft+q,V[Ye]=Se.clientWidth}return{fixedPos:Zl(C),gutterTotalWidth:C.gutters.offsetWidth,gutterLeft:K,gutterWidth:V,wrapperWidth:C.wrapper.clientWidth}}function Zl(l){return l.scroller.getBoundingClientRect().left-l.sizer.getBoundingClientRect().left}function To(l){var C=ns(l.display),K=l.options.lineWrapping,V=K&&Math.max(5,l.display.scroller.clientWidth/sa(l.display)-3);return function(q){if(un(l.doc,q))return 0;var Se=0;if(q.widgets)for(var Fe=0;Fe<q.widgets.length;Fe++)q.widgets[Fe].height&&(Se+=q.widgets[Fe].height);return K?Se+(Math.ceil(q.text.length/V)||1)*C:Se+C}}function Fr(l){var C=l.doc,K=To(l);C.iter(function(V){var q=K(V);q!=V.height&&vi(V,q)})}function gs(l,C,K,V){var q=l.display;if(!K&&qn(C).getAttribute("cm-not-content")=="true")return null;var Se,Fe,Ye=q.lineSpace.getBoundingClientRect();try{Se=C.clientX-Ye.left,Fe=C.clientY-Ye.top}catch(ht){return null}var Ve=Yo(l,Se,Fe),ot;if(V&&Ve.xRel>0&&(ot=zn(l.doc,Ve.line).text).length==Ve.ch){var Rt=ne(ot,ot.length,l.options.tabSize)-ot.length;Ve=dt(Ve.line,Math.max(0,Math.round((Se-xs(l.display).left)/sa(l.display))-Rt))}return Ve}function Bs(l,C){if(C>=l.display.viewTo||(C-=l.display.viewFrom,C<0))return null;for(var K=l.display.view,V=0;V<K.length;V++)if(C-=K[V].size,C<0)return V}function $i(l,C,K,V){C==null&&(C=l.doc.first),K==null&&(K=l.doc.first+l.doc.size),V||(V=0);var q=l.display;if(V&&K<q.viewTo&&(q.updateLineNumbers==null||q.updateLineNumbers>C)&&(q.updateLineNumbers=C),l.curOp.viewChanged=!0,C>=q.viewTo)Gt&&dr(l.doc,C)<q.viewTo&&ko(l);else if(K<=q.viewFrom)Gt&&lr(l.doc,K+V)>q.viewFrom?ko(l):(q.viewFrom+=V,q.viewTo+=V);else if(C<=q.viewFrom&&K>=q.viewTo)ko(l);else if(C<=q.viewFrom){var Se=Ws(l,K,K+V,1);Se?(q.view=q.view.slice(Se.index),q.viewFrom=Se.lineN,q.viewTo+=V):ko(l)}else if(K>=q.viewTo){var Fe=Ws(l,C,C,-1);Fe?(q.view=q.view.slice(0,Fe.index),q.viewTo=Fe.lineN):ko(l)}else{var Ye=Ws(l,C,C,-1),Ve=Ws(l,K,K+V,1);Ye&&Ve?(q.view=q.view.slice(0,Ye.index).concat(Rr(l,Ye.lineN,Ve.lineN)).concat(q.view.slice(Ve.index)),q.viewTo+=V):ko(l)}var ot=q.externalMeasured;ot&&(K<ot.lineN?ot.lineN+=V:C<ot.lineN+ot.size&&(q.externalMeasured=null))}function yi(l,C,K){l.curOp.viewChanged=!0;var V=l.display,q=l.display.externalMeasured;if(q&&C>=q.lineN&&C<q.lineN+q.size&&(V.externalMeasured=null),!(C<V.viewFrom||C>=V.viewTo)){var Se=V.view[Bs(l,C)];if(Se.node!=null){var Fe=Se.changes||(Se.changes=[]);ce(Fe,K)==-1&&Fe.push(K)}}}function ko(l){l.display.viewFrom=l.display.viewTo=l.doc.first,l.display.view=[],l.display.viewOffset=0}function Ws(l,C,K,V){var q=Bs(l,C),Se,Fe=l.display.view;if(!Gt||K==l.doc.first+l.doc.size)return{index:q,lineN:K};for(var Ye=l.display.viewFrom,Ve=0;Ve<q;Ve++)Ye+=Fe[Ve].size;if(Ye!=C){if(V>0){if(q==Fe.length-1)return null;Se=Ye+Fe[q].size-C,q++}else Se=Ye-C;C+=Se,K+=Se}for(;dr(l.doc,K)!=K;){if(q==(V<0?0:Fe.length-1))return null;K+=V*Fe[q-(V<0?1:0)].size,q+=V}return{index:q,lineN:K}}function go(l,C,K){var V=l.display,q=V.view;q.length==0||C>=V.viewTo||K<=V.viewFrom?(V.view=Rr(l,C,K),V.viewFrom=C):(V.viewFrom>C?V.view=Rr(l,C,V.viewFrom).concat(V.view):V.viewFrom<C&&(V.view=V.view.slice(Bs(l,C))),V.viewFrom=C,V.viewTo<K?V.view=V.view.concat(Rr(l,V.viewTo,K)):V.viewTo>K&&(V.view=V.view.slice(0,Bs(l,K)))),V.viewTo=K}function Zs(l){for(var C=l.display.view,K=0,V=0;V<C.length;V++){var q=C[V];!q.hidden&&(!q.node||q.changes)&&++K}return K}function rs(l){l.display.input.showSelection(l.display.input.prepareSelection())}function xl(l,C){C===void 0&&(C=!0);for(var K=l.doc,V={},q=V.cursors=document.createDocumentFragment(),Se=V.selection=document.createDocumentFragment(),Fe=0;Fe<K.sel.ranges.length;Fe++)if(!(!C&&Fe==K.sel.primIndex)){var Ye=K.sel.ranges[Fe];if(!(Ye.from().line>=l.display.viewTo||Ye.to().line<l.display.viewFrom)){var Ve=Ye.empty();(Ve||l.options.showCursorWhenSelecting)&&eo(l,Ye.head,q),Ve||Ui(l,Ye,Se)}}return V}function eo(l,C,K){var V=so(l,C,"div",null,null,!l.options.singleCursorHeightPerLine),q=K.appendChild(G("div","\xA0","CodeMirror-cursor"));if(q.style.left=V.left+"px",q.style.top=V.top+"px",q.style.height=Math.max(0,V.bottom-V.top)*l.options.cursorHeight+"px",V.other){var Se=K.appendChild(G("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Se.style.display="",Se.style.left=V.other.left+"px",Se.style.top=V.other.top+"px",Se.style.height=(V.other.bottom-V.other.top)*.85+"px"}}function ms(l,C){return l.top-C.top||l.left-C.left}function Ui(l,C,K){var V=l.display,q=l.doc,Se=document.createDocumentFragment(),Fe=xs(l.display),Ye=Fe.left,Ve=Math.max(V.sizerWidth,ds(l)-V.sizer.offsetLeft)-Fe.right,ot=q.direction=="ltr";function Rt(mr,Ur,xi,gr){Ur<0&&(Ur=0),Ur=Math.round(Ur),gr=Math.round(gr),Se.appendChild(G("div",null,"CodeMirror-selected","position: absolute; left: "+mr+`px;
top: `+Ur+"px; width: "+(xi==null?Ve-mr:xi)+`px;
height: `+(gr-Ur)+"px"))}function ht(mr,Ur,xi){var gr=zn(q,mr),no=gr.text.length,ss,ta;function bs(Ys,_l){return Os(l,dt(mr,Ys),"div",gr,_l)}function dl(Ys,_l,Na){var $s=ts(l,gr,null,Ys),So=_l=="ltr"==(Na=="after")?"left":"right",Es=Na=="after"?$s.begin:$s.end-(/\s/.test(gr.text.charAt($s.end-1))?2:1);return bs(Es,So)[So]}var Ha=It(gr,q.direction);return He(Ha,Ur||0,xi==null?no:xi,function(Ys,_l,Na,$s){var So=Na=="ltr",Es=bs(Ys,So?"left":"right"),ha=bs(_l-1,So?"right":"left"),Ra=Ur==null&&Ys==0,bu=xi==null&&_l==no,Ss=$s==0,iu=!Ha||$s==Ha.length-1;if(ha.top-Es.top<=3){var Ns=(ot?Ra:bu)&&Ss,pf=(ot?bu:Ra)&&iu,Ul=Ns?Ye:(So?Es:ha).left,Al=pf?Ve:(So?ha:Es).right;Rt(Ul,Es.top,Al-Ul,Es.bottom)}else{var pl,Go,fa,Vu;So?(pl=ot&&Ra&&Ss?Ye:Es.left,Go=ot?Ve:dl(Ys,Na,"before"),fa=ot?Ye:dl(_l,Na,"after"),Vu=ot&&bu&&iu?Ve:ha.right):(pl=ot?dl(Ys,Na,"before"):Ye,Go=!ot&&Ra&&Ss?Ve:Es.right,fa=!ot&&bu&&iu?Ye:ha.left,Vu=ot?dl(_l,Na,"after"):Ve),Rt(pl,Es.top,Go-pl,Es.bottom),Es.bottom<ha.top&&Rt(Ye,Es.bottom,null,ha.top),Rt(fa,ha.top,Vu-fa,ha.bottom)}(!ss||ms(Es,ss)<0)&&(ss=Es),ms(ha,ss)<0&&(ss=ha),(!ta||ms(Es,ta)<0)&&(ta=Es),ms(ha,ta)<0&&(ta=ha)}),{start:ss,end:ta}}var Yt=C.from(),jt=C.to();if(Yt.line==jt.line)ht(Yt.line,Yt.ch,jt.ch);else{var Rn=zn(q,Yt.line),Ln=zn(q,jt.line),Gn=rn(Rn)==rn(Ln),rr=ht(Yt.line,Yt.ch,Gn?Rn.text.length+1:null).end,kr=ht(jt.line,Gn?0:null,jt.ch).start;Gn&&(rr.top<kr.top-2?(Rt(rr.right,rr.top,null,rr.bottom),Rt(Ye,kr.top,kr.left,kr.bottom)):Rt(rr.right,rr.top,kr.left-rr.right,rr.bottom)),rr.bottom<kr.top&&Rt(Ye,rr.bottom,null,kr.top)}K.appendChild(Se)}function uo(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()||Jl(l),C.cursorDiv.style.visibility=(K=!K)?"":"hidden"},l.options.cursorBlinkRate):l.options.cursorBlinkRate<0&&(C.cursorDiv.style.visibility="hidden")}}function po(l){l.state.focused||(l.display.input.focus(),Ai(l))}function _o(l){l.state.delayingBlurEvent=!0,setTimeout(function(){l.state.delayingBlurEvent&&(l.state.delayingBlurEvent=!1,Jl(l))},100)}function Ai(l,C){l.state.delayingBlurEvent&&(l.state.delayingBlurEvent=!1),l.options.readOnly!="nocursor"&&(l.state.focused||(bt(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(),p&&setTimeout(function(){return l.display.input.reset(!0)},20)),l.display.input.receivedFocus()),uo(l))}function Jl(l,C){l.state.delayingBlurEvent||(l.state.focused&&(bt(l,"blur",l,C),l.state.focused=!1,F(l.display.wrapper,"CodeMirror-focused")),clearInterval(l.display.blinker),setTimeout(function(){l.state.focused||(l.display.shift=!1)},150))}function Ar(l){for(var C=l.display,K=C.lineDiv.offsetTop,V=0;V<C.view.length;V++){var q=C.view[V],Se=l.options.lineWrapping,Fe=void 0,Ye=0;if(!q.hidden){if(_&&u<8){var Ve=q.node.offsetTop+q.node.offsetHeight;Fe=Ve-K,K=Ve}else{var ot=q.node.getBoundingClientRect();Fe=ot.bottom-ot.top,!Se&&q.text.firstChild&&(Ye=q.text.firstChild.getBoundingClientRect().right-ot.left-1)}var Rt=q.line.height-Fe;if((Rt>.005||Rt<-.005)&&(vi(q.line,Fe),oc(q.line),q.rest))for(var ht=0;ht<q.rest.length;ht++)oc(q.rest[ht]);if(Ye>l.display.sizerWidth){var Yt=Math.ceil(Ye/sa(l.display));Yt>l.display.maxLineLength&&(l.display.maxLineLength=Yt,l.display.maxLine=q.line,l.display.maxLineChanged=!0)}}}}function oc(l){if(l.widgets)for(var C=0;C<l.widgets.length;++C){var K=l.widgets[C],V=K.node.parentNode;V&&(K.height=V.offsetHeight)}}function Bi(l,C,K){var V=K&&K.top!=null?Math.max(0,K.top):l.scroller.scrollTop;V=Math.floor(V-ni(l));var q=K&&K.bottom!=null?K.bottom:V+l.wrapper.clientHeight,Se=vt(C,V),Fe=vt(C,q);if(K&&K.ensure){var Ye=K.ensure.from.line,Ve=K.ensure.to.line;Ye<Se?(Se=Ye,Fe=vt(C,_r(zn(C,Ye))+l.wrapper.clientHeight)):Math.min(Ve,C.lastLine())>=Fe&&(Se=vt(C,_r(zn(C,Ve))-l.wrapper.clientHeight),Fe=Ve)}return{from:Se,to:Math.max(Fe,Se+1)}}function ju(l,C){if(!Tt(l,"scrollCursorIntoView")){var K=l.display,V=K.sizer.getBoundingClientRect(),q=null;if(C.top+V.top<0?q=!0:C.bottom+V.top>(window.innerHeight||document.documentElement.clientHeight)&&(q=!1),q!=null&&!h){var Se=G("div","\u200B",null,`position: absolute;
top: `+(C.top-K.viewOffset-ni(l.display))+`px;
height: `+(C.bottom-C.top+io(l)+K.barHeight)+`px;
left: `+C.left+"px; width: "+Math.max(2,C.right-C.left)+"px;");l.display.lineSpace.appendChild(Se),Se.scrollIntoView(q),l.display.lineSpace.removeChild(Se)}}}function Pl(l,C,K,V){V==null&&(V=0);var q;!l.options.lineWrapping&&C==K&&(C=C.ch?dt(C.line,C.sticky=="before"?C.ch-1:C.ch,"after"):C,K=C.sticky=="before"?dt(C.line,C.ch+1,"before"):C);for(var Se=0;Se<5;Se++){var Fe=!1,Ye=so(l,C),Ve=!K||K==C?Ye:so(l,K);q={left:Math.min(Ye.left,Ve.left),top:Math.min(Ye.top,Ve.top)-V,right:Math.max(Ye.left,Ve.left),bottom:Math.max(Ye.bottom,Ve.bottom)+V};var ot=Uu(l,q),Rt=l.doc.scrollTop,ht=l.doc.scrollLeft;if(ot.scrollTop!=null&&(ja(l,ot.scrollTop),Math.abs(l.doc.scrollTop-Rt)>1&&(Fe=!0)),ot.scrollLeft!=null&&(Ya(l,ot.scrollLeft),Math.abs(l.doc.scrollLeft-ht)>1&&(Fe=!0)),!Fe)break}return q}function al(l,C){var K=Uu(l,C);K.scrollTop!=null&&ja(l,K.scrollTop),K.scrollLeft!=null&&Ya(l,K.scrollLeft)}function Uu(l,C){var K=l.display,V=ns(l.display);C.top<0&&(C.top=0);var q=l.curOp&&l.curOp.scrollTop!=null?l.curOp.scrollTop:K.scroller.scrollTop,Se=Hs(l),Fe={};C.bottom-C.top>Se&&(C.bottom=C.top+Se);var Ye=l.doc.height+Qi(K),Ve=C.top<V,ot=C.bottom>Ye-V;if(C.top<q)Fe.scrollTop=Ve?0:C.top;else if(C.bottom>q+Se){var Rt=Math.min(C.top,(ot?Ye:C.bottom)-Se);Rt!=q&&(Fe.scrollTop=Rt)}var ht=l.options.fixedGutter?0:K.gutters.offsetWidth,Yt=l.curOp&&l.curOp.scrollLeft!=null?l.curOp.scrollLeft:K.scroller.scrollLeft-ht,jt=ds(l)-K.gutters.offsetWidth,Rn=C.right-C.left>jt;return Rn&&(C.right=C.left+jt),C.left<10?Fe.scrollLeft=0:C.left<Yt?Fe.scrollLeft=Math.max(0,C.left+ht-(Rn?0:10)):C.right>jt+Yt-3&&(Fe.scrollLeft=C.right+(Rn?0:10)-jt),Fe}function Nu(l,C){C!=null&&(Ls(l),l.curOp.scrollTop=(l.curOp.scrollTop==null?l.doc.scrollTop:l.curOp.scrollTop)+C)}function Fa(l){Ls(l);var C=l.getCursor();l.curOp.scrollToPos={from:C,to:C,margin:l.options.cursorScrollMargin}}function Ba(l,C,K){(C!=null||K!=null)&&Ls(l),C!=null&&(l.curOp.scrollLeft=C),K!=null&&(l.curOp.scrollTop=K)}function Hi(l,C){Ls(l),l.curOp.scrollToPos=C}function Ls(l){var C=l.curOp.scrollToPos;if(C){l.curOp.scrollToPos=null;var K=qi(l,C.from),V=qi(l,C.to);Ql(l,K,V,C.margin)}}function Ql(l,C,K,V){var q=Uu(l,{left:Math.min(C.left,K.left),top:Math.min(C.top,K.top)-V,right:Math.max(C.right,K.right),bottom:Math.max(C.bottom,K.bottom)+V});Ba(l,q.scrollLeft,q.scrollTop)}function ja(l,C){Math.abs(l.doc.scrollTop-C)<2||(B||Le(l,{top:C}),ll(l,C,!0),B&&Le(l),mu(l,100))}function ll(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 Ya(l,C,K,V){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)&&!V)&&(l.doc.scrollLeft=C,ft(l),l.display.scroller.scrollLeft!=C&&(l.display.scroller.scrollLeft=C),l.display.scrollbars.setScrollLeft(C))}function ki(l){var C=l.display,K=C.gutters.offsetWidth,V=Math.round(l.doc.height+Qi(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:V,scrollHeight:V+io(l)+C.barHeight,nativeBarWidth:C.nativeBarWidth,gutterWidth:K}}var to=function(l,C,K){this.cm=K;var V=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");V.tabIndex=q.tabIndex=-1,l(V),l(q),rt(V,"scroll",function(){V.clientHeight&&C(V.scrollTop,"vertical")}),rt(q,"scroll",function(){q.clientWidth&&C(q.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,_&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};to.prototype.update=function(l){var C=l.scrollWidth>l.clientWidth+1,K=l.scrollHeight>l.clientHeight+1,V=l.nativeBarWidth;if(K){this.vert.style.display="block",this.vert.style.bottom=C?V+"px":"0";var q=l.viewHeight-(C?V: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?V+"px":"0",this.horiz.style.left=l.barLeft+"px";var Se=l.viewWidth-l.barLeft-(K?V:0);this.horiz.firstChild.style.width=Math.max(0,l.scrollWidth-l.clientWidth+Se)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&l.clientHeight>0&&(V==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:K?V:0,bottom:C?V:0}},to.prototype.setScrollLeft=function(l){this.horiz.scrollLeft!=l&&(this.horiz.scrollLeft=l),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},to.prototype.setScrollTop=function(l){this.vert.scrollTop!=l&&(this.vert.scrollTop=l),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},to.prototype.zeroWidthHack=function(){var l=I&&!c?"12px":"18px";this.horiz.style.height=this.vert.style.width=l,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ue,this.disableVert=new ue},to.prototype.enableZeroWidthBar=function(l,C,K){l.style.pointerEvents="auto";function V(){var q=l.getBoundingClientRect(),Se=K=="vert"?document.elementFromPoint(q.right-1,(q.top+q.bottom)/2):document.elementFromPoint((q.right+q.left)/2,q.bottom-1);Se!=l?l.style.pointerEvents="none":C.set(1e3,V)}C.set(1e3,V)},to.prototype.clear=function(){var l=this.horiz.parentNode;l.removeChild(this.horiz),l.removeChild(this.vert)};var No=function(){};No.prototype.update=function(){return{bottom:0,right:0}},No.prototype.setScrollLeft=function(){},No.prototype.setScrollTop=function(){},No.prototype.clear=function(){};function vs(l,C){C||(C=ki(l));var K=l.display.barWidth,V=l.display.barHeight;is(l,C);for(var q=0;q<4&&K!=l.display.barWidth||V!=l.display.barHeight;q++)K!=l.display.barWidth&&l.options.lineWrapping&&Ar(l),is(l,ki(l)),K=l.display.barWidth,V=l.display.barHeight}function is(l,C){var K=l.display,V=K.scrollbars.update(C);K.sizer.style.paddingRight=(K.barWidth=V.right)+"px",K.sizer.style.paddingBottom=(K.barHeight=V.bottom)+"px",K.heightForcer.style.borderBottom=V.bottom+"px solid transparent",V.right&&V.bottom?(K.scrollbarFiller.style.display="block",K.scrollbarFiller.style.height=V.bottom+"px",K.scrollbarFiller.style.width=V.right+"px"):K.scrollbarFiller.style.display="",V.bottom&&l.options.coverGutterNextToScrollbar&&l.options.fixedGutter?(K.gutterFiller.style.display="block",K.gutterFiller.style.height=V.bottom+"px",K.gutterFiller.style.width=C.gutterWidth+"px"):K.gutterFiller.style.display=""}var Ca={native:to,null:No};function Ta(l){l.display.scrollbars&&(l.display.scrollbars.clear(),l.display.scrollbars.addClass&&F(l.display.wrapper,l.display.scrollbars.addClass)),l.display.scrollbars=new Ca[l.options.scrollbarStyle](function(C){l.display.wrapper.insertBefore(C,l.display.scrollbarFiller),rt(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"?Ya(l,C):ja(l,C)},l),l.display.scrollbars.addClass&&he(l.display.wrapper,l.display.scrollbars.addClass)}var _a=0;function aa(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:++_a},_s(l.curOp)}function $a(l){var C=l.curOp;C&&Da(C,function(K){for(var V=0;V<K.ops.length;V++)K.ops[V].cm.curOp=null;Sc(K)})}function Sc(l){for(var C=l.ops,K=0;K<C.length;K++)_h(C[K]);for(var V=0;V<C.length;V++)Ah(C[V]);for(var q=0;q<C.length;q++)kh(C[q]);for(var Se=0;Se<C.length;Se++)Jo(C[Se]);for(var Fe=0;Fe<C.length;Fe++)ql(C[Fe])}function _h(l){var C=l.cm,K=C.display;xc(C),l.updateMaxLine&&Cr(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 eu(C,l.mustUpdate&&{top:l.scrollTop,ensure:l.scrollToPos},l.forceUpdate)}function Ah(l){l.updatedDisplay=l.mustUpdate&&te(l.cm,l.update)}function kh(l){var C=l.cm,K=C.display;l.updatedDisplay&&Ar(C),l.barMeasure=ki(C),K.maxLineChanged&&!C.options.lineWrapping&&(l.adjustWidthTo=$l(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+io(C)+C.display.barWidth),l.maxScrollLeft=Math.max(0,K.sizer.offsetLeft+l.adjustWidthTo-ds(C))),(l.updatedDisplay||l.selectionChanged)&&(l.preparedSelection=K.input.prepareSelection())}function Jo(l){var C=l.cm;l.adjustWidthTo!=null&&(C.display.sizer.style.minWidth=l.adjustWidthTo+"px",l.maxScrollLeft<C.doc.scrollLeft&&Ya(C,Math.min(C.display.scroller.scrollLeft,l.maxScrollLeft),!0),C.display.maxLineChanged=!1);var K=l.focus&&l.focus==oe();l.preparedSelection&&C.display.input.showSelection(l.preparedSelection,K),(l.updatedDisplay||l.startHeight!=C.doc.height)&&vs(C,l.barMeasure),l.updatedDisplay&&qe(C,l.barMeasure),l.selectionChanged&&uo(C),C.state.focused&&l.updateInput&&C.display.input.reset(l.typing),K&&po(l.cm)}function ql(l){var C=l.cm,K=C.display,V=C.doc;if(l.updatedDisplay&&Ee(C,l.update),K.wheelStartX!=null&&(l.scrollTop!=null||l.scrollLeft!=null||l.scrollToPos)&&(K.wheelStartX=K.wheelStartY=null),l.scrollTop!=null&&ll(C,l.scrollTop,l.forceScroll),l.scrollLeft!=null&&Ya(C,l.scrollLeft,!0,!0),l.scrollToPos){var q=Pl(C,Ft(V,l.scrollToPos.from),Ft(V,l.scrollToPos.to),l.scrollToPos.margin);ju(C,q)}var Se=l.maybeHiddenMarkers,Fe=l.maybeUnhiddenMarkers;if(Se)for(var Ye=0;Ye<Se.length;++Ye)Se[Ye].lines.length||bt(Se[Ye],"hide");if(Fe)for(var Ve=0;Ve<Fe.length;++Ve)Fe[Ve].lines.length&&bt(Fe[Ve],"unhide");K.wrapper.offsetHeight&&(V.scrollTop=C.display.scroller.scrollTop),l.changeObjs&&bt(C,"changes",C,l.changeObjs),l.update&&l.update.finish()}function ho(l,C){if(l.curOp)return C();aa(l);try{return C()}finally{$a(l)}}function ws(l,C){return function(){if(l.curOp)return C.apply(l,arguments);aa(l);try{return C.apply(l,arguments)}finally{$a(l)}}}function Ms(l){return function(){if(this.curOp)return l.apply(this,arguments);aa(this);try{return l.apply(this,arguments)}finally{$a(this)}}}function ks(l){return function(){var C=this.cm;if(!C||C.curOp)return l.apply(this,arguments);aa(C);try{return l.apply(this,arguments)}finally{$a(C)}}}function mu(l,C){l.doc.highlightFrontier<l.display.viewTo&&l.state.highlight.set(C,pe(js,l))}function js(l){var C=l.doc;if(!(C.highlightFrontier>=l.display.viewTo)){var K=+new Date+l.options.workTime,V=Li(l,C.highlightFrontier),q=[];C.iter(V.line,Math.min(C.first+C.size,l.display.viewTo+500),function(Se){if(V.line>=l.display.viewFrom){var Fe=Se.styles,Ye=Se.text.length>l.options.maxHighlightLength?li(C.mode,V.state):null,Ve=mt(l,Se,V,!0);Ye&&(V.state=Ye),Se.styles=Ve.styles;var ot=Se.styleClasses,Rt=Ve.classes;Rt?Se.styleClasses=Rt:ot&&(Se.styleClasses=null);for(var ht=!Fe||Fe.length!=Se.styles.length||ot!=Rt&&(!ot||!Rt||ot.bgClass!=Rt.bgClass||ot.textClass!=Rt.textClass),Yt=0;!ht&&Yt<Fe.length;++Yt)ht=Fe[Yt]!=Se.styles[Yt];ht&&q.push(V.line),Se.stateAfter=V.save(),V.nextLine()}else Se.text.length<=l.options.maxHighlightLength&&Ut(l,Se.text,V),Se.stateAfter=V.line%5==0?V.save():null,V.nextLine();if(+new Date>K)return mu(l,l.options.workDelay),!0}),C.highlightFrontier=V.line,C.modeFrontier=Math.max(C.modeFrontier,V.line),q.length&&ho(l,function(){for(var Se=0;Se<q.length;Se++)yi(l,q[Se],"text")})}}var eu=function(l,C,K){var V=l.display;this.viewport=C,this.visible=Bi(V,l.doc,C),this.editorIsHidden=!V.wrapper.offsetWidth,this.wrapperHeight=V.wrapper.clientHeight,this.wrapperWidth=V.wrapper.clientWidth,this.oldDisplayWidth=ds(l),this.force=K,this.dims=Ea(l),this.events=[]};eu.prototype.signal=function(l,C){Ot(l,C)&&this.events.push(arguments)},eu.prototype.finish=function(){for(var l=0;l<this.events.length;l++)bt.apply(null,this.events[l])};function xc(l){var C=l.display;!C.scrollbarsClipped&&C.scroller.offsetWidth&&(C.nativeBarWidth=C.scroller.offsetWidth-C.scroller.clientWidth,C.heightForcer.style.height=io(l)+"px",C.sizer.style.marginBottom=-C.nativeBarWidth+"px",C.sizer.style.borderRightWidth=io(l)+"px",C.scrollbarsClipped=!0)}function wc(l){if(l.hasFocus())return null;var C=oe();if(!C||!ae(l.display.lineDiv,C))return null;var K={activeElt:C};if(window.getSelection){var V=window.getSelection();V.anchorNode&&V.extend&&ae(l.display.lineDiv,V.anchorNode)&&(K.anchorNode=V.anchorNode,K.anchorOffset=V.anchorOffset,K.focusNode=V.focusNode,K.focusOffset=V.focusOffset)}return K}function la(l){if(!(!l||!l.activeElt||l.activeElt==oe())&&(l.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(l.activeElt.nodeName)&&l.anchorNode&&ae(document.body,l.anchorNode)&&ae(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 te(l,C){var K=l.display,V=l.doc;if(C.editorIsHidden)return ko(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&&Zs(l)==0)return!1;yt(l)&&(ko(l),C.dims=Ea(l));var q=V.first+V.size,Se=Math.max(C.visible.from-l.options.viewportMargin,V.first),Fe=Math.min(q,C.visible.to+l.options.viewportMargin);K.viewFrom<Se&&Se-K.viewFrom<20&&(Se=Math.max(V.first,K.viewFrom)),K.viewTo>Fe&&K.viewTo-Fe<20&&(Fe=Math.min(q,K.viewTo)),Gt&&(Se=dr(l.doc,Se),Fe=lr(l.doc,Fe));var Ye=Se!=K.viewFrom||Fe!=K.viewTo||K.lastWrapHeight!=C.wrapperHeight||K.lastWrapWidth!=C.wrapperWidth;go(l,Se,Fe),K.viewOffset=_r(zn(l.doc,K.viewFrom)),l.display.mover.style.top=K.viewOffset+"px";var Ve=Zs(l);if(!Ye&&Ve==0&&!C.force&&K.renderedView==K.view&&(K.updateLineNumbers==null||K.updateLineNumbers>=K.viewTo))return!1;var ot=wc(l);return Ve>4&&(K.lineDiv.style.display="none"),Ue(l,K.updateLineNumbers,C.dims),Ve>4&&(K.lineDiv.style.display=""),K.renderedView=K.view,la(ot),P(K.cursorDiv),P(K.selectionDiv),K.gutters.style.height=K.sizer.style.minHeight=0,Ye&&(K.lastWrapHeight=C.wrapperHeight,K.lastWrapWidth=C.wrapperWidth,mu(l,400)),K.updateLineNumbers=null,!0}function Ee(l,C){for(var K=C.viewport,V=!0;;V=!1){if(!V||!l.options.lineWrapping||C.oldDisplayWidth==ds(l)){if(K&&K.top!=null&&(K={top:Math.min(l.doc.height+Qi(l.display)-Hs(l),K.top)}),C.visible=Bi(l.display,l.doc,K),C.visible.from>=l.display.viewFrom&&C.visible.to<=l.display.viewTo)break}else V&&(C.visible=Bi(l.display,l.doc,K));if(!te(l,C))break;Ar(l);var q=ki(l);rs(l),vs(l,q),qe(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 Le(l,C){var K=new eu(l,C);if(te(l,K)){Ar(l),Ee(l,K);var V=ki(l);rs(l),vs(l,V),qe(l,V),K.finish()}}function Ue(l,C,K){var V=l.display,q=l.options.lineNumbers,Se=V.lineDiv,Fe=Se.firstChild;function Ye(Rn){var Ln=Rn.nextSibling;return p&&I&&l.display.currentWheelTarget==Rn?Rn.style.display="none":Rn.parentNode.removeChild(Rn),Ln}for(var Ve=V.view,ot=V.viewFrom,Rt=0;Rt<Ve.length;Rt++){var ht=Ve[Rt];if(!ht.hidden)if(!ht.node||ht.node.parentNode!=Se){var Yt=Jr(l,ht,ot,K);Se.insertBefore(Yt,Fe)}else{for(;Fe!=ht.node;)Fe=Ye(Fe);var jt=q&&C!=null&&C<=ot&&ht.lineNumber;ht.changes&&(ce(ht.changes,"gutter")>-1&&(jt=!1),vo(l,ht,ot,K)),jt&&(P(ht.lineNumber),ht.lineNumber.appendChild(document.createTextNode(yn(l.options,ot)))),Fe=ht.node.nextSibling}ot+=ht.size}for(;Fe;)Fe=Ye(Fe)}function Je(l){var C=l.gutters.offsetWidth;l.sizer.style.marginLeft=C+"px"}function qe(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+io(l)+"px"}function ft(l){var C=l.display,K=C.view;if(!(!C.alignWidgets&&(!C.gutters.firstChild||!l.options.fixedGutter))){for(var V=Zl(C)-C.scroller.scrollLeft+l.doc.scrollLeft,q=C.gutters.offsetWidth,Se=V+"px",Fe=0;Fe<K.length;Fe++)if(!K[Fe].hidden){l.options.fixedGutter&&(K[Fe].gutter&&(K[Fe].gutter.style.left=Se),K[Fe].gutterBackground&&(K[Fe].gutterBackground.style.left=Se));var Ye=K[Fe].alignable;if(Ye)for(var Ve=0;Ve<Ye.length;Ve++)Ye[Ve].style.left=Se}l.options.fixedGutter&&(C.gutters.style.left=V+q+"px")}}function yt(l){if(!l.options.lineNumbers)return!1;var C=l.doc,K=yn(l.options,C.first+C.size-1),V=l.display;if(K.length!=V.lineNumChars){var q=V.measure.appendChild(G("div",[G("div",K)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Se=q.firstChild.offsetWidth,Fe=q.offsetWidth-Se;return V.lineGutter.style.width="",V.lineNumInnerWidth=Math.max(Se,V.lineGutter.offsetWidth-Fe)+1,V.lineNumWidth=V.lineNumInnerWidth+Fe,V.lineNumChars=V.lineNumInnerWidth?K.length:-1,V.lineGutter.style.width=V.lineNumWidth+"px",Je(l.display),!0}return!1}function Ht(l,C){for(var K=[],V=!1,q=0;q<l.length;q++){var Se=l[q],Fe=null;if(typeof Se!="string"&&(Fe=Se.style,Se=Se.className),Se=="CodeMirror-linenumbers")if(C)V=!0;else continue;K.push({className:Se,style:Fe})}return C&&!V&&K.push({className:"CodeMirror-linenumbers",style:null}),K}function Kt(l){var C=l.gutters,K=l.gutterSpecs;P(C),l.lineGutter=null;for(var V=0;V<K.length;++V){var q=K[V],Se=q.className,Fe=q.style,Ye=C.appendChild(G("div",null,"CodeMirror-gutter "+Se));Fe&&(Ye.style.cssText=Fe),Se=="CodeMirror-linenumbers"&&(l.lineGutter=Ye,Ye.style.width=(l.lineNumWidth||1)+"px")}C.style.display=K.length?"":"none",Je(l)}function Lt(l){Kt(l.display),$i(l),ft(l)}function sn(l,C,K,V){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 Se=Q("div",[q.lineSpace],"CodeMirror-lines");q.mover=G("div",[Se],null,"position: relative"),q.sizer=G("div",[q.mover],"CodeMirror-sizer"),q.sizerWidth=null,q.heightForcer=G("div",null,null,"position: absolute; height: "+Re+"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"),_&&u<8&&(q.gutters.style.zIndex=-1,q.scroller.style.paddingRight=0),!p&&!(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=Ht(V.gutters,V.lineNumbers),Kt(q),K.init(q)}var nn=0,Dt=null;_?Dt=-.53:B?Dt=15:m?Dt=-.7:v&&(Dt=-1/3);function jr(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 hi(l){var C=jr(l);return C.x*=Dt,C.y*=Dt,C}function Ni(l,C){var K=jr(C),V=K.x,q=K.y,Se=l.display,Fe=Se.scroller,Ye=Fe.scrollWidth>Fe.clientWidth,Ve=Fe.scrollHeight>Fe.clientHeight;if(V&&Ye||q&&Ve){if(q&&I&&p){e:for(var ot=C.target,Rt=Se.view;ot!=Fe;ot=ot.parentNode)for(var ht=0;ht<Rt.length;ht++)if(Rt[ht].node==ot){l.display.currentWheelTarget=ot;break e}}if(V&&!B&&!b&&Dt!=null){q&&Ve&&ja(l,Math.max(0,Fe.scrollTop+q*Dt)),Ya(l,Math.max(0,Fe.scrollLeft+V*Dt)),(!q||q&&Ve)&&$t(C),Se.wheelStartX=null;return}if(q&&Dt!=null){var Yt=q*Dt,jt=l.doc.scrollTop,Rn=jt+Se.wrapper.clientHeight;Yt<0?jt=Math.max(0,jt+Yt-50):Rn=Math.min(l.doc.height,Rn+Yt+50),Le(l,{top:jt,bottom:Rn})}nn<20&&(Se.wheelStartX==null?(Se.wheelStartX=Fe.scrollLeft,Se.wheelStartY=Fe.scrollTop,Se.wheelDX=V,Se.wheelDY=q,setTimeout(function(){if(Se.wheelStartX!=null){var Ln=Fe.scrollLeft-Se.wheelStartX,Gn=Fe.scrollTop-Se.wheelStartY,rr=Gn&&Se.wheelDY&&Gn/Se.wheelDY||Ln&&Se.wheelDX&&Ln/Se.wheelDX;Se.wheelStartX=Se.wheelStartY=null,rr&&(Dt=(Dt*nn+rr)/(nn+1),++nn)}},200)):(Se.wheelDX+=V,Se.wheelDY+=q))}}var pr=function(l,C){this.ranges=l,this.primIndex=C};pr.prototype.primary=function(){return this.ranges[this.primIndex]},pr.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],V=l.ranges[C];if(!kn(K.anchor,V.anchor)||!kn(K.head,V.head))return!1}return!0},pr.prototype.deepCopy=function(){for(var l=[],C=0;C<this.ranges.length;C++)l[C]=new Gr(_t(this.ranges[C].anchor),_t(this.ranges[C].head));return new pr(l,this.primIndex)},pr.prototype.somethingSelected=function(){for(var l=0;l<this.ranges.length;l++)if(!this.ranges[l].empty())return!0;return!1},pr.prototype.contains=function(l,C){C||(C=l);for(var K=0;K<this.ranges.length;K++){var V=this.ranges[K];if(on(C,V.from())>=0&&on(l,V.to())<=0)return K}return-1};var Gr=function(l,C){this.anchor=l,this.head=C};Gr.prototype.from=function(){return An(this.anchor,this.head)},Gr.prototype.to=function(){return we(this.anchor,this.head)},Gr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function qr(l,C,K){var V=l&&l.options.selectionsMayTouch,q=C[K];C.sort(function(Yt,jt){return on(Yt.from(),jt.from())}),K=ce(C,q);for(var Se=1;Se<C.length;Se++){var Fe=C[Se],Ye=C[Se-1],Ve=on(Ye.to(),Fe.from());if(V&&!Fe.empty()?Ve>0:Ve>=0){var ot=An(Ye.from(),Fe.from()),Rt=we(Ye.to(),Fe.to()),ht=Ye.empty()?Fe.from()==Fe.head:Ye.from()==Ye.head;Se<=K&&--K,C.splice(--Se,2,new Gr(ht?Rt:ot,ht?ot:Rt))}}return new pr(C,K)}function Ro(l,C){return new pr([new Gr(l,C||l)],0)}function Io(l){return l.text?dt(l.from.line+l.text.length-1,it(l.text).length+(l.text.length==1?l.from.ch:0)):l.to}function Qn(l,C){if(on(l,C.from)<0)return l;if(on(l,C.to)<=0)return Io(C);var K=l.line+C.text.length-(C.to.line-C.from.line)-1,V=l.ch;return l.line==C.to.line&&(V+=Io(C).ch-C.to.ch),dt(K,V)}function Mo(l,C){for(var K=[],V=0;V<l.sel.ranges.length;V++){var q=l.sel.ranges[V];K.push(new Gr(Qn(q.anchor,C),Qn(q.head,C)))}return qr(l.cm,K,l.sel.primIndex)}function os(l,C,K){return l.line==C.line?dt(K.line,l.ch-C.ch+K.ch):dt(K.line+(l.line-C.line),l.ch)}function wo(l,C,K){for(var V=[],q=dt(l.first,0),Se=q,Fe=0;Fe<C.length;Fe++){var Ye=C[Fe],Ve=os(Ye.from,q,Se),ot=os(Io(Ye),q,Se);if(q=Ye.to,Se=ot,K=="around"){var Rt=l.sel.ranges[Fe],ht=on(Rt.head,Rt.anchor)<0;V[Fe]=new Gr(ht?ot:Ve,ht?Ve:ot)}else V[Fe]=new Gr(Ve,Ve)}return new pr(V,l.sel.primIndex)}function Br(l){l.doc.mode=oi(l.options,l.doc.modeOption),ua(l)}function ua(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,mu(l,100),l.state.modeGen++,l.curOp&&$i(l)}function Ho(l,C){return C.from.ch==0&&C.to.ch==0&&it(C.text)==""&&(!l.cm||l.cm.options.wholeLineUpdateBefore)}function Ei(l,C,K,V){function q(kr){return K?K[kr]:null}function Se(kr,mr,Ur){ji(kr,mr,Ur,V),sr(kr,"change",kr,C)}function Fe(kr,mr){for(var Ur=[],xi=kr;xi<mr;++xi)Ur.push(new Zi(ot[xi],q(xi),V));return Ur}var Ye=C.from,Ve=C.to,ot=C.text,Rt=zn(l,Ye.line),ht=zn(l,Ve.line),Yt=it(ot),jt=q(ot.length-1),Rn=Ve.line-Ye.line;if(C.full)l.insert(0,Fe(0,ot.length)),l.remove(ot.length,l.size-ot.length);else if(Ho(l,C)){var Ln=Fe(0,ot.length-1);Se(ht,ht.text,jt),Rn&&l.remove(Ye.line,Rn),Ln.length&&l.insert(Ye.line,Ln)}else if(Rt==ht)if(ot.length==1)Se(Rt,Rt.text.slice(0,Ye.ch)+Yt+Rt.text.slice(Ve.ch),jt);else{var Gn=Fe(1,ot.length-1);Gn.push(new Zi(Yt+Rt.text.slice(Ve.ch),jt,V)),Se(Rt,Rt.text.slice(0,Ye.ch)+ot[0],q(0)),l.insert(Ye.line+1,Gn)}else if(ot.length==1)Se(Rt,Rt.text.slice(0,Ye.ch)+ot[0]+ht.text.slice(Ve.ch),q(0)),l.remove(Ye.line+1,Rn);else{Se(Rt,Rt.text.slice(0,Ye.ch)+ot[0],q(0)),Se(ht,Yt+ht.text.slice(Ve.ch),jt);var rr=Fe(1,ot.length-1);Rn>1&&l.remove(Ye.line+1,Rn-1),l.insert(Ye.line+1,rr)}sr(l,"change",l,C)}function bi(l,C,K){function V(q,Se,Fe){if(q.linked)for(var Ye=0;Ye<q.linked.length;++Ye){var Ve=q.linked[Ye];if(Ve.doc!=Se){var ot=Fe&&Ve.sharedHist;K&&!ot||(C(Ve.doc,ot),V(Ve.doc,q,ot))}}}V(l,null,!0)}function ao(l,C){if(C.cm)throw new Error("This document is already in use.");l.doc=C,C.cm=l,Fr(l),Br(l),Qo(l),l.options.lineWrapping||Cr(l),l.options.mode=C.modeOption,$i(l)}function Qo(l){(l.doc.direction=="rtl"?he:F)(l.display.lineDiv,"CodeMirror-rtl")}function Us(l){ho(l,function(){Qo(l),$i(l)})}function Js(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 Ua(l,C){var K={from:_t(C.from),to:Io(C),text:Mr(l,C.from,C.to)};return wl(l,K,C.from.line,C.to.line+1),bi(l,function(V){return wl(V,K,C.from.line,C.to.line+1)},!0),K}function Jt(l){for(;l.length;){var C=it(l);if(C.ranges)l.pop();else break}}function ca(l,C){if(C)return Jt(l.done),it(l.done);if(l.done.length&&!it(l.done).ranges)return it(l.done);if(l.done.length>1&&!l.done[l.done.length-2].ranges)return l.done.pop(),it(l.done)}function Xa(l,C,K,V){var q=l.history;q.undone.length=0;var Se=+new Date,Fe,Ye;if((q.lastOp==V||q.lastOrigin==C.origin&&C.origin&&(C.origin.charAt(0)=="+"&&q.lastModTime>Se-(l.cm?l.cm.options.historyEventDelay:500)||C.origin.charAt(0)=="*"))&&(Fe=ca(q,q.lastOp==V)))Ye=it(Fe.changes),on(C.from,C.to)==0&&on(C.from,Ye.to)==0?Ye.to=Io(C):Fe.changes.push(Ua(l,C));else{var Ve=it(q.done);for((!Ve||!Ve.ranges)&&ul(l.sel,q.done),Fe={changes:[Ua(l,C)],generation:q.generation},q.done.push(Fe);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=Se,q.lastOp=q.lastSelOp=V,q.lastOrigin=q.lastSelOrigin=C.origin,Ye||bt(l,"historyAdded")}function tn(l,C,K,V){var q=C.charAt(0);return q=="*"||q=="+"&&K.ranges.length==V.ranges.length&&K.somethingSelected()==V.somethingSelected()&&new Date-l.history.lastSelTime<=(l.cm?l.cm.options.historyEventDelay:500)}function Qs(l,C,K,V){var q=l.history,Se=V&&V.origin;K==q.lastSelOp||Se&&q.lastSelOrigin==Se&&(q.lastModTime==q.lastSelTime&&q.lastOrigin==Se||tn(l,Se,it(q.done),C))?q.done[q.done.length-1]=C:ul(C,q.done),q.lastSelTime=+new Date,q.lastSelOrigin=Se,q.lastSelOp=K,V&&V.clearRedo!==!1&&Jt(q.undone)}function ul(l,C){var K=it(C);K&&K.ranges&&K.equals(l)||C.push(l)}function wl(l,C,K,V){var q=C["spans_"+l.id],Se=0;l.iter(Math.max(l.first,K),Math.min(l.first+l.size,V),function(Fe){Fe.markedSpans&&((q||(q=C["spans_"+l.id]={}))[Se]=Fe.markedSpans),++Se})}function Ds(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 qo(l,C){var K=C["spans_"+l.id];if(!K)return null;for(var V=[],q=0;q<C.text.length;++q)V.push(Ds(K[q]));return V}function Za(l,C){var K=qo(l,C),V=Gi(l,C);if(!K)return V;if(!V)return K;for(var q=0;q<K.length;++q){var Se=K[q],Fe=V[q];if(Se&&Fe)e:for(var Ye=0;Ye<Fe.length;++Ye){for(var Ve=Fe[Ye],ot=0;ot<Se.length;++ot)if(Se[ot].marker==Ve.marker)continue e;Se.push(Ve)}else Fe&&(K[q]=Fe)}return K}function Vs(l,C,K){for(var V=[],q=0;q<l.length;++q){var Se=l[q];if(Se.ranges){V.push(K?pr.prototype.deepCopy.call(Se):Se);continue}var Fe=Se.changes,Ye=[];V.push({changes:Ye});for(var Ve=0;Ve<Fe.length;++Ve){var ot=Fe[Ve],Rt=void 0;if(Ye.push({from:ot.from,to:ot.to,text:ot.text}),C)for(var ht in ot)(Rt=ht.match(/^spans_(\d+)$/))&&ce(C,Number(Rt[1]))>-1&&(it(Ye)[ht]=ot[ht],delete ot[ht])}}return V}function Fl(l,C,K,V){if(V){var q=l.anchor;if(K){var Se=on(C,q)<0;Se!=on(K,q)<0?(q=C,C=K):Se!=on(C,K)<0&&(C=K)}return new Gr(q,C)}else return new Gr(K||C,C)}function tu(l,C,K,V,q){q==null&&(q=l.cm&&(l.cm.display.shift||l.extend)),z(l,new pr([Fl(l.sel.primary(),C,K,q)],0),V)}function Ec(l,C,K){for(var V=[],q=l.cm&&(l.cm.display.shift||l.extend),Se=0;Se<l.sel.ranges.length;Se++)V[Se]=Fl(l.sel.ranges[Se],C[Se],null,q);var Fe=qr(l.cm,V,l.sel.primIndex);z(l,Fe,K)}function cl(l,C,K,V){var q=l.sel.ranges.slice(0);q[C]=K,z(l,qr(l.cm,q,l.sel.primIndex),V)}function vu(l,C,K,V){z(l,Ro(C,K),V)}function Xc(l,C,K){var V={ranges:C.ranges,update:function(q){this.ranges=[];for(var Se=0;Se<q.length;Se++)this.ranges[Se]=new Gr(Ft(l,q[Se].anchor),Ft(l,q[Se].head))},origin:K&&K.origin};return bt(l,"beforeSelectionChange",l,V),l.cm&&bt(l.cm,"beforeSelectionChange",l.cm,V),V.ranges!=C.ranges?qr(l.cm,V.ranges,V.ranges.length-1):C}function A(l,C,K){var V=l.history.done,q=it(V);q&&q.ranges?(V[V.length-1]=C,Ie(l,C,K)):z(l,C,K)}function z(l,C,K){Ie(l,C,K),Qs(l,l.sel,l.cm?l.cm.curOp.id:NaN,K)}function Ie(l,C,K){(Ot(l,"beforeSelectionChange")||l.cm&&Ot(l.cm,"beforeSelectionChange"))&&(C=Xc(l,C,K));var V=K&&K.bias||(on(C.primary().head,l.sel.primary().head)<0?-1:1);ct(l,xn(l,C,V,!0)),!(K&&K.scroll===!1)&&l.cm&&Fa(l.cm)}function ct(l,C){C.equals(l.sel)||(l.sel=C,l.cm&&(l.cm.curOp.updateInput=1,l.cm.curOp.selectionChanged=!0,Mt(l.cm)),sr(l,"cursorActivity",l))}function zt(l){ct(l,xn(l,l.sel,null,!1))}function xn(l,C,K,V){for(var q,Se=0;Se<C.ranges.length;Se++){var Fe=C.ranges[Se],Ye=C.ranges.length==l.sel.ranges.length&&l.sel.ranges[Se],Ve=Vr(l,Fe.anchor,Ye&&Ye.anchor,K,V),ot=Vr(l,Fe.head,Ye&&Ye.head,K,V);(q||Ve!=Fe.anchor||ot!=Fe.head)&&(q||(q=C.ranges.slice(0,Se)),q[Se]=new Gr(Ve,ot))}return q?qr(l.cm,q,C.primIndex):C}function Hn(l,C,K,V,q){var Se=zn(l,C.line);if(Se.markedSpans)for(var Fe=0;Fe<Se.markedSpans.length;++Fe){var Ye=Se.markedSpans[Fe],Ve=Ye.marker,ot="selectLeft"in Ve?!Ve.selectLeft:Ve.inclusiveLeft,Rt="selectRight"in Ve?!Ve.selectRight:Ve.inclusiveRight;if((Ye.from==null||(ot?Ye.from<=C.ch:Ye.from<C.ch))&&(Ye.to==null||(Rt?Ye.to>=C.ch:Ye.to>C.ch))){if(q&&(bt(Ve,"beforeCursorEnter"),Ve.explicitlyCleared))if(Se.markedSpans){--Fe;continue}else break;if(!Ve.atomic)continue;if(K){var ht=Ve.find(V<0?1:-1),Yt=void 0;if((V<0?Rt:ot)&&(ht=Si(l,ht,-V,ht&&ht.line==C.line?Se:null)),ht&&ht.line==C.line&&(Yt=on(ht,K))&&(V<0?Yt<0:Yt>0))return Hn(l,ht,C,V,q)}var jt=Ve.find(V<0?-1:1);return(V<0?ot:Rt)&&(jt=Si(l,jt,V,jt.line==C.line?Se:null)),jt?Hn(l,jt,C,V,q):null}}return C}function Vr(l,C,K,V,q){var Se=V||1,Fe=Hn(l,C,K,Se,q)||!q&&Hn(l,C,K,Se,!0)||Hn(l,C,K,-Se,q)||!q&&Hn(l,C,K,-Se,!0);return Fe||(l.cantEdit=!0,dt(l.first,0))}function Si(l,C,K,V){return K<0&&C.ch==0?C.line>l.first?Ft(l,dt(C.line-1)):null:K>0&&C.ch==(V||zn(l,C.line)).text.length?C.line<l.first+l.size-1?dt(C.line+1,0):null:new dt(C.line,C.ch+K)}function bn(l){l.setSelection(dt(l.firstLine(),0),dt(l.lastLine()),Ne)}function ar(l,C,K){var V={canceled:!1,from:C.from,to:C.to,text:C.text,origin:C.origin,cancel:function(){return V.canceled=!0}};return K&&(V.update=function(q,Se,Fe,Ye){q&&(V.from=Ft(l,q)),Se&&(V.to=Ft(l,Se)),Fe&&(V.text=Fe),Ye!==void 0&&(V.origin=Ye)}),bt(l,"beforeChange",l,V),l.cm&&bt(l.cm,"beforeChange",l.cm,V),V.canceled?(l.cm&&(l.cm.curOp.updateInput=2),null):{from:V.from,to:V.to,text:V.text,origin:V.origin}}function Ri(l,C,K){if(l.cm){if(!l.cm.curOp)return ws(l.cm,Ri)(l,C,K);if(l.cm.state.suppressEdits)return}if(!((Ot(l,"beforeChange")||l.cm&&Ot(l.cm,"beforeChange"))&&(C=ar(l,C,!0),!C))){var V=si&&!K&&Xt(l,C.from,C.to);if(V)for(var q=V.length-1;q>=0;--q)co(l,{from:V[q].from,to:V[q].to,text:q?[""]:C.text,origin:C.origin});else co(l,C)}}function co(l,C){if(!(C.text.length==1&&C.text[0]==""&&on(C.from,C.to)==0)){var K=Mo(l,C);Xa(l,C,K,l.cm?l.cm.curOp.id:NaN),Bl(l,C,K,Gi(l,C));var V=[];bi(l,function(q,Se){!Se&&ce(V,q.history)==-1&&(Hu(q.history,C),V.push(q.history)),Bl(q,C,null,Gi(q,C))})}}function Uo(l,C,K){var V=l.cm&&l.cm.state.suppressEdits;if(!(V&&!K)){for(var q=l.history,Se,Fe=l.sel,Ye=C=="undo"?q.done:q.undone,Ve=C=="undo"?q.undone:q.done,ot=0;ot<Ye.length&&(Se=Ye[ot],!(K?Se.ranges&&!Se.equals(l.sel):!Se.ranges));ot++);if(ot!=Ye.length){for(q.lastOrigin=q.lastSelOrigin=null;;)if(Se=Ye.pop(),Se.ranges){if(ul(Se,Ve),K&&!Se.equals(l.sel)){z(l,Se,{clearRedo:!1});return}Fe=Se}else if(V){Ye.push(Se);return}else break;var Rt=[];ul(Fe,Ve),Ve.push({changes:Rt,generation:q.generation}),q.generation=Se.generation||++q.maxGeneration;for(var ht=Ot(l,"beforeChange")||l.cm&&Ot(l.cm,"beforeChange"),Yt=function(Ln){var Gn=Se.changes[Ln];if(Gn.origin=C,ht&&!ar(l,Gn,!1))return Ye.length=0,{};Rt.push(Ua(l,Gn));var rr=Ln?Mo(l,Gn):it(Ye);Bl(l,Gn,rr,Za(l,Gn)),!Ln&&l.cm&&l.cm.scrollIntoView({from:Gn.from,to:Io(Gn)});var kr=[];bi(l,function(mr,Ur){!Ur&&ce(kr,mr.history)==-1&&(Hu(mr.history,Gn),kr.push(mr.history)),Bl(mr,Gn,null,Za(mr,Gn))})},jt=Se.changes.length-1;jt>=0;--jt){var Rn=Yt(jt);if(Rn)return Rn.v}}}}function El(l,C){if(C!=0&&(l.first+=C,l.sel=new pr(ze(l.sel.ranges,function(q){return new Gr(dt(q.anchor.line+C,q.anchor.ch),dt(q.head.line+C,q.head.ch))}),l.sel.primIndex),l.cm)){$i(l.cm,l.first,l.first-C,C);for(var K=l.cm.display,V=K.viewFrom;V<K.viewTo;V++)yi(l.cm,V,"gutter")}}function Bl(l,C,K,V){if(l.cm&&!l.cm.curOp)return ws(l.cm,Bl)(l,C,K,V);if(C.to.line<l.first){El(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);El(l,q),C={from:dt(l.first,0),to:dt(C.to.line+q,C.to.ch),text:[it(C.text)],origin:C.origin}}var Se=l.lastLine();C.to.line>Se&&(C={from:C.from,to:dt(Se,zn(l,Se).text.length),text:[C.text[0]],origin:C.origin}),C.removed=Mr(l,C.from,C.to),K||(K=Mo(l,C)),l.cm?yu(l.cm,C,V):Ei(l,C,V),Ie(l,K,Ne),l.cantEdit&&Vr(l,dt(l.firstLine(),0))&&(l.cantEdit=!1)}}function yu(l,C,K){var V=l.doc,q=l.display,Se=C.from,Fe=C.to,Ye=!1,Ve=Se.line;l.options.lineWrapping||(Ve=nt(rn(zn(V,Se.line))),V.iter(Ve,Fe.line+1,function(jt){if(jt==q.maxLine)return Ye=!0,!0})),V.sel.contains(C.from,C.to)>-1&&Mt(l),Ei(V,C,K,To(l)),l.options.lineWrapping||(V.iter(Ve,Se.line+C.text.length,function(jt){var Rn=ci(jt);Rn>q.maxLineLength&&(q.maxLine=jt,q.maxLineLength=Rn,q.maxLineChanged=!0,Ye=!1)}),Ye&&(l.curOp.updateMaxLine=!0)),ti(V,Se.line),mu(l,400);var ot=C.text.length-(Fe.line-Se.line)-1;C.full?$i(l):Se.line==Fe.line&&C.text.length==1&&!Ho(l.doc,C)?yi(l,Se.line,"text"):$i(l,Se.line,Fe.line+1,ot);var Rt=Ot(l,"changes"),ht=Ot(l,"change");if(ht||Rt){var Yt={from:Se,to:Fe,text:C.text,removed:C.removed,origin:C.origin};ht&&sr(l,"change",l,Yt),Rt&&(l.curOp.changeObjs||(l.curOp.changeObjs=[])).push(Yt)}l.display.selForContextMenu=null}function nu(l,C,K,V,q){var Se;V||(V=K),on(V,K)<0&&(Se=[V,K],K=Se[0],V=Se[1]),typeof C=="string"&&(C=l.splitLines(C)),Ri(l,{from:K,to:V,text:C,origin:q})}function Aa(l,C,K,V){K<l.line?l.line+=V:C<l.line&&(l.line=C,l.ch=0)}function hl(l,C,K,V){for(var q=0;q<l.length;++q){var Se=l[q],Fe=!0;if(Se.ranges){Se.copied||(Se=l[q]=Se.deepCopy(),Se.copied=!0);for(var Ye=0;Ye<Se.ranges.length;Ye++)Aa(Se.ranges[Ye].anchor,C,K,V),Aa(Se.ranges[Ye].head,C,K,V);continue}for(var Ve=0;Ve<Se.changes.length;++Ve){var ot=Se.changes[Ve];if(K<ot.from.line)ot.from=dt(ot.from.line+V,ot.from.ch),ot.to=dt(ot.to.line+V,ot.to.ch);else if(C<=ot.to.line){Fe=!1;break}}Fe||(l.splice(0,q+1),q=0)}}function Hu(l,C){var K=C.from.line,V=C.to.line,q=C.text.length-(V-K)-1;hl(l.done,K,V,q),hl(l.undone,K,V,q)}function Ja(l,C,K,V){var q=C,Se=C;return typeof C=="number"?Se=zn(l,Nn(l,C)):q=nt(C),q==null?null:(V(Se,q)&&l.cm&&yi(l.cm,q,K),Se)}function Nh(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}Nh.prototype={chunkSize:function(){return this.lines.length},removeInner:function(l,C){for(var K=l,V=l+C;K<V;++K){var q=this.lines[K];this.height-=q.height,Pi(q),sr(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 V=0;V<C.length;++V)C[V].parent=this},iterN:function(l,C,K){for(var V=l+C;l<V;++l)if(K(this.lines[l]))return!0}};function ys(l){this.children=l;for(var C=0,K=0,V=0;V<l.length;++V){var q=l[V];C+=q.chunkSize(),K+=q.height,q.parent=this}this.size=C,this.height=K,this.parent=null}ys.prototype={chunkSize:function(){return this.size},removeInner:function(l,C){this.size-=C;for(var K=0;K<this.children.length;++K){var V=this.children[K],q=V.chunkSize();if(l<q){var Se=Math.min(C,q-l),Fe=V.height;if(V.removeInner(l,Se),this.height-=Fe-V.height,q==Se&&(this.children.splice(K--,1),V.parent=null),(C-=Se)==0)break;l=0}else l-=q}if(this.size-C<25&&(this.children.length>1||!(this.children[0]instanceof Nh))){var Ye=[];this.collapse(Ye),this.children=[new Nh(Ye)],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 V=0;V<this.children.length;++V){var q=this.children[V],Se=q.chunkSize();if(l<=Se){if(q.insertInner(l,C,K),q.lines&&q.lines.length>50){for(var Fe=q.lines.length%25+25,Ye=Fe;Ye<q.lines.length;){var Ve=new Nh(q.lines.slice(Ye,Ye+=25));q.height-=Ve.height,this.children.splice(++V,0,Ve),Ve.parent=this}q.lines=q.lines.slice(0,Fe),this.maybeSpill()}break}l-=Se}},maybeSpill:function(){if(!(this.children.length<=10)){var l=this;do{var C=l.children.splice(l.children.length-5,5),K=new ys(C);if(l.parent){l.size-=K.size,l.height-=K.height;var q=ce(l.parent.children,l);l.parent.children.splice(q+1,0,K)}else{var V=new ys(l.children);V.parent=l,l.children=[V,K],l=V}K.parent=l.parent}while(l.children.length>10);l.parent.maybeSpill()}},iterN:function(l,C,K){for(var V=0;V<this.children.length;++V){var q=this.children[V],Se=q.chunkSize();if(l<Se){var Fe=Math.min(C,Se-l);if(q.iterN(l,Fe,K))return!0;if((C-=Fe)==0)break;l=0}else l-=Se}}};var sc=function(l,C,K){if(K)for(var V in K)K.hasOwnProperty(V)&&(this[V]=K[V]);this.doc=l,this.node=C};sc.prototype.clear=function(){var l=this.doc.cm,C=this.line.widgets,K=this.line,V=nt(K);if(!(V==null||!C)){for(var q=0;q<C.length;++q)C[q]==this&&C.splice(q--,1);C.length||(K.widgets=null);var Se=Co(this);vi(K,Math.max(0,K.height-Se)),l&&(ho(l,function(){og(l,K,-Se),yi(l,V,"widget")}),sr(l,"lineWidgetCleared",l,this,V))}},sc.prototype.changed=function(){var l=this,C=this.height,K=this.doc.cm,V=this.line;this.height=null;var q=Co(this)-C;q&&(un(this.doc,V)||vi(V,V.height+q),K&&ho(K,function(){K.curOp.forceUpdate=!0,og(K,V,q),sr(K,"lineWidgetChanged",K,l,nt(V))}))},$e(sc);function og(l,C,K){_r(C)<(l.curOp&&l.curOp.scrollTop||l.doc.scrollTop)&&Nu(l,K)}function Ff(l,C,K,V){var q=new sc(l,K,V),Se=l.cm;return Se&&q.noHScroll&&(Se.display.alignWidgets=!0),Ja(l,C,"widget",function(Fe){var Ye=Fe.widgets||(Fe.widgets=[]);if(q.insertAt==null?Ye.push(q):Ye.splice(Math.min(Ye.length-1,Math.max(0,q.insertAt)),0,q),q.line=Fe,Se&&!un(l,Fe)){var Ve=_r(Fe)<l.scrollTop;vi(Fe,Fe.height+Co(q)),Ve&&Nu(Se,q.height),Se.curOp.forceUpdate=!0}return!0}),Se&&sr(Se,"lineWidgetAdded",Se,q,typeof C=="number"?C:nt(C)),q}var sg=0,xt=function(l,C){this.lines=[],this.type=C,this.doc=l,this.id=++sg};xt.prototype.clear=function(){if(!this.explicitlyCleared){var l=this.doc.cm,C=l&&!l.curOp;if(C&&aa(l),Ot(this,"clear")){var K=this.find();K&&sr(this,"clear",K.from,K.to)}for(var V=null,q=null,Se=0;Se<this.lines.length;++Se){var Fe=this.lines[Se],Ye=Dr(Fe.markedSpans,this);l&&!this.collapsed?yi(l,nt(Fe),"text"):l&&(Ye.to!=null&&(q=nt(Fe)),Ye.from!=null&&(V=nt(Fe))),Fe.markedSpans=br(Fe.markedSpans,Ye),Ye.from==null&&this.collapsed&&!un(this.doc,Fe)&&l&&vi(Fe,ns(l.display))}if(l&&this.collapsed&&!l.options.lineWrapping)for(var Ve=0;Ve<this.lines.length;++Ve){var ot=rn(this.lines[Ve]),Rt=ci(ot);Rt>l.display.maxLineLength&&(l.display.maxLine=ot,l.display.maxLineLength=Rt,l.display.maxLineChanged=!0)}V!=null&&l&&this.collapsed&&$i(l,V,q+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,l&&zt(l.doc)),l&&sr(l,"markerCleared",l,this,V,q),C&&$a(l),this.parent&&this.parent.clear()}},xt.prototype.find=function(l,C){l==null&&this.type=="bookmark"&&(l=1);for(var K,V,q=0;q<this.lines.length;++q){var Se=this.lines[q],Fe=Dr(Se.markedSpans,this);if(Fe.from!=null&&(K=dt(C?Se:nt(Se),Fe.from),l==-1))return K;if(Fe.to!=null&&(V=dt(C?Se:nt(Se),Fe.to),l==1))return V}return K&&{from:K,to:V}},xt.prototype.changed=function(){var l=this,C=this.find(-1,!0),K=this,V=this.doc.cm;!C||!V||ho(V,function(){var q=C.line,Se=nt(C.line),Fe=zs(V,Se);if(Fe&&(gu(Fe),V.curOp.selectionChanged=V.curOp.forceUpdate=!0),V.curOp.updateMaxLine=!0,!un(K.doc,q)&&K.height!=null){var Ye=K.height;K.height=null;var Ve=Co(K)-Ye;Ve&&vi(q,q.height+Ve)}sr(V,"markerChanged",V,l)})},xt.prototype.attachLine=function(l){if(!this.lines.length&&this.doc.cm){var C=this.doc.cm.curOp;(!C.maybeHiddenMarkers||ce(C.maybeHiddenMarkers,this)==-1)&&(C.maybeUnhiddenMarkers||(C.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(l)},xt.prototype.detachLine=function(l){if(this.lines.splice(ce(this.lines,l),1),!this.lines.length&&this.doc.cm){var C=this.doc.cm.curOp;(C.maybeHiddenMarkers||(C.maybeHiddenMarkers=[])).push(this)}},$e(xt);function Zc(l,C,K,V,q){if(V&&V.shared)return ag(l,C,K,V,q);if(l.cm&&!l.cm.curOp)return ws(l.cm,Zc)(l,C,K,V,q);var Se=new xt(l,q),Fe=on(C,K);if(V&&_e(V,Se,!1),Fe>0||Fe==0&&Se.clearWhenEmpty!==!1)return Se;if(Se.replacedWith&&(Se.collapsed=!0,Se.widgetNode=Q("span",[Se.replacedWith],"CodeMirror-widget"),V.handleMouseEvents||Se.widgetNode.setAttribute("cm-ignore-events","true"),V.insertLeft&&(Se.widgetNode.insertLeft=!0)),Se.collapsed){if(dn(l,C.line,C,K,Se)||C.line!=K.line&&dn(l,K.line,C,K,Se))throw new Error("Inserting collapsed marker partially overlapping an existing one");Wt()}Se.addToHistory&&Xa(l,{from:C,to:K,origin:"markText"},l.sel,NaN);var Ye=C.line,Ve=l.cm,ot;if(l.iter(Ye,K.line+1,function(ht){Ve&&Se.collapsed&&!Ve.options.lineWrapping&&rn(ht)==Ve.display.maxLine&&(ot=!0),Se.collapsed&&Ye!=C.line&&vi(ht,0),mi(ht,new Yn(Se,Ye==C.line?C.ch:null,Ye==K.line?K.ch:null)),++Ye}),Se.collapsed&&l.iter(C.line,K.line+1,function(ht){un(l,ht)&&vi(ht,0)}),Se.clearOnEnter&&rt(Se,"beforeCursorEnter",function(){return Se.clear()}),Se.readOnly&&(di(),(l.history.done.length||l.history.undone.length)&&l.clearHistory()),Se.collapsed&&(Se.id=++sg,Se.atomic=!0),Ve){if(ot&&(Ve.curOp.updateMaxLine=!0),Se.collapsed)$i(Ve,C.line,K.line+1);else if(Se.className||Se.startStyle||Se.endStyle||Se.css||Se.attributes||Se.title)for(var Rt=C.line;Rt<=K.line;Rt++)yi(Ve,Rt,"text");Se.atomic&&zt(Ve.doc),sr(Ve,"markerAdded",Ve,Se)}return Se}var zu=function(l,C){this.markers=l,this.primary=C;for(var K=0;K<l.length;++K)l[K].parent=this};zu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var l=0;l<this.markers.length;++l)this.markers[l].clear();sr(this,"clear")}},zu.prototype.find=function(l,C){return this.primary.find(l,C)},$e(zu);function ag(l,C,K,V,q){V=_e(V),V.shared=!1;var Se=[Zc(l,C,K,V,q)],Fe=Se[0],Ye=V.widgetNode;return bi(l,function(Ve){Ye&&(V.widgetNode=Ye.cloneNode(!0)),Se.push(Zc(Ve,Ft(Ve,C),Ft(Ve,K),V,q));for(var ot=0;ot<Ve.linked.length;++ot)if(Ve.linked[ot].isParent)return;Fe=it(Se)}),new zu(Se,Fe)}function Pd(l){return l.findMarks(dt(l.first,0),l.clipPos(dt(l.lastLine())),function(C){return C.parent})}function lg(l,C){for(var K=0;K<C.length;K++){var V=C[K],q=V.find(),Se=l.clipPos(q.from),Fe=l.clipPos(q.to);if(on(Se,Fe)){var Ye=Zc(l,Se,Fe,V.primary,V.primary.type);V.markers.push(Ye),Ye.parent=V}}}function Fd(l){for(var C=function(V){var q=l[V],Se=[q.primary.doc];bi(q.primary.doc,function(Ve){return Se.push(Ve)});for(var Fe=0;Fe<q.markers.length;Fe++){var Ye=q.markers[Fe];ce(Se,Ye.doc)==-1&&(Ye.parent=null,q.markers.splice(Fe--,1))}},K=0;K<l.length;K++)C(K)}var fv=0,ka=function(l,C,K,V,q){if(!(this instanceof ka))return new ka(l,C,K,V,q);K==null&&(K=0),ys.call(this,[new Nh([new Zi("",null)])]),this.first=K,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=K;var Se=dt(K,0);this.sel=Ro(Se),this.history=new Js(null),this.id=++fv,this.modeOption=C,this.lineSep=V,this.direction=q=="rtl"?"rtl":"ltr",this.extend=!1,typeof l=="string"&&(l=this.splitLines(l)),Ei(this,{from:Se,to:Se,text:l}),z(this,Ro(Se),Ne)};ka.prototype=W(ys.prototype,{constructor:ka,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,V=0;V<C.length;++V)K+=C[V].height;this.insertInner(l-this.first,C,K)},remove:function(l,C){this.removeInner(l-this.first,C)},getValue:function(l){var C=Ci(this,this.first,this.first+this.size);return l===!1?C:C.join(l||this.lineSeparator())},setValue:ks(function(l){var C=dt(this.first,0),K=this.first+this.size-1;Ri(this,{from:C,to:dt(K,zn(this,K).text.length),text:this.splitLines(l),origin:"setValue",full:!0},!0),this.cm&&Ba(this.cm,0,0),z(this,Ro(C),Ne)}),replaceRange:function(l,C,K,V){C=Ft(this,C),K=K?Ft(this,K):C,nu(this,l,C,K,V)},getRange:function(l,C,K){var V=Mr(this,Ft(this,l),Ft(this,C));return K===!1?V:V.join(K||this.lineSeparator())},getLine:function(l){var C=this.getLineHandle(l);return C&&C.text},getLineHandle:function(l){if(hn(this,l))return zn(this,l)},getLineNumber:function(l){return nt(l)},getLineHandleVisualStart:function(l){return typeof l=="number"&&(l=zn(this,l)),rn(l)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(l){return Ft(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:ks(function(l,C,K){vu(this,Ft(this,typeof l=="number"?dt(l,C||0):l),null,K)}),setSelection:ks(function(l,C,K){vu(this,Ft(this,l),Ft(this,C||l),K)}),extendSelection:ks(function(l,C,K){tu(this,Ft(this,l),C&&Ft(this,C),K)}),extendSelections:ks(function(l,C){Ec(this,Xn(this,l),C)}),extendSelectionsBy:ks(function(l,C){var K=ze(this.sel.ranges,l);Ec(this,Xn(this,K),C)}),setSelections:ks(function(l,C,K){if(l.length){for(var V=[],q=0;q<l.length;q++)V[q]=new Gr(Ft(this,l[q].anchor),Ft(this,l[q].head));C==null&&(C=Math.min(l.length-1,this.sel.primIndex)),z(this,qr(this.cm,V,C),K)}}),addSelection:ks(function(l,C,K){var V=this.sel.ranges.slice(0);V.push(new Gr(Ft(this,l),Ft(this,C||l))),z(this,qr(this.cm,V,V.length-1),K)}),getSelection:function(l){for(var C=this.sel.ranges,K,V=0;V<C.length;V++){var q=Mr(this,C[V].from(),C[V].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,V=0;V<K.length;V++){var q=Mr(this,K[V].from(),K[V].to());l!==!1&&(q=q.join(l||this.lineSeparator())),C[V]=q}return C},replaceSelection:function(l,C,K){for(var V=[],q=0;q<this.sel.ranges.length;q++)V[q]=l;this.replaceSelections(V,C,K||"+input")},replaceSelections:ks(function(l,C,K){for(var V=[],q=this.sel,Se=0;Se<q.ranges.length;Se++){var Fe=q.ranges[Se];V[Se]={from:Fe.from(),to:Fe.to(),text:this.splitLines(l[Se]),origin:K}}for(var Ye=C&&C!="end"&&wo(this,V,C),Ve=V.length-1;Ve>=0;Ve--)Ri(this,V[Ve]);Ye?A(this,Ye):this.cm&&Fa(this.cm)}),undo:ks(function(){Uo(this,"undo")}),redo:ks(function(){Uo(this,"redo")}),undoSelection:ks(function(){Uo(this,"undo",!0)}),redoSelection:ks(function(){Uo(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,V=0;V<l.done.length;V++)l.done[V].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 Js(this.history.maxGeneration),bi(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:Vs(this.history.done),undone:Vs(this.history.undone)}},setHistory:function(l){var C=this.history=new Js(this.history.maxGeneration);C.done=Vs(l.done.slice(0),null,!0),C.undone=Vs(l.undone.slice(0),null,!0)},setGutterMarker:ks(function(l,C,K){return Ja(this,l,"gutter",function(V){var q=V.gutterMarkers||(V.gutterMarkers={});return q[C]=K,!K&&re(q)&&(V.gutterMarkers=null),!0})}),clearGutter:ks(function(l){var C=this;this.iter(function(K){K.gutterMarkers&&K.gutterMarkers[l]&&Ja(C,K,"gutter",function(){return K.gutterMarkers[l]=null,re(K.gutterMarkers)&&(K.gutterMarkers=null),!0})})}),lineInfo:function(l){var C;if(typeof l=="number"){if(!hn(this,l)||(C=l,l=zn(this,l),!l))return null}else if(C=nt(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:ks(function(l,C,K){return Ja(this,l,C=="gutter"?"gutter":"class",function(V){var q=C=="text"?"textClass":C=="background"?"bgClass":C=="gutter"?"gutterClass":"wrapClass";if(!V[q])V[q]=K;else{if(M(K).test(V[q]))return!1;V[q]+=" "+K}return!0})}),removeLineClass:ks(function(l,C,K){return Ja(this,l,C=="gutter"?"gutter":"class",function(V){var q=C=="text"?"textClass":C=="background"?"bgClass":C=="gutter"?"gutterClass":"wrapClass",Se=V[q];if(Se)if(K==null)V[q]=null;else{var Fe=Se.match(M(K));if(!Fe)return!1;var Ye=Fe.index+Fe[0].length;V[q]=Se.slice(0,Fe.index)+(!Fe.index||Ye==Se.length?"":" ")+Se.slice(Ye)||null}else return!1;return!0})}),addLineWidget:ks(function(l,C,K){return Ff(this,l,C,K)}),removeLineWidget:function(l){l.clear()},markText:function(l,C,K){return Zc(this,Ft(this,l),Ft(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=Ft(this,l),Zc(this,l,l,K,"bookmark")},findMarksAt:function(l){l=Ft(this,l);var C=[],K=zn(this,l.line).markedSpans;if(K)for(var V=0;V<K.length;++V){var q=K[V];(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=Ft(this,l),C=Ft(this,C);var V=[],q=l.line;return this.iter(l.line,C.line+1,function(Se){var Fe=Se.markedSpans;if(Fe)for(var Ye=0;Ye<Fe.length;Ye++){var Ve=Fe[Ye];!(Ve.to!=null&&q==l.line&&l.ch>=Ve.to||Ve.from==null&&q!=l.line||Ve.from!=null&&q==C.line&&Ve.from>=C.ch)&&(!K||K(Ve.marker))&&V.push(Ve.marker.parent||Ve.marker)}++q}),V},getAllMarks:function(){var l=[];return this.iter(function(C){var K=C.markedSpans;if(K)for(var V=0;V<K.length;++V)K[V].from!=null&&l.push(K[V].marker)}),l},posFromIndex:function(l){var C,K=this.first,V=this.lineSeparator().length;return this.iter(function(q){var Se=q.text.length+V;if(Se>l)return C=l,!0;l-=Se,++K}),Ft(this,dt(K,C))},indexFromPos:function(l){l=Ft(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(V){C+=V.text.length+K}),C},copy:function(l){var C=new ka(Ci(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 V=new ka(Ci(this,C,K),l.mode||this.modeOption,C,this.lineSep,this.direction);return l.sharedHist&&(V.history=this.history),(this.linked||(this.linked=[])).push({doc:V,sharedHist:l.sharedHist}),V.linked=[{doc:this,isParent:!0,sharedHist:l.sharedHist}],lg(V,Pd(this)),V},unlinkDoc:function(l){if(l instanceof bo&&(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),Fd(Pd(this));break}}if(l.history==this.history){var V=[l.id];bi(l,function(q){return V.push(q.id)},!0),l.history=new Js(null),l.history.done=Vs(this.history.done,V),l.history.undone=Vs(this.history.undone,V)}},iterLinkedDocs:function(l){bi(this,l)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(l){return this.lineSep?l.split(this.lineSep):wr(l)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ks(function(l){l!="rtl"&&(l="ltr"),l!=this.direction&&(this.direction=l,this.iter(function(C){return C.order=null}),this.cm&&Us(this.cm))})}),ka.prototype.eachLine=ka.prototype.iter;var of=0;function Bd(l){var C=this;if(hg(C),!(Tt(C,l)||xo(C.display,l))){$t(l),_&&(of=+new Date);var K=gs(C,l,!0),V=l.dataTransfer.files;if(!(!K||C.isReadOnly()))if(V&&V.length&&window.FileReader&&window.File)for(var q=V.length,Se=Array(q),Fe=0,Ye=function(){++Fe==q&&ws(C,function(){K=Ft(C.doc,K);var jt={from:K,to:K,text:C.doc.splitLines(Se.filter(function(Rn){return Rn!=null}).join(C.doc.lineSeparator())),origin:"paste"};Ri(C.doc,jt),A(C.doc,Ro(Ft(C.doc,K),Ft(C.doc,Io(jt))))})()},Ve=function(jt,Rn){if(C.options.allowDropFileTypes&&ce(C.options.allowDropFileTypes,jt.type)==-1){Ye();return}var Ln=new FileReader;Ln.onerror=function(){return Ye()},Ln.onload=function(){var Gn=Ln.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Gn)){Ye();return}Se[Rn]=Gn,Ye()},Ln.readAsText(jt)},ot=0;ot<V.length;ot++)Ve(V[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 Rt=l.dataTransfer.getData("Text");if(Rt){var ht;if(C.state.draggingText&&!C.state.draggingText.copy&&(ht=C.listSelections()),Ie(C.doc,Ro(K,K)),ht)for(var Yt=0;Yt<ht.length;++Yt)nu(C.doc,"",ht[Yt].anchor,ht[Yt].head,"drag");C.replaceSelection(Rt,"around","paste"),C.display.input.focus()}}catch(jt){}}}}function ug(l,C){if(_&&(!l.state.draggingText||+new Date-of<100)){Mn(C);return}if(!(Tt(l,C)||xo(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==",b&&(K.width=K.height=1,l.display.wrapper.appendChild(K),K._top=K.offsetTop),C.dataTransfer.setDragImage(K,0,0),b&&K.parentNode.removeChild(K)}}function cg(l,C){var K=gs(l,C);if(K){var V=document.createDocumentFragment();eo(l,K,V),l.display.dragCursor||(l.display.dragCursor=G("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),l.display.lineSpace.insertBefore(l.display.dragCursor,l.display.cursorDiv)),U(l.display.dragCursor,V)}}function hg(l){l.display.dragCursor&&(l.display.lineSpace.removeChild(l.display.dragCursor),l.display.dragCursor=null)}function fg(l){if(document.getElementsByClassName){for(var C=document.getElementsByClassName("CodeMirror"),K=[],V=0;V<C.length;V++){var q=C[V].CodeMirror;q&&K.push(q)}K.length&&K[0].operation(function(){for(var Se=0;Se<K.length;Se++)l(K[Se])})}}var jd=!1;function jl(){jd||(Rh(),jd=!0)}function Rh(){var l;rt(window,"resize",function(){l==null&&(l=setTimeout(function(){l=null,fg(Ud)},100))}),rt(window,"blur",function(){return fg(Jl)})}function Ud(l){var C=l.display;C.cachedCharWidth=C.cachedTextHeight=C.cachedPaddingH=null,C.scrollbarsClipped=!1,l.setSize()}for(var Gu={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"},sf=0;sf<10;sf++)Gu[sf+48]=Gu[sf+96]=String(sf);for(var Bf=65;Bf<=90;Bf++)Gu[Bf]=String.fromCharCode(Bf);for(var af=1;af<=12;af++)Gu[af+111]=Gu[af+63235]="F"+af;var Cl={};Cl.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"},Cl.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"},Cl.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"},Cl.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"]},Cl.default=I?Cl.macDefault:Cl.pcDefault;function Hd(l){var C=l.split(/-(?!$)/);l=C[C.length-1];for(var K,V,q,Se,Fe=0;Fe<C.length-1;Fe++){var Ye=C[Fe];if(/^(cmd|meta|m)$/i.test(Ye))Se=!0;else if(/^a(lt)?$/i.test(Ye))K=!0;else if(/^(c|ctrl|control)$/i.test(Ye))V=!0;else if(/^s(hift)?$/i.test(Ye))q=!0;else throw new Error("Unrecognized modifier name: "+Ye)}return K&&(l="Alt-"+l),V&&(l="Ctrl-"+l),Se&&(l="Cmd-"+l),q&&(l="Shift-"+l),l}function zd(l){var C={};for(var K in l)if(l.hasOwnProperty(K)){var V=l[K];if(/^(name|fallthrough|(de|at)tach)$/.test(K))continue;if(V=="..."){delete l[K];continue}for(var q=ze(K.split(" "),Hd),Se=0;Se<q.length;Se++){var Fe=void 0,Ye=void 0;Se==q.length-1?(Ye=q.join(" "),Fe=V):(Ye=q.slice(0,Se+1).join(" "),Fe="...");var Ve=C[Ye];if(!Ve)C[Ye]=Fe;else if(Ve!=Fe)throw new Error("Inconsistent bindings for "+Ye)}delete l[K]}for(var ot in C)l[ot]=C[ot];return l}function ru(l,C,K,V){C=Jc(C);var q=C.call?C.call(l,V):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 ru(l,C.fallthrough,K,V);for(var Se=0;Se<C.fallthrough.length;Se++){var Fe=ru(l,C.fallthrough[Se],K,V);if(Fe)return Fe}}}function Ih(l){var C=typeof l=="string"?l:Gu[l.keyCode];return C=="Ctrl"||C=="Alt"||C=="Shift"||C=="Mod"}function Gd(l,C,K){var V=l;return C.altKey&&V!="Alt"&&(l="Alt-"+l),(L?C.metaKey:C.ctrlKey)&&V!="Ctrl"&&(l="Ctrl-"+l),(L?C.ctrlKey:C.metaKey)&&V!="Mod"&&(l="Cmd-"+l),!K&&C.shiftKey&&V!="Shift"&&(l="Shift-"+l),l}function dg(l,C){if(b&&l.keyCode==34&&l.char)return!1;var K=Gu[l.keyCode];return K==null||l.altGraphKey?!1:(l.keyCode==3&&l.code&&(K=l.code),Gd(K,l,C))}function Jc(l){return typeof l=="string"?Cl[l]:l}function Tl(l,C){for(var K=l.doc.sel.ranges,V=[],q=0;q<K.length;q++){for(var Se=C(K[q]);V.length&&on(Se.from,it(V).to)<=0;){var Fe=V.pop();if(on(Fe.from,Se.from)<0){Se.from=Fe.from;break}}V.push(Se)}ho(l,function(){for(var Ye=V.length-1;Ye>=0;Ye--)nu(l.doc,"",V[Ye].from,V[Ye].to,"+delete");Fa(l)})}function Wd(l,C,K){var V=Ae(l.text,C+K,K);return V<0||V>l.text.length?null:V}function Ps(l,C,K){var V=Wd(l,C.ch,K);return V==null?null:new dt(C.line,V,K<0?"after":"before")}function lf(l,C,K,V,q){if(l){C.doc.direction=="rtl"&&(q=-q);var Se=It(K,C.doc.direction);if(Se){var Fe=q<0?it(Se):Se[0],Ye=q<0==(Fe.level==1),Ve=Ye?"after":"before",ot;if(Fe.level>0||C.doc.direction=="rtl"){var Rt=oa(C,K);ot=q<0?K.text.length-1:0;var ht=Gs(C,Rt,ot).top;ot=Be(function(Yt){return Gs(C,Rt,Yt).top==ht},q<0==(Fe.level==1)?Fe.from:Fe.to-1,ot),Ve=="before"&&(ot=Wd(K,ot,1))}else ot=q<0?Fe.to:Fe.from;return new dt(V,ot,Ve)}}return new dt(V,q<0?K.text.length:0,q<0?"before":"after")}function jf(l,C,K,V){var q=It(C,l.doc.direction);if(!q)return Ps(C,K,V);K.ch>=C.text.length?(K.ch=C.text.length,K.sticky="before"):K.ch<=0&&(K.ch=0,K.sticky="after");var Se=Qe(q,K.ch,K.sticky),Fe=q[Se];if(l.doc.direction=="ltr"&&Fe.level%2==0&&(V>0?Fe.to>K.ch:Fe.from<K.ch))return Ps(C,K,V);var Ye=function(rr,kr){return Wd(C,rr instanceof dt?rr.ch:rr,kr)},Ve,ot=function(rr){return l.options.lineWrapping?(Ve=Ve||oa(l,C),ts(l,C,Ve,rr)):{begin:0,end:C.text.length}},Rt=ot(K.sticky=="before"?Ye(K,-1):K.ch);if(l.doc.direction=="rtl"||Fe.level==1){var ht=Fe.level==1==V<0,Yt=Ye(K,ht?1:-1);if(Yt!=null&&(ht?Yt<=Fe.to&&Yt<=Rt.end:Yt>=Fe.from&&Yt>=Rt.begin)){var jt=ht?"before":"after";return new dt(K.line,Yt,jt)}}var Rn=function(rr,kr,mr){for(var Ur=function(ss,ta){return ta?new dt(K.line,Ye(ss,1),"before"):new dt(K.line,ss,"after")};rr>=0&&rr<q.length;rr+=kr){var xi=q[rr],gr=kr>0==(xi.level!=1),no=gr?mr.begin:Ye(mr.end,-1);if(xi.from<=no&&no<xi.to||(no=gr?xi.from:Ye(xi.to,-1),mr.begin<=no&&no<mr.end))return Ur(no,gr)}},Ln=Rn(Se+V,V,Rt);if(Ln)return Ln;var Gn=V>0?Rt.end:Ye(Rt.begin,-1);return Gn!=null&&!(V>0&&Gn==C.text.length)&&(Ln=Rn(V>0?0:q.length-1,V,ot(Gn)),Ln)?Ln:null}var Cc={selectAll:bn,singleSelection:function(l){return l.setSelection(l.getCursor("anchor"),l.getCursor("head"),Ne)},killLine:function(l){return Tl(l,function(C){if(C.empty()){var K=zn(l.doc,C.head.line).text.length;return C.head.ch==K&&C.head.line<l.lastLine()?{from:C.head,to:dt(C.head.line+1,0)}:{from:C.head,to:dt(C.head.line,K)}}else return{from:C.from(),to:C.to()}})},deleteLine:function(l){return Tl(l,function(C){return{from:dt(C.from().line,0),to:Ft(l.doc,dt(C.to().line+1,0))}})},delLineLeft:function(l){return Tl(l,function(C){return{from:dt(C.from().line,0),to:C.from()}})},delWrappedLineLeft:function(l){return Tl(l,function(C){var K=l.charCoords(C.head,"div").top+5,V=l.coordsChar({left:0,top:K},"div");return{from:V,to:C.from()}})},delWrappedLineRight:function(l){return Tl(l,function(C){var K=l.charCoords(C.head,"div").top+5,V=l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:K},"div");return{from:C.from(),to:V}})},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(dt(l.firstLine(),0))},goDocEnd:function(l){return l.extendSelection(dt(l.lastLine()))},goLineStart:function(l){return l.extendSelectionsBy(function(C){return Oh(l,C.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(l){return l.extendSelectionsBy(function(C){return Vd(l,C.head)},{origin:"+move",bias:1})},goLineEnd:function(l){return l.extendSelectionsBy(function(C){return Lh(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")},Me)},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")},Me)},goLineLeftSmart:function(l){return l.extendSelectionsBy(function(C){var K=l.cursorCoords(C.head,"div").top+5,V=l.coordsChar({left:0,top:K},"div");return V.ch<l.getLine(V.line).search(/\S/)?Vd(l,C.head):V},Me)},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(),V=l.options.tabSize,q=0;q<K.length;q++){var Se=K[q].from(),Fe=ne(l.getLine(Se.line),Se.ch,V);C.push(et(V-Fe%V))}l.replaceSelections(C)},defaultTab:function(l){l.somethingSelected()?l.indentSelection("add"):l.execCommand("insertTab")},transposeChars:function(l){return ho(l,function(){for(var C=l.listSelections(),K=[],V=0;V<C.length;V++)if(C[V].empty()){var q=C[V].head,Se=zn(l.doc,q.line).text;if(Se){if(q.ch==Se.length&&(q=new dt(q.line,q.ch-1)),q.ch>0)q=new dt(q.line,q.ch+1),l.replaceRange(Se.charAt(q.ch-1)+Se.charAt(q.ch-2),dt(q.line,q.ch-2),q,"+transpose");else if(q.line>l.doc.first){var Fe=zn(l.doc,q.line-1).text;Fe&&(q=new dt(q.line,1),l.replaceRange(Se.charAt(0)+l.doc.lineSeparator()+Fe.charAt(Fe.length-1),dt(q.line-1,Fe.length-1),q,"+transpose"))}}K.push(new Gr(q,q))}l.setSelections(K)})},newlineAndIndent:function(l){return ho(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 V=0;V<C.length;V++)l.indentLine(C[V].from().line,null,!0);Fa(l)})},openLine:function(l){return l.replaceSelection(`
`,"start")},toggleOverwrite:function(l){return l.toggleOverwrite()}};function Oh(l,C){var K=zn(l.doc,C),V=rn(K);return V!=K&&(C=nt(V)),lf(!0,l,V,C,1)}function Lh(l,C){var K=zn(l.doc,C),V=pn(K);return V!=K&&(C=nt(V)),lf(!0,l,K,C,-1)}function Vd(l,C){var K=Oh(l,C.line),V=zn(l.doc,K.line),q=It(V,l.doc.direction);if(!q||q[0].level==0){var Se=Math.max(K.ch,V.text.search(/\S/)),Fe=C.line==K.line&&C.ch<=Se&&C.ch;return dt(K.line,Fe?0:Se,K.sticky)}return K}function Mh(l,C,K){if(typeof C=="string"&&(C=Cc[C],!C))return!1;l.display.input.ensurePolled();var V=l.display.shift,q=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),K&&(l.display.shift=!1),q=C(l)!=ke}finally{l.display.shift=V,l.state.suppressEdits=!1}return q}function Kd(l,C,K){for(var V=0;V<l.state.keyMaps.length;V++){var q=ru(C,l.state.keyMaps[V],K,l);if(q)return q}return l.options.extraKeys&&ru(C,l.options.extraKeys,K,l)||ru(C,l.options.keyMap,K,l)}var Wu=new ue;function Qc(l,C,K,V){var q=l.state.keySeq;if(q){if(Ih(C))return"handled";if(/\'$/.test(C)?l.state.keySeq=null:Wu.set(50,function(){l.state.keySeq==q&&(l.state.keySeq=null,l.display.input.reset())}),Uf(l,q+" "+C,K,V))return!0}return Uf(l,C,K,V)}function Uf(l,C,K,V){var q=Kd(l,C,V);return q=="multi"&&(l.state.keySeq=C),q=="handled"&&sr(l,"keyHandled",l,C,K),(q=="handled"||q=="multi")&&($t(K),uo(l)),!!q}function Hf(l,C){var K=dg(C,!0);return K?C.shiftKey&&!l.state.keySeq?Qc(l,"Shift-"+K,C,function(V){return Mh(l,V,!0)})||Qc(l,K,C,function(V){if(typeof V=="string"?/^go[A-Z]/.test(V):V.motion)return Mh(l,V)}):Qc(l,K,C,function(V){return Mh(l,V)}):!1}function zf(l,C,K){return Qc(l,"'"+K+"'",C,function(V){return Mh(l,V,!0)})}var qc=null;function Yd(l){var C=this;if(!(l.target&&l.target!=C.display.input.getField())&&(C.curOp.focus=oe(),!Tt(C,l))){_&&u<11&&l.keyCode==27&&(l.returnValue=!1);var K=l.keyCode;C.display.shift=K==16||l.shiftKey;var V=Hf(C,l);b&&(qc=V?K:null,!V&&K==88&&!Fn&&(I?l.metaKey:l.ctrlKey)&&C.replaceSelection("",null,"cut")),B&&!I&&!V&&K==46&&l.shiftKey&&!l.ctrlKey&&document.execCommand&&document.execCommand("cut"),K==18&&!/\bCodeMirror-crosshair\b/.test(C.display.lineDiv.className)&&$d(C)}}function $d(l){var C=l.display.lineDiv;he(C,"CodeMirror-crosshair");function K(V){(V.keyCode==18||!V.altKey)&&(F(C,"CodeMirror-crosshair"),At(document,"keyup",K),At(document,"mouseover",K))}rt(document,"keyup",K),rt(document,"mouseover",K)}function Xd(l){l.keyCode==16&&(this.doc.sel.shift=!1),Tt(this,l)}function Ru(l){var C=this;if(!(l.target&&l.target!=C.display.input.getField())&&!(xo(C.display,l)||Tt(C,l)||l.ctrlKey&&!l.altKey||I&&l.metaKey)){var K=l.keyCode,V=l.charCode;if(b&&K==qc){qc=null,$t(l);return}if(!(b&&(!l.which||l.which<10)&&Hf(C,l))){var q=String.fromCharCode(V==null?K:V);q!="\b"&&(zf(C,l,q)||C.display.input.onKeyPress(l))}}}var pg=400,Zd=function(l,C,K){this.time=l,this.pos=C,this.button=K};Zd.prototype.compare=function(l,C,K){return this.time+pg>l&&on(C,this.pos)==0&&K==this.button};var Dh,eh;function Jd(l,C){var K=+new Date;return eh&&eh.compare(K,l,C)?(Dh=eh=null,"triple"):Dh&&Dh.compare(K,l,C)?(eh=new Zd(K,l,C),Dh=null,"double"):(Dh=new Zd(K,l,C),eh=null,"single")}function Iu(l){var C=this,K=C.display;if(!(Tt(C,l)||K.activeTouch&&K.input.supportsTouch())){if(K.input.ensurePolled(),K.shift=l.shiftKey,xo(K,l)){p||(K.scroller.draggable=!1,setTimeout(function(){return K.scroller.draggable=!0},100));return}if(!Vf(C,l)){var V=gs(C,l),q=Zn(l),Se=V?Jd(V,q):"single";window.focus(),q==1&&C.state.selectingText&&C.state.selectingText(l),!(V&&Qd(C,q,V,Se,l))&&(q==1?V?gg(C,V,Se,l):qn(l)==K.scroller&&$t(l):q==2?(V&&tu(C.doc,V),setTimeout(function(){return K.input.focus()},20)):q==3&&(H?C.display.input.onContextMenu(l):_o(C)))}}}function Qd(l,C,K,V,q){var Se="Click";return V=="double"?Se="Double"+Se:V=="triple"&&(Se="Triple"+Se),Se=(C==1?"Left":C==2?"Middle":"Right")+Se,Qc(l,Gd(Se,q),q,function(Fe){if(typeof Fe=="string"&&(Fe=Cc[Fe]),!Fe)return!1;var Ye=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),Ye=Fe(l,K)!=ke}finally{l.state.suppressEdits=!1}return Ye})}function Gf(l,C,K){var V=l.getOption("configureMouse"),q=V?V(l,C,K):{};if(q.unit==null){var Se=R?K.shiftKey&&K.metaKey:K.altKey;q.unit=Se?"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=I?K.metaKey:K.ctrlKey),q.moveOnDrag==null&&(q.moveOnDrag=!(I?K.altKey:K.ctrlKey)),q}function gg(l,C,K,V){_?setTimeout(pe(po,l),0):l.curOp.focus=oe();var q=Gf(l,K,V),Se=l.doc.sel,Fe;l.options.dragDrop&&Bt&&!l.isReadOnly()&&K=="single"&&(Fe=Se.contains(C))>-1&&(on((Fe=Se.ranges[Fe]).from(),C)<0||C.xRel>0)&&(on(Fe.to(),C)>0||C.xRel<0)?qd(l,V,C,q):dv(l,V,C,q)}function qd(l,C,K,V){var q=l.display,Se=!1,Fe=ws(l,function(ot){p&&(q.scroller.draggable=!1),l.state.draggingText=!1,At(q.wrapper.ownerDocument,"mouseup",Fe),At(q.wrapper.ownerDocument,"mousemove",Ye),At(q.scroller,"dragstart",Ve),At(q.scroller,"drop",Fe),Se||($t(ot),V.addNew||tu(l.doc,K,null,null,V.extend),p&&!v||_&&u==9?setTimeout(function(){q.wrapper.ownerDocument.body.focus({preventScroll:!0}),q.input.focus()},20):q.input.focus())}),Ye=function(ot){Se=Se||Math.abs(C.clientX-ot.clientX)+Math.abs(C.clientY-ot.clientY)>=10},Ve=function(){return Se=!0};p&&(q.scroller.draggable=!0),l.state.draggingText=Fe,Fe.copy=!V.moveOnDrag,q.scroller.dragDrop&&q.scroller.dragDrop(),rt(q.wrapper.ownerDocument,"mouseup",Fe),rt(q.wrapper.ownerDocument,"mousemove",Ye),rt(q.scroller,"dragstart",Ve),rt(q.scroller,"drop",Fe),_o(l),setTimeout(function(){return q.input.focus()},20)}function ep(l,C,K){if(K=="char")return new Gr(C,C);if(K=="word")return l.findWordAt(C);if(K=="line")return new Gr(dt(C.line,0),Ft(l.doc,dt(C.line+1,0)));var V=K(l,C);return new Gr(V.from,V.to)}function dv(l,C,K,V){var q=l.display,Se=l.doc;$t(C);var Fe,Ye,Ve=Se.sel,ot=Ve.ranges;if(V.addNew&&!V.extend?(Ye=Se.sel.contains(K),Ye>-1?Fe=ot[Ye]:Fe=new Gr(K,K)):(Fe=Se.sel.primary(),Ye=Se.sel.primIndex),V.unit=="rectangle")V.addNew||(Fe=new Gr(K,K)),K=gs(l,C,!0,!0),Ye=-1;else{var Rt=ep(l,K,V.unit);V.extend?Fe=Fl(Fe,Rt.anchor,Rt.head,V.extend):Fe=Rt}V.addNew?Ye==-1?(Ye=ot.length,z(Se,qr(l,ot.concat([Fe]),Ye),{scroll:!1,origin:"*mouse"})):ot.length>1&&ot[Ye].empty()&&V.unit=="char"&&!V.extend?(z(Se,qr(l,ot.slice(0,Ye).concat(ot.slice(Ye+1)),0),{scroll:!1,origin:"*mouse"}),Ve=Se.sel):cl(Se,Ye,Fe,De):(Ye=0,z(Se,new pr([Fe],0),De),Ve=Se.sel);var ht=K;function Yt(mr){if(on(ht,mr)!=0)if(ht=mr,V.unit=="rectangle"){for(var Ur=[],xi=l.options.tabSize,gr=ne(zn(Se,K.line).text,K.ch,xi),no=ne(zn(Se,mr.line).text,mr.ch,xi),ss=Math.min(gr,no),ta=Math.max(gr,no),bs=Math.min(K.line,mr.line),dl=Math.min(l.lastLine(),Math.max(K.line,mr.line));bs<=dl;bs++){var Ha=zn(Se,bs).text,Ys=We(Ha,ss,xi);ss==ta?Ur.push(new Gr(dt(bs,Ys),dt(bs,Ys))):Ha.length>Ys&&Ur.push(new Gr(dt(bs,Ys),dt(bs,We(Ha,ta,xi))))}Ur.length||Ur.push(new Gr(K,K)),z(Se,qr(l,Ve.ranges.slice(0,Ye).concat(Ur),Ye),{origin:"*mouse",scroll:!1}),l.scrollIntoView(mr)}else{var _l=Fe,Na=ep(l,mr,V.unit),$s=_l.anchor,So;on(Na.anchor,$s)>0?(So=Na.head,$s=An(_l.from(),Na.anchor)):(So=Na.anchor,$s=we(_l.to(),Na.head));var Es=Ve.ranges.slice(0);Es[Ye]=mg(l,new Gr(Ft(Se,$s),So)),z(Se,qr(l,Es,Ye),De)}}var jt=q.wrapper.getBoundingClientRect(),Rn=0;function Ln(mr){var Ur=++Rn,xi=gs(l,mr,!0,V.unit=="rectangle");if(xi)if(on(xi,ht)!=0){l.curOp.focus=oe(),Yt(xi);var gr=Bi(q,Se);(xi.line>=gr.to||xi.line<gr.from)&&setTimeout(ws(l,function(){Rn==Ur&&Ln(mr)}),150)}else{var no=mr.clientY<jt.top?-20:mr.clientY>jt.bottom?20:0;no&&setTimeout(ws(l,function(){Rn==Ur&&(q.scroller.scrollTop+=no,Ln(mr))}),50)}}function Gn(mr){l.state.selectingText=!1,Rn=1/0,mr&&($t(mr),q.input.focus()),At(q.wrapper.ownerDocument,"mousemove",rr),At(q.wrapper.ownerDocument,"mouseup",kr),Se.history.lastSelOrigin=null}var rr=ws(l,function(mr){mr.buttons===0||!Zn(mr)?Gn(mr):Ln(mr)}),kr=ws(l,Gn);l.state.selectingText=kr,rt(q.wrapper.ownerDocument,"mousemove",rr),rt(q.wrapper.ownerDocument,"mouseup",kr)}function mg(l,C){var K=C.anchor,V=C.head,q=zn(l.doc,K.line);if(on(K,V)==0&&K.sticky==V.sticky)return C;var Se=It(q);if(!Se)return C;var Fe=Qe(Se,K.ch,K.sticky),Ye=Se[Fe];if(Ye.from!=K.ch&&Ye.to!=K.ch)return C;var Ve=Fe+(Ye.from==K.ch==(Ye.level!=1)?0:1);if(Ve==0||Ve==Se.length)return C;var ot;if(V.line!=K.line)ot=(V.line-K.line)*(l.doc.direction=="ltr"?1:-1)>0;else{var Rt=Qe(Se,V.ch,V.sticky),ht=Rt-Fe||(V.ch-K.ch)*(Ye.level==1?-1:1);Rt==Ve-1||Rt==Ve?ot=ht<0:ot=ht>0}var Yt=Se[Ve+(ot?-1:0)],jt=ot==(Yt.level==1),Rn=jt?Yt.from:Yt.to,Ln=jt?"after":"before";return K.ch==Rn&&K.sticky==Ln?C:new Gr(new dt(K.line,Rn,Ln),V)}function Wf(l,C,K,V){var q,Se;if(C.touches)q=C.touches[0].clientX,Se=C.touches[0].clientY;else try{q=C.clientX,Se=C.clientY}catch(Yt){return!1}if(q>=Math.floor(l.display.gutters.getBoundingClientRect().right))return!1;V&&$t(C);var Fe=l.display,Ye=Fe.lineDiv.getBoundingClientRect();if(Se>Ye.bottom||!Ot(l,K))return Et(C);Se-=Ye.top-Fe.viewOffset;for(var Ve=0;Ve<l.display.gutterSpecs.length;++Ve){var ot=Fe.gutters.childNodes[Ve];if(ot&&ot.getBoundingClientRect().right>=q){var Rt=vt(l.doc,Se),ht=l.display.gutterSpecs[Ve];return bt(l,K,l,Rt,ht.className,C),Et(C)}}}function Vf(l,C){return Wf(l,C,"gutterClick",!0)}function Kf(l,C){xo(l.display,C)||vg(l,C)||Tt(l,C,"contextmenu")||H||l.display.input.onContextMenu(C)}function vg(l,C){return Ot(l,"gutterContextMenu")?Wf(l,C,"gutterContextMenu",!1):!1}function Yf(l){l.display.wrapper.className=l.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+l.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Dl(l)}var Tc={toString:function(){return"CodeMirror.Init"}},tp={},uf={};function yg(l){var C=l.optionHandlers;function K(V,q,Se,Fe){l.defaults[V]=q,Se&&(C[V]=Fe?function(Ye,Ve,ot){ot!=Tc&&Se(Ye,Ve,ot)}:Se)}l.defineOption=K,l.Init=Tc,K("value","",function(V,q){return V.setValue(q)},!0),K("mode",null,function(V,q){V.doc.modeOption=q,Br(V)},!0),K("indentUnit",2,Br,!0),K("indentWithTabs",!1),K("smartIndent",!0),K("tabSize",4,function(V){ua(V),Dl(V),$i(V)},!0),K("lineSeparator",null,function(V,q){if(V.doc.lineSep=q,!!q){var Se=[],Fe=V.doc.first;V.doc.iter(function(Ve){for(var ot=0;;){var Rt=Ve.text.indexOf(q,ot);if(Rt==-1)break;ot=Rt+q.length,Se.push(dt(Fe,Rt))}Fe++});for(var Ye=Se.length-1;Ye>=0;Ye--)nu(V.doc,q,Se[Ye],dt(Se[Ye].line,Se[Ye].ch+q.length))}}),K("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(V,q,Se){V.state.specialChars=new RegExp(q.source+(q.test(" ")?"":"| "),"g"),Se!=Tc&&V.refresh()}),K("specialCharPlaceholder",ai,function(V){return V.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(V,q){return V.getInputField().spellcheck=q},!0),K("autocorrect",!1,function(V,q){return V.getInputField().autocorrect=q},!0),K("autocapitalize",!1,function(V,q){return V.getInputField().autocapitalize=q},!0),K("rtlMoveVisually",!N),K("wholeLineUpdateBefore",!0),K("theme","default",function(V){Yf(V),Lt(V)},!0),K("keyMap","default",function(V,q,Se){var Fe=Jc(q),Ye=Se!=Tc&&Jc(Se);Ye&&Ye.detach&&Ye.detach(V,Fe),Fe.attach&&Fe.attach(V,Ye||null)}),K("extraKeys",null),K("configureMouse",null),K("lineWrapping",!1,bg,!0),K("gutters",[],function(V,q){V.display.gutterSpecs=Ht(q,V.options.lineNumbers),Lt(V)},!0),K("fixedGutter",!0,function(V,q){V.display.gutters.style.left=q?Zl(V.display)+"px":"0",V.refresh()},!0),K("coverGutterNextToScrollbar",!1,function(V){return vs(V)},!0),K("scrollbarStyle","native",function(V){Ta(V),vs(V),V.display.scrollbars.setScrollTop(V.doc.scrollTop),V.display.scrollbars.setScrollLeft(V.doc.scrollLeft)},!0),K("lineNumbers",!1,function(V,q){V.display.gutterSpecs=Ht(V.options.gutters,q),Lt(V)},!0),K("firstLineNumber",1,Lt,!0),K("lineNumberFormatter",function(V){return V},Lt,!0),K("showCursorWhenSelecting",!1,rs,!0),K("resetSelectionOnContextMenu",!0),K("lineWiseCopyCut",!0),K("pasteLinesPerSelection",!0),K("selectionsMayTouch",!1),K("readOnly",!1,function(V,q){q=="nocursor"&&(Jl(V),V.display.input.blur()),V.display.input.readOnlyChanged(q)}),K("screenReaderLabel",null,function(V,q){q=q===""?null:q,V.display.input.screenReaderLabelChanged(q)}),K("disableInput",!1,function(V,q){q||V.display.input.reset()},!0),K("dragDrop",!0,$f),K("allowDropFileTypes",null),K("cursorBlinkRate",530),K("cursorScrollMargin",0),K("cursorHeight",1,rs,!0),K("singleCursorHeightPerLine",!0,rs,!0),K("workTime",100),K("workDelay",100),K("flattenSpans",!0,ua,!0),K("addModeClass",!1,ua,!0),K("pollInterval",100),K("undoDepth",200,function(V,q){return V.doc.history.undoDepth=q}),K("historyEventDelay",1250),K("viewportMargin",10,function(V){return V.refresh()},!0),K("maxHighlightLength",1e4,ua,!0),K("moveInputWithCursor",!0,function(V,q){q||V.display.input.resetPosition()}),K("tabindex",null,function(V,q){return V.display.input.getField().tabIndex=q||""}),K("autofocus",null),K("direction","ltr",function(V,q){return V.doc.setDirection(q)},!0),K("phrases",null)}function $f(l,C,K){var V=K&&K!=Tc;if(!C!=!V){var q=l.display.dragFunctions,Se=C?rt:At;Se(l.display.scroller,"dragstart",q.start),Se(l.display.scroller,"dragenter",q.enter),Se(l.display.scroller,"dragover",q.over),Se(l.display.scroller,"dragleave",q.leave),Se(l.display.scroller,"drop",q.drop)}}function bg(l){l.options.lineWrapping?(he(l.display.wrapper,"CodeMirror-wrap"),l.display.sizer.style.minWidth="",l.display.sizerWidth=null):(F(l.display.wrapper,"CodeMirror-wrap"),Cr(l)),Fr(l),$i(l),Dl(l),setTimeout(function(){return vs(l)},100)}function bo(l,C){var K=this;if(!(this instanceof bo))return new bo(l,C);this.options=C=C?_e(C):{},_e(tp,C,!1);var V=C.value;typeof V=="string"?V=new ka(V,C.mode,null,C.lineSeparator,C.direction):C.mode&&(V.modeOption=C.mode),this.doc=V;var q=new bo.inputStyles[C.inputStyle](this),Se=this.display=new sn(l,V,q,C);Se.wrapper.CodeMirror=this,Yf(this),C.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ta(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 ue,keySeq:null,specialChars:null},C.autofocus&&!T&&Se.input.focus(),_&&u<11&&setTimeout(function(){return K.display.input.reset(!0)},20),Ph(this),jl(),aa(this),this.curOp.forceUpdate=!0,ao(this,V),C.autofocus&&!T||this.hasFocus()?setTimeout(function(){K.hasFocus()&&!K.state.focused&&Ai(K)},20):Jl(this);for(var Fe in uf)uf.hasOwnProperty(Fe)&&uf[Fe](this,C[Fe],Tc);yt(this),C.finishInit&&C.finishInit(this);for(var Ye=0;Ye<th.length;++Ye)th[Ye](this);$a(this),p&&C.lineWrapping&&getComputedStyle(Se.lineDiv).textRendering=="optimizelegibility"&&(Se.lineDiv.style.textRendering="auto")}bo.defaults=tp,bo.optionHandlers=uf;function Ph(l){var C=l.display;rt(C.scroller,"mousedown",ws(l,Iu)),_&&u<11?rt(C.scroller,"dblclick",ws(l,function(Ve){if(!Tt(l,Ve)){var ot=gs(l,Ve);if(!(!ot||Vf(l,Ve)||xo(l.display,Ve))){$t(Ve);var Rt=l.findWordAt(ot);tu(l.doc,Rt.anchor,Rt.head)}}})):rt(C.scroller,"dblclick",function(Ve){return Tt(l,Ve)||$t(Ve)}),rt(C.scroller,"contextmenu",function(Ve){return Kf(l,Ve)}),rt(C.input.getField(),"contextmenu",function(Ve){C.scroller.contains(Ve.target)||Kf(l,Ve)});var K,V={end:0};function q(){C.activeTouch&&(K=setTimeout(function(){return C.activeTouch=null},1e3),V=C.activeTouch,V.end=+new Date)}function Se(Ve){if(Ve.touches.length!=1)return!1;var ot=Ve.touches[0];return ot.radiusX<=1&&ot.radiusY<=1}function Fe(Ve,ot){if(ot.left==null)return!0;var Rt=ot.left-Ve.left,ht=ot.top-Ve.top;return Rt*Rt+ht*ht>20*20}rt(C.scroller,"touchstart",function(Ve){if(!Tt(l,Ve)&&!Se(Ve)&&!Vf(l,Ve)){C.input.ensurePolled(),clearTimeout(K);var ot=+new Date;C.activeTouch={start:ot,moved:!1,prev:ot-V.end<=300?V:null},Ve.touches.length==1&&(C.activeTouch.left=Ve.touches[0].pageX,C.activeTouch.top=Ve.touches[0].pageY)}}),rt(C.scroller,"touchmove",function(){C.activeTouch&&(C.activeTouch.moved=!0)}),rt(C.scroller,"touchend",function(Ve){var ot=C.activeTouch;if(ot&&!xo(C,Ve)&&ot.left!=null&&!ot.moved&&new Date-ot.start<300){var Rt=l.coordsChar(C.activeTouch,"page"),ht;!ot.prev||Fe(ot,ot.prev)?ht=new Gr(Rt,Rt):!ot.prev.prev||Fe(ot,ot.prev.prev)?ht=l.findWordAt(Rt):ht=new Gr(dt(Rt.line,0),Ft(l.doc,dt(Rt.line+1,0))),l.setSelection(ht.anchor,ht.head),l.focus(),$t(Ve)}q()}),rt(C.scroller,"touchcancel",q),rt(C.scroller,"scroll",function(){C.scroller.clientHeight&&(ja(l,C.scroller.scrollTop),Ya(l,C.scroller.scrollLeft,!0),bt(l,"scroll",l))}),rt(C.scroller,"mousewheel",function(Ve){return Ni(l,Ve)}),rt(C.scroller,"DOMMouseScroll",function(Ve){return Ni(l,Ve)}),rt(C.wrapper,"scroll",function(){return C.wrapper.scrollTop=C.wrapper.scrollLeft=0}),C.dragFunctions={enter:function(Ve){Tt(l,Ve)||Mn(Ve)},over:function(Ve){Tt(l,Ve)||(cg(l,Ve),Mn(Ve))},start:function(Ve){return ug(l,Ve)},drop:ws(l,Bd),leave:function(Ve){Tt(l,Ve)||hg(l)}};var Ye=C.input.getField();rt(Ye,"keyup",function(Ve){return Xd.call(l,Ve)}),rt(Ye,"keydown",ws(l,Yd)),rt(Ye,"keypress",ws(l,Ru)),rt(Ye,"focus",function(Ve){return Ai(l,Ve)}),rt(Ye,"blur",function(Ve){return Jl(l,Ve)})}var th=[];bo.defineInitHook=function(l){return th.push(l)};function ea(l,C,K,V){var q=l.doc,Se;K==null&&(K="add"),K=="smart"&&(q.mode.indent?Se=Li(l,C).state:K="prev");var Fe=l.options.tabSize,Ye=zn(q,C),Ve=ne(Ye.text,null,Fe);Ye.stateAfter&&(Ye.stateAfter=null);var ot=Ye.text.match(/^\s*/)[0],Rt;if(!V&&!/\S/.test(Ye.text))Rt=0,K="not";else if(K=="smart"&&(Rt=q.mode.indent(Se,Ye.text.slice(ot.length),Ye.text),Rt==ke||Rt>150)){if(!V)return;K="prev"}K=="prev"?C>q.first?Rt=ne(zn(q,C-1).text,null,Fe):Rt=0:K=="add"?Rt=Ve+l.options.indentUnit:K=="subtract"?Rt=Ve-l.options.indentUnit:typeof K=="number"&&(Rt=Ve+K),Rt=Math.max(0,Rt);var ht="",Yt=0;if(l.options.indentWithTabs)for(var jt=Math.floor(Rt/Fe);jt;--jt)Yt+=Fe,ht+=" ";if(Yt<Rt&&(ht+=et(Rt-Yt)),ht!=ot)return nu(q,ht,dt(C,0),dt(C,ot.length),"+input"),Ye.stateAfter=null,!0;for(var Rn=0;Rn<q.sel.ranges.length;Rn++){var Ln=q.sel.ranges[Rn];if(Ln.head.line==C&&Ln.head.ch<ot.length){var Gn=dt(C,ot.length);cl(q,Rn,new Gr(Gn,Gn));break}}}var fl=null;function nh(l){fl=l}function cf(l,C,K,V,q){var Se=l.doc;l.display.shift=!1,V||(V=Se.sel);var Fe=+new Date-200,Ye=q=="paste"||l.state.pasteIncoming>Fe,Ve=wr(C),ot=null;if(Ye&&V.ranges.length>1)if(fl&&fl.text.join(`
`)==C){if(V.ranges.length%fl.text.length==0){ot=[];for(var Rt=0;Rt<fl.text.length;Rt++)ot.push(Se.splitLines(fl.text[Rt]))}}else Ve.length==V.ranges.length&&l.options.pasteLinesPerSelection&&(ot=ze(Ve,function(rr){return[rr]}));for(var ht=l.curOp.updateInput,Yt=V.ranges.length-1;Yt>=0;Yt--){var jt=V.ranges[Yt],Rn=jt.from(),Ln=jt.to();jt.empty()&&(K&&K>0?Rn=dt(Rn.line,Rn.ch-K):l.state.overwrite&&!Ye?Ln=dt(Ln.line,Math.min(zn(Se,Ln.line).text.length,Ln.ch+it(Ve).length)):Ye&&fl&&fl.lineWise&&fl.text.join(`
`)==Ve.join(`
`)&&(Rn=Ln=dt(Rn.line,0)));var Gn={from:Rn,to:Ln,text:ot?ot[Yt%ot.length]:Ve,origin:q||(Ye?"paste":l.state.cutIncoming>Fe?"cut":"+input")};Ri(l.doc,Gn),sr(l,"inputRead",l,Gn)}C&&!Ye&&rp(l,C),Fa(l),l.curOp.updateInput<2&&(l.curOp.updateInput=ht),l.curOp.typing=!0,l.state.pasteIncoming=l.state.cutIncoming=-1}function np(l,C){var K=l.clipboardData&&l.clipboardData.getData("Text");if(K)return l.preventDefault(),!C.isReadOnly()&&!C.options.disableInput&&ho(C,function(){return cf(C,K,0,null,"paste")}),!0}function rp(l,C){if(!(!l.options.electricChars||!l.options.smartIndent))for(var K=l.doc.sel,V=K.ranges.length-1;V>=0;V--){var q=K.ranges[V];if(!(q.head.ch>100||V&&K.ranges[V-1].head.line==q.head.line)){var Se=l.getModeAt(q.head),Fe=!1;if(Se.electricChars){for(var Ye=0;Ye<Se.electricChars.length;Ye++)if(C.indexOf(Se.electricChars.charAt(Ye))>-1){Fe=ea(l,q.head.line,"smart");break}}else Se.electricInput&&Se.electricInput.test(zn(l.doc,q.head.line).text.slice(0,q.head.ch))&&(Fe=ea(l,q.head.line,"smart"));Fe&&sr(l,"electricInput",l,q.head.line)}}}function ip(l){for(var C=[],K=[],V=0;V<l.doc.sel.ranges.length;V++){var q=l.doc.sel.ranges[V].head.line,Se={anchor:dt(q,0),head:dt(q+1,0)};K.push(Se),C.push(l.getRange(Se.anchor,Se.head))}return{text:C,ranges:K}}function op(l,C,K,V){l.setAttribute("autocorrect",K?"":"off"),l.setAttribute("autocapitalize",V?"":"off"),l.setAttribute("spellcheck",!!C)}function sp(){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 p?l.style.width="1000px":l.setAttribute("wrap","off"),g&&(l.style.border="1px solid black"),op(l),C}function _c(l){var C=l.optionHandlers,K=l.helpers={};l.prototype={constructor:l,focus:function(){window.focus(),this.display.input.focus()},setOption:function(V,q){var Se=this.options,Fe=Se[V];Se[V]==q&&V!="mode"||(Se[V]=q,C.hasOwnProperty(V)&&ws(this,C[V])(this,q,Fe),bt(this,"optionChange",this,V))},getOption:function(V){return this.options[V]},getDoc:function(){return this.doc},addKeyMap:function(V,q){this.state.keyMaps[q?"push":"unshift"](Jc(V))},removeKeyMap:function(V){for(var q=this.state.keyMaps,Se=0;Se<q.length;++Se)if(q[Se]==V||q[Se].name==V)return q.splice(Se,1),!0},addOverlay:Ms(function(V,q){var Se=V.token?V:l.getMode(this.options,V);if(Se.startState)throw new Error("Overlays may not be stateful.");xe(this.state.overlays,{mode:Se,modeSpec:V,opaque:q&&q.opaque,priority:q&&q.priority||0},function(Fe){return Fe.priority}),this.state.modeGen++,$i(this)}),removeOverlay:Ms(function(V){for(var q=this.state.overlays,Se=0;Se<q.length;++Se){var Fe=q[Se].modeSpec;if(Fe==V||typeof V=="string"&&Fe.name==V){q.splice(Se,1),this.state.modeGen++,$i(this);return}}}),indentLine:Ms(function(V,q,Se){typeof q!="string"&&typeof q!="number"&&(q==null?q=this.options.smartIndent?"smart":"prev":q=q?"add":"subtract"),hn(this.doc,V)&&ea(this,V,q,Se)}),indentSelection:Ms(function(V){for(var q=this.doc.sel.ranges,Se=-1,Fe=0;Fe<q.length;Fe++){var Ye=q[Fe];if(Ye.empty())Ye.head.line>Se&&(ea(this,Ye.head.line,V,!0),Se=Ye.head.line,Fe==this.doc.sel.primIndex&&Fa(this));else{var Ve=Ye.from(),ot=Ye.to(),Rt=Math.max(Se,Ve.line);Se=Math.min(this.lastLine(),ot.line-(ot.ch?0:1))+1;for(var ht=Rt;ht<Se;++ht)ea(this,ht,V);var Yt=this.doc.sel.ranges;Ve.ch==0&&q.length==Yt.length&&Yt[Fe].from().ch>0&&cl(this.doc,Fe,new Gr(Ve,Yt[Fe].to()),Ne)}}}),getTokenAt:function(V,q){return Di(this,V,q)},getLineTokens:function(V,q){return Di(this,dt(V),q,!0)},getTokenTypeAt:function(V){V=Ft(this.doc,V);var q=fr(this,zn(this.doc,V.line)),Se=0,Fe=(q.length-1)/2,Ye=V.ch,Ve;if(Ye==0)Ve=q[2];else for(;;){var ot=Se+Fe>>1;if((ot?q[ot*2-1]:0)>=Ye)Fe=ot;else if(q[ot*2+1]<Ye)Se=ot+1;else{Ve=q[ot*2+2];break}}var Rt=Ve?Ve.indexOf("overlay "):-1;return Rt<0?Ve:Rt==0?null:Ve.slice(0,Rt-1)},getModeAt:function(V){var q=this.doc.mode;return q.innerMode?l.innerMode(q,this.getTokenAt(V).state).mode:q},getHelper:function(V,q){return this.getHelpers(V,q)[0]},getHelpers:function(V,q){var Se=[];if(!K.hasOwnProperty(q))return Se;var Fe=K[q],Ye=this.getModeAt(V);if(typeof Ye[q]=="string")Fe[Ye[q]]&&Se.push(Fe[Ye[q]]);else if(Ye[q])for(var Ve=0;Ve<Ye[q].length;Ve++){var ot=Fe[Ye[q][Ve]];ot&&Se.push(ot)}else Ye.helperType&&Fe[Ye.helperType]?Se.push(Fe[Ye.helperType]):Fe[Ye.name]&&Se.push(Fe[Ye.name]);for(var Rt=0;Rt<Fe._global.length;Rt++){var ht=Fe._global[Rt];ht.pred(Ye,this)&&ce(Se,ht.val)==-1&&Se.push(ht.val)}return Se},getStateAfter:function(V,q){var Se=this.doc;return V=Nn(Se,V==null?Se.first+Se.size-1:V),Li(this,V+1,q).state},cursorCoords:function(V,q){var Se,Fe=this.doc.sel.primary();return V==null?Se=Fe.head:typeof V=="object"?Se=Ft(this.doc,V):Se=V?Fe.from():Fe.to(),so(this,Se,q||"page")},charCoords:function(V,q){return Os(this,Ft(this.doc,V),q||"page")},coordsChar:function(V,q){return V=Sl(this,V,q||"page"),Yo(this,V.left,V.top)},lineAtHeight:function(V,q){return V=Sl(this,{top:V,left:0},q||"page").top,vt(this.doc,V+this.display.viewOffset)},heightAtLine:function(V,q,Se){var Fe=!1,Ye;if(typeof V=="number"){var Ve=this.doc.first+this.doc.size-1;V<this.doc.first?V=this.doc.first:V>Ve&&(V=Ve,Fe=!0),Ye=zn(this.doc,V)}else Ye=V;return us(this,Ye,{top:0,left:0},q||"page",Se||Fe).top+(Fe?this.doc.height-_r(Ye):0)},defaultTextHeight:function(){return ns(this.display)},defaultCharWidth:function(){return sa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(V,q,Se,Fe,Ye){var Ve=this.display;V=so(this,Ft(this.doc,V));var ot=V.bottom,Rt=V.left;if(q.style.position="absolute",q.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(q),Ve.sizer.appendChild(q),Fe=="over")ot=V.top;else if(Fe=="above"||Fe=="near"){var ht=Math.max(Ve.wrapper.clientHeight,this.doc.height),Yt=Math.max(Ve.sizer.clientWidth,Ve.lineSpace.clientWidth);(Fe=="above"||V.bottom+q.offsetHeight>ht)&&V.top>q.offsetHeight?ot=V.top-q.offsetHeight:V.bottom+q.offsetHeight<=ht&&(ot=V.bottom),Rt+q.offsetWidth>Yt&&(Rt=Yt-q.offsetWidth)}q.style.top=ot+"px",q.style.left=q.style.right="",Ye=="right"?(Rt=Ve.sizer.clientWidth-q.offsetWidth,q.style.right="0px"):(Ye=="left"?Rt=0:Ye=="middle"&&(Rt=(Ve.sizer.clientWidth-q.offsetWidth)/2),q.style.left=Rt+"px"),Se&&al(this,{left:Rt,top:ot,right:Rt+q.offsetWidth,bottom:ot+q.offsetHeight})},triggerOnKeyDown:Ms(Yd),triggerOnKeyPress:Ms(Ru),triggerOnKeyUp:Xd,triggerOnMouseDown:Ms(Iu),execCommand:function(V){if(Cc.hasOwnProperty(V))return Cc[V].call(null,this)},triggerElectric:Ms(function(V){rp(this,V)}),findPosH:function(V,q,Se,Fe){var Ye=1;q<0&&(Ye=-1,q=-q);for(var Ve=Ft(this.doc,V),ot=0;ot<q&&(Ve=hf(this.doc,Ve,Ye,Se,Fe),!Ve.hitSide);++ot);return Ve},moveH:Ms(function(V,q){var Se=this;this.extendSelectionsBy(function(Fe){return Se.display.shift||Se.doc.extend||Fe.empty()?hf(Se.doc,Fe.head,V,q,Se.options.rtlMoveVisually):V<0?Fe.from():Fe.to()},Me)}),deleteH:Ms(function(V,q){var Se=this.doc.sel,Fe=this.doc;Se.somethingSelected()?Fe.replaceSelection("",null,"+delete"):Tl(this,function(Ye){var Ve=hf(Fe,Ye.head,V,q,!1);return V<0?{from:Ve,to:Ye.head}:{from:Ye.head,to:Ve}})}),findPosV:function(V,q,Se,Fe){var Ye=1,Ve=Fe;q<0&&(Ye=-1,q=-q);for(var ot=Ft(this.doc,V),Rt=0;Rt<q;++Rt){var ht=so(this,ot,"div");if(Ve==null?Ve=ht.left:ht.left=Ve,ot=Ac(this,ht,Ye,Se),ot.hitSide)break}return ot},moveV:Ms(function(V,q){var Se=this,Fe=this.doc,Ye=[],Ve=!this.display.shift&&!Fe.extend&&Fe.sel.somethingSelected();if(Fe.extendSelectionsBy(function(Rt){if(Ve)return V<0?Rt.from():Rt.to();var ht=so(Se,Rt.head,"div");Rt.goalColumn!=null&&(ht.left=Rt.goalColumn),Ye.push(ht.left);var Yt=Ac(Se,ht,V,q);return q=="page"&&Rt==Fe.sel.primary()&&Nu(Se,Os(Se,Yt,"div").top-ht.top),Yt},Me),Ye.length)for(var ot=0;ot<Fe.sel.ranges.length;ot++)Fe.sel.ranges[ot].goalColumn=Ye[ot]}),findWordAt:function(V){var q=this.doc,Se=zn(q,V.line).text,Fe=V.ch,Ye=V.ch;if(Se){var Ve=this.getHelper(V,"wordChars");(V.sticky=="before"||Ye==Se.length)&&Fe?--Fe:++Ye;for(var ot=Se.charAt(Fe),Rt=Ce(ot,Ve)?function(ht){return Ce(ht,Ve)}:/\s/.test(ot)?function(ht){return/\s/.test(ht)}:function(ht){return!/\s/.test(ht)&&!Ce(ht)};Fe>0&&Rt(Se.charAt(Fe-1));)--Fe;for(;Ye<Se.length&&Rt(Se.charAt(Ye));)++Ye}return new Gr(dt(V.line,Fe),dt(V.line,Ye))},toggleOverwrite:function(V){V!=null&&V==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?he(this.display.cursorDiv,"CodeMirror-overwrite"):F(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==oe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ms(function(V,q){Ba(this,V,q)}),getScrollInfo:function(){var V=this.display.scroller;return{left:V.scrollLeft,top:V.scrollTop,height:V.scrollHeight-io(this)-this.display.barHeight,width:V.scrollWidth-io(this)-this.display.barWidth,clientHeight:Hs(this),clientWidth:ds(this)}},scrollIntoView:Ms(function(V,q){V==null?(V={from:this.doc.sel.primary().head,to:null},q==null&&(q=this.options.cursorScrollMargin)):typeof V=="number"?V={from:dt(V,0),to:null}:V.from==null&&(V={from:V,to:null}),V.to||(V.to=V.from),V.margin=q||0,V.from.line!=null?Hi(this,V):Ql(this,V.from,V.to,V.margin)}),setSize:Ms(function(V,q){var Se=this,Fe=function(Ve){return typeof Ve=="number"||/^\d+$/.test(String(Ve))?Ve+"px":Ve};V!=null&&(this.display.wrapper.style.width=Fe(V)),q!=null&&(this.display.wrapper.style.height=Fe(q)),this.options.lineWrapping&&bl(this);var Ye=this.display.viewFrom;this.doc.iter(Ye,this.display.viewTo,function(Ve){if(Ve.widgets){for(var ot=0;ot<Ve.widgets.length;ot++)if(Ve.widgets[ot].noHScroll){yi(Se,Ye,"widget");break}}++Ye}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(V){return ho(this,V)},startOperation:function(){return aa(this)},endOperation:function(){return $a(this)},refresh:Ms(function(){var V=this.display.cachedTextHeight;$i(this),this.curOp.forceUpdate=!0,Dl(this),Ba(this,this.doc.scrollLeft,this.doc.scrollTop),Je(this.display),(V==null||Math.abs(V-ns(this.display))>.5||this.options.lineWrapping)&&Fr(this),bt(this,"refresh",this)}),swapDoc:Ms(function(V){var q=this.doc;return q.cm=null,this.state.selectingText&&this.state.selectingText(),ao(this,V),Dl(this),this.display.input.reset(),Ba(this,V.scrollLeft,V.scrollTop),this.curOp.forceScroll=!0,sr(this,"swapDoc",this,q),q}),phrase:function(V){var q=this.options.phrases;return q&&Object.prototype.hasOwnProperty.call(q,V)?q[V]:V},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},$e(l),l.registerHelper=function(V,q,Se){K.hasOwnProperty(V)||(K[V]=l[V]={_global:[]}),K[V][q]=Se},l.registerGlobalHelper=function(V,q,Se,Fe){l.registerHelper(V,q,Fe),K[V]._global.push({pred:Se,val:Fe})}}function hf(l,C,K,V,q){var Se=C,Fe=K,Ye=zn(l,C.line),Ve=q&&l.direction=="rtl"?-K:K;function ot(){var kr=C.line+Ve;return kr<l.first||kr>=l.first+l.size?!1:(C=new dt(kr,C.ch,C.sticky),Ye=zn(l,kr))}function Rt(kr){var mr;if(V=="codepoint"){var Ur=Ye.text.charCodeAt(C.ch+(V>0?0:-1));isNaN(Ur)?mr=null:mr=new dt(C.line,Math.max(0,Math.min(Ye.text.length,C.ch+K*(Ur>=55296&&Ur<56320?2:1))),-K)}else q?mr=jf(l.cm,Ye,C,K):mr=Ps(Ye,C,K);if(mr==null)if(!kr&&ot())C=lf(q,l.cm,Ye,C.line,Ve);else return!1;else C=mr;return!0}if(V=="char"||V=="codepoint")Rt();else if(V=="column")Rt(!0);else if(V=="word"||V=="group")for(var ht=null,Yt=V=="group",jt=l.cm&&l.cm.getHelper(C,"wordChars"),Rn=!0;!(K<0&&!Rt(!Rn));Rn=!1){var Ln=Ye.text.charAt(C.ch)||`
`,Gn=Ce(Ln,jt)?"w":Yt&&Ln==`
`?"n":!Yt||/\s/.test(Ln)?null:"p";if(Yt&&!Rn&&!Gn&&(Gn="s"),ht&&ht!=Gn){K<0&&(K=1,Rt(),C.sticky="after");break}if(Gn&&(ht=Gn),K>0&&!Rt(!Rn))break}var rr=Vr(l,C,Se,Fe,!0);return kn(Se,rr)&&(rr.hitSide=!0),rr}function Ac(l,C,K,V){var q=l.doc,Se=C.left,Fe;if(V=="page"){var Ye=Math.min(l.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ve=Math.max(Ye-.5*ns(l.display),3);Fe=(K>0?C.bottom:C.top)+K*Ve}else V=="line"&&(Fe=K>0?C.bottom+3:C.top-3);for(var ot;ot=Yo(l,Se,Fe),!!ot.outside;){if(K<0?Fe<=0:Fe>=q.height){ot.hitSide=!0;break}Fe+=K*5}return ot}var zo=function(l){this.cm=l,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zo.prototype.init=function(l){var C=this,K=this,V=K.cm,q=K.div=l.lineDiv;op(q,V.options.spellcheck,V.options.autocorrect,V.options.autocapitalize);function Se(Ye){for(var Ve=Ye.target;Ve;Ve=Ve.parentNode){if(Ve==q)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ve.className))break}return!1}rt(q,"paste",function(Ye){!Se(Ye)||Tt(V,Ye)||np(Ye,V)||u<=11&&setTimeout(ws(V,function(){return C.updateFromDOM()}),20)}),rt(q,"compositionstart",function(Ye){C.composing={data:Ye.data,done:!1}}),rt(q,"compositionupdate",function(Ye){C.composing||(C.composing={data:Ye.data,done:!1})}),rt(q,"compositionend",function(Ye){C.composing&&(Ye.data!=C.composing.data&&C.readFromDOMSoon(),C.composing.done=!0)}),rt(q,"touchstart",function(){return K.forceCompositionEnd()}),rt(q,"input",function(){C.composing||C.readFromDOMSoon()});function Fe(Ye){if(!(!Se(Ye)||Tt(V,Ye))){if(V.somethingSelected())nh({lineWise:!1,text:V.getSelections()}),Ye.type=="cut"&&V.replaceSelection("",null,"cut");else if(V.options.lineWiseCopyCut){var Ve=ip(V);nh({lineWise:!0,text:Ve.text}),Ye.type=="cut"&&V.operation(function(){V.setSelections(Ve.ranges,0,Ne),V.replaceSelection("",null,"cut")})}else return;if(Ye.clipboardData){Ye.clipboardData.clearData();var ot=fl.text.join(`
`);if(Ye.clipboardData.setData("Text",ot),Ye.clipboardData.getData("Text")==ot){Ye.preventDefault();return}}var Rt=sp(),ht=Rt.firstChild;V.display.lineSpace.insertBefore(Rt,V.display.lineSpace.firstChild),ht.value=fl.text.join(`
`);var Yt=document.activeElement;be(ht),setTimeout(function(){V.display.lineSpace.removeChild(Rt),Yt.focus(),Yt==q&&K.showPrimarySelection()},50)}}rt(q,"copy",Fe),rt(q,"cut",Fe)},zo.prototype.screenReaderLabelChanged=function(l){l?this.div.setAttribute("aria-label",l):this.div.removeAttribute("aria-label")},zo.prototype.prepareSelection=function(){var l=xl(this.cm,!1);return l.focus=document.activeElement==this.div,l},zo.prototype.showSelection=function(l,C){!l||!this.cm.display.view.length||((l.focus||C)&&this.showPrimarySelection(),this.showMultipleSelections(l))},zo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zo.prototype.showPrimarySelection=function(){var l=this.getSelection(),C=this.cm,K=C.doc.sel.primary(),V=K.from(),q=K.to();if(C.display.viewTo==C.display.viewFrom||V.line>=C.display.viewTo||q.line<C.display.viewFrom){l.removeAllRanges();return}var Se=ff(C,l.anchorNode,l.anchorOffset),Fe=ff(C,l.focusNode,l.focusOffset);if(!(Se&&!Se.bad&&Fe&&!Fe.bad&&on(An(Se,Fe),V)==0&&on(we(Se,Fe),q)==0)){var Ye=C.display.view,Ve=V.line>=C.display.viewFrom&&Xf(C,V)||{node:Ye[0].measure.map[2],offset:0},ot=q.line<C.display.viewTo&&Xf(C,q);if(!ot){var Rt=Ye[Ye.length-1].measure,ht=Rt.maps?Rt.maps[Rt.maps.length-1]:Rt.map;ot={node:ht[ht.length-1],offset:ht[ht.length-2]-ht[ht.length-3]}}if(!Ve||!ot){l.removeAllRanges();return}var Yt=l.rangeCount&&l.getRangeAt(0),jt;try{jt=ee(Ve.node,Ve.offset,ot.offset,ot.node)}catch(Rn){}jt&&(!B&&C.state.focused?(l.collapse(Ve.node,Ve.offset),jt.collapsed||(l.removeAllRanges(),l.addRange(jt))):(l.removeAllRanges(),l.addRange(jt)),Yt&&l.anchorNode==null?l.addRange(Yt):B&&this.startGracePeriod()),this.rememberSelection()}},zo.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)},zo.prototype.showMultipleSelections=function(l){U(this.cm.display.cursorDiv,l.cursors),U(this.cm.display.selectionDiv,l.selection)},zo.prototype.rememberSelection=function(){var l=this.getSelection();this.lastAnchorNode=l.anchorNode,this.lastAnchorOffset=l.anchorOffset,this.lastFocusNode=l.focusNode,this.lastFocusOffset=l.focusOffset},zo.prototype.selectionInEditor=function(){var l=this.getSelection();if(!l.rangeCount)return!1;var C=l.getRangeAt(0).commonAncestorContainer;return ae(this.div,C)},zo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zo.prototype.blur=function(){this.div.blur()},zo.prototype.getField=function(){return this.div},zo.prototype.supportsTouch=function(){return!0},zo.prototype.receivedFocus=function(){var l=this;this.selectionInEditor()?this.pollSelection():ho(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)},zo.prototype.selectionChanged=function(){var l=this.getSelection();return l.anchorNode!=this.lastAnchorNode||l.anchorOffset!=this.lastAnchorOffset||l.focusNode!=this.lastFocusNode||l.focusOffset!=this.lastFocusOffset},zo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var l=this.getSelection(),C=this.cm;if(x&&m&&this.cm.display.gutterSpecs.length&&ap(l.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var K=ff(C,l.anchorNode,l.anchorOffset),V=ff(C,l.focusNode,l.focusOffset);K&&V&&ho(C,function(){z(C.doc,Ro(K,V),Ne),(K.bad||V.bad)&&(C.curOp.selectionChanged=!0)})}}},zo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var l=this.cm,C=l.display,K=l.doc.sel.primary(),V=K.from(),q=K.to();if(V.ch==0&&V.line>l.firstLine()&&(V=dt(V.line-1,zn(l.doc,V.line-1).length)),q.ch==zn(l.doc,q.line).text.length&&q.line<l.lastLine()&&(q=dt(q.line+1,0)),V.line<C.viewFrom||q.line>C.viewTo-1)return!1;var Se,Fe,Ye;V.line==C.viewFrom||(Se=Bs(l,V.line))==0?(Fe=nt(C.view[0].line),Ye=C.view[0].node):(Fe=nt(C.view[Se].line),Ye=C.view[Se-1].node.nextSibling);var Ve=Bs(l,q.line),ot,Rt;if(Ve==C.view.length-1?(ot=C.viewTo-1,Rt=C.lineDiv.lastChild):(ot=nt(C.view[Ve+1].line)-1,Rt=C.view[Ve+1].node.previousSibling),!Ye)return!1;for(var ht=l.doc.splitLines(Bh(l,Ye,Rt,Fe,ot)),Yt=Mr(l.doc,dt(Fe,0),dt(ot,zn(l.doc,ot).text.length));ht.length>1&&Yt.length>1;)if(it(ht)==it(Yt))ht.pop(),Yt.pop(),ot--;else if(ht[0]==Yt[0])ht.shift(),Yt.shift(),Fe++;else break;for(var jt=0,Rn=0,Ln=ht[0],Gn=Yt[0],rr=Math.min(Ln.length,Gn.length);jt<rr&&Ln.charCodeAt(jt)==Gn.charCodeAt(jt);)++jt;for(var kr=it(ht),mr=it(Yt),Ur=Math.min(kr.length-(ht.length==1?jt:0),mr.length-(Yt.length==1?jt:0));Rn<Ur&&kr.charCodeAt(kr.length-Rn-1)==mr.charCodeAt(mr.length-Rn-1);)++Rn;if(ht.length==1&&Yt.length==1&&Fe==V.line)for(;jt&&jt>V.ch&&kr.charCodeAt(kr.length-Rn-1)==mr.charCodeAt(mr.length-Rn-1);)jt--,Rn++;ht[ht.length-1]=kr.slice(0,kr.length-Rn).replace(/^\u200b+/,""),ht[0]=ht[0].slice(jt).replace(/\u200b+$/,"");var xi=dt(Fe,jt),gr=dt(ot,Yt.length?it(Yt).length-Rn:0);if(ht.length>1||ht[0]||on(xi,gr))return nu(l.doc,ht,xi,gr,"+input"),!0},zo.prototype.ensurePolled=function(){this.forceCompositionEnd()},zo.prototype.reset=function(){this.forceCompositionEnd()},zo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zo.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))},zo.prototype.updateFromDOM=function(){var l=this;(this.cm.isReadOnly()||!this.pollContent())&&ho(this.cm,function(){return $i(l.cm)})},zo.prototype.setUneditable=function(l){l.contentEditable="false"},zo.prototype.onKeyPress=function(l){l.charCode==0||this.composing||(l.preventDefault(),this.cm.isReadOnly()||ws(this.cm,cf)(this.cm,String.fromCharCode(l.charCode==null?l.keyCode:l.charCode),0))},zo.prototype.readOnlyChanged=function(l){this.div.contentEditable=String(l!="nocursor")},zo.prototype.onContextMenu=function(){},zo.prototype.resetPosition=function(){},zo.prototype.needsContentAttribute=!0;function Xf(l,C){var K=zs(l,C.line);if(!K||K.hidden)return null;var V=zn(l.doc,C.line),q=Lo(K,V,C.line),Se=It(V,l.doc.direction),Fe="left";if(Se){var Ye=Qe(Se,C.ch);Fe=Ye%2?"right":"left"}var Ve=du(q.map,C.ch,Fe);return Ve.offset=Ve.collapse=="right"?Ve.end:Ve.start,Ve}function ap(l){for(var C=l;C;C=C.parentNode)if(/CodeMirror-gutter-wrapper/.test(C.className))return!0;return!1}function Fh(l,C){return C&&(l.bad=!0),l}function Bh(l,C,K,V,q){var Se="",Fe=!1,Ye=l.doc.lineSeparator(),Ve=!1;function ot(jt){return function(Rn){return Rn.id==jt}}function Rt(){Fe&&(Se+=Ye,Ve&&(Se+=Ye),Fe=Ve=!1)}function ht(jt){jt&&(Rt(),Se+=jt)}function Yt(jt){if(jt.nodeType==1){var Rn=jt.getAttribute("cm-text");if(Rn){ht(Rn);return}var Ln=jt.getAttribute("cm-marker"),Gn;if(Ln){var rr=l.findMarks(dt(V,0),dt(q+1,0),ot(+Ln));rr.length&&(Gn=rr[0].find(0))&&ht(Mr(l.doc,Gn.from,Gn.to).join(Ye));return}if(jt.getAttribute("contenteditable")=="false")return;var kr=/^(pre|div|p|li|table|br)$/i.test(jt.nodeName);if(!/^br$/i.test(jt.nodeName)&&jt.textContent.length==0)return;kr&&Rt();for(var mr=0;mr<jt.childNodes.length;mr++)Yt(jt.childNodes[mr]);/^(pre|p)$/i.test(jt.nodeName)&&(Ve=!0),kr&&(Fe=!0)}else jt.nodeType==3&&ht(jt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Yt(C),C!=K;)C=C.nextSibling,Ve=!1;return Se}function ff(l,C,K){var V;if(C==l.display.lineDiv){if(V=l.display.lineDiv.childNodes[K],!V)return Fh(l.clipPos(dt(l.display.viewTo-1)),!0);C=null,K=0}else for(V=C;;V=V.parentNode){if(!V||V==l.display.lineDiv)return null;if(V.parentNode&&V.parentNode==l.display.lineDiv)break}for(var q=0;q<l.display.view.length;q++){var Se=l.display.view[q];if(Se.node==V)return Sg(Se,C,K)}}function Sg(l,C,K){var V=l.text.firstChild,q=!1;if(!C||!ae(V,C))return Fh(dt(nt(l.line),0),!0);if(C==V&&(q=!0,C=V.childNodes[K],K=0,!C)){var Se=l.rest?it(l.rest):l.line;return Fh(dt(nt(Se),Se.text.length),q)}var Fe=C.nodeType==3?C:null,Ye=C;for(!Fe&&C.childNodes.length==1&&C.firstChild.nodeType==3&&(Fe=C.firstChild,K&&(K=Fe.nodeValue.length));Ye.parentNode!=V;)Ye=Ye.parentNode;var Ve=l.measure,ot=Ve.maps;function Rt(Gn,rr,kr){for(var mr=-1;mr<(ot?ot.length:0);mr++)for(var Ur=mr<0?Ve.map:ot[mr],xi=0;xi<Ur.length;xi+=3){var gr=Ur[xi+2];if(gr==Gn||gr==rr){var no=nt(mr<0?l.line:l.rest[mr]),ss=Ur[xi]+kr;return(kr<0||gr!=Gn)&&(ss=Ur[xi+(kr?1:0)]),dt(no,ss)}}}var ht=Rt(Fe,Ye,K);if(ht)return Fh(ht,q);for(var Yt=Ye.nextSibling,jt=Fe?Fe.nodeValue.length-K:0;Yt;Yt=Yt.nextSibling){if(ht=Rt(Yt,Yt.firstChild,0),ht)return Fh(dt(ht.line,ht.ch-jt),q);jt+=Yt.textContent.length}for(var Rn=Ye.previousSibling,Ln=K;Rn;Rn=Rn.previousSibling){if(ht=Rt(Rn,Rn.firstChild,-1),ht)return Fh(dt(ht.line,ht.ch+Ln),q);Ln+=Rn.textContent.length}}var Ks=function(l){this.cm=l,this.prevInput="",this.pollingFast=!1,this.polling=new ue,this.hasSelection=!1,this.composing=null};Ks.prototype.init=function(l){var C=this,K=this,V=this.cm;this.createField(l);var q=this.textarea;l.wrapper.insertBefore(this.wrapper,l.wrapper.firstChild),g&&(q.style.width="0px"),rt(q,"input",function(){_&&u>=9&&C.hasSelection&&(C.hasSelection=null),K.poll()}),rt(q,"paste",function(Fe){Tt(V,Fe)||np(Fe,V)||(V.state.pasteIncoming=+new Date,K.fastPoll())});function Se(Fe){if(!Tt(V,Fe)){if(V.somethingSelected())nh({lineWise:!1,text:V.getSelections()});else if(V.options.lineWiseCopyCut){var Ye=ip(V);nh({lineWise:!0,text:Ye.text}),Fe.type=="cut"?V.setSelections(Ye.ranges,null,Ne):(K.prevInput="",q.value=Ye.text.join(`
`),be(q))}else return;Fe.type=="cut"&&(V.state.cutIncoming=+new Date)}}rt(q,"cut",Se),rt(q,"copy",Se),rt(l.scroller,"paste",function(Fe){if(!(xo(l,Fe)||Tt(V,Fe))){if(!q.dispatchEvent){V.state.pasteIncoming=+new Date,K.focus();return}var Ye=new Event("paste");Ye.clipboardData=Fe.clipboardData,q.dispatchEvent(Ye)}}),rt(l.lineSpace,"selectstart",function(Fe){xo(l,Fe)||$t(Fe)}),rt(q,"compositionstart",function(){var Fe=V.getCursor("from");K.composing&&K.composing.range.clear(),K.composing={start:Fe,range:V.markText(Fe,V.getCursor("to"),{className:"CodeMirror-composing"})}}),rt(q,"compositionend",function(){K.composing&&(K.poll(),K.composing.range.clear(),K.composing=null)})},Ks.prototype.createField=function(l){this.wrapper=sp(),this.textarea=this.wrapper.firstChild},Ks.prototype.screenReaderLabelChanged=function(l){l?this.textarea.setAttribute("aria-label",l):this.textarea.removeAttribute("aria-label")},Ks.prototype.prepareSelection=function(){var l=this.cm,C=l.display,K=l.doc,V=xl(l);if(l.options.moveInputWithCursor){var q=so(l,K.sel.primary().head,"div"),Se=C.wrapper.getBoundingClientRect(),Fe=C.lineDiv.getBoundingClientRect();V.teTop=Math.max(0,Math.min(C.wrapper.clientHeight-10,q.top+Fe.top-Se.top)),V.teLeft=Math.max(0,Math.min(C.wrapper.clientWidth-10,q.left+Fe.left-Se.left))}return V},Ks.prototype.showSelection=function(l){var C=this.cm,K=C.display;U(K.cursorDiv,l.cursors),U(K.selectionDiv,l.selection),l.teTop!=null&&(this.wrapper.style.top=l.teTop+"px",this.wrapper.style.left=l.teLeft+"px")},Ks.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&&be(this.textarea),_&&u>=9&&(this.hasSelection=K)}else l||(this.prevInput=this.textarea.value="",_&&u>=9&&(this.hasSelection=null))}},Ks.prototype.getField=function(){return this.textarea},Ks.prototype.supportsTouch=function(){return!1},Ks.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!T||oe()!=this.textarea))try{this.textarea.focus()}catch(l){}},Ks.prototype.blur=function(){this.textarea.blur()},Ks.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ks.prototype.receivedFocus=function(){this.slowPoll()},Ks.prototype.slowPoll=function(){var l=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){l.poll(),l.cm.state.focused&&l.slowPoll()})},Ks.prototype.fastPoll=function(){var l=!1,C=this;C.pollingFast=!0;function K(){var V=C.poll();!V&&!l?(l=!0,C.polling.set(60,K)):(C.pollingFast=!1,C.slowPoll())}C.polling.set(20,K)},Ks.prototype.poll=function(){var l=this,C=this.cm,K=this.textarea,V=this.prevInput;if(this.contextMenuPending||!C.state.focused||ye(K)&&!V&&!this.composing||C.isReadOnly()||C.options.disableInput||C.state.keySeq)return!1;var q=K.value;if(q==V&&!C.somethingSelected())return!1;if(_&&u>=9&&this.hasSelection===q||I&&/[\uf700-\uf7ff]/.test(q))return C.display.input.reset(),!1;if(C.doc.sel==C.display.selForContextMenu){var Se=q.charCodeAt(0);if(Se==8203&&!V&&(V="\u200B"),Se==8666)return this.reset(),this.cm.execCommand("undo")}for(var Fe=0,Ye=Math.min(V.length,q.length);Fe<Ye&&V.charCodeAt(Fe)==q.charCodeAt(Fe);)++Fe;return ho(C,function(){cf(C,q.slice(Fe),V.length-Fe,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},Ks.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ks.prototype.onKeyPress=function(){_&&u>=9&&(this.hasSelection=null),this.fastPoll()},Ks.prototype.onContextMenu=function(l){var C=this,K=C.cm,V=K.display,q=C.textarea;C.contextMenuPending&&C.contextMenuPending();var Se=gs(K,l),Fe=V.scroller.scrollTop;if(!Se||b)return;var Ye=K.options.resetSelectionOnContextMenu;Ye&&K.doc.sel.contains(Se)==-1&&ws(K,z)(K.doc,Ro(Se),Ne);var Ve=q.style.cssText,ot=C.wrapper.style.cssText,Rt=C.wrapper.offsetParent.getBoundingClientRect();C.wrapper.style.cssText="position: static",q.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(l.clientY-Rt.top-5)+"px; left: "+(l.clientX-Rt.left-5)+`px;
z-index: 1000; background: `+(_?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ht;p&&(ht=window.scrollY),V.input.focus(),p&&window.scrollTo(null,ht),V.input.reset(),K.somethingSelected()||(q.value=C.prevInput=" "),C.contextMenuPending=jt,V.selForContextMenu=K.doc.sel,clearTimeout(V.detectingSelectAll);function Yt(){if(q.selectionStart!=null){var Ln=K.somethingSelected(),Gn="\u200B"+(Ln?q.value:"");q.value="\u21DA",q.value=Gn,C.prevInput=Ln?"":"\u200B",q.selectionStart=1,q.selectionEnd=Gn.length,V.selForContextMenu=K.doc.sel}}function jt(){if(C.contextMenuPending==jt&&(C.contextMenuPending=!1,C.wrapper.style.cssText=ot,q.style.cssText=Ve,_&&u<9&&V.scrollbars.setScrollTop(V.scroller.scrollTop=Fe),q.selectionStart!=null)){(!_||_&&u<9)&&Yt();var Ln=0,Gn=function(){V.selForContextMenu==K.doc.sel&&q.selectionStart==0&&q.selectionEnd>0&&C.prevInput=="\u200B"?ws(K,bn)(K):Ln++<10?V.detectingSelectAll=setTimeout(Gn,500):(V.selForContextMenu=null,V.input.reset())};V.detectingSelectAll=setTimeout(Gn,200)}}if(_&&u>=9&&Yt(),H){Mn(l);var Rn=function(){At(window,"mouseup",Rn),setTimeout(jt,20)};rt(window,"mouseup",Rn)}else setTimeout(jt,50)},Ks.prototype.readOnlyChanged=function(l){l||this.reset(),this.textarea.disabled=l=="nocursor",this.textarea.readOnly=!!l},Ks.prototype.setUneditable=function(){},Ks.prototype.needsContentAttribute=!1;function xg(l,C){if(C=C?_e(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=oe();C.autofocus=K==l||l.getAttribute("autofocus")!=null&&K==document.body}function V(){l.value=Ye.getValue()}var q;if(l.form&&(rt(l.form,"submit",V),!C.leaveSubmitMethodAlone)){var Se=l.form;q=Se.submit;try{var Fe=Se.submit=function(){V(),Se.submit=q,Se.submit(),Se.submit=Fe}}catch(Ve){}}C.finishInit=function(Ve){Ve.save=V,Ve.getTextArea=function(){return l},Ve.toTextArea=function(){Ve.toTextArea=isNaN,V(),l.parentNode.removeChild(Ve.getWrapperElement()),l.style.display="",l.form&&(At(l.form,"submit",V),!C.leaveSubmitMethodAlone&&typeof l.form.submit=="function"&&(l.form.submit=q))}},l.style.display="none";var Ye=bo(function(Ve){return l.parentNode.insertBefore(Ve,l.nextSibling)},C);return Ye}function jh(l){l.off=At,l.on=rt,l.wheelEventPixels=hi,l.Doc=ka,l.splitLines=wr,l.countColumn=ne,l.findColumn=We,l.isWordChar=me,l.Pass=ke,l.signal=bt,l.Line=Zi,l.changeEnd=Io,l.scrollbarModel=Ca,l.Pos=dt,l.cmpPos=on,l.modes=Ir,l.mimeModes=Wr,l.resolveMode=Kr,l.getMode=oi,l.modeExtensions=Kn,l.extendMode=Dn,l.copyState=li,l.startState=Yr,l.innerMode=Nr,l.commands=Cc,l.keyMap=Cl,l.keyName=dg,l.isModifierKey=Ih,l.lookupKey=ru,l.normalizeKeyMap=zd,l.StringStream=mn,l.SharedTextMarker=zu,l.TextMarker=xt,l.LineWidget=sc,l.e_preventDefault=$t,l.e_stopPropagation=gn,l.e_stop=Mn,l.addClass=he,l.contains=ae,l.rmClass=F,l.keyNames=Gu}yg(bo),_c(bo);var ac="iter insert remove copy getEditor constructor".split(" ");for(var df in ka.prototype)ka.prototype.hasOwnProperty(df)&&ce(ac,df)<0&&(bo.prototype[df]=function(l){return function(){return l.apply(this.doc,arguments)}}(ka.prototype[df]));return $e(ka),bo.inputStyles={textarea:Ks,contenteditable:zo},bo.defineMode=function(l){!bo.defaults.mode&&l!="null"&&(bo.defaults.mode=l),cr.apply(this,arguments)},bo.defineMIME=ro,bo.defineMode("null",function(){return{token:function(l){return l.skipToEnd()}}}),bo.defineMIME("text/plain","null"),bo.defineExtension=function(l,C){bo.prototype[l]=C},bo.defineDocExtension=function(l,C){ka.prototype[l]=C},bo.fromTextArea=xg,jh(bo),bo.version="5.58.2",bo})},25419:function(Oe,J,S){(function(B){B(S(89780),S(15525),S(98101))})(function(B){"use strict";B.defineMode("markdown",function(Y,s){var w=B.getMode(Y,"text/html"),_=w.name=="null";function u(ne){if(B.findModeByName){var ue=B.findModeByName(ne);ue&&(ne=ue.mime||ue.mimes[0])}var ce=B.getMode(Y,ne);return ce.name=="null"?null:ce}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 p={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 y in p)p.hasOwnProperty(y)&&s.tokenTypeOverrides[y]&&(p[y]=s.tokenTypeOverrides[y]);var m=/^([*\-_])(?:\s*\1){2,}\s*$/,b=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,c=s.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,g=/^[^#!\[\]*_\\<>` "'(~:]+/,x=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,T=/^\s*\[[^\]]+?\]:.*$/,I=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,R=" ";function N(ne,ue,ce){return ue.f=ue.inline=ce,ce(ne,ue)}function k(ne,ue,ce){return ue.f=ue.block=ce,ce(ne,ue)}function L(ne){return!ne||!/\S/.test(ne.string)}function H(ne){if(ne.linkTitle=!1,ne.linkHref=!1,ne.linkText=!1,ne.em=!1,ne.strong=!1,ne.strikethrough=!1,ne.quote=0,ne.indentedCode=!1,ne.f==F){var ue=_;if(!ue){var ce=B.innerMode(w,ne.htmlState);ue=ce.mode.name=="xml"&&ce.state.tagStart===null&&!ce.state.context&&ce.state.tokenize.isInText}ue&&(ne.f=Q,ne.block=M,ne.htmlState=null)}return ne.trailingSpace=0,ne.trailingSpaceNewLine=!1,ne.prevLine=ne.thisLine,ne.thisLine={stream:null},null}function M(ne,ue){var ce=ne.column()===ue.indentation,Re=L(ue.prevLine.stream),ke=ue.indentedCode,Ne=ue.prevLine.hr,De=ue.list!==!1,Me=(ue.listStack[ue.listStack.length-1]||0)+3;ue.indentedCode=!1;var We=ue.indentation;if(ue.indentationDiff===null&&(ue.indentationDiff=ue.indentation,De)){for(ue.list=null;We<ue.listStack[ue.listStack.length-1];)ue.listStack.pop(),ue.listStack.length?ue.indentation=ue.listStack[ue.listStack.length-1]:ue.list=!1;ue.list!==!1&&(ue.indentationDiff=We-ue.listStack[ue.listStack.length-1])}var je=!Re&&!Ne&&!ue.prevLine.header&&(!De||!ke)&&!ue.prevLine.fencedCodeEnd,et=(ue.list===!1||Ne||Re)&&ue.indentation<=Me&&ne.match(m),it=null;if(ue.indentationDiff>=4&&(ke||ue.prevLine.fencedCodeEnd||ue.prevLine.header||Re))return ne.skipToEnd(),ue.indentedCode=!0,p.code;if(ne.eatSpace())return null;if(ce&&ue.indentation<=Me&&(it=ne.match(c))&&it[1].length<=6)return ue.quote=0,ue.header=it[1].length,ue.thisLine.header=!0,s.highlightFormatting&&(ue.formatting="header"),ue.f=ue.inline,U(ue);if(ue.indentation<=Me&&ne.eat(">"))return ue.quote=ce?1:ue.quote+1,s.highlightFormatting&&(ue.formatting="quote"),ne.eatSpace(),U(ue);if(!et&&!ue.setext&&ce&&ue.indentation<=Me&&(it=ne.match(b))){var ze=it[1]?"ol":"ul";return ue.indentation=We+ne.current().length,ue.list=!0,ue.quote=0,ue.listStack.push(ue.indentation),ue.em=!1,ue.strong=!1,ue.code=!1,ue.strikethrough=!1,s.taskLists&&ne.match(v,!1)&&(ue.taskList=!0),ue.f=ue.inline,s.highlightFormatting&&(ue.formatting=["list","list-"+ze]),U(ue)}else{if(ce&&ue.indentation<=Me&&(it=ne.match(x,!0)))return ue.quote=0,ue.fencedEndRE=new RegExp(it[1]+"+ *$"),ue.localMode=s.fencedCodeBlockHighlighting&&u(it[2]||s.fencedCodeBlockDefaultMode),ue.localMode&&(ue.localState=B.startState(ue.localMode)),ue.f=ue.block=P,s.highlightFormatting&&(ue.formatting="code-block"),ue.code=-1,U(ue);if(ue.setext||(!je||!De)&&!ue.quote&&ue.list===!1&&!ue.code&&!et&&!T.test(ne.string)&&(it=ne.lookAhead(1))&&(it=it.match(h)))return ue.setext?(ue.header=ue.setext,ue.setext=0,ne.skipToEnd(),s.highlightFormatting&&(ue.formatting="header")):(ue.header=it[0].charAt(0)=="="?1:2,ue.setext=ue.header),ue.thisLine.header=!0,ue.f=ue.inline,U(ue);if(et)return ne.skipToEnd(),ue.hr=!0,ue.thisLine.hr=!0,p.hr;if(ne.peek()==="[")return N(ne,ue,le)}return N(ne,ue,ue.inline)}function F(ne,ue){var ce=w.token(ne,ue.htmlState);if(!_){var Re=B.innerMode(w,ue.htmlState);(Re.mode.name=="xml"&&Re.state.tagStart===null&&!Re.state.context&&Re.state.tokenize.isInText||ue.md_inside&&ne.current().indexOf(">")>-1)&&(ue.f=Q,ue.block=M,ue.htmlState=null)}return ce}function P(ne,ue){var ce=ue.listStack[ue.listStack.length-1]||0,Re=ue.indentation<ce,ke=ce+3;if(ue.fencedEndRE&&ue.indentation<=ke&&(Re||ne.match(ue.fencedEndRE))){s.highlightFormatting&&(ue.formatting="code-block");var Ne;return Re||(Ne=U(ue)),ue.localMode=ue.localState=null,ue.block=M,ue.f=Q,ue.fencedEndRE=null,ue.code=0,ue.thisLine.fencedCodeEnd=!0,Re?k(ne,ue,ue.block):Ne}else return ue.localMode?ue.localMode.token(ne,ue.localState):(ne.skipToEnd(),p.code)}function U(ne){var ue=[];if(ne.formatting){ue.push(p.formatting),typeof ne.formatting=="string"&&(ne.formatting=[ne.formatting]);for(var ce=0;ce<ne.formatting.length;ce++)ue.push(p.formatting+"-"+ne.formatting[ce]),ne.formatting[ce]==="header"&&ue.push(p.formatting+"-"+ne.formatting[ce]+"-"+ne.header),ne.formatting[ce]==="quote"&&(!s.maxBlockquoteDepth||s.maxBlockquoteDepth>=ne.quote?ue.push(p.formatting+"-"+ne.formatting[ce]+"-"+ne.quote):ue.push("error"))}if(ne.taskOpen)return ue.push("meta"),ue.length?ue.join(" "):null;if(ne.taskClosed)return ue.push("property"),ue.length?ue.join(" "):null;if(ne.linkHref?ue.push(p.linkHref,"url"):(ne.strong&&ue.push(p.strong),ne.em&&ue.push(p.em),ne.strikethrough&&ue.push(p.strikethrough),ne.emoji&&ue.push(p.emoji),ne.linkText&&ue.push(p.linkText),ne.code&&ue.push(p.code),ne.image&&ue.push(p.image),ne.imageAltText&&ue.push(p.imageAltText,"link"),ne.imageMarker&&ue.push(p.imageMarker)),ne.header&&ue.push(p.header,p.header+"-"+ne.header),ne.quote&&(ue.push(p.quote),!s.maxBlockquoteDepth||s.maxBlockquoteDepth>=ne.quote?ue.push(p.quote+"-"+ne.quote):ue.push(p.quote+"-"+s.maxBlockquoteDepth)),ne.list!==!1){var Re=(ne.listStack.length-1)%3;Re?Re===1?ue.push(p.list2):ue.push(p.list3):ue.push(p.list1)}return ne.trailingSpaceNewLine?ue.push("trailing-space-new-line"):ne.trailingSpace&&ue.push("trailing-space-"+(ne.trailingSpace%2?"a":"b")),ue.length?ue.join(" "):null}function G(ne,ue){if(ne.match(g,!0))return U(ue)}function Q(ne,ue){var ce=ue.text(ne,ue);if(typeof ce!="undefined")return ce;if(ue.list)return ue.list=null,U(ue);if(ue.taskList){var Re=ne.match(v,!0)[1]===" ";return Re?ue.taskOpen=!0:ue.taskClosed=!0,s.highlightFormatting&&(ue.formatting="task"),ue.taskList=!1,U(ue)}if(ue.taskOpen=!1,ue.taskClosed=!1,ue.header&&ne.match(/^#+$/,!0))return s.highlightFormatting&&(ue.formatting="header"),U(ue);var ke=ne.next();if(ue.linkTitle){ue.linkTitle=!1;var Ne=ke;ke==="("&&(Ne=")"),Ne=(Ne+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var De="^\\s*(?:[^"+Ne+"\\\\]+|\\\\\\\\|\\\\.)"+Ne;if(ne.match(new RegExp(De),!0))return p.linkHref}if(ke==="`"){var Me=ue.formatting;s.highlightFormatting&&(ue.formatting="code"),ne.eatWhile("`");var We=ne.current().length;if(ue.code==0&&(!ue.quote||We==1))return ue.code=We,U(ue);if(We==ue.code){var je=U(ue);return ue.code=0,je}else return ue.formatting=Me,U(ue)}else if(ue.code)return U(ue);if(ke==="\\"&&(ne.next(),s.highlightFormatting)){var et=U(ue),it=p.formatting+"-escape";return et?et+" "+it:it}if(ke==="!"&&ne.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ue.imageMarker=!0,ue.image=!0,s.highlightFormatting&&(ue.formatting="image"),U(ue);if(ke==="["&&ue.imageMarker&&ne.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ue.imageMarker=!1,ue.imageAltText=!0,s.highlightFormatting&&(ue.formatting="image"),U(ue);if(ke==="]"&&ue.imageAltText){s.highlightFormatting&&(ue.formatting="image");var et=U(ue);return ue.imageAltText=!1,ue.image=!1,ue.inline=ue.f=ae,et}if(ke==="["&&!ue.image)return ue.linkText&&ne.match(/^.*?\]/)||(ue.linkText=!0,s.highlightFormatting&&(ue.formatting="link")),U(ue);if(ke==="]"&&ue.linkText){s.highlightFormatting&&(ue.formatting="link");var et=U(ue);return ue.linkText=!1,ue.inline=ue.f=ne.match(/\(.*?\)| ?\[.*?\]/,!1)?ae:Q,et}if(ke==="<"&&ne.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ue.f=ue.inline=ee,s.highlightFormatting&&(ue.formatting="link");var et=U(ue);return et?et+=" ":et="",et+p.linkInline}if(ke==="<"&&ne.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ue.f=ue.inline=ee,s.highlightFormatting&&(ue.formatting="link");var et=U(ue);return et?et+=" ":et="",et+p.linkEmail}if(s.xml&&ke==="<"&&ne.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ze=ne.string.indexOf(">",ne.pos);if(ze!=-1){var xe=ne.string.substring(ne.start,ze);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(xe)&&(ue.md_inside=!0)}return ne.backUp(1),ue.htmlState=B.startState(w),k(ne,ue,F)}if(s.xml&&ke==="<"&&ne.match(/^\/\w*?>/))return ue.md_inside=!1,"tag";if(ke==="*"||ke==="_"){for(var fe=1,W=ne.pos==1?" ":ne.string.charAt(ne.pos-2);fe<3&&ne.eat(ke);)fe++;var Z=ne.peek()||" ",me=!/\s/.test(Z)&&(!I.test(Z)||/\s/.test(W)||I.test(W)),Ce=!/\s/.test(W)&&(!I.test(W)||/\s/.test(Z)||I.test(Z)),re=null,ie=null;if(fe%2&&(!ue.em&&me&&(ke==="*"||!Ce||I.test(W))?re=!0:ue.em==ke&&Ce&&(ke==="*"||!me||I.test(Z))&&(re=!1)),fe>1&&(!ue.strong&&me&&(ke==="*"||!Ce||I.test(W))?ie=!0:ue.strong==ke&&Ce&&(ke==="*"||!me||I.test(Z))&&(ie=!1)),ie!=null||re!=null){s.highlightFormatting&&(ue.formatting=re==null?"strong":ie==null?"em":"strong em"),re===!0&&(ue.em=ke),ie===!0&&(ue.strong=ke);var je=U(ue);return re===!1&&(ue.em=!1),ie===!1&&(ue.strong=!1),je}}else if(ke===" "&&(ne.eat("*")||ne.eat("_"))){if(ne.peek()===" ")return U(ue);ne.backUp(1)}if(s.strikethrough){if(ke==="~"&&ne.eatWhile(ke)){if(ue.strikethrough){s.highlightFormatting&&(ue.formatting="strikethrough");var je=U(ue);return ue.strikethrough=!1,je}else if(ne.match(/^[^\s]/,!1))return ue.strikethrough=!0,s.highlightFormatting&&(ue.formatting="strikethrough"),U(ue)}else if(ke===" "&&ne.match(/^~~/,!0)){if(ne.peek()===" ")return U(ue);ne.backUp(2)}}if(s.emoji&&ke===":"&&ne.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ue.emoji=!0,s.highlightFormatting&&(ue.formatting="emoji");var de=U(ue);return ue.emoji=!1,de}return ke===" "&&(ne.match(/^ +$/,!1)?ue.trailingSpace++:ue.trailingSpace&&(ue.trailingSpaceNewLine=!0)),U(ue)}function ee(ne,ue){var ce=ne.next();if(ce===">"){ue.f=ue.inline=Q,s.highlightFormatting&&(ue.formatting="link");var Re=U(ue);return Re?Re+=" ":Re="",Re+p.linkInline}return ne.match(/^[^>]+/,!0),p.linkInline}function ae(ne,ue){if(ne.eatSpace())return null;var ce=ne.next();return ce==="("||ce==="["?(ue.f=ue.inline=he(ce==="("?")":"]"),s.highlightFormatting&&(ue.formatting="link-string"),ue.linkHref=!0,U(ue)):"error"}var oe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function he(ne){return function(ue,ce){var Re=ue.next();if(Re===ne){ce.f=ce.inline=Q,s.highlightFormatting&&(ce.formatting="link-string");var ke=U(ce);return ce.linkHref=!1,ke}return ue.match(oe[ne]),ce.linkHref=!0,U(ce)}}function le(ne,ue){return ne.match(/^([^\]\\]|\\.)*\]:/,!1)?(ue.f=be,ne.next(),s.highlightFormatting&&(ue.formatting="link"),ue.linkText=!0,U(ue)):N(ne,ue,Q)}function be(ne,ue){if(ne.match(/^\]:/,!0)){ue.f=ue.inline=pe,s.highlightFormatting&&(ue.formatting="link");var ce=U(ue);return ue.linkText=!1,ce}return ne.match(/^([^\]\\]|\\.)+/,!0),p.linkText}function pe(ne,ue){return ne.eatSpace()?null:(ne.match(/^[^\s]+/,!0),ne.peek()===void 0?ue.linkTitle=!0:ne.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ue.f=ue.inline=Q,p.linkHref+" url")}var _e={startState:function(){return{f:M,prevLine:{stream:null},thisLine:{stream:null},block:M,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(ne){return{f:ne.f,prevLine:ne.prevLine,thisLine:ne.thisLine,block:ne.block,htmlState:ne.htmlState&&B.copyState(w,ne.htmlState),indentation:ne.indentation,localMode:ne.localMode,localState:ne.localMode?B.copyState(ne.localMode,ne.localState):null,inline:ne.inline,text:ne.text,formatting:!1,linkText:ne.linkText,linkTitle:ne.linkTitle,linkHref:ne.linkHref,code:ne.code,em:ne.em,strong:ne.strong,strikethrough:ne.strikethrough,emoji:ne.emoji,header:ne.header,setext:ne.setext,hr:ne.hr,taskList:ne.taskList,list:ne.list,listStack:ne.listStack.slice(0),quote:ne.quote,indentedCode:ne.indentedCode,trailingSpace:ne.trailingSpace,trailingSpaceNewLine:ne.trailingSpaceNewLine,md_inside:ne.md_inside,fencedEndRE:ne.fencedEndRE}},token:function(ne,ue){if(ue.formatting=!1,ne!=ue.thisLine.stream){if(ue.header=0,ue.hr=!1,ne.match(/^\s*$/,!0))return H(ue),null;if(ue.prevLine=ue.thisLine,ue.thisLine={stream:ne},ue.taskList=!1,ue.trailingSpace=0,ue.trailingSpaceNewLine=!1,!ue.localState&&(ue.f=ue.block,ue.f!=F)){var ce=ne.match(/^\s*/,!0)[0].replace(/\t/g,R).length;if(ue.indentation=ce,ue.indentationDiff=null,ce>0)return null}}return ue.f(ne,ue)},innerMode:function(ne){return ne.block==F?{state:ne.htmlState,mode:w}:ne.localState?{state:ne.localState,mode:ne.localMode}:{state:ne,mode:_e}},indent:function(ne,ue,ce){return ne.block==F&&w.indent?w.indent(ne.htmlState,ue,ce):ne.localState&&ne.localMode.indent?ne.localMode.indent(ne.localState,ue,ce):B.Pass},blankLine:H,getType:U,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return _e},"xml"),B.defineMIME("text/markdown","markdown"),B.defineMIME("text/x-markdown","markdown")})},98101:function(Oe,J,S){(function(B){B(S(89780))})(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(w){w=w.toLowerCase();for(var _=0;_<B.modeInfo.length;_++){var u=B.modeInfo[_];if(u.mime==w)return u;if(u.mimes){for(var p=0;p<u.mimes.length;p++)if(u.mimes[p]==w)return u}}if(/\+xml$/.test(w))return B.findModeByMIME("application/xml");if(/\+json$/.test(w))return B.findModeByMIME("application/json")},B.findModeByExtension=function(w){w=w.toLowerCase();for(var _=0;_<B.modeInfo.length;_++){var u=B.modeInfo[_];if(u.ext){for(var p=0;p<u.ext.length;p++)if(u.ext[p]==w)return u}}},B.findModeByFileName=function(w){for(var _=0;_<B.modeInfo.length;_++){var u=B.modeInfo[_];if(u.file&&u.file.test(w))return u}var p=w.lastIndexOf("."),y=p>-1&&w.substring(p+1,w.length);if(y)return B.findModeByExtension(y)},B.findModeByName=function(w){w=w.toLowerCase();for(var _=0;_<B.modeInfo.length;_++){var u=B.modeInfo[_];if(u.name.toLowerCase()==w)return u;if(u.alias){for(var p=0;p<u.alias.length;p++)if(u.alias[p].toLowerCase()==w)return u}}}})},67549:function(Oe,J,S){(function(B){B(S(89780))})(function(B){"use strict";B.defineMode("stex",function(Y,s){"use strict";function w(g,x){g.cmdState.push(x)}function _(g){return g.cmdState.length>0?g.cmdState[g.cmdState.length-1]:null}function u(g){var x=g.cmdState.pop();x&&x.closeBracket()}function p(g){for(var x=g.cmdState,T=x.length-1;T>=0;T--){var I=x[T];if(I.name!="DEFAULT")return I}return{styleIdentifier:function(){return null}}}function y(g,x,T){return function(){this.name=g,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 m={};m.importmodule=y("importmodule","tag",["string","builtin"]),m.documentclass=y("documentclass","tag",["","atom"]),m.usepackage=y("usepackage","tag",["atom"]),m.begin=y("begin","tag",["atom"]),m.end=y("end","tag",["atom"]),m.label=y("label","tag",["atom"]),m.ref=y("ref","tag",["atom"]),m.eqref=y("eqref","tag",["atom"]),m.cite=y("cite","tag",["atom"]),m.bibitem=y("bibitem","tag",["atom"]),m.Bibitem=y("Bibitem","tag",["atom"]),m.RBibitem=y("RBibitem","tag",["atom"]),m.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function b(g,x){g.f=x}function v(g,x){var T;if(g.match(/^\\[a-zA-Z@]+/)){var I=g.current().slice(1);return T=m.hasOwnProperty(I)?m[I]:m.DEFAULT,T=new T,w(x,T),b(x,h),T.style}if(g.match(/^\\[$&%#{}_]/)||g.match(/^\\[,;!\/\\]/))return"tag";if(g.match("\\["))return b(x,function(N,k){return c(N,k,"\\]")}),"keyword";if(g.match("\\("))return b(x,function(N,k){return c(N,k,"\\)")}),"keyword";if(g.match("$$"))return b(x,function(N,k){return c(N,k,"$$")}),"keyword";if(g.match("$"))return b(x,function(N,k){return c(N,k,"$")}),"keyword";var R=g.next();if(R=="%")return g.skipToEnd(),"comment";if(R=="}"||R=="]"){if(T=_(x),T)T.closeBracket(R),b(x,h);else return"error";return"bracket"}else return R=="{"||R=="["?(T=m.DEFAULT,T=new T,w(x,T),"bracket"):/\d/.test(R)?(g.eatWhile(/[\w.%]/),"atom"):(g.eatWhile(/[\w\-_]/),T=p(x),T.name=="begin"&&(T.argument=g.current()),T.styleIdentifier())}function c(g,x,T){if(g.eatSpace())return null;if(T&&g.match(T))return b(x,v),"keyword";if(g.match(/^\\[a-zA-Z@]+/))return"tag";if(g.match(/^[a-zA-Z]+/))return"variable-2";if(g.match(/^\\[$&%#{}_]/)||g.match(/^\\[,;!\/]/)||g.match(/^[\^_&]/))return"tag";if(g.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(g.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var I=g.next();return I=="{"||I=="}"||I=="["||I=="]"||I=="("||I==")"?"bracket":I=="%"?(g.skipToEnd(),"comment"):"error"}function h(g,x){var T=g.peek(),I;return T=="{"||T=="["?(I=_(x),I.openBracket(T),g.eat(T),b(x,v),"bracket"):/[ \t\r]/.test(T)?(g.eat(T),null):(b(x,v),u(x),v(g,x))}return{startState:function(){var g=s.inMathMode?function(x,T){return c(x,T)}:v;return{cmdState:[],f:g}},copyState:function(g){return{cmdState:g.cmdState.slice(),f:g.f}},token:function(g,x){return x.f(g,x)},blankLine:function(g){g.f=v,g.cmdState.length=0},lineComment:"%"}}),B.defineMIME("text/x-stex","stex"),B.defineMIME("text/x-latex","stex")})},15525:function(Oe,J,S){(function(B){B(S(89780))})(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(w,_){var u=w.indentUnit,p={},y=_.htmlMode?Y:s;for(var m in y)p[m]=y[m];for(var m in _)p[m]=_[m];var b,v;function c(ee,ae){function oe(be){return ae.tokenize=be,be(ee,ae)}var he=ee.next();if(he=="<")return ee.eat("!")?ee.eat("[")?ee.match("CDATA[")?oe(x("atom","]]>")):null:ee.match("--")?oe(x("comment","-->")):ee.match("DOCTYPE",!0,!0)?(ee.eatWhile(/[\w\._\-]/),oe(T(1))):null:ee.eat("?")?(ee.eatWhile(/[\w\._\-]/),ae.tokenize=x("meta","?>"),"meta"):(b=ee.eat("/")?"closeTag":"openTag",ae.tokenize=h,"tag bracket");if(he=="&"){var le;return ee.eat("#")?ee.eat("x")?le=ee.eatWhile(/[a-fA-F\d]/)&&ee.eat(";"):le=ee.eatWhile(/[\d]/)&&ee.eat(";"):le=ee.eatWhile(/[\w\.\-:]/)&&ee.eat(";"),le?"atom":"error"}else return ee.eatWhile(/[^&<]/),null}c.isInText=!0;function h(ee,ae){var oe=ee.next();if(oe==">"||oe=="/"&&ee.eat(">"))return ae.tokenize=c,b=oe==">"?"endTag":"selfcloseTag","tag bracket";if(oe=="=")return b="equals",null;if(oe=="<"){ae.tokenize=c,ae.state=k,ae.tagName=ae.tagStart=null;var he=ae.tokenize(ee,ae);return he?he+" tag error":"tag error"}else return/[\'\"]/.test(oe)?(ae.tokenize=g(oe),ae.stringStartCol=ee.column(),ae.tokenize(ee,ae)):(ee.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(ee){var ae=function(oe,he){for(;!oe.eol();)if(oe.next()==ee){he.tokenize=h;break}return"string"};return ae.isInAttribute=!0,ae}function x(ee,ae){return function(oe,he){for(;!oe.eol();){if(oe.match(ae)){he.tokenize=c;break}oe.next()}return ee}}function T(ee){return function(ae,oe){for(var he;(he=ae.next())!=null;){if(he=="<")return oe.tokenize=T(ee+1),oe.tokenize(ae,oe);if(he==">")if(ee==1){oe.tokenize=c;break}else return oe.tokenize=T(ee-1),oe.tokenize(ae,oe)}return"meta"}}function I(ee,ae,oe){this.prev=ee.context,this.tagName=ae,this.indent=ee.indented,this.startOfLine=oe,(p.doNotIndent.hasOwnProperty(ae)||ee.context&&ee.context.noIndent)&&(this.noIndent=!0)}function R(ee){ee.context&&(ee.context=ee.context.prev)}function N(ee,ae){for(var oe;;){if(!ee.context||(oe=ee.context.tagName,!p.contextGrabbers.hasOwnProperty(oe)||!p.contextGrabbers[oe].hasOwnProperty(ae)))return;R(ee)}}function k(ee,ae,oe){return ee=="openTag"?(oe.tagStart=ae.column(),L):ee=="closeTag"?H:k}function L(ee,ae,oe){return ee=="word"?(oe.tagName=ae.current(),v="tag",P):p.allowMissingTagName&&ee=="endTag"?(v="tag bracket",P(ee,ae,oe)):(v="error",L)}function H(ee,ae,oe){if(ee=="word"){var he=ae.current();return oe.context&&oe.context.tagName!=he&&p.implicitlyClosed.hasOwnProperty(oe.context.tagName)&&R(oe),oe.context&&oe.context.tagName==he||p.matchClosing===!1?(v="tag",M):(v="tag error",F)}else return p.allowMissingTagName&&ee=="endTag"?(v="tag bracket",M(ee,ae,oe)):(v="error",F)}function M(ee,ae,oe){return ee!="endTag"?(v="error",M):(R(oe),k)}function F(ee,ae,oe){return v="error",M(ee,ae,oe)}function P(ee,ae,oe){if(ee=="word")return v="attribute",U;if(ee=="endTag"||ee=="selfcloseTag"){var he=oe.tagName,le=oe.tagStart;return oe.tagName=oe.tagStart=null,ee=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(he)?N(oe,he):(N(oe,he),oe.context=new I(oe,he,le==oe.indented)),k}return v="error",P}function U(ee,ae,oe){return ee=="equals"?G:(p.allowMissing||(v="error"),P(ee,ae,oe))}function G(ee,ae,oe){return ee=="string"?Q:ee=="word"&&p.allowUnquoted?(v="string",P):(v="error",P(ee,ae,oe))}function Q(ee,ae,oe){return ee=="string"?Q:P(ee,ae,oe)}return{startState:function(ee){var ae={tokenize:c,state:k,indented:ee||0,tagName:null,tagStart:null,context:null};return ee!=null&&(ae.baseIndent=ee),ae},token:function(ee,ae){if(!ae.tagName&&ee.sol()&&(ae.indented=ee.indentation()),ee.eatSpace())return null;b=null;var oe=ae.tokenize(ee,ae);return(oe||b)&&oe!="comment"&&(v=null,ae.state=ae.state(b||oe,ee,ae),v&&(oe=v=="error"?oe+" error":v)),oe},indent:function(ee,ae,oe){var he=ee.context;if(ee.tokenize.isInAttribute)return ee.tagStart==ee.indented?ee.stringStartCol+1:ee.indented+u;if(he&&he.noIndent)return B.Pass;if(ee.tokenize!=h&&ee.tokenize!=c)return oe?oe.match(/^(\s*)/)[0].length:0;if(ee.tagName)return p.multilineTagIndentPastTag!==!1?ee.tagStart+ee.tagName.length+2:ee.tagStart+u*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(ae))return 0;var le=ae&&/^<(\/)?([\w_:\.-]*)/.exec(ae);if(le&&le[1])for(;he;)if(he.tagName==le[2]){he=he.prev;break}else if(p.implicitlyClosed.hasOwnProperty(he.tagName))he=he.prev;else break;else if(le)for(;he;){var be=p.contextGrabbers[he.tagName];if(be&&be.hasOwnProperty(le[2]))he=he.prev;else break}for(;he&&he.prev&&!he.startOfLine;)he=he.prev;return he?he.indent+u:ee.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(ee){ee.state==G&&(ee.state=P)},xmlCurrentTag:function(ee){return ee.tagName?{name:ee.tagName,close:ee.type=="closeTag"}:null},xmlCurrentContext:function(ee){for(var ae=[],oe=ee.context;oe;oe=oe.prev)oe.tagName&&ae.push(oe.tagName);return ae.reverse()}}}),B.defineMIME("text/xml","xml"),B.defineMIME("application/xml","xml"),B.mimeModes.hasOwnProperty("text/html")||B.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(Oe,J){"use strict";var S;J.Q=w,S=_;var B=",",Y=" ",s="";function w(u){for(var p=[],y=String(u||s),m=y.indexOf(B),b=0,v=!1,c;!v;)m===-1&&(m=y.length,v=!0),c=y.slice(b,m).trim(),(c||!v)&&p.push(c),b=m+1,m=y.indexOf(B,b);return p}function _(u,p){var y=p||{},m=y.padLeft===!1?s:Y,b=y.padRight?Y:s;return u[u.length-1]===s&&(u=u.concat(s)),u.join(b+B+m).trim()}},86204:function(Oe){"use strict";var J=typeof Reflect=="object"?Reflect:null,S=J&&typeof J.apply=="function"?J.apply:function(k,L,H){return Function.prototype.apply.call(k,L,H)},B;J&&typeof J.ownKeys=="function"?B=J.ownKeys:Object.getOwnPropertySymbols?B=function(k){return Object.getOwnPropertyNames(k).concat(Object.getOwnPropertySymbols(k))}:B=function(k){return Object.getOwnPropertyNames(k)};function Y(N){console&&console.warn&&console.warn(N)}var s=Number.isNaN||function(k){return k!==k};function w(){w.init.call(this)}Oe.exports=w,Oe.exports.once=T,w.EventEmitter=w,w.prototype._events=void 0,w.prototype._eventsCount=0,w.prototype._maxListeners=void 0;var _=10;function u(N){if(typeof N!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof N)}Object.defineProperty(w,"defaultMaxListeners",{enumerable:!0,get:function(){return _},set:function(N){if(typeof N!="number"||N<0||s(N))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+N+".");_=N}}),w.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},w.prototype.setMaxListeners=function(k){if(typeof k!="number"||k<0||s(k))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+k+".");return this._maxListeners=k,this};function p(N){return N._maxListeners===void 0?w.defaultMaxListeners:N._maxListeners}w.prototype.getMaxListeners=function(){return p(this)},w.prototype.emit=function(k){for(var L=[],H=1;H<arguments.length;H++)L.push(arguments[H]);var M=k==="error",F=this._events;if(F!==void 0)M=M&&F.error===void 0;else if(!M)return!1;if(M){var P;if(L.length>0&&(P=L[0]),P instanceof Error)throw P;var U=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw U.context=P,U}var G=F[k];if(G===void 0)return!1;if(typeof G=="function")S(G,this,L);else for(var Q=G.length,ee=h(G,Q),H=0;H<Q;++H)S(ee[H],this,L);return!0};function y(N,k,L,H){var M,F,P;if(u(L),F=N._events,F===void 0?(F=N._events=Object.create(null),N._eventsCount=0):(F.newListener!==void 0&&(N.emit("newListener",k,L.listener?L.listener:L),F=N._events),P=F[k]),P===void 0)P=F[k]=L,++N._eventsCount;else if(typeof P=="function"?P=F[k]=H?[L,P]:[P,L]:H?P.unshift(L):P.push(L),M=p(N),M>0&&P.length>M&&!P.warned){P.warned=!0;var U=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");U.name="MaxListenersExceededWarning",U.emitter=N,U.type=k,U.count=P.length,Y(U)}return N}w.prototype.addListener=function(k,L){return y(this,k,L,!1)},w.prototype.on=w.prototype.addListener,w.prototype.prependListener=function(k,L){return y(this,k,L,!0)};function m(){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 b(N,k,L){var H={fired:!1,wrapFn:void 0,target:N,type:k,listener:L},M=m.bind(H);return M.listener=L,H.wrapFn=M,M}w.prototype.once=function(k,L){return u(L),this.on(k,b(this,k,L)),this},w.prototype.prependOnceListener=function(k,L){return u(L),this.prependListener(k,b(this,k,L)),this},w.prototype.removeListener=function(k,L){var H,M,F,P,U;if(u(L),M=this._events,M===void 0)return this;if(H=M[k],H===void 0)return this;if(H===L||H.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete M[k],M.removeListener&&this.emit("removeListener",k,H.listener||L));else if(typeof H!="function"){for(F=-1,P=H.length-1;P>=0;P--)if(H[P]===L||H[P].listener===L){U=H[P].listener,F=P;break}if(F<0)return this;F===0?H.shift():g(H,F),H.length===1&&(M[k]=H[0]),M.removeListener!==void 0&&this.emit("removeListener",k,U||L)}return this},w.prototype.off=w.prototype.removeListener,w.prototype.removeAllListeners=function(k){var L,H,M;if(H=this._events,H===void 0)return this;if(H.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):H[k]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete H[k]),this;if(arguments.length===0){var F=Object.keys(H),P;for(M=0;M<F.length;++M)P=F[M],P!=="removeListener"&&this.removeAllListeners(P);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=H[k],typeof L=="function")this.removeListener(k,L);else if(L!==void 0)for(M=L.length-1;M>=0;M--)this.removeListener(k,L[M]);return this};function v(N,k,L){var H=N._events;if(H===void 0)return[];var M=H[k];return M===void 0?[]:typeof M=="function"?L?[M.listener||M]:[M]:L?x(M):h(M,M.length)}w.prototype.listeners=function(k){return v(this,k,!0)},w.prototype.rawListeners=function(k){return v(this,k,!1)},w.listenerCount=function(N,k){return typeof N.listenerCount=="function"?N.listenerCount(k):c.call(N,k)},w.prototype.listenerCount=c;function c(N){var k=this._events;if(k!==void 0){var L=k[N];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}w.prototype.eventNames=function(){return this._eventsCount>0?B(this._events):[]};function h(N,k){for(var L=new Array(k),H=0;H<k;++H)L[H]=N[H];return L}function g(N,k){for(;k+1<N.length;k++)N[k]=N[k+1];N.pop()}function x(N){for(var k=new Array(N.length),L=0;L<k.length;++L)k[L]=N[L].listener||N[L];return k}function T(N,k){return new Promise(function(L,H){function M(P){N.removeListener(k,F),H(P)}function F(){typeof N.removeListener=="function"&&N.removeListener("error",M),L([].slice.call(arguments))}R(N,k,F,{once:!0}),k!=="error"&&I(N,M,{once:!0})})}function I(N,k,L){typeof N.on=="function"&&R(N,"error",k,L)}function R(N,k,L,H){if(typeof N.on=="function")H.once?N.once(k,L):N.on(k,L);else if(typeof N.addEventListener=="function")N.addEventListener(k,function M(F){H.once&&N.removeEventListener(k,M),L(F)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof N)}},58847:function(Oe){"use strict";var J=Object.prototype.hasOwnProperty,S=Object.prototype.toString,B=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,s=function(y){return typeof Array.isArray=="function"?Array.isArray(y):S.call(y)==="[object Array]"},w=function(y){if(!y||S.call(y)!=="[object Object]")return!1;var m=J.call(y,"constructor"),b=y.constructor&&y.constructor.prototype&&J.call(y.constructor.prototype,"isPrototypeOf");if(y.constructor&&!m&&!b)return!1;var v;for(v in y);return typeof v=="undefined"||J.call(y,v)},_=function(y,m){B&&m.name==="__proto__"?B(y,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):y[m.name]=m.newValue},u=function(y,m){if(m==="__proto__")if(J.call(y,m)){if(Y)return Y(y,m).value}else return;return y[m]};Oe.exports=function p(){var y,m,b,v,c,h,g=arguments[0],x=1,T=arguments.length,I=!1;for(typeof g=="boolean"&&(I=g,g=arguments[1]||{},x=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});x<T;++x)if(y=arguments[x],y!=null)for(m in y)b=u(g,m),v=u(y,m),g!==v&&(I&&v&&(w(v)||(c=s(v)))?(c?(c=!1,h=b&&s(b)?b:[]):h=b&&w(b)?b:{},_(g,{name:m,newValue:p(I,h,v)})):typeof v!="undefined"&&_(g,{name:m,newValue:v}));return g}},12378:function(Oe,J,S){"use strict";S.d(J,{$u:function(){return m},BD:function(){return fe},E9:function(){return y},FF:function(){return yr},FJ:function(){return k},Hn:function(){return N},KX:function(){return H},NB:function(){return He},S0:function(){return it},UL:function(){return b},Vk:function(){return R},Vm:function(){return Qe},YI:function(){return ze},ZA:function(){return s},Zt:function(){return v},al:function(){return re},bn:function(){return Ce},bx:function(){return W},g2:function(){return xe},h1:function(){return G},hD:function(){return $e},l4:function(){return u},rU:function(){return st},s_:function(){return Z},uz:function(){return Be},z6:function(){return c}}),Oe=S.hmd(Oe),function(){var ye;function Fn(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function wn(e){var t=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:Fn(e)}}function Jn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var Ir=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},Wr;if(typeof Object.setPrototypeOf=="function")Wr=Object.setPrototypeOf;else{var cr;e:{var ro={a:!0},Kr={};try{Kr.__proto__=ro,cr=Kr.a;break e}catch(e){}cr=!1}Wr=cr?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var oi=Wr;function Kn(e,t){if(e.prototype=Ir(t.prototype),e.prototype.constructor=e,oi)oi(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 Dn=typeof S.g!="undefined"&&S.g!=null?S.g:self,li=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},Nr=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function Yr(e,t){if(t){var n=Dn;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&&Nr(n,e,{writable:!0,value:t})}}Yr("Object.assign",function(e){return e||li}),Yr("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 mn=typeof globalThis=="object"&&globalThis||typeof S.g=="object"&&S.g.global===S.g&&S.g||typeof self=="object"&&self.self===self&&self||{};mn.requestAnimationFrame===void 0&&(mn.setImmediate===void 0?mn.requestAnimationFrame=function(e){mn.setTimeout(e,0)}:mn.requestAnimationFrame=mn.setImmediate);function zn(){}function Mr(e,t){var n=-1;return function(){var r=this,i=arguments;n!==-1&&mn.clearTimeout(n),n=Ci(function(){n=-1,e.apply(r,i)},t)}}function Ci(e,t){return mn.setTimeout(e,t)}function vi(e){return mn.document.createElement(e)}function nt(e){throw Error(e)}function vt(e,t){e="The object is frozen, so its properties cannot be set: "+e.toString(),t!==void 0&&(e+=" to value: "+t),nt(e)}function hn(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),nt(n+" is not in the range "+t+": "+e)}function yn(e){mn.console&&mn.console.log(e)}function dt(e){return typeof e=="object"&&e!==null}function on(e){return Array.isArray(e)||mn.NodeList&&e instanceof mn.NodeList||mn.HTMLCollection&&e instanceof mn.HTMLCollection}function kn(e){return Array.prototype.slice.call(e)}function _t(e,t,n){Array.isArray(e)?t>=e.length?e.push(n):e.splice(t,0,n):nt("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+t)}function we(e,t){Array.isArray(e)?t>=e.length?e.pop():e.splice(t,1):nt("Cannot remove an object from an HTMLCollection or NodeList at "+t)}function An(){var e=Li.pop();return e===void 0?[]:e}function Nn(e){e.length=0,Li.push(e)}function Ft(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(dt(e)&&e.constructor)return Ft(e.constructor);return typeof e}function hr(e){var t=e;return dt(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 Xn(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 or(e,t,n){Object.defineProperty(Bi.prototype,e,{get:t,set:n})}function Tn(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 mt=mn.navigator!==void 0&&0<mn.navigator.userAgent.indexOf("Trident/7"),fr=mn.navigator!==void 0&&mn.navigator.platform!==void 0&&mn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Li=[];Object.freeze([]),zn.className="Util",zn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",zn.adym="gojs.net",zn.vfo="28e645fdb266",zn.className="Util";function Ut(e,t,n){Yn(this),this.j=e,this.xa=t,this.o=n}Ut.prototype.toString=function(){return"EnumValue."+this.xa};function wi(e,t){return t==null||t===""?null:e[t]}Dn.Object.defineProperties(Ut.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Ut.className="EnumValue";function Mi(){this.ew=[]}Mi.prototype.toString=function(){return this.ew.join("")},Mi.prototype.add=function(e){e!==""&&this.ew.push(e)},Mi.className="StringBuilder";function Or(){}Or.className="PropertyCollection";var Di={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(e){mn.console&&mn.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,d){return function(){throw Error("Property "+a.Zl[d.Tj]+" of "+a.x+" is read-only.")}}(t,i)})}}}t={Zl:t.Zl,x:t.x}}}};function ii(){}ii.prototype.reset=function(){},ii.prototype.next=function(){return!1},ii.prototype.Ad=function(){return!1},ii.prototype.first=function(){return null},ii.prototype.any=function(){return!1},ii.prototype.all=function(){return!0},ii.prototype.each=function(){return this},ii.prototype.map=function(){return this},ii.prototype.filter=function(){return this},ii.prototype.de=function(){},ii.prototype.toString=function(){return"EmptyIterator"},Dn.Object.defineProperties(ii.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),ii.prototype.first=ii.prototype.first,ii.prototype.hasNext=ii.prototype.Ad,ii.prototype.next=ii.prototype.next,ii.prototype.reset=ii.prototype.reset;var ui=null;ii.className="EmptyIterator",ui=new ii;function $r(e){this.key=-1,this.value=e}$r.prototype.reset=function(){this.key=-1},$r.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},$r.prototype.Ad=function(){return this.next()},$r.prototype.first=function(){return this.key=0,this.value},$r.prototype.any=function(e){return this.key=-1,e(this.value)},$r.prototype.all=function(e){return this.key=-1,e(this.value)},$r.prototype.each=function(e){return this.key=-1,e(this.value),this},$r.prototype.map=function(e){return new $r(e(this.value))},$r.prototype.filter=function(e){return e(this.value)?new $r(this.value):ui},$r.prototype.de=function(){this.value=null},$r.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Dn.Object.defineProperties($r.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),$r.prototype.first=$r.prototype.first,$r.prototype.hasNext=$r.prototype.Ad,$r.prototype.next=$r.prototype.next,$r.prototype.reset=$r.prototype.reset,$r.className="SingletonIterator";function ti(e){this.Bb=e,this.qf=null,e.Sa=null,this.qa=e.Ja,this.Za=-1}ti.prototype.reset=function(){var e=this.Bb;e.Sa=null,this.qa=e.Ja,this.Za=-1},ti.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},ti.prototype.Ad=function(){return this.next()},ti.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},ti.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},ti.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},ti.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},ti.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 Gt,e.s=n,e.xb(),e.iterator},ti.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 Gt,e.s=n,e.xb(),e.iterator},ti.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},ti.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Dn.Object.defineProperties(ti.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}}}),ti.prototype.first=ti.prototype.first,ti.prototype.hasNext=ti.prototype.Ad,ti.prototype.next=ti.prototype.next,ti.prototype.reset=ti.prototype.reset,ti.className="ListIterator";function si(e){this.Bb=e,e.Hg=null,this.qa=e.Ja,this.Za=e.s.length}si.prototype.reset=function(){var e=this.Bb;e.Hg=null,this.qa=e.Ja,this.Za=e.s.length},si.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)},si.prototype.Ad=function(){return this.next()},si.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},si.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},si.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},si.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},si.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 Gt,e.s=n,e.xb(),e.iterator},si.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 Gt,e.s=n,e.xb(),e.iterator},si.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},si.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Dn.Object.defineProperties(si.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),si.prototype.first=si.prototype.first,si.prototype.hasNext=si.prototype.Ad,si.prototype.next=si.prototype.next,si.prototype.reset=si.prototype.reset,si.className="ListIteratorBackwards";function Gt(e){Yn(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof e=="string"&&nt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}ye=Gt.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()#"+br(this)},ye.add=function(e){return e===null?this:(this._isFrozen&&vt(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&&vt(this);var t=this.s;if(on(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&&vt(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)&&hn(e,"0 <= i < length",Gt,"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)&&hn(e,"0 <= i < length",Gt,"setElt:i"),this._isFrozen&&vt(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&&vt(this);var e=this.s;return 0<e.length?e.pop():null},Gt.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},Gt.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},Gt.prototype.each=function(e){for(var t=this.s,n=t.length,r=0;r<n;r++)e(t[r]);return this},Gt.prototype.map=function(e){for(var t=new Gt,n=[],r=this.s,i=r.length,o=0;o<i;o++)n.push(e(r[o]));return t.s=n,t.xb(),t},Gt.prototype.filter=function(e){for(var t=new Gt,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=Gt.prototype,ye.Gb=function(e,t){0>e&&hn(e,">= 0",Gt,"insertAt:i"),this._isFrozen&&vt(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&&vt(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)&&hn(e,"0 <= i < length",Gt,"removeAt:i"),this._isFrozen&&vt(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&&vt(this);for(var i=e,o=t+1;o<r;)n[i++]=n[o++];return n.length=r-(t-e+1),this.xb(),this},Gt.prototype.copy=function(){var e=new Gt,t=this.s;return 0<t.length&&(e.s=Array.prototype.slice.call(t)),e},ye=Gt.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 Wt,t=this.s,n=this.count,r=0;r<n;r++)e.add(t[r]);return e},ye.sort=function(e){return this._isFrozen&&vt(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&&vt(this);var o=n-t;if(1>=o)return this;if((0>t||t>=i-1)&&hn(t,"0 <= from < length",Gt,"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&&vt(this),this.s.reverse(),this.xb(),this},Dn.Object.defineProperties(Gt.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 ui;var e=this.Sa;return e!==null?(e.reset(),e):new ti(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return ui;var e=this.Hg;return e!==null?(e.reset(),e):new si(this)}}}),Gt.prototype.reverse=Gt.prototype.reverse,Gt.prototype.sortRange=Gt.prototype.zi,Gt.prototype.sort=Gt.prototype.sort,Gt.prototype.toSet=Gt.prototype.Iv,Gt.prototype.toArray=Gt.prototype.Fa,Gt.prototype.removeRange=Gt.prototype.removeRange,Gt.prototype.removeAt=Gt.prototype.mb,Gt.prototype.delete=Gt.prototype.delete,Gt.prototype.remove=Gt.prototype.remove,Gt.prototype.insertAt=Gt.prototype.Gb,Gt.prototype.pop=Gt.prototype.pop,Gt.prototype.last=Gt.prototype.jc,Gt.prototype.first=Gt.prototype.first,Gt.prototype.set=Gt.prototype.set,Gt.prototype.setElt=Gt.prototype.cd,Gt.prototype.get=Gt.prototype.get,Gt.prototype.elt=Gt.prototype.M,Gt.prototype.indexOf=Gt.prototype.indexOf,Gt.prototype.has=Gt.prototype.has,Gt.prototype.contains=Gt.prototype.contains,Gt.prototype.clear=Gt.prototype.clear,Gt.prototype.addAll=Gt.prototype.addAll,Gt.prototype.push=Gt.prototype.push,Gt.prototype.add=Gt.prototype.add,Gt.prototype.thaw=Gt.prototype.ka,Gt.prototype.freeze=Gt.prototype.freeze,Gt.className="List";function di(e){this.eg=e,e.Sa=null,this.qa=e.Ja,this.sa=null}di.prototype.reset=function(){var e=this.eg;e.Sa=null,this.qa=e.Ja,this.sa=null},di.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)},di.prototype.Ad=function(){return this.next()},di.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},di.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},di.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},di.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},di.prototype.map=function(e){var t=this.eg;t.Sa=null;var n=new Gt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},di.prototype.filter=function(e){var t=this.eg;t.Sa=null;var n=new Gt;for(t=t.ea;t!==null;){var r=t.value;e(r)&&n.add(r),t=t.va}return n.iterator},di.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},di.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Dn.Object.defineProperties(di.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),di.prototype.first=di.prototype.first,di.prototype.hasNext=di.prototype.Ad,di.prototype.next=di.prototype.next,di.prototype.reset=di.prototype.reset,di.className="SetIterator";function Wt(e){Yn(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&nt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}ye=Wt.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()#"+br(this)},ye.add=function(e){if(e===null)return this;this._isFrozen&&vt(this,e);var t=e;return dt(e)&&(t=Dr(e)),this.Tb[t]===void 0&&(this.Sb++,e=new kt(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&&vt(this),on(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 dt(e)&&(t=br(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},Wt.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Wt.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Wt.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t.value),t=t.va;return this},Wt.prototype.map=function(e){for(var t=new Wt,n=this.ea;n!==null;)t.add(e(n.value)),n=n.va;return t},Wt.prototype.filter=function(e){for(var t=new Wt,n=this.ea;n!==null;){var r=n.value;e(r)&&t.add(r),n=n.va}return t},ye=Wt.prototype,ye.remove=function(e){if(e===null)return!1;this._isFrozen&&vt(this,e);var t=e;if(dt(e)&&(t=br(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&&vt(this),on(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&&vt(this);var t=new Wt;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&&vt(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Wt.prototype.copy=function(){var e=new Wt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e},Wt.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},Wt.prototype.Hv=function(){var e=new Gt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e};function Yn(e){e.__gohashid=mi++}function Dr(e){var t=e.__gohashid;return t===void 0&&(t=mi++,e.__gohashid=t),t}function br(e){return e.__gohashid}Dn.Object.defineProperties(Wt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return ui;var e=this.Sa;return e!==null?(e.reset(),e):new di(this)}}}),Wt.prototype.toList=Wt.prototype.Hv,Wt.prototype.toArray=Wt.prototype.Fa,Wt.prototype.clear=Wt.prototype.clear,Wt.prototype.retainAll=Wt.prototype.pA,Wt.prototype.removeAll=Wt.prototype.hp,Wt.prototype.delete=Wt.prototype.delete,Wt.prototype.remove=Wt.prototype.remove,Wt.prototype.first=Wt.prototype.first,Wt.prototype.containsAny=Wt.prototype.Ty,Wt.prototype.containsAll=Wt.prototype.Sy,Wt.prototype.has=Wt.prototype.has,Wt.prototype.contains=Wt.prototype.contains,Wt.prototype.addAll=Wt.prototype.addAll,Wt.prototype.add=Wt.prototype.add,Wt.prototype.thaw=Wt.prototype.ka,Wt.prototype.freeze=Wt.prototype.freeze;var mi=1;Wt.className="Set",Wt.uniqueHash=Yn,Wt.hashIdUnique=Dr,Wt.hashId=br;function Hr(e){this.ma=e,this.qa=e.Ja,this.sa=null}Hr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Hr.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)},Hr.prototype.Ad=function(){return this.next()},Hr.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},Hr.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},Hr.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},Hr.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},Hr.prototype.map=function(e){var t=this.ma;this.sa=null;var n=new Gt;for(t=t.ea;t!==null;)n.add(e(t.key)),t=t.va;return n.iterator},Hr.prototype.filter=function(e){var t=this.ma;this.sa=null;var n=new Gt;for(t=t.ea;t!==null;){var r=t.key;e(r)&&n.add(r),t=t.va}return n.iterator},Hr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Hr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Dn.Object.defineProperties(Hr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Hr.prototype.first=Hr.prototype.first,Hr.prototype.hasNext=Hr.prototype.Ad,Hr.prototype.next=Hr.prototype.next,Hr.prototype.reset=Hr.prototype.reset,Hr.className="MapKeySetIterator";function Tr(e){Wt.call(this),Yn(this),this._isFrozen=!0,this.ma=e}Kn(Tr,Wt),ye=Tr.prototype,ye.freeze=function(){return this},ye.ka=function(){return this},ye.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ye.add=function(){nt("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(){nt("This Set is read-only: "+this.toString())},ye.delete=function(e){return this.remove(e)},ye.clear=function(){nt("This Set is read-only: "+this.toString())},ye.first=function(){var e=this.ma.ea;return e!==null?e.key:null},Tr.prototype.any=function(e){for(var t=this.ma.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},Tr.prototype.all=function(e){for(var t=this.ma.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},Tr.prototype.each=function(e){for(var t=this.ma.ea;t!==null;)e(t.key),t=t.va;return this},Tr.prototype.map=function(e){for(var t=new Wt,n=this.ma.ea;n!==null;)t.add(e(n.key)),n=n.va;return t},Tr.prototype.filter=function(e){for(var t=new Wt,n=this.ma.ea;n!==null;){var r=n.key;e(r)&&t.add(r),n=n.va}return t},Tr.prototype.copy=function(){return new Tr(this.ma)},Tr.prototype.Iv=function(){var e=new Wt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},Tr.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},Tr.prototype.Hv=function(){var e=new Gt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},Dn.Object.defineProperties(Tr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?ui:new Hr(this.ma)}}}),Tr.prototype.toList=Tr.prototype.Hv,Tr.prototype.toArray=Tr.prototype.Fa,Tr.prototype.toSet=Tr.prototype.Iv,Tr.prototype.first=Tr.prototype.first,Tr.prototype.clear=Tr.prototype.clear,Tr.prototype.delete=Tr.prototype.delete,Tr.prototype.remove=Tr.prototype.remove,Tr.prototype.has=Tr.prototype.has,Tr.prototype.contains=Tr.prototype.contains,Tr.prototype.add=Tr.prototype.add,Tr.prototype.thaw=Tr.prototype.ka,Tr.prototype.freeze=Tr.prototype.freeze,Tr.className="MapKeySet";function Gi(e){this.ma=e,e.jf=null,this.qa=e.Ja,this.sa=null}Gi.prototype.reset=function(){var e=this.ma;e.jf=null,this.qa=e.Ja,this.sa=null},Gi.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)},Gi.prototype.Ad=function(){return this.next()},Gi.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},Gi.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},Gi.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},Gi.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},Gi.prototype.map=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Gt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},Gi.prototype.filter=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Gt;for(t=t.ea;t!==null;){var r=t.value;e(r)&&n.add(r),t=t.va}return n.iterator},Gi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Gi.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Dn.Object.defineProperties(Gi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Gi.prototype.first=Gi.prototype.first,Gi.prototype.hasNext=Gi.prototype.Ad,Gi.prototype.next=Gi.prototype.next,Gi.prototype.reset=Gi.prototype.reset,Gi.className="MapValueSetIterator";function kt(e,t){this.key=e,this.value=t,this.ll=this.va=null}kt.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},kt.className="KeyValuePair";function Xt(e){this.ma=e,e.Sa=null,this.qa=e.Ja,this.sa=null}Xt.prototype.reset=function(){var e=this.ma;e.Sa=null,this.qa=e.Ja,this.sa=null},Xt.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)},Xt.prototype.Ad=function(){return this.next()},Xt.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},Xt.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},Xt.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},Xt.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},Xt.prototype.map=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Gt;for(t=t.ea;t!==null;)n.add(e(t)),t=t.va;return n.iterator},Xt.prototype.filter=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Gt;for(t=t.ea;t!==null;)e(t)&&n.add(t),t=t.va;return n.iterator},Xt.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Xt.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Dn.Object.defineProperties(Xt.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xt.prototype.first=Xt.prototype.first,Xt.prototype.hasNext=Xt.prototype.Ad,Xt.prototype.next=Xt.prototype.next,Xt.prototype.reset=Xt.prototype.reset,Xt.className="MapIterator";function wt(e){Yn(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"&&nt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}ye=wt.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()#"+br(this)},ye.add=function(e,t){this._isFrozen&&vt(this,e);var n=e;dt(e)&&(n=Dr(e));var r=this.Tb[n];return r===void 0?(this.Sb++,e=new kt(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(on(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 wt)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},wt.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},wt.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},wt.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t),t=t.va;return this},wt.prototype.map=function(e){for(var t=new wt,n=this.ea;n!==null;)t.add(n.key,e(n)),n=n.va;return t},wt.prototype.filter=function(e){for(var t=new wt,n=this.ea;n!==null;)e(n)&&t.add(n.key,n.value),n=n.va;return t},ye=wt.prototype,ye.contains=function(e){var t=e;return dt(e)&&(t=br(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 dt(e)&&(t=br(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&&vt(this,e);var t=e;if(dt(e)&&(t=br(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&&vt(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()},wt.prototype.copy=function(){var e=new wt,t=this.Tb,n;for(n in t){var r=t[n];e.add(r.key,r.value)}return e},wt.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 kt(i.key,i.value),n++}return t},wt.prototype.Lf=function(){return new Tr(this)},Dn.Object.defineProperties(wt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return ui;var e=this.Sa;return e!==null?(e.reset(),e):new Xt(this)}},iteratorKeys:{get:function(){return 0>=this.count?ui:new Hr(this)}},iteratorValues:{get:function(){if(0>=this.count)return ui;var e=this.jf;return e!==null?(e.reset(),e):new Gi(this)}}}),wt.prototype.toKeySet=wt.prototype.Lf,wt.prototype.toArray=wt.prototype.Fa,wt.prototype.clear=wt.prototype.clear,wt.prototype.delete=wt.prototype.delete,wt.prototype.remove=wt.prototype.remove,wt.prototype.get=wt.prototype.get,wt.prototype.getValue=wt.prototype.I,wt.prototype.has=wt.prototype.has,wt.prototype.contains=wt.prototype.contains,wt.prototype.first=wt.prototype.first,wt.prototype.addAll=wt.prototype.addAll,wt.prototype.set=wt.prototype.set,wt.prototype.add=wt.prototype.add,wt.prototype.thaw=wt.prototype.ka,wt.prototype.freeze=wt.prototype.freeze,wt.className="Map";function Pe(e,t){e===void 0?this.y=this.x=0:typeof e=="number"&&typeof t=="number"?(this.x=e,this.y=t):nt("Invalid arguments to Point constructor: "+e+", "+t),this._isFrozen=!1}var an,vn,Bn,On,En;Pe.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this},Pe.prototype.h=function(e,t){return this.x=e,this.y=t,this},Pe.prototype.sg=function(e,t){return this.x=e,this.y=t,this},Pe.prototype.set=function(e){return this.x=e.x,this.y=e.y,this},Pe.prototype.copy=function(){var e=new Pe;return e.x=this.x,e.y=this.y,e},ye=Pe.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)&&nt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vt(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 Pe(n,i)}return new Pe}function cn(e){return e.x.toString()+" "+e.y.toString()}ye.toString=function(){return"Point("+this.x+","+this.y+")"},ye.D=function(e){return e instanceof Pe?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 lt.B(this.x,e.x)&&lt.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},Pe.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=Pe.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 dn(e.x-this.x,e.y-this.y)},ye.direction=function(e,t){return dn(e-this.x,t-this.y)};function dn(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 lt.Fl(e.x,e.y,t.x,t.y,this.x,this.y)},ye.fA=function(e,t,n,r){return lt.qh(e,t,n,r,this.x,this.y,this),this},ye.gA=function(e,t){return lt.qh(e.x,e.y,t.x,t.y,this.x,this.y,this),this},ye.uA=function(e,t,n,r){return lt.No(this.x,this.y,e,t,n,r,this),this},ye.vA=function(e,t){return lt.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 rn(e,t){return t.Cd(e),e}function pn(e,t,n,r,i,o){var a=i-n,d=o-r,E=a*a+d*d;n-=e,r-=t;var O=-n*a-r*d;return 0>=O||O>=E?(a=i-e,d=o-t,Math.min(n*n+r*r,a*a+d*d)):(e=a*r-d*n,e*e/E)}function jn(e,t,n,r){return e=n-e,t=r-t,e*e+t*t}function dr(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)},Pe.alloc=function(){var e=lr.pop();return e===void 0?new Pe:e},Pe.allocAt=function(e,t){var n=lr.pop();return n===void 0?new Pe(e,t):(n.x=e,n.y=t,n)},Pe.free=function(e){lr.push(e)},Pe.prototype.isReal=Pe.prototype.w,Pe.prototype.setSpot=Pe.prototype.yi,Pe.prototype.setRectSpot=Pe.prototype.xi,Pe.prototype.snapToGridPoint=Pe.prototype.vA,Pe.prototype.snapToGrid=Pe.prototype.uA,Pe.prototype.projectOntoLineSegmentPoint=Pe.prototype.gA,Pe.prototype.projectOntoLineSegment=Pe.prototype.fA,Pe.intersectingLineSegments=function(e,t,n,r,i,o,a,d){return lt.Rl(e,t,n,r,i,o,a,d)},Pe.prototype.compareWithLineSegmentPoint=Pe.prototype.Ry,Pe.compareWithLineSegment=function(e,t,n,r,i,o){return lt.Fl(e,t,n,r,i,o)},Pe.prototype.direction=Pe.prototype.direction,Pe.prototype.directionPoint=Pe.prototype.ab,Pe.prototype.normalize=Pe.prototype.normalize,Pe.prototype.distanceSquared=Pe.prototype.zd,Pe.prototype.distanceSquaredPoint=Pe.prototype.Bf,Pe.prototype.scale=Pe.prototype.scale,Pe.prototype.rotate=Pe.prototype.rotate,Pe.prototype.offset=Pe.prototype.offset,Pe.prototype.subtract=Pe.prototype.re,Pe.prototype.add=Pe.prototype.add,Pe.prototype.equalsApprox=Pe.prototype.Xa,Pe.prototype.equalTo=Pe.prototype.hi,Pe.prototype.equals=Pe.prototype.D,Pe.prototype.set=Pe.prototype.set,Pe.prototype.setTo=Pe.prototype.sg;var lr=[];Pe.className="Point",Pe.parse=Vt,Pe.stringify=cn,Pe.distanceLineSegmentSquared=pn,Pe.distanceSquared=jn,Pe.direction=dr,Pe.Origin=an=new Pe(0,0).ja(),Pe.InfiniteTopLeft=vn=new Pe(-1/0,-1/0).ja(),Pe.InfiniteBottomRight=Bn=new Pe(1/0,1/0).ja(),Pe.SixPoint=On=new Pe(6,6).ja(),Pe.NoPoint=En=new Pe(NaN,NaN).ja(),Pe.parse=Vt,Pe.stringify=cn,Pe.distanceLineSegmentSquared=pn,Pe.distanceSquared=jn,Pe.direction=dr;function un(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):nt("Invalid arguments to Size constructor: "+e+", "+t),this._isFrozen=!1}var zr,_r,ci,Cr,Zi,ji,Pi;un.prototype.assign=function(e){return this.width=e.width,this.height=e.height,this},un.prototype.h=function(e,t){return this.width=e,this.height=t,this},un.prototype.sg=function(e,t){return this.width=e,this.height=t,this},un.prototype.set=function(e){return this.width=e.width,this.height=e.height,this},un.prototype.copy=function(){var e=new un;return e.width=this.width,e.height=this.height,e},ye=un.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)&&nt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ti(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 un(n,i)}return new un}function Fi(e){return e.width.toString()+" "+e.height.toString()}ye.toString=function(){return"Size("+this.width+","+this.height+")"},ye.D=function(e){return e instanceof un?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 lt.B(this.width,e.width)&&lt.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)},un.alloc=function(){var e=Ji.pop();return e===void 0?new un:e},un.free=function(e){Ji.push(e)},un.prototype.isReal=un.prototype.w,un.prototype.inflate=un.prototype.Bc,un.prototype.equalsApprox=un.prototype.Xa,un.prototype.equalTo=un.prototype.hi,un.prototype.equals=un.prototype.D,un.prototype.set=un.prototype.set,un.prototype.setTo=un.prototype.sg;var Ji=[];un.className="Size",un.parse=Ti,un.stringify=Fi,un.ZeroSize=zr=new un(0,0).ja(),un.OneSize=_r=new un(1,1).ja(),un.SixSize=ci=new un(6,6).ja(),un.EightSize=Cr=new un(8,8).ja(),un.TenSize=Zi=new un(10,10).ja(),un.InfiniteSize=ji=new un(1/0,1/0).ja(),un.NoSize=Pi=new un(NaN,NaN).ja(),un.parse=Ti,un.stringify=Fi;function Ct(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 Pe?(n=e.x,e=e.y,t instanceof Pe?(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 un?(this.x=n,this.y=e,this.width=t.width,this.height=t.height):nt("Incorrect second argument supplied to Rect constructor "+t)):nt("Invalid arguments to Rect constructor: "+e+", "+t+", "+n+", "+r),this._isFrozen=!1}ye=Ct.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 ai(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},Ct.prototype.copy=function(){var e=new Ct;return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},ye=Ct.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)&&nt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qr(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 Ct(n,i,o,a)}return new Ct}function Sr(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 Ct?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 lt.B(this.x,e.x)&&lt.B(this.y,e.y)&&lt.B(this.width,e.width)&&lt.B(this.height,e.height)};function Pr(e,t){return lt.$(e.x,t.x)&&lt.$(e.y,t.y)&&lt.$(e.width,t.width)&&lt.$(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 ri(this,t,e,t,e)},ye.Co=function(e){return ri(this,e.top,e.right,e.bottom,e.left)},ye.Fv=function(e){return ri(this,-e.top,-e.right,-e.bottom,-e.left)},ye.Hz=function(e,t,n,r){return ri(this,e,t,n,r)};function ri(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 _i(this,e.x,e.y,e.width,e.height)},ye.Uu=function(e,t,n,r){return _i(this,e,t,n,r)};function _i(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 Nt(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 Rr(this,e.x,e.y,0,0)},ye.ed=function(e){return Rr(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),Rr(this,e,t,n,r)};function Rr(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 Ki(e,t,n,r,i,o,a,d){return a===void 0&&(a=0),d===void 0&&(d=0),e<=i&&i+a<=e+n&&t<=o&&o+d<=t+r}function _s(e,t,n,r,i,o,a,d){return e>a+i||i>n+e?!1:!(t>d+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},Ct.alloc=function(){var e=Rs.pop();return e===void 0?new Ct:e},Ct.allocAt=function(e,t,n,r){var i=Rs.pop();return i===void 0?new Ct(e,t,n,r):i.h(e,t,n,r)},Ct.free=function(e){Rs.push(e)},Dn.Object.defineProperties(Ct.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 Pe(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y}},size:{get:function(){return new un(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height}},center:{get:function(){return new Pe(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}}}),Ct.prototype.isEmpty=Ct.prototype.Mz,Ct.prototype.isReal=Ct.prototype.w,Ct.intersectsLineSegment=function(e,t,n,r,i,o,a,d){return lt.Fx(e,t,n,r,i,o,a,d)},Ct.prototype.setSpot=Ct.prototype.yi,Ct.prototype.union=Ct.prototype.Kv,Ct.prototype.unionRect=Ct.prototype.ed,Ct.prototype.unionPoint=Ct.prototype.Ye,Ct.prototype.intersects=Ct.prototype.Vu,Ct.prototype.intersectsRect=Ct.prototype.Yc,Ct.prototype.intersect=Ct.prototype.Uu,Ct.prototype.intersectRect=Ct.prototype.Ex,Ct.prototype.grow=Ct.prototype.Hz,Ct.prototype.subtractMargin=Ct.prototype.Fv,Ct.prototype.addMargin=Ct.prototype.Co,Ct.prototype.inflate=Ct.prototype.Bc,Ct.prototype.offset=Ct.prototype.offset,Ct.prototype.contains=Ct.prototype.contains,Ct.prototype.containsRect=Ct.prototype.Re,Ct.prototype.containsPoint=Ct.prototype.ca,Ct.prototype.equalsApprox=Ct.prototype.Xa,Ct.prototype.equalTo=Ct.prototype.hi,Ct.prototype.equals=Ct.prototype.D,Ct.prototype.setSize=Ct.prototype.tA,Ct.prototype.setPoint=Ct.prototype.dd,Ct.prototype.set=Ct.prototype.set,Ct.prototype.setTo=Ct.prototype.sg;var fs=null,Da=null,Rs=[];Ct.className="Rect",Ct.parse=Qr,Ct.stringify=Sr,Ct.contains=Ki,Ct.intersects=_s,Ct.ZeroRect=fs=new Ct(0,0,0,0).ja(),Ct.NoRect=Da=new Ct(NaN,NaN,NaN,NaN).ja(),Ct.parse=Qr,Ct.stringify=Sr,Ct.contains=Ki,Ct.intersects=_s;function sr(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):nt("Invalid arguments to Margin constructor: "+e+", "+t+", "+n+", "+r),this._isFrozen=!1}sr.prototype.assign=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},sr.prototype.sg=function(e,t,n,r){return this.top=e,this.right=t,this.bottom=n,this.left=r,this},sr.prototype.set=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},sr.prototype.copy=function(){var e=new sr;return e.top=this.top,e.right=this.right,e.bottom=this.bottom,e.left=this.left,e},ye=sr.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)&&nt("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 sr;for(var i=NaN;e[t]==="";)t++;if((r=e[t++])&&(i=parseFloat(r)),isNaN(i))return new sr(n);for(var o=NaN;e[t]==="";)t++;if((r=e[t++])&&(o=parseFloat(r)),isNaN(o))return new sr(n,i);for(var a=NaN;e[t]==="";)t++;return(r=e[t++])&&(a=parseFloat(r)),isNaN(a)?new sr(n,i):new sr(n,i,o,a)}return new sr}function vo(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 sr?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 lt.B(this.top,e.top)&&lt.B(this.right,e.right)&&lt.B(this.bottom,e.bottom)&&lt.B(this.left,e.left)},ye.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},sr.alloc=function(){var e=Ao.pop();return e===void 0?new sr:e},sr.free=function(e){Ao.push(e)},sr.prototype.isReal=sr.prototype.w,sr.prototype.equalsApprox=sr.prototype.Xa,sr.prototype.equalTo=sr.prototype.hi,sr.prototype.equals=sr.prototype.D,sr.prototype.set=sr.prototype.set,sr.prototype.setTo=sr.prototype.sg;var Ko=null,yo=null,Ao=[];sr.className="Margin",sr.parse=mo,sr.stringify=vo,sr.ZeroMargin=Ko=new sr(0,0,0,0).ja(),sr.TwoMargin=yo=new sr(2,2,2,2).ja(),sr.parse=mo,sr.stringify=vo;function Cn(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 nr,xr,Xr,Jr,Yi,ir,es,Co,xo,ni,Qi,xs,io,ds,Hs,Is,Lo,Pa,$l,zs,oa,Gs,ol,du,pu,Bo,Xl,gu,bl,Dl,ps,As,Zo,us,Sl,Os;Cn.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},Cn.prototype.sg=function(e,t,n,r){return this.x=e,this.y=t,this.offsetX=n,this.offsetY=r,this},Cn.prototype.set=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},Cn.prototype.copy=function(){var e=new Cn;return e.x=this.x,e.y=this.y,e.offsetX=this.offsetX,e.offsetY=this.offsetY,e},ye=Cn.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)&&nt("cannot thaw constant: "+this),this._isFrozen=!1,this};function so(e,t){return e.x=NaN,e.y=NaN,e.offsetX=t,e}function qi(e){if(typeof e=="string"){if(e=e.trim(),e==="None")return nr;if(e==="TopLeft")return xr;if(e==="Top"||e==="TopCenter"||e==="MiddleTop")return Xr;if(e==="TopRight")return Jr;if(e==="Left"||e==="LeftCenter"||e==="MiddleLeft")return Yi;if(e==="Center")return ir;if(e==="Right"||e==="RightCenter"||e==="MiddleRight")return es;if(e==="BottomLeft")return Co;if(e==="Bottom"||e==="BottomCenter"||e==="MiddleBottom")return xo;if(e==="BottomRight")return ni;if(e==="TopSide")return Qi;if(e==="LeftSide")return xs;if(e==="RightSide")return io;if(e==="BottomSide")return ds;if(e==="TopBottomSides")return Hs;if(e==="LeftRightSides")return Is;if(e==="TopLeftSides")return Lo;if(e==="TopRightSides")return Pa;if(e==="BottomLeftSides")return $l;if(e==="BottomRightSides")return zs;if(e==="NotTopSide")return oa;if(e==="NotLeftSide")return Gs;if(e==="NotRightSide")return ol;if(e==="NotBottomSide")return du;if(e==="AllSides")return pu;if(e==="Default")return Bo;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 Cn(n,i,o,a)}return new Cn}function Oi(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(nr)?"None":this.D(xr)?"TopLeft":this.D(Xr)?"Top":this.D(Jr)?"TopRight":this.D(Yi)?"Left":this.D(ir)?"Center":this.D(es)?"Right":this.D(Co)?"BottomLeft":this.D(xo)?"Bottom":this.D(ni)?"BottomRight":this.D(Qi)?"TopSide":this.D(xs)?"LeftSide":this.D(io)?"RightSide":this.D(ds)?"BottomSide":this.D(Hs)?"TopBottomSides":this.D(Is)?"LeftRightSides":this.D(Lo)?"TopLeftSides":this.D(Pa)?"TopRightSides":this.D($l)?"BottomLeftSides":this.D(zs)?"BottomRightSides":this.D(oa)?"NotTopSide":this.D(Gs)?"NotLeftSide":this.D(ol)?"NotRightSide":this.D(du)?"NotBottomSide":this.D(pu)?"AllSides":this.D(Bo)?"Default":"None"},ye.D=function(e){return e instanceof Cn?(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 Cn(.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(Xl))e=xs;else if(e.D(gu))e=io;else if(e.D(bl))e=Qi;else if(e.D(Dl))e=ds;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},Cn.alloc=function(){var e=Yo.pop();return e===void 0?new Cn:e},Cn.free=function(e){Yo.push(e)},Cn.prototype.isDefault=Cn.prototype.Xb,Cn.prototype.isNone=Cn.prototype.ys,Cn.prototype.isSide=Cn.prototype.$c,Cn.prototype.isNoSpot=Cn.prototype.Mc,Cn.prototype.isSpot=Cn.prototype.sb,Cn.prototype.includesSide=Cn.prototype.Hf,Cn.prototype.opposite=Cn.prototype.gv,Cn.prototype.equals=Cn.prototype.D,Cn.prototype.set=Cn.prototype.set,Cn.prototype.setTo=Cn.prototype.sg;var Yo=[];Cn.className="Spot",Cn.parse=qi,Cn.stringify=Oi,Cn.None=nr=so(new Cn(0,0,0,0),0).ja(),Cn.Default=Bo=so(new Cn(0,0,-1,0),-1).ja(),Cn.TopLeft=xr=new Cn(0,0,0,0).ja(),Cn.TopCenter=Xr=new Cn(.5,0,0,0).ja(),Cn.TopRight=Jr=new Cn(1,0,0,0).ja(),Cn.LeftCenter=Yi=new Cn(0,.5,0,0).ja(),Cn.Center=ir=new Cn(.5,.5,0,0).ja(),Cn.RightCenter=es=new Cn(1,.5,0,0).ja(),Cn.BottomLeft=Co=new Cn(0,1,0,0).ja(),Cn.BottomCenter=xo=new Cn(.5,1,0,0).ja(),Cn.BottomRight=ni=new Cn(1,1,0,0).ja(),Cn.MiddleTop=ps=Xr,Cn.MiddleLeft=As=Yi,Cn.MiddleRight=Zo=es,Cn.MiddleBottom=us=xo,Cn.Top=bl=Xr,Cn.Left=Xl=Yi,Cn.Right=gu=es,Cn.Bottom=Dl=xo,Cn.TopSide=Qi=so(new Cn(0,0,1,1),1).ja(),Cn.LeftSide=xs=so(new Cn(0,0,1,2),1).ja(),Cn.RightSide=io=so(new Cn(0,0,1,4),1).ja(),Cn.BottomSide=ds=so(new Cn(0,0,1,8),1).ja(),Cn.TopBottomSides=Hs=so(new Cn(0,0,1,9),1).ja(),Cn.LeftRightSides=Is=so(new Cn(0,0,1,6),1).ja(),Cn.TopLeftSides=Lo=so(new Cn(0,0,1,3),1).ja(),Cn.TopRightSides=Pa=so(new Cn(0,0,1,5),1).ja(),Cn.BottomLeftSides=$l=so(new Cn(0,0,1,10),1).ja(),Cn.BottomRightSides=zs=so(new Cn(0,0,1,12),1).ja(),Cn.NotTopSide=oa=so(new Cn(0,0,1,14),1).ja(),Cn.NotLeftSide=Gs=so(new Cn(0,0,1,13),1).ja(),Cn.NotRightSide=ol=so(new Cn(0,0,1,11),1).ja(),Cn.NotBottomSide=du=so(new Cn(0,0,1,7),1).ja(),Cn.AllSides=pu=so(new Cn(0,0,1,15),1).ja(),Sl=new Cn(.156,.156).ja(),Os=new Cn(.844,.844).ja(),Cn.parse=qi,Cn.stringify=Oi;function Vn(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Vn.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},Vn.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},Vn.prototype.copy=function(){var e=new Vn;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},Vn.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Vn.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},Vn.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Vn.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Vn.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},Vn.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},Vn.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},Vn.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=Vn.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,d=this.m21,E=this.m22,O=this.dx,D=this.dy,X=t*o+n*d+O,se=t*a+n*E+D,ge=r*o+n*d+O,ve=r*a+n*E+D;return n=t*o+i*d+O,t=t*a+i*E+D,o=r*o+i*d+O,r=r*a+i*E+D,i=Math.min(X,ge),X=Math.max(X,ge),ge=Math.min(se,ve),se=Math.max(se,ve),i=Math.min(i,n),X=Math.max(X,n),ge=Math.min(ge,t),se=Math.max(se,t),i=Math.min(i,o),X=Math.max(X,o),ge=Math.min(ge,r),se=Math.max(se,r),e.h(i,ge,X-i,se-ge),e},Vn.alloc=function(){var e=ts.pop();return e===void 0?new Vn:e},Vn.free=function(e){ts.push(e)},Vn.prototype.transformRect=Vn.prototype.pp,Vn.prototype.transformPoint=Vn.prototype.Ga,Vn.prototype.scale=Vn.prototype.scale,Vn.prototype.translate=Vn.prototype.translate,Vn.prototype.rotate=Vn.prototype.rotate,Vn.prototype.invert=Vn.prototype.Vj,Vn.prototype.multiplyInverted=Vn.prototype.bv,Vn.prototype.multiply=Vn.prototype.multiply,Vn.prototype.reset=Vn.prototype.reset,Vn.prototype.isIdentity=Vn.prototype.ws,Vn.prototype.equals=Vn.prototype.D,Vn.prototype.setTransform=Vn.prototype.setTransform,Vn.prototype.set=Vn.prototype.set;var ts=[];Vn.className="Transform",Vn.xF="54a702f3e53909c447824c6706603faf4c";var lt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(e){if(0>=e)return 0;var t=lt.Uv;if(t===null){t=[];for(var n=0;2e3>=n;n++)t[n]=Math.sqrt(n);lt.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 d=e,E=n;else d=n,E=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 d<=o&&o<=E&&t-i<=a&&a<=t+i;if(E+=i,d-=i,d<=o&&o<=E&&(D+=i,O-=i,O<=a&&a<=D))if(E-d>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,d,E,O,D,X){if(lt.Yb(e,t,a,d,X,n,r)&&lt.Yb(e,t,a,d,X,i,o))return lt.Yb(e,t,a,d,X,O,D);var se=(e+n)/2,ge=(t+r)/2,ve=(n+i)/2,Te=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(se+ve)/2,n=(ge+Te)/2,ve=(ve+i)/2,Te=(Te+o)/2;var Ke=(r+ve)/2,Ge=(n+Te)/2;return lt.cs(e,t,se,ge,r,n,Ke,Ge,E,O,D,X)||lt.cs(Ke,Ge,ve,Te,i,o,a,d,E,O,D,X)},ax:function(e,t,n,r,i,o,a,d,E){var O=(n+i)/2,D=(r+o)/2;return E.h((((e+n)/2+O)/2+(O+(i+a)/2)/2)/2,(((t+r)/2+D)/2+(D+(o+d)/2)/2)/2),E},My:function(e,t,n,r,i,o,a,d){var E=(n+i)/2,O=(r+o)/2;return dr(((e+n)/2+E)/2,((t+r)/2+O)/2,(E+(i+a)/2)/2,(O+(o+d)/2)/2)},Dl:function(e,t,n,r,i,o,a,d,E,O){if(lt.Yb(e,t,a,d,E,n,r)&&lt.Yb(e,t,a,d,E,i,o))Rr(O,e,t,0,0),Rr(O,a,d,0,0);else{var D=(e+n)/2,X=(t+r)/2,se=(n+i)/2,ge=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(D+se)/2,n=(X+ge)/2,se=(se+i)/2,ge=(ge+o)/2;var ve=(r+se)/2,Te=(n+ge)/2;lt.Dl(e,t,D,X,r,n,ve,Te,E,O),lt.Dl(ve,Te,se,ge,i,o,a,d,E,O)}return O},Qe:function(e,t,n,r,i,o,a,d,E,O){if(lt.Yb(e,t,a,d,E,n,r)&&lt.Yb(e,t,a,d,E,i,o))O.length===0&&(O.push(e),O.push(t)),O.push(a),O.push(d);else{var D=(e+n)/2,X=(t+r)/2,se=(n+i)/2,ge=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(D+se)/2,n=(X+ge)/2,se=(se+i)/2,ge=(ge+o)/2;var ve=(r+se)/2,Te=(n+ge)/2;lt.Qe(e,t,D,X,r,n,ve,Te,E,O),lt.Qe(ve,Te,se,ge,i,o,a,d,E,O)}return O},jv:function(e,t,n,r,i,o,a,d,E,O){if(lt.Yb(e,t,i,o,O,n,r))return lt.Yb(e,t,i,o,O,d,E);var D=(e+n)/2,X=(t+r)/2;n=(n+i)/2,r=(r+o)/2;var se=(D+n)/2,ge=(X+r)/2;return lt.jv(e,t,D,X,se,ge,a,d,E,O)||lt.jv(se,ge,n,r,i,o,a,d,E,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,d){if(lt.Yb(e,t,i,o,a,n,r))Rr(d,e,t,0,0),Rr(d,i,o,0,0);else{var E=(e+n)/2,O=(t+r)/2;n=(n+i)/2,r=(r+o)/2;var D=(E+n)/2,X=(O+r)/2;lt.iv(e,t,E,O,D,X,a,d),lt.iv(D,X,n,r,i,o,a,d)}return d},ep:function(e,t,n,r,i,o,a,d){if(lt.Yb(e,t,i,o,a,n,r))d.length===0&&(d.push(e),d.push(t)),d.push(i),d.push(o);else{var E=(e+n)/2,O=(t+r)/2;n=(n+i)/2,r=(r+o)/2;var D=(E+n)/2,X=(O+r)/2;lt.ep(e,t,E,O,D,X,a,d),lt.ep(D,X,n,r,i,o,a,d)}return d},Eo:function(e,t,n,r,i,o,a,d,E,O,D,X,se,ge){if(lt.Yb(e,t,a,d,se,n,r)&&lt.Yb(e,t,a,d,se,i,o))return!lt.Rl(e,t,a,d,E,O,D,X)||(se=(e-a)*(O-X)-(t-d)*(E-D),se===0)?!1:(ge.h(((e*d-t*a)*(E-D)-(e-a)*(E*X-O*D))/se,((e*d-t*a)*(O-X)-(t-d)*(E*X-O*D))/se),!0);var ve=(e+n)/2,Te=(t+r)/2,Ke=(n+i)/2,Ge=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(ve+Ke)/2,n=(Te+Ge)/2,Ke=(Ke+i)/2,Ge=(Ge+o)/2;var Xe=(r+Ke)/2,Ze=(n+Ge)/2,tt=1/0,at=!1,St=0,ln=0;return lt.Eo(e,t,ve,Te,r,n,Xe,Ze,E,O,D,X,se,ge)&&(e=(ge.x-E)*(ge.x-E)+(ge.y-O)*(ge.y-O),e<tt&&(tt=e,at=!0,St=ge.x,ln=ge.y)),lt.Eo(Xe,Ze,Ke,Ge,i,o,a,d,E,O,D,X,se,ge)&&(ge.x-E)*(ge.x-E)+(ge.y-O)*(ge.y-O)<tt&&(at=!0,St=ge.x,ln=ge.y),at&&(ge.x=St,ge.y=ln),at},Fo:function(e,t,n,r,i,o,a,d,E,O,D,X,se){var ge=0;if(lt.Yb(e,t,a,d,se,n,r)&&lt.Yb(e,t,a,d,se,i,o)){if(se=(e-a)*(O-X)-(t-d)*(E-D),se===0)return ge;var ve=((e*d-t*a)*(E-D)-(e-a)*(E*X-O*D))/se,Te=((e*d-t*a)*(O-X)-(t-d)*(E*X-O*D))/se;if(ve>=D)return ge;if((E>D?E-D:D-E)<(O>X?O-X:X-O)){if(t<d?(E=t,e=d):(E=d,e=t),Te<E||Te>e)return ge}else if(e<a?(E=e,e=a):E=a,ve<E||ve>e)return ge;0<se?ge++:0>se&&ge--}else{ve=(e+n)/2,Te=(t+r)/2;var Ke=(n+i)/2,Ge=(r+o)/2;i=(i+a)/2,o=(o+d)/2,r=(ve+Ke)/2,n=(Te+Ge)/2,Ke=(Ke+i)/2,Ge=(Ge+o)/2;var Xe=(r+Ke)/2,Ze=(n+Ge)/2;ge+=lt.Fo(e,t,ve,Te,r,n,Xe,Ze,E,O,D,X,se),ge+=lt.Fo(Xe,Ze,Ke,Ge,i,o,a,d,E,O,D,X,se)}return ge},qh:function(e,t,n,r,i,o,a){return lt.$(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)):lt.$(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,d,E){return lt.B(e,n)&&lt.B(t,r)?(E.h(e,t),!1):lt.$(i,a)?lt.$(e,n)?(lt.qh(e,t,n,r,i,o,E),!1):lt.qh(e,t,n,r,i,(r-t)/(n-e)*(i-e)+t,E):(d=(d-o)/(a-i),lt.$(e,n)?(n=d*(e-i)+o,t<r?(i=t,t=r):i=r,n<i?(E.h(e,i),!1):n>t?(E.h(e,t),!1):(E.h(e,n),!0)):(a=(r-t)/(n-e),lt.$(d,a)?(lt.qh(e,t,n,r,i,o,E),!1):(i=(a*e-d*i+o-t)/(a-d),lt.$(a,0)?(e<n?(r=e,e=n):r=n,i<r?(E.h(r,t),!1):i>e?(E.h(e,t),!1):(E.h(i,t),!0)):lt.qh(e,t,n,r,i,a*(i-e)+t,E))))},MA:function(e,t,n,r,i){return lt.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,d,E,O){function D(Ke,Ge){var Xe=(Ke-e)*(Ke-e)+(Ge-t)*(Ge-t);Xe<X&&(X=Xe,E.h(Ke,Ge))}var X=1/0;D(E.x,E.y);var se=0,ge=0,ve=0,Te=0;if(i<a?(se=i,ge=a):(se=a,ge=i),o<d?(ve=i,Te=a):(ve=a,Te=i),se=(ge-se)/2+O,O=(Te-ve)/2+O,i=(i+a)/2,o=(o+d)/2,se===0||O===0)return E;if(.5>(n>e?n-e:e-n)){if(se=1-(n-i)*(n-i)/(se*se),0>se)return E;se=Math.sqrt(se),r=-O*se+o,D(n,O*se+o),D(n,r)}else{if(n=(r-t)/(n-e),r=1/(se*se)+n*n/(O*O),d=2*n*(t-n*e)/(O*O)-2*n*o/(O*O)-2*i/(se*se),se=d*d-4*r*(2*n*e*o/(O*O)-2*t*o/(O*O)+o*o/(O*O)+i*i/(se*se)-1+(t-n*e)*(t-n*e)/(O*O)),0>se)return E;se=Math.sqrt(se),O=(-d+se)/(2*r),D(O,n*O-n*e+t),se=(-d-se)/(2*r),D(se,n*se-n*e+t)}return E},Ff:function(e,t,n,r,i,o,a,d,E){var O=1e21,D=e,X=t;if(lt.Ve(e,t,e,r,i,o,a,d,E)){var se=(E.x-i)*(E.x-i)+(E.y-o)*(E.y-o);se<O&&(O=se,D=E.x,X=E.y)}return lt.Ve(n,t,n,r,i,o,a,d,E)&&(se=(E.x-i)*(E.x-i)+(E.y-o)*(E.y-o),se<O&&(O=se,D=E.x,X=E.y)),lt.Ve(e,t,n,t,i,o,a,d,E)&&(t=(E.x-i)*(E.x-i)+(E.y-o)*(E.y-o),t<O&&(O=t,D=E.x,X=E.y)),lt.Ve(e,r,n,r,i,o,a,d,E)&&(e=(E.x-i)*(E.x-i)+(E.y-o)*(E.y-o),e<O&&(O=e,D=E.x,X=E.y)),E.h(D,X),1e21>O},us:function(e,t,n){return lt.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,d){var E=e+n,O=t+r;return i===a?(o<d?(a=o,o=d):a=d,e<=i&&i<=E&&a<=O&&o>=t):o===d?(i<a?(d=i,i=a):d=a,t<=o&&o<=O&&d<=E&&i>=e):!!(Ki(e,t,n,r,i,o)||Ki(e,t,n,r,a,d)||lt.Rl(e,t,E,t,i,o,a,d)||lt.Rl(E,t,E,O,i,o,a,d)||lt.Rl(E,O,e,O,i,o,a,d)||lt.Rl(e,O,e,t,i,o,a,d))},Rl:function(e,t,n,r,i,o,a,d){return e===n&&t===r&&i===a&&o===d?e===i&&t===o:0>=lt.Fl(e,t,n,r,i,o)*lt.Fl(e,t,n,r,a,d)&&0>=lt.Fl(i,o,a,d,e,t)*lt.Fl(i,o,a,d,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 d=r>i?-1:1;o=[];var E=a/2,O=r;if(r=Math.min(2*a,Math.abs(i-r)),1e-5>r)return E=O+d*Math.min(r,E),d=e+n*Math.cos(O),O=t+n*Math.sin(O),e+=n*Math.cos(E),t+=n*Math.sin(E),n=(d+e)/2,E=(O+t)/2,o.push([d,O,n,E,n,E,e,t]),o;for(;1e-5<r;)i=O+d*Math.min(r,E),o.push(lt.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),d=e*Math.sin(o),E=-d,O=a*a+E*E,D=O+a*a+E*d;return O=4/3*(Math.sqrt(2*O*D)-D)/(a*d-E*a),d=a-O*E,a=E+O*a,E=-a,O=o+t,o=Math.cos(O),O=Math.sin(O),[r+e*Math.cos(t),i+e*Math.sin(t),r+d*o-a*O,i+d*O+a*o,r+d*o-E*O,i+d*O+E*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 d=n;return n+i-e<i/2&&(d=n+i),e=r,r+o-t<o/2&&(e=r+o),a.h(d,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,d=0;else a=0,d=1;var E=a===0?e:t,O=a===0?n:r;return(a===0?i:o)&&(O=-O),a=d,n=a===0?n:r,(a===0?i:o)&&(n=-n),lt.az(E,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,d=-o+a,E=-o+Math.sqrt(e*e+a*a);t=d;for(var O=0;9999999999>O&&(t=.5*(d+E),!(t===d||t===E));++O){var D=e/(t+i),X=a/(t+o);if(D=D*D+X*X-1,0<D)d=t;else if(0>D)E=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 Or,um:new Or,Mf:new Or,Nf:0,vm:100};lt.za=lt.AA;function Qt(e){Yn(this),this.l=2,e===void 0&&(e=Qt.o),this.na=e,this.Ec=this.Dc=this.pd=this.od=0,e===Qt.o?this.ee=new Gt:(Qt.V===null&&(Qt.V=new Gt().freeze()),this.ee=Qt.V),this.aq=this.ee.Ja,this.Ip=new Ct().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=xr,this.gg=ni,this.Rk=this.Sk=NaN,this.Uf=Yt}Qt.prototype.copy=function(){var e=new Qt;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===Qt.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},Qt.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Qt.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Qt.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},Qt.prototype.ka=function(){if(Object.isFrozen(this)&&nt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Qt.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},Qt.prototype.Xa=function(e){if(!(e instanceof Qt))return!1;if(this.type!==e.type)return this.type===Qt.j&&e.type===Qt.o?wa(this,e):e.type===Qt.j&&this.type===Qt.o?wa(e,this):!1;if(this.type===Qt.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 lt.B(this.startX,e.startX)&&lt.B(this.startY,e.startY)&&lt.B(this.endX,e.endX)&&lt.B(this.endY,e.endY)};function wa(e,t){return e.type!==Qt.j||t.type!==Qt.o?!1:!!(t.figures.count===1&&(t=t.figures.M(0),t.segments.count===1&&lt.B(e.startX,t.startX)&&lt.B(e.startY,t.startY)&&(t=t.segments.M(0),t.type===yi&&lt.B(e.endX,t.endX)&&lt.B(e.endY,t.endY))))}Qt.ia=function(e){return e.toString()},Qt.prototype.qb=function(e){e.classType===Qt&&(this.type=e)},Qt.prototype.toString=function(e){switch(e===void 0&&(e=-1),this.type){case Qt.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 Qt.u:var t=new Ct(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 Qt.F:if(t=new Ct(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 Qt.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()}},Qt.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},Qt.parse=function(e,t){function n(){return Te>=tt-1?!0:O[Te+1].match(at)!==null}function r(){return Te++,O[Te]}function i(er){var $n=parseFloat(r()),ei=parseFloat(r());Ke===Ke.toLowerCase()&&($n=Ze.x+$n,ei=Ze.y+ei),er.h($n,ei)}function o(){return i(Ze),Ze}function a(){return i(Xe),Xe}function d(){var er=Ge.toLowerCase();return er!=="c"&&er!=="s"&&er!=="q"&&er!=="t"?Ze:new Pe(2*Ze.x-Xe.x,2*Ze.y-Xe.y)}t===void 0&&(t=!1);var E=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;e=e.replace(/,/gm," "),e=e.replace(E,"$1 $2"),e=e.replace(E,"$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){E=An();for(var X="",se=!1,ge=0;ge<D.length;ge++){var ve=D[ge];ve!=="."||se?ve==="."?(E.push(X),X="."):X+=ve:(se=!0,X+=ve)}for(E.push(X),O.splice(e,1),D=0;D<E.length;D++)O.splice(e+D,0,E[D]);e+=E.length-1,Nn(E)}}var Te=-1,Ke="",Ge="";E=new Pe(0,0);var Xe=new Pe(0,0),Ze=new Pe(0,0),tt=O.length;e=V0(null),se=X=D=!1,ge=!0,ve=null;for(var at=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Te>=tt-1);)if(Ge=Ke,Ke=r(),Ke!=="")switch(Ke.toUpperCase()){case"X":ge=!0,X=D=!1;break;case"M":for(ve=o(),e.mc===null||ge===!0?(ud(e,ve.x,ve.y,D,!X,se),ge=!1):e.moveTo(ve.x,ve.y),E.assign(Ze);!n();)ve=o(),e.lineTo(ve.x,ve.y);break;case"L":for(;!n();)ve=o(),e.lineTo(ve.x,ve.y);break;case"H":for(;!n();)Ze=new Pe((Ke===Ke.toLowerCase()?Ze.x:0)+parseFloat(r()),Ze.y),e.lineTo(Ze.x,Ze.y);break;case"V":for(;!n();)Ze=new Pe(Ze.x,(Ke===Ke.toLowerCase()?Ze.y:0)+parseFloat(r())),e.lineTo(Ze.x,Ze.y);break;case"C":for(;!n();){ve=new Pe,i(ve);var St=a(),ln=o();Ic(e,ve.x,ve.y,St.x,St.y,ln.x,ln.y)}break;case"S":for(;!n();)ve=d(),St=a(),ln=o(),Ic(e,ve.x,ve.y,St.x,St.y,ln.x,ln.y);break;case"Q":for(;!n();)ve=a(),St=o(),Jg(e,ve.x,ve.y,St.x,St.y);break;case"T":for(;!n();)Xe=ve=d(),St=o(),Jg(e,ve.x,ve.y,St.x,St.y);break;case"B":for(;!n();){ve=parseFloat(r()),St=parseFloat(r()),ln=parseFloat(r());var _n=parseFloat(r()),Sn=parseFloat(r()),qt=Sn,Pt=!1;n()||(qt=parseFloat(r()),n()||(Pt=parseFloat(r())!==0)),Ke===Ke.toLowerCase()&&(ln+=Ze.x,_n+=Ze.y),e.arcTo(ve,St,ln,_n,Sn,qt,Pt)}break;case"A":for(;!n();)ve=Math.abs(parseFloat(r())),St=Math.abs(parseFloat(r())),ln=parseFloat(r()),Sn=_n=!1,Pt=qt=0,qt=r(),qt.length===1?(_n=!!parseFloat(qt),Sn=!!parseFloat(r()),qt=parseFloat(r())):qt.length===2?(_n=!!parseFloat(qt[0]),Sn=!!parseFloat(qt[1]),qt=parseFloat(r())):(_n=!!parseFloat(qt[0]),Sn=!!parseFloat(qt[1]),qt=parseFloat(qt.slice(2))),Pt=parseFloat(r()),Ke===Ke.toLowerCase()&&(qt=Ze.x+qt,Pt=Ze.y+Pt),Ze.h(qt,Pt),j1(e,ve,St,ln,_n,Sn,qt,Pt);break;case"Z":B1(e),Ze.assign(E);break;case"F":for(ve="",St=1;O[Te+St];)if(O[Te+St]==="0")se=!0,St++;else if(O[Te+St].match(/[Uu]/)!==null)St++;else if(O[Te+St].match(at)===null)St++;else{ve=O[Te+St];break}ve.match(/[Mm]/)?D=!0:0<e.mc.segments.length&&(e.mc.isFilled=!0);break;case"U":for(ve="",St=1;O[Te+St];)if(O[Te+St].match(/[Ff]/)!==null)St++;else if(O[Te+St].match(at)===null)St++;else{ve=O[Te+St];break}ve.match(/[Mm]/)?X=!0:e.mc.isShadowed=!1}if(E=e.os,Qg=e,t)for(t=E.figures.iterator;t.next();)t.value.isFilled=!0;return E},Qt.Ha=function(e,t){for(var n=e.length,r=Pe.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}Pe.free(r)},Qt.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Qt.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},Qt.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Qt.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),sl(this,e,!1),Rr(e,0,0,0,0),e.freeze()},Qt.prototype.ix=function(){var e=new Ct;return sl(this,e,!0),e};function sl(e,t,n){switch(e.type){case Qt.j:case Qt.u:case Qt.F:n?t.h(e.od,e.pd,0,0):Rr(t,e.od,e.pd,0,0),Rr(t,e.Dc,e.Ec,0,0);break;case Qt.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):Rr(t,o.startX,o.startY,0,0);for(var a=o.segments.s,d=a.length,E=o.startX,O=o.startY,D=0;D<d;D++){var X=a[D];switch(X.type){case yi:case $i:E=X.endX,O=X.endY,Rr(t,E,O,0,0);break;case ko:lt.Dl(E,O,X.point1X,X.point1Y,X.point2X,X.point2Y,X.endX,X.endY,.5,t),E=X.endX,O=X.endY;break;case Ws:lt.iv(E,O,X.point1X,X.point1Y,X.endX,X.endY,.5,t),E=X.endX,O=X.endY;break;case go:case Zs:var se=X.type===go?gs(X,o):Bs(X,o,E,O),ge=se.length;if(ge===0){E=X.type===go?X.centerX:X.endX,O=X.type===go?X.centerY:X.endY,Rr(t,E,O,0,0);break}X=null;for(var ve=0;ve<ge;ve++)X=se[ve],lt.Dl(X[0],X[1],X[2],X[3],X[4],X[5],X[6],X[7],.5,t);X!==null&&(E=X[6],O=X[7]);break;default:nt("Unknown Segment type: "+X.type)}}}break;default:nt("Unknown Geometry type: "+e.type)}}Qt.prototype.normalize=function(){this._isFrozen&&vt(this);var e=this.ix();return this.offset(-e.x,-e.y),new Pe(-e.x,-e.y)},Qt.prototype.offset=function(e,t){return this._isFrozen&&vt(this),this.transform(1,0,0,1,e,t),this},Qt.prototype.scale=function(e,t){return this._isFrozen&&vt(this),this.transform(e,0,0,t,0,0),this},Qt.prototype.rotate=function(e,t,n){this._isFrozen&&vt(this),t===void 0&&(t=0),n===void 0&&(n=0);var r=Vn.alloc();return r.reset(),r.rotate(e,t,n),this.transform(r.m11,r.m12,r.m21,r.m22,r.dx,r.dy),Vn.free(r),this},ye=Qt.prototype,ye.transform=function(e,t,n,r,i,o){switch(this.type){case Qt.j:case Qt.u:case Qt.F:var a=this.od,d=this.pd;this.od=a*e+d*n+i,this.pd=a*t+d*r+o,a=this.Dc,d=this.Ec,this.Dc=a*e+d*n+i,this.Ec=a*t+d*r+o;break;case Qt.o:for(var E=this.figures.s,O=E.length,D=0;D<O;D++){var X=E[D];a=X.startX,d=X.startY,X.startX=a*e+d*n+i,X.startY=a*t+d*r+o,X=X.segments.s;for(var se=X.length,ge=0;ge<se;ge++){var ve=X[ge];switch(ve.type){case yi:case $i:a=ve.endX,d=ve.endY,ve.endX=a*e+d*n+i,ve.endY=a*t+d*r+o;break;case ko:a=ve.point1X,d=ve.point1Y,ve.point1X=a*e+d*n+i,ve.point1Y=a*t+d*r+o,a=ve.point2X,d=ve.point2Y,ve.point2X=a*e+d*n+i,ve.point2Y=a*t+d*r+o,a=ve.endX,d=ve.endY,ve.endX=a*e+d*n+i,ve.endY=a*t+d*r+o;break;case Ws:a=ve.point1X,d=ve.point1Y,ve.point1X=a*e+d*n+i,ve.point1Y=a*t+d*r+o,a=ve.endX,d=ve.endY,ve.endX=a*e+d*n+i,ve.endY=a*t+d*r+o;break;case go:a=ve.centerX,d=ve.centerY,ve.centerX=a*e+d*n+i,ve.centerY=a*t+d*r+o,t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),ve.startAngle+=a),0>e&&(ve.startAngle=180-ve.startAngle,ve.sweepAngle=-ve.sweepAngle),0>r&&(ve.startAngle=-ve.startAngle,ve.sweepAngle=-ve.sweepAngle),ve.radiusX*=Math.sqrt(e*e+n*n),ve.radiusY!==void 0&&(ve.radiusY*=Math.sqrt(t*t+r*r));break;case Zs:if(a=ve.endX,d=ve.endY,ve.endX=a*e+d*n+i,ve.endY=a*t+d*r+o,ve.radiusX===0||ve.radiusY===0)break;t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),ve.xAxisRotation+=a),0>e&&(ve.xAxisRotation=180-ve.xAxisRotation,ve.isClockwiseArc=!ve.isClockwiseArc),0>r&&(ve.xAxisRotation=-ve.xAxisRotation,ve.isClockwiseArc=!ve.isClockwiseArc),ve.radiusX*=Math.sqrt(e*e+n*n),ve.radiusY*=Math.sqrt(t*t+r*r);break;default:nt("Unknown Segment type: "+ve.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 Qt.j:return lt.Yb(n,r,i,o,t,e.x,e.y);case Qt.u:var a=Ct.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),Ct.free(a),e;case Qt.F:a=Math.min(n,i)-t;var d=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),d=e.y-(d+t),1>=a*a/(n*n)+d*d/(t*t));case Qt.o:return jo(this,e,t,!0,!1);default:return!1}};function jo(e,t,n,r,i){var o=t.x;t=t.y;for(var a=e.bounds.x-20,d=0,E,O,D,X,se=e.figures.s,ge=se.length,ve=0;ve<ge;ve++){var Te=se[ve],Ke=!Te.isEvenOdd;if(Te.isFilled){if(r&&Te.ca(o,t,n))return!0;var Ge=Te.segments;E=Te.startX,O=Te.startY;for(var Xe=E,Ze=O,tt=Ge.s,at=0;at<=Ge.length;at++){var St=void 0;if(at!==Ge.length){St=tt[at];var ln=St.type;e=St.endX,X=St.endY}else ln=yi,e=Xe,X=Ze;switch(ln){case $i:if(Xe=ns(o,t,a,t,E,O,Xe,Ze),isNaN(Xe))return!0;d+=Xe,Xe=e,Ze=X;break;case yi:if(E=ns(o,t,a,t,E,O,e,X),isNaN(E))return!0;d+=E;break;case ko:D=lt.Fo(E,O,St.point1X,St.point1Y,St.point2X,St.point2Y,e,X,a,t,o,t,.5),d+=D;break;case Ws:D=lt.Fo(E,O,(E+2*St.point1X)/3,(O+2*St.point1Y)/3,(2*St.point1X+e)/3,(2*St.point1Y+X)/3,e,X,a,t,o,t,.5),d+=D;break;case go:case Zs:ln=St.type===go?gs(St,Te):Bs(St,Te,E,O);var _n=ln.length;if(_n===0){if(E=ns(o,t,a,t,E,O,St.type===go?St.centerX:St.endX,St.type===go?St.centerY:St.endY),isNaN(E))return!0;d+=E;break}St=null;for(var Sn=0;Sn<_n;Sn++){if(St=ln[Sn],Sn===0){if(D=ns(o,t,a,t,E,O,St[0],St[1]),isNaN(D))return!0;d+=D}D=lt.Fo(St[0],St[1],St[2],St[3],St[4],St[5],St[6],St[7],a,t,o,t,.5),d+=D}St!==null&&(e=St[6],X=St[7]);break;default:nt("Unknown Segment type: "+St.type)}E=e,O=X}if(Ke){if(d!==0)return!0}else if(d%2!==0)return!0;d=0}else if(Te.ca(o,t,i?n:n+2))return!0}return!1}function ns(e,t,n,r,i,o,a,d){if(lt.Yb(i,o,a,d,.05,e,t))return NaN;var E=(e-n)*(o-d);if(E===0)return 0;var O=((e*r-t*n)*(i-a)-(e-n)*(i*d-o*a))/E;if(t=(e*r-t*n)*(o-d)/E,O>=e)return 0;if((i>a?i-a:a-i)<(o>d?o-d:d-o)){if(o<d){if(t<o||t>d)return 0}else if(t<d||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<E?1:-1}function sa(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 Pe),this.type===Qt.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,d=0;d<i;d++){var E=r[d],O=E.length;for(e=0;e<O;e++){var D=E[e];if(a+D>=o)return r=o-a,r=D===0?0:r/D,n=n[d],d=n[2*e],i=n[2*e+1],t.h(d+(n[2*e+2]-d)*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===Qt.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 d=n[a],E=d.length;for(e=0;e<E;e++){var O=d[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===Qt.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,d=0;d<i;d++){var E=r[d],O=E.length;for(e=0;e<O;e++){var D=E[e];if(a+D>=o)return r=o-a,r=D===0?0:r/D,D=n[d],n=D[2*e],d=D[2*e+1],i=D[2*e+2],e=D[2*e+3],t[0]=n+(i-n)*r,t[1]=d+(e-d)*r,t[2]=1>Math.abs(i-n)&&1>Math.abs(e-d)?0:1>Math.abs(i-n)?0<=e-d?90:270:1>Math.abs(e-d)?0<=i-n?0:180:180*Math.atan2(e-d,i-n)/Math.PI,t;a+=D}}return t},ye.xx=function(e){if(this.type===Qt.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 d=Pe.alloc();return lt.qh(t,n,r,i,o,e,d),e=d.x,o=d.y,Pe.free(d),Math.sqrt(((e-t)*(e-t)+(o-n)*(o-n))/a)}}else if(this.type===Qt.u){a=this.startX,d=this.startY;var E=this.endX;if(i=this.endY,a!==E||d!==i){t=E-a,n=i-d,o=2*t+2*n,r=e.x,e=e.y,r=Math.min(Math.max(r,a),E),e=Math.min(Math.max(e,d),i),a=Math.abs(r-a),E=Math.abs(r-E),d=Math.abs(e-d),i=Math.abs(e-i);var O=Math.min(a,E,d,i);if(O===d)return r/o;if(O===E)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=Pe.alloc(),i=1/0,d=a=0,E=t.length;for(var D=O=0,X=0;X<E;X++)for(var se=t[X],ge=n[X],ve=se.length,Te=0;Te<ve;Te+=2){var Ke=se[Te],Ge=se[Te+1];if(Te!==0){lt.qh(O,D,Ke,Ge,e.x,e.y,r);var Xe=(r.x-e.x)*(r.x-e.x)+(r.y-e.y)*(r.y-e.y);Xe<i&&(i=Xe,a=d,a+=Math.sqrt((r.x-O)*(r.x-O)+(r.y-D)*(r.y-D))),d+=ge[(Te-2)/2]}O=Ke,D=Ge}return Pe.free(r),e=a/o,0>e?0:1<e?1:e}return 0};function Ea(e){if(e.tk===null){var t=e.tk=[],n=e.ym=[],r=[],i=[];if(e.type===Qt.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===Qt.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===Qt.F){var o=new To;o.startX=e.endX,o.startY=(e.startY+e.endY)/2;var a=new Fr(go);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=gs(a,o),i=e.length,i===0)r.push(a.centerX),r.push(a.centerY);else{a=o.startX,o=o.startY;for(var d=0;d<i;d++){var E=e[d];lt.Qe(a,o,E[2],E[3],E[4],E[5],E[6],E[7],.5,r),a=E[6],o=E[7]}}t.push(r),n.push(Zl(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,d=a,E=o;for(var O=i.segments.s,D=O.length,X=0;X<D;X++){var se=O[X];switch(se.type){case $i:4<=r.length&&(t.push(r),n.push(Zl(r))),r=[],r.push(se.endX),r.push(se.endY),a=se.endX,o=se.endY,d=a,E=o;break;case yi:r.push(se.endX),r.push(se.endY),a=se.endX,o=se.endY;break;case ko:lt.Qe(a,o,se.point1X,se.point1Y,se.point2X,se.point2Y,se.endX,se.endY,.5,r),a=se.endX,o=se.endY;break;case Ws:lt.ep(a,o,se.point1X,se.point1Y,se.endX,se.endY,.5,r),a=se.endX,o=se.endY;break;case go:var ge=gs(se,i),ve=ge.length;if(ve===0){r.push(se.centerX),r.push(se.centerY),a=se.centerX,o=se.centerY;break}for(var Te=0;Te<ve;Te++){var Ke=ge[Te];lt.Qe(a,o,Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7],.5,r),a=Ke[6],o=Ke[7]}break;case Zs:if(ge=Bs(se,i,a,o),ve=ge.length,Te=se.endX,Ke=se.endY,ve===0){r.push(Te),r.push(Ke),a=Te,o=Ke;break}for(Te=0;Te<ve;Te++)Ke=ge[Te],lt.Qe(a,o,Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7],.5,r),a=Ke[6],o=Ke[7];break;default:nt("Segment not of valid type: "+se.type)}se.isClosed&&(r.push(d),r.push(E))}4<=r.length&&(t.push(r),n.push(Zl(r)))}}}function Zl(e){for(var t=[],n=0,r=0,i=e.length,o=0;o<i;o+=2){var a=e[o],d=e[o+1];o!==0&&t.push(Math.sqrt(jn(n,r,a,d))),n=a,r=d}return t}ye.add=function(e){return this.ee.add(e),this},ye.pm=function(e,t,n,r,i,o,a,d){return this._isFrozen&&vt(this),this.fg=new Cn(e,t,i,o).freeze(),this.gg=new Cn(n,r,a,d).freeze(),this},Dn.Object.defineProperties(Qt.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 Ea(this),this.tk}},flattenedLengths:{get:function(){return Ea(this),this.ym}},flattenedTotalLength:{get:function(){var e=this.zm;if(isNaN(e)){if(this.type===Qt.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===Qt.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&&vt(this,e),this.na=e,e===Qt.o?this.ee=new Gt:(Qt.V===null&&(Qt.V=new Gt().freeze()),this.ee=Qt.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(e){this.od!==e&&(this._isFrozen&&vt(this,e),this.od=e,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(e){this.pd!==e&&(this._isFrozen&&vt(this,e),this.pd=e,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(e){this.Dc!==e&&(this._isFrozen&&vt(this,e),this.Dc=e,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(e){this.Ec!==e&&(this._isFrozen&&vt(this,e),this.Ec=e,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(e){this.ee!==e&&(this._isFrozen&&vt(this,e),this.ee=e,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(e){this._isFrozen&&vt(this,e),this.fg=e.J()}},spot2:{get:function(){return this.gg},set:function(e){this._isFrozen&&vt(this,e),this.gg=e.J()}},defaultStretch:{get:function(){return this.Uf},set:function(e){this._isFrozen&&vt(this,e),this.Uf=e}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Qt.prototype.setSpots=Qt.prototype.pm,Qt.prototype.add=Qt.prototype.add,Qt.prototype.getFractionForPoint=Qt.prototype.xx,Qt.prototype.getPointAndAngleAlongPath=Qt.prototype.Qu,Qt.prototype.getAngleAlongPath=Qt.prototype.wx,Qt.prototype.getPointAlongPath=Qt.prototype.Pu,Qt.prototype.containsPoint=Qt.prototype.ca,Qt.prototype.transform=Qt.prototype.transform,Qt.prototype.rotate=Qt.prototype.rotate,Qt.prototype.scale=Qt.prototype.scale,Qt.prototype.offset=Qt.prototype.offset,Qt.prototype.normalize=Qt.prototype.normalize,Qt.prototype.computeBoundsWithoutOrigin=Qt.prototype.ix,Qt.prototype.equalsApprox=Qt.prototype.Xa,Qt.className="Geometry",Qt.j=new Ut(Qt,"Line",0),Qt.u=new Ut(Qt,"Rectangle",1),Qt.F=new Ut(Qt,"Ellipse",2),Qt.o=new Ut(Qt,"Path",3),Qt.V=null,Qt.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Qt.className="Geometry",Qt.stringify=Qt.ia,Qt.fillPath=Qt.nb,Qt.parse=Qt.parse,Qt.Line=Qt.j,Qt.Rectangle=Qt.u,Qt.Ellipse=Qt.F,Qt.Path=Qt.o;function To(e,t,n,r,i){Yn(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 Gt,this.sr=this.pl.Ja,this.fw=null}To.prototype.copy=function(){var e=new To;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=To.prototype,ye.Xa=function(e){if(!(e instanceof To&&lt.B(this.startX,e.startX)&&lt.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,d=this.segments.s,E=d.length,O=0;O<E;O++){var D=d[O];switch(D.type){case $i:o=D.endX,a=D.endY,r=D.endX,i=D.endY;break;case yi:if(lt.Yb(r,i,D.endX,D.endY,n,e,t))return!0;r=D.endX,i=D.endY;break;case ko:if(lt.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 Ws:if(lt.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 go:case Zs:var X=D.type===go?gs(D,this):Bs(D,this,r,i),se=X.length,ge=D.type===go?D.centerX:D.endX,ve=D.type===go?D.centerY:D.endY;if(se===0){if(lt.Yb(r,i,ge,ve,n,e,t))return!0;r=ge,i=ve;break}for(ge=null,ve=0;ve<se;ve++)if(ge=X[ve],ve===0&&lt.Yb(r,i,ge[0],ge[1],n,e,t)||lt.cs(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.5,e,t,n))return!0;ge!==null&&(r=ge[6],i=ge[7]);break;default:nt("Unknown Segment type: "+D.type)}if(D.isClosed&&(r!==o||i!==a)&&lt.Yb(r,i,o,a,n,e,t))return!0}return!1},Dn.Object.defineProperties(To.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&&vt(this,e),this.l=e?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(e){this._isFrozen&&vt(this,e),this.l=e?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&vt(this,e),this.l=e?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(e){this._isFrozen&&vt(this,e),this.od=e,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(e){this._isFrozen&&vt(this,e),this.pd=e,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(e){this._isFrozen&&vt(this,e),this.pl=e,this._isInvalidBounds=!0}}}),To.prototype.add=To.prototype.add,To.prototype.equalsApprox=To.prototype.Xa,To.className="PathFigure";function Fr(e,t,n,r,i,o,a,d){Yn(this),e===void 0&&(e=yi),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===Zs?(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),d&&(this.isClockwiseArc=!0)):(this.Ne=r,this.Vh=i,e===go&&(o=Math.max(o,0)),this.Wh=o,typeof a=="number"?(e===go&&(a=Math.max(a,0)),this.Pg=a):this.Pg=0),this.ae=null}Fr.prototype.copy=function(){var e=new Fr;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=Fr.prototype,ye.Xa=function(e){if(!(e instanceof Fr)||this.type!==e.type||this.isClosed!==e.isClosed)return!1;switch(this.type){case $i:case yi:return lt.B(this.endX,e.endX)&&lt.B(this.endY,e.endY);case ko:return lt.B(this.endX,e.endX)&&lt.B(this.endY,e.endY)&&lt.B(this.point1X,e.point1X)&&lt.B(this.point1Y,e.point1Y)&&lt.B(this.point2X,e.point2X)&&lt.B(this.point2Y,e.point2Y);case Ws:return lt.B(this.endX,e.endX)&&lt.B(this.endY,e.endY)&&lt.B(this.point1X,e.point1X)&&lt.B(this.point1Y,e.point1Y);case go:return lt.B(this.startAngle,e.startAngle)&&lt.B(this.sweepAngle,e.sweepAngle)&&lt.B(this.centerX,e.centerX)&&lt.B(this.centerY,e.centerY)&&lt.B(this.radiusX,e.radiusX)&&lt.B(this.radiusY,e.radiusY);case Zs:return this.isClockwiseArc===e.isClockwiseArc&&this.isLargeArc===e.isLargeArc&&lt.B(this.xAxisRotation,e.xAxisRotation)&&lt.B(this.endX,e.endX)&&lt.B(this.endY,e.endY)&&lt.B(this.radiusX,e.radiusX)&&lt.B(this.radiusY,e.radiusY);default:return!1}},ye.qb=function(e){e.classType===Fr&&(this.type=e)},ye.toString=function(e){switch(e===void 0&&(e=-1),this.type){case $i:e=0>e?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case yi:e=0>e?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case ko: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 Ws: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 go: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 Zs: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 gs(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=lt.jx(0,0,n<r?n:r,e.startAngle,e.startAngle+e.sweepAngle,!1);if(n!==r){var a=Vn.alloc();a.reset(),n<r?a.scale(1,r/n):a.scale(n/r,1),Qt.Ha(o,a),Vn.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 Bs(e,t,n,r){function i(Te,Ke,Ge,Xe){return(Te*Xe<Ke*Ge?-1:1)*Math.acos((Te*Ge+Ke*Xe)/(Math.sqrt(Te*Te+Ke*Ke)*Math.sqrt(Ge*Ge+Xe*Xe)))}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,d=e.isLargeArc,E=e.isClockwiseArc,O=e.Dc,D=e.Ec,X=Math.cos(a),se=Math.sin(a),ge=X*(n-O)/2+se*(r-D)/2;a=-se*(n-O)/2+X*(r-D)/2;var ve=ge*ge/(t*t)+a*a/(o*o);return 1<ve&&(t*=Math.sqrt(ve),o*=Math.sqrt(ve)),ve=(d===E?-1:1)*Math.sqrt((t*t*o*o-t*t*a*a-o*o*ge*ge)/(t*t*a*a+o*o*ge*ge)),isNaN(ve)&&(ve=0),d=ve*t*a/o,ve=ve*-o*ge/t,isNaN(d)&&(d=0),isNaN(ve)&&(ve=0),n=(n+O)/2+X*d-se*ve,r=(r+D)/2+se*d+X*ve,D=i(1,0,(ge-d)/t,(a-ve)/o),X=(ge-d)/t,O=(a-ve)/o,ge=(-ge-d)/t,d=(-a-ve)/o,a=i(X,O,ge,d),ge=(X*ge+O*d)/(Math.sqrt(X*X+O*O)*Math.sqrt(ge*ge+d*d)),-1>=ge?a=Math.PI:1<=ge&&(a=0),!E&&0<a&&(a-=2*Math.PI),E&&0>a&&(a+=2*Math.PI),E=t>o?1:t/o,ge=t>o?o/t:1,t=lt.jx(0,0,t>o?t:o,D,D+a,!0),o=Vn.alloc(),o.reset(),o.translate(n,r),o.rotate(e.Ne,0,0),o.scale(E,ge),Qt.Ha(t,o),Vn.free(o),e.ae=t,e.ae}Dn.Object.defineProperties(Fr.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&&vt(this,e),this.na=e,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(e){this._isFrozen&&vt(this,e),this.Dc=e,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(e){this._isFrozen&&vt(this,e),this.Ec=e,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(e){this._isFrozen&&vt(this,e),this.Ne=e,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(e){this._isFrozen&&vt(this,e),this.Vh=e,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(e){this._isFrozen&&vt(this,e),this.Wh=e,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(e){this._isFrozen&&vt(this,e),this.Pg=e,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(e){this._isFrozen&&vt(this,e),this.Ne=e,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(e){this._isFrozen&&vt(this,e),this.Vh=e,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(e){0>e&&hn(e,">= zero",Fr,"radiusX"),this._isFrozen&&vt(this,e),this.Wh=e,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(e){0>e&&hn(e,">= zero",Fr,"radiusY"),this._isFrozen&&vt(this,e),this.Pg=e,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(e){this._isFrozen&&vt(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&&vt(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&&vt(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&&vt(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&&vt(this,e),e%=360,0>e&&(e+=360),this.Ne=e,this._isInvalidBounds=!0}}}),Fr.prototype.equalsApprox=Fr.prototype.Xa;var $i=new Ut(Fr,"Move",0),yi=new Ut(Fr,"Line",1),ko=new Ut(Fr,"Bezier",2),Ws=new Ut(Fr,"QuadraticBezier",3),go=new Ut(Fr,"Arc",4),Zs=new Ut(Fr,"SvgArc",4);Fr.className="PathSegment",Fr.Move=$i,Fr.Line=yi,Fr.Bezier=ko,Fr.QuadraticBezier=Ws,Fr.Arc=go,Fr.SvgArc=Zs;function rs(){this.H=null,this.xu=new Pe(0,0).freeze(),this.mt=new Pe(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}rs.prototype.copy=function(){var e=new rs;return this.clone(e)},rs.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},rs.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},rs.prototype.So=function(e,t){var n=this.diagram;return n===null||Gd(n,e,t),t},rs.prototype.Bz=function(e,t){var n=this.diagram;return n===null||(Gd(n,e,t),t.assign(n.Ps(t))),t},Dn.Object.defineProperties(rs.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}}}),rs.prototype.getMultiTouchDocumentPoint=rs.prototype.Bz,rs.prototype.getMultiTouchViewPoint=rs.prototype.So,rs.className="InputEvent";function xl(){this.H=null,this.xa="",this.ar=this.Lr=null}xl.prototype.copy=function(){var e=new xl;return e.H=this.H,e.xa=this.xa,e.Lr=this.Lr,e.ar=this.ar,e},xl.prototype.toString=function(){var e="*"+this.name;return this.subject!==null&&(e+=":"+this.subject.toString()),this.parameter!==null&&(e+="("+this.parameter.toString()+")"),e},Dn.Object.defineProperties(xl.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}}}),xl.className="DiagramEvent";function eo(){this.Fm=Ui,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}eo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},eo.prototype.copy=function(){var e=new eo;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=dt(t)&&typeof t.J=="function"?t.J():t,t=this.Rn,e.Rn=dt(t)&&typeof t.J=="function"?t.J():t,t=this.Mn,e.Mn=dt(t)&&typeof t.J=="function"?t.J():t,t=this.Ln,e.Ln=dt(t)&&typeof t.J=="function"?t.J():t,e},eo.prototype.qb=function(e){e.classType===eo&&(this.change=e)},eo.prototype.toString=function(){var e="";return e=this.change===ms?e+"* ":this.change===Ui?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===ms?this.oldValue!==null&&(e+=" "+this.oldValue):(this.object!==null&&(e+=hr(this.object)),this.oldValue!==null&&(e+=" old: "+hr(this.oldValue)),this.oldParam!==null&&(e+=" "+this.oldParam),this.newValue!==null&&(e+=" new: "+hr(this.newValue)),this.newParam!==null&&(e+=" "+this.newParam)),e},eo.prototype.I=function(e){return e?this.oldValue:this.newValue},eo.prototype.Dz=function(e){return e?this.oldParam:this.newParam},eo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},eo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},eo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},eo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Dn.Object.defineProperties(eo.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===ms&&(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}}}),eo.prototype.redo=eo.prototype.redo,eo.prototype.canRedo=eo.prototype.canRedo,eo.prototype.undo=eo.prototype.undo,eo.prototype.canUndo=eo.prototype.canUndo,eo.prototype.getParam=eo.prototype.Dz,eo.prototype.getValue=eo.prototype.I,eo.prototype.clear=eo.prototype.clear;var ms=new Ut(eo,"Transaction",-1),Ui=new Ut(eo,"Property",0),uo=new Ut(eo,"Insert",1),po=new Ut(eo,"Remove",2);eo.className="ChangedEvent",eo.Transaction=ms,eo.Property=Ui,eo.Insert=uo,eo.Remove=po;function _o(){this.o=new Gt().freeze(),this.xa="",this.j=!1}_o.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},_o.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()},_o.prototype.canUndo=function(){return this.isComplete},_o.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()}},_o.prototype.canRedo=function(){return this.isComplete},_o.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()}},_o.prototype.ak=function(){if(this.isComplete){var e=this.changes;e.ka();for(var t=new wt,n=0;n<e.count;n++){var r=e.M(n);if(r!==null&&r.change===Ui&&r.object){var i=t.get(r.object);i||(i=new wt,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()}},Dn.Object.defineProperties(_o.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}}}),_o.prototype.optimize=_o.prototype.ak,_o.prototype.redo=_o.prototype.redo,_o.prototype.canRedo=_o.prototype.canRedo,_o.prototype.undo=_o.prototype.undo,_o.prototype.canUndo=_o.prototype.canUndo,_o.prototype.clear=_o.prototype.clear,_o.className="Transaction";function Ai(){this.Pt=new Wt,this.Jd=!1,this.u=new Gt().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Gt().freeze(),this.hl=new Gt,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ai.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},Ai.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},Ai.prototype.copyProperties=function(e){this.isEnabled=e.isEnabled,this.maxHistoryLength=e.maxHistoryLength,this.checksTransactionLevel=e.checksTransactionLevel},ye=Ai.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=""),Jl(this,!0,e)},ye.Kf=function(){return Jl(this,!1,"")};function Jl(e,t,n){if(e.isUndoingRedoing)return!1;e.checksTransactionLevel&&1>e.transactionLevel&&yn("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()}},Ai.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToUndo;return!!(e!==null&&e.canUndo())},Ai.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){yn("undo error: "+t.toString())}finally{this.Ob("FinishedUndo","Undo",e),this.Fe=!1}}},Ai.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToRedo;return!!(e!==null&&e.canRedo())},Ai.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){yn("redo error: "+t.toString())}finally{this.Ob("FinishedRedo","Redo",e),this.Fe=!1}}},Ai.prototype.Ob=function(e,t,n){n===void 0&&(n=null);var r=new eo;for(r.change=ms,r.propertyName=e,r.object=n,r.oldValue=t,e=this.models;e.next();)t=e.value,r.model=t,t.ds(r)},Ai.prototype.Tu=function(e){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(e)){var t=this.currentTransaction;t===null&&(this.Np=t=new _o);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||yn("Change not within a transaction: "+n.toString()))}},Ai.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},Dn.Object.defineProperties(Ai.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}}}),Ai.prototype.handleChanged=Ai.prototype.Tu,Ai.prototype.redo=Ai.prototype.redo,Ai.prototype.undo=Ai.prototype.undo,Ai.prototype.canUndo=Ai.prototype.canUndo,Ai.prototype.discardHistoryAfterIndex=Ai.prototype.lx,Ai.prototype.rollbackTransaction=Ai.prototype.Kf,Ai.prototype.commitTransaction=Ai.prototype.eb,Ai.prototype.startTransaction=Ai.prototype.Ea,Ai.prototype.removeModel=Ai.prototype.Rx,Ai.prototype.addModel=Ai.prototype.Xw,Ai.prototype.clear=Ai.prototype.clear,Ai.className="UndoManager";function Ar(){Yn(this),this.H=zu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new rs,this.Zr=-1}Ar.prototype.toString=function(){return this.name!==""?this.name+" Tool":Ft(this.constructor)},Ar.prototype.updateAdornments=function(){},Ar.prototype.canStart=function(){return this.isEnabled},Ar.prototype.doStart=function(){},Ar.prototype.doActivate=function(){this.isActive=!0},Ar.prototype.doDeactivate=function(){this.isActive=!1},Ar.prototype.doStop=function(){},Ar.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ar.prototype.stopTool=function(){var e=this.diagram;e.currentTool===this&&(e.currentTool=null,e.currentCursor="")},Ar.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ar.prototype.doMouseMove=function(){},Ar.prototype.doMouseUp=function(){this.stopTool()},Ar.prototype.doMouseWheel=function(){},Ar.prototype.canStartMultiTouch=function(){return!0},Ar.prototype.standardPinchZoomStart=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,Pe.allocAt(NaN,NaN)),r=t.So(1,Pe.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}Pe.free(n),Pe.free(r)},Ar.prototype.standardPinchZoomMove=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,Pe.allocAt(NaN,NaN)),r=t.So(1,Pe.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 Pe((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 d=e.zoomPoint;e.zoomPoint=i,a.resetZoom(o),e.zoomPoint=d}t.bubbles=!1}Pe.free(n),Pe.free(r)},Ar.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ar.prototype.doKeyUp=function(){},Ar.prototype.Ea=function(e){return e===void 0&&(e=this.name),this.transactionResult=null,this.diagram.Ea(e)},Ar.prototype.stopTransaction=function(){var e=this.diagram;return this.transactionResult===null?e.Kf():e.eb(this.transactionResult)},Ar.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.lastInput,n=e.Ol(t.documentPoint,!1);if(n!==null){if(fr?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||(fr?t.meta:t.control)||t.shift||e.clearSelection()}},Ar.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,oc(e,r,n),r.handled};function oc(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)}}}Ar.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 d=o.mouseLeave;if(d!==null&&(r===o||r!==null&&r.rg(o)||(d(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}},Ar.prototype.doUpdateCursor=function(){var e=this.diagram;e&&(e.currentCursor="")},Ar.prototype.doCurrentObjectChanged=function(){},Ar.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===al&&!t.shift||i===Pl&&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===al&&t.shift||i===Pl&&!t.control){r=e.position.copy();var o=t.event;i=o.deltaMode;var a=o.deltaX;o=o.deltaY;var d="pixel";if(a===0&&o===0||t.shift)!t.shift&&e.allowVerticalScroll?(n=3*n*e.scrollVerticalLineChange,e.scroll(d,0<n?"up":"down",Math.abs(n))):t.shift&&e.allowHorizontalScroll&&(n=3*n*e.scrollHorizontalLineChange,e.scroll(d,0<n?"left":"right",Math.abs(n)));else{switch(i){case 0:d="pixel";break;case 1:d="line";break;case 2:d="page"}a!==0&&e.allowHorizontalScroll&&(a*=e.scrollHorizontalLineChange/16,e.scroll(d,0<a?"right":"left",Math.abs(a))),o!==0&&e.allowVerticalScroll&&(o*=e.scrollVerticalLineChange/16,e.scroll(d,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(e,r,t)}}},Ar.prototype.doWheelChange=function(e,t,n){e.position.D(t)&&n.event.wheelDeltaX===0||(n.bubbles=!1)},Ar.prototype.standardWaitAfter=function(e,t){t===void 0&&(t=this.diagram.lastInput),this.cancelWaitAfter();var n=this,r=t.clone(this.yy);this.Zr=Ci(function(){n.doWaitAfter(r)},e)},Ar.prototype.cancelWaitAfter=function(){this.Zr!==-1&&mn.clearTimeout(this.Zr),this.Zr=-1},Ar.prototype.doWaitAfter=function(){},Ar.prototype.findToolHandleAt=function(e,t){return e=this.diagram.ic(e,function(n){for(;n!==null&&!(n.panel instanceof Zr);)n=n.panel;return n}),e===null?null:e.part.category===t?e:null},Ar.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},Dn.Object.defineProperties(Ar.prototype,{diagram:{get:function(){return this.H},set:function(e){e instanceof xt&&(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}}}),Ar.prototype.startTransaction=Ar.prototype.Ea,Ar.className="Tool";function Bi(){Ar.call(this),this.name="ToolManager",this.hb=new Gt,this.ob=new Gt,this.Hb=new Gt,this.F=this.V=850,this.o=new un(2,2).ja(),this.Ha=5e3,this.ia=Pl,this.u=Nu,this.Mp=this.j=null,this.zj=-1}Kn(Bi,Ar),Bi.prototype.initializeStandardTools=function(){},Bi.prototype.updateAdornments=function(e){var t=this.currentToolTip;if(t instanceof Zr&&this.Mp===e){var n=t.adornedObject;(e!==null?n.part===e:n===null)?this.showToolTip(t,n):this.hideToolTip()}},Bi.prototype.doMouseDown=function(){var e=this.diagram,t=e.lastInput;if(t.isTouchEvent&&this.gestureBehavior===Fa&&(t.bubbles=!1),t.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Ba){t.bubbles=!0;return}if(this.gestureBehavior===Fa)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===Pl?this.mouseWheelBehavior=al:this.mouseWheelBehavior===al&&(this.mouseWheelBehavior=Pl)),this.doActivate(),this.standardWaitAfter(this.holdDelay,t)},Bi.prototype.doMouseMove=function(){var e=this.diagram,t=e.lastInput;if(t.isMultiTouch){if(this.gestureBehavior===Ba){t.bubbles=!0;return}if(this.gestureBehavior===Fa)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}}ju(this,e),e=t.event,e===null||e.type!=="pointermove"&&e.cancelable||(t.bubbles=!0)};function ju(e,t){e.standardMouseOver(),e.isBeyondDragSize()&&e.standardWaitAfter(e.isActive?e.holdDelay:e.hoverDelay,t.lastInput)}Bi.prototype.doCurrentObjectChanged=function(e,t){e=this.currentToolTip,e===null||t!==null&&e instanceof Zr&&(t===e||t.rg(e))||this.hideToolTip()},Bi.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()))},Bi.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)},Bi.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 Zr)||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()},Bi.prototype.showToolTip=function(e,t){var n=this.diagram;if(e!==this.currentToolTip&&this.hideToolTip(),e instanceof Zr){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 jr&&e!==this.currentToolTip&&e.show(t,n,this);if(this.currentToolTip=e,this.zj!==-1&&(mn.clearTimeout(this.zj),this.zj=-1),e=this.toolTipDuration,0<e&&e!==1/0){var i=this;this.zj=Ci(function(){i.hideToolTip()},e)}},Bi.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}},Bi.prototype.hideToolTip=function(){this.zj!==-1&&(mn.clearTimeout(this.zj),this.zj=-1);var e=this.diagram,t=this.currentToolTip;t!==null&&(t instanceof Zr?(e.remove(t),this.Mp!==null&&this.Mp.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof jr&&t.hide!==null&&t.hide(e,this),this.currentToolTip=null)},Bi.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()},Bi.prototype.doMouseWheel=function(){this.standardMouseWheel()},Bi.prototype.doKeyDown=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyDown()},Bi.prototype.doKeyUp=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyUp()},Bi.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},Bi.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},Bi.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)},Dn.Object.defineProperties(Bi.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 Zr?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}}}),Bi.prototype.replaceStandardTool=Bi.prototype.gb;var Pl=new Ut(Bi,"WheelScroll",0),al=new Ut(Bi,"WheelZoom",1),Uu=new Ut(Bi,"WheelNone",2),Nu=new Ut(Bi,"GestureZoom",3),Fa=new Ut(Bi,"GestureCancel",4),Ba=new Ut(Bi,"GestureNone",5);Bi.className="ToolManager",Bi.WheelScroll=Pl,Bi.WheelZoom=al,Bi.WheelNone=Uu,Bi.GestureZoom=Nu,Bi.GestureCancel=Fa,Bi.GestureNone=Ba;function Hi(){Ar.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 Pe(NaN,NaN),this.Fr=new Pe,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Wt().freeze(),this.ia=new C,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Ls;Kn(Hi,Ar),Hi.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},Hi.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},Hi.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,(fr?t.meta:t.control)||t.shift||e.clearSelection(!0),this.currentPart.isSelected=!0,e.R("ChangedSelection",e.selection))}}},Hi.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),Jo=null,this.isActive=!0,this.tl.set(e.position),Ql(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&&ka(e),zf(e,this.draggedParts),this.Ea("Drag"),this.startPoint=e.firstInput.documentPoint,e.isMouseCaptured=!0,e.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Jo=this,ql=this.diagram,this.doSimulatedDragOut()))};function Ql(e,t){if(e.dragsLink){var n=e.diagram;n.allowRelink&&(n.model.Wj()&&t.count===1&&t.first()instanceof en?(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 la,e.Oe.diagram=n),e.Oe.originalLink=e.draggedLink):(e.draggedLink=null,e.Oe=null))}}Hi.prototype.computeEffectiveCollection=function(e,t){return this.diagram.commandHandler.computeEffectiveCollection(e,t)},Hi.prototype.Pd=function(e){return e===void 0?new ac(an):this.isGridSnapEnabled?new ac(new Pe(Math.round(1e3*e.x)/1e3,Math.round(1e3*e.y)/1e3)):new ac(e.copy())},Hi.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,e.Fu(!1),e.ug(),ja(this),qc(e,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Ls.count){for(var t=Ls,n=t.length,r=0;r<n;r++){var i=t.M(r);to(i),ki(i),ja(i),i.diagram.ug()}t.clear()}to(this),this.tl.h(NaN,NaN),ql!==null&&(ql.currentCursor=""),Jo=ql=null,ki(this),e.isMouseCaptured=!1,e.currentCursor="",e.Ns=!1,this.stopTransaction(),of(e,!0)},Hi.prototype.stopTransaction=function(){var e=this.diagram,t=Ar.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t};function ja(e){var t=e.diagram,n=t.skipsUndoManager;t.skipsUndoManager=!0,Ca(e,t.lastInput,null),t.skipsUndoManager=n,e.Cg.length=0}function ll(){var e=Jo;ki(e),vs(e);var t=e.diagram;e.tl.w()&&(t.position=e.tl),t.ug()}Hi.prototype.doCancel=function(){ki(this),vs(this);var e=this.diagram;this.tl.w()&&(e.position=this.tl),this.stopTool()},Hi.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput;this.isActive&&(t.key==="Esc"?this.doCancel():t.key!==e.previousInput.key&&this.doMouseMove())},Hi.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Ya(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")):vs(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 wt,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 en&&r.canCopy()&&n.add(r,e.Pd());e.copiedParts=n,Ql(e,n.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Mc(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}function ki(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 en&&(n.value.point=new Pe(0,0));e.doUpdateCursor(null)}t.skipsUndoManager=!1,t.partManager.addsToTemporaryLayer=!1,e.startPoint=t.firstInput.documentPoint}function to(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 No(e,t,n){var r=e.diagram,i=e.startPoint,o=Pe.alloc();o.assign(r.lastInput.documentPoint),e.moveParts(t,o.re(i),n),Pe.free(o),r.Gf("temporaryPixelRatio")===!0&&r.Yh===null&&30<r.$w&&(ka(r),r.hk())}Hi.prototype.moveParts=function(e,t,n){n===void 0&&(n=!1);var r=this.diagram;r!==null&&Qc(r,e,t,this.dragOptions,n)};function vs(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 en&&r.suspendsRouting){var i=n.value.point;e.draggedParts.add(r,e.Pd()),Mc(r,-i.x,-i.y)}t.bd()}}function is(e,t){var n=e.diagram;e.dragsLink&&(e.draggedLink!==null&&(e.draggedLink.fromNode=null,e.draggedLink.toNode=null),aa(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=Ca(e,i,r),!e.isActive&&Jo===null)return;var d=r!==null?r.part:null;if(d===null||n.handlesDragDropForTopLevelParts&&d.isTopLevel&&!(d instanceof tr)){var E=n.mouseDragOver;E!==null&&(E(i),a=!0)}if(!e.isActive&&Jo===null||(e.doDragOver(t,r),!e.isActive&&Jo===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)}Hi.prototype.findDragOverObject=function(e){var t=this;return Gu(this.diagram,e,null,function(n){return n===null?n=!0:(n=n.part,n=!!(n===null||n instanceof Zr||n.layer.isTemporary||t.draggedParts&&t.draggedParts.contains(n)||t.copiedParts&&t.copiedParts.contains(n))),!n})},Hi.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 Ca(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 d=e.Cg[a],E=d.mouseDragLeave;if(E!==null&&(E(t,d,n),r=!0,t.handled))break}if(e.Cg.length=0,!e.isActive&&Jo===null||n===null)return r;for(t.handled=!1,i=n;i!==null;)e.Cg.push(i),i=Ta(i);for(i=e.Cg.length,n=0;n<i&&(a=e.Cg[n],d=a.mouseDragEnter,d===null||(d(t,a,o),r=!0,!t.handled));n++);return r}function Ta(e){var t=e.panel;return t!==null?t:e instanceof Pn&&!(e instanceof tr)&&(e=e.containingGroup,e!==null&&e.handlesDragDropForMembers)?e:null}function _a(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=Pe.alloc();var o=1/0,a=null;for(i=i.iterator;i.next();){var d=i.value;if(d.part!==null){var E=d.ga(ir,e);E=t.Bf(E),E<o&&(a=d,o=E)}}return Pe.free(e),a}function aa(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=_a(e,n.i(0),!1),o!==null&&(a=o.part));var d=null,E=null;n.toNode===null&&(d=_a(e,n.i(n.pointsCount-1),!0),d!==null&&(E=d.part)),i.isValidLink(a,o,E,d)?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=E,d!==null&&(n.toPortId=d.portId),n.fromPort!==r.Mx&&r.R("LinkRelinked",n,r.Mx),n.toPort!==r.Nx&&r.R("LinkRelinked",n,r.Nx)):te(i,a,o,E,d):te(i,null,null,null,null)}}}}Hi.prototype.doDragOver=function(){};function $a(e,t){var n=e.diagram;e.dragsLink&&aa(e,!0),ja(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;Sc(e,i,o),o=Ta(o)}}else o=n.mouseDrop,o!==null&&o(i);if(e.isActive||Jo!==null){for(i=(e.copiedParts||e.draggedParts).iterator;i.next();)o=i.key,o instanceof fn&&o.linksConnected.each(function(d){d.suspendsRouting=!1});if(e.doDropOnto(t,r),e.isActive||Jo!==null){for(e=Ct.alloc(),t=n.selection.iterator;t.next();)r=t.value,r instanceof fn&&_h(n,r,e);Ct.free(e)}}}function Sc(e,t,n){e=e.diagram,n=n.part,!e.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof tr||(n=e.mouseDrop,n!==null&&n(t))}function _h(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 en},!0,function(i){return i instanceof en},r),e.count!==0)for(e=e.iterator;e.next();)n=e.value,!n.Td(t)&&n.isAvoiding&&n.bb()}Hi.prototype.doDropOnto=function(){},Hi.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()?(Ya(this,!1),zf(e,this.copiedParts),No(this,this.copiedParts,!1),qc(e,this.copiedParts)):this.mayMove()?(ki(this),No(this,this.draggedParts,!0)):this.mayDragOut()?(Ya(this,!1),No(this,this.copiedParts,!1)):ki(this),is(this,e.lastInput.documentPoint))}},Hi.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?(ki(this),Ya(this,!0),zf(e,this.copiedParts),No(this,this.copiedParts,!1),qc(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,ki(this),this.mayMove()&&(No(this,this.draggedParts,!0),is(this,e.lastInput.documentPoint))),this.Ym=!0,$a(this,e.lastInput.documentPoint),this.isActive){var r=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,t&&Ah(this),e.Ya(),qc(e,this.draggedParts),this.transactionResult=n?"Copy":"Move",e.R(n?"SelectionCopied":"SelectionMoved",r)}this.stopTool(),n&&e.R("ChangedSelection",e.selection)}}},Hi.prototype.simulatedMouseMove=function(e,t,n){if(Jo===null)return!1;var r=Jo.diagram;n instanceof xt||(n=null);var i=ql;return n!==i&&(i!==null&&i!==r&&(i.ug(),Jo.isDragOutStarted=!1,i=i.toolManager.findTool("Dragging"),i!==null&&i.doSimulatedDragLeave()),ql=n,n!==null&&n!==r&&(ll(),i=n.toolManager.findTool("Dragging"),i!==null&&(Ls.contains(i)||Ls.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)},Hi.prototype.simulatedMouseUp=function(e,t,n){if(Jo===null)return!1;var r=ql,i=Jo.diagram;if(n===null)return Jo.doCancel(),!0;if(n!==r){var o=r.toolManager.findTool("Dragging");if(r!==null&&r!==i&&o!==null)return r.ug(),Jo.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;ql=n,r=n.toolManager.findTool("Dragging"),r!==null&&(ll(),Ls.contains(r)||Ls.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 Pe),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=Jo,e!==null&&(n=e.mayCopy(),e.transactionResult=n?"Copy":"Move",e.stopTool()),!0):!1};function Ah(e){if(e.draggedParts!==null)for(var t=e.draggedParts.iterator;t.next();){var n=t.key;n instanceof fn&&(n=n.containingGroup,n===null||n.placeholder===null||e.draggedParts.contains(n)||n.placeholder.v())}}Hi.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowCopy||(fr?!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())},Hi.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())},Hi.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())},Hi.prototype.computeBorder=function(e,t,n){return this.Ym||this.draggedParts===null||this.draggedParts.contains(e)?null:n.assign(t)},Hi.prototype.Az=function(){return Jo},Hi.prototype.mayDragIn=function(){var e=this.diagram;if(!e.allowDrop||e.isReadOnly||e.isModelReadOnly||!e.allowInsert)return!1;var t=Jo;return!(t===null||t.diagram.model.dataFormat!==e.model.dataFormat)},Hi.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var e=this.diagram;e.animationManager.Cc(),Tl(e),e.animationManager.Cc(),e=Jo,e!==null&&(e.diagram.Ns=!1),this.doUpdateCursor(null)}},Hi.prototype.doSimulatedDragLeave=function(){var e=Jo;e!==null&&e.doSimulatedDragOut(),this.doCancel()},Hi.prototype.doSimulatedDragOver=function(){var e=this.diagram;e.animationManager.Dm=!0;var t=Jo;if(t!==null&&t.draggedParts!==null){if(!this.mayDragIn())return;kh(this,t.draggedParts.Lf(),!1,e.firstInput),No(this,this.copiedParts,!1),is(this,e.lastInput.documentPoint)}e.animationManager.Dm=!1},Hi.prototype.doSimulatedDrop=function(){var e=this.diagram,t=Jo;if(t!==null){var n=t.diagram;if(t.Ym=!0,ki(this),!this.mayDragIn())return;e.animationManager.Dm=!0,e.R("ChangingSelection",e.selection),this.Ea("Drop"),kh(this,t.draggedParts.Lf(),!0,e.lastInput),No(this,this.copiedParts,!1);var r=new Wt;this.copiedParts!==null&&(e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(i){i.isSelected=!0,r.add(i)})),$a(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 kh(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=Ct.alloc();i=r=1/0;for(var a=-1/0,d=-1/0,E=t.iterator;E.next();){var O=E.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>d&&(d=D))}}for(r===1/0?o.h(0,0,0,0):o.h(r,i,a-r,d-i),r=o.x+o.width/2,i=o.y+o.height/2,Ct.free(o),o=e.Fr,a=new wt,d=Pe.alloc(),E=t.iterator;E.next();)O=E.value,O instanceof en&&O.canCopy()&&(D=n.I(O),D!==null&&(D.points=O.points,Mc(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()&&(E=n.I(O),E!==null&&(O=O.location,d.h(o.x-(r-O.x),o.y-(i-O.y)),E.location=d,E.Va(),a.add(E,e.Pd(d))));Pe.free(d),e.copiedParts=a,Ql(e,a.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Mc(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}Hi.prototype.doSimulatedDragOut=function(){var e=this.diagram;e.Ns=!1,this.mayCopy()||this.mayMove()?e.currentCursor="":e.currentCursor=this.nodropCursor,this.Bn=null},Hi.prototype.computeMove=function(e,t,n,r){return n=this.diagram,n!==null?n.computeMove(e,t,this.dragOptions,r):new Pe},Dn.Object.defineProperties(Hi.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}}}),Hi.prototype.getDraggingSource=Hi.prototype.Az;var Jo=null,ql=null;Hi.className="DraggingTool",Ls=new Gt,or("draggingTool",function(){return this.findTool("Dragging")},function(e){this.gb("Dragging",e,this.mouseMoveTools)}),Bi.prototype.doCancel=function(){Jo!==null&&Jo.doCancel(),Ar.prototype.doCancel.call(this)};function ho(){Ar.call(this),this.te=100,this.Ha=!1,this.u="pointer";var e=new en,t=new ur;t.isPanelMain=!0,t.stroke="blue",e.add(t),t=new ur,t.toArrow="Standard",t.fill="blue",t.stroke="blue",e.add(t),e.layerName="Tool",this.Ci=e,e=new fn,t=new ur,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=_r,e.add(t),e.selectable=!1,e.layerName="Tool",this.Bi=e,this.j=t,e=new fn,t=new ur,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=_r,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 wt,this.Of=this.gj=this.Pf=null}Kn(ho,Ar),ho.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},ho.prototype.copyPortProperties=function(e,t,n,r,i){if(e!==null&&t!==null&&n!==null&&r!==null){var o=t.Df(),a=un.alloc();a.width=t.naturalBounds.width*o,a.height=t.naturalBounds.height*o,r.desiredSize=a,un.free(a),i?(r.toSpot=t.toSpot,r.toEndSegmentLength=t.toEndSegmentLength):(r.fromSpot=t.fromSpot,r.fromEndSegmentLength=t.fromEndSegmentLength),n.locationSpot=ir,o=Pe.alloc(),n.location=t.ga(ir,o),Pe.free(o),r.angle=t.li(),this.portTargeted!==null&&this.portTargeted(e,t,n,r,i)}},ho.prototype.setNoTargetPortProperties=function(e,t,n){t!==null&&(t.desiredSize=_r,t.fromSpot=nr,t.toSpot=nr),e!==null&&(e.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,e,t,n)},ho.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},ho.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof fn){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)}},ho.prototype.findValidLinkablePort=function(e,t){if(e===null)return null;var n=e.part;if(!(n instanceof fn))return null;for(;e!==null;){var r=t?e.toLinkable:e.fromLinkable;if(r===!0&&(e.portId!==null||e instanceof fn)&&(t?this.isValidTo(n,e):this.isValidFrom(n,e)))return e;if(r===!1)break;e=e.panel}return null},ho.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,d=a.part;if(d instanceof fn){var E=a.ga(ir,Pe.alloc()),O=n.x-E.x,D=n.y-E.y;Pe.free(E),E=O*O+D*D,E<r&&(O=this.validPortsCache.I(a),O!==null?O&&(t=a,r=E):e&&this.isValidLink(this.originalFromNode,this.originalFromPort,d,a)||!e&&this.isValidLink(d,a,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(a,!0),t=a,r=E):this.validPortsCache.add(a,!1))}}return t!==null&&(n=t.part,n instanceof fn&&(n.layer===null||n.layer.allowLink))?t:null},ho.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},ho.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},ho.prototype.isInSameNode=function(e,t){return e===null||t===null?!1:e===t?!0:(e=e.part,t=t.part,e!==null&&e===t)},ho.prototype.isLinked=function(e,t){if(e===null||t===null)return!1;var n=e.part;if(!(n instanceof fn))return!1;e=e.portId,e===null&&(e="");var r=t.part;if(!(r instanceof fn))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},ho.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)},ho.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 Wt;return r.add(e),ws(this,n,t,r)};function ws(e,t,n,r){if(t===n)return!0;var i=t.fromNode;return i!==null&&i.isLinkLabel&&(r.add(i),ws(e,i.labeledLink,n,r))?!0:(t=t.toNode,!!(t!==null&&t.isLinkLabel&&(r.add(t),ws(e,t.labeledLink,n,r))))}ho.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!==cf){if(r===op){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!Ms(this,e,t,n,!0)}if(r===sp){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!Ms(this,e,t,n,!0)}if(r===np)return e===t?e=!0:(r=new Wt,r.add(t),e=ks(this,r,e,t,n)),!e;if(r===rp)return!Ms(this,e,t,n,!1);if(r===ip)return e===t?e=!0:(r=new Wt,r.add(t),e=mu(this,r,e,t,n)),!e}return!0};function Ms(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&&Ms(e,a,n,r,i)))return!0}return!1}function ks(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&&ks(e,t,a,r,i)))return!0}return!1}function mu(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 d=a.fromNode;if(a=a.toNode,d=d===n?a:d,d!==n&&mu(e,t,d,r,i))return!0}}return!1}Dn.Object.defineProperties(ho.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}}}),ho.className="LinkingBaseTool";function js(){ho.call(this),this.name="Linking",this.V={},this.F=null,this.K=eu,this.Xd=null}Kn(js,ho),js.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},js.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 fn)))return null;var n=this.direction;if(n===eu||n===xc){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===eu||n===wc)&&(t=this.findValidLinkablePort(t,!0),t!==null||this.startObject===e&&(t=e.port,this.findValidLinkablePort(t,!0)))?(this.isForwards=!1,t):null},js.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 fn&&(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 fn&&(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)},js.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()},js.prototype.doStop=function(){ho.prototype.doStop.call(this),this.startObject=null},js.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 d=a.part;d instanceof fn&&(this.isForwards?(this.originalFromNode!==null&&(t=this.originalFromNode,n=this.originalFromPort),r=d,i=a):(t=d,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)}}},js.prototype.isNewTreeLink=function(){var e=this.archetypeLinkData;if(e===null)return!0;if(e instanceof en)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)},js.prototype.insertLink=function(e,t,n,r){return this.diagram.partManager.insertLink(e,t,n,r)},js.prototype.doNoLink=function(){},Dn.Object.defineProperties(js.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 eu=new Ut(js,"Either",0),xc=new Ut(js,"ForwardsOnly",0),wc=new Ut(js,"BackwardsOnly",0);js.className="LinkingTool",js.Either=eu,js.ForwardsOnly=xc,js.BackwardsOnly=wc;function la(){ho.call(this),this.name="Relinking";var e=new ur;e.figure="Diamond",e.desiredSize=Cr,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=0,this.V=e,e=new ur,e.figure="Diamond",e.desiredSize=Cr,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=-1,this.Xd=e,this.F=null,this.Ew=new Ct}Kn(la,ho),la.prototype.updateAdornments=function(e){if(e!==null&&e instanceof en){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)}},la.prototype.makeAdornment=function(e,t){var n=new Zr;return n.type=Zt.Link,t=t?this.toHandleArchetype:this.fromHandleArchetype,t!==null&&n.add(t.copy()),n.adornedObject=e,n},la.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},la.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 Zr&&n.adornedPart instanceof en))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=zr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=zr),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},la.prototype.copyLinkProperties=function(e,t){if(e!==null&&t!==null){t.adjusting=e.adjusting,t.corner=e.corner;var n=e.curve;(n===fd||n===Dc)&&(n=ga),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}},la.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()},la.prototype.doStop=function(){ho.prototype.doStop.call(this),this.handle=null},la.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 fn&&(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()}}},la.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},la.prototype.doNoRelink=function(){};function te(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)}Dn.Object.defineProperties(la.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 Zr))throw Error("new handle is not in an Adornment: "+e);this.F=e}}}),la.className="RelinkingTool",or("linkingTool",function(){return this.findTool("Linking")},function(e){this.gb("Linking",e,this.mouseMoveTools)}),or("relinkingTool",function(){return this.findTool("Relinking")},function(e){this.gb("Relinking",e,this.mouseDownTools)});function Ee(){Ar.call(this),this.name="LinkReshaping";var e=new ur;e.figure="Rectangle",e.desiredSize=ci,e.fill="lightblue",e.stroke="dodgerblue",this.o=e,e=new ur,e.figure="Diamond",e.desiredSize=Cr,e.fill="lightblue",e.stroke="dodgerblue",e.cursor="move",this.u=e,this.F=3,this.Ts=this.j=null,this.Fw=new Pe,this.Yq=new Gt}Kn(Ee,Ar),Ee.prototype.Ru=function(e){return e&&e.reshapingBehavior.value!==0?e.reshapingBehavior:Ue},Ee.prototype.om=function(e,t){e.reshapingBehavior=t},Ee.prototype.updateAdornments=function(e){if(e!==null&&e instanceof en){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)}},Ee.prototype.makeAdornment=function(e){var t=e.part,n=t.pointsCount,r=t.isOrthogonal,i=null;if(t.points!==null&&1<n){i=new Zr,i.type=Zt.Link,n=t.firstPickIndex;var o=t.lastPickIndex,a=r?1:0;if(t.resegmentable&&t.computeCurve()!==ml)for(var d=n+a;d<o-a;d++){var E=this.makeResegmentHandle(e,d);E!==null&&(E.segmentIndex=d,E.segmentFraction=.5,E.fromMaxLinks=999,i.add(E))}for(a=n+1;a<o;a++)if(d=this.makeHandle(e,a),d!==null){if(d.segmentIndex=a,a!==n)if(a===n+1&&r){E=t.i(n);var O=t.i(n+1);lt.B(E.x,O.x)&&lt.B(E.y,O.y)&&(O=t.i(n-1)),lt.B(E.x,O.x)?(this.om(d,qe),d.cursor="n-resize"):lt.B(E.y,O.y)&&(this.om(d,Je),d.cursor="w-resize")}else a===o-1&&r?(E=t.i(o-1),O=t.i(o),lt.B(E.x,O.x)&&lt.B(E.y,O.y)&&(E=t.i(o+1)),lt.B(E.x,O.x)?(this.om(d,qe),d.cursor="n-resize"):lt.B(E.y,O.y)&&(this.om(d,Je),d.cursor="w-resize")):a!==o&&(this.om(d,ft),d.cursor="move");i.add(d)}i.adornedObject=e}return i},Ee.prototype.makeHandle=function(){var e=this.handleArchetype;return e===null?null:e.copy()},Ee.prototype.makeResegmentHandle=function(){var e=this.midHandleArchetype;return e===null?null:e.copy()},Ee.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},Ee.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 en){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}}},Ee.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ee.prototype.stopTransaction=function(){var e=this.diagram,t=Ar.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},Ee.prototype.doCancel=function(){var e=this.adornedLink;e!==null&&(e.points=this.Yq),this.stopTool()},Ee.prototype.getResegmentingPoint=function(){return this.handle.ga(ir)},Ee.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeReshape(e.lastInput.documentPoint),this.reshape(e))},Ee.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&&(Le(this,a,r,i,o,!0)||Le(this,a,r,i,o,!1))){var d=t.points.copy();Le(this,a,r,i,o,!0)?(d.cd(n-2,new Pe(a.x,(o.y+a.y)/2)),d.cd(n+1,new Pe(o.x,(o.y+a.y)/2))):(d.cd(n-2,new Pe((o.x+a.x)/2,a.y)),d.cd(n+1,new Pe((o.x+a.x)/2,o.y))),d.mb(n),d.mb(n-1),t.points=d,t.Wb()}else a=t.i(n+2),Math.abs(i.x-o.x)<this.resegmentingDistance&&Math.abs(i.y-o.y)<this.resegmentingDistance&&(Le(this,r,i,o,a,!0)||Le(this,r,i,o,a,!1))&&(d=t.points.copy(),Le(this,r,i,o,a,!0)?(d.cd(n-1,new Pe(r.x,(r.y+a.y)/2)),d.cd(n+2,new Pe(a.x,(r.y+a.y)/2))):(d.cd(n-1,new Pe((r.x+a.x)/2,r.y)),d.cd(n+2,new Pe((r.x+a.x)/2,a.y))),d.mb(n+1),d.mb(n),t.points=d,t.Wb())}}else a=Pe.alloc(),lt.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()),Pe.free(a)}e.Ya(),this.transactionResult=this.name,e.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Le(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}Ee.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===qe?(t.L(n,t.i(n-1).x,e.y),t.L(n+1,t.i(n+2).x,e.y)):r===Je&&(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===qe?(t.L(n-1,t.i(n-2).x,e.y),t.L(n,t.i(n+1).x,e.y)):r===Je&&(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);lt.B(o.x,i.x)&&lt.B(i.y,a.y)?(lt.B(o.x,t.i(r-2).x)&&!lt.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),lt.B(a.y,t.i(r+2).y)&&!lt.B(a.x,t.i(r+2).x)?t.m(r+1,a.x,e.y):t.L(r+1,a.x,e.y)):lt.B(o.y,i.y)&&lt.B(i.x,a.x)?(lt.B(o.y,t.i(r-2).y)&&!lt.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),lt.B(a.x,t.i(r+2).x)&&!lt.B(a.y,t.i(r+2).y)?t.m(r+1,e.x,a.y):t.L(r+1,e.x,a.y)):lt.B(o.x,i.x)&&lt.B(i.x,a.x)?(lt.B(o.x,t.i(r-2).x)&&!lt.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),lt.B(a.x,t.i(r+2).x)&&!lt.B(a.y,t.i(r+2).y)?t.m(r+1,e.x,a.y):t.L(r+1,e.x,a.y)):lt.B(o.y,i.y)&&lt.B(i.y,a.y)&&(lt.B(o.y,t.i(r-2).y)&&!lt.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),lt.B(a.y,t.i(r+2).y)&&!lt.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(ir,Pe.alloc()),r=t.getLinkPointFromPoint(r,i,o,e,!0,Pe.alloc()),t.L(0,r.x,r.y),Pe.free(o),Pe.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(ir,Pe.alloc()),e=t.getLinkPointFromPoint(r,i,n,e,!1,Pe.alloc()),t.L(t.pointsCount-1,e.x,e.y),Pe.free(n),Pe.free(e));t.zf()},Ee.prototype.computeReshape=function(e){var t=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case ft:return e;case qe:return new Pe(t.i(n).x,e.y);case Je:return new Pe(e.x,t.i(n).y);default:case Ue:return t.i(n)}},Dn.Object.defineProperties(Ee.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 Zr))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}}}),Ee.prototype.setReshapingBehavior=Ee.prototype.om,Ee.prototype.getReshapingBehavior=Ee.prototype.Ru;var Ue=new Ut(Ee,"None",0),Je=new Ut(Ee,"Horizontal",1),qe=new Ut(Ee,"Vertical",2),ft=new Ut(Ee,"All",3);Ee.className="LinkReshapingTool",Ee.None=Ue,Ee.Horizontal=Je,Ee.Vertical=qe,Ee.All=ft,or("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(e){this.gb("LinkReshaping",e,this.mouseDownTools)});function yt(){Ar.call(this),this.name="Resizing",this.o=new un(1,1).freeze(),this.j=new un(9999,9999).freeze(),this.yg=new un(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var e=new ur;e.alignmentFocus=ir,e.figure="Rectangle",e.desiredSize=ci,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.F=e,this.u=null,this.Xq=new Pe,this.Dw=new un,this.Tn=new Pe,this.rt=new un(0,0),this.qt=new un(1/0,1/0),this.pt=new un(1,1)}Kn(yt,Ar),yt.prototype.updateAdornments=function(e){if(!(e===null||e instanceof en)){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(),oh(e)&&this.updateResizeHandles(n,t),e.bh(this.name,n);return}}e.Jf(this.name)}},yt.prototype.makeAdornment=function(e){var t=e.part.resizeAdornmentTemplate;if(t===null){t=new Zr,t.type=Zt.Spot,t.locationSpot=ir;var n=new pa;n.isPanelMain=!0,t.add(n),t.add(this.makeHandle(e,xr)),t.add(this.makeHandle(e,Jr)),t.add(this.makeHandle(e,ni)),t.add(this.makeHandle(e,Co)),t.add(this.makeHandle(e,ps)),t.add(this.makeHandle(e,Zo)),t.add(this.makeHandle(e,us)),t.add(this.makeHandle(e,As))}else if(zl(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},yt.prototype.makeHandle=function(e,t){return e=this.handleArchetype,e===null?null:(e=e.copy(),e.alignment=t,e)},yt.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=ir),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 Zt)for(e=e.elements;e.next();)this.updateResizeHandles(e.value,t)}},yt.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},yt.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))},yt.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=e.isMouseCaptured=!1},yt.prototype.stopTransaction=function(){var e=this.diagram,t=Ar.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},yt.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},yt.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,Pe.alloc()),o=this.computeReshape();t=this.computeResize(i,this.handle.alignment,t,n,r,o),this.resize(t),e.bd(),Pe.free(i)}},yt.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,Pe.alloc()),o=this.computeReshape();t=this.computeResize(i,this.handle.alignment,t,n,r,o),this.resize(t),Pe.free(i),e.Ya(),this.transactionResult=this.name,e.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},yt.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 tr){var r=new Gt;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()}},yt.prototype.computeResize=function(e,t,n,r,i,o){t.Mc()&&(t=ir);var a=this.adornedObject.naturalBounds,d=a.x,E=a.y,O=a.x+a.width,D=a.y+a.height,X=1;if(!o){X=a.width;var se=a.height;0>=X&&(X=1),0>=se&&(se=1),X=se/X}return se=Pe.alloc(),lt.No(e.x,e.y,d,E,i.width,i.height,se),e=a.copy(),0>=t.x?0>=t.y?(e.x=Math.max(se.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(se.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(se.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(se.y-E,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(se.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=E+.5*(D-E-e.height))):1<=t.x?0>=t.y?(e.width=Math.max(Math.min(se.x-d,r.width),n.width),e.y=Math.max(se.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(se.x-d,r.width),n.width),e.height=Math.max(Math.min(se.y-E,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(se.x-d,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=E+.5*(D-E-e.height))):0>=t.y?(e.y=Math.max(se.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=d+.5*(O-d-e.width))):1<=t.y&&(e.height=Math.max(Math.min(se.y-E,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=d+.5*(O-d-e.width))),Pe.free(se),e},yt.prototype.computeReshape=function(){var e=jt;return this.adornedObject instanceof ur&&(e=Pv(this.adornedObject)),!(e===Rn||this.diagram.lastInput.shift)},yt.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},yt.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},yt.prototype.computeCellSize=function(){var e=new un(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},Dn.Object.defineProperties(yt.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 Zr))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 Zr)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}}}),yt.className="ResizingTool",or("resizingTool",function(){return this.findTool("Resizing")},function(e){this.gb("Resizing",e,this.mouseDownTools)});function Ht(){Ar.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Pe,this.ue=null;var e=new ur;e.figure="Ellipse",e.desiredSize=Cr,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.o=e,this.j=null,this.Cw=0,this.kr=new Pe(NaN,NaN),this.u=0,this.F=50}Kn(Ht,Ar),Ht.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)}},Ht.prototype.makeAdornment=function(e){var t=e.part.rotateAdornmentTemplate;if(t===null){t=new Zr,t.type=Zt.Position,t.locationSpot=ir;var n=this.handleArchetype;n!==null&&t.add(n.copy())}else if(zl(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},Ht.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},Ht.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)},Ht.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(ir)},Ht.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)},Ht.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Pe(NaN,NaN),this.isActive=e.isMouseCaptured=!1},Ht.prototype.stopTransaction=function(){var e=this.diagram,t=Ar.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},Ht.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ht.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeRotate(e.lastInput.documentPoint),this.rotate(e))},Ht.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()},Ht.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()}},Ht.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},Dn.Object.defineProperties(Ht.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 Zr))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 Zr)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}}}),Ht.className="RotatingTool",or("rotatingTool",function(){return this.findTool("Rotating")},function(e){this.gb("Rotating",e,this.mouseDownTools)});function Kt(){Ar.call(this),this.name="ClickSelecting"}Kn(Kt,Ar),Kt.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Kt.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Kt.className="ClickSelectingTool";function Lt(){Ar.call(this),this.name="Action",this.pk=null}Kn(Lt,Ar),Lt.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},Lt.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()},Lt.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))}},Lt.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()},Lt.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())},Lt.prototype.doStop=function(){this.pk=null},Lt.className="ActionTool";function sn(){Ar.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Pe(0,0)}Kn(sn,Ar),sn.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)},sn.prototype.doMouseUp=function(){var e=this.diagram;this.isActive&&this.insertPart(e.lastInput.documentPoint),this.stopTool()},sn.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 Pn)n.Zc()&&(zl(n),r=n.copy(),r!==null&&t.add(r));else if(n!==null){var i=t.model.copyNodeData(n);dt(i)&&(t.model.xf(i),r=t.Lc(i))}if(r!==null){var o=Pe.allocAt(e.x,e.y);this.isGridSnapEnabled&&Hf(this.diagram,r,e,o),r.location=o,t.allowSelect&&(t.clearSelection(!0),r.isSelected=!0),Pe.free(o)}t.Ya(),this.transactionResult=this.name,t.R("PartCreated",r)}finally{this.stopTransaction(),t.R("ChangedSelection",t.selection)}return r},Dn.Object.defineProperties(sn.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}}}),sn.className="ClickCreatingTool";function nn(){Ar.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var e=new Pn;e.layerName="Tool",e.selectable=!1;var t=new ur;t.name="SHAPE",t.figure="Rectangle",t.fill=null,t.stroke="magenta",e.add(t),this.j=e}Kn(nn,Ar),nn.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))},nn.prototype.doActivate=function(){var e=this.diagram;this.isActive=!0,e.isMouseCaptured=!0,e.skipsUndoManager=!0,e.add(this.box),this.doMouseMove()},nn.prototype.doDeactivate=function(){var e=this.diagram;e.ug(),e.remove(this.box),e.skipsUndoManager=!1,this.isActive=e.isMouseCaptured=!1},nn.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=un.alloc().h(t.width,t.height);n.desiredSize=r,this.box.mm(t.x,t.y,!1),un.free(r),(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},nn.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()},nn.prototype.computeBoxBounds=function(){var e=this.diagram;return new Ct(e.firstInput.documentPoint,e.lastInput.documentPoint)},nn.prototype.selectInRect=function(e){var t=this.diagram,n=t.lastInput;if(e=t.ux(e,this.isPartialInclusion),fr?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 Gt,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)}},Dn.Object.defineProperties(nn.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}}}),nn.className="DragSelectingTool";function Dt(){Ar.call(this),this.name="Panning",this.Xt=new Pe,this.xy=new Pe,this.xg=!1;var e=this;this.Kw=function(){var t=e.diagram;t!==null&&t.removeEventListener(mn.document,"scroll",e.Kw,!1),e.stopTool()}}Kn(Dt,Ar),Dt.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())},Dt.prototype.doActivate=function(){var e=this.diagram;this.xg?(e.lastInput.bubbles=!0,e.addEventListener(mn.document,"scroll",this.Kw,!1)):(e.currentCursor="move",e.isMouseCaptured=!0,this.Xt.assign(e.position)),this.isActive=!0},Dt.prototype.doDeactivate=function(){var e=this.diagram;e.currentCursor="",this.isActive=e.isMouseCaptured=!1},Dt.prototype.doCancel=function(){var e=this.diagram;e.position=this.Xt,e.isMouseCaptured=!1,this.stopTool()},Dt.prototype.doMouseMove=function(){this.move()},Dt.prototype.doMouseUp=function(){this.move(),this.stopTool()},Dt.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)}},Dn.Object.defineProperties(Dt.prototype,{bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},originalPosition:{get:function(){return this.Xt}}}),Dt.className="PanningTool",or("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(e){this.gb("ClickCreating",e,this.mouseUpTools)}),or("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(e){this.gb("ClickSelecting",e,this.mouseUpTools)}),or("panningTool",function(){return this.findTool("Panning")},function(e){this.gb("Panning",e,this.mouseMoveTools)}),or("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(e){this.gb("DragSelecting",e,this.mouseMoveTools)}),or("actionTool",function(){return this.findTool("Action")},function(e){this.gb("Action",e,this.mouseDownTools)});function jr(){this.F=this.u=this.j=this.o=null}Dn.Object.defineProperties(jr.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}}}),jr.className="HTMLInfo";function hi(e,t,n){this.text=e,this.hx=t,this.visible=n}hi.className="ContextMenuButtonInfo";function Ni(){Ar.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Pe,this.jt=null,this.Et=!1;var e=this;this.tu=function(){e.stopTool()}}Kn(Ni,Ar);function pr(e){var t=new jr;t.show=function(i,o,a){a.showDefaultContextMenu()},t.hide=function(i,o){o.hideDefaultContextMenu()},Qn=t,e.tu=function(){e.stopTool()},t=vi("div");var n=vi("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=vi("style");mn.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",Gr,!1),r.addEventListener(t,"selectstart",Gr,!1),r.addEventListener(n,"contextmenu",Gr,!1)),t.className="goCXforeground",n.className="goCXbackground",mn.document.body&&(mn.document.body.appendChild(t),mn.document.body.appendChild(n)),wo=t,os=n,Mo=!0}function Gr(e){return e.preventDefault(),!1}Ni.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)},Ni.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ni.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ni.prototype.findObjectWithContextMenu=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.lastInput,r=null;if(e instanceof xt||(e instanceof ht?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},Ni.prototype.doActivate=function(){},Ni.prototype.doMouseDown=function(){if(Ar.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Zr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doMouseDown(),e.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&qr(this)},Ni.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Zr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doCancel(),e.doDeactivate())}qr(this)};function qr(e){var t=e.diagram;if(e.isActive){var n=e.currentContextMenu;if(n!==null){var r=null;n instanceof jr||(r=t.ic(t.lastInput.documentPoint,null,null),r!==null&&r.rg(n)&&e.standardMouseClick(null,null)),e.maybeStopTool(r)}}else e.canStart()&&(Ro(e,!0),e.isActive||e.stopTool())}Ni.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Ro(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=Qn,n===null&&(n=e.findObjectWithContextMenu()),n!==null){var r=n.contextMenu;r!==null?(e.currentObject=n instanceof ht?n:null,e.showContextMenu(r,e.currentObject)):t!==null&&e.showContextMenu(t,e.currentObject)}else t!==null&&e.showContextMenu(t,null);e.currentContextMenu instanceof Zr&&!e.currentContextMenu.visible&&e.stopTool()}}Ni.prototype.doMouseMove=function(){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ni.prototype.showContextMenu=function(e,t){var n=this.diagram;if(e!==this.currentContextMenu&&this.hideContextMenu(),e instanceof Zr){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 jr&&e.show(t,n,this);this.currentContextMenu=e},Ni.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}},Ni.prototype.hideContextMenu=function(){var e=this.diagram,t=this.currentContextMenu;t!==null&&(t instanceof Zr?(e.remove(t),this.ht!==null&&this.ht.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof jr&&(t.hide!==null?t.hide(e,this):t.mainElement!==null&&(t.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Io(e){var t=new Gt;return t.add(new hi("Copy",function(n){n.commandHandler.copySelection()},function(n){return n.commandHandler.canCopySelection()})),t.add(new hi("Cut",function(n){n.commandHandler.cutSelection()},function(n){return n.commandHandler.canCutSelection()})),t.add(new hi("Delete",function(n){n.commandHandler.deleteSelection()},function(n){return n.commandHandler.canDeleteSelection()})),t.add(new hi("Paste",function(n){n.commandHandler.pasteSelection(e.mouseDownPoint)},function(n){return n.commandHandler.canPasteSelection(e.mouseDownPoint)})),t.add(new hi("Select All",function(n){n.commandHandler.selectAll()},function(n){return n.commandHandler.canSelectAll()})),t.add(new hi("Undo",function(n){n.commandHandler.undo()},function(n){return n.commandHandler.canUndo()})),t.add(new hi("Redo",function(n){n.commandHandler.redo()},function(n){return n.commandHandler.canRedo()})),t.add(new hi("Scroll To Part",function(n){n.commandHandler.scrollToPart()},function(n){return n.commandHandler.canScrollToPart()})),t.add(new hi("Zoom To Fit",function(n){n.commandHandler.zoomToFit()},function(n){return n.commandHandler.canZoomToFit()})),t.add(new hi("Reset Zoom",function(n){n.commandHandler.resetZoom()},function(n){return n.commandHandler.canResetZoom()})),t.add(new hi("Group Selection",function(n){n.commandHandler.groupSelection()},function(n){return n.commandHandler.canGroupSelection()})),t.add(new hi("Ungroup Selection",function(n){n.commandHandler.ungroupSelection()},function(n){return n.commandHandler.canUngroupSelection()})),t.add(new hi("Edit Text",function(n){n.commandHandler.editTextBlock()},function(n){return n.commandHandler.canEditTextBlock()})),t}Ni.prototype.showDefaultContextMenu=function(){var e=this.diagram;this.jt===null&&(this.jt=Io(this)),wo.innerHTML="",os.addEventListener("pointerdown",this.tu,!1);var t=this,n=vi("ul");n.className="goCXul",wo.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=vi("li"),o.className="goCXli";var a=vi("a");a.className="goCXa",a.href="#",a.ky=i.hx,a.addEventListener("pointerdown",function(d){return this.ky(e),t.stopTool(),d.preventDefault(),!1},!1),a.textContent=i.text,o.appendChild(a),n.appendChild(o)}}wo.style.display="block",os.style.display="block"},Ni.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Qn){wo.style.display="none",os.style.display="none";var e=this.diagram;e!==null&&e.removeEventListener(os,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Dn.Object.defineProperties(Ni.prototype,{currentContextMenu:{get:function(){return this.j},set:function(e){this.j=e,this.ht=e instanceof Zr?e.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Mo===!1&&Qn===null&&bo&&pr(this),Qn},set:function(e){e===null&&(Mo=!0),Qn=e}},currentObject:{get:function(){return this.o},set:function(e){this.o=e}},mouseDownPoint:{get:function(){return this.yw}}});var Qn=null,Mo=!1,os=null,wo=null;Ni.className="ContextMenuTool",or("contextMenuTool",function(){return this.findTool("ContextMenu")},function(e){this.gb("ContextMenu",e,this.mouseUpTools)});function Br(){Ar.call(this),this.name="TextEditing",this.Zh=new Wi,this.ia=null,this.V=Js,this.vj=null,this.qa=Jt,this.u=1,this.F=!0,this.o=null,this.j=new jr,this.kt=null,ua(this,this.j)}Kn(Br,Ar);function ua(e,t){if(bo){var n=vi("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(Qo)):i==="Tab"?(e.acceptText(ao),r.preventDefault()):i==="Escape"&&(e.doCancel(),e.diagram!==null&&e.diagram.doFocus())}},!1),n.addEventListener("focus",function(){if(e.currentTextEditor!==null&&e.state!==Jt){var r=e.kt;e.qa===ca&&(e.qa=Xa),typeof r.select=="function"&&e.selectsTextOnActivate&&(r.select(),r.setSelectionRange(0,9999))}},!1),n.addEventListener("blur",function(){if(e.currentTextEditor!==null&&e.state!==Jt){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 Wi&&o instanceof Br)if(o.state===Qs)n.style.border="3px solid red",n.focus();else{var a=r.ga(ir),d=i.position,E=i.scale,O=r.Df()*E;O<o.minimumEditorScale&&(O=o.minimumEditorScale);var D=r.naturalBounds.width*O+6,X=r.naturalBounds.height*O+2,se=(a.x-d.x)*E;a=(a.y-d.y)*E,d=r.verticalAlignment,E=(r.lineHeight+r.spacingAbove+r.spacingBelow)*r.lineCount*O,X=d.y*X-d.y*E+d.offsetY-(.5*X-.5*E)-E/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=(se-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)}}}Br.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||e.isReadOnly||wl&&wl!==this&&(wl.acceptText(bi),wl&&wl!==this)||!e.lastInput.left||this.isBeyondDragSize())return!1;var t=e.ic(e.lastInput.documentPoint);return t!==null&&t instanceof Wi&&t.editable&&t.part.canEdit()?(t=t.part,!(t===null||this.starting===Js&&!t.isSelected||this.starting===Ua&&2>e.lastInput.clickCount)):!1},Br.prototype.doStart=function(){wl=this,this.textBlock!==null&&this.doActivate()},Br.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 Wi&&(this.textBlock=t,t.part!==null)){e.animationManager.Cc(),this.isActive=!0,this.qa=ca;var n=this.defaultTextEditor;t.textEditor!==null&&(n=t.textEditor),this.Zh=this.textBlock.copy();var r=new Ct(this.textBlock.ga(xr),this.textBlock.ga(ni));e.tv(r),n.show(t,e,this),this.currentTextEditor=n}}}},Br.prototype.doCancel=function(){this.stopTool()},Br.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Br.prototype.doMouseDown=function(){this.isActive&&this.acceptText(bi)},Br.prototype.acceptText=function(e){switch(e){case bi:this.qa===ul?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===ca||this.qa===Qs||this.qa===Xa)&&(this.qa=tn,Ho(this));break;case Ei:case Qo:case ao:(Qo!==e||this.textBlock.isMultiline!==!0)&&(this.qa===ca||this.qa===Qs||this.qa===Xa)&&(this.qa=tn,Ho(this))}};function Ho(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=ul,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=Qs,e.doError(i,o))}}Br.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)},Br.prototype.doSuccess=function(e,t){var n=this.textBlock;n.textEdited!==null&&n.textEdited(n,e,t)},Br.prototype.doDeactivate=function(){var e=this.diagram;e!==null&&(this.qa=Jt,this.currentTextEditor!==null&&this.currentTextEditor.hide(e,this),this.textBlock=null,this.isActive=!1)},Br.prototype.doStop=function(){wl=null},Br.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)))},Br.prototype.Lx=function(e){var t=this.Zh;return t.text=e,t.measure(this.textBlock.Ih,1/0),t},Dn.Object.defineProperties(Br.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)}}}),Br.prototype.measureTemporaryTextBlock=Br.prototype.Lx;var Ei=new Ut(Br,"LostFocus",0),bi=new Ut(Br,"MouseDown",1),ao=new Ut(Br,"Tab",2),Qo=new Ut(Br,"Enter",3),Us=new Ut(Br,"SingleClick",0),Js=new Ut(Br,"SingleClickSelected",1),Ua=new Ut(Br,"DoubleClick",2),Jt=new Ut(Br,"StateNone",0),ca=new Ut(Br,"StateActive",1),Xa=new Ut(Br,"StateEditing",2),tn=new Ut(Br,"StateValidating",3),Qs=new Ut(Br,"StateInvalid",4),ul=new Ut(Br,"StateValidated",5),wl=null;Br.className="TextEditingTool",Br.LostFocus=Ei,Br.MouseDown=bi,Br.Tab=ao,Br.Enter=Qo,Br.SingleClick=Us,Br.SingleClickSelected=Js,Br.DoubleClick=Ua,Br.StateNone=Jt,Br.StateActive=ca,Br.StateEditing=Xa,Br.StateValidating=tn,Br.StateInvalid=Qs,Br.StateValidated=ul,or("textEditingTool",function(){return this.findTool("TextEditing")},function(e){this.gb("TextEditing",e,this.mouseUpTools)});function Ds(e){xn||(ct(),xn=!0),this.H=zu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Hn,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Wt,this.ce=new bn,this.ce.Yd=this,this.Ei=new Wt,this.pu=new Wt,this.Sr=new Wt,this.pr=new Wt,e&&Object.assign(this,e)}Ds.prototype.Xe=function(e){this.H=e},Ds.prototype.canStart=function(){return!0};function qo(e,t){e.Jd&&e.canStart(t)&&(e.Zd.add(t),e.defaultAnimation.isAnimating&&e.Cc(),Ps(e.H),e.zb=!0)}function Za(e){if(e.Jd&&e.zb){var t=e.ce,n=e.H,r=e.Zd.contains("Model");r&&(e.Ok=!0,e.Pk===Hn?(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===Si&&t.vc.clear(),e.Qw=!!(e.Pk===Vr&&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(),ar(t,n),e.Ok=!1,n.N()):(e.Zd.clear(),n.kg=!1,r=t.vc.get(n),n.autoScale!==ea&&r!==null&&(delete r.start.scale,delete r.end.scale),mn.requestAnimationFrame(function(){e.zb===!1||t.bc||(n.Gf("temporaryPixelRatio")&&ka(n),Bd(n),e.zb=!1,t.start(),t.bc&&(cl(e),n.Ya(),El(t,0),Tl(n,!0),vu(e),n.R("AnimationStarting",e)))}))}}function Vs(e){return e.Zd.contains("Trigger")&&e.Zd.count===1}function Fl(e,t,n,r){e.isTicking||Vs(e)||t instanceof en&&(t.fromNode!==null||t.toNode!==null)||e.ce.add(t,"position",n,r,!1)}ye=Ds.prototype,ye.fv=function(e){return this.ce.fv(e)},ye.Xu=function(e){return this.ce.Xu(e)};function tu(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 d=!0;else{for(d=a.vc.iterator;d.next();){var E=d.key;if(E instanceof ht&&E.diagram!==null||E instanceof xt){d=!0;break e}}d=!1}d?Uo(a,!1):a.Xk=!0}}i.pu.clear(),i.bc!==!1&&(cl(i),Tl(i.H),vu(i)),mn.requestAnimationFrame(n)}}var r=e.Ei,i=e;e.bc?e.Sr.add(t):(e.bc=!0,r.add(t),mn.requestAnimationFrame(function(){n()}))}function Ec(e){for(e=e.Ei.iterator;e.next();)e.value.Xk=!1}function cl(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 vu(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(),ar(t,null),e===!0)for(e=this.Ei.Fa(),t=0;t<e.length;t++)e[t].Ml(!0)}else t.vc.clear(),ar(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),z(this,e))},ye.Aj=function(e,t){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(e,t),Ri(this.ce,t,"position",t.position,t.position),z(this,e))};function Xc(e,t,n){!e.zb||t.D(n)||Vs(e)||(e.H.pi||(t=n.copy()),Ri(e.ce,e.H,"position",t,n))}function A(e,t,n){t.fd&&(t.Tg=n,e.pr.add(t))}function z(e,t){for(t=t.findLinksConnected();t.next();){var n=t.value;n.fd&&(n.Tg=n.points.copy(),e.pr.add(n))}}function Ie(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],d=e[2];e=e[3];var E=t[0],O=t[1],D=t[2];return t=t[3],d===0||d===100?(o=E,a=O):(D===0||D===100)&&(E=o,O=a),180<Math.abs(E-o)&&(E>o?o+=360:E+=360),o=i(n,o,E-o,r)%360,a=i(n,a,O-a,r),d=i(n,d,D-d,r),n=i(n,e,t-e,r),"hsla("+o+", "+a+"%, "+d+"%, "+n+")"}function ct(){function e(n,r,i,o,a,d){n.position=new Pe(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d))}var t=new wt;t.add("position:diagram",e),t.add("position",e),t.add("position:part",function(n,r,i,o,a,d){a<d?n.mm(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d),!1):n.position=new Pe(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d))}),t.add("location",function(n,r,i,o,a,d){a<d?n.mm(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d),!0):n.location=new Pe(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d))}),t.add("position:placeholder",function(n,r,i,o,a,d){a<d?n.mm(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d),!1):n.position=new Pe(o(a,r.x,i.x-r.x,d),o(a,r.y,i.y-r.y,d))}),t.add("position:nodeCollapse",function(n,r,i,o,a,d){var E=n.actualBounds,O=i.actualBounds;i=O.x+O.width/2-E.width/2,E=O.y+O.height/2-E.height/2,a<d?n.mm(o(a,r.x,i-r.x,d),o(a,r.y,E-r.y,d),!1):n.position=new Pe(o(a,r.x,i-r.x,d),o(a,r.y,E-r.y,d))}),t.add("desiredSize",function(n,r,i,o,a,d){n.desiredSize=new Ct(o(a,r.width,i.width-r.width,d),o(a,r.height,i.height-r.height,d))}),t.add("width",function(n,r,i,o,a,d){n.width=o(a,r,i-r,d)}),t.add("height",function(n,r,i,o,a,d){n.height=o(a,r,i-r,d)}),t.add("fill",function(n,r,i,o,a,d){n.fill=Ie(r,i,a,d,o)}),t.add("stroke",function(n,r,i,o,a,d){n.stroke=Ie(r,i,a,d,o)}),t.add("strokeWidth",function(n,r,i,o,a,d){n.strokeWidth=o(a,r,i-r,d)}),t.add("strokeDashOffset",function(n,r,i,o,a,d){n.strokeDashOffset=o(a,r,i-r,d)}),t.add("background",function(n,r,i,o,a,d){n.background=Ie(r,i,a,d,o)}),t.add("areaBackground",function(n,r,i,o,a,d){n.areaBackground=Ie(r,i,a,d,o)}),t.add("opacity",function(n,r,i,o,a,d){n.opacity=o(a,r,i-r,d)}),t.add("scale",function(n,r,i,o,a,d){n.scale=o(a,r,i-r,d)}),t.add("angle",function(n,r,i,o,a,d){n.angle=o(a,r,i-r,d)}),zt=t}Dn.Object.defineProperties(Ds.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&&hn(e,">= 1",Ds,"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}}}),Ds.prototype.stopAnimation=Ds.prototype.Cc;var zt=null,xn=!1,Hn=new Ut(Ds,"Default",1),Vr=new Ut(Ds,"AnimateLocations",2),Si=new Ut(Ds,"None",3);Ds.className="AnimationManager",Ds.defineAnimationEffect=function(e,t){xn||(ct(),xn=!0),zt.add(e,t)},Ds.Default=Hn,Ds.AnimateLocations=Vr,Ds.None=Si;function bn(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=Bl,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=an,this.vc=new wt,this.Tt=new wt,this.yl=new Wt,this.Ut=new Wt,this.dw=_c,e&&Object.assign(this,e)}bn.prototype.suspend=function(){this.Xk=!0},bn.prototype.advanceTo=function(e,t){t&&(this.Xk=!1),this.ho&&e>=this.Gd&&(this.Wk=!0,e-=this.Gd),this.gw=e,Uo(this,!0),cl(this.Yd),Tl(this.H),vu(this.Yd),this.H.redraw()};function ar(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=bn.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 xt?e=n:n instanceof ht&&(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===Hn&&this===t.defaultAnimation&&(this.Lp=yu,this.Gd=isNaN(this.Dg)?t.duration===600?900:t.duration:this.Dg),this.dw=e.scrollMode,this.isViewportUnconstrained&&(e.sj=hf),cl(t),this.yl.each(function(r){r.data=null,e.add(r)}),vu(t),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,tu(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 xt?this.H=e:e instanceof ht&&e.diagram!==null&&(this.H=e.diagram)),e instanceof Pn){if(!e.isAnimated)return this;t==="position"&&(t="position:part")}return Ri(this,e,t,n,r,i),this};function Ri(e,t,n,r,i,o){var a=e.vc;if(t instanceof xt&&n==="position"&&(n="position:diagram"),(n==="fill"||n==="stroke"||n==="background"||n==="areaBackground")&&(uc(r),yv(),r=[gl.j,gl.u,gl.o,gl.F],uc(i),yv(),i=[gl.j,gl.u,gl.o,gl.F]),a.contains(t)){var d=a.I(t),E=d.start,O=d.end;E[n]===void 0&&(E[n]=co(r)),O[n]=co(i)}else E={},O={},E[n]=co(r),O[n]=co(i),d=E.position,t instanceof ht&&d instanceof Pe&&!d.w()&&t.diagram.animationManager.Zd.contains("Expand SubGraph")&&d.assign(O.position),d=new nu(E,O,o),a.add(t,d);a=E[n],a instanceof Pe&&!a.w()&&a.assign(e.o),o&&n.indexOf("position:")===0&&t instanceof Pn?d.Ku.location=co(t.location):o&&(d.Ku[n]=co(r))}function co(e){return e instanceof Pe||e instanceof un?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 Uo(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),cl(n),El(e,i),Tl(e.H,!0),vu(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 El(e,t){for(var n=e.Gd,r=e.vc.iterator,i=e.Wk;r.next();){var o=r.key;if(!(o instanceof ht&&o.diagram===null)){var a=r.value,d=i?a.end:a.start;a=i?a.start:a.end;var E=zt,O;for(O in a)O==="position"&&(a["position:placeholder"]||a["position:nodeCollapse"])||E.get(O)===null||E.get(O)(o,d[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,cl(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=zt;r.next();){var a=r.key,d=r.value,E=i?d.end:d.start,O=i?d.start:d.end,D=d.Ku,X;for(X in O)if(o.get(X)!==null){var se=X;!d.Hu||se!=="position:nodeCollapse"&&se!=="position:placeholder"||(se="position"),o.get(se)(a,E[X],D[X]!==void 0?D[X]:d.Hu?E[X]:O[X],this.Lp,this.Gd,this.Gd,this)}d.Hu&&D.location!==void 0&&a instanceof Pn&&(a.location=D.location),d.nv&&a instanceof Pn&&a.Zb(!1)}if(t.As.clear(),of(t,!1),t.Ya(),t.N(),Tl(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()}Tl(t,!0),this.isViewportUnconstrained&&(t.scrollMode=this.dw),vu(n),this.au++,!e&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ar(this,null),n.Ml(this),t.$b())}},ye.Cj=function(e,t){var n=t.actualBounds,r=null;if(t instanceof tr&&(r=t.placeholder),r!==null?(n=r.ga(xr),r=r.padding,n.x+=r.left,n.y+=r.top,this.add(e,"position",n,e.position,!1)):this.add(e,"position",new Pe(n.x+n.width/2,n.y+n.height/2),e.position,!1),this.add(e,"scale",.01,e.scale,!1),e instanceof tr)for(e=e.memberParts;e.next();)r=e.value,r instanceof fn&&this.Cj(r,t)},ye.Aj=function(e,t){if(e.isVisible()){var n=null;if(t instanceof tr&&(n=t.placeholder),n!==null){var r=n.ga(xr);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 tr)for(e=e.memberParts;e.next();)r=e.value,r instanceof fn&&this.Aj(r,t)}},ye.Ez=function(e){var t=this.Tt.get(e);return t===null&&(t={},this.Tt.add(e,t)),t},Dn.Object.defineProperties(bn.prototype,{duration:{get:function(){return this.Dg},set:function(e){1>e&&hn(e,">= 1",bn,"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:nt("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}}}),bn.prototype.getTemporaryState=bn.prototype.Ez,bn.prototype.stop=bn.prototype.stop,bn.prototype.add=bn.prototype.add,bn.prototype.addTemporaryPart=bn.prototype.Iy;function Bl(e,t,n,r){return e/=r/2,1>e?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function yu(e,t,n,r){return e===r?t+n:n*(-Math.pow(2,-10*e/r)+1)+t}bn.className="Animation",bn.EaseLinear=function(e,t,n,r){return n*e/r+t},bn.EaseInOutQuad=Bl,bn.EaseInQuad=function(e,t,n,r){return n*(e/=r)*e+t},bn.EaseOutQuad=function(e,t,n,r){return-n*(e/=r)*(e-2)+t},bn.EaseInExpo=function(e,t,n,r){return e===0?t:n*Math.pow(2,10*(e/r-1))+t},bn.EaseOutExpo=yu;function nu(e,t,n){this.start=e,this.end=t,this.Ku={},this.Hu=n,this.nv=!1}nu.className="AnimationState";function Aa(e,t,n){this.xd=null,this.rf=e,this.so=n||Hu,this.uk=null,t!==void 0&&(this.uk=t,n===void 0&&(this.so=Ja))}Aa.prototype.copy=function(){var e=new Aa(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 hl(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))}Dn.Object.defineProperties(Aa.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 Hu=new Ut(Aa,"Default",1),Ja=new Ut(Aa,"Immediate",2),Nh=new Ut(Aa,"Bundled",3);Aa.className="AnimationTrigger",Aa.Default=Hu,Aa.Immediate=Ja,Aa.Bundled=Nh;function ys(e){Yn(this),this.H=null,this.Pa=new Gt,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=ys.prototype,ye.clear=function(){for(var e=this.Pa,t=0;t<e.length;t++){var n=e.s[t];n.Ig=null,$s(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,d=this.Pa.iterator;d.next();){var E=d.value;E instanceof tr?i++:E instanceof fn?r++:E instanceof en?o++:E instanceof Zr?a++:n++}if(d="",0<n&&(d+=n+" Parts "),0<r&&(d+=r+" Nodes "),0<i&&(d+=i+" Groups "),0<o&&(d+=o+" Links "),0<a&&(d+=a+" Adornments "),1<e)for(e=this.Pa.iterator;e.next();)n=e.value,d+=`
`+n.toString(),r=n.data,r!==null&&br(r)&&(d+=" #"+br(r)),n instanceof fn?d+=" "+hr(r):n instanceof en&&(d+=" "+hr(n.fromNode)+" "+hr(n.toNode));return t+" "+this.Pa.count+": "+d},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=Pe.alloc(),o=this.Pa.s,a=o.length;a--;){var d=o[a];if((r!==!0||oh(d)!==!1)&&d.isVisible()&&(i.assign(e),rn(i,d.oe),d=d.ic(i,t,n),d!==null&&(t!==null&&(d=t(d)),d!==null&&(n===null||n(d)))))return Pe.free(i),d}return Pe.free(i),null},ye.ji=function(e,t,n,r){if(t===void 0&&(t=null),n===void 0&&(n=null),r instanceof Gt||r instanceof Wt||(r=new Wt),this.Uh===!1)return r;var i=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(i=!0);for(var o=Pe.alloc(),a=this.Pa.s,d=a.length;d--;){var E=a[d];if((i!==!0||oh(E)!==!1)&&E.isVisible()){o.assign(e),rn(o,E.oe);var O=E;E.ji(o,t,n,r)&&(t!==null&&(O=t(O)),O===null||n!==null&&!n(O)||r.add(O))}}return Pe.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 Gt||i instanceof Wt||(i=new Wt),this.Uh===!1)return i;var o=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(e)&&(o=!0);for(var a=this.Pa.s,d=a.length;d--;){var E=a[d];if((o!==!0||oh(E)!==!1)&&E.isVisible()){var O=E;E.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 d=this.Pa.s,E=d.length;E--;){var O=d[E];if((a!==!0||oh(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 Gt||i instanceof Wt)&&(o=i),i=!0),o instanceof Gt||o instanceof Wt||(o=new Wt),this.Uh===!1)return o;var a=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(a=!0);for(var d=Pe.alloc(),E=Pe.alloc(),O=this.Pa.s,D=O.length;D--;){var X=O[D];if((a!==!0||oh(X)!==!1)&&X.isVisible()){d.assign(e),rn(d,X.oe),E.h(e.x+t,e.y),rn(E,X.oe);var se=X;X.og(d,E,n,r,i,o)&&(n!==null&&(se=n(se)),se===null||r!==null&&!r(se)||o.add(se))}}return Pe.free(d),Pe.free(E),o},ye.Fd=function(e,t){if(this.visible){var n=this.Pa.s,r=n.length;if(r!==0){e=An();for(var i=An(),o=0;o<r;o++){var a=n[o];if(a.vw=o,a instanceof en){if(a.fd===!1)continue}else if(a instanceof Zr&&a.adornedPart!==null)continue;var d=a.actualBounds;a.isVisible()&&Nt(d,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]);Nn(e),Nn(i)}}};function sc(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=sc(this,e);var o=this.Zq;o.length=0;for(var a=t.scale,d=Ct.alloc(),E=0;E<r;E++)this.Oj(e,n[E],t,o,a,d,!0);if(Ct.free(d),e.isTemporary)for(t=0;t<r;t++)n[t].Gj();e.globalAlpha=i}}};function og(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=sc(e,t),d=e.Zq;d.length=0;for(var E=n.scale,O=Ct.alloc(),D=0;D<o;D++){var X=i[D];r.contains(X)&&e.Oj(t,X,n,d,E,O,!1)}Ct.free(O),t.globalAlpha=a}}}ye.Oj=function(e,t,n,r,i,o,a){if(a&&!oh(t))e.Hs(t);else{if(r!==null&&t instanceof en&&(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 d=t.actualBounds;if(r=!1,a&&t.isVisible()){if(!o.Yc(d)){e.Hs(t);return}r=!o.Re(d)}r&&(e.save(),e instanceof Qa?e.bk=o.copy():(e.beginPath(),e.rect(o.x,o.y,o.width,o.height),e.clip())),d.width*i>n.Oq||d.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&&(So(t,e,t.areaBackground,!0,!0,o,i),e.fillRect(i.x,i.y,i.width,i.height)),t.areaBackground===null&&t.background===null&&(So(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),So(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(Ui,e,this,t,n,r,i)},ye.oi=function(e,t,n){var r=this.Pa;if(t.Ig=this,this===null&&$s(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)),Ff(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,$s(t),e};function Ff(e,t,n){if(t=sg(e,t,n),n instanceof tr&&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 d=i[a];if(d===n&&(t=a,0<=r)||0>r&&d.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&&Ff(e,-1,t)}n.svg!==null&&n.svg.remove()}function sg(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 d=t+1,E=NaN;d<i&&(E=e.M(d).zOrder,!!isNaN(E));)d++;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(E)&&E<r)for(;;){if(d===i||E>=r){if(d--,d===t)break;return e.mb(t),e.Gb(d,n),d}for(E=NaN;++d<i&&(E=e.M(d).zOrder,isNaN(E)););}return t}Dn.Object.defineProperties(ys.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===""&&nt("Cannot rename default Layer to: "+e),n=n.layers;n.next();)n.value.name===e&&nt("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)&&hn(e,"0 <= value <= 1",ys,"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))}}}),ys.prototype.findObjectsNear=ys.prototype.og,ys.prototype.findObjectsIn=ys.prototype.Cf,ys.prototype.findObjectsAt=ys.prototype.ji,ys.prototype.findObjectAt=ys.prototype.ic,ys.className="Layer";function xt(e,t){if(Sg||(Ks(),Sg=!0),Yn(this),zu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,bo){var n=this,r=function(){n.removeEventListener(mn.document,"DOMContentLoaded",r,!1),n.setRTL()};mn.document.body!==null?this.setRTL():n.addEventListener(mn.document,"DOMContentLoaded",r,!1)}this.ol=null,$f.add("Model",pi);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 d=o.change;o.modelChange===""&&d===Ui&&a.updateDataBindings(o.object,o.propertyName)}finally{a.diagram.aa=!0}}},this.Oc=function(o){i.partManager.doModelChanged(o)},this.hu=this.ku=null,ag(this),this.model=wy(),this.Wg=!0,ug(this),this.layout=new lo,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 xg,e!==void 0&&(typeof e=="string"||mn.Element&&e instanceof Element?Fd(this,e):t=e),this.vb=!1,t&&this.nm(t),this}var Zc,zu;function ag(e){e.Yd=new Ds,e.Yd.Xe(e),e.Db=17,e.Gw=!1,e.tn=!1,e.bu="default",e.Wa=new Gt,e.pj=new wt,e.nl="default",e.Tx(),e.Sx(),e.pb=1,e.pa=new Pe(NaN,NaN).freeze(),e.du=new Pe(NaN,NaN),e.Ca=1,e.Pp=1,e.zt=new Pe(NaN,NaN).freeze(),e.At=NaN,e.Ot=1e-4,e.Mt=100,e.Ab=new Vn,e.zu=new Pe(NaN,NaN).freeze(),e.ut=new Ct(NaN,NaN,NaN,NaN).freeze(),e.rj=new sr(0,0,0,0).freeze(),e.sj=_c,e.nu=!1,e.Zt=null,e.fu=null,e.yh=ea,e.zk=Bo,e.Fg=ea,e.pq=Bo,e.yt=xr,e.Bt=xr,e.Fc=!0,e.pn=!1,e.De=new Wt,e.Eh=new wt,e.Xm=!0,e.vp=250,e.vk=-1,e.xp=new sr(16,16,16,16).freeze(),e.kg=!1,e.Jk=!1,e.fn=!0,e.bq=new rs,e.bq.diagram=e,e.Qg=new rs,e.Qg.diagram=e,e.cj=new rs,e.cj.diagram=e,e.zg=null,e.pf=null,e.qu=!1,dv(e),e.ai=new Wt,e.Ht=!0,e.uu=Ac,e.pw=!1,e.wu=cf,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 wt,e.Xn=new Gt,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 sr(5).freeze(),e.Hw=new Wt().freeze(),e.Nt=999999999,e.nw=new Wt().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 Wt,e.ow=new Wt,e.Xh=null,e.aw=new un(8,8),e.bw=999,e.Bw=1,e.Jw=0,e.fc={scale:1,position:new Pe,bounds:new Ct,Py:new un,bA:new un,Oz:!1},e.fc.canvasSize=e.fc.Py,e.fc.newCanvasSize=e.fc.bA,e.fc.isScroll=!1,e.Rw=new Ct(NaN,NaN,NaN,NaN).freeze(),e.wo=new un(NaN,NaN).freeze(),e.Sp=new Ct(NaN,NaN,NaN,NaN).freeze(),e.It=!1,e.Lg=new wt;var t=new fn,n=new Wi;n.bind(new Do("text","",hr)),t.add(n),e.ny=t,e.Lg.add("",t),t=new fn,n=new Wi,n.stroke="brown",n.bind(new Do("text","",hr)),t.add(n),e.Lg.add("Comment",t),t=new fn,t.selectable=!1,t.avoidable=!1,n=new ur,n.figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new un(3,3).ja(),t.add(n),e.Lg.add("LinkLabel",t),e.Yi=new wt,t=new tr,t.selectionObjectName="GROUPPANEL",t.type=Zt.Vertical,n=new Wi,n.font="bold 12pt sans-serif",n.bind(new Do("text","",hr)),t.add(n),n=new Zt(Zt.Auto),n.name="GROUPPANEL";var r=new ur;r.figure="Rectangle",r.fill="rgba(128,128,128,0.2)",r.stroke="black",n.add(r),r=new pa,r.padding=new sr(5,5,5,5).ja(),n.add(r),t.add(n),e.ly=t,e.Yi.add("",t),e.Kh=new wt,t=new en,n=new ur,n.isPanelMain=!0,t.add(n),n=new ur,n.toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,t.add(n),e.my=t,e.Kh.add("",t),t=new en,n=new ur,n.isPanelMain=!0,n.stroke="brown",t.add(n),e.Kh.add("Comment",t),t=new Zr,t.type=Zt.Auto,n=new ur,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),n=new pa,n.margin=new sr(1.5,1.5,1.5,1.5).ja(),t.add(n),e.St=t,e.wt=t,t=new Zr,t.type=Zt.Link,n=new ur,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 pi,e.toolManager=new Bi,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=lg(),e.eq=null,e.fq=En,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 Pe,e.zy=500,e.wp=new Pe,e.wq=!1}xt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Ph=null,th="",Pd(this,!1),this.Xn.clear(),ad(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Pd(e,t){e.animationManager.Cc(!0),e.Hw=new Wt().freeze(),e.nw=new Wt().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 d=e.Wa.s[t].parts;d.next();){var E=d.value;E!==i&&E.data===null&&o.push(E)}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(),ad(),e.Og.clear(),Li=[],i!==null&&(e.add(i),e.partManager.parts.remove(i)),r&&(e.skipsUndoManager=n),o}function lg(){return null}xt.prototype.reset=function(){this.clear(),this.vb=!0,ag(this),Iu(this),this.Wg=!0,ug(this),this.layout=new lo,this.Wg=!1,this.model=wy(),this.model.undoManager=new Ai,this.vb=this.rn=!1,this.N()},xt.prototype.setRTL=function(e){e=e===void 0?this.div:e,e===null&&(e=mn.document.body);var t=vi("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},xt.prototype.setScrollWidth=function(e){e=e===void 0?this.div:e,e===null&&(e=mn.document.body);var t=0;if(bo){var n=bg;t=Zc,n===null&&(n=bg=vi("p"),n.style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",t=Zc=vi("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||fr||(t=11)}this.Db=t,this.Gw=!0},xt.prototype.qb=function(e){e.classType===xt&&(this.autoScale=e)},xt.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 Fd(e,t){if(bo){if(t!=null||nt("Diagram setup requires an argument DIV."),e.Ka!==null&&nt("Diagram has already completed setup."),typeof t=="string"?e.Ka=mn.document.getElementById(t):t instanceof HTMLDivElement?e.Ka=t:nt("No DIV or DIV id supplied: "+t),e.Ka===null&&nt("Invalid DIV id; could not get element with id: "+t),e.Ka.H!==void 0&&nt("Invalid div id; div already has a Diagram associated with it."),!e.ol&&mn.ResizeObserver){var n=Mr(function(){e.$b()},250);e.ol=new mn.ResizeObserver(function(){n()}),e.ol.observe(e.Ka)}mn.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=mn.go;var i=new Hl(e);if(i.style!==void 0&&(i.style.position="absolute",i.style.top="0px",i.style.left="0px",mn.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),Vd(e,e.Aa,e.ya),e.Ka.insertBefore(i.Oa,e.Ka.firstChild),i=new Hl(null),i.width=1,i.height=1,e.jw=i,e.oy=i.context,bo){i=vi("div");var o=vi("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=hg,i.addEventListener("pointerdown",fg),i.H=e,i.uy=!0,i.vy=!0,e.ku=i,e.hu=o}e.hk=Mr(function(){e.Yh=null,e.N()},300),e.Ov=Mr(function(){Bd(e)},250),e.preventDefault=function(a){return a.preventDefault(),!1},e.$j=function(a){if(e.isEnabled){var d=Cl(e,a,!0);d.bubbles=!0;var E=0,O=0;d.delta=0,a.deltaX!==void 0?(a.deltaX!==0&&(E=0<a.deltaX?1:-1),a.deltaY!==0&&(O=0<a.deltaY?1:-1),d.delta=Math.abs(a.deltaX)>Math.abs(a.deltaY)?-E:-O):a.wheelDeltaX!==void 0?(a.wheelDeltaX!==0&&(E=0<a.wheelDeltaX?-1:1),a.wheelDeltaY!==0&&(O=0<a.wheelDeltaY?-1:1),d.delta=Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)?-E:-O):a.wheelDelta!==void 0&&a.wheelDelta!==0&&(d.delta=0<a.wheelDelta?1:-1),e.doMouseWheel(),ru(d,a)}},e.aA=function(a){e.isEnabled&&(e.Vk=!1,Cl(e,a,!0),a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())},e.ui=function(a){if(e.isEnabled){e.Vk=!0;var d=e.Yt;d[a.pointerId]===void 0&&(d[a.pointerId]=a),d=e.oj;var E=!1;if(d[0]===null||d[0].pointerId!==a.pointerId&&d[0].pointerType===a.pointerType)if(d[1]!==null&&d[1].pointerId===a.pointerId)d[1]=a,E=!0;else if(d[0]===null)d[0]=a;else if(d[1]===null)d[1]=a,E=!0;else{a.preventDefault();return}else d[0]=a;(d=a.pointerType==="touch"||a.pointerType==="pen")&&(e.qu=!1,e.wq=!0);var O=E;E=zd(e,a,!0,!1,!0,O),Ih(e,a,E),E.targetDiagram=Hd(a,a.target),E.targetObject=null,O||E.clone(e.bq),O=e.uw,d=d?25:10,a.timeStamp-e.tw<e.zy&&!(Math.abs(O.x-a.screenX)>d||Math.abs(O.y-a.screenY)>d)?e.yq++:e.yq=1,E.clickCount=e.yq,e.tw=a.timeStamp,e.uw.sg(a.screenX,a.screenY),e.doMouseDown(),a.button===1?a.preventDefault():ru(E,a)}},e.dk=function(a){if(e.isEnabled){e.Vk=!0;var d=e.oj;if(d[0]===null||d[0].pointerId!==a.pointerId&&d[0].pointerType===a.pointerType){if(d[1]!==null&&d[1].pointerId===a.pointerId){d[1]=a;return}if(d[0]===null)d[0]=a;else return}else d[0]=a;if(d[0].pointerId===a.pointerId){d=zd(e,a,!1,!1,!1,d[1]!==null);var E=mn.document.elementFromPoint(a.clientX,a.clientY)||null;E!==null&&E.shadowRoot!==void 0&&E.shadowRoot!==null&&(E=E.shadowRoot.elementFromPoint(a.clientX,a.clientY));var O=e,D=a;E&&E.H&&(D=a,O=E.H),d.targetDiagram=O,Ih(e,D,d),d.targetObject=null,e.doMouseMove(),ru(d,a)}}},e.fk=function(a){if(e.isEnabled){e.Vk=!0;var d=a.pointerType==="touch"||a.pointerType==="pen",E=e.Yt;if(d&&e.qu)delete E[a.pointerId],a.preventDefault();else if(E=e.oj,E[0]===null||E[0].pointerId!==a.pointerId&&E[0].pointerType===a.pointerType)E[1]!==null&&E[1].pointerId===a.pointerId&&(E[1]=null);else{E[0]=null,E=zd(e,a,!1,!0,!0,!1);var O=mn.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 xt&&O.H!==e&&Ih(O.H,a,E),O===null&&(O=a.target),Ih(e,a,E),E.clickCount=e.yq,E.targetDiagram=Hd(a,O),E.targetObject=null,e.doMouseUp(),ru(E,a),d&&(e.wq=!1)}}},e.ek=function(a){if(e.isEnabled){e.Vk=!1;var d=e.Yt;d[a.pointerId]&&delete d[a.pointerId],d=e.oj,d[0]!==null&&d[0].pointerId===a.pointerId&&(d[0]=null),d[1]!==null&&d[1].pointerId===a.pointerId&&(d[1]=null),a.pointerType!=="touch"&&a.pointerType!=="pen"&&(a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())}},e.ck=function(a){var d=e.oj;d[0]!==null&&d[0].pointerId===a.pointerId?(d[0]=null,e.wq=!1):d[1]!==null&&d[1].pointerId===a.pointerId&&(d[1]=null)},e.Vp=r.Z["d"+df[1]+df[2]+"wI"+Bh.slice(1,5)]["b"+X1.slice(1,t)](r.Z,ff,t,t),r.Vc(!0),fv(e),e.nl==="svg"&&(t=e.pj.get("svg"),e.Ka.appendChild(t.Oa),e.ib=t.context)}}xt.prototype.addEventListener=function(e,t,n,r){e.addEventListener(t,n,{capture:r,passive:!1})},xt.prototype.removeEventListener=function(e,t,n,r){e.removeEventListener(t,n,{capture:r})};function fv(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(mn,"resize",e.Ov,!1)}function ka(e){30<e.Sq&&(e.Yh=1)}function of(e,t){e.Yh!==null&&(e.Yh=null,t&&e.hk(),Di&&Di.nx||(e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0))}xt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:mn.devicePixelRatio||1},xt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},xt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},xt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},xt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},xt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},xt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},xt.prototype.doFocus=function(){this.focus()},xt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var e=mn.scrollX||mn.pageXOffset,t=mn.scrollY||mn.pageYOffset;this.ta.focus(),mn.scrollTo(e,t)}},xt.prototype.Oy=function(){this.H.R("GainedFocus")},xt.prototype.Ny=function(){this.H.R("LostFocus")};function Bd(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===ea&&(e.Jk=!0,t.C()),e.ld||e.$b())}}}function ug(e){var t=new ys;t.name="Background",e.Al(t),t=new ys,t.name="",e.Al(t),t=new ys,t.name="Foreground",e.Al(t),t=new ys,t.name="Adornment",t.isTemporary=!0,t.isInDocumentBounds=!1,e.Al(t),t=new ys,t.name="Tool",t.isTemporary=!0,t.isInDocumentBounds=!0,e.Al(t),t=new ys,t.name="Grid",t.allowSelect=!1,t.pickable=!1,t.isTemporary=!0,t.isInDocumentBounds=!1,e.Ww(t,e.Qj("Background"))}function cg(e){var t=new Zt(Zt.Grid);t.name="GRID";var n=new ur;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new ur,n.figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new ur,n.figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new ur,n.figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new ur,n.figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new ur,n.figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new Pn,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 hg(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Mh(this.H)}function fg(e){this.H.isEnabled?(this.H.lu=e.target.scrollTop,this.H.ju=e.target.scrollLeft):Mh(this.H)}xt.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,d=r.y-o.top,E=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 se=i.width,ge=i.height,ve=i.right,Te=i.bottom;i=this.scale;var Ke=e.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ke=Ke+e.scrollWidth-e.clientWidth;break;case"reverse":Ke=e.scrollWidth-Ke-e.clientWidth}var Ge=Ke;se<E||ge<O?(Ke=Pe.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ge&&(Ke.x=Ge/i+a,this.ju=Ge),this.allowVerticalScroll&&this.lu!==e.scrollTop&&(Ke.y=e.scrollTop/i+d,this.lu=e.scrollTop),this.position=Ke,Pe.free(Ke),this.Ee=this.qr=!1):(Ke=Pe.alloc(),e.uy&&this.allowHorizontalScroll&&(a<X&&(this.position=Ke.h(Ge+a,this.position.y)),D>ve&&(this.position=Ke.h(-(t.scrollWidth-this.Aa)+Ge-this.Aa/i+D,this.position.y))),e.vy&&this.allowVerticalScroll&&(d<r&&(this.position=Ke.h(this.position.x,e.scrollTop+d)),o>Te&&(this.position=Ke.h(this.position.x,-(t.scrollHeight-this.ya)+e.scrollTop-this.ya/i+o))),Pe.free(Ke),this.vd=!0,this.Ee=this.qr=!1,r=this.documentBounds,i=this.viewportBounds,D=r.right,ve=i.right,o=r.bottom,Te=i.bottom,a=r.x,X=i.x,d=r.y,r=i.y,se>=E&&a>=X&&D<=ve&&(n.style.width="1px"),ge>=O&&d>=r&&o<=Te&&(n.style.height="1px"))}},xt.prototype.computeBounds=function(e){return e===void 0&&(e=new Ct),Ps(this),jd(this,e)};function jd(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 d=a.length,E=0;E<d;E++){var O=a[E];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}xt.prototype.computePartsBounds=function(e,t){t===void 0&&(t=!1);var n=null;if(on(e))for(var r=0;r<e.length;r++){var i=e[r];!t&&i instanceof en||(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 en||(r.Va(),n===null?n=r.actualBounds.copy():n.ed(r.actualBounds));return n===null?new Ct(NaN,NaN,0,0):n};function jl(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=Pe.alloc(),n.xi(e.documentBounds,e.initialDocumentSpot);var r=e.viewportBounds;r=Ct.allocAt(0,0,r.width,r.height);var i=Pe.alloc();i.xi(r,e.initialViewportSpot),i.h(n.x-i.x,n.y-i.y),e.position=i,Ct.free(r),Pe.free(i),Pe.free(n)}n=e.yh,t&&e.Fg!==ea&&(n=e.Fg);var o=n!==ea?Rh(e,n):e.scale;n=e.pa.x,r=e.pa.y,i=e.Aa/o;var a=e.ya/o,d=e.zk,E=e.pq;t&&!d.sb()&&(E.sb()||E.Xb())&&(d=E.Xb()?ir:E),Ud(e,e.documentBounds,i,a,d,t),t=e.scale,e.scale=o,e.vb=!1,o=e.viewportBounds,lt.B(o.x,n)&&lt.B(o.y,r)&&lt.B(o.width,i)&&lt.B(o.height,a)||e.onViewportBoundsChanged(new Ct(n,r,i,a),o,t,!1)}}function Rh(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),d=o/i,E=a/r;return t===fl?(t=Math.min(E,d),t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):t===nh?(t=E>d?(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}xt.prototype.zoomToFit=function(){var e=this.sj;this.sj=_c,this.scale=Rh(this,fl),e!==_c&&(jl(this,!1),Ud(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=e},ye=xt.prototype,ye.BA=function(e,t){t===void 0&&(t=fl);var n=e.width,r=e.height;if(!(n===0||r===0||isNaN(n)&&isNaN(r))){var i=1;if(t===fl||t===nh)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===nh?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 Pe(e.x,e.y)}},ye.Jy=function(e,t){this.Va();var n=this.documentBounds,r=this.viewportBounds;this.position=new Pe(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 ht){this.eq=e;var t=Pe.alloc();this.fq=this.op(e.ga(xr,t)),Pe.free(t)}else this.eq=null,this.fq=En};function Ud(e,t,n,r,i,o){var a=Pe.allocAt(e.pa.x,e.pa.y),d=a.x,E=a.y;if(e.eq!==null){var O=Pe.alloc();O=e.eq.ga(xr,O),d=O.x-e.fq.x/e.scale,E=O.y-e.fq.y/e.scale,i=nr,Pe.free(O)}(o||e.scrollMode===_c)&&(i.sb()&&(n>t.width&&(d=t.x+(i.x*t.width+i.offsetX)-(i.x*n-i.offsetX)),r>t.height&&(E=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?(d=Math.min(d+n/2,t.right+Math.max(o,i.right)-n/2),d=Math.max(d,t.left-Math.max(o,i.left)+n/2),d-=n/2):d>t.left?d=t.left:d<t.right-n&&(d=t.right-n),n=r-t.height,r<t.height+i.top+i.bottom?(E=Math.min(E+r/2,t.bottom+Math.max(n,i.bottom)-r/2),E=Math.max(E,t.top-Math.max(n,i.top)+r/2),E-=r/2):E>t.top?E=t.top:E<t.bottom-r&&(E=t.bottom-r)),a.x=isFinite(d)?d:-e.yb.left,a.y=isFinite(E)?E:-e.yb.top,e.positionComputation!==null&&(t=e.positionComputation(e,a),a.x=t.x,a.y=t.y),Xc(e.Yd,e.pa,a),e.pa.h(a.x,a.y),Iu(e),Pe.free(a)}ye.Ol=function(e,t){if(t===void 0&&(t=!0),t){if(e=Gu(this,e,function(n){return n.part},function(n){return n.canSelect()}),e instanceof Pn)return e}else if(e=Gu(this,e,function(n){return n.part}),e instanceof Pn)return e;return null},ye.ic=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null),Ps(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 Gu(e,t,n,r){for(n===void 0&&(n=null),r===void 0&&(r=null),Ps(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),sf(this,e,function(r){return r.part},t?function(r){return r instanceof Pn&&r.canSelect()}:null,n)};function sf(e,t,n,r,i){for(n===void 0&&(n=null),r===void 0&&(r=null),i instanceof Gt||i instanceof Wt||(i=new Wt),Ps(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 Gt||r instanceof Wt||(r=new Wt),Ps(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),Bf(this,e,function(i){return i instanceof Pn&&(!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 Gt||i instanceof Wt||(i=new Wt),Ps(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 Wt;Ps(this);for(var d=this.Wa.iteratorBackwards;d.next();){var E=d.value;E.visible&&E.Nu(e,t,n,r,a,i,o)}return a};function Bf(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 Gt||i instanceof Wt||(i=new Wt),Ps(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),af(this,e,t,function(o){return o instanceof Pn&&(!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 Gt||i instanceof Wt)&&(o=i),i=!0),o instanceof Gt||o instanceof Wt||(o=new Wt),Ps(this);for(var a=this.Wa.iteratorBackwards;a.next();){var d=a.value;d.visible&&d.og(e,t,n,r,i,o)}return o};function af(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 Gt||i instanceof Wt)&&(o=i),i=!0),o instanceof Gt||o instanceof Wt||(o=new Wt),Ps(e),e=e.Wa.iteratorBackwards;e.next();){var d=e.value;d.visible&&!d.isTemporary&&d.og(t,n,a,r,i,o)}return o}xt.prototype.acceptEvent=function(e){return Cl(this,e,e instanceof MouseEvent)};function Cl(e,t,n){var r=e.Qg;return e.Qg=e.cj,e.cj=r,r.diagram=e,r.event=t,n?Ih(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),fr&&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=Hd(t,t.target),r.targetObject=null,r}function Hd(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 zd(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,fr&&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 ru(e,t){return e.bubbles?!0:(t.stopPropagation!==void 0&&t.stopPropagation(),t.cancelable!==!1&&t.preventDefault(),t.cancelBubble=!0,!1)}xt.prototype.Qz=function(e){var t=this.H;if(!this.H.isEnabled)return!1;var n=Cl(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(),ru(n,e)},xt.prototype.Rz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Cl(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(),ru(n,e)},xt.prototype.bz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Cl(t,e,!0);return t.mouseEnter!==null&&t.mouseEnter(n),t.currentTool.standardMouseOver(),ru(n,e)},xt.prototype.cz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Cl(t,e,!0);return t.mouseLeave!==null&&t.mouseLeave(n),ru(n,e)},xt.prototype.getMouse=function(e){var t=this.ta;if(t===null)return new Pe(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?rn(new Pe(t,e),this.Ab):new Pe(t,e)};function Ih(e,t,n){var r=e.ta,i=e.Aa,o=e.ya,a=0,d=0;r!==null&&(r=r.getBoundingClientRect(),a=t.clientX-i/r.width*r.left,d=t.clientY-o/r.height*r.top),n.viewPoint.h(a,d),e.Ab!==null?(t=Pe.allocAt(a,d),e.Ab.Cd(t),n.documentPoint.assign(t),Pe.free(t)):n.documentPoint.h(a,d)}function Gd(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))}}xt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function dg(e){e.ld||Ps(e),e.Va()}xt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},ye=xt.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,Tl(this),this.hf=!1,this.du=new Pe(NaN,NaN),t.isEnabled=n,this.ld=!0;var r=this;e!==null&&Ci(function(){r.ld=!1,qo(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;mn.requestAnimationFrame(function(){t.kg&&t.bd()})}},ye.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Tl(this))};function Jc(e,t,n){!e.Ee||e.vb||e.animationManager.defaultAnimation.isAnimating||Mh(e)||(t&&Ps(e),n&&jl(e,!1))}function Tl(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 d=i[a];Go(d,!1),d.v()}r.clear()}r=e.ow,0<r.count&&(r.each(function(E){E.Nv()}),r.clear()),i=r=!1,n.defaultAnimation.isAnimating&&(i=!0,r=e.skipsUndoManager,e.skipsUndoManager=!0),n.zb||Bd(e),Jc(e,!1,!0),e.fe!==null&&(e.fe.visible&&!e.mq&&(Ru(e),e.mq=!0),!e.fe.visible&&e.mq&&(e.mq=!1)),Ps(e),o=!1,(!e.hf||e.xh)&&(e.hf?qd(e,!e.Jk):(e.Ea("Initial Layout"),n.isEnabled===!1&&n.Cc(),qd(e,!1)),o=!0),e.Jk=!1,Ps(e),e.ou||dg(e),Jc(e,!0,!1),a=!1,o?(n=Ct.alloc(),n.assign(e.viewportBounds),e.hf||(a=e.hf=!0,e.skipsUndoManager||(e.undoManager.isPendingClear=!0),e.undoManager.isPendingUnmodified=!0,Wd(e)),e.R("LayoutCompleted"),Jc(e,!0,!1),Ct.free(n)):n.Ok&&n.Qw&&(e.Fg!==ea?e.scale=Rh(e,e.Fg):e.yh!==ea?e.scale=Rh(e,e.yh):(n=e.initialScale,isFinite(n)&&0<n&&(e.scale=n)),jl(e,!0)),o&&a&&e.eb("Initial Layout"),Ps(e),t||e.gc(e.ib),i&&(e.skipsUndoManager=r),e.ld=!1}}function Wd(e){if(e.Fg!==ea)e.scale=Rh(e,e.Fg);else if(e.yh!==ea)e.scale=Rh(e,e.yh);else{var t=e.initialScale;isFinite(t)&&0<t&&(e.scale=t)}jl(e,!0),t=e.Wa.s,e.Fd(t,t.length,e,e.viewportBounds),e.R("InitialLayoutCompleted"),e.du.assign(e.pa),Ru(e)}function Ps(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 Wt,e.Nv(n,e.De)}e.nodes.each(function(r){r instanceof tr&&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 tr||(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))}for(e.reset();e.next();)n=e.value,n instanceof tr&&n.isVisible()&&lf(this,n);for(e.reset();e.next();)n=e.value,n instanceof en&&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 Zr&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))};function lf(e,t){for(var n=An(),r=An(),i=t.memberParts;i.next();){var o=i.value;o.isVisible()&&(o instanceof tr?(pl(o)||fa(o)||ih(o))&&lf(e,o):o instanceof en?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(Nn(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();Nn(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&&nt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var t=this.animationManager;if(!t.zb&&(!t.isAnimating||t.isTicking)){Lh(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,d=this.Ab;for(d.reset(),i!==1&&d.scale(i),t.x===0&&t.y===0||d.translate(-o,-a),e.ti=null,u0(e,d.m11,d.m12,d.m21,d.m22,d.dx,d.dy),this.pb!==1&&(e.globalAlpha=this.pb),Cc(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?jh(this.Yf,this)&&(e=this.Vp()):e=!0,e&&(Vn.prototype.Cd=Vn.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,Lh(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,d=this.pa;var E=this.Ca,O=Math.round(d.x*E)/E,D=Math.round(d.y*E)/E;for(E!==1&&o.scale(E),d.x===0&&d.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),Cc(this,e),d=0;d<i;d++)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[d].gc(e,this);if(t=!1,this.Yf?jh(this.Yf,this)&&(t=this.Vp()):t=!0,t&&(Vn.prototype.Cd=Vn.prototype.Eu),r?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,t=+new Date-+n,r=Di&&Di.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 jf(e,t,n,r,i,o,a,d,E,O){if(e.Ka!==null){e.ta===null&&nt("No canvas specified"),a===void 0&&(a=null),d===void 0&&(d=null),E===void 0&&(E=!1),O===void 0&&(O=!1),Lh(e),e.ib.Vc(!0),e.vd=!0,e.$i=!0;var D=e.Ca;e.Ca=i;var X=e.Wa.s,se=X.length;try{var ge=new Ct(o.x,o.y,r.width/i,r.height/i),ve=ge.copy();ve.Co(n),Ru(e,ve),Ps(e),e.Fd(X,se,e,ge),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,r.width,r.height),d!==null&&d!==""&&(t.fillStyle=d,t.ox(0,0,r.width,r.height));var Te=e.Mb;t.scale(Te,Te);var Ke=Vn.alloc();Ke.reset(),Ke.translate(n.left,n.top),Ke.scale(i),o.x===0&&o.y===0||Ke.translate(-o.x,-o.y),t.setTransform(Ke.m11,Ke.m12,Ke.m21,Ke.m22,Ke.dx,Ke.dy),t.yc(),t instanceof Qa&&u0(t,Ke.m11,Ke.m12,Ke.m21,Ke.m22,Ke.dx,Ke.dy),Vn.free(Ke),Cc(e,t),t.globalAlpha=e.pb;var Ge=e.Qj("Grid");if(a){var Xe=new Wt,Ze=a.iterator;for(Ze.reset();Ze.next();){var tt=Ze.value;tt instanceof Pn&&(O||tt.layer!==Ge)&&(tt.Gj(),Xe.add(tt))}for(O=0;O<se;O++)og(X[O],t,e,Xe,E);Xe.each(function(St){return St.Gj()})}else for(Xe=0;Xe<se;Xe++){var at=X[Xe];at===Ge?O&&at.gc(t,e,!0):at.gc(t,e,E)}e.$i=!1,e.Yf&&jh(e.Yf,e)&&e.Vp()}finally{e.Ca=D,e.ib.Vc(!0),e.vd=!0,e.Fd(X,se,e,e.viewportBounds),Ru(e),e.ib instanceof Qa&&(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 Or,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(fr||mt),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Cc(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 Or,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 Oh(this,e),this};function Oh(e,t){var n=e instanceof Zt,r=e instanceof xt,i;for(i in t){i===""&&nt("Setting properties requires non-empty property names");var o=e,a=i;if(n||r){var d=i.indexOf(".");if(0<d){var E=i.substring(0,d);n?o=e.fb(E):(o=e[E],o==null&&(o=e.toolManager[E])),dt(o)?a=i.substr(d+1):nt("Unable to find object named: "+E+" in "+e.toString()+" when trying to set property: "+i)}}if(a[0]!=="_"&&!Xn(o,a))if(r&&a==="ModelChanged"){e.Yw(t[a]);continue}else if(r&&a==="Changed"){e.Pe(t[a]);continue}else if(r&&Xn(e.toolManager,a))o=e.toolManager;else if(r&&mg(e,a)){e.Bj(a,t[a]);continue}else if(e instanceof In&&a==="Changed"){e.Pe(t[a]);continue}else nt('Trying to set undefined property "'+a+'" on object: '+o.toString());o[a]=t[i],a[0]==="_"&&o instanceof ht&&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 wt,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")},xt.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!==hf&&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=Ct.alloc(),Qd(this,this.computeBounds(r)),Ct.free(r)),r=this.ta,r===null||r instanceof Ou)))){var a=this.Mb;i=this.Aa*a;var d=this.ya*a,E=this.scale*a;o=Math.round(Math.round(t.x*E)-Math.round(e.x*E)),t=Math.round(Math.round(t.y*E)-Math.round(e.y*E)),E=this.jw,e=this.oy,E.width!==i&&(E.width=i),E.height!==d&&(E.height=d),e.clearRect(0,0,i,d),E=190*a;var O=70*a,D=Math.max(o,0),X=Math.max(t,0),se=Math.floor(i-D),ge=Math.floor(d-X);e.drawImage(r.Oa,D,X,se,ge,0,0,se,ge),jh(this.Yf,this)&&e.clearRect(0,0,E,O),r=An(),e=An(),ge=Math.abs(o),se=Math.abs(t);var ve=D===0?0:i-ge;D=Pe.allocAt(ve,0),ge=Pe.allocAt(ge+ve,d),e.push(new Ct(Math.min(D.x,ge.x),Math.min(D.y,ge.y),Math.abs(D.x-ge.x),Math.abs(D.y-ge.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),rn(D,Te),rn(ge,Te),r.push(new Ct(Math.min(D.x,ge.x),Math.min(D.y,ge.y),Math.abs(D.x-ge.x),Math.abs(D.y-ge.y))),ve=X===0?0:d-se,D.h(0,ve),ge.h(i,se+ve),e.push(new Ct(Math.min(D.x,ge.x),Math.min(D.y,ge.y),Math.abs(D.x-ge.x),Math.abs(D.y-ge.y))),rn(D,Te),rn(ge,Te),r.push(new Ct(Math.min(D.x,ge.x),Math.min(D.y,ge.y),Math.abs(D.x-ge.x),Math.abs(D.y-ge.y))),jh(this.Yf,this)&&(i=0<o?0:-o,d=0<t?0:-t,D.h(i,d),ge.h(E+i,O+d),e.push(new Ct(Math.min(D.x,ge.x),Math.min(D.y,ge.y),Math.abs(D.x-ge.x),Math.abs(D.y-ge.y))),rn(D,Te),rn(ge,Te),r.push(new Ct(Math.min(D.x,ge.x),Math.min(D.y,ge.y),Math.abs(D.x-ge.x),Math.abs(D.y-ge.y)))),Pe.free(D),Pe.free(ge),Jc(this,!1,!0),this.Ka===null&&nt("No div specified"),this.ta===null&&nt("No canvas specified"),!this.animationManager.zb&&(i=this.ib,this.Fc)){for(Lh(this),d=this.Mb,i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,this.Aa*d,this.ya*d),i.drawImage(this.jw.Oa,0<o?0:Math.round(-o),0<t?0:Math.round(-t)),o=this.pa,a=this.Ca,E=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(-E,-O),i.save(),i.beginPath(),o=e.length,a=0;a<o;a++)E=e[a],E.width!==0&&E.height!==0&&i.rect(Math.floor(E.x),Math.floor(E.y),Math.ceil(E.width),Math.ceil(E.height));for(i.clip(),i.setTransform(d,0,0,d,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),Cc(this,i),i.globalAlpha=this.pb,d=0;d<o;d++)if(a=t[d],E=r,a.visible&&a.pb!==0){O=sc(a,i),X=a.Zq,X.length=0,D=this.scale,se=Ct.alloc(),ge=a.Pa.s,Te=ge.length,ve=E.length;for(var Ke=0;Ke<Te;Ke++){var Ge=ge[Ke],Xe=Kh(Ge,Ge.actualBounds);e:{for(var Ze=2/D,tt=4/D,at=0;at<ve;at++){var St=E[at];if(St.width!==0&&St.height!==0&&Xe.Vu(St.x-Ze,St.y-Ze,St.width+tt,St.height+tt)){Xe=!0;break e}}Xe=!1}Xe&&a.Oj(i,Ge,this,X,D,se,!0)}Ct.free(se),i.globalAlpha=O}i.restore(),i.Vc(!0),this.Yf&&jh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Nn(r),Nn(e),this.ld=!1}}else this.bd();n&&(ka(this),this.bd(),of(this,!0))}else n?(ka(this),this.bd(),of(this,!0)):this.bd()}};function Lh(e){e.pn!==!1&&(e.pn=!1,Vd(e,e.Aa,e.ya))}function Vd(e,t,n){Iu(e);var r=e.Mb;e.ta.resize(t*r,n*r,t,n)&&(e.Fc=!0,e.ib.Vc(!0))}function Mh(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,d=e.Be?e.Db:0,E=i.clientWidth||n+a,O=i.clientHeight||r+d,D=e.viewportBounds;i=D.x;var X=D.y,se=D.width,ge=D.height;if((E!==n+a||O!==r+d)&&(e.gf=!1,e.Be=!1,d=a=0,e.Aa=E,e.ya=O,o=e.pn=!0,Iu(e)),!e.hf||!e.viewportBounds.w())return!0;var ve=e.ku,Te=e.hu;if(e.Ee=!1,!(o||e.gf||e.Be||e.mn||e.nn))return!0;var Ke=e.documentBounds,Ge=0,Xe=0,Ze=0,tt=0,at=D.width,St=D.height,ln=e.rj;e.contentAlignment.sb()?(Ke.width>at&&(Ge=ln.left,Xe=ln.right),Ke.height>St&&(Ze=ln.top,tt=ln.bottom)):(Ge=ln.left,Xe=ln.right,Ze=ln.top,tt=ln.bottom);var _n=Ke.width+Ge+Xe,Sn=Ke.height+Ze+tt;ln=e.scale;var qt=_n>E/ln,Pt=Sn>O/ln;if(!(o||e.gf||e.Be||qt||Pt))return!0;Ge=Ke.x-Ge,E=D.x,Xe=Ke.right+Xe,O=D.right+a,Ze=Ke.y-Ze;var er=D.y;Ke=Ke.bottom+tt,D=D.bottom+d;var $n="1px";if(tt="1px",e.scrollMode===_c&&(qt||Pt)&&(qt&&e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(qt=1,Ge+1<E&&(qt=Math.max((E-Ge)*ln+e.Aa,qt)),Xe>O+1&&(qt=Math.max((Xe-O)*ln+e.Aa,qt)),at+a+1<_n&&(qt=Math.max((_n-at)*ln+e.Aa,qt)),$n=qt.toString()+"px"),Pt&&e.hasVerticalScrollbar&&e.allowVerticalScroll&&(qt=1,Ze+1<er&&(qt=Math.max((er-Ze)*ln+e.ya,qt)),Ke>D+1&&(qt=Math.max((Ke-D)*ln+e.ya,qt)),St+d+1<Sn&&(qt=Math.max((Sn-St)*ln+e.ya,qt)),tt=qt.toString()+"px")),qt=$n!=="1px",Pt=tt!=="1px",qt&&Pt||!qt&&!Pt||(Pt&&(O-=e.Db),qt&&(D-=e.Db),_n<at+a||!e.hasHorizontalScrollbar||!e.allowHorizontalScroll||(a=1,Ge+1<E&&(a=Math.max((E-Ge)*ln+e.Aa,a)),Xe>O+1&&(a=Math.max((Xe-O)*ln+e.Aa,a)),at+1<_n&&(a=Math.max((_n-at)*ln+e.Aa,a)),$n=a.toString()+"px"),qt=$n!=="1px",a=e.ya,qt!==e.Be&&(a=qt?e.ya-e.Db:e.ya+e.Db),Sn<St+d||!e.hasVerticalScrollbar||!e.allowVerticalScroll||(d=1,Ze+1<er&&(d=Math.max((er-Ze)*ln+a,d)),Ke>D+1&&(d=Math.max((Ke-D)*ln+a,d)),St+1<Sn&&(d=Math.max((Sn-St)*ln+a,d)),tt=d.toString()+"px"),Pt=tt!=="1px"),e.qr&&qt===e.Be&&Pt===e.gf)return n===e.Aa&&r===e.ya||e.bd(),!1;if(qt!==e.Be&&($n==="1px"?e.ya=e.ya+e.Db:e.ya=Math.max(e.ya-e.Db,1),o=!0),e.Be=qt,Te.style.width=$n,Pt!==e.gf&&(tt==="1px"?e.Aa=e.Aa+e.Db:e.Aa=Math.max(e.Aa-e.Db,1),o=!0,e.tn&&(d=Pe.alloc(),Pt?(t.style.left=e.Db+"px",e.position=d.h(e.pa.x+e.Db/e.scale,e.pa.y)):(t.style.left="0px",e.position=d.h(e.pa.x-e.Db/e.scale,e.pa.y)),Pe.free(d))),o&&Iu(e),e.gf=Pt,Te.style.height=tt,e.gu=!0,o&&(e.pn=!0),t=ve.scrollLeft,e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(at+1<_n?t=(e.position.x-Ge)*ln:Ge+1<E?t=ve.scrollWidth-ve.clientWidth:Xe>O+1&&(t=e.position.x*ln)),e.tn)switch(e.bu){case"negative":t=-(ve.scrollWidth-t-ve.clientWidth);break;case"reverse":t=ve.scrollWidth-t-ve.clientWidth}return ve.scrollLeft=t,e.hasVerticalScrollbar&&e.allowVerticalScroll&&(St+1<Sn?ve.scrollTop=(e.position.y-Ze)*ln:Ze+1<er?ve.scrollTop=ve.scrollHeight-ve.clientHeight:Ke>D+1&&(ve.scrollTop=e.position.y*ln)),E=e.Aa,O=e.ya,ve.style.width=E+(e.gf?e.Db:0)+"px",ve.style.height=O+(e.Be?e.Db:0)+"px",n!==E||r!==O||e.animationManager.zb?(n=Ct.allocAt(i,X,se,ge),e.onViewportBoundsChanged(n,e.viewportBounds,ln,o),Ct.free(n),!1):!0}ye=xt.prototype,ye.add=function(e){var t=e.diagram;if(t!==this&&(t!==null&&nt("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&&nt('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(uo,"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;Gh(e,function(n){Dh(t,n)}),(e instanceof Zr||e instanceof tr&&e.placeholder!==null)&&e.v(),e.data!==null&&Gh(e,function(n){by(t.partManager,n)}),fa(e)!==!0&&ih(e)!==!0||this.De.add(e),Q0(e,!0,this),eb(e)?(e.actualBounds.w()&&this.N(Kh(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Kh(e,e.actualBounds)),this.$b()},ye.pc=function(e){e.Ej(),this.partManager.pc(e);var t=this;e.data!==null&&Gh(e,function(n){Sy(t.partManager,n,t)}),this.De.remove(e),eb(e)?(e.actualBounds.w()&&this.N(Kh(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Kh(e,e.actualBounds)),this.$b()},ye.remove=function(e){Kd(this,e,!0)};function Kd(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(po,"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),on(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 Wt,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)},xt.prototype.moveParts=function(e,t,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=Uf(this)),this.toolManager!==null){var i=new wt;if(e!==null)if(on(e))for(var o=0;o<e.length;o++)Wu(this,i,e[o],n,r);else for(e=e.iterator;e.next();)Wu(this,i,e.value,n,r);else{for(e=this.parts;e.next();)Wu(this,i,e.value,n,r);for(e=this.nodes;e.next();)Wu(this,i,e.value,n,r);for(e=this.links;e.next();)Wu(this,i,e.value,n,r)}Qc(this,i,t,r,n)}};function Wu(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=Uf(e)),n instanceof fn){if(t.add(n,e.Pd(i,n,n.location)),n instanceof tr&&(n.placeholder!==null||i.dragsMembers))for(o=n.memberParts;o.next();)Wu(e,t,o.value,r,i,i.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var a=o.value;if(!t.contains(a)){var d=a.fromNode,E=a.toNode;d!==null&&t.contains(d)&&E!==null&&t.contains(E)&&Wu(e,t,a,r,i)}}if(i.dragsTree)for(n=n.Ou();n.next();)Wu(e,t,n.value,r,i)}else if(n instanceof en)for(t.add(n,e.Pd(i,n)),n=n.labelNodes;n.next();)Wu(e,t,n.value,r,i);else n instanceof Zr||t.add(n,e.Pd(i,n,n.location))}function Qc(e,t,n,r,i){if(t!==null&&t.count!==0){var o=Pe.alloc(),a=Pe.alloc();a.assign(n),isNaN(a.x)&&(a.x=0),isNaN(a.y)&&(a.y=0),(n=e.Mr)||zf(e,t);for(var d=An(),E=An(),O=t.iterator,D=Pe.alloc();O.next();){var X=O.key,se=O.value;if(X.Zc()){var ge=Yd(e,X,t);ge!==null?d.push(new l(X,se,ge)):(!i||X.canMove())&&(ge=se.point,o.assign(ge),e.computeMove(X,o.add(a),r,D),X.location=D,se.shifted===void 0&&(se.shifted=new Pe),se.shifted.assign(D.re(ge)))}else O.key instanceof en&&E.push(O.sa)}for(Pe.free(D),i=d.length,O=0;O<i;O++)X=d[O],o.assign(X.info.point),X.Su.shifted===void 0&&(X.Su.shifted=new Pe),X.node.location=o.add(X.Su.shifted);for(i=Pe.alloc(),O=Pe.alloc(),X=E.length,se=0;se<X;se++){var ve=E[se];if(ge=ve.key,ge instanceof en)if(ge.suspendsRouting){ge.Tg=null,D=ge.fromNode;var Te=ge.toNode;if(e.draggedLink!==null&&r.dragsLink)if(Te=ve.value.point,ge.dragComputation===null)t.add(ge,e.Pd(r,ge,a)),Mc(ge,a.x-Te.x,a.y-Te.y);else{ve=Pe.allocAt(0,0),(D=ge.i(0))&&D.w()&&ve.assign(D);var Ke=D=Pe.alloc().assign(ve).add(a);r.isGridSnapEnabled&&(r.isGridSnapRealtime||e.lastInput.up)&&(Ke=Pe.alloc(),Hf(e,ge,D,Ke,r)),D.assign(ge.dragComputation(ge,D,Ke)).re(ve),t.add(ge,e.Pd(r,ge,D)),Mc(ge,D.x-Te.x,D.y-Te.y),Pe.free(ve),Pe.free(D),Ke!==D&&Pe.free(Ke)}else D!==null&&(i.assign(D.location),Ke=t.I(D),Ke!==null&&i.re(Ke.point)),Te!==null&&(O.assign(Te.location),Ke=t.I(Te),Ke!==null&&O.re(Ke.point)),D!==null&&Te!==null?i.Xa(O)?(D=ve.value.point,Te=o,Te.assign(i),Te.re(D),t.add(ge,e.Pd(r,ge,i)),Mc(ge,Te.x,Te.y)):(ge.suspendsRouting=!1,ge.bb()):(ve=ve.value.point,D=D!==null?i:Te!==null?O:a,t.add(ge,e.Pd(r,ge,D)),Mc(ge,D.x-ve.x,D.y-ve.y))}else(ge.fromNode===null||ge.toNode===null)&&(D=ve.value.point,t.add(ge,e.Pd(r,ge,a)),Mc(ge,a.x-D.x,a.y-D.y))}Pe.free(o),Pe.free(a),Pe.free(i),Pe.free(O),Nn(d),Nn(E),n||(Ps(e),qc(e,t))}}xt.prototype.computeMove=function(e,t,n,r){if(r===void 0&&(r=new Pe),r.assign(t),e===null)return r;var i=t,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&(i=Pe.alloc(),Hf(this,e,t,i,n)),n=e.dragComputation!==null?e.dragComputation(e,t,i):i;var a=e.minLocation,d=a.x;isNaN(d)&&(d=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 E=e.maxLocation,O=E.x;return isNaN(O)&&(O=o?Math.round(1e3*e.location.x)/1e3:e.location.x),E=E.y,isNaN(E)&&(E=o?Math.round(1e3*e.location.y)/1e3:e.location.y),r.h(Math.max(d,Math.min(n.x,O)),Math.max(a,Math.min(n.y,E))),i!==t&&Pe.free(i),r};function Uf(e){var t=e.toolManager.findTool("Dragging");return t!==null?t.dragOptions:e.Wm}function Hf(e,t,n,r,i){if(i===void 0&&(i=Uf(e)),r.assign(n),t!==null){var o=e.grid;t=i.gridSnapCellSize,e=t.width,t=t.height;var a=i.gridSnapOrigin,d=a.x;if(a=a.y,i=i.gridSnapCellSpot,o!==null){var E=o.gridCellSize;isNaN(e)&&(e=E.width),isNaN(t)&&(t=E.height),o=o.gridOrigin,isNaN(d)&&(d=o.x),isNaN(a)&&(a=o.y)}o=Pe.allocAt(0,0),o.yi(0,0,e,t,i),lt.No(n.x,n.y,d+o.x,a+o.y,e,t,r),Pe.free(o)}}function zf(e,t){if(t!==null)for(e.Mr=!0,e=t.iterator;e.next();)t=e.key,t instanceof en&&(t.suspendsRouting=!0)}function qc(e,t){if(t!==null){for(t=t.iterator;t.next();){var n=t.key;n instanceof en&&(n.suspendsRouting=!1,oy(n)&&n.bb())}e.Mr=!1}}function Yd(e,t,n){return t=t.containingGroup,t!==null&&(e=Yd(e,t,n),e!==null||(e=n.I(t),e!==null))?e:null}ye=xt.prototype,ye.Pd=function(e,t,n){if(n===void 0)return new ac(an);var r=e.isGridSnapEnabled;return e.groupsSnapMembers||t.containingGroup===null||(r=!1),r?new ac(new Pe(Math.round(1e3*n.x)/1e3,Math.round(1e3*n.y)/1e3)):new ac(n.copy())};function $d(e,t,n){if(t.diagram!==null&&t.diagram!==e&&nt("Cannot share a Layer with another Diagram: "+t+" of "+t.diagram),n===null?t.diagram!==null&&nt("Cannot add an existing Layer to this Diagram again: "+t):(n.diagram!==e&&nt("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),t===n&&nt("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&&nt("Cannot add Layer with the name '"+t+"'; a Layer with the same name is already present in this Diagram.")}}ye.Al=function(e){$d(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(uo,"layers",this,null,e,null,n+1),this.N(),this.Ya(),this},ye.Ww=function(e,t){$d(this,e,t),e.Xe(this);var n=this.Wa,r=n.indexOf(e);0<=r&&(n.remove(e),this.cc!==null&&this.cb(po,"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(uo,"layers",this,null,e,null,o),this.N(),0>r&&this.Ya(),this},ye.Cy=function(e,t){$d(this,e,t),e.Xe(this);var n=this.Wa,r=n.indexOf(e);0<=r&&(n.remove(e),this.cc!==null&&this.cb(po,"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(uo,"layers",this,null,e,null,o+1),this.N(),0>r&&this.Ya(),this},ye.kA=function(e){if(e.diagram!==this&&nt("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(po,"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 Gt),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 Gt),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!==ms&&(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 d=new eo;d.diagram=this,d.change=e,d.propertyName=t,d.object=n,d.oldValue=r,d.oldParam=o,d.newValue=i,d.newParam=a,this.ds(d)},ye.g=function(e,t,n,r,i){this.cb(Ui,e,this,t,n,r,i)},xt.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===Ui){var i=e.object;if(oo(i,e.propertyName,e.I(t)),i instanceof ht){var o=i.part;o!==null&&o.Wb()}this.isModified=!0}else if(r===uo){var a=e.object,d=e.newParam,E=e.newValue;if(a instanceof Zt)if(typeof d=="number"&&E instanceof ht){t?a.pc(d):a.Gb(d,E);var O=a.part;O!==null&&O.Wb()}else typeof d=="number"&&E instanceof Wo&&(E.isRow?T0(a,d,t?void 0:E):_0(a,d,t?void 0:E));else if(a instanceof ys){var D=e.oldParam===!0;typeof d=="number"&&E instanceof Pn&&(t?(E.isSelected=!1,E.isHighlighted=!1,E.Wb(),a.pc(D?d:-1,E,D)):a.oi(d,E,D))}else a instanceof xt?typeof d=="number"&&E instanceof ys&&(t?this.Wa.mb(d):(E.Xe(this),this.Wa.Gb(d,E))):nt("unknown ChangedEvent.Insert object: "+e.toString());this.isModified=!0}else if(r===po){var X=e.object,se=e.oldParam,ge=e.oldValue;if(X instanceof Zt)typeof se=="number"&&ge instanceof ht?t?X.Gb(se,ge):X.pc(se):typeof se=="number"&&ge instanceof Wo&&(ge.isRow?T0(X,se,t?ge:void 0):_0(X,se,t?ge:void 0));else if(X instanceof ys){var ve=e.newParam===!0;typeof se=="number"&&ge instanceof Pn&&(t?0>X.Pa.indexOf(ge)&&X.oi(se,ge,ve):(ge.isSelected=!1,ge.isHighlighted=!1,ge.Wb(),X.pc(ve?se:-1,ge,ve)))}else X instanceof xt?typeof se=="number"&&ge instanceof ys&&(t?(ge.Xe(this),this.Wa.Gb(se,ge)):this.Wa.mb(se)):nt("unknown ChangedEvent.Remove object: "+e.toString());this.isModified=!0}else r!==ms&&nt("unknown ChangedEvent: "+e.toString())}finally{this.skipsModelSourceBindings=n}}},xt.prototype.Ea=function(e){return this.undoManager.Ea(e)},xt.prototype.eb=function(e){return this.undoManager.eb(e)},xt.prototype.Kf=function(){return this.undoManager.Kf()},xt.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}},xt.prototype.updateAllTargetBindings=function(e){this.partManager.updateAllTargetBindings(e)},xt.prototype.rp=function(){this.partManager.rp()};function Xd(e,t,n){var r=e.animationManager;if(e.vb||e.ld)e.Ca=n,Iu(e),e.N(),e.Ee=!0,r.zb&&(Vs(r)||r.ce.add(r.H,"scale",t,e.Ca));else if(e.ta===null)e.Ca=n,Iu(e);else{e.vb=!0;var i=e.viewportBounds.copy(),o=e.Aa,a=e.ya,d=e.zoomPoint.x,E=e.zoomPoint.y,O=e.contentAlignment;isNaN(d)&&(O.$c()?O.Hf(xs)?d=0:O.Hf(io)&&(d=o-1):d=O.sb()?O.x*(o-1):o/2),isNaN(E)&&(O.$c()?O.Hf(Qi)?E=0:O.Hf(ds)&&(E=a-1):E=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=Pe.allocAt(e.pa.x+d/t-d/n,e.pa.y+E/t-E/n),e.position=o,Pe.free(o),e.Ca=n,Iu(e),e.vb=!1,e.onViewportBoundsChanged(i,e.viewportBounds,t,!1),jl(e,!1),r.zb&&(Vs(r)||r.ce.add(r.H,"scale",t,e.Ca))}}xt.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!==ea||e.width===t.width&&e.height===t.height||i.C(),i=this.currentTool,this.Vk===!0&&i instanceof Bi&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),ju(i,this)),this.vb||this.invalidateViewport(e,t),Ru(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 Ru(e,t){var n=e.fe;if(n!==null&&n.visible){for(var r=un.alloc(),i=1,o=1,a=n.O.s,d=a.length,E=0;E<d;E++){var O=a[E],D=Math.abs(O.interval);2>D||(Av(O.figure)?o=o*D/lt.vx(o,D):i=i*D/lt.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=Ct.alloc(),e=e.viewportBounds,t.h(e.x,e.y,e.width,e.height),!t.w()){Ct.free(t);return}i=t.width,o=t.height,e=t.x,a=t.y,Ct.free(t)}n.width=i+2*r.width,n.height=o+2*r.height,t=Pe.alloc(),lt.No(e,a,0,0,r.width,r.height,t),t.offset(-r.width,-r.height),un.free(r),n.part.location=t,Pe.free(t)}}xt.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)}},xt.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))},xt.prototype.rA=function(e){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),on(e))for(var t=e.length,n=0;n<t;n++){var r=e[n];r instanceof Pn||nt("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 Pn||nt("Diagram.selectCollection given something that is not a Part: "+t),t.isSelected=!0;this.R("ChangedSelection",this.selection)},xt.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=xt.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 Wt().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 Pn||nt("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=Pe.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)),Pe.free(o);return}nt("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):nt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+t),Pe.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,d=t.m12,E=t.m21,O=t.m22,D=t.dx,X=t.dy,se=n*a+r*E+D;t=n*d+r*O+X;var ge=i*a+r*E+D;return e=i*d+r*O+X,r=n*a+o*E+D,n=n*d+o*O+X,a=i*a+o*E+D,i=i*d+o*O+X,o=Math.min(se,ge),se=Math.max(se,ge),ge=Math.min(t,e),t=Math.max(t,e),o=Math.min(o,r),se=Math.max(se,r),ge=Math.min(ge,n),t=Math.max(t,n),o=Math.min(o,a),se=Math.max(se,a),ge=Math.min(ge,i),t=Math.max(t,i),new Ct(o,ge,se-o,t-ge)},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),rn(e.copy(),this.Ab)};function pg(e){var t=e.isModified;e.Tw!==t&&(e.Tw=t,e.R("Modified"))}function Zd(e){return e=$f.get(e),e!==null?new e:new pi}xt.prototype.doModelChanged=function(e){var t=this;if(e.model===this.model){var n=e.change,r=e.propertyName;if(n===ms&&r[0]==="S")if(r==="StartingFirstTransaction"){var i=this;e=this.toolManager,e.mouseDownTools.each(function(E){return E.diagram=i}),e.mouseMoveTools.each(function(E){return E.diagram=i}),e.mouseUpTools.each(function(E){return E.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===ms){(r==="FinishedUndo"||r==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ps(this));var o=this.animationManager;r==="RolledBackTransaction"&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Za(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&&(pg(this),this.As.clear(),Ec(this.animationManager)),!this.Rt&&a&&this.lastInput.targetDiagram){this.Rt=!0;var d=this;Ci(function(){d.currentTool.standardMouseOver(),d.Rt=!1},10)}}}finally{this.aa=!0}}}};function Dh(e,t){t=t.O.s;for(var n=t.length,r=0;r<n;r++)eh(e,t[r])}function eh(e,t){if(t instanceof Oa){var n=t.element;if(n!==null&&n instanceof HTMLImageElement){n.Bg instanceof Wt&&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 Jd(e,t){if(t instanceof Oa){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 Wt&&n.Bg.remove(e),ad(r));break}}}}}xt.prototype.Wd=function(){this.partManager.Wd()},xt.prototype.Aj=function(e,t){this.Yd.Aj(e,t)},xt.prototype.Cj=function(e,t){this.Yd.Cj(e,t)},xt.prototype.findPartForKey=function(e){return this.partManager.findPartForKey(e)},xt.prototype.Vb=function(e){return this.partManager.Vb(e)},xt.prototype.findLinkForKey=function(e){return this.partManager.findLinkForKey(e)},ye=xt.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:Jn(wn(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:Jn(wn(t)))};function Iu(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 Qd(e,t){e.Zi=!1;var n=e.Sp;n.D(t)||(n=n.copy(),e.Sp.assign(t),jl(e,!1),e.R("DocumentBoundsChanged",void 0,n),e.Ee=!0,e.N())}ye.Va=function(){if(this.Zi){var e=Ct.alloc();Qd(this,this.computeBounds(e)),Ct.free(e)}},ye.rz=function(){for(var e=new Wt,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){Ps(this),e&&Gf(this,!0),this.ld?qd(this,!1):(this.Jk=!0,Tl(this))};function Gf(e,t){for(var n=e.ai.iterator;n.next();)gg(e,n.value,t);e.layout&&(t?e.layout.isValidLayout=!1:e.layout.C())}function gg(e,t,n){if(t!==null){for(var r=t.gl.iterator;r.next();)gg(e,r.value,n);t.layout!==null&&(n?t.layout.isValidLayout=!1:t.layout.C())}}function qd(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||qo(o,"Layout")),e.xh=!1;for(var a=e.ai.iterator;a.next();)ep(e,a.value,t,r);i.isValidLayout||(!t||i.isRealtime||i.isRealtime===null||r===0?(i.doLayout(e),Ps(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||Za(o),e.aa=n}}}function ep(e,t,n,r){if(t!==null){for(var i=t.gl.iterator;i.next();)ep(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),lf(e,t),i.isValidLayout=!0):e.xh=!0)}}ye.yz=function(){for(var e=new Gt,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 Gt;n.add(i,a),n.add(o,a),r.add(i,i),r.add(o,i)}var n=new wt,r=new wt;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 mg(e,t){var n=e.hw.I(t);return n!==null?n:e.hw.I(t.toLowerCase())}function Wf(e,t){var n=e.iw.I(t);if(n!==null||(n=e.iw.I(t.toLowerCase()),n!==null))return n;nt("Unknown DiagramEvent name: "+t)}ye.Bj=function(e,t){return e=Wf(this,e),e!==null&&e.add(t),this},ye.am=function(e,t){e=Wf(this,e),e!==null&&e.remove(t)},ye.R=function(e,t,n){var r=Wf(this,e),i=new xl;if(i.diagram=this,e=mg(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 Vf(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 Kf(this,!1,null,t||null).Yj(e.x,e.y,e.width,e.height)},xt.prototype.computeOccupiedArea=function(e){return this.isVirtualized?this.viewportBounds.copy():this.Zi?jd(this,e):e.assign(this.documentBounds)};function Kf(e,t,n,r){var i=e.Xh;if(i===null&&(e.Xh=i=new Np(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=vg(e,n)),n===null){t=Ct.alloc(),e.computeOccupiedArea(t),t.Bc(100,100),i.initialize(t);for(var o=e.nodes;o.next();){var a=o.value,d=a.layer;d!==null&&d.visible&&!d.isTemporary&&Yf(e,a,r,t)}Ct.free(t)}else{for(0<n.memberParts.count&&(t=e.computePartsBounds(n.memberParts,!1),t.Bc(20,20),i.initialize(t)),t=Ct.alloc(),o=n.memberParts;o.next();)a=o.value,a instanceof fn&&Yf(e,a,r,t);Ct.free(t)}i.group=n,i.Yx=r,i.vs=!1}else t&&bb(i);return i}function vg(e,t){return t.avoidable&&!t.isLinkLabel?t:t.containingGroup!==null?vg(e,t.containingGroup):null}function Yf(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(dd(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(Pc,n,t+1);else for(var a=n;a<=t;a++)o[a]=Pc}else if(t instanceof tr)for(t=t.memberParts;t.next();)i=t.value,i instanceof fn&&Yf(e,i,n,r)}}function Tc(e,t){e.Xh===null||e.Xh.vs||t!==void 0&&(!t.avoidable||t.isLinkLabel)||(e.Xh.vs=!0)}xt.prototype.gs=function(e){this.wp.assign(e),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():tp(this)};function tp(e){e.vk===-1&&(e.vk=Ci(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=Ct.alloc(),e.computeBounds(t),t.ed(e.documentBounds),Qd(e,t),Ct.free(t),e.Fc=!0,e.bd(),tp(e))}},e.vp))}xt.prototype.ug=function(){this.vk!==-1&&(mn.clearTimeout(this.vk),this.vk=-1)},xt.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=Ct.allocAt(0,0,r.width*i,r.height*i);var o=Pe.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(an)||(t=new Pe(t.x+o.x/i,t.y+o.y/i)),Ct.free(r),Pe.free(o),t},ye=xt.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 tr&&(t.$p=null)})};function uf(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>E?t(n,i,d):mn.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 d=e,E=n.callbackTimeout||300,O=+new Date;return mn.requestAnimationFrame(function(){r()}),null}ye.Wz=function(e){return bo?(e===void 0&&(e={}),e.returnType="Image",this.Jx(e)):null},ye.Jx=function(e){return e===void 0&&(e={}),uf(this,this.Xz,e)},ye.Xz=function(e,t,n){var r=yg(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 Bh+"data":i=r.getImageData(0,0,n.width,n.height);break;case Bh:r=(e.document||document).createElement("img"),r.src=n.toDataURL(e.type,e.details),i=r;break;case"blob":return typeof t!="function"&&nt('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 yg(e,t,n,r){if(e.animationManager.Cc(),e.bd(),e.ta===null)return null;typeof t!="object"&&nt("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 un(1/0,1/0):new un(2e3,2e3));var d=t.position||null,E=t.parts||null,O=t.padding===void 0?1:t.padding,D=t.background||null,X=t.omitTemporary;X===void 0&&(X=!0);var se=t.document||document,ge=t.elementFinished||null,ve=t.showTemporary;ve===void 0&&(ve=!X),t=t.showGrid,t===void 0&&(t=ve),i!==null&&isNaN(i.width)&&isNaN(i.height)&&(i=null),typeof O=="number"?O=new sr(O):O instanceof sr||nt("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 Hl(null,se,void 0,!0);var Te=X.context;if(!(i||o||E||d))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=se,r.hs=ge,jf(e,r.context,O,new un(X.width,X.height),e.Ca,e.pa,E,D,ve,t),r.context):(e.Xm=!1,jf(e,Te,O,new un(X.width,X.height),e.Ca,e.pa,E,D,ve,t),e.Xm=!0,X.context);var Ke=e.Pp,Ge=e.documentBounds.copy();if(Ge.Fv(e.yb),ve)for(var Xe=e.Wa.s,Ze=Xe.length,tt=0;tt<Ze;tt++){var at=Xe[tt];if(at.visible&&at.isTemporary){at=at.Pa.s;for(var St=at.length,ln=0;ln<St;ln++){var _n=at[ln];_n.isInDocumentBounds&&_n.isVisible()&&(_n=_n.actualBounds,_n.w()&&Ge.ed(_n))}}}if(Xe=new Pe(Ge.x,Ge.y),E!==null){for(Ze=new Ct(0,0,0,0),tt=!0,at=E.iterator,at.reset();at.next();)St=at.value,St instanceof Pn&&(ln=St.layer,ln!==null&&!ln.visible||ln!==null&&!ve&&ln.isTemporary||!St.isVisible()||(St=St.actualBounds,St.w()&&(tt?(tt=!1,Ze.assign(St)):Ze.ed(St))));Ge.width=Ze.width,Ge.height=Ze.height,Xe.x=Ze.x,Xe.y=Ze.y}return d!==null&&d.w()&&(Xe=d,o||(o=Ke)),Ze=d=0,O!==null&&(d=O.left+O.right,Ze=O.top+O.bottom),tt=at=0,i!==null&&(at=i.width,tt=i.height,isFinite(at)&&(at=Math.max(0,at-d)),isFinite(tt)&&(tt=Math.max(0,tt-Ze))),i!==null&&o!==null?(o==="NaN"&&(o=Ke),i.w()?(i=at,Ge=tt):isNaN(tt)?(i=at,Ge=Ge.height*o):(i=Ge.width*o,Ge=tt)):i!==null?i.w()?(o=Math.min(at/Ge.width,tt/Ge.height),i=at,Ge=tt):isNaN(tt)?(o=at/Ge.width,i=at,Ge=Ge.height*o):(o=tt/Ge.height,i=Ge.width*o,Ge=tt):o!==null?o==="NaN"&&a.w()?(o=Math.min((a.width-d)/Ge.width,(a.height-Ze)/Ge.height),o>Ke?(o=Ke,i=Ge.width,Ge=Ge.height):(i=a.width,Ge=a.height)):(i=Ge.width*o,Ge=Ge.height*o):(o=Ke,i=Ge.width,Ge=Ge.height),O!==null?(i+=d,Ge+=Ze):O=new sr(0),a!==null&&(Ke=a.width,a=a.height,isNaN(Ke)&&(Ke=2e3),isNaN(a)&&(a=2e3),isFinite(Ke)&&(i=Math.min(i,Ke)),isFinite(a)&&(Ge=Math.min(Ge,a))),X.width=Math.ceil(i),X.height=Math.ceil(Ge),n==="SVG"?r===null?null:(r.resize(X.width,X.height,X.width,X.height),r.ownerDocument=se,r.hs=ge,jf(e,r.context,O,new un(Math.ceil(i),Math.ceil(Ge)),o,Xe,E,D,ve,t),r.context):(e.Xm=!1,jf(e,Te,O,new un(Math.ceil(i),Math.ceil(Ge)),o,Xe,E,D,ve,t),e.Xm=!0,X.context)}Dn.Object.defineProperties(xt.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 Ou(this,mn.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 Ou(this,mn.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(mn,"resize",this.Ov,!1),this.removeEventListener(mn,"wheel",this.$j,!0),zu===this&&(zu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,e!==null&&((t=e.H)&&(t.div=null),Fd(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)&&hn(e,"0 <= value <= 1",xt,"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),jl(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),jl(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),jl(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),jl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(e){var t=this.iu;t!==e&&(0>e&&hn(e,">= 0",xt,"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&&hn(e,">= 0",xt,"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 hn(e,">= 0",xt,"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||pg(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&&nt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Pd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var r=this.vb;this.vb=!0,qo(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=Zd(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(mn,"pointermove",this.dk,!0),this.addEventListener(mn,"pointerdown",this.ui,!0),this.addEventListener(mn,"pointerup",this.fk,!0),this.addEventListener(mn,"pointerout",this.ek,!0),this.addEventListener(mn,"pointercancel",this.ck,!0),this.removeEventListener(t,"wheel",this.$j,!1),this.addEventListener(mn,"wheel",this.$j,!0),this.addEventListener(mn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(mn,"pointermove",this.dk,!0),this.removeEventListener(mn,"pointerdown",this.ui,!0),this.removeEventListener(mn,"pointerup",this.fk,!0),this.removeEventListener(mn,"pointerout",this.ek,!0),this.removeEventListener(mn,"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(mn,"wheel",this.$j,!0),this.removeEventListener(mn,"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=Pe.alloc().assign(this.pa);if(!t.D(e)){var n=this.viewportBounds.copy();this.pa.assign(e),Xc(this.animationManager,t,this.pa),this.vb||this.ta===null&&!this.wo.w()?Iu(this):(this.vb=!0,e=this.scale,Ud(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)}Pe.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=cg(this)),this.fe},set:function(e){var t=this.fe;if(t!==e){t===null&&(t=this.fe=cg(this)),e.type!==Zt.Grid&&nt("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),Ru(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),Iu(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||nt("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 sr(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===_c&&jl(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,jl(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,Xd(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&&Xd(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!==ea&&jl(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()||nt("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()||nt("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)):hn(e,"> 0",xt,"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)):hn(e,"> 0",xt,"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),jl(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 sr(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&&nt("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();)bp(e.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(e){var t=this.uu;t!==e&&(e!==Ac&&e!==zo&&e!==Xf&&nt("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 un(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 sr(e));var t=this.xp;t.D(e)||(this.xp=e=e.J(),this.Ya(),this.g("autoScrollRegion",t,e))}}}),Dn.Object.defineProperties(xt,{licenseKey:{get:function(){return ap.jc()},set:function(e){ap.add(e.replace(/\s/g,""))}},version:{get:function(){return Fh}}}),xt.prototype.makeImageData=xt.prototype.Jx,xt.prototype.makeImage=xt.prototype.Wz,xt.prototype.cacheGroupExternalLinks=xt.prototype.Fu,xt.prototype.addRenderer=xt.prototype.bs,xt.prototype.makeSVG=xt.prototype.av,xt.prototype.makeSvg=xt.prototype.Cs,xt.prototype.stopAutoScroll=xt.prototype.ug,xt.prototype.doAutoScroll=xt.prototype.gs,xt.prototype.isUnoccupied=xt.prototype.Yj,xt.prototype.raiseDiagramEvent=xt.prototype.R,xt.prototype.removeDiagramListener=xt.prototype.am,xt.prototype.addDiagramListener=xt.prototype.Bj,xt.prototype.findTreeRoots=xt.prototype.yz,xt.prototype.layoutDiagram=xt.prototype.Uz,xt.prototype.findTopLevelGroups=xt.prototype.qz,xt.prototype.findTopLevelNodesAndLinks=xt.prototype.rz,xt.prototype.ensureBounds=xt.prototype.Va,xt.prototype.findLinksByExample=xt.prototype.ls,xt.prototype.findNodesByExample=xt.prototype.ms,xt.prototype.findLinkForData=xt.prototype.Kc,xt.prototype.findNodeForData=xt.prototype.ii,xt.prototype.findPartForData=xt.prototype.Lc,xt.prototype.findLinkForKey=xt.prototype.findLinkForKey,xt.prototype.findNodeForKey=xt.prototype.Vb,xt.prototype.findPartForKey=xt.prototype.findPartForKey,xt.prototype.rebuildParts=xt.prototype.Wd,xt.prototype.transformViewToDoc=xt.prototype.Ps,xt.prototype.transformRectDocToView=xt.prototype.zA,xt.prototype.transformDocToView=xt.prototype.op,xt.prototype.centerRect=xt.prototype.es,xt.prototype.scrollToRect=xt.prototype.tv,xt.prototype.scroll=xt.prototype.scroll,xt.prototype.highlightCollection=xt.prototype.Jz,xt.prototype.highlight=xt.prototype.Iz,xt.prototype.selectCollection=xt.prototype.rA,xt.prototype.select=xt.prototype.select,xt.prototype.updateAllRelationshipsFromData=xt.prototype.rp,xt.prototype.updateAllTargetBindings=xt.prototype.updateAllTargetBindings,xt.prototype.commit=xt.prototype.commit,xt.prototype.rollbackTransaction=xt.prototype.Kf,xt.prototype.commitTransaction=xt.prototype.eb,xt.prototype.startTransaction=xt.prototype.Ea,xt.prototype.raiseChanged=xt.prototype.g,xt.prototype.raiseChangedEvent=xt.prototype.cb,xt.prototype.removeChangedListener=xt.prototype.ik,xt.prototype.addChangedListener=xt.prototype.Pe,xt.prototype.removeModelChangedListener=xt.prototype.mA,xt.prototype.addModelChangedListener=xt.prototype.Yw,xt.prototype.findLayer=xt.prototype.Qj,xt.prototype.removeLayer=xt.prototype.kA,xt.prototype.addLayerAfter=xt.prototype.Cy,xt.prototype.addLayerBefore=xt.prototype.Ww,xt.prototype.addLayer=xt.prototype.Al,xt.prototype.moveParts=xt.prototype.moveParts,xt.prototype.copyParts=xt.prototype.Kj,xt.prototype.removeParts=xt.prototype.Is,xt.prototype.remove=xt.prototype.remove,xt.prototype.add=xt.prototype.add,xt.prototype.clearDelayedGeometries=xt.prototype.bx,xt.prototype.setProperties=xt.prototype.nm,xt.prototype.attach=xt.prototype.Du,xt.prototype.set=xt.prototype.set,xt.prototype.resetInputOptions=xt.prototype.Sx,xt.prototype.setInputOption=xt.prototype.sA,xt.prototype.getInputOption=xt.prototype.Ql,xt.prototype.resetRenderingHints=xt.prototype.Tx,xt.prototype.setRenderingHint=xt.prototype.Xx,xt.prototype.getRenderingHint=xt.prototype.Gf,xt.prototype.maybeUpdate=xt.prototype.bd,xt.prototype.requestUpdate=xt.prototype.$b,xt.prototype.delayInitialization=xt.prototype.Xy,xt.prototype.isUpdateRequested=xt.prototype.Pz,xt.prototype.invalidateDocumentBounds=xt.prototype.Ya,xt.prototype.findObjectsNear=xt.prototype.og,xt.prototype.findPartsNear=xt.prototype.mz,xt.prototype.findObjectsIn=xt.prototype.Cf,xt.prototype.findPartsIn=xt.prototype.ux,xt.prototype.findObjectsAt=xt.prototype.ji,xt.prototype.findPartsAt=xt.prototype.lz,xt.prototype.findObjectAt=xt.prototype.ic,xt.prototype.findPartAt=xt.prototype.Ol,xt.prototype.focusObject=xt.prototype.zz,xt.prototype.alignDocument=xt.prototype.Jy,xt.prototype.zoomToRect=xt.prototype.BA,xt.prototype.zoomToFit=xt.prototype.zoomToFit,xt.prototype.diagramScroll=xt.prototype.kx,xt.prototype.focus=xt.prototype.focus;var $f=new wt,bg=null,bo=mn.document!==void 0,Ph=null,th="",ea=new Ut(xt,"None",0),fl=new Ut(xt,"Uniform",1),nh=new Ut(xt,"UniformToFill",2),cf=new Ut(xt,"CycleAll",10),np=new Ut(xt,"CycleNotDirected",11),rp=new Ut(xt,"CycleNotDirectedFast",12),ip=new Ut(xt,"CycleNotUndirected",13),op=new Ut(xt,"CycleDestinationTree",14),sp=new Ut(xt,"CycleSourceTree",15),_c=new Ut(xt,"DocumentScroll",1),hf=new Ut(xt,"InfiniteScroll",2),Ac=new Ut(xt,"TreeParentCollapsed",21),zo=new Ut(xt,"AllParentsCollapsed",22),Xf=new Ut(xt,"AnyParentsCollapsed",23),ap=new Gt,Fh="2.3.10",Bh="image",ff=null,Sg=!1;function Ks(){if(bo){var e=mn.document.createElement("canvas"),t=e.getContext("2d"),n=Tn("7ca11abfd022028846");t[n]=Tn("398c3597c01238");for(var r=["5da73c80a36455d7038e4972187c3cae51fd22",zn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Vn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",lt.za],i=1;5>i;i++)t[Tn("7ca11abfd7330390")](Tn(r[i-1]),10,15*i);for(t[n]=Tn("39f046ebb36e4b"),n=1;5>n;n++)t[Tn("7ca11abfd7330390")](Tn(r[n-1]),10,15*n);(r.length!==4||r[0][0]!=="5"||r[3][0]!=="7")&&(Vn.prototype.Cd=Vn.prototype.Eu),ff=e}}xt.className="Diagram",xt.fromDiv=function(e){var t=e;return typeof e=="string"&&(t=mn.document.getElementById(e)),t instanceof HTMLDivElement&&t.H instanceof xt?t.H:null},xt.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},xt.useDOM=function(e){bo=e?mn.document!==void 0:!1},xt.isUsingDOM=function(){return bo},xt.None=ea,xt.Uniform=fl,xt.UniformToFill=nh,xt.CycleAll=cf,xt.CycleNotDirected=np,xt.CycleNotDirectedFast=rp,xt.CycleNotUndirected=ip,xt.CycleDestinationTree=op,xt.CycleSourceTree=sp,xt.DocumentScroll=_c,xt.InfiniteScroll=hf,xt.TreeParentCollapsed=Ac,xt.AllParentsCollapsed=zo,xt.AnyParentsCollapsed=Xf;function xg(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function jh(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=mn[Tn("76a715b2f73f148a")][Tn("72ba13b5")]||"";if(e.Rc=!0,bo){var r=xt[Tn("76a115b6ed251eaf4692")];if(r)for(var i=ap.iterator;i.next()&&(r=i.value,r=Tn(r).split(Tn("39e9")),!(6>r.length));){var o=Tn(r[1]).split(".");if(r[4]!=="7da71ca0")break;var a=Tn(zn[Tn("6cae19")]).split(".");if(o[0]>a[0]||o[0]===a[0]&&o[1]>=a[1]){var d=mn[Tn("74a900bae4370f8b51")][Tn("6fbb13a1c2311e8a57")].toLowerCase();if(a=d[Tn("73a612b6fb191d")](Tn("3aad1ab6e022098b4dc4")),o=Tn(r[2]),-1<a&&(d=d[Tn("73a612b6fb191d")](o.toLowerCase()+"/"),e.Rc=!(-1<d&&d<a),!e.Rc))break;for(a=n[Tn("76ad18b4f73e")],d=n[Tn("73a612b6fb191d")](Tn("35e7"))+2;d<a;d++)t+=n[d];if(a=t[Tn("73a612b6fb191d")](o),0>a&&o!==Tn("7da71ca0ad381e90")&&(a=t[Tn("73a612b6fb191d")](Tn("76a715b2ef3e149757"))),0>a&&(a=t[Tn("73a612b6fb191d")](Tn("76a715b2ef3e149757"))),0>a&&(a=t[Tn("73a612b6fb191d")](Tn("2bfa41fdb3784bca12"))),0>a&&(a=n[Tn("73a612b6fb191d")](Tn("7baa19a6f76c1988428554"))),e.Rc=!(0<=a&&a<t[Tn("73a612b6fb191d")](Tn("35"))||t[Tn("73a612b6fb191d")](Tn("35"))===-1),!e.Rc||n[Tn("73a612b6fb191d")](Tn("7fb002b6ed25128b4da25b2e"))&&(e.Rc=!(-1<n[Tn("73a612b6fb191d")](o)),!e.Rc)||(a=mn[Tn("76a715b2f73f148a")][Tn("69ad17a1e03e")],d=a[Tn("73a612b6fb191d")](Tn("7fb002b6ed25128b4da25b2e")),-1<d&&(e.Rc=!(a[Tn("73a612b6fb191d")](o)>d),!e.Rc)))break;if(o[0]==="#"){a=mn.document.createElement("div");for(var E=r[0].replace(/[A-Za-z]/g,"");4>E.length;)E+="9";if(d=E,E=E.substr(E.length-4),r="",r+=["gsh","gsf"][parseInt(E.substr(0,1),10)%2],r+=["Header","Background","Display","Feedback"][parseInt(E.substr(0,1),10)%4],a[Tn("79a417a0f0181a8946")]=r,mn.document[Tn("78a712aa")]){mn.document[Tn("78a712aa")][Tn("7bb806b6ed32388c4a875b")](a),E=mn.getComputedStyle(a).getPropertyValue(Tn("78a704b7e62456904c9b12701b6532a8"));var O=mn.getComputedStyle(a).getPropertyValue(Tn("75b817b0ea2202"));if(mn.document[Tn("78a712aa")][Tn("68ad1bbcf533388c4a875b")](a),E){if(a=mn[Tn("77a902b0eb1b1e804a8a")],O==="0."+parseInt(d,10)%100||E.indexOf(parseInt(o[1]+o[2],16))!==-1&&E.indexOf(parseInt(o[3]+o[4],16))!==-1){e.Rc=!1;break}else if(a&&a(Tn("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[Tn("76ad18b4f73e")],i=n[Tn("73a612b6fb191d")](Tn("35e7"))+2;i<D;i++)t+=n[i];n=t[Tn("73a612b6fb191d")](Tn("7da71ca0ad381e90")),e.Rc=!(0<=n&&n<t[Tn("73a612b6fb191d")](Tn("35")))}}}return 0<e.Rc&&e!==e.wy}xg.className="DiagramHelper";function ac(e){this.j=e===void 0?new Pe:e,this.o=new Pe}Dn.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 df="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 un(NaN,NaN).freeze(),this.gridSnapCellSpot=xr,this.gridSnapOrigin=new Pe(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"||mn.Element&&e instanceof Element)var n=xt.call(this,e)||this;else n=xt.call(this)||this,t=e;return V(n),t&&n.nm(t),n}Kn(K,xt);function V(e){e.allowDragOut=!0,e.allowMove=!1,e.isReadOnly=!0,e.contentAlignment=Xr,e.layout=new Cs}K.prototype.reset=function(){xt.prototype.reset.call(this),V(this)},K.className="Palette";function q(e,t){if(typeof e=="string"||mn.Element&&e instanceof Element)var n=xt.call(this,e)||this;else n=xt.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 Pn;var i=new ur;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 sr(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new Ye,n.toolManager.mouseMoveTools),n.click=function(){var o=r.observed;if(o!==null){var a=o.viewportBounds,d=r.lastInput.documentPoint;o.position=new Pe(d.x-a.width/2,d.y-a.height/2)}},n.Pf=function(){r.Ya(),Fe(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&&Fe(r)},n.autoScale=fl,n.vb=!1,t&&Object.assign(n,t),n}Kn(q,xt),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(Lh(this),this.ql===null){var n=new Hl(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),Se(this)}finally{this.ta=e,this.ib=t}}}xt.prototype.redraw.call(this)},q.prototype.gc=function(){if(this.Ka===null&&nt("No div specified"),this.ta===null&&nt("No canvas specified"),!(this.ta instanceof Ou)&&(Yv(this.box),this.Fc)){var e=this.observed;if(e!==null&&!e.animationManager.defaultAnimation.isAnimating&&e.pi){Lh(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?Se(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 Se(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=Ct.alloc().assign(e.viewportBounds).ed(t.viewportBounds),Ru(t,i),Ct.free(i),Ps(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 d=t[a],E=e;if(d.visible&&d.opacity!==0){var O=d.diagram.grid.part;if(!n&&d.isTemporary)r&&O.layer===d&&(d=sc(d,i),O.gc(i,E),i.globalAlpha=d);else{for(var D=sc(d,i),X=E.scale,se=Ct.alloc(),ge=d.Pa.s,ve=ge.length,Te=0;Te<ve;Te++){var Ke=ge[Te];(r||Ke!==O)&&d.Oj(i,Ke,E,null,X,se,!1)}Ct.free(se),i.globalAlpha=D}}}}}function Fe(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=un.alloc();i.h(n.width,n.height),r.desiredSize=i,un.free(i),e=2/e.scale,r instanceof ur&&(r.strokeWidth=e),t.location=new Pe(n.x-e/2,n.y-e/2),t.isSelected=!0}}}q.prototype.computeBounds=function(){var e=this.observed;if(e===null)return fs;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(),Fe(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))},Dn.Object.defineProperties(q.prototype,{observed:{get:function(){return this.V},set:function(e){var t=this.V;if(e instanceof q&&nt("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),Fe(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),Fe(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 Ye(){Hi.call(this),this.j=null}Kn(Ye,Hi),Ye.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 Pe(n.width/2,n.height/2),e=e.firstInput.documentPoint,t.position=new Pe(e.x-this.j.x,e.y-this.j.y)),!0)},Ye.prototype.doActivate=function(){this.j=null,Hi.prototype.doActivate.call(this)},Ye.prototype.doUpdateCursor=function(){var e=this.diagram,t=e.box;t!==null&&t.cursor&&(e.currentCursor=t.cursor)},Ye.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 Pe(r.x-n.x,r.y-n.y)}e=e.lastInput.documentPoint,t.position=new Pe(e.x-this.j.x,e.y-this.j.y)}}},Ye.className="OverviewDraggingTool";function Ve(){Yn(this),this.H=zu,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=fs,this.hb=!0,this.cg=null,this.ob=200}Ve.prototype.toString=function(){return"CommandHandler"},Ve.prototype.Xe=function(e){this.H=e},Ve.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput,n=fr?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()},Ve.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Ve.prototype.stopCommand=function(){var e=this.diagram,t=e.currentTool;t instanceof Bi&&e.allowSelect&&e.clearSelection(),t!==null&&t.doCancel()},Ve.prototype.canStopCommand=function(){return!0},Ve.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=""}},Ve.prototype.canSelectAll=function(){return this.diagram.allowSelect},Ve.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 Wt,n=e.selection.iterator;n.next();)sh(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=""}},Ve.prototype.canDeleteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||e.selection.count===0)},Ve.prototype.copySelection=function(){var e=this.diagram,t=new Wt;for(e=e.selection.iterator;e.next();)sh(t,e.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(n){return n.canCopy()});this.copyToClipboard(t)},Ve.prototype.canCopySelection=function(){var e=this.diagram;return!!(e.allowCopy&&e.allowClipboard&&e.selection.count!==0)},Ve.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Ve.prototype.canCutSelection=function(){var e=this.diagram;return!!(!e.isReadOnly&&!e.isModelReadOnly&&e.allowCopy&&e.allowDelete&&e.allowClipboard&&e.selection.count!==0)},Ve.prototype.copyToClipboard=function(e){var t=this.diagram,n=null;if(e===null)Ph=null,th="";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 Gt,n.addAll(o),Ph=n,th=t.model.dataFormat}}t.R("ClipboardChanged",n)},Ve.prototype.pasteFromClipboard=function(){var e=new Wt,t=Ph;if(t===null)return e;var n=this.diagram;if(th!==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},Ve.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);Qc(t,o,new Pe(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=""}},Ve.prototype.canPasteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowClipboard||Ph===null||Ph.count===0||th!==e.model.dataFormat)},Ve.prototype.undo=function(){this.diagram.undoManager.undo()},Ve.prototype.canUndo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canUndo()},Ve.prototype.redo=function(){this.diagram.undoManager.redo()},Ve.prototype.canRedo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canRedo()},Ve.prototype.decreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;t.autoScale===ea&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},Ve.prototype.canDecreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;return t.autoScale!==ea?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},Ve.prototype.increaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;t.autoScale===ea&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},Ve.prototype.canIncreaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;return t.autoScale!==ea?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},Ve.prototype.resetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;e<t.minScale||e>t.maxScale||(t.scale=e)},Ve.prototype.canResetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;return e<t.minScale||e>t.maxScale?!1:t.allowZoom},Ve.prototype.zoomToFit=function(){var e=this.diagram,t=e.animationManager;t.Cc(),e.redraw();var n=e.position,r=e.scale;qo(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=fs):(this.Jt=r,this.sw=n.copy(),e.zoomToFit(),this.Au=e.scale,this.yu=e.documentBounds.copy()),Za(t)},Ve.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ve.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(E){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;qo(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 E=i.pop();0<i.length&&E instanceof fn&&E.isTreeExpanded&&(!(E instanceof tr)||E.isSubGraphExpanded);)E=i.pop();0<i.length?(E instanceof Pn&&t.tv(E.actualBounds),E instanceof fn&&!E.isTreeExpanded&&(E.isTreeExpanded=!0),E instanceof tr&&!E.isSubGraphExpanded&&(E.isSubGraphExpanded=!0)):(E instanceof Pn&&t.es(E.actualBounds),t.am("LayoutCompleted",a)),t.eb("Scroll To Part")},a=function(){Ci(o,(n.isEnabled?n.duration:0)+r)};t.Bj("LayoutCompleted",a),o()}}else{var d=t.position.copy();t.es(e.actualBounds),d.Xa(t.position)&&n.Cc()}}};function ot(e,t,n){if(t.isVisible())return n;if(t instanceof Zr)ot(e,t.adornedPart,n);else if(t instanceof en){var r=t.fromNode;r!==null&&ot(e,r,n),t=t.toNode,t!==null&&ot(e,t,n)}else t instanceof fn&&(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}Ve.prototype.canScrollToPart=function(e){return e===void 0&&(e=null),e!==null&&!(e instanceof Pn)?!1:(e=this.diagram,e.selection.count===0&&e.highlighteds.count===0?!1:e.allowHorizontalScroll&&e.allowVerticalScroll)},Ve.prototype.collapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse Tree"),qo(t.animationManager,"Collapse Tree");var n=new Gt;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 fn&&i.isTreeExpanded&&(i.collapseTree(),n.add(i))}t.R("TreeCollapsed",n)}finally{t.eb("Collapse Tree")}},Ve.prototype.canCollapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof fn&&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 fn&&t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},Ve.prototype.expandTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand Tree"),qo(t.animationManager,"Expand Tree");var n=new Gt;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 fn&&!i.isTreeExpanded&&(i.expandTree(),n.add(i))}t.R("TreeExpanded",n)}finally{t.eb("Expand Tree")}},Ve.prototype.canExpandTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof fn)||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 fn&&!t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},Ve.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 Gt,o=e.selection.iterator;o.next();){var a=o.value;a.Zc()&&a.canGroup()&&i.add(a)}for(var d=new Gt,E=i.iterator;E.next();){var O=E.value;o=!1;for(var D=i.iterator;D.next();)if(O.Td(D.value)){o=!0;break}o||d.add(O)}if(0<d.count){var X=d.first().containingGroup;if(X!==null)for(;X!==null;){i=!1;for(var se=d.iterator;se.next();)if(!se.value.Td(X)){i=!0;break}if(i)X=X.containingGroup;else break}if(n instanceof tr)zl(n),r=n.copy(),r!==null&&e.add(r);else if(t.Yu(n)){var ge=t.copyNodeData(n);dt(ge)&&(t.xf(ge),r=e.ii(ge))}if(r!==null){X!==null&&this.isValidMember(X,r)&&(r.containingGroup=X);for(var ve=d.iterator;ve.next();){var Te=ve.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=""}}}},Ve.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 Rt(e){var t=An();for(e=e.iterator;e.next();){var n=e.value;n instanceof en||t.push(n)}e=new Wt,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 Nn(t),e}Ve.prototype.isValidMember=function(e,t){if(t===null||e===t||t instanceof en)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},Ve.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 Gt;if(e!==null)r.add(e);else for(var i=t.selection.iterator;i.next();){var o=i.value;o instanceof tr&&o.canUngroup()&&r.add(o)}var a=new Gt;if(0<r.count){t.clearSelection(!0);for(var d=r.iterator;d.next();){var E=d.value;E.expandSubGraph();var O=E.containingGroup,D=O!==null&&O.data!==null?n.wa(O.data):void 0;a.addAll(E.memberParts);for(var X=a.iterator;X.next();){var se=X.value;if(se.isSelected=!0,!(se instanceof en)){var ge=se.data;ge!==null?n.mp(ge,D):se.containingGroup=O}}t.remove(E)}}t.R("SelectionUngrouped",r,a)}finally{t.eb("Ungroup"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},Ve.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 tr))return!1;if(e.canUngroup())return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof tr&&t.canUngroup())return!0;return!1},Ve.prototype.addTopLevelParts=function(e,t){var n=!0;for(e=Rt(e).iterator;e.next();){var r=e.value;r.containingGroup!==null&&(!t||this.isValidMember(null,r)?r.containingGroup=null:n=!1)}return n},Ve.prototype.collapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse SubGraph"),qo(t.animationManager,"Collapse SubGraph");var n=new Gt;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 tr&&i.isSubGraphExpanded&&(i.collapseSubGraph(),n.add(i))}t.R("SubGraphCollapsed",n)}finally{t.eb("Collapse SubGraph")}},Ve.prototype.canCollapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return!!(e instanceof tr&&e.isSubGraphExpanded);for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof tr&&t.isSubGraphExpanded)return!0;return!1},Ve.prototype.expandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand SubGraph"),qo(t.animationManager,"Expand SubGraph");var n=new Gt;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 tr&&!i.isSubGraphExpanded&&(i.expandSubGraph(),n.add(i))}t.R("SubGraphExpanded",n)}finally{t.eb("Expand SubGraph")}},Ve.prototype.canExpandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return e instanceof tr&&!e.isSubGraphExpanded;for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof tr&&!t.isSubGraphExpanded)return!0;return!1},Ve.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 Wi&&o.editable})}e!==null&&(t.currentTool=null,n.textBlock=e,t.currentTool=n)}},Ve.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 Wi))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 Wi&&n.editable}),e!==null))return!0;return!1},Ve.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 ht?i=e.ga(ir):t.viewportBounds.ca(r.documentPoint)||(i=t.viewportBounds,i=new Pe(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,Ro(n,!1,e)}},Ve.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)},Ve.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 wt,e===null)return r;for(var o=e.iterator;o.next();)Wu(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 en&&(t=e.fromNode,t===null||r.contains(t)?(t=e.toNode,t===null||r.contains(t)||r.remove(e)):r.remove(e));return r},Dn.Object.defineProperties(Ve.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||nt("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}}}),Ve.className="CommandHandler",lg=function(){return new Ve};function ht(){Yn(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Pe(NaN,NaN).freeze(),this.jd=Pi,this.Ab=new Vn,this.wh=new Vn,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ko,this.uc=new Ct(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Ct(NaN,NaN,NaN,NaN).freeze(),this.dc=new Ct(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Bo,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 Yt,jt,Rn,Ln,Gn,rr,kr,mr,Ur,xi;ht.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=kn(this.Dh)),this.tb!==null&&(e.tb=this.tb.copy())},ht.prototype.Vw=function(e){var t=this.Dh;if(on(t)){for(var n=0;n<t.length;n++)if(t[n]===e)return}else this.Dh=t=[];t.push(e)},ht.prototype.Af=function(e){e.Zn=null,e.Ng=null,e.v()},ht.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},ht.prototype.copy=function(){return this.clone()},ye=ht.prototype,ye.qb=function(e){e.classType===en?e.name.indexOf("Orient")===0?this.segmentOrientation=e:nt("Unknown Link enum value for GraphObject.segmentOrientation property: "+e):e.classType===ht&&(this.stretch=e)},ye.toString=function(){return Ft(this.constructor)+"#"+br(this)},ye.th=function(){this.A!==null&&(this.A.nc=!0)};function gr(e){e.A===null?e.A=new gf:e.A.nc&&(e.A=e.A.copy())}ye.Xc=function(){if(this.ba===null){var e=new lp;e.Xi=nr,e.yj=nr,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 d=this.part;if(d!==null&&(d.gk(e,t,n,r,i,o,a),n===this&&e===Ui&&Ns(this)&&no(this,d,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 wt),a=o.undoManager.transactionLevel===0,e.startCondition===Ja?a=!0:e.startCondition===Nh&&(a=!1),a?(o=new bn,hl(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()):(qo(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,t,r,i)))),this instanceof Zt&&n===d&&(d.l&16777216)!==0&&d.data!==null))for(n=this.O.s,r=n.length,i=0;i<r;i++)d=n[i],d instanceof Zt&&Gh(d,function(E){E.data!==null&&E.l&16777216&&E.La(t)})};function no(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=Hb(o,r,e),a===null)continue;o.sp(e,a,n,null)}else if(o.isToModel){var d=t.diagram;d===null||d.skipsModelSourceBindings||o.sp(e,d.model.modelData,n,r)}else{if(d=r.data,d===null)continue;var E=t.diagram;E===null||E.skipsModelSourceBindings||o.sp(e,d,n,r)}a===e&&(d=r.ks(o.Ai),d!==null&&o.Mv(d,a,n))}}ye.ks=function(e){return this.bindingId===e?this:null},ye.g=function(e,t,n){this.cb(Ui,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 Vn);var o=this.Lb;o.reset(),this.no(o,e,t,n,r),o.pp(i)}};function ss(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?pn(e.x,e.y,0,0,0,r.height)<=t||pn(e.x,e.y,0,r.height,r.width,r.height)<=t||pn(e.x,e.y,r.width,r.height,r.width,0)<=t||pn(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=Pe.alloc();t.assign(e),this.transform.Ga(t);var n=this.actualBounds;if(!n.w())return Pe.free(t),!1;var r=this.diagram;if(r!==null&&r.wq){var i=r.Ql("extraTouchThreshold"),o=r.Ql("extraTouchArea"),a=o/2,d=this.naturalBounds;r=this.Df()*r.scale;var E=1/r;if(d.width*r<i&&d.height*r<i)return e=Ki(n.x-a*E,n.y-a*E,n.width+o*E,n.height+o*E,t.x,t.y),Pe.free(t),e}return i=!1,(this instanceof Zr||this instanceof ur?Ki(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)),Pe.free(t),i},ye.gh=function(e){var t=this.naturalBounds;return Ki(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=Ct.allocAt(0,0,t.width,t.height);var n=this.transform,r=!1,i=Pe.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)))),Pe.free(i),Ct.free(t),r},ye.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.naturalBounds,r=!1,i=Pe.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)))),Pe.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=Pe.allocAt(0,0),i=Pe.allocAt(0,n.height),o=Pe.allocAt(n.width,n.height),a=Pe.allocAt(n.width,0),d=!1;if(e.ca(t.Ga(r))||e.ca(t.Ga(i))||e.ca(t.Ga(o))||e.ca(t.Ga(a)))d=!0;else{n=Ct.allocAt(0,0,n.width,n.height);var E=Pe.allocAt(e.x,e.y);n.ca(t.Cd(E))?d=!0:(E.h(e.x,e.bottom),n.ca(t.Cd(E))?d=!0:(E.h(e.right,e.bottom),n.ca(t.Cd(E))?d=!0:(E.h(e.right,e.y),n.ca(t.Cd(E))&&(d=!0)))),Pe.free(E),Ct.free(n),!d&&(lt.us(e,r,i)||lt.us(e,i,o)||lt.us(e,o,a)||lt.us(e,a,r))&&(d=!0)}return Pe.free(r),Pe.free(i),Pe.free(o),Pe.free(a),d},ye.ga=function(e,t){if(t===void 0&&(t=new Pe),e instanceof Cn){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 Ct);var t=this.naturalBounds,n=this.oe,r=Pe.allocAt(0,0).transform(n);return e.h(r.x,r.y,0,0),r.h(t.width,0).transform(n),Rr(e,r.x,r.y,0,0),r.h(t.width,t.height).transform(n),Rr(e,r.x,r.y,0,0),r.h(0,t.height).transform(n),Rr(e,r.x,r.y,0,0),Pe.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 Pe),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),d=o.m22*a,E=-o.m12*a,O=-o.m21*a,D=o.m11*a,X=a*(o.m21*o.dy-o.m22*o.dx),se=a*(o.m12*o.dx-o.m11*o.dy);return this.areaBackground!==null?(o=this.actualBounds,lt.Ff(o.left,o.top,o.right,o.bottom,e,t,n,r,i)):(a=e*d+t*O+X,e=e*E+t*D+se,t=n*d+r*O+X,n=n*E+r*D+se,i.h(0,0),r=this.naturalBounds,n=lt.Ff(0,0,r.width,r.height,a,e,t,n,i),i.transform(o),n)},ht.prototype.measure=function(e,t,n,r){if(pl(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 d=this instanceof Zt;switch(Ra(this,!0)){case jt:a=i=0,d&&(t=e=1/0);break;case Yt:isFinite(e)&&e>n&&(i=e),isFinite(t)&&t>r&&(a=t);break;case Ln:isFinite(e)&&e>n&&(i=e),a=0,d&&(t=1/0);break;case Gn:isFinite(t)&&t>r&&(a=t),i=0,d&&(e=1/0)}d=this.maxSize;var E=this.minSize;i>d.width&&E.width<d.width&&(i=d.width),a>d.height&&E.height<d.height&&(a=d.height),n=Math.max(i,E.width),r=Math.max(a,E.height),d.width<n&&(n=Math.min(E.width,n)),d.height<r&&(r=Math.min(E.height,r)),e=Math.min(d.width,e),t=Math.min(d.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()||nt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Go(this,!1)}},ht.prototype.Wl=function(){},ht.prototype.Dd=function(){return!1},ht.prototype.arrange=function(e,t,n,r,i){this.Uk();var o=Ct.alloc();o.assign(this.Ib),this.Ib.ka(),fa(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&&Rc(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 Wi&&(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()||nt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),Vu(this,!1),Ct.free(o)},ye=ht.prototype,ye.eh=function(){};function ta(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=Ra(e,!0),n===r&&o===i&&(t=jt),t){case jt:(n>r||o>i)&&(Go(e,!0),e.measure(n>r?r:n,o>i?i:o,0,0));break;case Yt:Go(e,!0),e.measure(r,i,0,0);break;case Ln:Go(e,!0),e.measure(r,o,0,0);break;case Gn:Go(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(),Pr(e,t)||(n.oh(),this.Pn(n)))},ye.Pn=function(e){this.portId!==null&&(Zv(e,!0),e instanceof fn&&ib(e,this))},ye.gc=function(e,t){if(!_l(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 Zt&&Rc(this),a=this.Ib;if(o){var d=this.Ib,E=this.dc,O=this.areaBackground,D=this.Ma;O===null&&D===null||e.yc(),O!==null&&(So(this,e,O,!0,!0,E,d),O instanceof fi&&O.type===Nl?(e.beginPath(),e.rect(d.x,d.y,d.width,d.height),e.ng(O)):e.fillRect(d.x,d.y,d.width,d.height)),D!==null&&(So(this,e,D,!0,!1,E,d),D instanceof fi&&D.type===Nl?(e.beginPath(),e.rect(d.x,d.y,d.width,d.height),e.ng(D)):e.fillRect(d.x,d.y,d.width,d.height)),this.hh(e,t)}if(!o&&(o||a.width!==0&&a.height!==0&&!isNaN(a.x)&&!isNaN(a.y))){o=this.transform,d=this.panel,this.l&4096&&Es(this),O=this.part,E=!1;var X=0;O&&t.Gf("drawShadows")&&(E=O.isShadowed)&&(D=O.shadowOffset,X=Math.max(D.y,D.x)*t.scale*t.Mb),D=this.Dd();var se;if(!(se=t.$i||!D)){var ge=this.naturalBounds;se=this.wh;var ve=se.m11,Te=se.m21,Ke=se.dx,Ge=se.m12,Xe=se.m22,Ze=se.dy,tt,at=tt=0;se=tt*ve+at*Te+Ke;var St=tt*Ge+at*Xe+Ze;tt=ge.width+X,at=0;var ln=tt*ve+at*Te+Ke;tt=tt*Ge+at*Xe+Ze,at=Math.min(se,ln);var _n=Math.min(St,tt),Sn=Math.max(se+0,ln)-at,qt=Math.max(St+0,tt)-_n;se=at,St=_n,tt=ge.width+X,at=ge.height+X,ln=tt*ve+at*Te+Ke,tt=tt*Ge+at*Xe+Ze,at=Math.min(se,ln),_n=Math.min(St,tt),Sn=Math.max(se+Sn,ln)-at,qt=Math.max(St+qt,tt)-_n,se=at,St=_n,tt=0,at=ge.height+X,ln=tt*ve+at*Te+Ke,tt=tt*Ge+at*Xe+Ze,at=Math.min(se,ln),_n=Math.min(St,tt),Sn=Math.max(se+Sn,ln)-at,qt=Math.max(St+qt,tt)-_n,se=at,St=_n,X=t.viewportBounds,ge=X.x,ve=X.y,se=!(se>X.width+ge||ge>Sn+se||St>X.height+ve||ve>qt+St)}if(se){if(se=(this.l&256)!==0,e.clipInsteadOfFill&&(se=!1),this instanceof Wi&&(e.font=this.font),se){if(St=d.se()?d.naturalBounds:d.actualBounds,Sn=Math.max(a.x,St.x),qt=Math.max(a.y,St.y),X=Math.min(a.right,St.right)-Sn,ge=Math.min(a.bottom,St.bottom)-qt,ve=this.tb,ve!==null&&(Sn=ve.x,qt=ve.y,X=ve.width,ge=ve.height),Sn>a.width+a.x||a.x>St.width+St.x){n!==1&&(e.globalAlpha=r),this.filter!==""&&(e.filter=i);return}e.save(),e.beginPath(),e.rect(Sn,qt,X,ge),e.clip()}if(D){if(!O.isVisible()){n!==1&&(e.globalAlpha=r),this.filter!==""&&(e.filter=i);return}E&&(St=O.shadowOffset,e.Ev(St.x*t.scale*this.scale*t.Mb,St.y*t.scale*this.scale*t.Mb,O.shadowBlur),lc(e),e.shadowColor=O.shadowColor)}E&&this.shadowVisible===!0?lc(e):E&&this.shadowVisible===!1&&Ku(e),O=this.naturalBounds,this.areaBackground!==null&&(e.yc(),dl(this,e,O,a)),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),E&&bs(this,d)&&this.shadowVisible===null&&Ku(e),this.Ma!==null&&(e.yc(),Ha(this,e,O,a)),E&&(this.Ma!==null||this.areaBackground!==null||bs(this,d))?(iu(this,!0),this.shadowVisible===null&&Ku(e)):iu(this,!1),this.hh(e,t),E&&this.l&512&&lc(e),D&&E&&Ku(e),se&&(e.restore(),e.Vc(this instanceof Zt)),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 bs(e,t){return t===null?!1:(Rc(t)&&(t=t.panel),(t.l&512)!==0||(t.type===Zt.Auto||t.type===Zt.Spot)&&t.Pb()!==e)}ye.Dv=function(){};function dl(e,t,n,r){So(e,t,e.areaBackground,!0,!0,n,r),e.areaBackground instanceof fi&&e.areaBackground.type===Nl?(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 Ha(e,t,n,r){var i=e.kq(),o=n.x,a=n.y,d=n.width+i,E=n.height+i;So(e,t,e.Ma,!0,!1,n,r),e.Ma instanceof fi&&e.Ma.type===Nl?(t.beginPath(),t.rect(o-i/2,a-i/2,d,E),t.ng(e.Ma)):t.fillRect(o-i/2,a-i/2,d,E)}function Ys(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===Zt.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 _l(e,t,n){if(!(t instanceof Qa))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&&Ys(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),lc(t),t.shadowColor=e.shadowColor}e instanceof Wi&&(t.font=e.font),t.yd=null;var a=e.transform;o=e instanceof Zt;var d=e instanceof Zt?Rc(e):!1;e.l&4096&&Es(e);var E=e.Ib;if(t.rb.ha=[1,0,0,1,0,0],t.o=!1,i&&(t.o=!0,o&&d?(up(t,1,0,0,1,0,0),e.svg=t.ad):o?(up(t,a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),e.svg=t.ad):up(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],dl(e,t,i,E),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?(d&&(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),Ha(e,t,i,E),d&&(t.rb.ha=[1,0,0,1,0,0])):(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],Ha(e,t,i,E)),t.yd.Ma=t.ad,t.yd.prepend(t.ad)),a=t.yd,i=e.part,d=!1,i&&n.Gf("drawShadows")&&(d=i.isShadowed),t.clipInsteadOfFill&&(d=!1),e.Dd()&&d&&lc(t),d&&e.shadowVisible===!0?lc(t):d&&e.shadowVisible===!1&&Ku(t),i=e.panel,d&&bs(e,i)&&e.shadowVisible===null&&Ku(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)),d&&(e.Ma!==null||e.areaBackground!==null||bs(e,i))?(iu(e,!0),e.shadowVisible===null&&Ku(t)):iu(e,!1),i=d,e.hh(t,n),o&&t.nh.pop(),t.o&&t.nh.pop(),a=t.Gv.hs,d=o?e.svg:t.yd,O=e.svg,!o&&O!==null&&d!==O&&O.parentNode===e.panel.svg?(e.svg.replaceWith(d),e.svg=d,d!==null&&e.$o(t,r,E,d),Na(t,O),!0):(e.svg=d,a!==null&&d===null&&(Eg(t),t.nh.pop()),d===null||(e.$o(t,r,E,d),t.Il&&(n=n.computePixelRatio(),e.Dv(d,"drop-shadow("+t.shadowOffsetX/n+"px "+t.shadowOffsetY/n+"px "+t.shadowBlur/n/2+"px "+t.shadowColor+")")),i&&e.l&512&&lc(t),e.Dd()&&Ku(t),n=e.Dd()?e.opacity*t.globalAlpha:e.opacity,n!==1&&d.setAttributeNS(null,"opacity",n.toString()),e.filter!==""&&d.setAttributeNS(null,"filter",e.filter),e.Dd()?(t.ti?t.ti.after(d):t.Nj.prepend(d),t.ti=d):r!==null&&Ys(e,r,d),a!==null&&a(e,d)),!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 d=null;o!==null&&(d=e.svg.getElementById(o.split("#")[1].slice(0,-1))),d===null?(o="CLIP"+mi++,d=e.Ud("clipPath",{id:o}),t=e.Ud("rect",{x:t,y:i,width:a,height:n}),this instanceof Zt&&(i=this.transform.copy().Vj(),t.setAttribute("transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")")),d.appendChild(t),e.svg.appendChild(d),r.setAttributeNS(null,"clip-path","url(#"+o+")")):(e=d.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"),Na(e,r)};function Na(e,t){t=t.getAttribute("clip-path"),t!==null&&(e=e.svg.getElementById(t.split("#")[1].slice(0,-1)),e!==null&&e.remove())}function $s(e){if(e.svg!==null){var t=e.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=e.svg.ownerDocument;if(t!==null){t=wn(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 Zt?Rc(this):!1;if(!(this instanceof Zt&&i))if(this instanceof Oa){var o=this.bt;e.rb.ha=[r.m11,r.m12,r.m21,r.m22,r.dx,r.dy],o!==null&&c0(e,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?t.lastElementChild.setAttributeNS(null,"transform",h0(e)):t.setAttributeNS(null,"transform",h0(e))}else if(!n||this instanceof Zt)t.setAttributeNS(null,"transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")");else if(this instanceof ur){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],dl(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&&Cg(e,o)),(this.background!==null||t.Ma!==void 0)&&(o=t.Ma,this.background===null?(Cg(e,t.Ma),t.Ma.remove(),t.Ma=void 0):((i||n&&!(this instanceof Zt))&&(e.rb.ha=[r.m11,r.m12,r.m21,r.m22,r.dx,r.dy]),Ha(this,e,this.naturalBounds,this.actualBounds),t.Ma?(Cg(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&&Cg(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 So(e,t,n,r,i,o,a){if(n!==null){var d=1,E=1;if(typeof n=="string")r?t.fillStyle=n:t.strokeStyle=n;else if(n.type===Nc)r?t.fillStyle=n.color:t.strokeStyle=n.color;else{var O=e.kq();if(d=o.width,E=o.height,i?(d=a.width,E=a.height):r||(d+=O,E+=O),(o=t instanceof zh)&&n.xe&&(n.type===nd||n.yk===d&&n.ft===E))var D=n.xe;else{var X=0,se=0,ge=0,ve=0,Te=0,Ke=0;if(Ke=Te=0,i?(Te=a.x,Ke=a.y):r||(Te-=O/2,Ke-=O/2),X=n.start.x*d+n.start.offsetX,se=n.start.y*E+n.start.offsetY,ge=n.end.x*d+n.end.offsetX,ve=n.end.y*E+n.end.offsetY,X+=Te,ge+=Te,se+=Ke,ve+=Ke,n.type===cc)D=t.createLinearGradient(X,se,ge,ve);else if(n.type===Nl)Ke=isNaN(n.endRadius)?Math.max(d,E)/2:n.endRadius,isNaN(n.startRadius)?(Te=0,Ke=Math.max(d,E)/2):Te=n.startRadius,D=t.createRadialGradient(X,se,Te,ge,ve,Ke);else if(n.type===nd)try{D=t.createPattern(n.pattern,"repeat")}catch(Xe){D=null}if(n.type!==nd&&(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=d,n.ft=E),D===null&&n.type===nd&&n.yk!==-1)){n.yk=-1;var Ge=e.diagram;Ge!==null&&n.yk===-1&&Ci(function(){Ge.redraw()},600)}}r?t.fillStyle=D:t.strokeStyle=D}}}ye.rg=function(e){if(e instanceof Zt)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 Zt?this:this.panel;e!==null&&e.isEnabled;)e=e.panel;return e===null};function Es(e){if(e.l&2048){var t=e.Ab;if(t.reset(),!e.Ib.w()||!e.uc.w()){Ul(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)}Ul(e,!1),Al(e,!0)}e.l&4096&&(t=e.panel,t===null?(e.wh.set(e.Ab),e.Kk=e.scale,Al(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,Al(e,!1)))}ye.no=function(e,t,n,r,i){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=Pe.alloc();o.yi(t,n,r,i,ir),e.rotate(this.Kb,o.x,o.y),Pe.free(o)}},ye.v=function(e){if(!pl(this)){e===void 0&&(e=!1),Go(this,!0),Vu(this,!0);var t=this.panel;t===null||e||t.v()}},ye.Uj=function(){pl(this)||(Go(this,!0),Vu(this,!0))};function ha(e){if(!fa(e)){var t=e.panel;t!==null?t.v():e.Dd()&&(t=e.diagram,t!==null&&(t.De.add(e),e instanceof fn&&e.Bd(),t.$b())),Vu(e,!0)}}ye.Uk=function(){!(this.l&2048)&&(Ul(this,!0),Al(this,!0))},ye.Wu=function(){Al(this,!0)},ye.N=function(){var e=this.part;e!==null&&e.N()};function Ra(e,t){var n=e.stretch,r=e.panel;return r!==null&&r.type===Zt.Table?bu(e,r.Fb(e.row),r.Eb(e.column),t):r!==null&&r.type===Zt.Auto&&r.Pb()===e?Ss(e,Yt,t):n===rr?r!==null?r.type===Zt.Spot&&r.Pb()===e?Ss(e,Yt,t):(n=r.defaultStretch,n===rr?Ss(e,jt,t):Ss(e,n,t)):Ss(e,jt,t):Ss(e,n,t)}function bu(e,t,n,r){var i=e.stretch;if(i!==rr)return Ss(e,i,r);var o=i=null;switch(t.stretch){case Gn:o=!0;break;case Yt:o=!0}switch(n.stretch){case Ln:i=!0;break;case Yt:i=!0}return t=e.panel.defaultStretch,i===null&&(i=t===Ln||t===Yt),o===null&&(o=t===Gn||t===Yt),i===!0&&o===!0?Ss(e,Yt,r):i===!0?Ss(e,Ln,r):o===!0?Ss(e,Gn,r):Ss(e,jt,r)}function Ss(e,t,n){if(n)return t;if(t===jt||(n=e.desiredSize,n.w()))return jt;if(e=e.angle,!isNaN(n.width))if(e!==90&&e!==270){if(t===Ln)return jt;if(t===Yt)return Gn}else{if(t===Gn)return jt;if(t===Yt)return Ln}if(!isNaN(n.height))if(e!==90&&e!==270){if(t===Gn)return jt;if(t===Yt)return Ln}else{if(t===Ln)return jt;if(t===Yt)return Gn}return t}function iu(e,t){e.l=t?e.l|512:e.l&-513}function Ns(e){return(e.l&1024)!==0}function pf(e,t){e.l=t?e.l|1024:e.l&-1025}function Ul(e,t){e.l=t?e.l|2048:e.l&-2049}function Al(e,t){e.l=t?e.l|4096:e.l&-4097}function pl(e){return(e.l&8192)!==0}function Go(e,t){e.l=t?e.l|8192:e.l&-8193}function fa(e){return(e.l&16384)!==0}function Vu(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,ha(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 Uh(e){var t=e.part;if(t instanceof fn&&(e.portId!==null||e===t.port)){var n=t.diagram;n===null||n.undoManager.isUndoingRedoing||ib(t,e)}}function l0(e){var t=e.diagram;t===null||t.undoManager.isUndoingRedoing||(e instanceof Zt?e instanceof fn?e.Bd():e.qm(e,function(n){Uh(n)}):Uh(e))}ye.bind=function(e,t,n,r){var i=null;return typeof e=="string"?i=new Do(e,t,n,r):i=e,i.xd=this,e=this.ih(),e!==null&&A0(e)&&nt("Cannot add a Binding to a template that has already been copied: "+i),this.localBindings===null&&(this.localBindings=new Gt),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 Oh(this,e),this},ye.pz=function(){return this.ih()},ye.ih=function(){for(var e=this instanceof Zt?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 wt),this.animationTriggers.add(e.propertyName,e),this};function kl(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=Zf.I(e);typeof o=="function"?(n=kn(arguments),r=o(n),dt(r)||nt('GraphObject.make invoked object builder "'+e+'", but it did not return an Object')):i=mn.go[e]}if(r===null&&(i!=null&&i.constructor||nt("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 xt&&1<n.length){o=r;var a=n[1];(typeof a=="string"||a instanceof HTMLDivElement)&&(Fd(o,a),i++)}for(;i<n.length;i++)o=n[i],o===void 0?nt("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 Wi)e.text=t;else if(e instanceof ur)e.figure=t;else if(e instanceof Oa)e.source=t;else if(e instanceof Zt)t=ou.I(t),t!==null&&(e.type=t);else if(e instanceof fi){var n=wi(fi,t);n!==null?e.type=n:nt("Unknown Brush type as an argument to GraphObject.make: "+t)}else e instanceof Qt?(t=wi(Qt,t),t!==null&&(e.type=t)):e instanceof Fr&&(t=wi(Fr,t),t!==null&&(e.type=t));else if(t instanceof ht)e instanceof Zt||nt("A GraphObject can only be added to a Panel, not to: "+e),e.add(t);else if(t instanceof Wo){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 Wo?Ug(r,t):nt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+e)}else if(t instanceof Ut)typeof e.qb=="function"&&e.qb(t);else if(t instanceof $o)e.type=t;else if(t instanceof Do)e instanceof ht||e instanceof Wo?e.bind(t):nt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+e);else if(t instanceof Aa)e instanceof ht?e.Jv(t):nt("An AnimationTrigger can only be applied to a GraphObject, not to: "+e);else if(t instanceof To)e instanceof Qt&&e.type===Qt.o?e.figures.add(t):nt("A PathFigure can only be added to a Path Geometry, not to: "+e);else if(t instanceof Fr)e instanceof To?e.segments.add(t):nt("A PathSegment can only be added to a PathFigure, not to: "+e);else if(t instanceof lo)e instanceof xt||e instanceof tr?e.layout=t:nt("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 fi){n=new Or;for(var i in t)r=parseFloat(i),isNaN(r)?n[i]=t[i]:e.addColorStop(r,t[i]);Oh(e,n)}else if(e instanceof Wo){t.row!==void 0?(i=t.row,(i==null||i===1/0||isNaN(i)||0>i)&&nt("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)&&nt("Must specify non-negative integer column for RowColumnDefinition "+t+", not: "+i),e.isRow=!1,e.index=i),i=new Or;for(n in t)n!=="row"&&n!=="column"&&(i[n]=t[n]);Oh(e,i)}else Oh(e,t);else nt('Unknown initializer "'+t+'" for object being constructed by GraphObject.make: '+e)}function kc(e,t){Zf.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}Dn.Object.defineProperties(ht.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(e){this.bindingId!==e&&(this.A===null&&(this.A=new gf),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 gf),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 gf),this.A.wm=e)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(e){var t=this.shadowVisible;t!==e&&(gr(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&&(gr(this),this.A.Hb=e,this.g("enabledChanged",t,e))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:ga},set:function(e){var t=this.segmentOrientation;t!==e&&(this.Ua===null&&(this.Ua=new rh),this.Ua.rr=e,this.v(),this.g("segmentOrientation",t,e),e===ga&&(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 rh),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 rh),this.Ua.o=e,this.v(),this.g("segmentFraction",t,e))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:an},set:function(e){var t=this.segmentOffset;t.D(e)||(e=e.J(),this.Ua===null&&(this.Ua=new rh),this.Ua.F=e,this.v(),this.g("segmentOffset",t,e))}},stretch:{get:function(){return this.A!==null?this.A.hg:rr},set:function(e){var t=this.stretch;t!==e&&(gr(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&&(gr(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)&&hn(e,"0 <= value <= 1",ht,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(Kh(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(Kh(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(),l0(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&&vf(e,"GraphObject.areaBackground"),e instanceof fi&&e.freeze(),gr(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&&vf(e,"GraphObject.background"),e instanceof fi&&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 Pn)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 Pe(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&&nt("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,l0(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 ur&&this.qc(),this.g("desiredSize",r,e),Ns(this)&&(e=this.part,e!==null&&(no(this,e,"width"),no(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 un(e,this.jd.height).freeze(),this.v(),this instanceof ur&&this.qc(),this.g("desiredSize",t,e),Ns(this)&&(e=this.part,e!==null&&no(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 un(this.jd.width,e).freeze(),this.v(),this instanceof ur&&this.qc(),this.g("desiredSize",t,e),Ns(this)&&(e=this.part,e!==null&&no(this,e,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:zr},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(),gr(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(),gr(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 sr(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&&Es(this),this.Ab}},oe:{get:function(){return this.l&4096&&Es(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(e){this.animationTriggers!==e&&(gr(this),this.A.hb=e)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:jt},set:function(e){this.reshapingBehavior!==e&&(gr(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()&&nt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+e),this.Jb=e=e.J(),ha(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&&hn(e,">= 0",ht,"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&&hn(e,">= 1",ht,"columnSpan"),gr(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&&hn(e,">= 0",ht,"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&&hn(e,">= 1",ht,"rowSpan"),gr(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&&(gr(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 fn||nt("Cannot set portID on a Link: "+e),t!==null&&n!==null&&ey(n,this),this.Yn=e,e!==null&&n!==null&&(n.Te=!0,ab(n,this)),this.g("portId",t,e)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:nr},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),Uh(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&hn(e,">= 0",ht,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),Uh(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),Uh(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&&hn(e,">= 0",ht,"toMaxLinks"),this.Xc(),this.ba.Ur=e,this.g("toMaxLinks",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:nr},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),Uh(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&hn(e,">= 0",ht,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),Uh(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),Uh(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&&hn(e,">= 0",ht,"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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(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&&(gr(this),this.A.Ch=e,this.g("contextMenu",t,e))}}}),ht.prototype.trigger=ht.prototype.Jv,ht.prototype.findBindingPanel=ht.prototype.ih,ht.prototype.findTemplateBinder=ht.prototype.pz,ht.prototype.setProperties=ht.prototype.nm,ht.prototype.apply=ht.prototype.apply,ht.prototype.attach=ht.prototype.Du,ht.prototype.set=ht.prototype.set,ht.prototype.isEnabledObject=ht.prototype.If,ht.prototype.isVisibleObject=ht.prototype.Ed,ht.prototype.isContainedBy=ht.prototype.rg,ht.prototype.getNearestIntersectionPoint=ht.prototype.rs,ht.prototype.getLocalPoint=ht.prototype.qs,ht.prototype.getDocumentScale=ht.prototype.Df,ht.prototype.getDocumentAngle=ht.prototype.li,ht.prototype.getDocumentBounds=ht.prototype.mi,ht.prototype.getDocumentPoint=ht.prototype.ga,ht.prototype.intersectsRect=ht.prototype.Yc,ht.prototype.containedInRect=ht.prototype.fh,ht.prototype.containsRect=ht.prototype.Re,ht.prototype.containsPoint=ht.prototype.ca,ht.prototype.raiseChanged=ht.prototype.g,ht.prototype.raiseChangedEvent=ht.prototype.cb,ht.prototype.addCopyProperty=ht.prototype.Vw;var Zf=null;ht.className="GraphObject",Zf=new wt,kc("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=kl(Zt,Zt.Auto,{isActionable:!0,enabledChanged:function(n,r){if(n instanceof Zt){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"},kl(ur,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Cn(0,0,2.76142374915397,2.761423749153969),spot2:new Cn(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 Zt&&(n=r.fb("ButtonBorder"),n instanceof ur)){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 Zt&&(n=r.fb("ButtonBorder"),n instanceof ur&&(n.fill=r._buttonFillNormal,n.stroke=r._buttonStrokeNormal))},t.actionDown=function(n,r){if(r.If()&&r instanceof Zt&&r._buttonFillPressed!==null&&n.button===0){var i=r.fb("ButtonBorder");if(i instanceof ur){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 Zt&&r._buttonFillPressed!==null&&n.button===0){var i=r.fb("ButtonBorder");if(i instanceof ur){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 Zt&&r._buttonFillPressed!==null){var i=r.fb("ButtonBorder");if(i instanceof ur){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 Zt&&r._buttonFillPressed!==null){var i=n.diagram;if(i.firstInput.button===0&&(i.currentTool.standardMouseOver(),e(n,r)&&(n=r.fb("ButtonBorder"),n instanceof ur))){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}),kc("TreeExpanderButton",function(){var e=kl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},kl(ur,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Cr},new Do("figure","isTreeExpanded",function(t,n){return n=n.panel,t?n._treeExpandedFigure:n._treeCollapsedFigure}).cp()),{visible:!1},new Do("visible","isTreeLeaf",function(t){return!t}).cp());return e.click=function(t,n){if(n=n.part,n instanceof Zr&&(n=n.adornedPart),n instanceof fn){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}),kc("SubGraphExpanderButton",function(){var e=kl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},kl(ur,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Cr},new Do("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 Zr&&(n=n.adornedPart),n instanceof tr){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}),kc("ToolTip",function(){return kl(Zr,Zt.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Pe(0,3),shadowBlur:5},kl(ur,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Cn(0,0,4,6),spot2:new Cn(1,1,-4,-4)}))}),kc("ContextMenu",function(){return kl(Zr,Zt.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Pe(0,3),shadowBlur:5},new Do("background","",function(e){return e.adornedPart!==null&&e.placeholder!==null?null:"#F5F5F5"}))}),kc("ContextMenuButton",function(){var e=kl("Button");e.stretch=Ln;var t=e.fb("ButtonBorder");return t instanceof ur&&(t.figure="Rectangle",t.strokeWidth=0,t.spot1=new Cn(0,0,2,3),t.spot2=new Cn(1,1,-2,-2)),e}),kc("PanelExpanderButton",function(e){var t=wg(e,"COLLAPSIBLE"),n=kl("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},kl(ur,{name:"ButtonIcon",strokeWidth:2},new Do("geometryString","visible",function(r){return r?n._buttonExpandedFigure:n._buttonCollapsedFigure}).cp(t)));return e=n.fb("ButtonBorder"),e instanceof ur&&(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}),kc("CheckBoxButton",function(e){var t=wg(e);return e=kl("Button",{desiredSize:new un(14,14)},kl(ur,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Yt,geometryStretch:Rn,visible:!1},t!==""?new Do("visible",t).Kx():[])),e.click=function(n,r){if(r instanceof Zt){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}),kc("CheckBox",function(e){e=wg(e),e=kl("CheckBoxButton",e,{name:"Button",isActionable:!1,margin:new sr(0,1,0,0)});var t=kl(Zt,"Horizontal",e,{isActionable:!0,cursor:e.cursor,margin:new sr(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}),ht.None=jt=new Ut(ht,"None",0),ht.Default=rr=new Ut(ht,"Default",0),ht.Vertical=Gn=new Ut(ht,"Vertical",4),ht.Horizontal=Ln=new Ut(ht,"Horizontal",5),ht.Fill=Yt=new Ut(ht,"Fill",3),ht.Uniform=Rn=new Ut(ht,"Uniform",1),ht.UniformToFill=kr=new Ut(ht,"UniformToFill",2),ht.FlipVertical=mr=new Ut(ht,"FlipVertical",1),ht.FlipHorizontal=Ur=new Ut(ht,"FlipHorizontal",2),ht.FlipBoth=xi=new Ut(ht,"FlipBoth",3),ht.make=kl,ht.getBuilders=function(){var e=new wt,t;for(t in Zf)if(t!==t.toLowerCase()){var n=Zf.I(t);typeof n=="function"&&e.add(t,n)}return e.freeze(),e},ht.defineBuilder=kc,ht.build=function(e,t,n){for(var r=[],i=2;i<arguments.length;++i)r[i-2]=arguments[i];if(i=Zf.I(e),typeof i=="function"&&(r=i([e].concat(r)),r instanceof ht))return t&&r.set(t),r;nt('GraphObject.build invoked object builder "'+e+'", but it did not return an Object')},ht.takeBuilderArgument=wg;function gf(){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=zr,this.o=ji,this.hg=rr,this.ob=this.Bi=1,this.Pf=jt,this.Pc=this.Ci=this.gd=null,this.Oc="category"}gf.prototype.copy=function(){var e=new gf;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 rh(){this.u=-1/0,this.o=0,this.F=an,this.rr=ga,this.j=this.V="None"}rh.prototype.copy=function(){var e=new rh;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},rh.className="LinkElementSettings";function lp(){this.yj=this.Xi=Bo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}lp.prototype.copy=function(){var e=new lp;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},lp.className="LinkSettings";function Hh(){this.ha=[1,0,0,1,0,0]}Hh.prototype.copy=function(){var e=new Hh;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},Hh.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},Hh.prototype.scale=function(e,t){this.ha[0]*=e,this.ha[1]*=e,this.ha[2]*=t,this.ha[3]*=t},Hh.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)}},Hh.className="STransform";function mf(e){this.type=e,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}mf.prototype.addColorStop=function(e,t){this.gx.push({offset:e,color:t})},mf.className="SGradient";function Ou(e,t,n){this.ownerDocument=e=t===void 0?mn.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 Qa(this,n)}Ou.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},Ou.prototype.Ud=function(e,t,n){if(e=this.ownerDocument.createElementNS(this.cA,e),dt(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},Ou.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ou.prototype.focus=function(){this.Oa.focus()},Ou.prototype.mx=function(){this.ownerDocument=null},Dn.Object.defineProperties(Ou.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}}}),Ou.className="SVGSurface";function Qa(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 Hh,this.j=Eg(this),this.Nj=Eg(this,"gojs-diagram"),this.Hl=this.ti=null;var n=mi++,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 u0(e,t,n,r,i,o,a){e.Nj===void 0?up(e,t,n,r,i,o,a):e.Nj.setAttribute("transform","matrix("+t+", "+n+", "+r+", "+i+", "+o+", "+a+")")}ye=Qa.prototype,ye.arc=function(e,t,n,r,i,o,a,d){var E=2*Math.PI,O=E-1e-6,D=n*Math.cos(r),X=n*Math.sin(r),se=e+D,ge=t+X,ve=o?0:1;r=o?r-i:i-r,(1e-6<Math.abs(a-se)||1e-6<Math.abs(d-ge))&&this.path.push(["L",se,+ge]),0>r&&(r=r%E+E),r>O?(this.path.push(["A",n,n,0,1,ve,e-D,t-X]),this.path.push(["A",n,n,0,1,ve,se,ge])):1e-6<r&&this.path.push(["A",n,n,0,+(r>=Math.PI),ve,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 mf("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"+mi++,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(Bh,i)),this.svg.appendChild(e),n[t]=r,"url(#"+r+")"},ye.createRadialGradient=function(e,t,n,r,i,o){var a=new mf("radial");return a.x1=e,a.y1=t,a.r1=n,a.x2=r,a.y2=i,a.r2=o,a};function c0(e,t,n,r,i,o,a,d,E){r=d/r,i=E/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,d,E){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,d=r=D,E=i=e),r=r||0,i=i||0,d=d||0,E=E||0,c0(this,t,n,r,i,o||0,a||0,d,E),o={x:0,y:0,width:D||r,height:e||i,href:O},lt.$(r,d)&&lt.$(i,E)?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')"),Jf(this,Bh,o,this.rb),this.addElement(Bh,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]},Jf(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},Jf(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},Jf(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||up(this,e,t,n,r,i,o)};function h0(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(){d0(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 Jf(e,t,n,r){t==="fill"?gv(e,n):t==="stroke"&&d0(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 mf?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 f0(e,t,n){n=n?"fill":"stroke",e.fillStyle instanceof mf?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 d0(e,t){if(e.strokeStyle instanceof mf)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"+mi++,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 d=i[a],E=d.color;d={offset:d.offset,"stop-color":E},/^rgba\(/.test(E)&&(E=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(E),d["stop-color"]="rgb("+E[1]+","+E[2]+","+E[3]+")",d["stop-opacity"]=E[4]),o.push(d)}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=kn(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,Jf(this,"",e,t),this.Hl!==null)if(t=this.Hl,t.nodeName!=="g")for(var d in e)d!=="transform"&&t.setAttributeNS(null,d,e[d]);else{d=t.getElementsByTagName("path");for(var E in e)E!=="transform"&&d[n].setAttributeNS(null,E,e[E])}else this.addElement("path",e)};function up(e,t,n,r,i,o,a){var d=new Hh;d.ha=[t,n,r,i,o,a],t={},Jf(e,"g",t,d),d=e.addElement("g",t),e.nh.push(d)}function Eg(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 Ku(e){e.Il=!1,e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0}function lc(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(){},Qa.prototype.rotate=function(e){this.rb.rotate(57.2958*e,0,0)},Qa.prototype.getImageData=function(){return null},Qa.prototype.measureText=function(){return null};function Cg(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()))}Qa.prototype.Hs=function(e){e.svg!==null&&e.svg.parentNode===this.Nj&&e.svg.remove()},Qa.className="SVGContext",xt.prototype.Cs=function(e){this.pj.contains("SVG")||this.bs("SVG",new Ou(this,mn.document));var t=new Ou(this,mn.document,!0);e===void 0&&(e=new Or);var n=this;return uf(this,function(r,i){return r=yg(n,r,"SVG",t),r=r!==null?r.svg:null,typeof i=="function"?(i(r),null):r},e)},xt.prototype.makeSvg=xt.prototype.Cs,xt.prototype.av=function(e){return this.Cs(e)},xt.prototype.makeSVG=xt.prototype.av;function Hl(e,t,n,r){this.ownerDocument=t=t===void 0?mn.document:t,this.hs=null,t=t.createElement("canvas"),t.tabIndex=0,this.Oa=t,this.context=new zh(t,n,r),t.H=e}Hl.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},Hl.prototype.toDataURL=function(e,t){return this.Oa.toDataURL(e,t)},Hl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Hl.prototype.focus=function(){this.Oa.focus()},Hl.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Dn.Object.defineProperties(Hl.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}}}),Hl.className="CanvasSurface";function zh(e,t,n){this.Z=e.getContext?e.getContext("2d",t):null,this.Z===null&&nt("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 Vn,this.isTemporary=!!n}ye=zh.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,d,E){r===void 0?this.Z.drawImage(e,t,n):this.Z.drawImage(e,t,n,r,i,o,a,d,E)},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()},zh.prototype.rotate=function(e){this.El.rotate(57.2958*e,0,0)},ye=zh.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,d=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=d,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 fi&&e.type===Nl){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(){},Dn.Object.defineProperties(zh.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([]);zh.className="CanvasSurfaceContext";function cp(){this.F=this.o=this.u=this.j=0}cp.className="ColorNumbers";function fi(e,t){td||(wv(),td=!0),Yn(this),this._isFrozen=!1,e===void 0?(this.na=Nc,this.xk="black"):typeof e=="string"?(this.na=Nc,this.xk=e):(this.na=e,this.xk="black"),e=this.na,e===cc?(this.Qd=Xr,this.Lk=xo):this.Lk=e===Nl?this.Qd=ir:this.Qd=nr,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,t&&Object.assign(this,t)}fi.prototype.copy=function(){var e=new fi;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=fi.prototype,ye.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ye.ka=function(){return Object.isFrozen(this)&&nt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ye.qb=function(e){e.classType===fi&&(this.type=e)},ye.toString=function(){var e="Brush(";if(this.type===Nc)e+=this.color;else if(e=this.type===cc?e+"Linear ":this.type===Nl?e+"Radial ":this.type===nd?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&&vt(this),(typeof e!="number"||!isFinite(e)||1<e||0>e)&&hn(e,"0 <= loc <= 1",fi,"addColorStop:loc"),this.we===null&&(this.we=new wt),this.we.add(e,t),this.na===Nc&&(this.type=cc),this.xe=null,this},ye.Vz=function(e,t){if(this._isFrozen&&vt(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?rd:t,this.type===Nc)uc(this.color),this.color=qf(e,t);else if((this.type===cc||this.type===Nl)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)uc(n.value),this.addColorStop(n.key,qf(e,t));return this};function p0(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?rd:n,uc(e),qf(t,n)}ye.Wy=function(e,t){if(this._isFrozen&&vt(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?rd:t,this.type===Nc)uc(this.color),this.color=qf(-e,t);else if((this.type===cc||this.type===Nl)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)uc(n.value),this.addColorStop(n.key,qf(-e,t));return this};function g0(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?rd:n,uc(e),qf(-t,n)}function vv(e,t,n){uc(e),e=Xi.j;var r=Xi.u,i=Xi.o,o=Xi.F;return uc(t),n===void 0&&(n=.5),"rgba("+Math.round((Xi.j-e)*n+e)+", "+Math.round((Xi.u-r)*n+r)+", "+Math.round((Xi.o-i)*n+i)+", "+Math.round((Xi.F-o)*n+o)+")"}ye.Gx=function(){if(this.type===Nc)return Qf(this.color);if((this.type===cc||this.type===Nl)&&this.colorStops!==null){var e=this.colorStops;if(this.type===Nl)return Qf(e.first().value);if(e.get(.5)!==null)return Qf(e.get(.5));if(e.count===2)return e=e.Fa(),Qf(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,d=Math.abs(.5-t.key);i>o&&d<i?(n=a,i=d):o>=i&&d<o&&(r=a,o=d)}return n>r&&(o=n,n=r,r=o,o=i),i=r-n,Qf(vv(e.get(n),e.get(r),1-o/i))}return!1};function Qf(e){return e?e instanceof fi?e.Gx():(uc(e),128>(299*Xi.j+587*Xi.u+114*Xi.o)/1e3):!1}function qf(e,t){switch(t){case rd:t=100*bv(Xi.j);var n=100*bv(Xi.u),r=100*bv(Xi.o);return da.j=.4124564*t+.3575761*n+.1804375*r,da.u=.2126729*t+.7151522*n+.072175*r,da.o=.0193339*t+.119192*n+.9503041*r,da.F=Xi.F,t=xv(da.j/ed[0]),n=xv(da.u/ed[1]),r=xv(da.o/ed[2]),Yu.j=116*n-16,Yu.u=500*(t-n),Yu.o=200*(n-r),Yu.F=da.F,Yu.j=Math.min(100,Math.max(0,Yu.j+100*e)),e=(Yu.j+16)/116,t=e-Yu.o/200,da.j=ed[0]*m0(Yu.u/500+e),da.u=ed[1]*(Yu.j>Tg*Ev?Math.pow(e,3):Yu.j/Tg),da.o=ed[2]*m0(t),da.F=Yu.F,e=-.969266*da.j+1.8760108*da.u+.041556*da.o,t=.0556434*da.j+-.2040259*da.u+1.0572252*da.o,Xi.j=255*Sv((3.2404542*da.j+-1.5371385*da.u+-.4985314*da.o)/100),Xi.u=255*Sv(e/100),Xi.o=255*Sv(t/100),Xi.F=da.F,Xi.j=Math.round(Xi.j),255<Xi.j?Xi.j=255:0>Xi.j&&(Xi.j=0),Xi.u=Math.round(Xi.u),255<Xi.u?Xi.u=255:0>Xi.u&&(Xi.u=0),Xi.o=Math.round(Xi.o),255<Xi.o?Xi.o=255:0>Xi.o&&(Xi.o=0),"rgba("+Xi.j+", "+Xi.u+", "+Xi.o+", "+Xi.F+")";case v0:return yv(),gl.o=Math.min(100,Math.max(0,gl.o+100*e)),"hsla("+gl.j+", "+gl.u+"%, "+gl.o+"%, "+gl.F+")";default:nt("Unknown color space: "+t)}}function uc(e){td||(wv(),td=!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,Xi.j=e[0],Xi.u=e[1],Xi.o=e[2],Xi.F=e[3]/255):(t.fillStyle="#FFFFFF",t.fillStyle=e,Xi.j=0,Xi.u=0,Xi.o=0,Xi.F=1)}}function yv(){var e=Xi.j/255,t=Xi.u/255,n=Xi.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))}gl.j=Math.round(a),gl.u=Math.round(100*e),gl.o=Math.round(100*i),gl.F=Xi.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>Ev?Math.pow(e,1/3):(Tg*e+16)/116}function m0(e){var t=e*e*e;return t>Ev?t:(116*e-16)/Tg}function vf(e,t){typeof e!="string"&&(e instanceof fi||nt("Value for "+t+" must be a color string or a Brush, not "+e))}function wv(){Cv=bo?new Hl(null,void 0,{willReadFrequently:!0}).context:null}Dn.Object.defineProperties(fi.prototype,{type:{get:function(){return this.na},set:function(e){this._isFrozen&&vt(this,e),this.na=e,this.start.Mc()&&(e===cc?this.start=Xr:e===Nl&&(this.start=ir)),this.end.Mc()&&(e===cc?this.end=xo:e===Nl&&(this.end=ir)),this.xe=null}},color:{get:function(){return this.xk},set:function(e){this._isFrozen&&vt(this,e),this.xk=e,this.xe=null}},start:{get:function(){return this.Qd},set:function(e){this._isFrozen&&vt(this,e),this.Qd=e.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(e){this._isFrozen&&vt(this,e),this.Lk=e.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(e){this._isFrozen&&vt(this,e),0>e&&hn(e,">= zero",fi,"startRadius"),this.Gr=e,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(e){this._isFrozen&&vt(this,e),0>e&&hn(e,">= zero",fi,"endRadius"),this.Xp=e,this.xe=null}},colorStops:{get:function(){return this.we},set:function(e){this._isFrozen&&vt(this,e),this.we=e,this.xe=null}},pattern:{get:function(){return this.cr},set:function(e){this._isFrozen&&vt(this,e),this.cr=e,this.xe=null}}}),fi.prototype.isDark=fi.prototype.Gx,fi.prototype.darkenBy=fi.prototype.Wy,fi.prototype.lightenBy=fi.prototype.Vz,fi.prototype.addColorStop=fi.prototype.addColorStop;var Ev=216/24389,Tg=24389/27,ed=[95.047,100,108.883],Cv=null,Xi=new cp,gl=new cp,da=new cp,Yu=new cp,td=!1;fi.className="Brush";var Nc;fi.Solid=Nc=new Ut(fi,"Solid",0);var cc;fi.Linear=cc=new Ut(fi,"Linear",1);var Nl;fi.Radial=Nl=new Ut(fi,"Radial",2);var nd;fi.Pattern=nd=new Ut(fi,"Pattern",4);var rd;fi.Lab=rd=new Ut(fi,"Lab",5);var v0;fi.HSL=v0=new Ut(fi,"HSL",6),fi.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},fi.isValidColor=function(e){if(e==="black")return!0;if(e==="")return!1;td||(wv(),td=!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)},fi.lighten=function(e){return p0(e)},fi.lightenBy=p0,fi.darken=function(e){return g0(e)},fi.darkenBy=g0,fi.mix=vv,fi.isDark=Qf;function $o(){this.xa="Base"}$o.prototype.measure=function(){},$o.prototype.Yz=function(e,t,n,r,i){e.measure(t,n,r,i)},$o.prototype.arrange=function(){},$o.prototype.Ly=function(e,t,n,r,i,o){e.arrange(t,n,r,i,o)},$o.prototype.iA=function(e){e.Uj()},$o.prototype.gc=function(){},Dn.Object.defineProperties($o.prototype,{name:{get:function(){return this.xa},set:function(e){this.xa=e}},classType:{get:function(){return Zt}}}),$o.prototype.remeasureObject=$o.prototype.iA,$o.prototype.arrangeElement=$o.prototype.Ly,$o.prototype.measureElement=$o.prototype.Yz,$o.className="PanelLayout";function _g(){this.xa="Base"}Kn(_g,$o),_g.prototype.measure=function(e,t,n,r,i,o,a){var d=r.length;e=hc(e);for(var E=0;E<d;E++){var O=r[E];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 se=O.measuredBounds;X=Math.max(se.width+X,0),D=Math.max(se.height+D,0),se=O.position.x;var ge=O.position.y;isFinite(se)||(se=0),isFinite(ge)||(ge=0),O instanceof ur&&O.isGeometryPositioned&&(O=O.strokeWidth/2,se-=O,ge-=O),Rr(i,se,ge,X,D)}}},_g.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,d=o.margin,E=o.position.x,O=o.position.y;if(E=isNaN(E)?-e:E-e,O=isNaN(O)?-n:O-n,o instanceof ur&&o.isGeometryPositioned){var D=o.strokeWidth/2;E-=D,O-=D}o.visible&&o.arrange(E+d.left,O+d.top,a.width,a.height)}};function Ag(){this.xa="Base"}Kn(Ag,$o),Ag.prototype.measure=function(e,t,n,r,i,o,a){var d=r.length;t=An(),o=hc(e);for(var E=0;E<d;E++){var O=r[E];if(O.visible||O===o){var D=Ra(O,!1);if(D!==jt&&D!==Ln)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++)E=t[e],(E.visible||E===o)&&(D=E.margin,d=D.right+D.left,D=D.top+D.bottom,E.measure(1/0,n,0,a),E=E.measuredBounds,D=Math.max(E.height+D,0),i.width+=Math.max(E.width+d,0),i.height=Math.max(i.height,D));Nn(t)},Ag.prototype.arrange=function(e,t,n){for(var r=t.length,i=e.padding,o=i.top,a=e.isOpposite,d=a?n.width:i.left,E=0;E<r;E++){var O=o,D=t[E];if(D.visible){var X=D.measuredBounds,se=D.margin,ge=se.top+se.bottom,ve=o+i.bottom,Te=X.height,Ke=Ra(D,!1);(isNaN(D.desiredSize.height)&&Ke===Yt||Ke===Gn)&&(Te=Math.max(n.height-ge-ve,0)),ge=Te+ge+ve,ve=D.alignment,ve.Xb()&&(ve=e.defaultAlignment),ve.sb()||(ve=ir),a&&(d-=X.width+se.left+se.right),D.arrange(d+ve.offsetX+se.left,O+ve.offsetY+se.top+(n.height*ve.y-ge*ve.y),X.width,Te),a||(d+=X.width+se.left+se.right)}}};function kg(){this.xa="Base"}Kn(kg,$o),kg.prototype.measure=function(e,t,n,r,i,o){var a=r.length;n=An();for(var d=hc(e),E=0;E<a;E++){var O=r[E];if(O.visible||O===d){var D=Ra(O,!1);if(D!==jt&&D!==Gn)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,ai(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++)E=n[e],(E.visible||E===d)&&(O=E.margin,a=O.right+O.left,O=O.top+O.bottom,E.measure(t,1/0,o,0),E=E.measuredBounds,O=Math.max(E.height+O,0),i.width=Math.max(i.width,Math.max(E.width+a,0)),i.height+=O);Nn(n)}},kg.prototype.arrange=function(e,t,n){for(var r=t.length,i=e.padding,o=i.left,a=e.isOpposite,d=a?n.height:i.top,E=0;E<r;E++){var O=o,D=t[E];if(D.visible){var X=D.measuredBounds,se=D.margin,ge=se.left+se.right,ve=o+i.right,Te=X.width,Ke=Ra(D,!1);(isNaN(D.desiredSize.width)&&Ke===Yt||Ke===Ln)&&(Te=Math.max(n.width-ge-ve,0)),ge=Te+ge+ve,ve=D.alignment,ve.Xb()&&(ve=e.defaultAlignment),ve.sb()||(ve=ir),a&&(d-=X.height+se.bottom+se.top),D.arrange(O+ve.offsetX+se.left+(n.width*ve.x-ge*ve.x),d+ve.offsetY+se.top,Te,X.height),a||(d+=X.height+se.bottom+se.top)}}};function Ng(){this.xa="Base"}Kn(Ng,$o),Ng.prototype.measure=function(e,t,n,r,i,o,a){var d=r.length,E=e.Pb(),O=E.margin,D=O.right+O.left,X=O.top+O.bottom;E.measure(t,n,o,a);var se=E.measuredBounds;o=se.width,a=se.height;var ge=Math.max(o+D,0),ve=Math.max(a+X,0),Te=e.isClipping,Ke=Ct.allocAt(-O.left,-O.top,ge,ve),Ge=Ct.allocAt(0,0,o,a);Tv(E,Ge,!0),o=Ge.width,a=Ge.height;for(var Xe=!0,Ze=hc(e),tt=0;tt<d;tt++){var at=r[tt];se=t;var St=n;if(at!==E&&(at.visible||at===Ze)){O=at.margin;var ln=O.left,_n=O.top;switch(ge=O.right+O.left,ve=O.top+O.bottom,O=Ra(at,!1),O){case Yt:se=o,St=a,_n=ln=ve=ge=0;break;case Ln:se=o,ln=ge=0;break;case Gn:St=a,_n=ve=0}at.measure(se,St,0,0),se=at.measuredBounds,ge=Math.max(se.width+ge,0),ve=Math.max(se.height+ve,0),O=at.alignment,O.Xb()&&(O=e.defaultAlignment),O.sb()||(O=ir);var Sn=at.alignmentFocus;if(Sn.Xb()&&(Sn=ir),St=null,at instanceof Zt&&at.$e!==""&&(St=at.fb(at.$e),St===at&&(St=null)),ln=Ge.x-ln,_n=Ge.y-_n,St!==null){for(at.arrange(0,0,se.width,se.height),se=St.actualBounds,se=Pe.allocAt(se.x+(Sn.x*se.width-Sn.offsetX),se.y+(Sn.y*se.height-Sn.offsetY)),St=St.panel;St!==at;)St.transform.Ga(se),St=St.panel;ln+=O.x*o+O.offsetX-se.x,_n+=O.y*a+O.offsetY-se.y,Pe.free(se)}else ln+=O.x*o+O.offsetX-(Sn.x*se.width+Sn.offsetX),_n+=O.y*a+O.offsetY-(Sn.y*se.height+Sn.offsetY);Xe?(Xe=!1,i.h(ln,_n,ge,ve)):Rr(i,ln,_n,ge,ve)}}switch(Xe?i.assign(Ke):Te?i.Uu(Ge.x,Ge.y,Ge.width,Ge.height):Rr(i,Ke.x,Ke.y,Ke.width,Ke.height),Ct.free(Ke),Ct.free(Ge),O=E.stretch,O===rr&&(O=Ra(E,!1)),O){case jt:return;case Yt:if(!isFinite(t)&&!isFinite(n))return;break;case Ln:if(!isFinite(t))return;break;case Gn:if(!isFinite(n))return}for(se=E.measuredBounds,o=se.width,a=se.height,ge=Math.max(o+D,0),ve=Math.max(a+X,0),O=E.margin,Ge=Ct.allocAt(-O.left,-O.top,ge,ve),Tv(E,Ge,!0),o=Ge.width,a=Ge.height,t=0;t<d;t++)n=r[t],n===E||!n.visible&&n!==Ze||(O=n.margin,ge=O.right+O.left,ve=O.top+O.bottom,se=n.measuredBounds,ge=Math.max(se.width+ge,0),ve=Math.max(se.height+ve,0),D=n.alignment,D.Xb()&&(D=e.defaultAlignment),D.sb()||(D=ir),n=n.alignmentFocus,n.Xb()&&(n=ir),Xe?(Xe=!1,i.h(D.x*o+D.offsetX-(n.x*se.width+n.offsetX)-O.left,D.y*a+D.offsetY-(n.y*se.height+n.offsetY)-O.top,ge,ve)):Rr(i,D.x*o+D.offsetX-(n.x*se.width+n.offsetX)-O.left,D.y*a+D.offsetY-(n.y*se.height+n.offsetY)-O.top,ge,ve));Xe?i.assign(Ke):Te?i.Uu(Ge.x,Ge.y,Ge.width,Ge.height):Rr(i,Ke.x,Ke.y,Ke.width,Ke.height),Ct.free(Ge)},Ng.prototype.arrange=function(e,t,n){var r=t.length,i=e.Pb(),o=i.measuredBounds,a=o.width,d=o.height,E=e.padding;o=E.left,E=E.top;var O=o-n.x,D=E-n.y;for(i.arrange(O,D,a,d),a=Ct.allocAt(0,0,a,d),Tv(i,a,!1),d=0;d<r;d++){var X=t[d];if(X!==i){O=X.measuredBounds;var se=O.width,ge=O.height;D=X.alignment,D.Xb()&&(D=e.defaultAlignment),D.sb()||(D=ir);var ve=X.alignmentFocus;if(ve.Xb()&&(ve=ir),O=null,X instanceof Zt&&X.$e!==""&&(O=X.fb(X.$e),O===X&&(O=null)),O!==null){var Te=O.actualBounds;for(ve=Pe.allocAt(Te.x+(ve.x*Te.width-ve.offsetX),Te.y+(ve.y*Te.height-ve.offsetY)),O=O.panel;O!==X;)O.transform.Ga(ve),O=O.panel;O=D.x*a.width+D.offsetX-ve.x,D=D.y*a.height+D.offsetY-ve.y,Pe.free(ve)}else O=D.x*a.width+D.offsetX-(ve.x*se+ve.offsetX),D=D.y*a.height+D.offsetY-(ve.y*ge+ve.offsetY);O+=a.x-n.x,D+=a.y-n.y,X.visible&&X.arrange(o+O,E+D,se,ge)}}Ct.free(a)};function Tv(e,t,n){var r=null;if(e instanceof Zt&&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 Rg(){this.xa="Base"}Kn(Rg,$o),Rg.prototype.measure=function(e,t,n,r,i,o,a){var d=r.length,E=e.Pb(),O=E.margin,D=t,X=n,se=O.right+O.left,ge=O.top+O.bottom;E.measure(t,n,o,a),O=E.measuredBounds;var ve=0,Te=null;E instanceof ur&&(Te=E,ve=Te.strokeWidth*Te.scale);var Ke=Math.max(O.width+se,0);O=Math.max(O.height+ge,0);var Ge=Nv(E),Xe=Ge.x*Ke+Ge.offsetX;Ge=Ge.y*O+Ge.offsetY;var Ze=Rv(E),tt=Ze.x*Ke+Ze.offsetX;for(Ze=Ze.y*O+Ze.offsetY,isFinite(t)&&(D=Math.max(Math.abs(Xe-tt)-ve,0)),isFinite(n)&&(X=Math.max(Math.abs(Ge-Ze)-ve,0)),ve=un.alloc(),ve.h(0,0),e=hc(e),Ze=0;Ze<d;Ze++)Ge=r[Ze],Ge===E||!Ge.visible&&Ge!==e||(O=Ge.margin,Ke=O.right+O.left,Xe=O.top+O.bottom,Ge.measure(D,X,0,0),O=Ge.measuredBounds,Ke=Math.max(O.width+Ke,0),O=Math.max(O.height+Xe,0),ve.h(Math.max(Ke,ve.width),Math.max(O,ve.height)));if(d===1)i.width=Ke,i.height=O,un.free(ve);else{switch(Ge=Nv(E),Ze=Rv(E),d=r=0,Ze.x!==Ge.x&&Ze.y!==Ge.y&&(r=ve.width/Math.abs(Ze.x-Ge.x),d=ve.height/Math.abs(Ze.y-Ge.y)),un.free(ve),ve=0,Te!==null&&(ve=Te.strokeWidth*Te.scale,Pv(Te)===Rn&&(r=d=Math.max(r,d))),r+=Math.abs(Ge.offsetX)+Math.abs(Ze.offsetX)+ve,d+=Math.abs(Ge.offsetY)+Math.abs(Ze.offsetY)+ve,Te=E.stretch,Te===rr&&(Te=Ra(E,!1)),Te){case jt:a=o=0;break;case Yt:isFinite(t)&&(r=t),isFinite(n)&&(d=n);break;case Ln:isFinite(t)&&(r=t),a=0;break;case Gn:o=0,isFinite(n)&&(d=n)}E.Uj(),E.measure(r,d,o,a),i.width=E.measuredBounds.width+se,i.height=E.measuredBounds.height+ge}},Rg.prototype.arrange=function(e,t){var n=t.length,r=e.Pb(),i=r.measuredBounds,o=Ct.alloc();o.h(0,0,1,1);var a=r.margin,d=a.left;a=a.top;var E=e.padding,O=E.left;E=E.top,r.arrange(O+d,E+a,i.width,i.height);var D=Nv(r),X=Rv(r),se=D.y*i.height+D.offsetY,ge=X.x*i.width+X.offsetX;for(X=X.y*i.height+X.offsetY,o.x=D.x*i.width+D.offsetX,o.y=se,Rr(o,ge,X,0,0),o.x+=d+O,o.y+=a+E,i=0;i<n;i++)d=t[i],d!==r&&(O=d.measuredBounds,a=d.margin,E=Math.max(O.width+a.right+a.left,0),D=Math.max(O.height+a.top+a.bottom,0),se=d.alignment,se.Xb()&&(se=e.defaultAlignment),se.sb()||(se=ir),E=o.width*se.x+se.offsetX-E*se.x+a.left+o.x,a=o.height*se.y+se.offsetY-D*se.y+a.top+o.y,d.visible&&(Ki(o.x,o.y,o.width,o.height,E,a,O.width,O.height)?d.arrange(E,a,O.width,O.height):d.arrange(E,a,O.width,O.height,new Ct(o.x,o.y,o.width,o.height))));Ct.free(o)};function Ig(){this.xa="Base",this.name="Table"}Kn(Ig,$o),Ig.prototype.measure=function(e,t,n,r,i){for(var o=r.length,a=An(),d=An(),E=0;E<o;E++){var O=r[E],D=O instanceof Zt?O:null;if(D!==null&&Rc(D)&&O.visible){d.push(D);for(var X=D.O.s,se=X.length,ge=0;ge<se;ge++){var ve=X[ge];D.type===Zt.TableRow?ve.row=O.row:D.type===Zt.TableColumn&&(ve.column=O.column),a.push(ve)}}else a.push(O)}o=a.length,o===0&&(e.Fb(0),e.Eb(0));for(var Te=[],Ke=0;Ke<o;Ke++){var Ge=a[Ke];Ge.visible&&(Go(Ge,!0),Vu(Ge,!0),Te[Ge.row]||(Te[Ge.row]=[]),Te[Ge.row][Ge.column]||(Te[Ge.row][Ge.column]=[]),Te[Ge.row][Ge.column].push(Ge))}Nn(a);var Xe=An(),Ze=An(),tt=An(),at={count:0},St={count:0},ln=t,_n=n,Sn=e.rowDefs,qt=e.colDefs,Pt=null;o=Sn.length;for(var er=0;er<o;er++)Pt=Sn[er],Pt!==void 0&&(Pt.actual=0);o=qt.length;for(var $n=0;$n<o;$n++)Pt=qt[$n],Pt!==void 0&&(Pt.actual=0);for(var ei=Te.length,zi=0,as=0;as<ei;as++)Te[as]&&(zi=Math.max(zi,Te[as].length));var hs=Math.min(e.topIndex,ei-1),na=Math.min(e.leftIndex,zi-1),ls=0;ei=Te.length;for(var Uc=hc(e),Po=0;Po<ei;Po++)if(Te[Po]){zi=Te[Po].length;var Cu=e.Fb(Po);Cu.actual=0;for(var ra=Cu.oc=0;ra<zi;ra++)if(Te[Po][ra]){var Hc=e.Eb(ra);Xe[ra]===void 0&&(Hc.actual=0,Hc.oc=0,Xe[ra]=!0);for(var yl=Te[Po][ra],Vl=yl.length,tl=0;tl<Vl;tl++){var Ga=yl[tl];if(Ga.visible||Ga===Uc){var vh=1<Ga.rowSpan||1<Ga.columnSpan;vh&&(Po<hs||ra<na||Ze.push(Ga));var Tu=Ga.margin,_d=Tu.right+Tu.left,nl=Tu.top+Tu.bottom,ia=bu(Ga,Cu,Hc,!1),Jp=Ga.desiredSize,Nf=!isNaN(Jp.height),Du=!isNaN(Jp.width)&&Nf;if(vh||ia===jt||Du||Po<hs||ra<na||(at[ra]!==void 0||ia!==Yt&&ia!==Ln||(at[ra]=-1,at.count++),St[Po]!==void 0||ia!==Yt&&ia!==Gn||(St[Po]=-1,St.count++),tt.push(Ga)),Ga.measure(1/0,1/0,0,0),!(Po<hs||ra<na)){var Wa=Ga.measuredBounds,Jh=Math.max(Wa.width+_d,0),rl=Math.max(Wa.height+nl,0);if(Ga.rowSpan===1&&(ia===jt||ia===Ln)){Pt=e.Fb(Po);var yh=Pt.Wc();ls=Math.max(rl-Pt.actual,0),ls+yh>_n&&(ls=Math.max(_n-yh,0));var ev=Pt.oa===0;Pt.oc=Pt.oc+ls,Pt.actual=Pt.oa+ls,_n=Math.max(_n-(ls+(ev?yh:0)),0)}if(Ga.columnSpan===1&&(ia===jt||ia===Gn)){Pt=e.Eb(ra);var Qp=Pt.Wc();ls=Math.max(Jh-Pt.actual,0),ls+Qp>ln&&(ls=Math.max(ln-Qp,0));var Qy=Pt.oa===0;Pt.oc=Pt.oc+ls,Pt.actual=Pt.oa+ls,ln=Math.max(ln-(ls+(Qy?Qp:0)),0)}vh&&Ga.Uj()}}}}}Nn(Xe);var nc=0,pc=0;o=e.columnCount;for(var Rf=0;Rf<o;Rf++){var bh=qt[Rf];bh!==void 0&&(nc+=isNaN(bh.Hc)?bh.oc:bh.Hc,bh.oc!==0&&(nc+=bh.Wc()))}o=e.rowCount;for(var Ad=0;Ad<o;Ad++){var Sh=Sn[Ad];Sh!==void 0&&(pc+=isNaN(Sh.Hc)?Sh.oc:Sh.Hc,Sh.oc!==0&&(pc+=Sh.Wc()))}ln=Math.max(t-nc,0);var rc=_n=Math.max(n-pc,0),zc=ln;o=tt.length;for(var Va=0;Va<o;Va++){var Pu=tt[Va],tv=e.Fb(Pu.row),gc=e.Eb(Pu.column),kd=Pu.measuredBounds,_u=Pu.margin,Qh=_u.right+_u.left,Fu=_u.top+_u.bottom;at[Pu.column]=gc.oc===0&&at[Pu.column]!==void 0?Math.max(kd.width+Qh,at[Pu.column]):null,St[Pu.row]=tv.oc===0&&St[Pu.row]!==void 0?Math.max(kd.height+Fu,St[Pu.row]):null}var If=0,Nd=0,hu;for(hu in St)hu!=="count"&&(If+=St[hu]);for(hu in at)hu!=="count"&&(Nd+=at[hu]);for(var Ts=un.alloc(),qp=0;qp<o;qp++){var Sa=tt[qp];if(Sa.visible||Sa===Uc){var Fo=e.Fb(Sa.row),xa=e.Eb(Sa.column),mc=0;isFinite(xa.width)?mc=xa.width:(isFinite(ln)&&at[Sa.column]!==null?Nd===0?mc=xa.actual+ln:mc=at[Sa.column]/Nd*zc:at[Sa.column]!==null?mc=ln:mc=xa.actual||ln,mc=Math.max(0,mc-xa.Wc()));var Gc=0;switch(isFinite(Fo.height)?Gc=Fo.height:(isFinite(_n)&&St[Sa.row]!==null?If===0?Gc=Fo.actual+_n:Gc=St[Sa.row]/If*rc:St[Sa.row]!==null?Gc=_n:Gc=Fo.actual||_n,Gc=Math.max(0,Gc-Fo.Wc())),Ts.h(Math.max(xa.minimum,Math.min(mc,xa.maximum)),Math.max(Fo.minimum,Math.min(Gc,Fo.maximum))),ia=bu(Sa,Fo,xa,!1),ia){case Ln:Ts.height=Math.max(Ts.height,Fo.actual+_n);break;case Gn:Ts.width=Math.max(Ts.width,xa.actual+ln)}var qh=Sa.margin,qy=qh.right+qh.left,nv=qh.top+qh.bottom;Sa.Uj(),Sa.measure(Ts.width,Ts.height,xa.minimum,Fo.minimum);var Rd=Sa.measuredBounds,ef=Math.max(Rd.width+qy,0),Of=Math.max(Rd.height+nv,0);isFinite(ln)&&(ef=Math.min(ef,Ts.width)),isFinite(_n)&&(Of=Math.min(Of,Ts.height));var Ka=0;Ka=Fo.actual,Fo.actual=Math.max(Fo.actual,Of),Fo.oc=Math.max(Fo.oc,Of),ls=Fo.actual-Ka,_n=Math.max(_n-ls,0),St[Sa.row]===null&&(rc=Math.max(rc-ls,0)),Ka=xa.actual,xa.actual=Math.max(xa.actual,ef),xa.oc=Math.max(xa.oc,ef),ls=xa.actual-Ka,ln=Math.max(ln-ls,0),at[Sa.column]===null&&(zc=Math.max(zc-ls,0))}}Nn(tt);var vc=un.alloc(),Au=An(),Ml=An();if(o=Ze.length,o!==0){for(var xh=0;xh<ei;xh++)if(Te[xh]){zi=Te[xh].length;var Id=e.Fb(xh);Au[xh]=Id.actual;for(var wh=0;wh<zi;wh++)if(Te[xh][wh]){var rv=e.Eb(wh);Ml[wh]=rv.actual}}}for(var Od=0;Od<o;Od++){var Eo=Ze[Od];if(Eo.visible||Eo===Uc){var fu=e.Fb(Eo.row),Kl=e.Eb(Eo.column);switch(Ts.h(Math.max(Kl.minimum,Math.min(t,Kl.maximum)),Math.max(fu.minimum,Math.min(n,fu.maximum))),ia=bu(Eo,fu,Kl,!1),ia){case Yt:Ml[Kl.index]!==0&&(Ts.width=Math.min(Ts.width,Ml[Kl.index])),Au[fu.index]!==0&&(Ts.height=Math.min(Ts.height,Au[fu.index]));break;case Ln:Ml[Kl.index]!==0&&(Ts.width=Math.min(Ts.width,Ml[Kl.index]));break;case Gn:Au[fu.index]!==0&&(Ts.height=Math.min(Ts.height,Au[fu.index]))}isFinite(Kl.width)&&(Ts.width=Kl.width),isFinite(fu.height)&&(Ts.height=fu.height),vc.h(0,0);for(var iv=Kl.minimum,il=fu.minimum,Wc=1;Wc<Eo.rowSpan&&!(Eo.row+Wc>=e.rowCount);Wc++)Pt=e.Fb(Eo.row+Wc),ls=0,ls=ia===Yt||ia===Gn?Math.max(Pt.minimum,Au[Eo.row+Wc]===0?Pt.maximum:Math.min(Au[Eo.row+Wc],Pt.maximum)):Math.max(Pt.minimum,isNaN(Pt.Hc)?Pt.maximum:Math.min(Pt.Hc,Pt.maximum)),vc.height+=ls,il+=Pt.minimum;for(var Yl=1;Yl<Eo.columnSpan&&!(Eo.column+Yl>=e.columnCount);Yl++)Pt=e.Eb(Eo.column+Yl),ls=0,ls=ia===Yt||ia===Ln?Math.max(Pt.minimum,Ml[Eo.column+Yl]===0?Pt.maximum:Math.min(Ml[Eo.column+Yl],Pt.maximum)):Math.max(Pt.minimum,isNaN(Pt.Hc)?Pt.maximum:Math.min(Pt.Hc,Pt.maximum)),vc.width+=ls,iv+=Pt.minimum;Ts.width+=vc.width,Ts.height+=vc.height;var Ld=Eo.margin,Eh=Ld.right+Ld.left,eg=Ld.top+Ld.bottom;Eo.measure(Ts.width,Ts.height,iv,il);for(var Md=Eo.measuredBounds,Bu=Math.max(Md.width+Eh,0),tf=Math.max(Md.height+eg,0),Ch=0,Dd=0;Dd<Eo.rowSpan&&!(Eo.row+Dd>=e.rowCount);Dd++)Pt=e.Fb(Eo.row+Dd),Ch+=Pt.total||0;if(Ch<tf){var Vc=tf-Ch,ic=tf-Ch;if(Eo.spanAllocation!==null)for(var Kc=Eo.spanAllocation,yc=0;yc<Eo.rowSpan&&!(0>=Vc)&&!(Eo.row+yc>=e.rowCount);yc++){Pt=e.Fb(Eo.row+yc);var Yc=Pt.oa||0,nf=Kc(Eo,Pt,ic);Pt.actual=Math.min(Pt.maximum,Yc+nf),Pt.oa!==Yc&&(Vc-=Pt.oa-Yc)}for(;0<Vc;){var ku=Pt.oa||0;if(isNaN(Pt.height)&&Pt.maximum>ku&&(Pt.actual=Math.min(Pt.maximum,ku+Vc),Pt.oa!==ku&&(Vc-=Pt.oa-ku)),Pt.index===0)break;Pt=e.Fb(Pt.index-1)}}for(var Lf=0,$c=0;$c<Eo.columnSpan&&!(Eo.column+$c>=e.columnCount);$c++)Pt=e.Eb(Eo.column+$c),Lf+=Pt.total||0;if(Lf<Bu){var Mf=Bu-Lf,e0=Bu-Lf;if(Eo.spanAllocation!==null)for(var bc=Eo.spanAllocation,rf=0;rf<Eo.columnSpan&&!(0>=Mf)&&!(Eo.column+rf>=e.columnCount);rf++){Pt=e.Eb(Eo.column+rf);var tg=Pt.oa||0,t0=bc(Eo,Pt,e0);Pt.actual=Math.min(Pt.maximum,tg+t0),Pt.oa!==tg&&(Mf-=Pt.oa-tg)}for(;0<Mf;){var ov=Pt.oa||0;if(isNaN(Pt.width)&&Pt.maximum>ov&&(Pt.actual=Math.min(Pt.maximum,ov+Mf),Pt.oa!==ov&&(Mf-=Pt.oa-ov)),Pt.index===0)break;Pt=e.Eb(Pt.index-1)}}}}Nn(Ze),un.free(vc),un.free(Ts),Au!==void 0&&Nn(Au),Ml!==void 0&&Nn(Ml);var Df=0,Pf=0,sv=e.desiredSize,N1=e.maxSize;ia=Ra(e,!0);var ng=pc=nc=0,rg=0;o=e.columnCount;for(var av=0;av<o;av++)qt[av]!==void 0&&(Pt=e.Eb(av),isFinite(Pt.width)?(ng+=Pt.width,ng+=Pt.Wc()):Hg(Pt)===pp?(ng+=Pt.oa,ng+=Pt.Wc()):Pt.oa!==0&&(nc+=Pt.oa,nc+=Pt.Wc()));isFinite(sv.width)?Df=Math.min(sv.width,N1.width):Df=ia!==jt&&isFinite(t)?t:nc,Df=Math.max(Df,e.minSize.width),Df=Math.max(Df-ng,0);for(var pS=nc===0?1:Math.max(Df/nc,1),lv=0;lv<o;lv++)qt[lv]!==void 0&&(Pt=e.Eb(lv),isFinite(Pt.width)||Hg(Pt)===pp||(Pt.actual=Pt.oa*pS),Pt.position=i.width,Pt.oa!==0&&(i.width+=Pt.oa,i.width+=Pt.Wc()));o=e.rowCount;for(var uv=0;uv<o;uv++)Sn[uv]!==void 0&&(Pt=e.Fb(uv),isFinite(Pt.height)?(rg+=Pt.height,rg+=Pt.Wc()):Hg(Pt)===pp?(rg+=Pt.oa,rg+=Pt.Wc()):Pt.oa!==0&&(pc+=Pt.oa,pc+=Pt.Wc()));isFinite(sv.height)?Pf=Math.min(sv.height,N1.height):Pf=ia!==jt&&isFinite(n)?n:pc,Pf=Math.max(Pf,e.minSize.height),Pf=Math.max(Pf-rg,0);for(var gS=pc===0?1:Math.max(Pf/pc,1),cv=0;cv<o;cv++)Sn[cv]!==void 0&&(Pt=e.Fb(cv),isFinite(Pt.height)||Hg(Pt)===pp||(Pt.actual=Pt.oa*gS),Pt.position=i.height,Pt.oa!==0&&(i.height+=Pt.oa,i.height+=Pt.Wc()));o=d.length;for(var n0=0;n0<o;n0++){var ig=d[n0],r0=0,i0=0;ig.type===Zt.TableRow?(r0=i.width,Pt=e.Fb(ig.row),i0=Pt.actual):(Pt=e.Eb(ig.column),r0=Pt.actual,i0=i.height),ig.measuredBounds.h(0,0,r0,i0),Go(ig,!1)}Nn(d),e.inRowsCols=Te},Ig.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 d,E,O=a.length,D=0,X=0;X<O;X++)a[X]&&(D=Math.max(D,a[X].length));E=e.rowDefs,d=e.colDefs;var se=X=0,ge=Math.min(e.topIndex,O-1);if(0<E.length){for(;ge!==O&&(E[ge]===void 0||E[ge].oa===0);)ge++;ge=Math.max(Math.min(ge,O-1),0),X=-E[ge].position}var ve=Math.min(e.leftIndex,D-1);if(0<d.length){for(;ve!==D&&(d[ve]===void 0||d[ve].oa===0);)ve++;ve=Math.max(Math.min(ve,D-1),0),se=-d[ve].position}for(var Te=0,Ke=0;Te!==O&&E[Te]===void 0;)Te++;for(;Ke!==O&&d[Ke]===void 0;)Ke++;D=e.part,e.Fb(Te),e.Eb(Ke);for(var Ge=0;Ge<t.length;Ge++){var Xe=t[Ge];if(Xe instanceof Zt&&Xe.visible&&Rc(Xe)){if(Xe.type===Zt.TableRow){d=e.Fb(Xe.row);var Ze=e.Eb(Ke)}else d=e.Fb(Te),Ze=e.Eb(Xe.column);E=d.position+X+i,d.oa!==0&&(E+=d.Io(Math.max(Te,ge))),d=Ze.position+se+o,Ze.oa!==0&&(d+=Ze.Io(Math.max(Ke,ve))),Ze=Xe.measuredBounds,Xe.Uk(),Xe.actualBounds.ka();var tt=Xe.actualBounds,at=Ct.allocAt(tt.x,tt.y,tt.width,tt.height);tt.x=Xe.type===Zt.TableRow?o:d,tt.y=Xe.type===Zt.TableColumn?i:E,tt.width=Ze.width,tt.height=Ze.height,Xe.actualBounds.freeze(),Vu(Xe,!1),Pr(at,tt)||D===null||(D.oh(),Xe.Pn(D)),Ct.free(at)}}for(Ge=un.alloc(),Xe=0;Xe<O;Xe++)if(a[Xe]){for(D=a[Xe].length,Ze=e.Fb(Xe),E=Ze.position+X+i,Ze.oa!==0&&(E+=Ze.Io(Math.max(Te,ge))),tt=0;tt<D;tt++)if(a[Xe][tt]){at=e.Eb(tt),d=at.position+se+o,at.oa!==0&&(d+=at.Io(Math.max(Ke,ve)));for(var St=a[Xe][tt],ln=St.length,_n=0;_n<ln;_n++){var Sn=St[_n],qt=Sn.measuredBounds;Ge.h(0,0);for(var Pt=1;Pt<Sn.rowSpan&&!(Xe+Pt>=e.rowCount);Pt++){var er=e.Fb(Xe+Pt);er.oa!==0&&(Ge.height+=er.total)}for(Pt=1;Pt<Sn.columnSpan&&!(tt+Pt>=e.columnCount);Pt++)er=e.Eb(tt+Pt),er.oa!==0&&(Ge.width+=er.total);var $n=at.oa+Ge.width,ei=Ze.oa+Ge.height;Pt=d,er=E;var zi=$n,as=ei,hs=d,na=E,ls=$n,Uc=ei;d+$n>n.width&&(ls=Math.max(n.width-d,0)),E+ei>n.height&&(Uc=Math.max(n.height-E,0));var Po=Sn.alignment;if(Po.Xb()){Po=e.defaultAlignment,Po.sb()||(Po=ir);var Cu=Po.x,ra=Po.y,Hc=Po.offsetX;Po=Po.offsetY;var yl=at.alignment,Vl=Ze.alignment;yl.sb()&&(Cu=yl.x,Hc=yl.offsetX),Vl.sb()&&(ra=Vl.y,Po=Vl.offsetY)}else Cu=Po.x,ra=Po.y,Hc=Po.offsetX,Po=Po.offsetY;(isNaN(Cu)||isNaN(ra))&&(ra=Cu=.5,Po=Hc=0),yl=qt.width,Vl=qt.height;var tl=Sn.margin,Ga=tl.left+tl.right,vh=tl.top+tl.bottom,Tu=bu(Sn,Ze,at,!1);!isNaN(Sn.desiredSize.width)||Tu!==Yt&&Tu!==Ln||(yl=Math.max($n-Ga,0)),!isNaN(Sn.desiredSize.height)||Tu!==Yt&&Tu!==Gn||(Vl=Math.max(ei-vh,0)),$n=Sn.maxSize,ei=Sn.minSize,yl=Math.min($n.width,yl),Vl=Math.min($n.height,Vl),yl=Math.max(ei.width,yl),Vl=Math.max(ei.height,Vl),$n=Vl+vh,Pt+=zi*Cu-(yl+Ga)*Cu+Hc+tl.left,er+=as*ra-$n*ra+Po+tl.top,Sn.visible&&(Ki(hs,na,ls,Uc,Pt,er,qt.width,qt.height)?Sn.arrange(Pt,er,yl,Vl):Sn.arrange(Pt,er,yl,Vl,new Ct(hs,na,ls,Uc)))}}}for(un.free(Ge),e=0;e<r;e++)n=t[e],o=n instanceof Zt?n:null,o!==null&&Rc(o)&&(o=n.actualBounds,n.naturalBounds.ka(),n.naturalBounds.h(0,0,o.width,o.height),n.naturalBounds.freeze())}};function Og(){this.xa="Base"}Kn(Og,$o),Og.prototype.measure=function(){},Og.prototype.arrange=function(){};function Lg(){this.xa="Base"}Kn(Lg,$o),Lg.prototype.measure=function(){},Lg.prototype.arrange=function(){};function Mg(){this.xa="Base"}Kn(Mg,$o),Mg.prototype.measure=function(e,t,n,r,i,o,a){1<r.length&&nt("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 d=r.measuredBounds,E=r.margin,O=E.right+E.left;if(E=E.top+E.bottom,isFinite(t)||isFinite(n)){var D=r.scale,X=d.width;d=d.height;var se=Math.max(t-O,0),ge=Math.max(n-E,0),ve=1;e.viewboxStretch===Rn?X!==0&&d!==0&&(ve=Math.min(se/X,ge/d)):X!==0&&d!==0&&(ve=Math.max(se/X,ge/d)),ve===0&&(ve=1e-4),r.Ca*=ve,D!==r.scale&&(Go(r,!0),r.measure(1/0,1/0,o,a))}d=r.measuredBounds,i.width=isFinite(t)?t:Math.max(d.width+O,0),i.height=isFinite(n)?n:Math.max(d.height+E,0)},Mg.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=ir),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 hp(){this.xa="Base"}Kn(hp,$o),hp.prototype.measure=function(){},hp.prototype.arrange=function(){},hp.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,d=o.width,E=o.height,O=Math.ceil(d/i),D=Math.ceil(E/r),X=e.gridOrigin,se=X.x;X=X.y,t.save(),t.beginPath(),t.rect(0,0,d,E),t.clip(),t.Se();for(var ge=[],ve=e.O.s,Te=ve.length,Ke=0;Ke<Te;Ke++){var Ge=ve[Ke],Xe=[];if(ge.push(Xe),Ge.visible){var Ze=Ge.interval;if(!(0>Ze)){Ge=Av(Ge.figure);for(var tt=0;tt<Te;tt++)if(tt!==Ke){var at=ve[tt];at.visible&&Av(at.figure)===Ge&&(at=at.interval,at>Ze&&Xe.push(at))}}}}for(ve=e.O.s,Te=ve.length,Ke=0;Ke<Te;Ke++){var St=ve[Ke];if(St.visible&&(Xe=St.interval||1,Ge=Math.abs(Xe),!(2>i*Ge*n))){if(Ze=St.segmentIndex,(!isFinite(Ze)||isNaN(Ze))&&(Ze=0),0>Ze&&(Ze=Ge-Math.min(-Ze,Ge)),Ze=Math.round(Ze%Ge),Ge=St.opacity,tt=1,Ge!==1){if(Ge===0)continue;tt=t.globalAlpha,t.globalAlpha=tt*Ge}at=ge[Ke];var ln=!1,_n=St.strokeDashArray;if(_n!==null&&(ln=!0,t.js(_n,St.strokeDashOffset)),St.figure==="LineV"&&St.stroke!==null&&0<St.strokeWidth){for(t.lineWidth=St.strokeWidth,So(e,t,St.stroke,!1,!1,o,a),t.beginPath(),_n=St=Math.floor((se-i)/i);_n<=St+O;_n++){var Sn=_n*i+se;0<=Sn&&Sn<=d&&Dg(_n,Xe,Ze,at)&&(t.moveTo(Sn,0),t.lineTo(Sn,E))}t.stroke(),t.Se()}else if(St.figure==="LineH"&&St.stroke!==null&&0<St.strokeWidth){for(t.lineWidth=St.strokeWidth,So(e,t,St.stroke,!1,!1,o,a),t.beginPath(),_n=St=Math.floor((X-r)/r);_n<=St+D;_n++)Sn=_n*r+X,0<=Sn&&Sn<=E&&Dg(_n,Xe,Ze,at)&&(t.moveTo(0,Sn),t.lineTo(d,Sn));t.stroke(),t.Se()}else if(St.figure==="BarV"&&St.fill!==null)for(So(e,t,St.fill,!0,!1,o,a),St=St.width,isNaN(St)&&(St=i),Sn=_n=Math.floor((se-i)/i);Sn<=_n+O;Sn++){var qt=Sn*i+se;0<=qt+St&&qt<=d&&Dg(Sn,Xe,Ze,at)&&t.fillRect(qt,0,St,E)}else if(St.figure==="BarH"&&St.fill!==null)for(So(e,t,St.fill,!0,!1,o,a),St=St.height,isNaN(St)&&(St=r),Sn=_n=Math.floor((X-r)/r);Sn<=_n+D;Sn++)qt=Sn*r+X,0<=qt+St&&qt<=E&&Dg(Sn,Xe,Ze,at)&&t.fillRect(0,qt,d,St);ln&&t.fs(),Ge!==1&&(t.globalAlpha=tt)}}t.restore(),t.Vc(!1)};function Dg(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 Pg(){this.xa="Base"}Kn(Pg,$o),Pg.prototype.measure=function(e,t,n,r,i){var o=r.length;if(e instanceof Zr||e instanceof en){var a=null,d=null;if(e instanceof en&&(a=e),e instanceof Zr&&(d=e,a=d.adornedPart,e.j===null&&(e.j=[])),a instanceof en){var E=a;if(o===0)ai(e.naturalBounds,0,0),e.measuredBounds.h(0,0,0,0);else{var O=e instanceof Zr?null:a.path;t=a.routeBounds,n=e.jg,n.h(0,0,t.width,t.height);var D=E.points,X=a.pointsCount;d!==null?d.Ul(!1):a!==null&&a.Ul(!1),d=t.width;var se=t.height,ge=e.j;if(ge.length=0,O!==null){y0(e,d,se,O);var ve=O.measuredBounds;n.ed(ve),ge.push(ve)}ve=Vn.alloc();for(var Te=Pe.alloc(),Ke=Pe.alloc(),Ge=0;Ge<o;Ge++){var Xe=r[Ge];if(Xe!==O)if(Xe.isPanelMain&&Xe instanceof ur){y0(e,d,se,Xe);var Ze=Xe.measuredBounds;n.ed(Ze),ge.push(Ze)}else if(2>X)Xe.measure(1/0,1/0,0,0),Ze=Xe.measuredBounds,n.ed(Ze),ge.push(Ze);else{var tt=Xe.segmentIndex,at=Xe.segmentFraction,St=Xe.alignmentFocus;St.Mc()&&(St=ir);var ln=Xe.segmentOrientation,_n=Xe.segmentOffset;if(isNaN(tt)){var Sn=E.ua;Ze=An(),Sn.Qu(at,Ze);var qt=Pe.allocAt(Ze[0],Ze[1]);if(qt.add(E.i(0)),Sn.type===Qt.j?qt.offset(-Sn.startX,-Sn.startY):(Sn=Sn.figures.first(),Sn!==null&&qt.offset(-Sn.startX,-Sn.startY)),Sn=Ze[2],ln!==ga){var Pt=E.computeAngle(Xe,ln,Sn);Xe.Kb=Pt}Pt=qt.x-t.x;var er=qt.y-t.y;Pe.free(qt),Nn(Ze)}else if(tt<-X||tt>=X)Ze=Pe.alloc(),E.vg(),E.computeMidPoint(Ze),Sn=E.midAngle,ln!==ga&&(Pt=E.computeAngle(Xe,ln,Sn),Xe.Kb=Pt),Pt=Ze.x-t.x,er=Ze.y-t.y,Pe.free(Ze);else{if(Pt=0,0<=tt?(er=D.M(tt),Ze=tt<X-1?D.M(tt+1):er):(Pt=X+tt,er=D.M(Pt),Ze=0<Pt?D.M(Pt-1):er),er.Xa(Ze)){0<=tt?(Sn=0<tt?D.M(tt-1):er,Pt=tt<X-2?D.M(tt+2):Ze):(Sn=Pt<X-1?D.M(Pt+1):er,Pt=1<Pt?D.M(Pt-2):Ze),qt=Sn.Bf(er);var $n=Ze.Bf(Pt);Sn=qt>$n+10?0<=tt?Sn.ab(er):er.ab(Sn):$n>qt+10?0<=tt?Ze.ab(Pt):Pt.ab(Ze):0<=tt?Sn.ab(Pt):Pt.ab(Sn)}else Sn=0<=tt?er.ab(Ze):Ze.ab(er);ln!==ga&&(Pt=E.computeAngle(Xe,ln,Sn),Xe.Kb=Pt),Pt=er.x+(Ze.x-er.x)*at-t.x,er=er.y+(Ze.y-er.y)*at-t.y}Xe.measure(1/0,1/0,0,0),Ze=Xe.measuredBounds,qt=Xe.naturalBounds;var ei=0;Xe instanceof ur&&(ei=Xe.strokeWidth),$n=qt.width+ei;var zi=qt.height+ei;ve.reset(),ve.translate(-Ze.x,-Ze.y),ve.scale(Xe.scale,Xe.scale),ve.rotate(ln===ga?Xe.angle:Sn,$n/2,zi/2),ln!==Cp&&ln!==_p||ve.rotate(90,$n/2,zi/2),ln!==Tp&&ln!==Ap||ve.rotate(-90,$n/2,zi/2),ln===fm&&(45<Sn&&135>Sn||225<Sn&&315>Sn)&&ve.rotate(-Sn,$n/2,zi/2),qt=new Ct(0,0,$n,zi),Te.xi(qt,St),ve.Ga(Te),St=-Te.x+ei/2*Xe.scale,Xe=-Te.y+ei/2*Xe.scale,Ke.assign(_n),ei=isNaN(_n.x);var as=isNaN(_n.y);if(ei||as){$n=$n/2+3,zi=zi/2+3;var hs=45<=Sn&&135>=Sn,na=225<=Sn&&315>=Sn;ln===ga&&(hs||na)?(Ke.x=as?$n:_n.y,Ke.y=ei?zi:_n.x,hs?0<=tt||isNaN(tt)&&.5>at||!ei||(Ke.y=-zi):na&&((0<=tt||isNaN(tt)&&.5>at)&&ei&&(Ke.y=-zi),as&&(Ke.x=-$n))):(ei&&(Ke.x=0<=tt||isNaN(tt)&&.5>at?$n:-$n),as&&(Ke.y=-zi),Ke.rotate(Sn))}else Ke.rotate(Sn);Pt+=Ke.x,er+=Ke.y,qt.set(Ze),qt.h(Pt+St,er+Xe,Ze.width,Ze.height),ge.push(qt),n.ed(qt)}}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),ai(i,n.width||0,n.height||0),Vn.free(ve),Pe.free(Te),Pe.free(Ke)}}}},Pg.prototype.arrange=function(e,t){var n=t.length;if(e instanceof Zr||e instanceof en){var r=e,i=null;e instanceof Zr&&(i=e,r=i.adornedPart);var o=e instanceof Zr?null:r.path,a=e.j;if(a.length!==0){var d=0;if(o!==null&&d<a.length){var E=a[d];d++,o.arrange(E.x-e.jg.x,E.y-e.jg.y,E.width,E.height)}for(E=0;E<n;E++){var O=t[E];if(O!==o&&d<a.length){var D=a[d];d++,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 en)for(o=e.labelNodes;o.next();){var X=e;a=o.value,d=a.segmentIndex,E=a.segmentFraction;var se=a.alignmentFocus;if(O=a.segmentOrientation,D=a.segmentOffset,isNaN(d)){var ge=X.ua,ve=An();ge.Qu(E,ve);var Te=Pe.allocAt(ve[0],ve[1]);Te.add(X.i(0)),ge.type===Qt.j||(ge=ge.figures.first()),Te.offset(-ge.startX,-ge.startY),ge=ve[2],O!==ga&&(X=X.computeAngle(a,O,ge),a.angle=X),X=Te.x;var Ke=Te.y;Pe.free(Te),Nn(ve)}else if(d<-n||d>=n)ve=Pe.alloc(),ge=X,Ke=ve,ge.vg(),ge.computeMidPoint(Ke),ge=X.midAngle,O!==ga&&(X=X.computeAngle(a,O,ge),a.angle=X),X=ve.x,Ke=ve.y,Pe.free(ve);else{if(Te=0,0<=d?(ve=t.s[d],Ke=d<n-1?t.s[d+1]:ve):(Te=n+d,ve=t.s[Te],Ke=0<Te?t.s[Te-1]:ve),ve.Xa(Ke)){0<=d?(ge=0<d?t.s[d-1]:ve,Te=d<n-2?t.s[d+2]:Ke):(ge=Te<n-1?t.s[Te+1]:ve,Te=1<Te?t.s[Te-2]:Ke);var Ge=ge.Bf(ve),Xe=Ke.Bf(Te);ge=Ge>Xe+10?0<=d?ge.ab(ve):ve.ab(ge):Xe>Ge+10?0<=d?Ke.ab(Te):Te.ab(Ke):0<=d?ge.ab(Te):Te.ab(ge)}else ge=0<=d?ve.ab(Ke):Ke.ab(ve);O!==ga&&(X=X.computeAngle(a,O,ge),a.angle=X),X=ve.x+(Ke.x-ve.x)*E,Ke=ve.y+(Ke.y-ve.y)*E}if(se.ys())a.location=new Pe(X,Ke);else{se.Mc()&&(se=ir),ve=Vn.alloc(),ve.reset(),ve.scale(a.scale,a.scale),ve.rotate(a.angle,0,0);var Ze=a.naturalBounds;Te=Ct.allocAt(0,0,Ze.width,Ze.height),Ge=Pe.alloc(),Ge.xi(Te,se),ve.Ga(Ge),se=-Ge.x,Xe=-Ge.y;var tt=Ze.width,at=Ze.height;Ze=Pe.alloc(),Ze.assign(D);var St=isNaN(D.x),ln=isNaN(D.y);if(St||ln){tt=tt/2+3,at=at/2+3;var _n=45<=ge&&135>=ge,Sn=225<=ge&&315>=ge;O===ga&&(_n||Sn)?(Ze.x=ln?tt:D.y,Ze.y=St?at:D.x,_n?0<=d||isNaN(d)&&.5>E||!St||(Ze.y=-at):Sn&&((0<=d||isNaN(d)&&.5>E)&&St&&(Ze.y=-at),ln&&(Ze.x=-tt))):(St&&(Ze.x=0<=d||isNaN(d)&&.5>E?tt:-tt),ln&&(Ze.y=-at),Ze.rotate(ge))}else Ze.rotate(ge);X+=Ze.x,Ke+=Ze.y,ve.pp(Te),se+=Te.x,Xe+=Te.y,d=Pe.allocAt(X+se,Ke+Xe),a.move(d),Pe.free(d),Pe.free(Ze),Pe.free(Ge),Ct.free(Te),Vn.free(ve)}}i!==null?i.Ul(!1):r.Ul(!1),r=Y0(e),e.location.h(e.position.x+r.x,e.position.y+r.y),Pe.free(r)}};function y0(e,t,n,r){if(pl(r)!==!1){var i=r.strokeWidth;i===0&&e instanceof Zr&&e.type===Zt.Link&&e.adornedObject instanceof ur&&(i=e.adornedObject.strokeWidth),i*=r.Ca,e instanceof en&&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 Zr&&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),Go(r,!1)}}function fp(){this.xa="Base"}Kn(fp,$o),fp.prototype.measure=function(e,t,n,r,i,o,a){var d=e.Pb();e.graduatedBounds=[];var E=d.margin,O=E.right+E.left,D=E.top+E.bottom;d.measure(t,n,o,a);var X=d.measuredBounds,se=new Ct(-E.left,-E.top,Math.max(X.width+O,0),Math.max(X.height+D,0));e.graduatedBounds.push(se),i.assign(se);for(var ge=d.geometry,ve=d.strokeWidth,Te=ge.flattenedSegments,Ke=ge.flattenedLengths,Ge=ge.flattenedTotalLength,Xe=Te.length,Ze=0,tt=0,at=An(),St=0;St<Xe;St++){var ln=Te[St],_n=[];tt=Ze=0;for(var Sn=ln.length,qt=0;qt<Sn;qt+=2){var Pt=ln[qt],er=ln[qt+1];if(qt!==0){var $n=180*Math.atan2(er-tt,Pt-Ze)/Math.PI;0>$n&&($n+=360),_n.push($n)}Ze=Pt,tt=er}at.push(_n)}if(e.graduatedIntervals===null){for(var ei=[],zi=e.O.s,as=zi.length,hs=0;hs<as;hs++){var na=zi[hs],ls=[];if(ei.push(ls),na.visible){var Uc=na.interval;if(!(0>Uc)){for(var Po=0;Po<as;Po++)if(Po!==hs){var Cu=zi[Po];if(Cu.visible&&na.constructor===Cu.constructor){var ra=Cu.interval;ra>Uc&&ls.push(ra)}}}}}e.graduatedIntervals=ei}var Hc=e.graduatedIntervals,yl=e.O.s,Vl=yl.length,tl=0,Ga=0,vh=Ge;e.graduatedMarks=[];for(var Tu,_d=0;_d<Vl;_d++){var nl=yl[_d];if(Tu=[],nl.visible&&nl!==d){var ia=Math.abs(nl.interval),Jp=e.graduatedTickUnit;if(!(2>Jp*ia*Ge/e.graduatedRange&&nl.graduatedSkip===null)){var Nf=Ke[0][0],Du=0,Wa=0;Ga=Ge*nl.graduatedStart-1e-4,vh=Ge*nl.graduatedEnd+1e-4;var Jh=Jp*ia,rl=e.graduatedTickBase;if(rl<e.graduatedMin){var yh=(e.graduatedMin-rl)/Jh;yh=yh%1===0?yh:Math.floor(yh+1),rl+=yh*Jh}else rl>e.graduatedMin+Jh&&(rl-=Math.floor((rl-e.graduatedMin)/Jh)*Jh);for(var ev=Hc[_d],Qp=rl,Qy=1e-6*e.graduatedMax,nc=1;rl<=e.graduatedMax+Qy;nc++){e:{for(var pc=ev.length,Rf=0;Rf<pc;Rf++){var bh=(rl-e.graduatedTickBase)%(ev[Rf]*e.graduatedTickUnit),Ad=1e-6*e.graduatedTickUnit;if(bh<Ad&&bh>-Ad){var Sh=!1;break e}}Sh=!0}if(Sh&&(rl>e.graduatedMax&&(rl=e.graduatedMax),nl.graduatedSkip===null||nl instanceof Wi&&!nl.graduatedSkip(rl,nl)||nl instanceof ur&&!nl.graduatedSkip(rl,nl))&&(tl=(rl-e.graduatedMin)*Ge/e.graduatedRange,tl>Ge&&(tl=Ge),Ga<=tl&&tl<=vh)){for(var rc=at[Du][Wa],zc=Ke[Du][Wa];Du<Ke.length;){for(;tl>Nf&&Wa<Ke[Du].length-1;)Wa++,rc=at[Du][Wa],zc=Ke[Du][Wa],Nf+=zc;if(tl<=Nf)break;Du++,Wa=0,rc=at[Du][Wa],zc=Ke[Du][Wa],Nf+=zc}var Va=Te[Du],Pu=Va[2*Wa],tv=Va[2*Wa+1],gc=(tl-(Nf-zc))/zc,kd=new Pe(Pu+(Va[2*Wa+2]-Pu)*gc+ve/2-ge.bounds.x,tv+(Va[2*Wa+3]-tv)*gc+ve/2-ge.bounds.y);kd.scale(d.scale,d.scale);e:{var _u=rc,Qh=at[Du];if(!(.5005>gc&&.4995<gc)){var Fu=_u;if(.5>gc?0<Wa?Fu=Qh[Wa-1]:lt.$(Va[0],Va[Va.length-2])&&lt.$(Va[1],Va[Va.length-1])&&(Fu=Qh[Qh.length-1]):.5<gc&&(Wa+1<Qh.length?Fu=Qh[Wa+1]:lt.$(Va[0],Va[Va.length-2])&&lt.$(Va[1],Va[Va.length-1])&&(Fu=Qh[0])),_u!==Fu){var If=Math.abs(_u-Fu);if(180<If&&(_u<Fu?_u+=360:Fu+=360,If=Math.abs(_u-Fu)),5e-4>gc||.9995<gc){rc=(_u+Fu)/2%360;break e}if(10>If){var Nd=1-Math.abs(.5-gc);rc=(_u*Nd+Fu*(1-Nd))%360;break e}}}rc=_u}if(nl instanceof Wi){var hu="";nl.graduatedFunction!==null?(hu=nl.graduatedFunction(rl,nl),hu=hu!=null?hu.toString():""):hu=(+rl.toFixed(2)).toString(),hu!==""&&Tu.push({$l:kd,angle:rc,text:hu})}else Tu.push({$l:kd,angle:rc})}rl=Qp+nc*Jh}}}e.graduatedMarks.push(Tu)}Nn(at);var Ts=e.graduatedMarks;if(Ts!==null)for(var qp=r.length,Sa=0;Sa<qp;Sa++){var Fo=r[Sa],xa=Ts[Sa];if(Fo.visible&&Fo!==d&&xa.length!==0){if(Fo instanceof ur){var mc=e,Gc=i,qh=Fo.alignmentFocus;qh.Mc()&&(qh=Xr);var qy=Fo.angle;Fo.Kb=0,Fo.measure(1/0,1/0,0,0),Fo.Kb=qy;var nv=Fo.measuredBounds,Rd=nv.width,ef=nv.height,Of=Ct.allocAt(0,0,Rd,ef),Ka=Pe.alloc();Ka.xi(Of,qh),Ct.free(Of);for(var vc=-Ka.x,Au=-Ka.y,Ml=new Ct,xh=xa.length,Id=0;Id<xh;Id++)for(var wh=xa[Id],rv=wh.$l.x,Od=wh.$l.y,Eo=wh.angle,fu=0;4>fu;fu++){switch(fu){case 0:Ka.h(vc,Au);break;case 1:Ka.h(vc+Rd,Au);break;case 2:Ka.h(vc,Au+ef);break;case 3:Ka.h(vc+Rd,Au+ef)}Ka.rotate(Eo+Fo.angle),Ka.offset(rv,Od),Id===0&&fu===0?Ml.h(Ka.x,Ka.y,0,0):Ml.Ye(Ka),Ka.offset(-rv,-Od),Ka.rotate(-Eo-Fo.angle)}Pe.free(Ka),mc.graduatedBounds!==null&&mc.graduatedBounds.push(Ml),Rr(Gc,Ml.x,Ml.y,Ml.width,Ml.height)}else if(Fo instanceof Wi){var Kl=e,iv=i;Kl.temporaryTextBlock===null&&(Kl.temporaryTextBlock=new Wi);var il=Kl.temporaryTextBlock;L0(il,Fo);var Wc=Fo.alignmentFocus;Wc.Mc()&&(Wc=Xr);for(var Yl=Fo.segmentOrientation,Ld=Fo.segmentOffset,Eh=new Ct,eg=0,Md=0,Bu=0,tf=0,Ch=0,Dd=xa.length,Vc=0;Vc<Dd;Vc++){var ic=xa[Vc];eg=ic.$l.x,Md=ic.$l.y,Bu=ic.angle,Ch=tf=Fo.angle,Yl!==ga&&(Ch=Yl===Ep||Yl===hm?Bu+Fo.angle:Bu,tf=en.computeAngle(Yl,Ch)),il.Kb=tf,il.text=ic.text||"",il.measure(1/0,1/0,0,0);var Kc=il.measuredBounds,yc=il.naturalBounds,Yc=yc.width,nf=yc.height,ku=Vn.alloc();ku.reset(),ku.translate(-Kc.x,-Kc.y),ku.scale(il.scale,il.scale),ku.rotate(Ch,Yc/2,nf/2),Yl!==Cp&&Yl!==_p||ku.rotate(90,Yc/2,nf/2),Yl!==Tp&&Yl!==Ap||ku.rotate(-90,Yc/2,nf/2),Yl===fm&&(45<Bu&&135>Bu||225<Bu&&315>Bu)&&ku.rotate(-Bu,Yc/2,nf/2);var Lf=Ct.allocAt(0,0,Yc,nf),$c=Pe.alloc();$c.xi(Lf,Wc),ku.Ga($c);var Mf=-$c.x,e0=-$c.y,bc=Pe.alloc();bc.assign(Ld),isNaN(bc.x)&&(bc.x=Yc/2+3),isNaN(bc.y)&&(bc.y=-(nf/2+3)),bc.rotate(Bu),eg+=bc.x+Mf,Md+=bc.y+e0;var rf=new Ct(eg,Md,Kc.width,Kc.height),tg=new Ct(Kc.x,Kc.y,Kc.width,Kc.height),t0=new Ct(yc.x,yc.y,yc.width,yc.height);ic.Sz=tf,ic.lineCount=il.lineCount,ic.lines=[il.Cb,il.Ih,il.df,il.Le,il.Qc,il.Qb,il.ze],ic.actualBounds=rf,ic.measuredBounds=tg,ic.naturalBounds=t0,Vc===0?Eh.assign(rf):Eh.ed(rf),Pe.free(bc),Pe.free($c),Ct.free(Lf),Vn.free(ku)}Kl.graduatedBounds!==null&&Kl.graduatedBounds.push(Eh),Rr(iv,Eh.x,Eh.y,Eh.width,Eh.height)}Go(Fo,!1)}}},fp.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,d=o[a];a++,r!==null&&r.arrange(d.x-n.x,d.y-n.y,d.width,d.height);for(var E=t.length,O=0;O<E;O++){var D=t[O];d=i[O],D.visible&&D!==r&&d.length!==0&&(d=o[a],a++,D.arrange(d.x-n.x,d.y-n.y,d.width,d.height))}e.graduatedBounds=null}}},fp.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 Qa,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 d=o.actualBounds,E=e.O.s,O=e.graduatedMarks,D=E.length,X=0;X<D;X++){var se=E[X],ge=O[X],ve=ge.length;if(se.visible&&se!==o&&ge.length!==0){if(se instanceof ur){if(!(2>e.graduatedTickUnit*se.interval*o.geometry.flattenedTotalLength/e.graduatedRange*a&&se.graduatedSkip===null)){var Te=se.measuredBounds,Ke=se.strokeWidth*se.scale,Ge=se.alignmentFocus;Ge.Mc()&&(Ge=Xr);for(var Xe=0;Xe<ve;Xe++){var Ze=ge[Xe].$l,tt=ge[Xe].angle,at=Ge,St=se.Ab;St.reset(),St.translate(Ze.x+d.x,Ze.y+d.y),St.rotate(tt+se.angle,0,0),St.translate(-Te.width*at.x+at.offsetX+Ke/2,-Te.height*at.y+at.offsetY+Ke/2),St.scale(se.scale,se.scale),Ul(se,!1),se.wh.set(se.Ab),se.Kk=se.scale,Al(se,!1),se.gc(t,n),i&&(e.svg.appendChild(se.svg),se.svg=null),se.Ab.reset()}}}else if(se instanceof Wi)for(e.temporaryTextBlock===null&&(e.temporaryTextBlock=new Wi),Te=e.temporaryTextBlock,L0(Te,se),Ke=0;Ke<ve;Ke++)Ge=ge[Ke],Ge.actualBounds&&Ge.measuredBounds&&Ge.naturalBounds&&(Te.ec=Ge.text||"",Te.Kb=Ge.Sz||0,Te.Gc=Ge.lineCount||0,Xe=Ge.lines,Xe!==void 0&&(Te.Cb=Xe[0],Te.Ih=Xe[1],Te.df=Xe[2],Te.Le=Xe[3],Te.Qc=Xe[4],Te.Qb=Xe[5],Te.ze=Xe[6]),Ge.naturalBounds&&(Te.dc=Ge.naturalBounds),Ge.actualBounds&&(Xe=Ge.actualBounds,Te.arrange(Xe.x,Xe.y,Xe.width,Xe.height)),Xe=Ge.actualBounds,Te.arrange(Xe.x,Xe.y,Xe.width,Xe.height),Ze=Ge.measuredBounds,Ge=Ge.naturalBounds,tt=Te.Ab,tt.reset(),tt.translate(Xe.x+d.x,Xe.y+d.y),tt.translate(-Ze.x,-Ze.y),Te.no(tt,Ge.x,Ge.y,Ge.width,Ge.height),Ul(Te,!1),Te.wh.set(Te.Ab),Te.Kk=Te.scale,Al(Te,!1),Te.Ng=se.part,Te.Me=se.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 Zt(e,t){if(ht.call(this),this.na=null,e===void 0)this.na=Zt.Position;else if(typeof e=="string"){var n=ou.I(e);n!==null&&(this.na=n)}else e instanceof $o?this.na=e:e&&(this.na=Zt.Position,t=e);this.na===null&&nt("Panel type not specified or PanelLayout not loaded: "+e),this.l=this.l|4194304|(this.na===Zt.Grid?1048576:0),this.O=new Gt,this.yb=Ko,this.Tm=Bo,this.Uf=rr,this.$g=null,this.$e="",this.jg=new Ct(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Rn,this.jn=Zi,this.kn=an,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,t&&Object.assign(this,t)}Kn(Zt,ht),Zt.prototype.cloneProtected=function(e){ht.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},Zt.prototype.Af=function(e){ht.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},Zt.prototype.copy=function(){var e=ht.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 fn&&(o.Te=!0);var d=e.diagram;d!==null&&d.undoManager.isUndoingRedoing||o.cb(uo,"elements",e,null,i,null,a)}}return e}return null},ye=Zt.prototype,ye.toString=function(){return"Panel("+this.type.name+")#"+br(this)},ye.Pn=function(e){ht.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===Zt.Grid)e.yc(),this.na.gc(this,e,t);else if(this.na===Zt.Graduated)e.yc(),this.na.gc(this,e,t);else{if(this.na===Zt.Table)if(e.yc(),e instanceof Qa){var n=e.yd;e.yd=Eg(e,"gojs-ts"),_v(this,e),e.nh.pop(),e.yd=n}else _v(this,e);(n=this.isClipping&&this.na===Zt.Spot)&&e.save();for(var r=this.Pb(),i=this.O.s,o=i.length,a=0;a<o;a++){var d=i[a];n&&d===r&&(e.clipInsteadOfFill=!0),d.gc(e,t),n&&d===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&&Fg(e,t,!0,n,!0),r!==null&&Fg(e,t,!1,r,!0),n!==null&&b0(e,t,!0,n),r!==null&&b0(e,t,!1,r),n!==null&&Fg(e,t,!0,n,!1),r!==null&&Fg(e,t,!1,r,!1)}function b0(e,t,n,r){for(var i=r.length,o=e.actualBounds,a=e.naturalBounds,d=!0,E=0;E<i;E++){var O=r[E];if(O!==void 0&&O.actual!==0)if(d)d=!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){So(e,t,X,!1,!1,a,o),X=!1;var se=O.separatorDashArray;se===null&&(se=n?e.defaultRowSeparatorDashArray:e.defaultColumnSeparatorDashArray),se!==null&&(X=!0,t.js(se,0)),t.beginPath(),se=O.position+D,n?se>a.height&&(D-=se-a.height):se>a.width&&(D-=se-a.width),O=O.position+D/2,t.lineWidth=D,D=e.yb,n?(O+=D.top,se=a.width-D.right,t.moveTo(D.left,O),t.lineTo(se,O)):(O+=D.left,se=a.height-D.bottom,t.moveTo(O,D.top),t.lineTo(O,se)),t.stroke(),t.Se(),X&&t.fs()}}}}function Fg(e,t,n,r,i){for(var o=r.length,a=e.actualBounds,d=e.naturalBounds,E=S0(e,!0),O=S0(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 se=n?a.height:a.width;if(!(X.position>se)){var ge=X.Wc(),ve=X.separatorStrokeWidth;isNaN(ve)&&(ve=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var Te=X.separatorStroke;Te===null&&(Te=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),(Te===null||X.index===(n?E:O))&&(ve=0),ge-=ve,ve=X.position+ve,ge+=X.actual,ve+ge>se&&(ge=se-ve),0>=ge||(se=e.yb,So(e,t,X.background,!0,!1,d,a),n?t.fillRect(se.left,ve+se.top,a.width-(se.left+se.right),ge):t.fillRect(ve+se.left,se.top,ge,a.height-(se.top+se.bottom)))}}}}function S0(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(!ht.prototype.kk.call(this,e,t,n))return!1;if(this.type===Zt.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===Zt.Grid||this.na===Zt.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 d=t[a].actualBounds;i=a===0?d.x:Math.min(d.x,i),o=a===0?d.y:Math.min(d.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 ht.prototype.$o.call(this,e,t,n,r)},ye.Sj=function(e,t,n,r,i){var o=this.se(),a=this.transform,d=1/(a.m11*a.m22-a.m12*a.m21),E=a.m22*d,O=-a.m12*d,D=-a.m21*d,X=a.m11*d,se=d*(a.m21*a.dy-a.m22*a.dx),ge=d*(a.m12*a.dx-a.m11*a.dy);if(this.areaBackground!==null)return a=this.actualBounds,lt.Ff(a.left,a.top,a.right,a.bottom,e,t,n,r,i);if(this.background!==null)return o=e*E+t*D+se,d=e*O+t*X+ge,e=n*E+r*D+se,E=n*O+r*X+ge,i.h(0,0),n=this.naturalBounds,o=lt.Ff(0,0,n.width,n.height,o,d,e,E,i),i.transform(a),o;o||(E=1,D=O=0,X=1,ge=se=0),d=e*E+t*D+se,e=e*O+t*X+ge,E=n*E+r*D+se,n=n*O+r*X+ge,i.h(E,n),r=(E-d)*(E-d)+(n-e)*(n-e),O=!1,X=this.O.s,ge=X.length,D=Pe.alloc(),se=null,t=1/0;var ve=null,Te=this.isClipping&&this.na===Zt.Spot;Te&&(ve=Pe.alloc(),se=this.Pb(),(O=se.Sj(d,e,E,n,ve))&&(t=(d-ve.x)*(d-ve.x)+(e-ve.y)*(e-ve.y)));for(var Ke=0;Ke<ge;Ke++){var Ge=X[Ke];Ge.visible&&Ge!==se&&Ge.Sj(d,e,E,n,D)&&(O=!0,Ge=(d-D.x)*(d-D.x)+(e-D.y)*(e-D.y),Ge<r&&(r=Ge,i.set(D)))}return Te&&(t>r&&i.set(ve),Pe.free(ve)),Pe.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();ht.prototype.Gj.call(this)},ye.v=function(e){if(!pl(this)){ht.prototype.v.call(this,e),e=null,(this.na===Zt.Auto||this.na===Zt.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=Ra(i,!1);(i instanceof pa||i instanceof Zt||i instanceof Wi||o!==jt)&&i.v(!0)}}}},ye.Uj=function(){if(!pl(this)){Go(this,!0),Vu(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)){Ul(this,!0),Al(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()}},ye.Wu=function(){Al(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 d=this.maxSize;isNaN(o.width)||(e=Math.min(o.width,d.width)),isNaN(o.height)||(t=Math.min(o.height,d.height)),e=Math.max(n,e),t=Math.max(r,t);var E=this.yb;e=Math.max(e-E.left-E.right,0),t=Math.max(t-E.top-E.bottom,0);var O=this.O.s;O.length!==0&&this.na.measure(this,e,t,O,i,n,r),e=i.width+E.left+E.right,E=i.height+E.top+E.bottom,isFinite(o.width)&&(e=o.width),isFinite(o.height)&&(E=o.height),e=Math.min(d.width,e),E=Math.min(d.height,E),e=Math.max(a.width,e),E=Math.max(a.height,E),e=Math.max(n,e),E=Math.max(r,E),ai(i,e,E),ai(this.naturalBounds,e,E),this.Ge(0,0,e,E)},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 hc(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=Ra(this,!0);var o=this.measuredBounds;t=o.width,o=o.height;var a=this.Kg,d=a.left+a.right;switch(a=a.top+a.bottom,t===n&&o===r&&(e=jt),e){case jt:(t>n||o>r)&&(this.v(),this.measure(t>n?n:t,o>r?r:o,0,0));break;case Yt:this.v(!0),this.measure(n+d,r+a,0,0);break;case Ln:this.v(!0),this.measure(n+d,o+a,0,0);break;case Gn:this.v(!0),this.measure(t+d,r+a,0,0)}}this.na.arrange(this,i,this.jg)}},ye.gh=function(e){var t=this.naturalBounds,n=hc(this);if(Ki(0,0,t.width,t.height,e.x,e.y)){t=this.O.s;for(var r=t.length,i=Pe.allocAt(0,0);r--;){var o=t[r];if((o.visible||o===n)&&(rn(i.set(e),o.transform),o.ca(i)))return Pe.free(i),!0}return Pe.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 Zt){e=e.O.s;for(var n=e.length,r=0;r<n;r++)this.qm(e[r],t)}};function Gh(e,t){x0(e,e,t)}function x0(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 Zt&&x0(e,o,n)}}function M1(e,t){w0(e,e,t)}function w0(e,t,n){if(n(t),t instanceof Zt){t=t.O.s;for(var r=t.length,i=0;i<r;i++)w0(e,t[i],n)}}ye.Nl=function(e){return E0(this,this,e)};function E0(e,t,n){if(n(t))return t;if(t instanceof Zt){t=t.O.s;for(var r=t.length,i=0;i<r;i++){var o=E0(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=dp(this));for(var r=0;r<n;r++){var i=t[r];if(i instanceof Zt){var o=i.fb(e);if(o!==null)return o}if(i.name===e)return i}return null};function C0(e){e=e.O.s;for(var t=e.length,n=0,r=0;r<t;r++){var i=e[r];i instanceof Zt?n=Math.max(n,C0(i)):i instanceof ur&&(n=Math.max(n,i.ig/2*i.strokeMiterLimit*i.Df()))}return n}ye.se=function(){return!(this.type===Zt.TableRow||this.type===Zt.TableColumn)};function Rc(e){return e.type===Zt.TableRow||e.type===Zt.TableColumn}ye.ic=function(e,t,n){if(this.pickable===!1||(t===void 0&&(t=null),n===void 0&&(n=null),fa(this)))return null;var r=this.naturalBounds,i=1/this.Df(),o=this.se(),a=o?e:rn(Pe.allocAt(e.x,e.y),this.transform),d=this.diagram,E=10,O=5;if(d!==null&&(E=d.Ql("extraTouchArea"),O=E/2),Ki(-(O*i),-(O*i),r.width+E*i,r.height+E*i,a.x,a.y)){if(!this.isAtomic){i=this.O.s;var D=i.length;if(d=Pe.alloc(),O=(E=this.isClipping&&this.na===Zt.Spot)?this.Pb():null,E&&(O.se()?rn(d.set(e),O.transform):d.set(e),!O.ca(d)))return Pe.free(d),o||Pe.free(a),null;for(var X=hc(this);D--;){var se=i[D];if((se.visible||se===X)&&(se.se()?rn(d.set(e),se.transform):d.set(e),!E||se!==O)){var ge=null;if(se instanceof Zt?ge=se.ic(d,t,n):se.pickable===!0&&se.ca(d)&&(ge=se),ge!==null&&(t!==null&&(ge=t(ge)),ge!==null&&(n===null||n(ge))))return Pe.free(d),o||Pe.free(a),ge}}Pe.free(d)}return this.background===null&&this.areaBackground===null?(o||Pe.free(a),null):(e=Ki(0,0,r.width,r.height,a.x,a.y)?this:null,o||Pe.free(a),e)}return o||Pe.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:rn(Pe.allocAt(e.x,e.y),this.transform);if(i=Ki(0,0,i.width,i.height,a.x,a.y),Rc(this)||i){if(!this.isAtomic){for(var d=this.O.s,E=d.length,O=Pe.alloc(),D=hc(this);E--;){var X=d[E];if(X.visible||X===D){X.se()?rn(O.set(e),X.transform):O.set(e);var se=X;X=X instanceof Zt?X:null,(X!==null?X.ji(O,t,n,r):se.ca(O))&&se.pickable!==!1&&(t!==null&&(se=t(se)),se===null||n!==null&&!n(se)||r.add(se))}}Pe.free(O)}return o||Pe.free(a),i&&(this.background!==null||this.areaBackground!==null)}return o||Pe.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=Vn.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return kv(this,t,n,i),o===void 0&&Vn.free(a),!0;if(this.Yc(e,a)){if(!this.isAtomic)for(var d=hc(this),E=this.O.s,O=E.length;O--;){var D=E[O];if(D.visible||D===d){var X=D.actualBounds,se=this.naturalBounds;X.x>se.width||X.y>se.height||0>X.x+X.width||0>X.y+X.height||(X=D,D=D instanceof Zt?D:null,se=Vn.alloc(),se.set(a),(D!==null?D.Cf(e,t,n,r,i,se):ss(X,e,r,se))&&(t!==null&&(X=t(X)),X===null||n!==null&&!n(X)||i.add(X)),Vn.free(se))}}return o===void 0&&Vn.free(a),r}return o===void 0&&Vn.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 d=a.actualBounds,E=e.naturalBounds;d.x>E.width||d.y>E.height||0>d.x+d.width||0>d.y+d.height||(a instanceof Zt&&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,d=this.se(),E=d?e:rn(Pe.allocAt(e.x,e.y),this.transform),O=d?t:rn(Pe.allocAt(t.x,t.y),this.transform),D=E.Bf(O),X=0<E.x&&E.x<a.width&&0<E.y&&E.y<a.height||pn(E.x,E.y,0,0,0,a.height)<=D||pn(E.x,E.y,0,a.height,a.width,a.height)<=D||pn(E.x,E.y,a.width,a.height,a.width,0)<=D||pn(E.x,E.y,a.width,0,0,0)<=D;if(a=E.zd(0,0)<=D&&E.zd(0,a.height)<=D&&E.zd(a.width,0)<=D&&E.zd(a.width,a.height)<=D,d||(Pe.free(E),Pe.free(O)),X){if(!this.isAtomic){E=Pe.alloc(),O=Pe.alloc(),D=hc(this);for(var se=this.O.s,ge=se.length;ge--;){var ve=se[ge];if(ve.visible||ve===D){var Te=ve.actualBounds,Ke=this.naturalBounds;(!d||!(Te.x>Ke.width||Te.y>Ke.height||0>Te.x+Te.width||0>Te.y+Te.height))&&(ve.se()?(Te=ve.transform,rn(E.set(e),Te),rn(O.set(t),Te)):(E.set(e),O.set(t)),Te=ve,ve=ve instanceof Zt?ve:null,(ve!==null?ve.og(E,O,n,r,i,o):Te.tx(E,O,i))&&(n!==null&&(Te=n(Te)),Te===null||r!==null&&!r(Te)||o.add(Te)))}}Pe.free(E),Pe.free(O)}return i?X:a}return!1};function Nv(e){var t=null;return e instanceof ur&&(t=e.spot1,t===Bo&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot1)),t===null&&(t=xr),t}function Rv(e){var t=null;return e instanceof ur&&(t=e.spot2,t===Bo&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot2)),t===null&&(t=ni),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 Pn&&nt("Cannot add a Part to a Panel: "+t+"; use a Panel instead"),(this===t||this.rg(t))&&(this===t&&nt("Cannot make a Panel contain itself: "+this.toString()),nt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+t.toString()));var n=t.panel;if(n!==null&&n!==this&&nt("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!==Zt.Grid||t instanceof ur||nt("Can only add Shapes to a Grid Panel, not: "+t),this.na!==Zt.Graduated||t instanceof ur||t instanceof Wi||nt("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 wt),this.ge.add(r,t))}var i=this.O;if(r=-1,n===this){for(var o=-1,a=this.O.s,d=a.length,E=0;E<d;E++)if(a[E]===t){o=E;break}if(o!==-1){if(o===e||o+1>=i.count&&e>=i.count)return;i.mb(o),r=o}else nt("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),pl(this)||this.v(),t.v(!1),t.portId!==null?this.Te=!0:t instanceof Zt&&t.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||jg(this,t,!1),n=this.part,n!==null&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof fn&&(n.Te=!0),n.Te&&n instanceof fn&&(n.wc=null),i=this.diagram,i!==null&&i.undoManager.isUndoingRedoing||(r!==-1&&n.cb(po,"elements",this,t,null,r,null),n.cb(uo,"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),Go(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 fn&&(r instanceof Zt?r.qm(r,function(a,d){ey(o,d,t)}):ey(o,r,t)),n=this.diagram,n!==null&&n.undoManager.isUndoingRedoing||o.cb(po,"elements",this,r,null,e,null))},ye.Fb=function(e){0>e&&hn(e,">= 0",Zt,"getRowDefinition:idx"),e=Math.round(e);var t=this.rowDefs;if(t[e]===void 0){var n=new Wo;n.wi(this),n.isRow=!0,n.index=e,t[e]=n,this.cb(uo,"rowdefs",this,null,n,null,e)}return t[e]},ye.oA=function(e){if(0>e&&hn(e,">= 0",Zt,"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(po,"rowdefs",this,n,null,e,null),this.v()}}};function T0(e,t,n){var r=e.rowDefs;if(!(0>t)){if(r[t]=n instanceof Wo?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&&hn(e,">= 0",Zt,"getColumnDefinition:idx"),e=Math.round(e);var t=this.colDefs;if(t[e]===void 0){var n=new Wo;n.wi(this),n.isRow=!1,n.index=e,t[e]=n,this.cb(uo,"coldefs",this,null,n,null,e)}return t[e]},ye.jA=function(e){if(0>e&&hn(e,">= 0",Zt,"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(po,"coldefs",this,n,null,e,null),this.v()}}};function _0(e,t,n){var r=e.colDefs;if(!(0>t)){if(r[t]=n instanceof Wo?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&&Ug(t,e),this},ye.Hy=function(e,t){return(e=this.Fb(e))&&Ug(e,new Wo(t)),this},ye.By=function(e,t){return(e=this.Eb(e))&&Ug(e,new Wo(t)),this},ye.nz=function(e){if(0>e||this.type!==Zt.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!==Zt.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 Pe(NaN,NaN)),this.type!==Zt.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!==Zt.Graduated)return NaN;var t=this.Pb();return t.transform.Cd(e),t.geometry.xx(e)*this.graduatedRange+this.graduatedMin};function A0(e){return e=e.allBindings,e!==null&&e._isFrozen}function zl(e){var t=e.allBindings;if(t===null)e.data!==null&&nt("Template cannot have .data be non-null: "+e),e.allBindings=t=new Gt;else if(t._isFrozen)return;var n=new Gt;Iv(e,!1),e.qm(e,function(O,D){D.th();var X=D.localBindings;if(X!==null)for(pf(D,!1),X=X.iterator;X.next();){var se=X.value;se.mode===Dp&&pf(D,!0);var ge=se.sourceName;ge!==null&&(ge==="/"&&Iv(O,!0),ge=Hb(se,O,D),ge!==null&&(n.add(ge),ge.srcBindings===null&&(ge.srcBindings=new Gt),ge.srcBindings.add(se))),t.add(se)}if(D instanceof Zt&&D.type===Zt.Table){if(0<D.rowCount){for(O=D.rowDefs,X=O.length,se=0;se<X;se++)if(ge=O[se],ge!==void 0&&ge.be!==null)for(var ve=ge.be.iterator;ve.next();){var Te=ve.value;Te.xd=ge,Te.to=2,Te.wl=ge.index,t.add(Te)}}if(0<D.columnCount){for(D=D.colDefs,O=D.length,X=0;X<O;X++)if(se=D[X],se!==void 0&&se.be!==null)for(ge=se.be.iterator;ge.next();)ve=ge.value,ve.xd=se,ve.to=1,ve.wl=se.index,t.add(ve)}}});for(var r=n.iterator;r.next();){var i=r.value;if(i.srcBindings!==null){pf(i,!0);for(var o=i.srcBindings.iterator;o.next();){var a=o.value;i.localBindings===null&&(i.localBindings=new Gt),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 d=i.targetProperty,E=d.indexOf(".");0<E&&o instanceof Zt&&(a=d.substring(0,E),d=d.substr(E+1),E=o.fb(a),E!==null?(o=E,i.targetProperty=d):yn('Warning: unable to find GraphObject named "'+a+'" for Binding: '+i.toString())),o instanceof Wo?(a=br(o.panel),i.Ai=a===void 0?-1:a,o.panel.bindingId=i.Ai):o instanceof ht?(a=br(o),i.Ai=a===void 0?-1:a,o.bindingId=i.Ai):nt("Unknown type of binding target: "+o)}t.freeze(),e instanceof Pn&&e.Zc()&&e.Va()}ye.Uy=function(e){e===void 0&&(e=!1);var t=this.copy();return M1(t,function(n){n instanceof Zt&&(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&&zl(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 Zt))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 Zt&&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 Zt)||o.data!==t[a])return!0;i++,a++}return!1}function dp(e){if(e.type===Zt.Spot||e.type===Zt.Auto)return Math.min(e.O.length,1);if(e.type===Zt.Link){e=e.O;for(var t=e.length,n=0;n<t;n++){var r=e.M(n);if(!(r instanceof ur&&r.isPanelMain))break}return n}return e.type===Zt.Table&&0<e.O.length&&(e=e.O.M(0),e.isPanelMain&&e instanceof Zt&&Rc(e))?1:0}ye.mv=function(){for(var e=dp(this);this.O.length>e;)this.pc(this.O.length-1,!1);k0(this,this.itemArray)};function k0(e,t){var n=dp(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++)Bg(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 Zt){if(a.data!==o){var d=Lv(e,a.data),E=Lv(e,o),O=E!==d;O||(d=Mv(e,d),O=Mv(e,E)!==d),O?(e.pc(r,!1),Bg(e,o,i,!1)):a.data=o}}else Bg(e,o,i,!1)}for(;r<e.O.length;)e.pc(r,!1);e.$g=null,Ov(e,n,0),pl(e)||e.v(),e.graduatedIntervals=null,e.If()||jg(e,e,!1),t=e.part,t!==null&&(t.Rh=null,t.ag=NaN,e.Te&&t instanceof fn&&(t.Te=!0),t.Te&&t instanceof fn&&(t.wc=null))}}function Bg(e,t,n,r){if(!(t==null||0>n)){var i=Lv(e,t);if(i=Mv(e,i),i!==null){if(zl(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 wt),e.ge.add(t,i)),o=n+dp(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 Zt){var i=t,o=n;r.type===Zt.TableRow?r.row=i:r.type===Zt.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=Oo(t,e)}else return"";if(e===void 0)return"";if(typeof e=="string")return e;nt("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&&(N0||(N0=!0,yn('No item template Panel found for category "'+t+'" on '+e),yn(" Using default item template."),e=new Zt,t=new Wi,t.bind(new Do("text","",hr)),e.add(t),R0=e),r=R0)),r}function jg(e,t,n){var r=t.enabledChanged;if(r!==null&&r(t,n),t instanceof Zt){t=t.O.s,r=t.length;for(var i=0;i<r;i++){var o=t[i];n&&o instanceof Zt&&!o.isEnabled||jg(e,o,n)}}}function Lu(e,t){t.name=e,ou.add(e,t)}Dn.Object.defineProperties(Zt.prototype,{type:{get:function(){return this.na},set:function(e){var t=this.na;t!==e&&(this.na=e,this.isAtomic=this.na===Zt.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&&hn(e,">= 0",Zt,"padding"),e=new sr(e)):(0>e.left&&hn(e.left,">= 0",Zt,"padding:value.left"),0>e.right&&hn(e.right,">= 0",Zt,"padding:value.right"),0>e.top&&hn(e.top,">= 0",Zt,"padding:value.top"),0>e.bottom&&hn(e.bottom,">= 0",Zt,"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:Ko},set:function(e){typeof e=="number"&&(e=new sr(e));var t=this.defaultSeparatorPadding;t.D(e)||(e=e.J(),this.T===null&&(this.T=new Rl),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 fi)&&(e instanceof fi&&e.freeze(),this.T===null&&(this.T=new Rl),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 Rl),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)||nt("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 Rl),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 fi)&&(e instanceof fi&&e.freeze(),this.T===null&&(this.T=new Rl),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 Rl),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)||nt("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 Rl),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 Rl),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||nt("Invalid Panel.gridCellSize: "+e),this.jn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Ru(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()||nt("Invalid Panel.gridOrigin: "+e),this.kn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Ru(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 fc),this.ra.lq=e,this.v(),this.g("graduatedMin",t,e),Ns(this)&&(e=this.part,e!==null&&no(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 fc),this.ra.F=e,this.v(),this.g("graduatedMax",t,e),Ns(this)&&(e=this.part,e!==null&&no(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 fc),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 fc),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 fc,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 fc,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 fc,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 fc,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 Rl),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Rl),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:zg},set:function(e){var t=this.rowSizing;t!==e&&(this.T===null&&(this.T=new Rl),this.T.ob=e,this.v(),this.g("rowSizing",t,e))}},columnSizing:{get:function(){return this.T!==null?this.T.j:zg},set:function(e){var t=this.columnSizing;t!==e&&(this.T===null&&(this.T=new Rl),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)&&nt("Panel.topIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Rl),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)&&nt("Panel.leftIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Rl),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 Pn&&!(this instanceof Zr);zl(this),this.ub=e;var r=this.diagram;r!==null&&(n?(n=r.partManager,this instanceof en?(t!==null&&n.bf.remove(t),e!==null&&n.bf.add(e,this)):this instanceof Pn&&(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 gf),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||k0(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 wt}var t=this.itemTemplateMap.I("");t!==e&&((e instanceof Pn||e.isPanelMain)&&nt("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(););gr(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&&(gr(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 tr&&(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&&jg(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))}}}),Dn.Object.defineProperties(Zt,{Position:{get:function(){return ou.I("Position")}},Horizontal:{get:function(){return ou.I("Horizontal")}},Vertical:{get:function(){return ou.I("Vertical")}},Spot:{get:function(){return ou.I("Spot")}},Auto:{get:function(){return ou.I("Auto")}},Table:{get:function(){return ou.I("Table")}},Viewbox:{get:function(){return ou.I("Viewbox")}},TableRow:{get:function(){return ou.I("TableRow")}},TableColumn:{get:function(){return ou.I("TableColumn")}},Link:{get:function(){return ou.I("Link")}},Grid:{get:function(){return ou.I("Grid")}},Graduated:{get:function(){return ou.I("Graduated")}}}),Zt.prototype.rebuildItemElements=Zt.prototype.mv,Zt.prototype.findItemPanelForData=Zt.prototype.sx,Zt.prototype.updateTargetBindings=Zt.prototype.La,Zt.prototype.copyTemplate=Zt.prototype.Uy,Zt.prototype.graduatedValueForPoint=Zt.prototype.Gz,Zt.prototype.graduatedPointForValue=Zt.prototype.Fz,Zt.prototype.findColumnForLocalX=Zt.prototype.fz,Zt.prototype.findRowForLocalY=Zt.prototype.nz,Zt.prototype.addColumnDefinition=Zt.prototype.By,Zt.prototype.addRowDefinition=Zt.prototype.Hy,Zt.prototype.addRowColumnDefinition=Zt.prototype.Gy,Zt.prototype.removeColumnDefinition=Zt.prototype.jA,Zt.prototype.getColumnDefinition=Zt.prototype.Eb,Zt.prototype.removeRowDefinition=Zt.prototype.oA,Zt.prototype.getRowDefinition=Zt.prototype.Fb,Zt.prototype.removeAt=Zt.prototype.mb,Zt.prototype.remove=Zt.prototype.remove,Zt.prototype.insertAt=Zt.prototype.Gb,Zt.prototype.elt=Zt.prototype.M,Zt.prototype.add=Zt.prototype.add,Zt.prototype.findObject=Zt.prototype.fb,Zt.prototype.findInVisualTree=Zt.prototype.Nl,Zt.prototype.walkVisualTreeFrom=Zt.prototype.qm,Zt.prototype.findMainElement=Zt.prototype.Pb;var N0=!1,R0=null,ou=new wt;Zt.className="Panel",Zt.definePanelLayout=Lu,Lu("Position",new _g),Lu("Vertical",new kg),Lu("Auto",new Rg),Lu("Link",new Pg);function fc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}fc.prototype.copy=function(){var e=new fc;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},fc.className="GradPanelSettings";function Rl(){this.Pc=[],this.Oc=[],this.j=this.ob=zg,this.hb=this.Hb=0,this.Qp=Ko,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Rl.prototype.copy=function(e){for(var t=new Rl,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},Rl.className="TablePanelSettings";function Wo(e){Yn(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Bo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Dv,this.hg=rr,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))}Wo.prototype.copy=function(){var e=new Wo;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=kn(this.separatorDashArray)),e.Ma=this.Ma,e.Pm=this.Pm,e.be=this.be,e};function Ug(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=kn(t.separatorDashArray)),e.background=t.background,e.coversSeparators=t.coversSeparators,e.be=t.be}ye=Wo.prototype,ye.qb=function(e){e.classType===Wo&&(this.sizing=e)},ye.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+br(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===Zt.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(Ui,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 Hg(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 Do(e,t,n,r):i=e,i.xd=this,e=this.panel,e!==null&&(t=e.ih(),t!==null&&A0(t)&&nt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+i+" on "+e)),this.be===null&&(this.be=new Gt),this.be.add(i),this},Dn.Object.defineProperties(Wo.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&&hn(e,">= 0",Wo,"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&&hn(e,">= 0",Wo,"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))&&hn(e,">= 0",Wo,"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&&hn(e,">= 0",Wo,"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 sr(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&&vf(e,"RowColumnDefinition.separatorStroke"),e instanceof fi&&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)||nt("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&&vf(e,"RowColumnDefinition.background"),e instanceof fi&&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}}}),Wo.prototype.computeEffectiveSpacing=Wo.prototype.Wc,Wo.prototype.computeEffectiveSpacingTop=Wo.prototype.Io;var Dv=new Ut(Wo,"Default",0),pp=new Ut(Wo,"None",1),zg=new Ut(Wo,"ProportionalExtra",2);Wo.className="RowColumnDefinition",Wo.Default=Dv,Wo.None=pp,Wo.ProportionalExtra=zg;function ur(e,t){ht.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)}Kn(ur,ht),ur.prototype.cloneProtected=function(e){ht.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=kn(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 Wh(e){e.Na===null?e.Na=new Bv:e.Na.nc&&(e.Na=e.Na.copy())}ye=ur.prototype,ye.th=function(){ht.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},ye.qb=function(e){e===jt||e===Rn||e===kr||e===rr?this.geometryStretch=e:ht.prototype.qb.call(this,e)},ye.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+br(this)};function id(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 d=n[0],E=n[1],O,D,X,se,ge,ve,Te=0,Ke=An(),Ge=2;Ge<i;Ge+=2)O=n[Ge],D=n[Ge+1],X=O-d,d=D-E,X===0&&(X=.001),se=d/X,ge=Math.atan2(d,X),ve=Math.sqrt(X*X+d*d),Ke.push([X,ge,se,ve]),Te+=ve,d=O,E=D;d=n[0],E=n[1],X=r.measuredBounds.width,r instanceof ur&&(X-=r.strokeWidth),1>X&&(X=1),i=n=X,O=a/2,D=O!==0,Ge=0,ve=Ke[Ge],X=ve[0],ge=ve[1],se=ve[2],ve=ve[3];for(var Xe=0;.1<=Te;){if(Xe===0&&(D?(i=n,i-=O,Te-=O,D=!1):i=n,i===0&&(i=1)),i>Te){Nn(Ke);return}i>ve?(Xe=i-ve,i=ve):Xe=0;var Ze=Math.sqrt(i*i/(1+se*se));if(0>X&&(Ze=-Ze),d+=Ze,E+=se*Ze,e.translate(d,E),e.rotate(ge),e.translate(-(a/2),-(o/2)),Xe===0&&r.hh(e,t),e.translate(a/2,o/2),e.rotate(-ge),e.translate(-d,-E),Te-=i,ve-=i,Xe!==0){if(Ge++,Ge===Ke.length){Nn(Ke);return}ve=Ke[Ge],X=ve[0],ge=ve[1],se=ve[2],ve=ve[3],i=Xe}}Nn(Ke)}}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&&So(this,e,r,!0,!1,a,o);var d=this.part,E=this.ig;if(n===null||E!==0||d===null||!this.isPanelMain&&d.Pb()!==this||(E=d.type===Zt.Link&&d instanceof Zr&&d.category==="Selection"&&d.adornedObject instanceof ur&&d.adornedPart.Pb()===d.adornedObject?d.adornedObject.strokeWidth:0),E===0&&(n=null),n!==null&&E!==0&&(So(this,e,n,!1,!1,a,o),e.lineWidth=E,e.lineJoin=this.strokeJoin,e.lineCap=this.strokeCap,e.miterLimit=this.strokeMiterLimit),o=!1,d&&t.Gf("drawShadows")&&(o=d.isShadowed),e.Il===!1&&(o=!1),d=!0,n===null||r!==null&&r!=="transparent"||(d=!1),a=!1,E=this.strokeDashArray,E!==null&&(a=!0,e.js(E,this.strokeDashOffset)),i.type===Qt.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===Qt.u){var O=i.startX;E=i.startY;var D=i.endX,X=i.endY;i=Math.min(O,D);var se=Math.min(E,X);O=Math.abs(D-O),E=Math.abs(X-E),e.beginPath(),e.rect(i,se,O,E),r!==null&&e.ng(r),n!==null&&(d&&o&&Ku(e),e.jk(),d&&o&&lc(e)),e.Se()}else if(i.type===Qt.F)O=i.startX,E=i.startY,D=i.endX,X=i.endY,i=Math.abs(D-O)/2,se=Math.abs(X-E)/2,O=Math.min(O,D)+i,E=Math.min(E,X)+se,e.beginPath(),e.moveTo(O,E-se),e.bezierCurveTo(O+lt.wg*i,E-se,O+i,E-lt.wg*se,O+i,E),e.bezierCurveTo(O+i,E+lt.wg*se,O+lt.wg*i,E+se,O,E+se),e.bezierCurveTo(O-lt.wg*i,E+se,O-i,E+lt.wg*se,O-i,E),e.bezierCurveTo(O-i,E-lt.wg*se,O-lt.wg*i,E-se,O,E-se),e.closePath(),r!==null&&e.ng(r),n!==null&&(d&&o&&Ku(e),e.jk(),d&&o&&lc(e)),e.Se();else if(i.type===Qt.o)for(i=i.figures,E=i.length,se=0;se<E;se++){O=i.s[se],e.beginPath(),e.moveTo(O.startX,O.startY),D=O.segments.s,X=D.length;for(var ge=null,ve=0;ve<X;ve++){var Te=D[ve];switch(Te.type){case $i:e.moveTo(Te.endX,Te.endY);break;case yi:e.lineTo(Te.endX,Te.endY);break;case ko:e.bezierCurveTo(Te.point1X,Te.point1Y,Te.point2X,Te.point2Y,Te.endX,Te.endY);break;case Ws:e.quadraticCurveTo(Te.point1X,Te.point1Y,Te.endX,Te.endY);break;case go:if(Te.radiusX===Te.radiusY){var Ke=Math.PI/180;e.arc(Te.point1X,Te.point1Y,Te.radiusX,Te.startAngle*Ke,(Te.startAngle+Te.sweepAngle)*Ke,0>Te.sweepAngle,ge!==null?ge.endX:O.startX,ge!==null?ge.endY:O.startY)}else if(ge=gs(Te,O),Ke=ge.length,Ke===0)e.lineTo(Te.centerX,Te.centerY);else for(var Ge=0;Ge<Ke;Ge++){var Xe=ge[Ge];Ge===0&&e.lineTo(Xe[0],Xe[1]),e.bezierCurveTo(Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7])}break;case Zs:if(Ge=Ke=0,ge!==null&&ge.type===go){if(ge=gs(ge,O),Xe=ge.length,Xe===0){e.lineTo(Te.endX,Te.endY);break}ge=ge[Xe-1]||null,ge!==null&&(Ke=ge[6],Ge=ge[7])}else Ke=ge!==null?ge.endX:O.startX,Ge=ge!==null?ge.endY:O.startY;if(ge=Bs(Te,O,Ke,Ge),Ke=ge.length,Ke===0){e.lineTo(Te.endX,Te.endY);break}for(Ge=0;Ge<Ke;Ge++)Xe=ge[Ge],e.bezierCurveTo(Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7]);break;default:nt("Segment not of valid type: "+Te.type)}Te.isClosed&&e.closePath(),ge=Te}D=O.isFilled,o?O.isShadowed?(D===!0&&r!=="transparent"&&r!==null&&e.ng(r,O.isEvenOdd),n!==null&&(D&&d&&Ku(e),e.jk(),D&&d&&lc(e))):(Ku(e),D&&r!=="transparent"&&r!==null&&e.ng(r,O.isEvenOdd),n!==null&&e.jk(),lc(e)):(D&&r!==null&&e.ng(r,O.isEvenOdd),n!==null&&e.jk()),e.Se(se)}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=An(),o.type===Qt.j)r.push(o.startX),r.push(o.startY),r.push(o.endX),r.push(o.endY),id(e,t,r,n);else if(o.type===Qt.o)for(o=o.figures.iterator;o.next();){for(d=o.value,r.length=0,r.push(d.startX),r.push(d.startY),a=d.startX,i=d.startY,E=a,se=i,O=d.segments.s,D=O.length,X=0;X<D;X++){switch(ve=O[X],ve.type){case $i:id(e,t,r,n),r.length=0,r.push(ve.endX),r.push(ve.endY),a=ve.endX,i=ve.endY,E=a,se=i;break;case yi:r.push(ve.endX),r.push(ve.endY),a=ve.endX,i=ve.endY;break;case ko:lt.Qe(a,i,ve.point1X,ve.point1Y,ve.point2X,ve.point2Y,ve.endX,ve.endY,.5,r),a=ve.endX,i=ve.endY;break;case Ws:lt.ep(a,i,ve.point1X,ve.point1Y,ve.endX,ve.endY,.5,r),a=ve.endX,i=ve.endY;break;case go:if(Te=gs(ve,d),ge=Te.length,ge===0){r.push(ve.centerX),r.push(ve.centerY),a=ve.centerX,i=ve.centerY;break}for(Ke=0;Ke<ge;Ke++)Ge=Te[Ke],lt.Qe(a,i,Ge[2],Ge[3],Ge[4],Ge[5],Ge[6],Ge[7],.5,r),a=Ge[6],i=Ge[7];break;case Zs:if(Te=Bs(ve,d,a,i),ge=Te.length,ge===0){r.push(ve.endX),r.push(ve.endY),a=ve.endX,i=ve.endY;break}for(Ke=0;Ke<ge;Ke++)Ge=Te[Ke],lt.Qe(a,i,Ge[2],Ge[3],Ge[4],Ge[5],Ge[6],Ge[7],.5,r),a=Ge[6],i=Ge[7];break;default:nt("Segment not of valid type: "+ve.type)}ve.isClosed&&(r.push(E),r.push(se),id(e,t,r,n))}id(e,t,r,n)}else if(o.type===Qt.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),id(e,t,r,n);else if(o.type===Qt.F){if(i=new To,i.startX=o.endX,i.startY=(o.startY+o.endY)/2,a=new Fr(go),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=gs(a,i),d=o.length,d===0)r.push(a.centerX),r.push(a.centerY);else for(a=i.startX,i=i.startY,E=0;E<d;E++)se=o[E],lt.Qe(a,i,se[2],se[3],se[4],se[5],se[6],se[7],.5,r),a=se[6],i=se[7];id(e,t,r,n)}Nn(r),e.restore(),e.Vc(!1)}}}},ye.kk=function(e,t,n){return!ht.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:ht.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 Pe),e instanceof Cn){e.Mc()&&nt("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 Ct);var t=this.naturalBounds,n=this.oe;t=Ct.allocAt(t.x,t.y,t.width,t.height);var r=this.strokeWidth;return t.Bc(r/2,r/2),r=Pe.allocAt(t.x,t.y).transform(n),e.h(r.x,r.y,0,0),r.h(t.right,t.y).transform(n),Rr(e,r.x,r.y,0,0),r.h(t.right,t.bottom).transform(n),Rr(e,r.x,r.y,0,0),r.h(t.x,t.bottom).transform(n),Rr(e,r.x,r.y,0,0),Ct.free(t),Pe.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!==Qt.j||t||(i+=2);var o=Ct.alloc();if(o.assign(r),o.Bc(i+2,i+2),!o.ca(e))return Ct.free(o),!1;if(r=i+1e-4,n.type===Qt.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:(Ct.free(o),lt.Yb(n.startX,n.startY,n.endX,n.endY,i,e.x,e.y));if(n.type===Qt.u){t=n.startX;var a=n.startY,d=n.endX;if(n=n.endY,o.x=Math.min(t,d),o.y=Math.min(a,n),o.width=Math.abs(d-t),o.height=Math.abs(n-a),this.fill===null){if(o.Bc(-r,-r),o.ca(e))return Ct.free(o),!1;o.Bc(r,r)}return this.stroke!==null&&o.Bc(i,i),e=o.ca(e),Ct.free(o),e}if(n.type===Qt.F){a=n.startX,i=n.startY,d=n.endX;var E=n.endY;if(n=Math.min(a,d),t=Math.min(i,E),a=Math.abs(d-a)/2,i=Math.abs(E-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 Ct.free(o),!1;a+=r,i+=r}return this.stroke!==null&&(a+=r,i+=r),Ct.free(o),0>=a||0>=i?!1:1>=n*n/(a*a)+t*t/(i*i)}if(n.type===Qt.o)return Ct.free(o),this.fill===null?sa(n,e.x,e.y,i):jo(n,e,i,1<this.strokeWidth,t);nt("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 d=this.figure,E=Fv[d];if(E===void 0){var O=lt.Ze[d];typeof O=="string"&&(O=lt.Ze[O]),typeof O=="function"?(E=O(null,100,100),Fv[d]=E):nt("Unsupported Figure: "+d)}a=E.bounds}d=a.width,E=a.height,O=a.width;var D=a.height;switch(Ra(this,!0)){case jt:r=n=0;break;case Yt:O=Math.max(e-o,0),D=Math.max(t-o,0);break;case Ln:O=Math.max(e-o,0),r=0;break;case Gn:n=0,D=Math.max(t-o,0)}isFinite(i.width)&&(O=i.width),isFinite(i.height)&&(D=i.height);var X=this.maxSize,se=this.minSize;switch(n=Math.max(n-o,se.width),r=Math.max(r-o,se.height),O=Math.min(X.width,O),D=Math.min(X.height,D),O=isFinite(O)?Math.max(n,O):Math.max(d,n),D=isFinite(D)?Math.max(r,D):Math.max(E,r),n=Pv(this),n){case jt:break;case Yt:d=O,E=D;break;case Rn:n=Math.min(O/d,D/E),isFinite(n)||(n=1),d*=n,E*=n;break;default:nt(n+" is not a valid geometryStretch.")}this.Rd!==null?(d===0&&(d=.001),E===0&&(E=.001),n=this.Rd!==null?this.Rd:this.ua,a=n.bounds,r=d/a.width,a=E/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&&lt.$(this.ua.Sk,e-o)&&lt.$(this.ua.Rk,t-o)||(this.ua=ur.makeGeometry(this,d,E)),a=this.ua.bounds,e===1/0||t===1/0?this.Ge(a.x-o/2,a.y-o/2,e===0&&d===0?0:a.width+o,t===0&&E===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(se.width,O),D=Math.max(se.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===rr?Yt:t:t===rr?Fv[e.figure].defaultStretch:t}ye.eh=function(e,t,n,r){ta(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),d=o.m22*a,E=-o.m12*a,O=-o.m21*a,D=o.m11*a,X=a*(o.m21*o.dy-o.m22*o.dx),se=a*(o.m12*o.dx-o.m11*o.dy);o=e*d+t*O+X,a=e*E+t*D+se,d=n*d+r*O+X,E=n*E+r*D+se,X=this.ig/2,O=this.ua,O===null&&(this.measure(1/0,1/0),O=this.ua);var ge=O.bounds;if(D=!1,O.type===Qt.j)if(1.5>=this.strokeWidth)D=lt.Ve(O.startX,O.startY,O.endX,O.endY,o,a,d,E,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=An(),e=new Pe,lt.Ve(O.startX+r,O.startY+D,O.endX+r,O.endY+D,o,a,d,E,e)&&t.push(e),e=new Pe,lt.Ve(O.startX-r,O.startY-D,O.endX-r,O.endY-D,o,a,d,E,e)&&t.push(e),e=new Pe,lt.Ve(O.startX+r,O.startY+D,O.startX-r,O.startY-D,o,a,d,E,e)&&t.push(e),e=new Pe,lt.Ve(O.endX+r,O.endY+D,O.endX-r,O.endY-D,o,a,d,E,e)&&t.push(e),d=t.length,d===0)return Nn(t),!1;for(D=!0,E=1/0,r=0;r<d;r++)e=t[r],n=(e.x-o)*(e.x-o)+(e.y-a)*(e.y-a),n<E&&(E=n,i.x=e.x,i.y=e.y);Nn(t)}else if(O.type===Qt.u)D=lt.Ff(ge.x-X,ge.y-X,ge.x+ge.width+X,ge.y+ge.height+X,o,a,d,E,i);else if(O.type===Qt.F){t=Ct.allocAt(ge.x,ge.y,ge.width,ge.height).Bc(X,X);e:if(t.width===0)D=lt.Ve(t.x,t.y,t.x,t.y+t.height,o,a,d,E,i);else if(t.height===0)D=lt.Ve(t.x,t.y,t.x+t.width,t.y,o,a,d,E,i);else{if(e=t.width/2,O=t.height/2,r=t.x+e,D=t.y+O,n=9999,o!==d&&(n=(a-E)/(o-d)),9999>Math.abs(n)){if(E=a-D-n*(o-r),0>e*e*n*n+O*O-E*E){i.x=NaN,i.y=NaN,D=!1;break e}X=Math.sqrt(e*e*n*n+O*O-E*E),d=(-(e*e*n*E)+e*O*X)/(O*O+e*e*n*n)+r,e=(-(e*e*n*E)-e*O*X)/(O*O+e*e*n*n)+r,O=n*(d-r)+E+D,E=n*(e-r)+E+D,Math.abs((o-d)*(o-d))+Math.abs((a-O)*(a-O))<Math.abs((o-e)*(o-e))+Math.abs((a-E)*(a-E))?(i.x=d,i.y=O):(i.x=e,i.y=E)}else{if(d=O*O,E=o-r,d-=d/(e*e)*E*E,0>d){i.x=NaN,i.y=NaN,D=!1;break e}E=Math.sqrt(d),d=D+E,E=D-E,Math.abs(d-a)<Math.abs(E-a)?(i.x=o,i.y=d):(i.x=o,i.y=E)}D=!0}Ct.free(t)}else if(O.type===Qt.o){se=Pe.alloc();var ve=d-o,Te=E-a,Ke=ve*ve+Te*Te,Ge=o,Xe=a;if(0<Ke&&ge.contains(Ge,Xe)&&(se.x=Ge,se.y=Xe,this.ca(se)))for(ve!==0&&.5>Math.abs(ve)?(Te*=.5/ve,ve=.5):Te!==0&&.5>Math.abs(Te)&&(ve*=.5/Te,Te=.5),Ge-=ve,Xe-=Te;ge.contains(Ge,Xe);)Ge-=ve,Xe-=Te;for(i.x=d,i.y=E,Te=0;Te<O.figures.count;Te++){var Ze=O.figures.s[Te],tt=Ze.isFilled?Ge:o,at=Ze.isFilled?Xe:a,St=Ze.segments;ge=Ze.startX,ve=Ze.startY;for(var ln=ge,_n=ve,Sn=0;Sn<St.count;Sn++){var qt=St.s[Sn],Pt=qt.type,er=qt.endX,$n=qt.endY,ei=!1;switch(Pt){case $i:ln=er,_n=$n;break;case yi:ei=Wg(ge,ve,er,$n,tt,at,d,E,se);break;case ko:ei=lt.Eo(ge,ve,qt.point1X,qt.point1Y,qt.point2X,qt.point2Y,er,$n,tt,at,d,E,.6,se);break;case Ws:ei=lt.Eo(ge,ve,ge+2/3*(qt.point1X-ge),ve+2/3*(qt.point1Y-ve),er+2/3*(qt.point1X-er),$n+2/3*(qt.point1Y-$n),er,$n,tt,at,d,E,.6,se);break;case go:case Zs:Pt=qt.type===go?gs(qt,Ze):Bs(qt,Ze,ge,ve);var zi=Pt.length;if(zi===0){ei=Wg(ge,ve,qt.type===go?qt.centerX:qt.endX,qt.type===go?qt.centerY:qt.endY,tt,at,d,E,se);break}for($n=null,er=0;er<zi;er++){if($n=Pt[er],er===0&&Wg(ge,ve,$n[0],$n[1],tt,at,d,E,se)){var as=Gg(tt,at,se,Ke,i);as<Ke&&(Ke=as,D=!0)}lt.Eo($n[0],$n[1],$n[2],$n[3],$n[4],$n[5],$n[6],$n[7],tt,at,d,E,.6,se)&&(as=Gg(tt,at,se,Ke,i),as<Ke&&(Ke=as,D=!0))}er=$n[6],$n=$n[7];break;default:nt("Unknown Segment type: "+Pt)}ge=er,ve=$n,ei&&(ei=Gg(tt,at,se,Ke,i),ei<Ke&&(Ke=ei,D=!0)),qt.isClosed&&(er=ln,$n=_n,Wg(ge,ve,er,$n,tt,at,d,E,se)&&(qt=Gg(tt,at,se,Ke,i),qt<Ke&&(Ke=qt,D=!0)))}}o=n-e,a=r-t,d=Math.sqrt(o*o+a*a),d!==0&&(o/=d,a/=d),i.x-=o*X,i.y-=a*X,Pe.free(se)}else nt("Unknown Geometry type: "+O.type);return D?(this.transform.Ga(i),!0):!1};function Gg(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 Wg(e,t,n,r,i,o,a,d,E){if(lt.$(e,n)&&lt.$(t,r)||lt.$(i,a)&&lt.$(o,d))return!1;var O=!1,D=(i-a)*(t-r)-(o-d)*(e-n);return D===0?!1:(E.x=((i*d-o*a)*(e-n)-(i-a)*(e*r-t*n))/D,E.y=((i*d-o*a)*(t-r)-(o-d)*(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,(E.y>e||lt.$(E.y,e))&&(E.y<t||lt.$(E.y,t))&&(O=!0)):(t=e<n?e:n,e=e<n?n:e,(E.x>t||lt.$(E.x,t))&&(E.x<e||lt.$(E.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=Pe.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)))),Pe.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=Vn.alloc();n.set(t),n.Vj();var r=e.left,i=e.right,o=e.top;e=e.bottom;var a=Pe.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 Pe.free(a),!0;var d=Pe.alloc(),E=Pe.alloc();return n.set(t),n.bv(this.transform),n.Vj(),d.x=i,d.y=o,d.transform(n),a.x=r,a.y=o,a.transform(n),t=!1,Vh(this,a,d,E)?t=!0:(a.x=i,a.y=e,a.transform(n),Vh(this,a,d,E)?t=!0:(d.x=r,d.y=e,d.transform(n),Vh(this,a,d,E)?t=!0:(a.x=r,a.y=o,a.transform(n),Vh(this,a,d,E)&&(t=!0)))),Pe.free(a),Vn.free(n),Pe.free(d),Pe.free(E),t};function Vh(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(Ke,Ge){for(var Xe=Ke.length,Ze=0;Ze<Xe;Ze+=2)if(Ge.zd(Ke[Ze],Ke[Ze+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,d=a.x,E=a.y,O=a.x+a.width;if(a=a.y+a.height,jn(e.x,e.y,d,E)<=i&&jn(e.x,e.y,O,E)<=i&&jn(e.x,e.y,d,a)<=i&&jn(e.x,e.y,O,a)<=i)return!0}if(d=t.startX,E=t.startY,O=t.endX,a=t.endY,t.type===Qt.j){if(n=(d-O)*(e.x-O)+(E-a)*(e.y-a),pn(e.x,e.y,d,E,O,a)<=(0<=(O-d)*(e.x-d)+(a-E)*(e.y-E)&&0<=n?i:o))return!0}else{if(t.type===Qt.u)return t=!1,n&&(t=pn(e.x,e.y,d,E,d,a)<=i||pn(e.x,e.y,d,E,O,E)<=i||pn(e.x,e.y,O,E,O,a)<=i||pn(e.x,e.y,d,a,O,a)<=i),t;if(t.type===Qt.F){t=e.x-(d+O)/2,o=e.y-(E+a)/2;var D=Math.abs(O-d)/2,X=Math.abs(a-E)/2;if(D===0||X===0)return pn(e.x,e.y,d,E,O,a)<=i;if(n){if(e=lt.$y(D,X,t,o),e*e<=i)return!0}else return!(jn(t,o,-D,0)>=i||jn(t,o,0,-X)>=i||jn(t,o,0,X)>=i||jn(t,o,D,0)>=i)}else if(t.type===Qt.o){if(O=t.bounds,o=O.x,d=O.y,E=O.x+O.width,O=O.y+O.height,e.x>E&&e.x<o&&e.y>O&&e.y<d&&pn(e.x,e.y,o,d,o,O)>i&&pn(e.x,e.y,o,d,E,d)>i&&pn(e.x,e.y,E,O,o,O)>i&&pn(e.x,e.y,E,O,E,d)>i)return!1;if(o=Math.sqrt(i),n){if(this.fill===null?sa(t,e.x,e.y,o):jo(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(d=o.segments.s,E=d.length,O=0;O<E;O++)switch(X=d[O],X.type){case $i:case yi:if(a=X.endX,D=X.endY,e.zd(a,D)>i)return!1;break;case ko:var se=An();if(lt.Qe(a,D,X.point1X,X.point1Y,X.point2X,X.point2Y,X.endX,X.endY,.8,se),a=r(se,e),Nn(se),a||(a=X.endX,D=X.endY,e.zd(a,D)>i))return!1;break;case Ws:if(se=An(),lt.ep(a,D,X.point1X,X.point1Y,X.endX,X.endY,.8,se),a=r(se,e),Nn(se),a||(a=X.endX,D=X.endY,e.zd(a,D)>i))return!1;break;case go:case Zs:se=X.type===go?gs(X,o):Bs(X,o,a,D);var ge=se.length;if(ge===0){if(a=X.type===go?X.centerX:X.endX,D=X.type===go?X.centerY:X.endY,e.zd(a,D)>i)return!1;break}X=null;for(var ve=An(),Te=0;Te<ge;Te++)if(X=se[Te],ve.length=0,lt.Qe(X[0],X[1],X[2],X[3],X[4],X[5],X[6],X[7],.8,ve),r(ve,e))return Nn(ve),!1;Nn(ve),X!==null&&(a=X[6],D=X[7]);break;default:nt("Unknown Segment type: "+X.type)}}return!0}}}return!1},ye.qc=function(){this.ua=null},ye.kq=function(){return this.ig};function I0(e){var t=e.diagram;t!==null&&t.undoManager.isUndoingRedoing||(e.segmentOrientation=Ep,e.toArrow!=="None"?(e.segmentIndex=-1,e.alignmentFocus=Zo):e.fromArrow!=="None"&&(e.segmentIndex=0,e.alignmentFocus=new Cn(1-Zo.x,Zo.y)))}ur.makeGeometry=function(e,t,n){if(e.toArrow!=="None")var r=$u[e.toArrow];else e.fromArrow!=="None"?r=$u[e.fromArrow]:(r=lt.Ze[e.figure],typeof r=="string"&&(r=lt.Ze[r]),r===void 0&&nt("Unknown Shape.figure: "+e.figure),r=r(e,t,n),r.Sk=t,r.Rk=n);if(r===null){var i=lt.Ze.Rectangle;typeof i=="function"&&(r=i(e,t,n))}return r};function O0(e){var t=$u[e];if(t===void 0){var n=e.toLowerCase();if(n==="none")return"None";if(t=$u[n],t===void 0){var r=null,i;for(i in lt.um)if(i.toLowerCase()===n){r=i;break}if(r!==null)return e=Qt.parse(lt.um[r],!1),$u[r]=e,n!==r&&($u[n]=r),r}}return typeof t=="string"?t:t instanceof Qt?e:null}Dn.Object.defineProperties(ur.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),Ns(this)&&(e=this.part,e!==null&&no(this,e,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(e){e=Qt.parse(e);var t=e.normalize();this.geometry=e,this.position=e=Pe.allocAt(-t.x,-t.y),Pe.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&&vf(e,"Shape.fill"),e instanceof fi&&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&&vf(e,"Shape.stroke"),e instanceof fi&&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 hn(e,"value >= 0",ur,"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"?hn(e,'"butt", "round", or "square"',ur,"strokeCap"):(Wh(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"?hn(e,'"miter", "bevel", or "round"',ur,"strokeJoin"):(Wh(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){Wh(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)||nt("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&&(Wh(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=lt.Ze[e];typeof n=="function"?n=e:(n=lt.Ze[e.toLowerCase()])||nt("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=O0(e);n===null?nt("Unknown Shape.toArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new rh),this.Ua.V=n,this.Rd=null,this.qc(),this.v(),I0(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=O0(e);n===null?nt("Unknown Shape.fromArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new rh),this.Ua.j=n,this.Rd=null,this.qc(),this.v(),I0(this),this.g("fromArrow",t,n))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Bo},set:function(e){var t=this.spot1;t.D(e)||(e=e.J(),Wh(this),this.Na.fg=e,this.v(),this.g("spot1",t,e))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Bo},set:function(e){var t=this.spot2;t.D(e)||(e=e.J(),Wh(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&&(Wh(this),this.Na.br=e,this.N(),this.g("pathPattern",t,e))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:rr},set:function(e){var t=this.geometryStretch;t!==e&&(Wh(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 Xu),this.fa.Tk=e;var n=this.diagram;n!==null&&this.panel===n.grid&&Ru(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 Xu),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 Xu),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 Xu),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}}}),ur.prototype.intersectsRect=ur.prototype.Yc,ur.prototype.containedInRect=ur.prototype.fh,ur.prototype.getNearestIntersectionPoint=ur.prototype.rs,ur.prototype.getDocumentBounds=ur.prototype.mi,ur.prototype.getDocumentPoint=ur.prototype.ga;var $u=new Or,Fv=new Or;ur.className="Shape",ur.getFigureGenerators=function(){var e=new wt,t;for(t in lt.Ze)t!==t.toLowerCase()&&e.add(t,lt.Ze[t]);return e.freeze(),e},ur.defineFigureGenerator=function(e,t){var n=e.toLowerCase(),r=lt.Ze;r[e]=t,r[n]=e},ur.getArrowheadGeometries=function(){var e=new wt;for(r in lt.um)if($u[r]===void 0){var t=Qt.parse(lt.um[r],!1);$u[r]=t,t=r.toLowerCase(),t!==r&&($u[t]=r)}for(var n in $u)if(n!==n.toLowerCase()){var r=$u[n];r instanceof Qt&&e.add(n,r)}return e.freeze(),e},ur.defineArrowheadGeometry=function(e,t){var n=null;typeof t=="string"?n=Qt.parse(t,!1):n=t,t=e.toLowerCase(),t!=="none"&&e!==t||nt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+e);var r=$u;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=rr,this.gg=this.fg=Bo}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 Wi(e,t){return ht.call(this),Xg||(Ia=bo?new Hl(null).context:null,Xg=!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}Kn(Wi,ht),Wi.prototype.cloneProtected=function(e){ht.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 Mu(e){e.da===null?e.da=new Vv:e.da.nc&&(e.da=e.da.copy())}ye=Wi.prototype,ye.th=function(){ht.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function L0(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===Wi?this.wrap=e:ht.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(){ht.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=mp(this),d=e.textAlign=this.textAlign,E=t.tn;d==="start"?d=E?"right":"left":d==="end"&&(d=E?"left":"right"),E=this.isUnderline;var O=this.isStrikethrough;So(this,e,this.xc,!0,!1,n,r),(E||O)&&So(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 se=t.scale;switch(8>(X*X+D*D)*se*se&&(n=!0),t.ib!==e&&(n=!1),t.ib instanceof Qa&&(n=!1),t.Gf("textGreeking")===!1&&(n=!1),t=this.spacingAbove,X=this.spacingBelow,this.flip){case Ur:e.translate(i,0),e.scale(-1,1);break;case mr:e.translate(0,o),e.scale(1,-1);break;case xi:e.translate(i,o),e.scale(-1,-1)}if(e.yc(),D=this.Gc,se=(t+a+X)*D,o>se&&(r=this.verticalAlignment,r=r.y*o-r.y*se+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,d,E,O);else if(this.Qc!==null&&this.Qb!==null)for(se=0;se<D;se++){var ge=this.Qc[se];ge>i&&(ge=i),r+=t,this.Oj(this.Qb[se],e,0,r,i,a,ge,n,d,E,O),r+=a+X}switch(this.flip){case Ur:e.scale(-1,1),e.translate(-i,0);break;case mr:e.scale(1,-1),e.translate(0,-o);break;case xi:e.scale(-1,-1),e.translate(-i,-o)}}},ye.Oj=function(e,t,n,r,i,o,a,d,E,O,D){var X=0;if(d)E==="left"?X=0:E==="right"?X=i-a:E==="center"&&(X=(i-a)/2),t.fillRect(n+X,r+.25*o,a,1);else{if(E==="left"?X=0:E==="right"?X=i:E==="center"&&(X=i/2),i=Vg!==null?Vg(this,o):.75*o,t.fillText(e,n+X,r+i),e=o/20|0,e===0&&(e=1),E==="right"?X-=a:E==="center"&&(X-=a/2),O){d=Kg!==null?Kg(this,o):.8*o,E=n+X,O=r+d,i=n+X+a,d=r+d;var se=e;t.beginPath(),t.lineWidth=se,t.moveTo(E,O),t.lineTo(i,d),t.stroke(),t.Se(),t instanceof Qa&&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 Qa&&t.ad.classList.add("gojs-td"))}},ye.kk=function(e,t,n){if(!ht.prototype.kk.call(this,e,t,n))return!1;if(So(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++)f0(e,t[n],!1)}else t=this.svg,t.innerHTML=this.text,f0(e,t,!0);return!0},ye.nk=function(e){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:ht.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;Ia!==null&&U0!==o&&(U0=Ia.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 d=a=0,E=!1;!E;){var O=o.indexOf(`
`,d);O===-1&&(O=o.length,E=!0),d=o.substr(d,O-d),this.formatting===vp&&(d=d.trim()),a=Math.max(a,su(d)),d=O+1}o=a}else a=o.indexOf(`
`,0),0<=a&&(o=o.substr(0,a)),o=su(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=D0(this,o),isNaN(this.desiredSize.height)?a=Math.min(a,t/this.scale):a=this.desiredSize.height,E=a,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Yg&&(t=this.Ae,t=this.overflow===Yg?M0(t):0,O=this.spacingAbove+this.spacingBelow,O=Math.max(0,mp(this)+O),E=Math.min(this.maxLines-1,Math.max(Math.floor(E/O+.01)-1,0)),!(E+1>=this.Qb.length))){for(this.l|=16777216,O=this.Qb[E],t=Math.max(1,e-t);su(O)>t&&1<O.length;)O=O.substr(0,O.length-1);O+=yp,t=su(O),this.Qb[E]=O,this.Qb=this.Qb.slice(0,E+1),this.Qc[E]=t,this.Qc=this.Qc.slice(0,E+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===P0||isNaN(this.desiredSize.width))&&(o=isNaN(e)?this.Cb:Math.min(e,this.Cb)),o=Math.max(n,o),a=Math.max(r,a),ai(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){ta(this,e,t,n,r)};function gp(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===vp;i&&(t=t.trim());var o=0,a=e.Ae,d=e.spacingAbove+e.spacingBelow;d=Math.max(0,mp(e)+d);var E=e.overflow===Yg?M0(a):0;if(e.Gc>=e.maxLines)r!==null&&r.h(0,d);else if(a=t,e.wrap===Uv){e.Le=1;var O=su(t);if(E===0||O<=n)e.Cb=Math.max(e.Cb,O),gp(e,t,e.Cb),r!==null&&r.h(O,d);else{for(o=od(e,a),a=a.substr(o.length),t=od(e,a),O=su(o+t);0<t.length&&O<=n;)o+=t,a=a.substr(t.length),t=od(e,a),O=o+t,i&&(O=O.trim()),O=su(O);for(i&&(t=t.trim()),o+=t,n=Math.max(1,n-E);su(o)>n&&1<o.length;)o=o.substr(0,o.length-1);e.l|=16777216,o+=yp;var D=su(o);e.Cb=D,gp(e,o,D),r!==null&&r.h(D,d)}}else{for(E=0,a.length===0&&(E=1,gp(e,a,0));0<a.length;){for(t=od(e,a),a=a.substr(t.length);su(t)>n;){var X=1;for(O=su(t.substr(0,X)),D=0;O<=n;)X++,D=O,O=su(t.substr(0,X));if(X===1){var se=O;o=Math.max(o,O)}else se=D,o=Math.max(o,D);if(X--,1>X&&(X=1),gp(e,t.substr(0,X),se),E++,t=t.substr(X),e.Gc+E>e.maxLines)break}for(D=od(e,a),O=su(t+D);0<D.length&&O<=n;)t+=D,a=a.substr(D.length),D=od(e,a),O=t+D,i&&(O=O.trim()),O=su(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=su(t),o=Math.max(o,D)),gp(e,t,X),E++,e.Gc+E>e.maxLines))break}e.Le=Math.min(e.maxLines,E),e.Cb=Math.max(e.Cb,o),r!==null&&r.h(e.Cb,d*e.Le)}}function od(e,t){if(e.wrap===F0)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===B0&&(n=Math.min(n,r+1));r<n&&i.test(t.charAt(r));)r++;return r>=t.length?t:t.substr(0,r)}function su(e){return Ia===null?8*e.length:Ia.measureText(e).width}function mp(e){if(e.df!==null)return e.df;var t=e.Ae;if(Ia===null){var n=16;return e.df=n}return Gv[t]!==void 0&&5e3>j0?n=Gv[t]:(n=1.3*Ia.measureText("M").width,Gv[t]=n,j0++),e.df=n}function M0(e){if(Ia===null)return 6;if($g[e]!==void 0&&5e3>Wv)var t=$g[e];else t=Ia.measureText(yp).width,$g[e]=t,Wv++;return t}function D0(e,t){var n=e.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),r=e.spacingAbove+e.spacingBelow;if(r=Math.max(0,mp(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,d=!1;!d;){if(a=n.indexOf(`
`,o),a===-1&&(a=n.length,d=!0),o<=a){if(o=n.substr(o,a-o),e.wrap!==Uv){e.Le=0;var E=un.alloc();jv(e,o,t,E),i+=E.height,un.free(E),e.Gc+=e.Le}else jv(e,o,t,null),i+=r,e.Gc++;e.Gc===e.maxLines&&(d=!0)}o=a+1}return e.Lq=i}Dn.Object.defineProperties(Wi.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"||(Mu(this),this.da.Or=e,this.N(),this.g("textAlign",t,e))}},flip:{get:function(){return this.da!==null?this.da.Xf:jt},set:function(e){var t=this.flip;t!==e&&(Mu(this),this.da.Xf=e,this.N(),this.g("flip",t,e))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:bl},set:function(e){var t=this.verticalAlignment;t.D(e)||(e=e.J(),Mu(this),this.da.Yr=e,ha(this),this.g("verticalAlignment",t,e))}},naturalBounds:{get:function(){if(!this.dc.w()){var e=un.alloc();jv(this,this.ec,999999,e);var t=e.width;un.free(e),e=D0(this,t);var n=this.desiredSize;isNaN(n.width)||(t=n.width),isNaN(n.height)||(e=n.height),ai(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&&(Mu(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&&(Mu(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&&vf(e,"TextBlock.stroke"),e instanceof fi&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return mp(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&&(Mu(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&&(Mu(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 Xu),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 Xu),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 Xu),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 Xu),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 Xu),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&&(Mu(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&&(Mu(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&&(Mu(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&&(Mu(this),this.da.Er=e,this.v(),this.g("spacingBelow",t,e))}},formatting:{get:function(){return this.da!==null?this.da.gq:vp},set:function(e){var t=this.formatting;t!==e&&(Mu(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&&hn(e,"> 0",Wi,"maxLines"),Mu(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 Vg=null,Kg=null,Uv=new Ut(Wi,"None",0),P0=new Ut(Wi,"WrapFit",1),Hv=new Ut(Wi,"WrapDesiredSize",2),F0=new Ut(Wi,"WrapBreakAll",3),zv=new Ut(Wi,"OverflowClip",0),Yg=new Ut(Wi,"OverflowEllipsis",1),vp=new Ut(Wi,"FormatTrim",0),B0=new Ut(Wi,"FormatNone",0),P1=/[ \u200b\u00ad]/,Gv=new Or,j0=0,$g=new Or,Wv=0,yp="...",U0="",Ia=null,Xg=!1;Wi.className="TextBlock";function Vv(){this.nc=!1,this.Hd=null,this.Xf=jt,this.gq=vp,this.Jq=1/0,this.$q=zv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=bl,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},Wi.getEllipsis=function(){return yp},Wi.setEllipsis=function(e){yp=e,$g=new Or,Wv=0},Wi.getBaseline=function(){return Vg},Wi.setBaseline=function(e){Vg=e},Wi.getUnderline=function(){return Kg},Wi.setUnderline=function(e){Kg=e},Wi.isValidFont=function(e){if(Xg||(Ia=bo?new Hl(null).context:null,Xg=!0),Ia===null)return!0;var t=Ia.font;if(e===t||e==="10px sans-serif")return!0;Ia.font="10px sans-serif",Ia.font=e;var n=Ia.font;if(n!=="10px sans-serif")return Ia.font=t,!0;Ia.font="19px serif";var r=Ia.font;return Ia.font=e,n=Ia.font,Ia.font=t,n!==r},Wi.FormatNone=B0,Wi.FormatTrim=vp,Wi.None=Uv,Wi.OverflowClip=zv,Wi.OverflowEllipsis=Yg,Wi.WrapBreakAll=F0,Wi.WrapDesiredSize=Hv,Wi.WrapFit=P0;function Xu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Xu.prototype.copy=function(){var e=new Xu;return e.Tk=this.Tk,e.u=this.u,e.j=this.j,e.F=this.F,e.o=this.o,e},Xu.className="GradElementSettings";function Oa(e,t){ht.call(this),this.Eg=null,this.qo="",this.Xg=Da,this.Nk=Yt,this.Zg=this.Hd=null,this.Mk=ir,this.Xf=jt,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 sd;Kn(Oa,ht),Oa.prototype.cloneProtected=function(e){ht.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},Oa.prototype.qb=function(e){e===jt||e===Rn||e===kr?this.imageStretch=e:ht.prototype.qb.call(this,e)},Oa.prototype.toString=function(){return"Picture("+this.source+")#"+br(this)};function ad(e){e===void 0&&(e=""),e!==""?sd[e]&&(delete sd[e],Zg--):(sd=new Or,Zg=0)}function H0(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 d=a.length,E=0;E<d;E++)o=a[E],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()||(Go(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=An();for(var d=0;d<i;d++)o.push(a[d]);if(t.hn)for(d=0;d<i;d++)a=o[d],a.Hd!==null&&a.Hd(a,n);Nn(o)}}t.Bg.clear()}},t.addEventListener("load",t.Fq),t.addEventListener("error",t.Yp),t.qy=!0)}Oa.prototype.hA=function(){if(this.source!==""){ad(this.source);var e=this.source;this.source="",this.source=e}},Oa.prototype.redraw=function(){this.N(),this.Uc=!0},Oa.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 zh)){var i=e instanceof Qa;r=this.naturalBounds;var o=0,a=0,d=this.qn,E=d?+n.width:n.naturalWidth;if(d=d?+n.height:n.naturalHeight,E===void 0&&n.videoWidth&&(E=n.videoWidth),d===void 0&&n.videoHeight&&(d=n.videoHeight),E=E||r.width,d=d||r.height,E!==0&&d!==0){var O=E,D=d;this.sourceRect.w()&&(o=this.Xg.x,a=this.Xg.y,E=this.Xg.width,d=this.Xg.height);var X=E,se=d,ge=this.Nk,ve=this.Mk;switch(ge){case jt:if(this.sourceRect.w())break;X>=r.width&&(o=o+ve.offsetX+(X*ve.x-r.width*ve.x)),se>=r.height&&(a=a+ve.offsetY+(se*ve.y-r.height*ve.y)),E=Math.min(r.width,X),d=Math.min(r.height,se);break;case Yt:X=r.width,se=r.height;break;case Rn:case kr:ge===Rn?(ge=Math.min(r.height/se,r.width/X),X*=ge,se*=ge):ge===kr&&(ge=Math.max(r.height/se,r.width/X),X*=ge,se*=ge,X>=r.width&&(o=(o+ve.offsetX+(X*ve.x-r.width*ve.x)/X)*E),se>=r.height&&(a=(a+ve.offsetY+(se*ve.y-r.height*ve.y)/se)*d),E*=1/(X/r.width),d*=1/(se/r.height),X=r.width,se=r.height)}ge=this.Df()*t.scale;var Te=X*ge*se*ge,Ke=E*d/Te,Ge=n.__goCache;ge=null;var Xe=F1;if(!i){if(n.sq&&Ge!==void 0&&4<Te&&Ke>Xe*Xe)for(Ge.gi===null&&(G0(Ge,4,O,D,n),G0(Ge,16,O,D,n)),i=Ge.gi,O=i.length,D=0;D<O&&i[D].ratio*i[D].ratio<Ke;D++)ge=i[D];if(!t.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{i=new Hl(null).context;try{i.drawImage(this.Eg,0,0)}catch(Ze){this.en=!1}try{i.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Ze){this.vl=!0}}if(this.vl)return}}switch(i=X<r.width?ve.offsetX+(r.width*ve.x-X*ve.x):0,ve=se<r.height?ve.offsetY+(r.height*ve.y-se*ve.y):0,this.flip){case Ur:e.translate(Math.min(r.width,X),0),e.scale(-1,1);break;case mr:e.translate(0,Math.min(r.height,se)),e.scale(1,-1);break;case xi:e.translate(Math.min(r.width,X),Math.min(r.height,se)),e.scale(-1,-1)}if(e.yc(),t.Gf("pictureRatioOptimization")&&!t.$i&&Ge!==void 0&&ge!==null&&ge.ratio!==1){e.save(),t=ge.ratio;try{e.drawImage(ge.source,o/t,a/t,Math.min(ge.source.width,E/t),Math.min(ge.source.height,d/t),i,ve,Math.min(r.width,X),Math.min(r.height,se)),e instanceof Qa&&(this.bt=[o/t,a/t,Math.min(ge.source.width,E/t),Math.min(ge.source.height,d/t),i,ve,Math.min(r.width,X),Math.min(r.height,se)])}catch(Ze){this.en=!1}e.restore()}else try{e.drawImage(n,o,a,E,d,i,ve,Math.min(r.width,X),Math.min(r.height,se)),e instanceof Qa&&(this.bt=[o,a,E,d,i,ve,Math.min(r.width,X),Math.min(r.height,se)])}catch(Ze){this.en=!1}switch(this.flip){case Ur:e.scale(-1,1),e.translate(-Math.min(r.width,X),0);break;case mr:e.scale(1,-1),e.translate(0,-Math.min(r.height,se));break;case xi:e.scale(-1,-1),e.translate(-Math.min(r.width,X),-Math.min(r.height,se))}}}}},Oa.prototype.Wl=function(e,t,n,r){var i=this.desiredSize,o=Ra(this,!0),a=this.Eg,d=this.qn,E=0,O=0;(d||!this.al&&a&&a.complete)&&(this.al=!0),a===null?(isFinite(i.width)||(e=0),isFinite(i.height)||(t=0)):(E=d?+a.width:a.naturalWidth,O=d?+a.height:a.naturalHeight),isFinite(i.width)||o===Yt||o===Ln?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.width:a!==null&&(e=E)),n=0):a!==null&&this.al!==!1&&(e=this.sourceRect.w()?this.sourceRect.width:E),isFinite(i.height)||o===Yt||o===Gn?(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)),ai(this.dc,e,t),this.Ge(0,0,e,t)},Oa.prototype.eh=function(e,t,n,r){ta(this,e,t,n,r)},Dn.Object.defineProperties(Oa.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||nt("Picture.element must be an instance of Image, Canvas, or Video, not: "+e);var r=this.diagram;r!==null&&Jd(r,this),this.Eg=e,e!==null&&n&&e.Bg===void 0&&(e.Bg=new Wt),r!==null&&n&&eh(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()||(Go(this,!1),this.v())):n&&H0(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=sd;if(bo){var r=null;if(n[e]!==void 0)r=n[e];else if(e!==""){30<Zg&&(ad(),n=sd),r=vi("img"),r.hn=!0,H0(this,r);var i=this.rl;i!==null&&(r.crossOrigin=i(this)),r.src=e,n[e]=r,Zg++}this.element=r,r!==null&&r.__goCache===void 0&&(r.__goCache=new z0),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}}}),Oa.prototype.redraw=Oa.prototype.redraw,Oa.prototype.reloadSource=Oa.prototype.hA;var Zg=0,F1=4;Oa.className="Picture",sd=new Or,Oa.clearCache=ad;function z0(){this.gi=null}function G0(e,t,n,r,i){e.gi===null&&(e.gi=[]);var o=new Hl(null),a=o.context,d=1/t;o.width=n/t,o.height=r/t,o.width!==0&&o.height!==0&&(t=new W0(o.Oa,t),n=1,0<e.gi.length&&(n=e.gi[e.gi.length-1],i=n.source,n=n.ratio),a.setTransform(d*n,0,0,d*n,0,0),a.yc(),a.drawImage(i,0,0),e.gi.push(t))}z0.className="PictureCacheArray";function W0(e,t){this.source=e,this.ratio=t}W0.className="PictureCacheInstance";function ld(){this.os=new Qt,this.mc=null}ld.prototype.reset=function(e){e!==null?(e.ka(),this.os=e,e.figures.clear()):this.os=new Qt,this.mc=null};function ud(e,t,n,r,i,o){e.mc=new To,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()}ld.prototype.moveTo=function(e,t,n){n===void 0&&(n=!1);var r=new Fr($i);r.endX=e,r.endY=t,n&&r.close(),this.mc.segments.add(r)},ld.prototype.lineTo=function(e,t,n){n===void 0&&(n=!1);var r=new Fr(yi);r.endX=e,r.endY=t,n&&r.close(),this.mc.segments.add(r)};function Ic(e,t,n,r,i,o,a){var d;d===void 0&&(d=!1);var E=new Fr(ko);E.point1X=t,E.point1Y=n,E.point2X=r,E.point2Y=i,E.endX=o,E.endY=a,d&&E.close(),e.mc.segments.add(E)}function Jg(e,t,n,r,i){var o;o===void 0&&(o=!1);var a=new Fr(Ws);a.point1X=t,a.point1Y=n,a.endX=r,a.endY=i,o&&a.close(),e.mc.segments.add(a)}ld.prototype.arcTo=function(e,t,n,r,i,o,a){o===void 0&&(o=0),a===void 0&&(a=!1);var d=new Fr(go);d.startAngle=e,d.sweepAngle=t,d.centerX=n,d.centerY=r,d.radiusX=i,d.radiusY=o!==0?o:i,a&&d.close(),this.mc.segments.add(d)};function j1(e,t,n,r,i,o,a,d){var E;E===void 0&&(E=!1),t=new Fr(Zs,a,d,t,n,r,i,o),E&&t.close(),e.mc.segments.add(t)}function V0(e){var t=Qg;return t!==null?(Qg=null,t.reset(e),t):(t=new ld,t.reset(e),t)}var Qg=null;ld.className="StreamGeometryContext";function Xs(e,t){var n=e.toLowerCase(),r=lt.Ze;r[e]=t,r[n]=e}Xs("Rectangle",function(e,t,n){e="r"+t+","+n;var r=lt.Mf[e];return r!==void 0||(r=new Qt(Qt.u),r.endX=t,r.endY=n,lt.Nf<lt.vm&&(lt.Mf[e]=r,lt.Nf++)),r}),Xs("Square",function(e,t,n){e="s"+t+","+n;var r=lt.Mf[e];return r!==void 0||(r=new Qt(Qt.u),r.endX=t,r.endY=n,r.defaultStretch=Rn,lt.Nf<lt.vm&&(lt.Mf[e]=r,lt.Nf++)),r}),Xs("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=lt.Mf[r];if(i!==void 0)return i;var o=e*lt.wg;return i=new Qt().add(new To(e,0,!0).add(new Fr(yi,t-e,0)).add(new Fr(ko,t,e,t-o,0,t,o)).add(new Fr(yi,t,n-e)).add(new Fr(ko,t-e,n,t,n-o,t-o,n)).add(new Fr(yi,e,n)).add(new Fr(ko,0,n-e,o,n,0,n-o)).add(new Fr(yi,0,e)).add(new Fr(ko,e,0,0,o,o,0).close())),1<o&&(i.spot1=new Cn(0,0,o,o),i.spot2=new Cn(1,1,-o,-o)),lt.Nf<lt.vm&&(lt.Mf[r]=i,lt.Nf++),i}),Xs("Border","RoundedRectangle"),Xs("Ellipse",function(e,t,n){e="e"+t+","+n;var r=lt.Mf[e];return r!==void 0||(r=new Qt(Qt.F),r.endX=t,r.endY=n,r.spot1=Sl,r.spot2=Os,lt.Nf<lt.vm&&(lt.Mf[e]=r,lt.Nf++)),r}),Xs("Circle",function(e,t,n){e="c"+t+","+n;var r=lt.Mf[e];return r!==void 0||(r=new Qt(Qt.F),r.endX=t,r.endY=n,r.spot1=Sl,r.spot2=Os,r.defaultStretch=Rn,lt.Nf<lt.vm&&(lt.Mf[e]=r,lt.Nf++)),r}),Xs("TriangleRight",function(e,t,n){return new Qt().add(new To(0,0).add(new Fr(yi,t,.5*n)).add(new Fr(yi,0,n).close())).pm(0,.25,.5,.75)}),Xs("TriangleDown",function(e,t,n){return new Qt().add(new To(0,0).add(new Fr(yi,t,0)).add(new Fr(yi,.5*t,n).close())).pm(.25,0,.75,.5)}),Xs("TriangleLeft",function(e,t,n){return new Qt().add(new To(t,n).add(new Fr(yi,0,.5*n)).add(new Fr(yi,t,0).close())).pm(.5,.25,1,.75)}),Xs("TriangleUp",function(e,t,n){return new Qt().add(new To(t,n).add(new Fr(yi,0,n)).add(new Fr(yi,.5*t,0).close())).pm(.25,.5,.75,1)}),Xs("Triangle","TriangleUp"),Xs("Diamond",function(e,t,n){return new Qt().add(new To(.5*t,0).add(new Fr(yi,0,.5*n)).add(new Fr(yi,.5*t,n)).add(new Fr(yi,t,.5*n).close())).pm(.25,.25,.75,.75)}),Xs("LineH",function(e,t,n){return e=new Qt(Qt.j),e.startX=0,e.startY=n/2,e.endX=t,e.endY=n/2,e}),Xs("LineV",function(e,t,n){return e=new Qt(Qt.j),e.startX=t/2,e.startY=0,e.endX=t/2,e.endY=n,e}),Xs("None","Rectangle"),Xs("BarH","Rectangle"),Xs("BarV","Rectangle"),Xs("MinusLine","LineH"),Xs("PlusLine",function(e,t,n){return new Qt().add(new To(0,n/2,!1).add(new Fr(yi,t,n/2)).add(new Fr($i,t/2,0)).add(new Fr(yi,t/2,n)))}),Xs("XLine",function(e,t,n){return new Qt().add(new To(0,n,!1).add(new Fr(yi,t,0)).add(new Fr($i,0,0)).add(new Fr(yi,t,n)))}),Xs("LineRight",function(e,t,n){return new Qt().add(new To(.25*t,0,!1).add(new Fr(yi,.75*t,.5*n)).add(new Fr(yi,.25*t,n)))}),Xs("LineDown",function(e,t,n){return new Qt().add(new To(0,.25*n,!1).add(new Fr(yi,.5*t,.75*n)).add(new Fr(yi,t,.25*n)))}),Xs("LineLeft",function(e,t,n){return new Qt().add(new To(.75*t,0,!1).add(new Fr(yi,.25*t,.5*n)).add(new Fr(yi,.75*t,n)))}),Xs("LineUp",function(e,t,n){return new Qt().add(new To(0,.75*n,!1).add(new Fr(yi,.5*t,.25*n)).add(new Fr(yi,t,.75*n)))}),lt.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=Pi,this.ir=null,this.jr="",this.lr=Bo,this.Gq="",this.Hq=xr,this.Pq=vn,this.Kq=Bn,this.Up=null,this.Cq=127,this.zr=On,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 Pn(e,t){e===void 0||e instanceof $o||typeof e=="string"?Zt.call(this,e):(Zt.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 Pe(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Ct,this.Rh=null,this.ag=NaN,t&&Object.assign(this,t)}Kn(Pn,Zt),Pn.prototype.cloneProtected=function(e){Zt.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=Pn.prototype,ye.Af=function(e){Zt.prototype.Af.call(this,e),e.oh(),e.Ug=null,e.nf=null,e.Rh=null},ye.toString=function(){var e=Ft(this.constructor)+"#"+br(this);return this.data!==null&&(e+="("+hr(this.data)+")"),e};function La(e){e.P===null?e.P=new Kv:e.P.nc&&(e.P=e.P.copy())}ye.th=function(){Zt.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},ye.gk=function(e,t,n,r,i,o,a){var d=this.diagram;d!==null&&(e===uo&&t==="elements"?i instanceof Zt?Gh(i,function(E){by(d.partManager,E),Dh(d,E)}):eh(d,i):e===po&&t==="elements"&&(i instanceof Zt?Gh(i,function(E){Sy(d.partManager,E,d)}):Jd(d,i)),d.cb(e,t,n,r,i,o,a))},ye.La=function(e){if(Zt.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 Zt&&Gh(i,function(o){o.data!==null&&o.La()})}for(t=this.adornments;t.next();)t.value.La(e)}},Pn.prototype.updateRelationshipsFromData=function(){var e;this.data!==null&&((e=this.diagram)===null||e===void 0||e.partManager.updateRelationshipsFromData(this))},Pn.prototype.Pj=function(e){var t=this.Qf;return t===null?null:t.I(e)},Pn.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 wt),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)))}}},Pn.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)}},Pn.prototype.Ej=function(){var e=this.Qf;if(e!==null){var t=An();for(e=e.iterator;e.next();)t.push(e.key);e=t.length;for(var n=0;n<e;n++)this.Jf(t[n]);Nn(t)}},Pn.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 tr?e.groupSelectionAdornmentTemplate:e.nodeSelectionAdornmentTemplate),!(n instanceof Zr))break e;zl(n),n=n.copy(),n!==null&&(this.ph()&&this.selectionObject===this.path&&(n.type=Zt.Link),n.adornedObject=t)}if(n!==null){n.type===Zt.Link&&n.v(),this.bh("Selection",n);break e}}this.Jf("Selection")}for(U1(this,e),t=this.adornments;t.next();)t.value.La()}},Pn.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 qg(e){if(ih(e)===!1){Xv(e,!0),e.Uk();var t=e.diagram;t!==null&&(t.De.add(e),t.$b())}}function K0(e){if(e.G|=2097152,ih(e)!==!1){var t=e.position,n=e.location;n.w()&&t.w()||X0(e,t,n),n=e.Ib;var r=Ct.alloc().assign(n);n.ka(),n.x=t.x,n.y=t.y,n.freeze(),e.Xl(r,n),Ct.free(r),Xv(e,!1)}}Pn.prototype.Ge=function(e,t,n,r){var i=this.uc;i.h(e,t,n,r),this.Lb===null&&(this.Lb=new Vn);var o=this.Lb;o.reset(),this.no(o,e,t,n,r),this.Lb=o,o.ws()||o.pp(i)},Pn.prototype.no=function(e,t,n,r,i){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=ir;this.locationSpot.sb()&&(o=this.locationSpot);var a=Pe.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),Pe.free(a)}},Pn.prototype.move=function(e,t){t===!0?this.location=e:this.position=e},Pn.prototype.moveTo=function(e,t,n){e=Pe.allocAt(e,t),this.move(e,n),Pe.free(e)},Pn.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())},Pn.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())},Pn.prototype.fb=function(e){if(this.name===e)return this;var t=this.Rh;if(t===null&&(this.Rh=t=new wt),t.I(e)!==null)return t.I(e);var n=Zt.prototype.fb.call(this,e);return n!==null?(t.set(e,n),n):(t.set(e,null),null)};function Oc(e,t,n,r){r===void 0&&(r=new Pe),n=n.Mc()?ir: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}Pn.prototype.mi=function(e){return e===void 0&&(e=new Ct),e.assign(this.actualBounds)},Pn.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Y0(e){var t=Pe.alloc(),n=e.locationObject,r=n.naturalBounds,i=n instanceof ur?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 Kh(e,t){var n=e.py;isNaN(e.ag)&&(e.ag=C0(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}Pn.prototype.arrange=function(){if(fa(this)===!1)K0(this);else{Vu(this,!1);var e=this.Ib,t=Ct.alloc();t.assign(e);var n=oh(this);this.eh(0,0,this.uc.width,this.uc.height);var r=this.position;X0(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()||lt.B(t.width,e.width)&&lt.B(t.height,e.height)||0<=this.vw&&this.C(16),Ct.free(t),Xv(this,!1)}},ye=Pn.prototype,ye.Xl=function(e,t){var n=this.diagram;if(n!==null){var r=!1;if(n.Zi===!1&&e.w()){var i=Ct.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),Ct.free(i)}!(this.G&65536)&&e.D(t)||Q0(this,r,n),n.N(),!e.w()&&!t.w()||Pr(e,t)||(this instanceof fn&&!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&&$0(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 Pe(r.x+(e.x-t),r.y+(e.y-n)),this.g("location",r,this.ke.copy())),ih(this)===!1&&fa(this)===!1&&(qg(this),K0(this)),!0};function $0(e,t,n,r,i){t===null||e instanceof Zr||(t=t.animationManager,t.zb&&Fl(t,e,new Pe(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;ih(this)||fa(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)}qg(this)},ye.Av=function(){this.G&=-2097153,qg(this)};function X0(e,t,n){var r=Y0(e),i=e.diagram,o=n.w(),a=t.w();o&&a?e.G&2097152?Z0(e,t,n,i,r):J0(e,t,n,i,r):o?Z0(e,t,n,i,r):a&&J0(e,t,n,i,r),e.G|=2097152,Pe.free(r),e.Uk()}function Z0(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 Zr||Fl(n,e,new Pe(o,a),t),r||t.x===o&&t.y===a||e.g("position",new Pe(o,a),t.copy()))}function J0(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 Q0(e,t,n){Zv(e,!1),e instanceof fn&&Tc(n,e),e.layer.isTemporary||t||n.Ya(),t=e.Ib;var r=n.viewportBounds;r.w()?oh(e)?(Nt(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||tb||(tb=!0,yn('Should not change the class of the Part when changing category from "'+n+'" to "'+r+'"'),yn(" Old class: "+Ft(e.constructor)+", new class: "+Ft(t.constructor)+", part: "+e.toString())),e.Ej();var i=e.data;n=e.layerName;var o=e.isSelected,a=e.isHighlighted,d=!0,E=!0,O=!1;e instanceof fn&&(d=e.isTreeLeaf,E=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 fn&&(e.U=d?e.U|4:e.U&-5,e.U=E?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)}Pn.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},Pn.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},Pn.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},Pn.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},Pn.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},Pn.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},Pn.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},Pn.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},Pn.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 ih(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 oh(e){return(e.G&131072)!==0}ye=Pn.prototype,ye.Fd=function(e){this.G=e?this.G|131072:this.G&-131073};function em(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&&!fa(this)&&!ih(this)&&this.isVisible()&&this.Ib.w()&&e.N(Kh(this,this.Ib))},ye.v=function(){Zt.prototype.v.call(this);var e=this.diagram;e!==null&&(e.De.add(this),this instanceof fn&&this.labeledLink!==null&&ha(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 fn&&(t=t.labeledLink,t!==null)?Jv(e,t):0}ye.sz=function(){return q0(this,this)};function q0(e,t){var n=t.containingGroup;return n!==null||t instanceof fn&&(n=t.labeledLink,n!==null)?q0(e,n):t}ye.Td=function(e){return e instanceof tr?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 fn&&(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 tr&&em(t,!0),t instanceof fn){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 fn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup}for(t=this;t!==null;)t instanceof tr&&em(t,!1),t instanceof fn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup;return n},Pn.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var e=this.layer;return!(e!==null&&e.isTemporary||this instanceof fn&&this.isLinkLabel)},Pn.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 fn&&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 eb(e){return e.isVisible()?(e=e.layer,!(e!==null&&e.isTemporary)):!1}function sh(e,t,n,r,i,o){if(o===void 0&&(o=null),!(e.contains(t)||o!==null&&!o(t)||t instanceof Zr)){if(e.add(t),t instanceof fn){if(n&&t instanceof tr)for(var a=t.memberParts;a.next();)sh(e,a.value,n,r,i,o);if(i!==!1)for(a=t.linksConnected;a.next();){var d=a.value;if(!e.contains(d)){var E=d.fromNode,O=d.toNode;E=E===null||e.contains(E),O=O===null||e.contains(O),(i?E&&O:E||O)&&sh(e,d,n,r,i,o)}}if(1<r)for(t=t.Ou();t.next();)sh(e,t.value,n,r-1,i,o)}else if(t instanceof en)for(t=t.labelNodes;t.next();)sh(e,t.value,n,r,i,o)}}Dn.Object.defineProperties(Pn.prototype,{key:{get:function(){var e=this.diagram;if(e!==null)return e.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?ui: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(po,"parts",t,this,null,r,!0),r=e.oi(99999999,this,!0),t.visible!==e.visible&&this.Zb(e.visible),0<=r&&n.cb(uo,"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&&(La(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&&Ff(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 Zr?this.type!==Zt.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:vn},set:function(e){var t=this.minLocation;t.D(e)||(e=e.J(),La(this),this.P.Pq=e,this.g("minLocation",t,e))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Bn},set:function(e){var t=this.maxLocation;t.D(e)||(e=e.J(),La(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&&(La(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:xr},set:function(e){var t=this.locationSpot;t.D(e)||(e=e.J(),La(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,fa(this)===!1&&(qg(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)),$0(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 Zr)){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 Zr?this instanceof Zr&&(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&&(zl(n),n=n.copy(),n!==null&&$v(this,n,t,e))):(o!==null&&o.jm(r,e),n=_b(n.partManager,r,e),n!==null&&(zl(n),n=n.copy(),n===null||n instanceof en||(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&&(La(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&&(La(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&&(La(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 en?(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&&(La(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&&(La(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&&(La(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:Pi},set:function(e){var t=this.resizeCellSize;t.D(e)||(e=e.J(),La(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&&(La(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&&(La(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:Bo},set:function(e){var t=this.rotationSpot;t.D(e)||(e=e.J(),La(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&&nt("Cannot make a Group a member of itself: "+this.toString()),nt("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 tr&&n!==null&&n.ai.remove(this),this.Ah=e,e!==null?ny(e,this):this instanceof tr&&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 tr){for(n=new Wt,sh(n,this,!0,0,!0),n=n.iterator;n.next();)if(r=n.value,r instanceof fn)for(r=r.linksConnected;r.next();)cd(r.value)}if(this instanceof fn){for(n=this.linksConnected;n.next();)cd(n.value);n=this.labeledLink,n!==null&&cd(n)}this.g("containingGroup",t,e),e!==null&&(t=e.layer,t!==null&&Ff(t,-1,e))}}else nt("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&&(La(this),this.P.Kp=e,this.g("containingGroupChanged",t,e))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof fn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(e){var t=this.layoutConditions;t!==e&&(La(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&&(La(this),this.P.Up=e,this.g("dragComputation",t,e))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:On},set:function(e){var t=this.shadowOffset;t.D(e)||(e=e.J(),La(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&&(La(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&&(La(this),this.P.Vg=e,this.N(),this.g("shadowBlur",t,e))}}}),Pn.prototype.invalidateLayout=Pn.prototype.C,Pn.prototype.findCommonContainingGroup=Pn.prototype.px,Pn.prototype.isMemberOf=Pn.prototype.Td,Pn.prototype.findTopLevelPart=Pn.prototype.sz,Pn.prototype.findSubGraphLevel=Pn.prototype.oz,Pn.prototype.ensureBounds=Pn.prototype.Va,Pn.prototype.getDocumentBounds=Pn.prototype.mi,Pn.prototype.findObject=Pn.prototype.fb,Pn.prototype.moveTo=Pn.prototype.moveTo,Pn.prototype.invalidateAdornments=Pn.prototype.Wb,Pn.prototype.clearAdornments=Pn.prototype.Ej,Pn.prototype.removeAdornment=Pn.prototype.Jf,Pn.prototype.addAdornment=Pn.prototype.bh,Pn.prototype.findAdornment=Pn.prototype.Pj,Pn.prototype.updateTargetBindings=Pn.prototype.La;var tb=!1;Pn.className="Part",Pn.LayoutNone=0,Pn.LayoutAdded=1,Pn.LayoutRemoved=2,Pn.LayoutShown=4,Pn.LayoutHidden=8,Pn.LayoutNodeSized=16,Pn.LayoutGroupLayout=32,Pn.LayoutNodeReplaced=64,Pn.LayoutStandard=127,Pn.LayoutAll=16777215;function Zr(e,t){e===void 0||e instanceof $o||typeof e=="string"?Pn.call(this,e):(Pn.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)}Kn(Zr,Pn),Zr.prototype.toString=function(){var e=this.adornedPart;return"Adornment("+this.category+")"+(e!==null?e.toString():"")},Zr.prototype.updateRelationshipsFromData=function(){},Zr.prototype.Ul=function(e){var t=this.adornedObject,n=t==null?void 0:t.part;if(n instanceof en&&t instanceof ur){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 ur&&(i.ua=e)}}},Zr.prototype.si=function(){var e=this.ue;return e===null?!0:(e=e.part,e===null||!fa(e))},Zr.prototype.Zc=function(){return!1},Zr.prototype.gk=function(e,t,n,r,i,o,a){if(e===uo&&t==="elements"){if(i instanceof pa)this.$a===null&&(this.$a=i);else if(i instanceof Zt){var d=i.Nl(function(E){return E instanceof pa});d instanceof pa&&this.$a===null&&(this.$a=d)}}else e===po&&t==="elements"&&this.$a!==null&&(r===this.$a?this.$a=null:r instanceof Zt&&this.$a.rg(r)&&(this.$a=null));Pn.prototype.gk.call(this,e,t,n,r,i,o,a)},Zr.prototype.updateAdornments=function(){},Zr.prototype.Lj=function(){},Dn.Object.defineProperties(Zr.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}}}),Zr.className="Adornment";function qv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=yo,this.er=rm,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 fn(e,t){e===void 0||e instanceof $o||typeof e=="string"?Pn.call(this,e):(Pn.call(this),e&&(t=e)),this.U=13,this.Ba=null,this.jb=new Gt,this.wc=this.af=this.Yk=null,this.ci=!1,t&&Object.assign(this,t)}Kn(fn,Pn),fn.prototype.cloneProtected=function(e){Pn.prototype.cloneProtected.call(this,e),e.U=this.U,this.Ba!==null&&(e.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},ye=fn.prototype,ye.Af=function(e){Pn.prototype.Af.call(this,e),e.Bd(),e.af=this.af,e.wc=null};function Lc(e){e.Ba===null?e.Ba=new qv:e.Ba.nc&&(e.Ba=e.Ba.copy())}ye.th=function(){Pn.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function nb(e,t){t!==null&&(e.af===null&&(e.af=new Wt),e.af.add(t))}function rb(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=rb(this,e,t,n),e!==null&&e.Sl()},ye.gk=function(e,t,n,r,i,o,a){e===uo&&t==="elements"?this.wc=null:e===po&&t==="elements"&&(this.wc=null),Pn.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)||(qa(n.fromPort),qa(n.toPort),n.bb())}};function ib(e,t){for(e=e.linksConnected;e.next();){var n=e.value;(n.fromPort===t||n.toPort===t)&&(qa(n.fromPort),qa(n.toPort),n.bb())}}function qa(e){if(e!==null){var t=e.Zn;t!==null&&t.Sl(),e=e.part,t=e.containingGroup,t===null||e.isVisible()||qa(t.port)}}ye.si=function(){return!0},fn.prototype.getAvoidableRect=function(e){return e.set(this.actualBounds),e.Co(this.avoidableMargin),e},fn.prototype.findVisibleNode=function(){for(var e=this;e!==null&&!e.isVisible();)e=e.containingGroup;return e},fn.prototype.isVisible=function(){if(!Pn.prototype.isVisible.call(this))return!1;var e=!0,t=Ac,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren,t=n.treeCollapsePolicy),t===Ac){if(e=this.pg(),e!==null&&!e.isTreeExpanded)return!1}else if(t===zo){if(e=e?this.Oo():this.Po(),0<e.count&&e.all(function(r){return!r.isTreeExpanded}))return!1}else if(t===Xf&&(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},fn.prototype.Zb=function(e){Pn.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)}},fn.prototype.qx=function(){var e=new Wt,t=new Wt;return ob(this,this,e,t),t.iterator};function ob(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)&&ob(e,i?a.toNode:a.fromNode,n,r):r.add(a)})}}fn.prototype.findLinksConnected=function(e){if(e===void 0&&(e=null),e===null)return this.jb.iterator;var t=new ti(this.jb),n=this;return t.predicate=function(r){return r.fromNode===n&&r.fromPortId===e||r.toNode===n&&r.toPortId===e},t},ye=fn.prototype,ye.Mo=function(e){e===void 0&&(e=null);var t=new ti(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 ti(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 Wt,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 Wt,t.add(n),t.add(i)):n=i)}return t!==null?t.iterator:n!==null?new $r(n):ui},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 Wt,t.add(n),t.add(i)):n=i)}return t!==null?t.iterator:n!==null?new $r(n):ui},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 Wt,t.add(n),t.add(i)):n=i)}return t!==null?t.iterator:n!==null?new $r(n):ui},ye.jz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var r=new ti(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 ti(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 tm(e,t,n){qa(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 nm(e,t,n){qa(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)):bp(t)))}function bp(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}}}fn.prototype.updateRelationshipsFromData=function(){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)},ye=fn.prototype,ye.Vo=function(e){Pn.prototype.Vo.call(this,e),e||(bp(this),e=this.Yk,e!==null&&pb(e,this))},ye.Wo=function(e){Pn.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,Pn.prototype.Lj.call(this)},ye.ns=function(e){if(this.wc===null){if(e===""&&this.Te===!1)return this;sb(this)}var t=this.wc.I(e);return t!==null||e!==""&&(t=this.wc.I(""),t!==null)?t:this};function sb(e){e.wc===null?e.wc=new wt:e.wc.clear(),e.qm(e,function(t,n){ab(t,n)}),e.wc.count===0&&e.wc.add("",e)}function ab(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=An()),n.push(r);if(n!==null){for(e=0;e<n.length;e++)t.remove(n[e]);Nn(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;)em(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;)em(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 fn)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 Wt;return e(this,t),t},ye.uz=function(){return lb(this,this)};function lb(e,t){return t=t.pg(),t===null?0:1+lb(e,t)}ye.Qo=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren),t=new ti(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 Gt,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 Gt,t.add(n),t.add(e)):n=e);return t!==null?t.iterator:n!==null?new $r(n):ui},ye.wz=function(e){e===void 0&&(e=1/0);var t=new Wt;return sh(t,this,!1,e,!0),t},fn.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 Wt;n.add(this),ub(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===Ac),t.Ue=!1}};function ub(e,t,n,r,i,o,a){if(1<r)for(var d=n?e.Mo():e.Sd();d.next();){var E=d.value;E.isTreeLink&&(E=E.To(e),E===null||E===e||t.contains(E)||(t.add(E),ub(E,t,n,r-1,i,o,a)))}else cb(e,t,n,i,o,a)}function cb(e,t,n,r,i,o){for(var a=i===e?!0:e.isTreeExpanded,d=n?e.Mo():e.Sd(),E={};d.next();){var O=d.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();E.uv=e,X.all(function(se){return function(ge){return ge===se.uv||!ge.isTreeExpanded}}(E))&&r.Aj(O,i),O.oh(),O.Zb(!1)}O.isTreeExpanded&&(O.wasTreeExpanded=O.isTreeExpanded,D||cb(O,t,n,r,i,o))}E={uv:E.uv}}e.isTreeExpanded=!1}fn.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 Wt;n.add(this),hb(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===Ac),t.Ue=!1}};function hb(e,t,n,r,i,o,a){for(var d=o===e?!1:e.isTreeExpanded,E=n?e.Mo():e.Sd(),O={};E.next();){var D=E.value;if(D.isTreeLink&&(d||D.fd||D.bb(),D=D.To(e),D!==null&&D!==e&&!t.contains(D))){if(t.add(D),!d){D.Zb(!0),D.oh();var X=n?D.Oo():D.Po();O.vv=e,X.all(function(se){return function(ge){return ge===se.vv||!ge.isTreeExpanded}}(O))&&i.Cj(D,o)}(2<r||D.wasTreeExpanded)&&(D.wasTreeExpanded=!1,hb(D,t,n,r-1,i,o,a))}O={vv:O.vv}}e.isTreeExpanded=!0}Dn.Object.defineProperties(fn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:rm},set:function(e){var t=this.portSpreading;t!==e&&(Lc(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&&Tc(n,this),this.g("avoidable",t,e)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:yo},set:function(e){typeof e=="number"&&(e=new sr(e));var t=this.avoidableMargin;if(!t.D(e)){e=e.J(),Lc(this),this.Ba.yp=e;var n=this.diagram;n!==null&&Tc(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&&(Lc(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&&(Lc(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&&(Lc(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&&(pb(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),ha(this),this.g("labeledLink",t,e)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&sb(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&&(Lc(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))}}}),fn.prototype.expandTree=fn.prototype.expandTree,fn.prototype.collapseTree=fn.prototype.collapseTree,fn.prototype.findTreeParts=fn.prototype.wz,fn.prototype.findTreeChildrenNodes=fn.prototype.Ou,fn.prototype.findTreeChildrenLinks=fn.prototype.Qo,fn.prototype.findTreeLevel=fn.prototype.uz,fn.prototype.findTreeParentChain=fn.prototype.vz,fn.prototype.findTreeParentNode=fn.prototype.pg,fn.prototype.findTreeParentLink=fn.prototype.kh,fn.prototype.findCommonTreeParent=fn.prototype.gz,fn.prototype.findTreeRoot=fn.prototype.xz,fn.prototype.isInTreeOf=fn.prototype.Nz,fn.prototype.findPort=fn.prototype.ns,fn.prototype.findLinksTo=fn.prototype.kz,fn.prototype.findLinksBetween=fn.prototype.jz,fn.prototype.findNodesInto=fn.prototype.Oo,fn.prototype.findNodesOutOf=fn.prototype.Po,fn.prototype.findNodesConnected=fn.prototype.Mu,fn.prototype.findLinksInto=fn.prototype.Sd,fn.prototype.findLinksOutOf=fn.prototype.Mo,fn.prototype.findExternalTreeLinksConnected=fn.prototype.qx,fn.prototype.invalidateConnectedLinks=fn.prototype.Bd,fn.prototype.invalidateLinkBundle=fn.prototype.Lz;var H1=new Ut(fn,"SpreadingNone",10),rm=new Ut(fn,"SpreadingEvenly",11),ty=new Ut(fn,"SpreadingPacked",12);fn.className="Node",fn.SpreadingNone=H1,fn.SpreadingEvenly=rm,fn.SpreadingPacked=ty;function tr(e,t){e===void 0||e instanceof $o||typeof e=="string"?fn.call(this,e):(fn.call(this),e&&(t=e)),this.U|=4608,this.Gn=new Wt,this.$a=null,this.Sc=new lo,this.Sc.group=this,this.gl=new Wt,this.tb=this.$p=null,t&&Object.assign(this,t)}Kn(tr,fn),tr.prototype.cloneProtected=function(e){fn.prototype.cloneProtected.call(this,e),this.U=this.U&-32769;var t=e.Nl(function(n){return n instanceof pa});t instanceof pa?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=tr.prototype,ye.Af=function(e){fn.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 fn)n.Bd(t);else if(n instanceof en)for(n=n.labelNodes;n.next();)n.value.Bd(t)}},ye.gk=function(e,t,n,r,i,o,a){if(e===uo&&t==="elements"){if(i instanceof pa)this.$a===null?this.$a=i:this.$a!==i&&nt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(i instanceof Zt){var d=i.Nl(function(E){return E instanceof pa});d instanceof pa&&(this.$a===null?this.$a=d:this.$a!==d&&nt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else e===po&&t==="elements"&&this.$a!==null&&(r===this.$a?this.$a=null:r instanceof Zt&&this.$a.rg(r)&&(this.$a=null));fn.prototype.gk.call(this,e,t,n,r,i,o,a)},ye.Xl=function(e,t){fn.prototype.Xl.call(this,e,t),this.isClipping&&this.type!==Zt.Spot&&this.isSubGraphExpanded&&(e=this.resizeObject,e instanceof Zt&&(e=e.Pb()),this.tb===null&&(this.tb=new Ct),e.mi(this.tb),e instanceof ur&&this.tb.Bc(-e.strokeWidth,-e.strokeWidth))},ye.eh=function(e,t,n,r){this.nf=this.$a,fn.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 en||t.Va()}),fn.prototype.Va.call(this)},ye.si=function(){if(!fn.prototype.si.call(this))return!1;for(var e=this.memberParts;e.next();){var t=e.value;if(t instanceof fn){if(t.isVisible()&&fa(t))return!1}else if(t instanceof en&&t.isVisible()&&fa(t)&&t.fromNode!==this&&t.toNode!==this)return!1}return!0};function ny(e,t){if(e.Gn.add(t)){t instanceof tr&&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 en&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}function ry(e,t){if(e.Gn.remove(t)){t instanceof tr&&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 en&&!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)}fn.prototype.Lj.call(this)},tr.prototype.canAddMembers=function(e){var t=this.diagram;if(t===null)return!1;for(t=t.commandHandler,e=Rt(e).iterator;e.next();)if(!t.isValidMember(this,e.value))return!1;return!0},tr.prototype.addMembers=function(e,t){var n=this.diagram;if(n===null)return!1;n=n.commandHandler;var r=!0;for(e=Rt(e).iterator;e.next();){var i=e.value;!t||n.isValidMember(this,i)?i.containingGroup=this:r=!1}return r},tr.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=tr.prototype,ye.Bd=function(e){var t=(this.U&65536)!==0;if(fn.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()?(qa(n.fromPort),qa(n.toPort),n.bb()):(r=n.toNode,r!==null&&r!==this&&r.Td(this)&&!r.isVisible()&&(qa(n.fromPort),qa(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 Wt,r=t.iterator;r.next();){var i=r.value;if(i instanceof fn)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 Wt,n=e.iterator;n.next();){var r=n.value;if(r instanceof fn)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 Wt;return e(this,t),t},ye.Rj=function(){var e=new Wt;return sh(e,this,!0,0,!0),e.remove(this),e},ye.Zb=function(e){fn.prototype.Zb.call(this,e);for(var t=this.memberParts;t.next();)t.value.Zb(e)},tr.prototype.collapseSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();fb(this,t,e,this),e.Ue=!1}};function fb(e,t,n,r){for(var i=e.memberParts;i.next();){var o=i.value;if(o.Zb(!1),o instanceof tr&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,fb(o,t,n,r)),o instanceof fn)o.Bd(t),n.Aj(o,r);else if(o instanceof en)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!1}tr.prototype.expandSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();db(this,t,e,this),e.Ue=!1}};function db(e,t,n,r){for(var i=e.memberParts;i.next();){var o=i.value;if(o.Zb(!0),o instanceof tr&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,db(o,t,n,r)),o instanceof fn)o.Bd(t),n.Cj(o,r);else if(o instanceof en)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!0}tr.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=Pe.alloc(),fn.prototype.move.call(this,e,t),e=new Wt,t=this.Rj().iterator;t.next();)i=t.value,i instanceof en&&(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 fn&&i.isLinkLabel)){var a=i.position,d=i.location;a.w()?(o.x=a.x+r,o.y=a.y+n,i.position=o):d.w()&&(o.x=d.x+r,o.y=d.y+n,i.location=o)}for(t.reset();t.next();)i=t.value,i instanceof en&&(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());Pe.free(o)}},Dn.Object.defineProperties(tr.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&&nt("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&&(Lc(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&&(Lc(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&&(Lc(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&&(Lc(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)}}}),tr.prototype.expandSubGraph=tr.prototype.expandSubGraph,tr.prototype.collapseSubGraph=tr.prototype.collapseSubGraph,tr.prototype.findSubGraphParts=tr.prototype.Rj,tr.prototype.findContainingGroupChain=tr.prototype.hz,tr.prototype.findExternalNodesConnected=tr.prototype.iz,tr.prototype.findExternalLinksConnected=tr.prototype.Lu,tr.prototype.ensureBounds=tr.prototype.Va,tr.className="Group";function pa(e){ht.call(this),this.yb=Ko,this.ko=new Ct(NaN,NaN,NaN,NaN),e&&Object.assign(this,e)}Kn(pa,ht),pa.prototype.cloneProtected=function(e){ht.prototype.cloneProtected.call(this,e),e.yb=this.yb.J(),e.ko=this.ko.copy()},pa.prototype.gh=function(e){if(this.background===null&&this.areaBackground===null)return!1;var t=this.naturalBounds;return Ki(0,0,t.width,t.height,e.x,e.y)},pa.prototype.Wl=function(){var e=this.part;if(e!==null&&(e instanceof tr||e instanceof Zr)||nt("Placeholder is not inside a Group or Adornment."),e instanceof tr){var t=this.computeBorder(this.ko),n=this.minSize,r=this.dc;for(ai(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=Pe.alloc(),n.xi(t,e.locationSpot),n.D(e.location)||(e.location=n),Pe.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 ur&&(a=o.strokeWidth);var d=o.Df(),E=o.naturalBounds,O=(E.width+a)*d;a=(E.height+a)*d,e.type!==Zt.Link&&(d=o.ga(e.category==="Selection"?xr:e.locationSpot,Pe.alloc()),e.location=d,Pe.free(d)),isNaN(O)||isNaN(a)?(e=o.ga(xr,Pe.alloc()),O=Ct.allocAt(e.x,e.y,0,0),O.Ye(o.ga(ni,e)),O.Ye(o.ga(Jr,e)),O.Ye(o.ga(Co,e)),ai(t,O.width+r||0,O.height+i||0),this.Ge(-n.left,-n.top,t.width,t.height),Pe.free(e),Ct.free(O)):(ai(t,O+r||0,a+i||0),this.Ge(-n.left,-n.top,t.width,t.height))}},pa.prototype.eh=function(e,t,n,r){this.actualBounds.h(e,t,n,r)},pa.prototype.computeBorder=function(e){var t=this.part,n=t.diagram,r=n===null||!n.animationManager.isAnimating;if(n!==null&&t instanceof tr&&!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=Ct.alloc(),i=this.computeMemberBounds(n);var o=this.yb;return t instanceof tr&&!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)),Ct.free(n),r&&t instanceof tr&&t.computesBoundsIncludingLocation&&t.location.w()&&e.Ye(t.location),e},pa.prototype.computeMemberBounds=function(e){if(!(this.part instanceof tr))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 d=a.value;if(d.isVisible()){if(d instanceof en&&(!t.computesBoundsIncludingLinks||pl(d)||d.fromNode===t||d.toNode===t))continue;d=d.actualBounds,d.left<n&&(n=d.left),d.top<r&&(r=d.top),d.right>i&&(i=d.right),d.bottom>o&&(o=d.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},Dn.Object.defineProperties(pa.prototype,{padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new sr(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.g("padding",t,e),this.v())}}}),pa.className="Placeholder";function en(e){Pn.call(this,Zt.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=ga,this.Om=0,this.Qm=ga,this.Rm=NaN,this.qj=ly,this.po=.5,this.wd=null,this.Nb=new Gt().freeze(),this.Tg=this.Mg=null,this.ml=new Ct,this.ua=new Qt,this.u=this.o=this.Sf=this.Wf=null,this.su=new Pe,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],e&&Object.assign(this,e)}Kn(en,Pn),en.prototype.cloneProtected=function(e){Pn.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=en.prototype,ye.Af=function(e){Pn.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&&qa(t),e=e.toPort,e!==null&&qa(e)},ye.qb=function(e){e.classType===en?(e.value&2)===2?this.routing=e:e===ml||e===Dc||e===fd?this.curve=e:e===wp||e===um||e===cm?this.adjusting=e:e!==ly&&e!==ga&&nt("Unknown Link enum value for a Link property: "+e):Pn.prototype.qb.call(this,e)},ye.Xc=function(){this.ba===null&&(this.ba=new lp)},ye.si=function(){var e=this.fromNode;if(e!==null){var t=e.findVisibleNode();if(t!==null&&(e=t),fa(e)||ih(e))return!1}return e=this.toNode,!(e!==null&&(t=e.findVisibleNode(),t!==null&&(e=t),fa(e)||ih(e)))},ye.zv=function(){return!1},ye.Av=function(){},ye.Zc=function(){return!1},en.prototype.computeAngle=function(e,t,n){return en.computeAngle(t,n)},en.computeAngle=function(e,t){switch(e){default:case ga:e=0;break;case Ep:e=t;break;case Cp:e=t+90;break;case Tp:e=t-90;break;case uy:e=t+180;break;case hm:e=lt.bp(t),90<e&&270>e&&(e-=180);break;case _p:e=lt.bp(t+90),90<e&&270>e&&(e-=180);break;case Ap:e=lt.bp(t-90),90<e&&270>e&&(e-=180);break;case fm:if(e=lt.bp(t),45<e&&135>e||225<e&&315>e)return 0;90<e&&270>e&&(e-=180)}return lt.bp(e)};function cd(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=en.prototype,ye.oh=function(){var e=this.containingGroup;e!==null&&this.fromNode!==e&&this.toNode!==e&&e.computesBoundsIncludingLinks&&Pn.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 pb(e,t){e.wd===null&&(e.wd=new Wt),e.wd.add(t),e.v()}ye.Vo=function(e){if(Pn.prototype.Vo.call(this,e),Yh(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,tm(e,this,t));var n=this.uf;if(n!==null){var r=this.toPort;n===e&&r===t||tm(n,this,r)}Sp(this)}},ye.Wo=function(e){if(Pn.prototype.Wo.call(this,e),Yh(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)}xp(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))},en.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)}},en.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?Pn.prototype.move.call(this,e,!1):(e=Pe.allocAt(n.x+r,n.y+i),Pn.prototype.move.call(this,e,!1),Pe.free(e)),Mc(this,r,i),e=this.labelNodes;e.next();)t=e.value,n=t.position,t.moveTo(n.x+r,n.y+i)},en.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},en.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},en.prototype.computeMidPoint=function(e){var t=this.pointsCount;if(t===0)return e.assign(En),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()===ml))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()===ml){if(t===3){n=this.i(0),r=this.i(1);var i=this.i(2);return lt.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),lt.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},en.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()===ml))return this.ua.wx(.5);if(this.computeCurve()===ml&&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),lt.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=en.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 Pe(t,n))},ye.Kz=function(e,t){this.Nb.Gb(e,t)},ye.m=function(e,t,n){this.Nb.Gb(e,new Pe(t,n))},ye.ne=function(e){this.Nb.add(e)},ye.yf=function(e,t){this.Nb.add(new Pe(e,t))},ye.pv=function(e){this.Nb.mb(e)},ye.Fj=function(){this.Nb.clear()};function Mc(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 Gt,o=e.Nb.iterator;o.next();){var a=o.value;i.add(new Pe(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),ha(e)),r?im(e):(e.defaultFromPoint&&(e.defaultFromPoint=e.i(0)),e.defaultToPoint&&(e.defaultToPoint=e.i(e.pointsCount-1))),a!==null&&a.animationManager.zb&&A(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 d=i[a];n=Math.min(d.x,n),r=Math.min(d.y,r)}d=a=1/0;for(var E=t.s,O=E.length,D=0;D<O;D++){var X=E[D];a=Math.min(X.x,a),d=Math.min(X.y,d),X.freeze()}if(t.freeze(),O===o){for(o=0;o<O;o++)if(D=i[o],X=E[o],D.x-n!==X.x-a||D.y-r!==X.y-d){this.qc();break}}else this.qc();this.Mg=null,n=this.diagram,n!==null&&n.animationManager.zb&&A(n.animationManager,this,t),im(this),this.g("points",e,t)}},ye.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function im(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),lm(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()}}},en.prototype.computePoints=function(){if(this.diagram===null)return!1;var e=this.fromNode,t=null;if(e===null?(Sf||(Sf=new fn,Sf.desiredSize=zr,Sf.Va()),this.defaultFromPoint&&(Sf.location=this.defaultFromPoint,Sf.Va(),t=e=Sf)):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?(xf||(xf=new fn,xf.desiredSize=zr,xf.Va()),this.defaultToPoint&&(xf.location=this.defaultToPoint,xf.Va(),i=r=xf)):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 d=hd(a),E=hd(n),O=t===i&&t!==null,D=this.isOrthogonal,X=this.curve===ml;this.Wf=O&&!D?X=!0:!1;var se=this.computeAdjusting()===ga||O;if(!D&&!O&&d&&E){if(d=!1,!se&&3<=o&&(se=this.getLinkPoint(e,t,a,!0,!1,r,i),E=this.getLinkPoint(r,i,n,!1,!1,e,t),d=this.adjustPoints(0,se,o-1,E))&&(se=this.getLinkPoint(e,t,a,!0,!1,r,i),E=this.getLinkPoint(r,i,n,!1,!1,e,t),this.adjustPoints(0,se,o-1,E)),!d)if(this.Fj(),X){o=this.getLinkPoint(e,t,a,!0,!1,r,i),se=this.getLinkPoint(r,i,n,!1,!1,e,t),d=se.x-o.x,E=se.y-o.y,O=this.computeCurviness(),X=D=0;var ge=o.x+d/3,ve=o.y+E/3,Te=ge,Ke=ve;lt.B(E,0)?Ke=0<d?Ke-O:Ke+O:(D=-d/E,X=Math.sqrt(O*O/(D*D+1)),0>O&&(X=-X),Te=(0>E?-1:1)*X+ge,Ke=D*(Te-ge)+ve),ge=o.x+2*d/3,ve=o.y+2*E/3;var Ge=ge,Xe=ve;lt.B(E,0)?Xe=0<d?Xe-O:Xe+O:(Ge=(0>E?-1:1)*X+ge,Xe=D*(Ge-ge)+ve),this.Fj(),this.ne(o),this.yf(Te,Ke),this.yf(Ge,Xe),this.ne(se),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,se=i,r=this.getLinkPoint(e,t,a,!0,!1,o,se),i=this.getLinkPoint(o,se,n,!1,!1,e,t),this.hasCurviness()?(se=i.x-r.x,n=i.y-r.y,a=this.computeCurviness(),e=r.x+se/2,t=r.y+n/2,o=e,d=t,lt.B(n,0)?d=0<se?d-a:d+a:(se=-se/n,o=Math.sqrt(a*a/(se*se+1)),0>a&&(o=-o),o=(0>n?-1:1)*o+e,d=se*(o-e)+t),this.ne(r),this.yf(o,d),this.ne(i)):(this.ne(r),this.ne(i),d=Ct.alloc(),t.mi(d),E=d.ca(i),se.mi(d),O=d.ca(r),(E||O)&&(a=t.ga(sm(a),new Pe),this.dd(0,this.getLinkPointFromPoint(e,t,a,i,!0,a)),n=se.ga(sm(n),new Pe),this.dd(1,this.getLinkPointFromPoint(o,se,n,r,!1,n))),Ct.free(d))}else{X=this.isAvoiding,se&&(D&&X||O)&&this.Fj();var Ze=O?this.computeCurviness():0;X=this.getLinkPoint(e,t,a,!0,D,r,i),ge=Te=ve=0,(D||!d||O)&&(Ke=this.computeEndSegmentLength(e,t,a,!0),ge=this.getLinkDirection(e,t,X,a,!0,D,r,i),O&&(d||a.D(n)||!D&&a.x+n.x===1&&a.y+n.y===1)&&(ge-=D?90:30,0>Ze&&(ge-=180)),0>ge?ge+=360:360<=ge&&(ge-=360),O&&(Ke+=Math.abs(Ze)*(D?1:2)),ge===0?ve=Ke:ge===90?Te=Ke:ge===180?ve=-Ke:ge===270?Te=-Ke:(ve=Ke*Math.cos(ge*Math.PI/180),Te=Ke*Math.sin(ge*Math.PI/180)),a.Mc()&&O&&(Ke=t.ga(ir,Pe.alloc()),Ge=Pe.allocAt(Ke.x+1e3*ve,Ke.y+1e3*Te),this.getLinkPointFromPoint(e,t,Ke,Ge,!0,X),Pe.free(Ke),Pe.free(Ge))),Ke=this.getLinkPoint(r,i,n,!1,D,e,t);var tt=Xe=Ge=0;if(D||!E||O){var at=this.computeEndSegmentLength(r,i,n,!1);tt=this.getLinkDirection(r,i,Ke,n,!1,D,e,t),O&&(E||a.D(n)||!D&&a.x+n.x===1&&a.y+n.y===1)&&(tt+=D?0:30,0>Ze&&(tt+=180)),0>tt?tt+=360:360<=tt&&(tt-=360),O&&(at+=Math.abs(Ze)*(D?1:2)),tt===0?Ge=at:tt===90?Xe=at:tt===180?Ge=-at:tt===270?Xe=-at:(Ge=at*Math.cos(tt*Math.PI/180),Xe=at*Math.sin(tt*Math.PI/180)),n.Mc()&&O&&(n=i.ga(ir,Pe.alloc()),a=Pe.allocAt(n.x+1e3*Ge,n.y+1e3*Xe),this.getLinkPointFromPoint(r,i,n,a,!1,Ke),Pe.free(n),Pe.free(a))}n=X,(D||!d||O)&&(n=new Pe(X.x+ve,X.y+Te)),a=Ke,(D||!E||O)&&(a=new Pe(Ke.x+Ge,Ke.y+Xe)),!se&&!D&&d&&3<o&&this.adjustPoints(0,X,o-2,a)?this.dd(o-1,Ke):!se&&!D&&E&&3<o&&this.adjustPoints(1,n,o-1,Ke)?this.dd(0,X):!se&&(D?6<=o:4<o)&&this.adjustPoints(1,n,o-2,a)?(this.dd(0,X),this.dd(o-1,Ke)):(this.Fj(),this.ne(X),(D||!d||O)&&this.ne(n),D&&this.addOrthoPoints(n,ge,a,tt,e,r),(D||!E||O)&&this.ne(a),this.ne(Ke))}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}en.prototype.getLinkPointFromPoint=function(e,t,n,r,i,o){if(o===void 0&&(o=new Pe),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 d=-e.m12*i,E=-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*E+D,r=r.x*d+r.y*O+X,a=n.x*a+n.y*E+D,n=n.x*d+n.y*O+X}return t.Sj(i,r,a,n,o),e!==null&&o.transform(e),o};function om(e,t){var n=t.Zn;return n===null&&(n=new wf,n.port=t,n.node=t.part,t.Zn=n),wb(n,e)}en.prototype.getLinkPoint=function(e,t,n,r,i,o,a,d){if(d===void 0&&(d=new Pe),n.sb()&&!hd(n))return t.ga(n,d),d;if(n.$c()){var E=om(this,t);if(E!==null){if(d.assign(E.Zo),i&&this.routing===mb){var O=om(this,a);if(O!==null&&E.Gl<O.Gl){E=Pe.alloc(),O=Pe.alloc();var D=new Ct(t.ga(xr,E),t.ga(ni,O)),X=this.computeSpot(!r,a);e=this.getLinkPoint(o,a,X,!r,i,e,t,O),(n.Hf(xs)||n.Hf(io))&&e.y>=D.y&&e.y<=D.y+D.height?d.y=e.y:(n.Hf(Qi)||n.Hf(ds))&&e.x>=D.x&&e.x<=D.x+D.width&&(d.x=e.x),Pe.free(E),Pe.free(O)}}return d}}return n=t.ga(sm(n),Pe.alloc()),this.pointsCount>(i?6:2)?(a=r?this.i(1):this.i(this.pointsCount-2),i&&(a=iy(n,a.copy()))):(E=this.computeSpot(!r,a),o=Pe.alloc(),a=a.ga(sm(E),o),i&&(a=iy(n,a)),Pe.free(o)),this.getLinkPointFromPoint(e,t,n,a,r,d),Pe.free(n),d},en.prototype.getLinkDirection=function(e,t,n,r,i,o,a,d){e:if(r.sb())var E=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()&&(E=om(this,t),E!==null))switch(E.Nc){case 1:E=270;break e;case 2:E=180;break e;default:case 4:E=0;break e;case 8:E=90;break e}E=t.ga(ir,Pe.alloc()),this.pointsCount>(o?6:2)?(d=i?this.i(1):this.i(this.pointsCount-2),d=o?iy(E,d.copy()):n):(n=Pe.alloc(),d=d.ga(ir,n),Pe.free(n)),n=Math.abs(d.x-E.x)>Math.abs(d.y-E.y)?d.x>=E.x?0:180:d.y>=E.y?90:270,Pe.free(E),E=n}return r.Mc()&&a.Td(e)&&(E+=180,360<=E&&(E-=360)),hd(r)||(e=t.li(),e===0)||(45<=e&&135>e?E+=90:135<=e&&225>e?E+=180:225<=e&&315>e&&(E+=270),360<=E&&(E-=360)),E},en.prototype.computeEndSegmentLength=function(e,t,n,r){return t!==null&&n.$c()&&(e=om(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)},en.prototype.computeSpot=function(e,t){return t===void 0&&(t=null),e?(e=t||this.fromPort,e===null?e=ir:(t=this.fromSpot,t.Xb()&&(t=e.fromSpot),e=t===Bo?nr:t)):(e=t||this.toPort,e===null?e=ir:(t=this.toSpot,t.Xb()&&(t=e.toSpot),e=t===Bo?nr:t)),e};function hd(e){return e===nr||e.x===.5&&e.y===.5}function sm(e){return e.x===.5&&e.y===.5?e:ir}en.prototype.computeOtherPoint=function(e,t){return this.computeAdjusting()!==ga&&4<this.pointsCount?this.computeMidPoint(new Pe):(e=t.Zn,e=e!==null?wb(e,this):null,e!==null?e.Zo:t.ga(ir))},en.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},en.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=Vn.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return kv(this,t,n,i),o===void 0&&Vn.free(a),!0;if(this.Yc(e,a)){var d=!1;if(!this.isAtomic)for(var E=this.O.s,O=E.length;O--;){var D=E[O];if(D.visible||D===this.locationObject){var X=D.actualBounds,se=this.naturalBounds;if(!(X.x>se.width||X.y>se.height||0>X.x+X.width||0>X.y+X.height)){if(X=Vn.alloc(),X.set(a),D instanceof Zt)d=D.Cf(e,t,n,r,i,X);else if(this.path===D){if(D instanceof ur)if(d=e,se=r,D.pickable===!1)d=!1;else if(X.multiply(D.transform),se)e:{var ge=d,ve=X;if(D.fh(ge,ve))d=!0;else{if(ve===void 0&&(ve=D.transform,ge.Re(D.actualBounds))){d=!0;break e}d=ge.left,se=ge.right;var Te=ge.top;ge=ge.bottom;var Ke=Pe.alloc(),Ge=Pe.alloc(),Xe=Pe.alloc(),Ze=Vn.alloc();Ze.set(ve),Ze.bv(D.transform),Ze.Vj(),Ge.x=se,Ge.y=Te,Ge.transform(Ze),Ke.x=d,Ke.y=Te,Ke.transform(Ze),ve=!1,Vh(D,Ke,Ge,Xe)?ve=!0:(Ke.x=se,Ke.y=ge,Ke.transform(Ze),Vh(D,Ke,Ge,Xe)?ve=!0:(Ge.x=d,Ge.y=ge,Ge.transform(Ze),Vh(D,Ke,Ge,Xe)?ve=!0:(Ke.x=d,Ke.y=Te,Ke.transform(Ze),Vh(D,Ke,Ge,Xe)&&(ve=!0)))),Vn.free(Ze),Pe.free(Ke),Pe.free(Ge),Pe.free(Xe),d=ve}}else d=D.fh(d,X)}else d=ss(D,e,r,X);d&&(se=D,t!==null&&(se=t(D)),se&&(n===null||n(se))&&i.add(se)),Vn.free(X)}}}return o===void 0&&Vn.free(a),d||this.background!==null||this.areaBackground!==null}return o===void 0&&Vn.free(a),!1},en.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?ml:this.curve},en.prototype.computeCorner=function(){if(this.curve===ml)return 0;var e=this.corner;return(isNaN(e)||0>e)&&(e=10),e},en.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},en.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var e=yb;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===Ep||r===hm||r===uy?e=Math.max(e,i):r===Tp||r===Ap||r===Cp||r===_p?e=Math.max(e,a):(t=t.ga(ir).ab(n.ga(ir))/180*Math.PI,e=Math.max(e,Math.abs(Math.sin(t)*a)+Math.abs(Math.cos(t)*i)+1)),this.curve===ml&&(e*=1.333)}}return e},en.prototype.arrangeBundledLinks=function(e,t){if(t)for(t=0;t<e.length;t++){var n=e[t];n.computeAdjusting()===ga&&n.bb()}},en.prototype.computeCurviness=function(){var e=this.curviness;if(isNaN(e)){e=vb;var t=this.Sf;if(t!==null){for(var n=An(),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),Nn(n)}}return e},en.prototype.computeThickness=function(){if(!this.isVisible())return 0;var e=this.path;return e!==null?Math.max(e.strokeWidth,1):1},en.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},en.prototype.adjustPoints=function(e,t,n,r){var i=this.computeAdjusting();if(this.isOrthogonal){if(i===um)return!1;i===cm&&(i=wp)}switch(i){case um:var o=this.i(e),a=this.i(n);if(!o.Xa(t)||!a.Xa(r)){i=o.x,o=o.y;var d=a.x-i,E=a.y-o,O=Math.sqrt(d*d+E*E);if(!lt.$(O,0)){if(lt.$(d,0))var D=0>E?-Math.PI/2:Math.PI/2;else D=Math.atan(E/Math.abs(d)),0>d&&(D=Math.PI-D);a=t.x;var X=t.y;d=r.x-a;var se=r.y-X;for(E=Math.sqrt(d*d+se*se),lt.$(d,0)?se=0>se?-Math.PI/2:Math.PI/2:(se=Math.atan(se/Math.abs(d)),0>d&&(se=Math.PI-se)),O=E/O,D=se-D,this.dd(e,t),e+=1;e<n;e++)t=this.i(e),d=t.x-i,E=t.y-o,t=Math.sqrt(d*d+E*E),lt.$(t,0)||(lt.$(d,0)?E=0>E?-Math.PI/2:Math.PI/2:(E=Math.atan(E/Math.abs(d)),0>d&&(E=Math.PI-E)),d=E+D,t*=O,this.L(e,a+t*Math.cos(d),X+t*Math.sin(d)));this.dd(n,r)}}return!0;case cm: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),d=t.x,D=t.y,E=r.x,se=r.y;var ge=1;if(E-d!==0){var ve=(se-D)/(E-d);ge=Math.sqrt(1+1/(ve*ve))}else ve=9e9;for(this.dd(e,t),e+=1;e<n;e++){t=this.i(e);var Te=t.x,Ke=t.y,Ge=.5;O!==0&&(Ge=((i-Te)*(i-a)+(o-Ke)*(o-X))/O);var Xe=i+Ge*(a-i),Ze=o+Ge*(X-o);t=Math.sqrt((Te-Xe)*(Te-Xe)+(Ke-Ze)*(Ke-Ze)),Ke<ve*(Te-Xe)+Ze&&(t=-t),0<ve&&(t=-t),Te=d+Ge*(E-d),Ge=D+Ge*(se-D),ve!==0?(t=Te+t/ge,this.L(e,t,Ge-(t-Te)/ve)):this.L(e,Te,Ge+t)}this.dd(n,r)}return!0;case wp:e:{if(this.isOrthogonal&&(i=this.i(e),o=this.i(e+1),a=this.i(e+2),d=o.x,D=o.y,X=d,O=D,lt.B(i.y,o.y)?lt.B(o.x,a.x)?D=t.y:lt.B(o.y,a.y)&&(d=t.x):lt.B(i.x,o.x)&&(lt.B(o.y,a.y)?d=t.x:lt.B(o.x,a.x)&&(D=t.y)),this.L(e+1,d,D),i=this.i(n),o=this.i(n-1),a=this.i(n-2),d=o.x,D=o.y,E=d,se=D,lt.B(i.y,o.y)?lt.B(o.x,a.x)?D=r.y:lt.B(o.y,a.y)&&(d=r.x):lt.B(i.x,o.x)&&(lt.B(o.y,a.y)?d=r.x:lt.B(o.x,a.x)&&(D=r.y)),this.L(n-1,d,D),oy(this))){this.L(e+1,X,O),this.L(n-1,E,se),n=!1;break e}this.dd(e,t),this.dd(n,r),n=!0}return n;default:return!1}},en.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 d=i.actualBounds.copy(),E=o.actualBounds.copy();if(d.w()&&E.w()){d.Bc(kp,kp),E.Bc(kp,kp),d.Ye(e),E.Ye(n);var O=Pe.alloc(),D=Pe.alloc();t===0?n.x>e.x||r===270&&n.y<e.y&&E.right>e.x||r===90&&n.y>e.y&&E.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<E.left?this.computeMidOrthoPosition(e.x,e.y,E.left,n.y,!1):e.x<E.right&&(r===270&&e.y<E.top||r===90&&e.y>E.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):E.right,D.x=O.x,D.y=n.y):r===0&&e.x<E.left&&e.y>E.top&&e.y<E.bottom&&(O.x=e.x,O.y=e.y<n.y?Math.min(n.y,E.top):Math.max(n.y,E.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<d.top||r===270&&n.y>d.bottom)&&(r===180&&(E.ca(e)||d.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,d.top,n.x,Math.max(n.y,E.bottom),!0):n.y>e.y&&(r===180||r===270)&&(O.y=this.computeMidOrthoPosition(e.x,d.bottom,n.x,Math.min(n.y,E.top),!0)),D.x=n.x,D.y=O.y),O.y>d.top&&O.y<d.bottom&&(n.x>=d.left&&n.x<=e.x||e.x<=E.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?d.top:Math.min(d.top,E.top)):Math.max(n.y,r===0?d.bottom:Math.max(d.bottom,E.bottom)),D.x=n.x,D.y=O.y))):t===180?n.x<e.x||r===270&&n.y<e.y&&E.left<e.x||r===90&&n.y>e.y&&E.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>E.right?this.computeMidOrthoPosition(e.x,e.y,E.right,n.y,!1):e.x>E.left&&(r===270&&e.y<E.top||r===90&&e.y>E.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):E.left,D.x=O.x,D.y=n.y):r===180&&e.x>E.right&&e.y>E.top&&e.y<E.bottom&&(O.x=e.x,O.y=e.y<n.y?Math.min(n.y,E.top):Math.max(n.y,E.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<d.top||r===270&&n.y>d.bottom)&&(r===0&&(E.ca(e)||d.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,d.top,n.x,Math.max(n.y,E.bottom),!0):n.y>e.y&&(r===0||r===270)&&(O.y=this.computeMidOrthoPosition(e.x,d.bottom,n.x,Math.min(n.y,E.top),!0)),D.x=n.x,D.y=O.y),O.y>d.top&&O.y<d.bottom&&(n.x<=d.right&&n.x>=e.x||e.x>=E.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?d.top:Math.min(d.top,E.top)):Math.max(n.y,r===180?d.bottom:Math.max(d.bottom,E.bottom)),D.x=n.x,D.y=O.y))):t===90?n.y>e.y||r===180&&n.x<e.x&&E.bottom>e.y||r===0&&n.x>e.x&&E.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<E.top?this.computeMidOrthoPosition(e.x,e.y,n.x,E.top,!0):e.y<E.bottom&&(r===180&&e.x<E.left||r===0&&e.x>E.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):E.bottom,D.x=n.x,D.y=O.y):r===90&&e.y<E.top&&e.x>E.left&&e.x<E.right&&(O.x=e.x<n.x?Math.min(n.x,E.left):Math.max(n.x,E.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<d.left||r===180&&n.x>d.right)&&(r===270&&(E.ca(e)||d.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(d.left,e.y,Math.max(n.x,E.right),n.y,!1):n.x>e.x&&(r===270||r===180)&&(O.x=this.computeMidOrthoPosition(d.right,e.y,Math.min(n.x,E.left),n.y,!1)),D.x=O.x,D.y=n.y),O.x>d.left&&O.x<d.right&&(n.y>=d.top&&n.y<=e.y||e.y<=E.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?d.left:Math.min(d.left,E.left)):Math.max(n.x,r===90?d.right:Math.max(d.right,E.right)),D.x=O.x,D.y=n.y))):n.y<e.y||r===180&&n.x<e.x&&E.top<e.y||r===0&&n.x>e.x&&E.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>E.bottom?this.computeMidOrthoPosition(e.x,e.y,n.x,E.bottom,!0):e.y>E.top&&(r===180&&e.x<E.left||r===0&&e.x>E.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):E.top,D.x=n.x,D.y=O.y):r===270&&e.y>E.bottom&&e.x>E.left&&e.x<E.right&&(O.x=e.x<n.x?Math.min(n.x,E.left):Math.max(n.x,E.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<d.left||r===180&&n.x>d.right)&&(r===90&&(E.ca(e)||d.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(d.left,e.y,Math.max(n.x,E.right),n.y,!1):n.x>e.x&&(r===90||r===180)&&(O.x=this.computeMidOrthoPosition(d.right,e.y,Math.min(n.x,E.left),n.y,!1)),D.x=O.x,D.y=n.y),O.x>d.left&&O.x<d.right&&(n.y<=d.bottom&&n.y>=e.y||e.y>=E.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?d.left:Math.min(d.left,E.left)):Math.max(n.x,r===270?d.right:Math.max(d.right,E.right)),D.x=O.x,D.y=n.y)));var X=n;if(this.isAvoiding){var se=this.diagram;if(se===null||i===o||this.layer.isTemporary||!Vf(se)||d.ca(X)&&!o.Td(i)||E.ca(e)&&!i.Td(o))t=!1;else{var ge=Kf(se,!0,this.containingGroup,null);if(this.segmentIndex!==17&&ge.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))&&ge.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))&&ge.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 ve=n=null;if(se.isVirtualized){se=ge.bounds.copy(),se.Bc(-ge.Ho,-ge.Go);var Te=Pe.alloc();dd(ge,e.x,e.y)||(lt.Ff(se.x,se.y,se.x+se.width,se.y+se.height,e.x,e.y,O.x,O.y,Te)?(n=e=Te.copy(),t=Te.ab(O)):lt.Ff(se.x,se.y,se.x+se.width,se.y+se.height,O.x,O.y,D.x,D.y,Te)?(n=e=Te.copy(),t=Te.ab(D)):lt.Ff(se.x,se.y,se.x+se.width,se.y+se.height,D.x,D.y,X.x,X.y,Te)&&(n=e=Te.copy(),t=Te.ab(X))),dd(ge,X.x,X.y)||(lt.Ff(se.x,se.y,se.x+se.width,se.y+se.height,X.x,X.y,D.x,D.y,Te)?(ve=X=Te.copy(),r=D.ab(Te)):lt.Ff(se.x,se.y,se.x+se.width,se.y+se.height,D.x,D.y,O.x,O.y,Te)?(ve=X=Te.copy(),r=O.ab(Te)):lt.Ff(se.x,se.y,se.x+se.width,se.y+se.height,O.x,O.y,e.x,e.y,Te)&&(ve=X=Te.copy(),r=e.ab(Te))),Pe.free(Te)}d=d.copy().ed(E),d.Bc(ge.Ho*ge.Os,ge.Go*ge.Os),Sb(ge,e,t,X,r,d,!0),E=Zu(ge,X.x,X.y),!ge.abort&&E>=pd&&(bb(ge),d.Bc(ge.Ho*ge.Hx,ge.Go*ge.Ix),Sb(ge,e,t,X,r,d,!1),E=Zu(ge,X.x,X.y)),!ge.abort&&E<pd&&Zu(ge,X.x,X.y)!==Pc?(sy(this,ge,X.x,X.y,r,!0,a),d=this.i(2),4>this.pointsCount?(t===0||t===180?(d.x=e.x,d.y=X.y):(d.x=X.x,d.y=e.y),this.L(2,d.x,d.y),this.m(3,d.x,d.y)):(a=this.i(3),t===0||t===180?lt.B(d.x,a.x)?(d=t===0?Math.max(d.x,e.x):Math.min(d.x,e.x),this.L(2,d,e.y),this.L(3,d,a.y)):lt.B(d.y,a.y)?(Math.abs(e.y-d.y)<=ge.Go/2&&(this.L(2,d.x,e.y),this.L(3,a.x,e.y)),this.m(2,d.x,e.y)):this.L(2,e.x,d.y):(t===90||t===270)&&(lt.B(d.y,a.y)?(d=t===90?Math.max(d.y,e.y):Math.min(d.y,e.y),this.L(2,e.x,d),this.L(3,a.x,d)):lt.B(d.x,a.x)?(Math.abs(e.x-d.x)<=ge.Ho/2&&(this.L(2,e.x,d.y),this.L(3,e.x,a.y)),this.m(2,e.x,d.y)):this.L(2,d.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)),ve!==null&&(r===0||r===180?this.yf(o.x,ve.y):this.yf(ve.x,o.y)),t=!0):t=!1}}}else t=!1;t||(this.ne(O.copy()),this.ne(D.copy())),Pe.free(O),Pe.free(D)}},en.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||!Vf(e.diagram))return!1;var t=e.points.s,n=t.length;if(4>n)return!1;e=Kf(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 d=t.Ho,E=t.Go,O=Zu(t,n,r),D=n,X=r;for(i===0?D+=d:i===90?X+=E:i===180?D-=d:X-=E,i!==a&&O>$h&&Zu(t,D,X)!==O-1&&(Zu(t,n-d,r)===O-1?(i=180,D=n-d,X=r):Zu(t,n+d,r)===O-1?(i=0,D=n+d,X=r):Zu(t,n,r-E)===O-1?(i=270,D=n,X=r-E):Zu(t,n,r+E)===O-1&&(i=90,D=n,X=r+E));O>$h&&Zu(t,D,X)===O-1;)n=D,r=X,i===0?D+=d:i===90?X+=E:i===180?D-=d:X-=E,--O;o?O>$h&&(i===180||i===0?n=Math.floor(n/d)*d+d/2:(i===90||i===270)&&(r=Math.floor(r/E)*E+E/2)):(n=Math.floor(n/d)*d+d/2,r=Math.floor(r/E)*E+E/2),O>$h&&(o=i,a=n,D=r,i===0?(o=90,D+=E):i===90?(o=180,a-=d):i===180?(o=270,D-=E):i===270&&(o=0,a+=d),Zu(t,a,D)===O-1?sy(e,t,a,D,o,!1,o):(a=n,D=r,i===0?(o=270,D-=E):i===90?(o=0,a+=d):i===180?(o=90,D+=E):i===270&&(o=180,a-=d),Zu(t,a,D)===O-1&&sy(e,t,a,D,o,!1,o))),e.yf(n,r)}en.prototype.ez=function(e){var t=e.x;e=e.y;for(var n=this.i(0),r=this.i(1),i=pn(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 d=pn(t,e,r.x,r.y,n.x,n.y);r=n,d<i&&(o=a,i=d)}return o},en.prototype.qc=function(){this.lk=!1,this.v()},en.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 ur&&(i.ua=this.ua)}}},en.prototype.makeGeometry=function(){var e=this.ua,t=this.pointsCount,n=!1,r=this.diagram;r!==null&&Yh(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===ml&&3<=t&&!lt.$(this.smoothness,0))if(t===3){var d=this.i(1);r=Math.min(i.x,d.x);var E=Math.min(i.y,d.y);d=this.i(2),r=Math.min(r,d.x),E=Math.min(E,d.y)}else{if(this.isOrthogonal)for(E=0;E<t;E++)d=r[E],o.x=Math.min(d.x,o.x),o.y=Math.min(d.y,o.y);else for(r=3;r<t;r+=3)r+3>=t&&(r=t-1),E=this.i(r),o.x=Math.min(E.x,o.x),o.y=Math.min(E.y,o.y);r=o.x,E=o.y}else{for(E=0;E<t;E++)d=r[E],o.x=Math.min(d.x,o.x),o.y=Math.min(d.y,o.y);r=o.x,E=o.y}if(r-=this.su.x,E-=this.su.y,i.x-=r,i.y-=E,t!==2||Yh(this)){if(e.type=Qt.o,d=V0(e),this.computeShortLength(!0)!==0&&(i=yf(this,i,!0,o)),ud(d,i.x,i.y,!1),a===ml&&3<=t&&!lt.$(this.smoothness,0))if(t===3)n=this.i(1),t=n.x-r,n=n.y-E,i=this.i(2).copy(),i.x-=r,i.y-=E,this.computeShortLength(!1)!==0&&(i=yf(this,i,!1,o)),Ic(d,t,n,t,n,i.x,i.y);else if(this.isOrthogonal){t=Pe.allocAt(r,E),n=Pe.alloc(),n.assign(this.i(1)),o=Pe.allocAt(r,E),i=Pe.allocAt(r,E),a=this.i(0);for(var O,D=this.smoothness/3,X=1;X<this.pointsCount-1;X++){O=this.i(X);var se=a,ge=O,ve=this.i(ay(this,O,X,!1));if((!lt.$(se.x,ge.x)||!lt.$(ge.x,ve.x))&&(!lt.$(se.y,ge.y)||!lt.$(ge.y,ve.y))){var Te=D;isNaN(Te)&&(Te=this.smoothness/3);var Ke=se.x;se=se.y;var Ge=ge.x;ge=ge.y;var Xe=ve.x;ve=ve.y;var Ze=Te*am(Ke,se,Ge,ge);Te*=am(Ge,ge,Xe,ve),lt.$(se,ge)&&lt.$(Ge,Xe)&&(Ge>Ke?ve>ge?(o.x=Ge-Ze,o.y=ge-Ze,i.x=Ge+Te,i.y=ge+Te):(o.x=Ge-Ze,o.y=ge+Ze,i.x=Ge+Te,i.y=ge-Te):ve>ge?(o.x=Ge+Ze,o.y=ge-Ze,i.x=Ge-Te,i.y=ge+Te):(o.x=Ge+Ze,o.y=ge+Ze,i.x=Ge-Te,i.y=ge-Te)),lt.$(Ke,Ge)&&lt.$(ge,ve)&&(ge>se?(Xe>Ge?(o.x=Ge-Ze,o.y=ge-Ze,i.x=Ge+Te):(o.x=Ge+Ze,o.y=ge-Ze,i.x=Ge-Te),i.y=ge+Te):(Xe>Ge?(o.x=Ge-Ze,o.y=ge+Ze,i.x=Ge+Te):(o.x=Ge+Ze,o.y=ge+Ze,i.x=Ge-Te),i.y=ge-Te)),(lt.$(Ke,Ge)&&lt.$(Ge,Xe)||lt.$(se,ge)&&lt.$(ge,ve))&&(Ke=.5*(Ke+Xe),se=.5*(se+ve),o.x=Ke,o.y=se,i.x=Ke,i.y=se),(X===1||X===2&&lt.$(a.x,this.i(0).x)&&lt.$(a.y,this.i(0).y))&&(n.x=.5*(a.x+O.x),n.y=.5*(a.y+O.y)),Ic(d,n.x-r,n.y-E,o.x-r,o.y-E,O.x-r,O.y-E),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=yf(this,D.copy(),!1,an)),O=.5*(O+D.x),a=.5*(a+D.y),Ic(d,i.x-r,i.y-E,O-r,a-E,D.x-r,D.y-E),Pe.free(t),Pe.free(n),Pe.free(o),Pe.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=yf(this,a.copy(),!1,an)),Ic(d,o.x-r,o.y-E,i.x-r,i.y-E,a.x-r,a.y-E);else{for(o=Pe.alloc(),o.assign(this.i(0)),i=Pe.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=yf(this,D.copy(),!1,an)),bf(this,d,-r,-E,o,D,n);else if(O===0)for(X=1;X<t;)i.assign(o),D=this.i(X++),bf(this,d,-r,-E,o,D,n),o.assign(D);break}if(O=ay(this,D,X+1,X<t-3),X=-r,Ke=-E,se=D,Ge=this.i(O),Te=n,lt.B(o.y,se.y)&&lt.B(se.x,Ge.x))if(ve=Math.min(a,Math.abs(se.x-i.x)/2),ve=Ze=Math.min(ve,Math.abs(Ge.y-se.y)/2),lt.B(ve,0))bf(this,d,X,Ke,o,se,Te),o.assign(se);else{var tt=se.x,at=se.y;ge=tt,Xe=at,se.x>o.x?tt=se.x-ve:tt=se.x+ve,Ge.y>se.y?Xe=se.y+Ze:Xe=se.y-Ze,Ge=Pe.allocAt(tt,at),bf(this,d,X,Ke,o,Ge,Te),Pe.free(Ge),Jg(d,se.x+X,se.y+Ke,ge+X,Xe+Ke),o.h(ge,Xe)}else lt.B(o.x,se.x)&&lt.B(se.y,Ge.y)?(ve=Math.min(a,Math.abs(se.y-i.y)/2),ve=Ze=Math.min(ve,Math.abs(Ge.x-se.x)/2),lt.B(Ze,0)?(bf(this,d,X,Ke,o,se,Te),o.assign(se)):(tt=se.x,at=se.y,ge=tt,Xe=at,se.y>o.y?at=se.y-ve:at=se.y+ve,Ge.x>se.x?ge=se.x+Ze:ge=se.x-Ze,Ge=Pe.allocAt(tt,at),bf(this,d,X,Ke,o,Ge,Te),Pe.free(Ge),Jg(d,se.x+X,se.y+Ke,ge+X,Xe+Ke),o.h(ge,Xe))):(bf(this,d,X,Ke,o,se,Te),o.assign(se));i.assign(D),X=O}Pe.free(o)}Qg=d}else d=this.i(1).copy(),d.x-=r,d.y-=E,this.computeShortLength(!0)!==0&&(i=yf(this,i,!0,o)),this.computeShortLength(!1)!==0&&(d=yf(this,d,!1,o)),e.type=Qt.j,e.startX=i.x,e.startY=i.y,e.endX=d.x,e.endY=d.y;return this.lk=!0,e};function am(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),lt.$(e,0)?t:lt.$(t,0)?e:Math.sqrt(e*e+t*t)))}function yf(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=am(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=am(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;lt.$(t.x,o.x)&&lt.$(t.y,o.y);){if(n>=i)return i-1;o=e.i(n++)}if(!lt.$(t.x,o.x)&&!lt.$(t.y,o.y))return n-1;for(var a=o;lt.$(t.x,o.x)&&lt.$(o.x,a.x)&&(!r||(t.y>=o.y?o.y>=a.y:o.y<=a.y))||lt.$(t.y,o.y)&&lt.$(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}en.prototype.computeJumpLength=function(){return 10};function bf(e,t,n,r,i,o,a){if(!a&&Yh(e)){a=e.computeJumpLength();var d=a/2,E=[],O=0;if(e.isVisible()&&(O=z1(e,i,o,E)),0<O){if(lt.B(i.y,o.y))if(i.x<o.x)for(var D=0;D<O;){var X=Math.max(i.x,Math.min(E[D++]-d,o.x-a));t.lineTo(X+n,o.y+r);for(var se=X+n,ge=Math.min(X+a,o.x);D<O&&(X=E[D],X<ge+a);)D++,ge=Math.min(X+d,o.x);X=o.y-a+r,ge+=n;var ve=o.y+r;e.curve===Dc?ud(t,ge,ve,!1):Ic(t,se,X,ge,X,ge,ve)}else for(--O;0<=O;){for(D=Math.min(i.x,Math.max(E[O--]+d,o.x+a)),t.lineTo(D+n,o.y+r),se=D+n,X=Math.max(D-a,o.x);0<=O&&(D=E[O],D>X-a);)O--,X=Math.max(D-d,o.x);D=o.y-a+r,X+=n,ge=o.y+r,e.curve===Dc?ud(t,X,ge,!1):Ic(t,se,D,X,D,X,ge)}else if(lt.B(i.x,o.x))if(i.y<o.y)for(D=0;D<O;){for(X=Math.max(i.y,Math.min(E[D++]-d,o.y-a)),t.lineTo(o.x+n,X+r),se=X+r,X=Math.min(X+a,o.y);D<O&&(ge=E[D],ge<X+a);)D++,X=Math.min(ge+d,o.y);ge=o.x-a+n,ve=o.x+n,X+=r,e.curve===Dc?ud(t,ve,X,!1):Ic(t,ge,se,ge,X,ve,X)}else for(--O;0<=O;){for(D=Math.min(i.y,Math.max(E[O--]+d,o.y+a)),t.lineTo(o.x+n,D+r),se=D+r,D=Math.max(D-a,o.y);0<=O&&(X=E[O],X>D-a);)O--,D=Math.max(X-d,o.y);X=o.x-a+n,ge=o.x+n,D+=r,e.curve===Dc?ud(t,ge,D,!1):Ic(t,X,se,X,D,ge,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,d=0;d<a;d++){var E=o[d];if(E instanceof en){if(E===e)return 0<r.length&&r.sort(function(D,X){return D-X}),r.length;if(E.isVisible()&&Yh(E)){var O=E.routeBounds;O.w()&&e.routeBounds.Yc(O)&&!e.usesSamePort(E)&&(O=E.path,O!==null&&O.Ed()&&G1(t,n,r,E))}}}}}return 0<r.length&&r.sort(function(D,X){return D-X}),r.length}function G1(e,t,n,r){for(var i=lt.B(e.y,t.y),o=r.pointsCount,a=r.i(0),d=Pe.alloc(),E=1;E<o;E++){var O=r.i(E);if(E<o-1){var D=r.i(E+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,se=t.x,ge=t.y,ve=a.x;a=a.y;var Te=O.x,Ke=O.y;if(lt.B(D,se)){if(!lt.B(X,ge)&&lt.B(a,Ke)&&Math.min(X,ge)<a&&Math.max(X,ge)>a&&Math.min(ve,Te)<D&&Math.max(ve,Te)>D&&!lt.B(ve,Te)){d.x=D,d.y=a,D=!0;break e}}else if(lt.B(X,ge)&&lt.B(ve,Te)&&Math.min(D,se)<ve&&Math.max(D,se)>ve&&Math.min(a,Ke)<X&&Math.max(a,Ke)>X&&!lt.B(a,Ke)){d.x=ve,d.y=X,D=!0;break e}d.x=0,d.y=0,D=!1}D&&(i?n.push(d.x):n.push(d.y)),a=O}Pe.free(d)}function Yh(e){return e=e.curve,e===fd||e===Dc}function lm(e,t){(t||Yh(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()))}en.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,d=0;d<a;d++){var E=i[d];E instanceof en&&(E===this?o=!0:o&&gb(this,E,e))}}else if(r)for(o=i.Pa.s,i=o.length,a=0;a<i;a++)d=o[a],d instanceof en&&gb(this,d,e)}}}}};function gb(e,t,n){if(t!==null&&t.lk&&t.fd&&Yh(t)){var r=t.routeBounds;r.w()&&(e.routeBounds.Yc(r)||n.Yc(r))&&(e.usesSamePort(t)||t.qc())}}en.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},en.prototype.isVisible=function(){if(!Pn.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},en.prototype.Zb=function(e){if(Pn.prototype.Zb.call(this,e),e&&lm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var t=this.wd.iterator;t.next();)t.value.Zb(e)},en.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?wp:this.qk};function Sp(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,d=a.length,E=0;E<d;E++){var O=a[E];(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=rb(t,n,r,i),o===null&&(o=new dm(t,r,n,i),nb(t,o),nb(n,o)),o.links=e,t=0;t<e.length;t++)e[t].Sf=o;o.Sl()}}}}function xp(e){var t=e.Sf;t!==null&&isNaN(e.curviness)&&(e.Sf=null,e=t.links.indexOf(e),0<=e&&(we(t.links,e),t.Sl()))}en.prototype.ph=function(){return!0},Dn.Object.defineProperties(en.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&&nm(t,this,n),xp(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&&tm(e,this,i),Sp(this),this.C(1)),this.g("fromNode",t,e),cd(this)}}},fromPortId:{get:function(){return this.ff},set:function(e){var t=this.ff;if(t!==e){var n=this.fromPort;n!==null&&qa(n),xp(this),this.ff=e;var r=this.fromPort;r!==null&&qa(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))),Sp(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&&nm(t,this,n),xp(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&&tm(e,this,i),Sp(this),this.C(1)),this.g("toNode",t,e),cd(this)}}},toPortId:{get:function(){return this.vf},set:function(e){var t=this.vf;if(t!==e){var n=this.toPort;n!==null&&qa(n),xp(this),this.vf=e;var r=this.toPort;r!==null&&qa(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))),Sp(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:Bo},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&&qa(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&&hn(e,">= 0",en,"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:Bo},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&&qa(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&&hn(e,">= 0",en,"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?ui: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&&bp(this.fromNode),this.toNode!==null&&bp(this.toNode))}},path:{get:function(){var e=this.Pb();return e instanceof ur?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()===ml&&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),lt.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 d=this.i(o-1),E=this.i(o);lt.Dl(i.x,i.y,a.x,a.y,d.x,d.y,E.x,E.y,.5,e),t=Math.min(E.x,t),n=Math.min(E.y,n),i=E}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 Pe)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||im(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);lt.$(r.x,i.x)?(r=i.y-r.y,0>r&&(r=-r)):lt.$(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 Gt,r=0;r<e.length/2;r++)i=new Pe(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(!dt(o)||typeof o.x!="number"||isNaN(o.x)||typeof o.y!="number"||isNaN(o.y)){r=!1;break}}if(r)for(n=new Gt,r=0;r<e.length;r++)i=e[r],n.add(new Pe(i.x,i.y).freeze())}}else if(e instanceof Gt)for(n=e.copy(),e=n.iterator;e.next();)e.value.freeze();else nt("Link.points value is not an instance of List or Array: "+e);n.freeze(),this.Nb=n,this.qc(),im(this),e=this.diagram,e!==null&&(e.pi||e.undoManager.isUndoingRedoing||e.As.add(this),e.animationManager.zb&&A(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||!hd(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var e=this.pointsCount;return e===0?0:2>=e?e-1:this.isOrthogonal||!hd(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(),lm(this,t===Dc||t===fd||e===Dc||e===fd),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(),lm(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)}}}),en.prototype.invalidateOtherJumpOvers=en.prototype.Xo,en.prototype.findClosestSegment=en.prototype.ez,en.prototype.updateRoute=en.prototype.vg,en.prototype.invalidateRoute=en.prototype.bb,en.prototype.rollbackRoute=en.prototype.rv,en.prototype.commitRoute=en.prototype.zf,en.prototype.startRoute=en.prototype.uh,en.prototype.clearPoints=en.prototype.Fj,en.prototype.removePoint=en.prototype.pv,en.prototype.addPointAt=en.prototype.yf,en.prototype.addPoint=en.prototype.ne,en.prototype.insertPointAt=en.prototype.m,en.prototype.insertPoint=en.prototype.Kz,en.prototype.setPointAt=en.prototype.L,en.prototype.setPoint=en.prototype.dd,en.prototype.getPoint=en.prototype.i,en.prototype.getOtherPort=en.prototype.Cz,en.prototype.getOtherNode=en.prototype.To;var Sf=null,xf=null,ly=new Ut(en,"Normal",1),W1=new Ut(en,"Orthogonal",2),V1=new Ut(en,"AvoidsNodes",6),mb=new Ut(en,"AvoidsNodesStraight",7),ga=new Ut(en,"None",0),ml=new Ut(en,"Bezier",9),Dc=new Ut(en,"JumpGap",10),fd=new Ut(en,"JumpOver",11),wp=new Ut(en,"End",17),um=new Ut(en,"Scale",18),cm=new Ut(en,"Stretch",19),Ep=new Ut(en,"OrientAlong",21),Cp=new Ut(en,"OrientPlus90",22),Tp=new Ut(en,"OrientMinus90",23),uy=new Ut(en,"OrientOpposite",24),hm=new Ut(en,"OrientUpright",25),_p=new Ut(en,"OrientPlus90Upright",26),Ap=new Ut(en,"OrientMinus90Upright",27),fm=new Ut(en,"OrientUpright45",28),vb=16,yb=14,kp=8;en.className="Link",en.Normal=ly,en.Orthogonal=W1,en.AvoidsNodes=V1,en.AvoidsNodesStraight=mb,en.None=ga,en.Bezier=ml,en.JumpGap=Dc,en.JumpOver=fd,en.End=wp,en.Scale=um,en.Stretch=cm,en.OrientAlong=Ep,en.OrientPlus90=Cp,en.OrientMinus90=Tp,en.OrientOpposite=uy,en.OrientUpright=hm,en.OrientPlus90Upright=_p,en.OrientMinus90Upright=Ap,en.OrientUpright45=fm,en.EndSegmentStep=8,en.CurvinessStart=vb,en.SpacingMin=yb,en.OrthoShortCut=kp;function dm(e,t,n,r){Yn(this),this.Fe=this.qq=!1,this.Ds=e,this.Ox=t,this.cv=n,this.Px=r,this.links=[]}dm.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},dm.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))}},dm.className="LinkBundle";function Np(e){Yn(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}Np.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 dd(e,t,n){return e.Nd<=t&&t<=e.En&&e.Od<=n&&n<=e.Fn}function Zu(e,t,n){return dd(e,t,n)?(t-=e.Nd,t/=e.rc,n-=e.Od,n/=e.sc,e.ac[t|0][n|0]):cy}function bb(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]>=$h&&(n[r]=cy)}Np.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]===Pc)return!1}return!0};function Ju(e,t,n,r,i,o,a,d,E){if(!(t<o||t>a||n<d||n>E)){var O=t|0,D=n|0,X=e.ac[O][D];if(X>=$h&&X<pd)for(i?D+=r:O+=r,X+=1;o<=O&&O<=a&&d<=D&&D<=E&&!(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)Ju(e,t,n,1,!i,o,a,d,E),Ju(e,t,n,-1,!i,o,a,d,E);else for(n+=r;n>O;n+=r)Ju(e,t,n,1,!i,o,a,d,E),Ju(e,t,n,-1,!i,o,a,d,E);else if(0<r)for(t+=r;t<O;t+=r)Ju(e,t,n,1,!i,o,a,d,E),Ju(e,t,n,-1,!i,o,a,d,E);else for(t+=r;t>O;t+=r)Ju(e,t,n,1,!i,o,a,d,E),Ju(e,t,n,-1,!i,o,a,d,E)}}function pm(e,t,n,r,i,o,a,d,E){t|=0,n|=0;var O=Pc,D=$h;for(e.ac[t][n]=D;O===Pc&&t>o&&t<a&&n>d&&n<E;)D+=1,e.ac[t][n]=D,i?n+=r:t+=r,O=e.ac[t][n]}function gm(e,t,n,r,i,o,a,d,E){t|=0,n|=0;var O=Pc,D=pd;for(e.ac[t][n]=D;O===Pc&&t>o&&t<a&&n>d&&n<E;)e.ac[t][n]=D,i?n+=r:t+=r,O=e.ac[t][n]}function Sb(e,t,n,r,i,o,a){if(e.ac!==null){e.abort=!1;var d=t.x,E=t.y;if(dd(e,d,E)){d-=e.Nd,d/=e.rc,E-=e.Od,E/=e.sc;var O=r.x,D=r.y;if(dd(e,O,D))if(O-=e.Nd,O/=e.rc,D-=e.Od,D/=e.sc,1>=Math.abs(d-O)&&1>=Math.abs(E-D))e.abort=!0;else{var X=o.x;r=o.y,t=o.x+o.width;var se=o.y+o.height;X-=e.Nd,X/=e.rc,r-=e.Od,r/=e.sc,t-=e.Nd,t/=e.rc,se-=e.Od,se/=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)),se=Math.min(e.ei,Math.max(0,se|0)),r=e.ac,d|=0,E|=0,O|=0,D|=0;var ge=n===0||n===90?1:-1;if(n=n===90||n===270,r[d][E]===Pc?(pm(e,d,E,ge,n,o,t,X,se),pm(e,d,E,1,!n,o,t,X,se),pm(e,d,E,-1,!n,o,t,X,se)):pm(e,d,E,ge,n,d,E,d,E),r[O][D]===Pc?(gm(e,O,D,i===0||i===90?1:-1,i===90||i===270,o,t,X,se),gm(e,O,D,1,!(i===90||i===270),o,t,X,se),gm(e,O,D,-1,!(i===90||i===270),o,t,X,se)):gm(e,O,D,ge,n,O,D,O,D),n=An(),a&&xb(e,O,D,i,d,E,n))for((n[0]!==O||n[1]!==D)&&(n.unshift(D),n.unshift(O)),(n[n.length-2]!==d||n[n.length-1]!==E)&&(n.push(d),n.push(E)),e=$h,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 Ju(e,d,E,1,!1,o,t,X,se),Ju(e,d,E,-1,!1,o,t,X,se),Ju(e,d,E,1,!0,o,t,X,se),Ju(e,d,E,-1,!0,o,t,X,se);Nn(n)}}}}function xb(e,t,n,r,i,o,a){for(var d=e.ac,E=t,O=n;;){if(E===i&&O===o)return!0;var D=E,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 se=d[D][X];if(se===0||se===hy)break;E=D,O=X}for(;;){if(D=r,X=E,se=O,r===0?se<o?(D=90,se++):se>o&&(D=270,se--):r===90?X<i?(D=0,X++):X>i&&(D=180,X--):r===180?se<o?(D=90,se++):se>o&&(D=270,se--):X<i?(D=0,X++):X>i&&(D=180,X--),X=d[X][se],D!==r&&X!==0&&X!==hy){if(a.push(E),a.push(O),xb(e,E,O,D,i,o,a))return!0;a.pop(),a.pop()}if(d[E][O]=hy,r===0){if(E===t)return!1;E--}else if(r===90){if(O===n)return!1;O--}else if(r===180){if(E===t)return!1;E++}else{if(O===n)return!1;O++}}}Dn.Object.defineProperties(Np.prototype,{bounds:{get:function(){return new Ct(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 Pc=0,$h=1,pd=999999,cy=pd+1,hy=pd+2;Np.className="PositionArray";function wf(){Yn(this),this.port=this.node=null,this.pe=[],this.ap=!1}wf.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}wf.prototype.Sl=function(){this.pe.length=0};function wb(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 tr?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 d=e.port.ga(xr,Pe.alloc()),E=e.port.ga(ni,Pe.alloc());for(i=Ct.allocAt(d.x,d.y,0,0),i.Ye(E),Pe.free(d),Pe.free(E),d=Pe.allocAt(i.x+i.width/2,i.y+i.height/2),E=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 se=D.part;if(se!==null){var ge=se.findVisibleNode();ge!==null&&ge!==se&&(se=ge,D=se.port),D=O.computeOtherPoint(se,D),se=d.ab(D),se-=E,0>se?se+=360:360<=se&&(se-=360),X=K1(i,X,se,O.isOrthogonal),X===0?(X=4,180<se&&(se-=360)):X===90?(X=8,270<se&&(se-=360)):X===180?X=2:(X=1,90>se&&(se+=360)),ge=e.pe[o],ge===void 0?(ge=new fy(O,se,X),e.pe[o]=ge):(ge.link=O,ge.angle=se,ge.Nc=X),ge.hv.set(D),o++}}}}for(Pe.free(d),e.pe.sort(wf.prototype.j),E=e.pe.length,r=-1,o=d=0;o<E;o++)a=e.pe[o],a!==void 0&&(a.Nc!==r&&(r=a.Nc,d=0),a.Uo=d,d++);for(r=-1,d=0,o=E-1;0<=o;o--)E=e.pe[o],E!==void 0&&(E.Nc!==r&&(r=E.Nc,d=E.Uo+1),E.Gl=d);if(o=e.pe,X=e.port,r=e.node.portSpreading,d=Pe.alloc(),E=Pe.alloc(),a=Pe.alloc(),O=Pe.alloc(),X.ga(xr,d),X.ga(Jr,E),X.ga(ni,a),X.ga(Co,O),ge=se=D=X=0,r===ty)for(var ve=0;ve<o.length;ve++){var Te=o[ve];if(Te!==null){var Ke=Te.link.computeThickness();switch(Te.Nc){case 8:se+=Ke;break;case 2:ge+=Ke;break;case 1:X+=Ke;break;default:case 4:D+=Ke}}}var Ge=ve=0,Xe=1,Ze=Te=0;for(Ke=0;Ke<o.length;Ke++){var tt=o[Ke];if(tt!==null){if(ve!==tt.Nc){switch(ve=tt.Nc,ve){case 8:var at=a;Ge=O;break;case 2:at=O,Ge=d;break;case 1:at=d,Ge=E;break;default:case 4:at=E,Ge=a}switch(Te=Ge.x-at.x,Ze=Ge.y-at.y,ve){case 8:se>Math.abs(Te)?(Xe=Math.abs(Te)/se,se=Math.abs(Te)):Xe=1;break;case 2:ge>Math.abs(Ze)?(Xe=Math.abs(Ze)/ge,ge=Math.abs(Ze)):Xe=1;break;case 1:X>Math.abs(Te)?(Xe=Math.abs(Te)/X,X=Math.abs(Te)):Xe=1;break;default:case 4:D>Math.abs(Ze)?(Xe=Math.abs(Ze)/D,D=Math.abs(Ze)):Xe=1}Ge=0}var St=tt.Zo;if(r===ty){switch(tt=tt.link.computeThickness(),tt*=Xe,St.set(at),ve){case 8:St.x=at.x+Te/2+se/2-Ge-tt/2;break;case 2:St.y=at.y+Ze/2+ge/2-Ge-tt/2;break;case 1:St.x=at.x+Te/2-X/2+Ge+tt/2;break;default:case 4:St.y=at.y+Ze/2-D/2+Ge+tt/2}Ge+=tt}else{var ln=.5;r===rm&&(ln=(tt.Uo+1)/(tt.Gl+1)),St.x=at.x+Te*ln,St.y=at.y+Ze*ln}}}for(Pe.free(d),Pe.free(E),Pe.free(a),Pe.free(O),at=e.pe,o=0;o<at.length;o++)r=at[o],r!==null&&(r.Ju=e.computeEndSegmentLength(r));e.ap=n,Ct.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}wf.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},wf.prototype.computeEndSegmentLength=function(e){var t=e.link,n=t.computeEndSegmentLength(this.node,this.port,nr,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)},wf.className="Knot";function fy(e,t,n){this.link=e,this.angle=t,this.Nc=n,this.hv=new Pe,this.Gl=this.Uo=0,this.Zo=new Pe,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 lo(e){Yn(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Pe(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,e&&Object.assign(this,e)}lo.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},lo.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},lo.prototype.qb=function(){},lo.prototype.toString=function(){var e=Ft(this.constructor);return e+="(",this.group!==null&&(e+=" in "+this.group),this.diagram!==null&&(e+=" for "+this.diagram),e+")"},lo.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())}}},lo.prototype.createNetwork=function(){return new Vi(this)},lo.prototype.makeNetwork=function(e){var t=this.createNetwork();return e instanceof xt?(t.lg(e.nodes,!0),t.lg(e.links,!0)):e instanceof tr?t.lg(e.memberParts):t.lg(e.iterator),t},lo.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")}},lo.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()}},lo.prototype.doLayout=function(e){var t=new Wt;e instanceof xt?(ah(this,t,e.nodes,!0,this.rh,!0,!1,!0),ah(this,t,e.parts,!0,this.rh,!0,!1,!0)):e instanceof tr?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},lo.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 d=e.value;Rp(d);var E=d.measuredBounds,O=E.width;E=E.height,d.moveTo(r,i),d instanceof tr&&(d.rh=!1),r+=Math.max(O,50)+20,a=Math.max(a,Math.max(E,50)),o>=t-1?(o=0,r=n,i+=a+20,a=0):o++}},lo.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 d=a.value.node;if(!(d===null||d instanceof en)&&(Rp(d),this.rh(d))){var E=d.measuredBounds,O=E.width;E=E.height,d.moveTo(n,r),d instanceof tr&&(d.rh=!1),n+=Math.max(O,50)+20,o=Math.max(o,Math.max(E,50)),i>=e-1?(i=0,n=t,r+=o+20,o=0):i++}}},lo.prototype.rh=function(e){return!!(!e.location.w()||e instanceof tr&&e.rh)};function ah(e,t,n,r,i,o,a,d){for(n=n.iterator;n.next();){var E=n.value;r&&!E.isTopLevel||i!==null&&!i(E)||!E.canLayout()||(o&&E instanceof fn?E.isLinkLabel||(E instanceof tr&&E.layout===null?ah(e,t,E.memberParts,!1,i,o,a,d):(Rp(E),t.add(E))):a&&E instanceof en?t.add(E):!d||!E.Zc()||E instanceof fn||(Rp(E),t.add(E)))}}function Rp(e){var t=e.actualBounds;(t.width===0||t.height===0||isNaN(t.width)||isNaN(t.height))&&e.Va()}lo.prototype.ni=function(e,t){var n=this.boundsComputation;return n!==null?(t||(t=new Ct),n(e,this,t)):t?(t.set(e.actualBounds),t):e.actualBounds},lo.prototype.ex=function(e){var t=new Wt;return e instanceof xt?(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 tr?ah(this,t,e.memberParts,!1,null,!0,!0,!0):ah(this,t,e.iterator,!1,null,!0,!0,!0),t},lo.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(xr),(isNaN(n.x)||isNaN(n.y))&&n.set(e),e=t.padding,n.x+=e.left,n.y+=e.top),n}return e},Dn.Object.defineProperties(lo.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())}}}),lo.prototype.collectParts=lo.prototype.ex,lo.prototype.getLayoutBounds=lo.prototype.ni,lo.prototype.invalidateLayout=lo.prototype.C,lo.className="Layout";function Vi(e){Yn(this),this.Sc=e,this.wf=new Wt,this.ye=new Wt,this.Es=new wt,this.zs=new wt}Vi.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 Wt,this.ye=new Wt,this.Es=new wt,this.zs=new wt},Vi.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},Vi.prototype.createVertex=function(){return new Xo(this)},Vi.prototype.createEdge=function(){return new el(this)},Vi.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 fn)return!a.isLinkLabel;if(a instanceof en){var d=a.fromNode;return d===null||d.isLinkLabel?!1:(a=a.toNode,!(a===null||a.isLinkLabel))}return!1}),e=e.iterator;e.next();){var r=e.value;if(r instanceof fn&&(!t||r.isTopLevel)&&r.canLayout()&&n(r)){if(r instanceof tr&&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 en&&(!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))}}},Vi.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=Vi.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&&Eb(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 Eb(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=An(),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]);Nn(e)},Vi.prototype.deleteArtificialVertexes=function(){for(var e=An(),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=An(),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]);Nn(e),Nn(t)};function Y1(e){for(var t=An(),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]);Nn(t)}Vi.prototype.Zx=function(e){e===void 0&&(e=!0),e&&(this.deleteArtificialVertexes(),Y1(this),this.Ko()),e=new Gt;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){Eb(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))}}Vi.prototype.dz=function(){for(var e=new Wt,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},Dn.Object.defineProperties(Vi.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}}}),Vi.prototype.findAllParts=Vi.prototype.dz,Vi.prototype.splitIntoSubNetworks=Vi.prototype.Zx,Vi.prototype.deleteSelfEdges=Vi.prototype.Ko,Vi.prototype.reverseEdge=Vi.prototype.gm,Vi.prototype.linkVertexes=Vi.prototype.Zj,Vi.prototype.findEdge=Vi.prototype.Lo,Vi.prototype.deleteLink=Vi.prototype.Yy,Vi.prototype.deleteEdge=Vi.prototype.Mj,Vi.prototype.addLink=Vi.prototype.Dy,Vi.prototype.addEdge=Vi.prototype.Bo,Vi.prototype.findVertex=Vi.prototype.ki,Vi.prototype.deleteNode=Vi.prototype.Zy,Vi.prototype.deleteVertex=Vi.prototype.Iu,Vi.prototype.addNode=Vi.prototype.Bl,Vi.prototype.addVertex=Vi.prototype.dh,Vi.prototype.addParts=Vi.prototype.lg,Vi.className="LayoutNetwork";function Xo(e){Yn(this),this.ob=e,this.j=new Ct(0,0,10,10).freeze(),this.o=new Pe(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Gt,this.mg=new Gt}Xo.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Gt,this.mg=new Gt},Xo.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutVertex#"+br(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},Xo.prototype.commit=function(){var e=this.ub;if(e!==null){var t=this.bounds,n=e.bounds;dt(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 tr)){n=Ct.alloc(),e.Va();var r=this.network.layout.ni(e,n),i=e.locationObject.ga(ir);if(r.w()&&i.w()){e.moveTo(t.x+this.focusX-(i.x-r.x),t.y+this.focusY-(i.y-r.y)),Ct.free(n);return}Ct.free(n)}e.moveTo(t.x,t.y)}},Xo.prototype.Cl=function(e){e!==null&&(this.tg.contains(e)||this.tg.add(e))},Xo.prototype.Kl=function(e){e!==null&&this.tg.remove(e)},Xo.prototype.zl=function(e){e!==null&&(this.mg.contains(e)||this.mg.add(e))},Xo.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}Dn.Object.defineProperties(Xo.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=Ct.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),Ct.free(n),!(e instanceof tr)&&(e=e.locationObject.ga(ir),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 Wt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);return e.iterator}},destinationVertexes:{get:function(){for(var e=new Wt,t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},vertexes:{get:function(){for(var e=new Wt,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 Gt,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}}}),Xo.prototype.deleteDestinationEdge=Xo.prototype.Jl,Xo.prototype.addDestinationEdge=Xo.prototype.zl,Xo.prototype.deleteSourceEdge=Xo.prototype.Kl,Xo.prototype.addSourceEdge=Xo.prototype.Cl,Xo.className="LayoutVertex",Xo.standardComparer=my,Xo.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 el(e){Yn(this),this.nb=e,this.qd=this.kd=this.$k=this.ub=null}el.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},el.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutEdge#"+br(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},el.prototype.gm=function(){var e=this.kd;this.kd=this.qd,this.qd=e},el.prototype.commit=function(){},el.prototype.Ax=function(e){return this.qd===e?this.kd:this.kd===e?this.qd:null},Dn.Object.defineProperties(el.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)}}}),el.prototype.getOtherVertex=el.prototype.Ax,el.className="LayoutEdge";function Cs(e){lo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new un(NaN,NaN).freeze(),this.tf=new un(10,10).freeze(),this.Jb=Ip,this.Rb=vm,this.nd=Op,this.hd=Cb,e&&Object.assign(this,e)}Kn(Cs,lo),Cs.prototype.cloneProtected=function(e){lo.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},Cs.prototype.qb=function(e){e.classType===Cs?e===Op||e===bm||e===vy||e===ym?this.sorting=e:e===vm||e===Su?this.arrangement=e:e===Ip||e===mm?this.alignment=e:nt("Unknown enum value: "+e):lo.prototype.qb.call(this,e)},Cs.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 tr)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 ym:i.reverse();break;case Op:i.sort(this.comparer);break;case bm: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 mm:var d=t,E=n,O=Ct.alloc(),D=Math.max(this.cellSize.width,1);if(!isFinite(D))for(var X=D=0;X<i.length;X++){var se=this.ni(i[X],O);D=Math.max(D,se.width)}if(D=Math.max(D+d,1),X=Math.max(this.cellSize.height,1),!isFinite(X))for(se=X=0;se<i.length;se++){var ge=this.ni(i[se],O);X=Math.max(X,ge.height)}X=Math.max(X+E,1),se=this.arrangement;for(var ve=ge=this.arrangementOrigin.x,Te=this.arrangementOrigin.y,Ke=0,Ge=0,Xe=0;Xe<i.length;Xe++){var Ze=i[Xe],tt=this.ni(Ze,O),at=Math.ceil((tt.width+d)/D)*D,St=Math.ceil((tt.height+E)/X)*X;switch(se){case Su:var ln=Math.abs(ve-tt.width);break;default:ln=ve+tt.width}switch((0<o&&Ke>o-1||0<a&&0<Ke&&ln-ge>a)&&(r.push(new Ct(0,Te,a+d,Ge)),Ke=0,ve=ge,Te+=Ge,Ge=0),Ge=Math.max(Ge,St),se){case Su:tt=-tt.width;break;default:tt=0}switch(Ze.moveTo(ve+tt,Te),se){case Su:ve-=at;break;default:ve+=at}Ke++}r.push(new Ct(0,Te,a+d,Ge)),Ct.free(O);break;case Ip:for(E=a,D=o,X=t,se=n,a=Ct.alloc(),ge=Math.max(this.cellSize.width,1),o=Te=O=0,d=Pe.alloc(),ve=0;ve<i.length;ve++)Ge=i[ve],Ke=this.ni(Ge,a),Ge=Oc(Ge,Ge.locationObject,Ge.locationSpot,d),O=Math.max(O,Ge.x),Te=Math.max(Te,Ke.width-Ge.x),o=Math.max(o,Ge.y);switch(ve=this.arrangement,ve){case Su:O+=X;break;default:Te+=X}ge=isFinite(ge)?Math.max(ge+X,1):Math.max(O+Te,1);var _n=Ge=this.arrangementOrigin.x;for(Xe=this.arrangementOrigin.y,Te=0,E>=O&&(E-=O),O=Ze=0,at=Math.max(this.cellSize.height,1),tt=o=0,St=!0,Ke=Pe.alloc(),ln=0;ln<i.length;ln++){var Sn=i[ln],qt=this.ni(Sn,a),Pt=Oc(Sn,Sn.locationObject,Sn.locationSpot,d);if(0<Te)switch(ve){case Su:_n=(_n-Ge-(qt.width-Pt.x))/ge,_n=lt.$(Math.round(_n),_n)?Math.round(_n):Math.floor(_n),_n=_n*ge+Ge;break;default:_n=(_n-Ge+Pt.x)/ge,_n=lt.$(Math.round(_n),_n)?Math.round(_n):Math.ceil(_n),_n=_n*ge+Ge}else switch(ve){case Su:Ze=_n+Pt.x+qt.width;break;default:Ze=_n-Pt.x}switch(ve){case Su:var er=-(_n+Pt.x)+Ze;break;default:er=_n+qt.width-Pt.x-Ze}if(0<D&&Te>D-1||0<E&&0<Te&&er>E){for(r.push(new Ct(0,St?Xe-o:Xe,E+X,tt+o+se)),_n=0;_n<Te&&ln!==Te;_n++){er=i[ln-Te+_n];var $n=Oc(er,er.locationObject,er.locationSpot,Ke);er.moveTo(er.position.x,er.position.y+o-$n.y)}tt+=se,Xe=St?Xe+tt:Xe+(tt+o),Te=tt=o=0,_n=Ge,St=!1}switch(_n===Ge&&(O=ve===Su?Math.max(O,qt.width-Pt.x):Math.min(O,-Pt.x)),o=Math.max(o,Pt.y),tt=Math.max(tt,qt.height-Pt.y),isFinite(at)&&(tt=Math.max(tt,Math.max(qt.height,at)-Pt.y)),St?Sn.moveTo(_n-Pt.x,Xe-Pt.y):Sn.moveTo(_n-Pt.x,Xe),ve){case Su:_n-=Pt.x+X;break;default:_n+=qt.width-Pt.x+X}Te++}if(r.push(new Ct(0,Xe,E+X,(St?tt:tt+o)+se)),i.length!==Te)for(E=0;E<Te;E++)D=i[i.length-Te+E],X=Oc(D,D.locationObject,D.locationSpot,d),D.moveTo(D.position.x,D.position.y+o-X.y);if(Pe.free(d),Pe.free(Ke),ve===Su)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);Ct.free(a)}for(d=o=a=i=0;d<r.length;d++)E=r[d],i=Math.min(i,E.x),a=Math.min(a,E.y),o=Math.max(o,E.x+E.width);this.arrangement===Su?this.commitLayers(r,new Pe(i+t/2-(o+i),a-n/2)):this.commitLayers(r,new Pe(i-t/2,a-n/2)),e!==null&&e.eb("Layout"),this.isValidLayout=!0}},Cs.prototype.commitLayers=function(){};function Cb(e,t){return e=e.text,t=t.text,e<t?-1:e>t?1:0}Dn.Object.defineProperties(Cs.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!==Ip&&e!==mm||(this.Jb=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==vm&&e!==Su||(this.Rb=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==vy&&e!==ym&&e!==Op&&e!==bm||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}}});var mm=new Ut(Cs,"Position",0),Ip=new Ut(Cs,"Location",1),vm=new Ut(Cs,"LeftToRight",2),Su=new Ut(Cs,"RightToLeft",3),vy=new Ut(Cs,"Forward",4),ym=new Ut(Cs,"Reverse",5),Op=new Ut(Cs,"Ascending",6),bm=new Ut(Cs,"Descending",7);Cs.className="GridLayout",Cs.standardComparer=Cb,Cs.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},Cs.Position=mm,Cs.Location=Ip,Cs.LeftToRight=vm,Cs.RightToLeft=Su,Cs.Forward=vy,Cs.Reverse=ym,Cs.Ascending=Op,Cs.Descending=bm;function pi(){this.On=new Wt,this.Dn=new Wt,this.Pa=new Wt,this.cf=new wt,this.bf=new wt,this.aj=new wt,this.H=null,this.tp=!1}ye=pi.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 fn){if(this.On.add(e),e instanceof tr){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 en?this.Dn.add(e):e instanceof Zr||this.Pa.add(e);t=e.data,t===null||e instanceof Zr||(e instanceof en?this.bf.add(t,e):this.cf.add(t,e))},ye.pc=function(e){if(e.Ej(),e instanceof fn){if(this.On.remove(e),e instanceof tr){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 en?this.Dn.remove(e):e instanceof Zr||this.Pa.remove(e);t=e.data,t===null||e instanceof Zr||(e instanceof en?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 tr)&&nt('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 tr||nt('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 en||nt('Invalid link template in Diagram.linkTemplateMap: template for "'+r+'" must be a Link, not a normal Node or simple Part: '+n);for(t=An(),n=e.selection.iterator;n.next();)(r=n.value.data)&&t.push(r);for(n=An(),e=e.highlighteds.iterator;e.next();)(r=e.value.data)&&n.push(r);for(e=An(),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]);Nn(t),Nn(n),Nn(e)}},pi.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},pi.prototype.addModeledParts=function(e,t){var n=this,r=this.diagram.model;e.forEach(function(i){r.lb(i)&&Tb(n,i,!1)}),e.forEach(function(i){r.lb(i)&&n.resolveReferencesForData(i)}),t!==!1&&Gf(this.diagram,!1)};function Tb(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=_b(e,t,r);if(i!==null&&(zl(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)}}pi.prototype.insertLink=function(){return null},pi.prototype.resolveReferencesForData=function(){},pi.prototype.Ro=function(e){return this.H.model.Ro(e)};function _b(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&&(Nb||(Nb=!0,yn('No Group template found for category "'+n+'"'),yn(" Using default group template")),t=e.ly))):(t=e.nodeTemplateMap.I(n),t===null&&(t=e.nodeTemplateMap.I(""),t===null&&(kb||(kb=!0,yn('No Node template found for category "'+n+'"'),yn(" Using default node template")),t=e.ny))),t}pi.prototype.getLinkCategoryForData=function(){return""},pi.prototype.setLinkCategoryForData=function(){},pi.prototype.setFromNodeForLink=function(){},pi.prototype.setToNodeForLink=function(){},pi.prototype.findLinkTemplateForCategory=function(e){var t=this.H,n=t.linkTemplateMap.I(e);return n===null&&(n=t.linkTemplateMap.I(""),n===null&&(Rb||(Rb=!0,yn('No Link template found for category "'+e+'"'),yn(" Using default link template")),n=t.my)),n},pi.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},pi.prototype.Gs=function(e){var t=this;e.forEach(function(n){t.ip(n)})},pi.prototype.ip=function(e){e=this.Lc(e),e!==null&&(Kd(this.diagram,e,!1),this.unresolveReferencesForPart(e))},pi.prototype.unresolveReferencesForPart=function(){},pi.prototype.removeDataForLink=function(){},pi.prototype.findPartForKey=function(e){return e==null?null:(e=this.H.model.hc(e),e!==null?this.cf.I(e):null)},pi.prototype.Vb=function(e){return e==null||(e=this.H.model.hc(e),e===null)?null:(e=this.cf.I(e),e instanceof fn?e:null)},pi.prototype.findLinkForKey=function(){return null},ye=pi.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 fn?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 Wt;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(dt(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 Wt;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(dt(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(on(o)){if(!on(i)||i.length<o.length)return!1;for(var a=0;a<i.length;a++){var d=o[a];if(d!==void 0&&!Ab(e,i[a],d))return!1}}else if(!Ab(e,i,o))return!1}return!0}function Ab(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(dt(t)&&dt(n)){if(!yy(e,t,n))return!1}else if(t!==n)return!1;return!0}pi.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===Ui){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===uo){var a=e.newValue;r==="nodeDataArray"&&dt(a)&&Tb(this,a),t.isModified=!0}else if(n===po){var d=e.oldValue;r==="nodeDataArray"&&dt(d)&&this.ip(d),t.isModified=!0}else n===ms&&(r==="SourceChanged"?e.object!==null?this.updateDataBindings(e.object,e.propertyName):(this.rp(),this.updateAllTargetBindings()):r==="ModelDisplaced"&&this.Wd());else if(n===Ui){var E=e.propertyName,O=e.object;O===t.model?(E==="nodeKeyProperty"||E==="nodeCategoryProperty")&&(t.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(O,E),t.isModified=!0}else if(n===uo||n===po){var D=e.change===uo,X=D?e.newParam:e.oldParam,se=D?e.newValue:e.oldValue,ge=this.aj.I(e.object);if(Array.isArray(ge))for(e=0;e<ge.length;e++){var ve=ge[e];if(D)Bg(ve,se,X,!0);else if(!(0>X)){var Te=X+dp(ve);ve.pc(Te,!0),Ov(ve,Te,X)}}t.isModified=!0}}finally{t.aa=!0}}}}},pi.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)},pi.prototype.rp=function(){for(var e=this.H.model,t=new Wt,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){jb(e,a,!1)}),r=0;r<n.length;r++){var o=n[r];this.Lc(o)===null&&Bb(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()},pi.prototype.refreshDataBoundLinks=function(){},pi.prototype.updateRelationshipsFromData=function(){},pi.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=An()),n.push(a))}if(n!==null)break}if(n!==null){for(r=0;r<n.length;r++)n[r].La(t);Nn(n)}}e===this.diagram.model.modelData&&this.updateAllTargetBindings(t)}};function by(e,t){var n=t.Hh;if(on(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){Gh(t,function(a){a=a.O.s;for(var d=a.length,E=0;E<d;E++)Jd(n,a[E])});var r=t.Hh;if(on(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}}}}pi.prototype.Kj=function(e,t,n){n===void 0&&(n=!1);var r=new wt;if(on(e))for(var i=0;i<e.length;i++)Sm(this,e[i],t,r,n);else for(e=e.iterator;e.next();)Sm(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 Wt;for(var o=new wt,a=r.iterator;a.next();){var d=a.value;if(d instanceof en)e||d.fromNode!==null&&d.toNode!==null||i.add(d);else if(d instanceof fn&&d.data!==null&&n.Tl()){var E=d;d=a.key;var O=d.pg();O!==null&&(O=r.I(O),O!==null?(n.qe(E.data,n.wa(O.data)),E=t.Kc(E.data),d=d.kh(),d!==null&&E!==null&&o.add(d,E)):n.qe(E.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 wt;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 Sm(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 Pn))return null;if(o.isSelected=!1,o.isHighlighted=!1,r.add(t,o),t instanceof fn){for(var a=t.linksConnected;a.next();){var d=a.value;if(d.fromNode===t){var E=r.I(d);E!==null&&(E.fromNode=o)}d.toNode===t&&(d=r.I(d),d!==null&&(d.toNode=o))}if(t instanceof tr&&o instanceof tr)for(t=t.memberParts;t.next();)a=Sm(e,t.value,n,r,i),a instanceof en||a===null||(a.containingGroup=o)}else if(t instanceof en&&o instanceof en)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=Sm(e,t.value,n,r,i),a!==null&&a instanceof fn&&(a.labeledLink=o);return o}pi.prototype.copyPartData=function(e,t){var n=null,r=e.data;if(r!==null&&t!==null){var i=t.model;e instanceof en||(r=i.copyNodeData(r),dt(r)&&(i.xf(r),n=t.Lc(r)))}else zl(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 en||(i=t.copyNodeData(r)),dt(i)&&(n.data=i)));return n},Dn.Object.defineProperties(pi.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}}}),pi.prototype.updateAllRelationshipsFromData=pi.prototype.rp,pi.prototype.findLinksByExample=pi.prototype.ls,pi.prototype.findNodesByExample=pi.prototype.ms,pi.prototype.findLinkForData=pi.prototype.Kc,pi.prototype.findNodeForData=pi.prototype.ii,pi.prototype.findPartForData=pi.prototype.Lc,pi.prototype.findNodeForKey=pi.prototype.Vb,pi.prototype.removeModeledPart=pi.prototype.ip,pi.prototype.removeModeledParts=pi.prototype.Gs,pi.prototype.rebuildParts=pi.prototype.Wd;var kb=!1,Nb=!1,Rb=!1;pi.className="PartManager";function cs(e){pi.apply(this,arguments)}Kn(cs,pi),cs.prototype.addAllModeledParts=function(){var e=this.diagram.model;this.addModeledParts(e.nodeDataArray),Ib(this,e.linkDataArray)},cs.prototype.addModeledParts=function(e){for(pi.prototype.addModeledParts.call(this,e,!1),e=this.links.iterator;e.next();)cd(e.value);Gf(this.diagram,!1)};function Ib(e,t){t.forEach(function(n){Ob(e,n)}),Gf(e.diagram,!1)}function Ob(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){zl(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=Cm(n,t,!0);o!==""&&(i.fromPortId=o),o=vl(n,t,!0),o!==void 0&&(o=e.Vb(o),o instanceof fn&&(i.fromNode=o)),o=Cm(n,t,!1),o!==""&&(i.toPortId=o),o=vl(n,t,!1),o!==void 0&&(o=e.Vb(o),o instanceof fn&&(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}}}}cs.prototype.removeAllModeledParts=function(){var e=this.diagram.model;Lb(this,e.linkDataArray),this.Gs(e.nodeDataArray)};function Lb(e,t){t.forEach(function(n){e.ip(n)})}cs.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ps(e)},cs.prototype.setLinkCategoryForData=function(e,t){return this.diagram.model.lp(e,t)},cs.prototype.setFromNodeForLink=function(e,t){var n=this.diagram.model;n.wv(e.data,n.wa(t!==null?t.data:null))},cs.prototype.setToNodeForLink=function(e,t){var n=this.diagram.model;n.Bv(e.data,n.wa(t!==null?t.data:null))},cs.prototype.removeDataForLink=function(e){this.diagram.model.bm(e.data)},cs.prototype.findPartForKey=function(e){var t=pi.prototype.findPartForKey.call(this,e);return t===null&&(e=this.diagram.model.jh(e),e!==null)?this.bf.I(e):t},cs.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.jh(e),e!==null?this.bf.I(e):null)},cs.prototype.doModelChanged=function(e){var t=this;if(pi.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===Ui){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 d=this.Kc(e.object);if(d!==null){var E=this.Vb(e.newValue);d.toNode=E}}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 se=e.newValue;typeof se=="string"&&(X.toPortId=se)}}else if(i==="nodeGroupKey"){var ge=this.Lc(e.object);if(ge!==null){var ve=e.newValue;if(ve!==void 0){var Te=this.Vb(ve);Te instanceof tr?ge.containingGroup=Te:ge.containingGroup=null}else ge.containingGroup=null}}else if(i==="linkLabelKeys"){var Ke=this.Kc(e.object);if(Ke!==null){var Ge=e.oldValue,Xe=e.newValue;Array.isArray(Ge)&&Ge.forEach(function(Pt){0<=Xe.indexOf(Pt)||(Pt=t.Vb(Pt),Pt!==null&&(Pt.labeledLink=null))}),Array.isArray(Xe)&&Xe.forEach(function(Pt){Pt=t.Vb(Pt),Pt!==null&&(Pt.labeledLink=Ke)})}}else if(i==="linkCategory"){var Ze=this.Kc(e.object),tt=e.newValue;Ze!==null&&typeof tt=="string"&&(Ze.category=tt)}else i==="linkDataArray"&&(Lb(this,e.oldValue),Ib(this,e.newValue));n.isModified=!0}else if(r===uo){var at=e.newValue;if(i==="linkDataArray"&&typeof at=="object"&&at!==null)Ob(this,at);else if(i==="linkLabelKeys"&&uh(at)){var St=this.Kc(e.object),ln=this.Vb(at);St!==null&&ln!==null&&(ln.labeledLink=St)}n.isModified=!0}else if(r===po){var _n=e.oldValue;if(i==="linkDataArray"&&typeof _n=="object"&&_n!==null)this.ip(_n);else if(i==="linkLabelKeys"&&uh(_n)){var Sn=this.Vb(_n);Sn!==null&&(Sn.labeledLink=null)}n.isModified=!0}}else if(r===Ui){var qt=e.propertyName;e.object!==n.model||qt!=="linkFromKeyProperty"&&qt!=="linkToKeyProperty"&&qt!=="linkFromPortIdProperty"&&qt!=="linkToPortIdProperty"&&qt!=="linkLabelKeysProperty"&&qt!=="nodeIsGroupProperty"&&qt!=="nodeGroupKeyProperty"&&qt!=="linkCategoryProperty"||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},cs.prototype.refreshDataBoundLinks=function(){var e=this,t=this.diagram.model,n=new Wt,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){Vb(t,o,!1)}),r.forEach(function(o){e.Kc(o)===null&&Wb(t,o,!1)})},cs.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 en){var i=vl(r,t,!0);if(i=n.Vb(i),e.fromNode=i,i=vl(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 Wt().addAll(t);var a=new Wt;e.labelNodes.each(function(d){d.data!==null&&(d=r.wa(d.data),d!==void 0&&a.add(d))}),t=a.copy(),t.hp(i),i=i.copy(),i.hp(a),(0<t.count||0<i.count)&&(t.each(function(d){d=n.Vb(d),d!==null&&d.labeledLink===e&&(d.labeledLink=null)}),i.each(function(d){d=n.Vb(d),d!==null&&d.labeledLink!==e&&(d.labeledLink=e)}))}}else!(e instanceof Zr)&&(t=r.lh(t),t=n.findPartForKey(t),t===null||t instanceof tr)&&(e.containingGroup=t)}}},cs.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var r=Lp(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 tr&&t.lh(a)===n&&(a=this.Lc(a),a!==null&&(a.containingGroup=i)):(o.link=this.Kc(a),o.link!==null&&i instanceof fn&&(vl(t,a,!0)===n&&(o.link.fromNode=i),vl(t,a,!1)===n&&(o.link.toNode=i),a=t.Ef(a),Array.isArray(a)&&a.some(function(d){return function(E){return E===n?(i.labeledLink=d.link,!0):!1}}(o)))),o={link:o.link}}wu(t,n)}e=t.lh(e),e!==void 0&&(e=this.Vb(e),e instanceof tr&&(i.containingGroup=e))}},cs.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof fn){var n=t.wa(e.data);if(n!==void 0){for(var r=e.linksConnected;r.next();)xu(t,n,r.value.data);if(e.isLinkLabel&&(r=e.labeledLink,r!==null&&xu(t,n,r.data)),e instanceof tr)for(e=e.memberParts;e.next();)r=e.value.data,t.lb(r)&&xu(t,n,r)}}},cs.prototype.copyPartData=function(e,t){var n=pi.prototype.copyPartData.call(this,e,t);if(e instanceof en)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},cs.prototype.insertLink=function(e,t,n,r){var i=this.diagram,o=i.model,a=i.toolManager.findTool("Linking"),d="";if(e!==null&&(t===null&&(t=e),d=t.portId,d===null&&(d="")),t="",n!==null&&(r===null&&(r=n),t=r.portId,t===null&&(t="")),r=a.archetypeLinkData,r instanceof en){if(zl(r),o=r.copy(),o!==null)return o.fromNode=e,o.fromPortId=d,o.toNode=n,o.toPortId=t,i.add(o),e=a.archetypeLabelNodeData,e instanceof fn&&(zl(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),vd(o,r,d,!0),n!==null&&md(o,r,o.wa(n.data),!1),vd(o,r,t,!1),o.fi(r),e=a.archetypeLabelNodeData,e===null||e instanceof fn||(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},cs.prototype.findLinkForKey=cs.prototype.findLinkForKey,cs.prototype.findPartForKey=cs.prototype.findPartForKey,cs.prototype.removeAllModeledParts=cs.prototype.removeAllModeledParts,cs.prototype.addModeledParts=cs.prototype.addModeledParts,cs.prototype.addAllModeledParts=cs.prototype.addAllModeledParts,cs.className="GraphLinksPartManager";function Il(){pi.apply(this,arguments),this.Sg=null}Kn(Il,pi);function xm(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||!Ms(r,i,o,null,!0))&&(t=e.getLinkCategoryForData(n.data),r=e.findLinkTemplateForCategory(t),r!==null&&(zl(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}}}Il.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ss(e)},Il.prototype.setLinkCategoryForData=function(e,t){this.diagram.model.Ms(e,t)},Il.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}},Il.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))},Il.prototype.removeDataForLink=function(e){this.diagram.model.qe(e.data,void 0)},Il.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.hc(e),e!==null?this.bf.I(e):null)},Il.prototype.doModelChanged=function(e){if(pi.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===Ui){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 d=a.kh();d!==null?o===null?t.remove(d):t.isTreePathToChildren?d.fromNode=o:d.toNode=o:xm(this,o,a)}}else if(r==="parentLinkCategory"){var E=this.ii(e.object),O=e.newValue;if(E!==null&&typeof O=="string"){var D=E.kh();D!==null&&(D.category=O)}}t.isModified=!0}}else if(n===Ui){var X=e.propertyName;e.object===t.model&&X==="nodeParentKeyProperty"&&(t.undoManager.isUndoingRedoing||this.Wd()),t.isModified=!0}}finally{t.aa=!0}}}}},Il.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var r=n.model;e instanceof fn&&(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:xm(this,t,e):r!==null&&Kd(n,r,!1)))}}},Il.prototype.updateDataBindings=function(e,t){pi.prototype.updateDataBindings.call(this,e,t),typeof t=="string"&&this.Lc(e)!==null&&(e=this.Kc(e),e!==null&&e.La(t))},Il.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var r=Lp(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 fn&&t.mh(o)===n&&xm(this,i,this.ii(o))}wu(t,n)}e=t.mh(e),e!==void 0&&i instanceof fn&&(e=this.Vb(e),xm(this,e,i))}},Il.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof fn){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(po,"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)&&xu(t,n,i)}},Il.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},Il.prototype.findLinkForKey=Il.prototype.findLinkForKey,Il.className="TreePartManager";function In(e,t){this.kl=new Wt,this.il=new Wt,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Yn(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new wt,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 wt,this.Lt=new Gt,this.Wg=!1,this.o=null,this.undoManager=new Ai,e!==void 0&&(on(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}In.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},In.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},In.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},In.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)+":"+hr(i)}}return t},In.prototype.xA=function(e){e.change!==ms&&nt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+e.toString());var t=e.object;return e.isTransactionFinished&&t instanceof _o?(Db(this,t),e=this.Qv(t,e.propertyName==="FinishedUndo"),this.vh=null,e):null},In.prototype.Qv=function(e,t){var n=this,r=!1,i=new Wt,o=new Wt,a=new Wt,d=this.vh;e.changes.each(function(X){X.model===n&&(X.modelChange==="nodeDataArray"?X.change===uo?i.add(X.newValue):X.change===po&&a.add(X.oldValue):n.lb(X.object)?o.add(X.object):X.change!==Ui||n.modelData!==X.object&&X.propertyName!=="modelData"?X.object!==null&&(d&&d.contains(X.object)?d.get(X.object).each(function(se){n.lb(se)&&o.add(se)}):X.object instanceof In||n.ri()&&n.Jc(X.object)||Pb(n,X.object).each(function(se){o.add(se)})):r=!0)});var E=this.il;E.clear(),i.each(function(X){E.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<E.count&&(D===null&&(D={}),t?D.removedNodeKeys=E.Fa():D.insertedNodeKeys=E.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(),E.clear(),D},In.prototype.cloneDeep=function(e){return gd(this,e,!0)};function gd(e,t,n,r,i,o){function a(X,se){d?(X.__gohashid===void 0&&o.push(X),r.set(X,se)):(X=mi++,r.set(X,se),i.set(X,t))}if(!dt(t))return t;o||(o=[]);var d=Object.isExtensible(t);if(r||(r=new wt),d){var E=r.get(t);if(E)return E}else for(i||(i=new wt),E=i.iterator;E.next();){var O=E.key;if(E.value===t&&(O=r.get(O)))return O}if(Array.isArray(t)){E=[],a(t,E);for(var D=0;D<t.length;D++)E.push(gd(e,t[D],!1,r,i,o))}else if(t instanceof Pe||t instanceof un||t instanceof Ct||t instanceof sr||t instanceof Cn)E=t.copy(),a(t,E);else{if(t instanceof fi||t instanceof Qt||t instanceof Ut)return t;if(t instanceof Gt)E=new Gt().addAll(gd(e,t.Fa(),!1,r,i,o)),a(t,E);else if(t instanceof Wt)E=new Wt().addAll(gd(e,t.Fa(),!1,r,i,o)),a(t,E);else if(t instanceof wt)E=new wt().addAll(gd(e,t.Fa(),!1,r,i,o)),a(t,E);else if(t instanceof Date)E=new Date(t.getTime()),a(t,E);else if(t instanceof RegExp)E=new RegExp(t),a(t,E),E.lastIndex=t.lastIndex;else if(typeof t.copy=="function")E=t.copy(),a(t,E);else for(D in E={},a(t,E),t)D!=="__gohashid"&&(E[D]=gd(e,t[D],!1,r,i,o))}return n&&o.forEach(function(X){delete X.__gohashid}),E}ye=In.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 Mb(e,t){t=t.modelData,dt(t)&&(e.dm(t),e.modelData=t)}ye.Rv=function(){var e=this.modelData,t=!1,n;for(n in e)if(!Fb(n,e[n])){t=!0;break}return e="",t&&(e=`,
"modelData": `+xy(this,this.modelData)),e+`,
"nodeDataArray": `+lh(this,this.nodeDataArray,!0)},ye.kv=function(e){Mb(this,e),e=e.nodeDataArray,on(e)&&(this.dm(e),this.nodeDataArray=e)};function Db(e,t){function n(i,o){if((o=o.part)&&(o=o.data,i!==o)){var a=r.get(i);a===null?(a=new Wt,a.add(o),r.add(i,a)):a.add(o)}}var r=e.vh;r===null&&(r=new wt,t.changes.each(function(i){if(i.diagram!==null){var o=i.change;o===Ui?(i=i.object.panel)&&(o=i.data)&&n(o,i):(o===uo||o===po)&&(i=i.object,(o=i.itemArray)&&n(o,i))}}),e.vh=r)}function Pb(e,t){for(var n=new Wt,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(dt(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 Wt,o=new Wt,a=new Wt,d=this.vh;e.changes.each(function(D){D.model===n&&(D.modelChange==="nodeDataArray"?D.change===uo?i.add(D.newValue):D.change===po&&a.add(D.oldValue):n.lb(D.object)?o.add(D.object):D.change!==Ui||n.modelData!==D.object&&D.propertyName!=="modelData"?D.object!==null&&(d&&d.contains(D.object)?d.get(D.object).each(function(X){n.lb(X)&&o.add(X)}):D.object instanceof In||n.ri()&&n.Jc(D.object)||Pb(n,D.object).each(function(X){o.add(X)})):r=!0)});var E=this.il;E.clear(),i.each(function(D){E.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<E.count&&(e+=(t?this.Yv:this.Wv)+lh(this,E.Fa(),!0)),0<o.count&&(e+=this.jy+lh(this,o.Fa(),!0)),0<O.count&&(e+=(t?this.Wv:this.Yv)+lh(this,O.Fa(),!0)),O.clear(),E.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)&&nt("applyIncrementalJson cannot change Model properties"),Mb(this,e);var t=e.insertedNodeKeys,n=e.modifiedNodeData,r=new wt;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 d=this.hc(a);d===null&&(d=(d=r.get(a))?d:this.copyNodeData({}),this.km(d,a),this.xf(d))}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 E in i)E==="__gohashid"||E===this.nodeKeyProperty||this.Wj()&&E===this.nodeIsGroupProperty||this.setDataProperty(o,E,i[E]);this.lm(i,o)}}if(e=e.removedNodeKeys,Array.isArray(e))for(n=e.length,E=0;E<n;E++)t=this.hc(e[E]),t!==null&&this.cm(t)},ye.$x=function(e,t){e.change!==ms&&nt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+e.toString());var n=e.object;return e.isTransactionFinished&&n instanceof _o?(t===void 0&&(t=Mp(this,this)),Db(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=Mp(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=mn.JSON.parse(e)}catch(r){}else typeof e=="object"?t=e:nt("Unable to modify a Model from: "+e);var n=t.incremental;typeof n!="number"&&nt("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)},In.constructGraphLinksModel=function(){return new In},ye=In.prototype,ye.dm=function(e){if(on(e))for(var t=e.length,n=0;n<t;n++){var r=e[n];if(dt(r)){var i=n;r=this.dm(r),Array.isArray(e)?e[i]=r:nt("Cannot replace an object in an HTMLCollection or NodeList at "+i)}}else if(dt(e)){for(t in e)if(n=e[t],dt(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 Gt,r=0;r<n.length/2;r++)i.add(new Pe(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()):on(e)?lh(this,e):dt(e)?xy(this,e):typeof e=="function"?"null":e.toString()};function lh(e,t,n){n===void 0&&(n=!1);var r=t.length;if(0>=r)return"[]";var i=new Mi;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 Fb(e,t){return t===void 0||e==="__gohashid"||e[0]==="_"||typeof t=="function"}function ma(e){return isNaN(e)?"NaN":e===1/0?"9e9999":e===-1/0?"-9e9999":e}function xy(e,t){var n=t;if(n instanceof Pe)t={class:"go.Point",x:ma(n.x),y:ma(n.y)};else if(n instanceof un)t={class:"go.Size",width:ma(n.width),height:ma(n.height)};else if(n instanceof Ct)t={class:"go.Rect",x:ma(n.x),y:ma(n.y),width:ma(n.width),height:ma(n.height)};else if(n instanceof sr)t={class:"go.Margin",top:ma(n.top),right:ma(n.right),bottom:ma(n.bottom),left:ma(n.left)};else if(n instanceof Cn)n.sb()?t={class:"go.Spot",x:ma(n.x),y:ma(n.y),offsetX:ma(n.offsetX),offsetY:ma(n.offsetY)}:t={class:"go.Spot",enum:n.toString()};else if(n instanceof fi){if(t={class:"go.Brush",type:n.type.name},n.type===Nc?t.color=n.color:(n.type===cc||n.type===Nl)&&(t.start=n.start,t.end=n.end,n.type===Nl&&(n.startRadius!==0&&(t.startRadius=ma(n.startRadius)),isNaN(n.endRadius)||(t.endRadius=ma(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 Qt?(t={class:"go.Geometry",type:n.type.name},n.startX!==0&&(t.startX=ma(n.startX)),n.startY!==0&&(t.startY=ma(n.startY)),n.endX!==0&&(t.endX=ma(n.endX)),n.endY!==0&&(t.endY=ma(n.endY)),n.spot1.D(xr)||(t.spot1=n.spot1),n.spot2.D(ni)||(t.spot2=n.spot2),n.type===Qt.o&&(t.path=Qt.ia(n))):n instanceof Ut&&(t={class:"go.EnumValue",classType:Mp(e,n.classType),name:n.name});r="{",n=!0;for(var i in t){var o=Oo(t,i);if(!Fb(i,o))if(n?n=!1:r+=",",r+=e.quote(i)+":",i==="points"&&o instanceof Gt){var a="[";for(o=o.iterator;o.next();){var d=o.value;1<a.length&&(a+=","),a+=e.sm(d.x),a+=",",a+=e.sm(d.y)}a+="]",r+=a}else r+=e.sm(o)}return r+"}"}function va(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 Pe(va(e.x),va(e.y));else if(t==="Size")n=new un(va(e.width),va(e.height));else if(t==="Rect")n=new Ct(va(e.x),va(e.y),va(e.width),va(e.height));else if(t==="Margin")n=new sr(va(e.top),va(e.right),va(e.bottom),va(e.left));else if(t==="Spot")typeof e.enum=="string"?n=qi(e.enum):n=new Cn(va(e.x),va(e.y),va(e.offsetX),va(e.offsetY));else if(t==="Brush"){if(n=new fi,n.type=wi(fi,e.type),typeof e.color=="string"&&(n.color=e.color),e.start instanceof Cn&&(n.start=e.start),e.end instanceof Cn&&(n.end=e.end),typeof e.startRadius=="number"&&(n.startRadius=va(e.startRadius)),typeof e.endRadius=="number"&&(n.endRadius=va(e.endRadius)),e=e.colorStops,dt(e))for(var r in e)n.addColorStop(parseFloat(r),e[r])}else t==="Geometry"?(n=null,typeof e.path=="string"?n=Qt.parse(e.path):n=new Qt,n.type=wi(Qt,e.type),typeof e.startX=="number"&&(n.startX=va(e.startX)),typeof e.startY=="number"&&(n.startY=va(e.startY)),typeof e.endX=="number"&&(n.endX=va(e.endX)),typeof e.endY=="number"&&(n.endY=va(e.endY)),e.spot1 instanceof Cn&&(n.spot1=e.spot1),e.spot2 instanceof Cn&&(n.spot2=e.spot2)):t==="EnumValue"&&(r=e.classType,r.indexOf("go.")===0&&(r=r.substr(3)),r=Ey(r),typeof r=="function"&&(n=wi(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){Vo(this,"",e,t,n,r,i,o,a)},ye.g=function(e,t,n,r,i){Vo(this,"",Ui,e,this,t,n,r,i)},ye.Fs=function(e,t,n,r,i,o){Vo(this,"",Ui,t,e,n,r,i,o)};function Vo(e,t,n,r,i,o,a,d,E){d===void 0&&(d=null),E===void 0&&(E=null);var O=new eo;O.model=e,O.change=n,O.modelChange=t,O.propertyName=r,O.object=i,O.oldValue=o,O.oldParam=d,O.newValue=a,O.newParam=E,e.ds(O)}In.prototype.changeState=function(e,t){if(e!==null&&e.model===this)if(e.change===Ui){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===uo?(n=e.newParam,e.modelChange==="nodeDataArray"?(e=e.newValue,dt(e)&&typeof n=="number"&&(r=this.wa(e),t?(this.Tc[n]===e&&we(this.Tc,n),r!==void 0&&this.kb.remove(r)):(this.Tc[n]!==e&&_t(this.Tc,n,e),r!==void 0&&this.kb.add(r,e)))):e.modelChange===""?((r=e.object)&&!on(r)&&e.propertyName&&(r=Oo(e.object,e.propertyName)),on(r)&&typeof n=="number"&&(e=e.newValue,t?we(r,n):_t(r,n,e))):nt("unknown ChangedEvent.Insert modelChange: "+e.toString())):e.change===po?(n=e.oldParam,e.modelChange==="nodeDataArray"?(e=e.oldValue,dt(e)&&typeof n=="number"&&(r=this.wa(e),t?(this.Tc[n]!==e&&_t(this.Tc,n,e),r!==void 0&&this.kb.add(r,e)):(this.Tc[n]===e&&we(this.Tc,n),r!==void 0&&this.kb.remove(r)))):e.modelChange===""?((r=e.object)&&!on(r)&&e.propertyName&&(r=Oo(e.object,e.propertyName)),on(r)&&typeof n=="number"&&(e=e.oldValue,t?_t(r,n,e):we(r,n))):nt("unknown ChangedEvent.Remove modelChange: "+e.toString())):e.change!==ms&&nt("unknown ChangedEvent: "+e.toString())},In.prototype.Ea=function(e){return this.undoManager.Ea(e)},In.prototype.eb=function(e){return this.undoManager.eb(e)},In.prototype.Kf=function(){return this.undoManager.Kf()},In.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=In.prototype,ye.La=function(e,t){t===void 0&&(t=""),Vo(this,"SourceChanged",ms,t,e,null,null)},ye.wa=function(e){if(e!==null){var t=this.Th;if(t!==""&&(t=Oo(e,t),t!==void 0)){if(uh(t))return t;nt("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=Oo(e,n);r!==t&&this.hc(t)===null&&(oo(e,n,t),r!==void 0&&this.kb.remove(r),this.kb.add(t,e),Vo(this,"nodeKey",Ui,n,e,r,t),typeof n=="string"&&this.La(e,n),this.jp(r,t))}else oo(e,n,t)}};function uh(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&&nt("Model.findNodeDataForKey:key must not be null"),e!==void 0&&uh(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&&(Dr(e),this.lb(e)||Bb(this,e,!0))};function Bb(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&&nt("Model.makeNodeDataKeyUnique failed on "+t+". Data not added to Model."),e.kb.add(r,t),r=null,n&&(r=e.Tc.length,_t(e.Tc,r,t)),Vo(e,"nodeDataArray",uo,"nodeDataArray",e,null,t,null,r),e.fm(t),e.em(t))}ye.Fy=function(e){if(on(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&&jb(this,e,!0)};function jb(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;we(e.Tc,r)}Vo(e,"nodeDataArray",po,"nodeDataArray",e,t,null,r,null),e.qp(t)}ye.nA=function(e){if(on(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&&on(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 d=this.hc(a);d!==o&&(d!==null?(this.Do(d,o),this.lm(o,d)):(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=Lp(this,e),e instanceof Wt&&this.Vf.add(t,e))},ye.Lv=function(){},ye.fm=function(){},ye.em=function(){},ye.qp=function(){};function xu(e,t,n){if(t!==void 0){var r=e.Vf.I(t);r===null&&(r=new Wt,e.Vf.add(t,r)),r.add(n)}}function wu(e,t,n){if(t!==void 0){var r=e.Vf.I(t);r instanceof Wt&&(n==null?e.Vf.remove(t):(r.remove(n),r.count===0&&e.Vf.remove(t)))}}function Lp(e,t){return t===void 0?null:(e=e.Vf.I(t),e instanceof Wt?e:null)}ye.Qy=function(e){e===void 0?this.Vf.clear():this.Vf.remove(e)},In.prototype.copyNodeData=function(e){if(e===null)return null;var t=this.Bk;return e=t!==null?t(e,this):Em(this,e,!0),dt(e)&&Yn(e),e};function Em(e,t,n){if(e.copiesArrays&&Array.isArray(t)){var r=[];for(n=0;n<t.length;n++){var i=Em(e,t[n],e.copiesArrayObjects);r.push(i)}return Yn(r),r}if(n&&dt(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=Oo(t,r),a=Mp(e,o);a==="GraphObject"||a==="Diagram"||a==="Layer"||a==="RowColumnDefinition"||a==="AnimationManager"||a==="Tool"||a==="CommandHandler"||a==="Layout"||a==="InputEvent"||a==="DiagramEvent"||o instanceof In||o instanceof Ai||o instanceof _o||o instanceof eo||(o=Em(e,o,!1)),oo(n,r,o)}return Yn(n),n}return t instanceof Pe||t instanceof un||t instanceof Ct||t instanceof Cn||t instanceof sr?t.copy():t}In.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!Ub&&e instanceof ht&&(Ub=!0,yn('Model.setDataProperty is modifying a GraphObject, "'+e.toString()+'"'),yn(" Is that really your intent?"));var r=Oo(e,t);r!==n&&(oo(e,t,n),this.Fs(e,t,r,n))},ye=In.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),_t(e,t,n),Vo(this,"",uo,"",e,null,n,null,t)},ye.ov=function(e,t){t===void 0&&(t=-1),e===this.Tc&&nt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),t===-1&&(t=e.length-1);var n=e[t];we(e,t),Vo(this,"",po,"",e,n,null,t,null)},ye.Ro=function(e){if(e===null)return"";var t=this.lj;if(t===""||(t=Oo(e,t),t===void 0))return"";if(typeof t=="string")return t;nt("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=Oo(e,n);r===void 0&&(r=""),r!==t&&(oo(e,n,t),Vo(this,"nodeCategory",Ui,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 wy(){return new In}function Mp(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 Mp(e,t.constructor);return typeof t}function Ey(e){return au[e]?au[e]:mn.go!==void 0&&mn.go[e]?mn.go[e]:null}function Oo(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){}}Dn.Object.defineProperties(In.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===""&&nt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&nt("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];dt(i)||nt("Model.nodeDataArray must only contain Objects, not: "+i),Dr(i)}for(this.Tc=e,r=new Gt,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(Vo(this,"nodeDataArray",Ui,"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"}}}),In.prototype.setCategoryForNodeData=In.prototype.jm,In.prototype.getCategoryForNodeData=In.prototype.Ro,In.prototype.removeArrayItem=In.prototype.ov,In.prototype.insertArrayItem=In.prototype.ts,In.prototype.addArrayItem=In.prototype.Ay,In.prototype.assignAllDataProperties=In.prototype.Do,In.prototype.set=In.prototype.set,In.prototype.clearUnresolvedReferences=In.prototype.Qy,In.prototype.mergeNodeDataArray=In.prototype.$z,In.prototype.removeNodeDataCollection=In.prototype.nA,In.prototype.removeNodeData=In.prototype.cm,In.prototype.addNodeDataCollection=In.prototype.Fy,In.prototype.addNodeData=In.prototype.xf,In.prototype.makeNodeDataKeyUnique=In.prototype.$u,In.prototype.findNodeDataForKey=In.prototype.hc,In.prototype.containsNodeData=In.prototype.lb,In.prototype.setKeyForNodeData=In.prototype.km,In.prototype.getKeyForNodeData=In.prototype.wa,In.prototype.updateTargetBindings=In.prototype.La,In.prototype.commit=In.prototype.commit,In.prototype.rollbackTransaction=In.prototype.Kf,In.prototype.commitTransaction=In.prototype.eb,In.prototype.startTransaction=In.prototype.Ea,In.prototype.raiseDataChanged=In.prototype.Fs,In.prototype.raiseChanged=In.prototype.g,In.prototype.raiseChangedEvent=In.prototype.cb,In.prototype.removeChangedListener=In.prototype.ik,In.prototype.addChangedListener=In.prototype.Pe,In.prototype.writeJsonValue=In.prototype.sm,In.prototype.replaceJsonObjects=In.prototype.dm,In.prototype.applyIncrementalJSON=In.prototype.Ky,In.prototype.applyIncrementalJson=In.prototype.Zw,In.prototype.toJSON=In.prototype.toJSON,In.prototype.toJson=In.prototype.np,In.prototype.toIncrementalJSON=In.prototype.yA,In.prototype.toIncrementalJson=In.prototype.$x,In.prototype.toIncrementalData=In.prototype.xA,In.prototype.clear=In.prototype.clear;var Ub=!1,au={};In.className="Model",In.fromJSON=In.fromJson=function(e,t){t===void 0&&(t=null);var n=null;if(typeof e=="string")try{n=mn.JSON.parse(e)}catch(o){}else typeof e=="object"?n=e:nt("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=Ey(r)):(i=Ey(r),i===null&&(i=mn[r])),typeof i=="function"&&(e=new i)}catch(o){}e===null||e instanceof In?t=e:nt("Unable to construct a Model of declared class: "+n.class)}return t===null&&(t=In.constructGraphLinksModel()),t.gp(n),t.kv(n),t},In.safePropertyValue=Oo,In.safePropertySet=oo,au.Brush=fi,au.ChangedEvent=eo,au.Geometry=Qt,au.Margin=sr,au.Panel=Zt,au.Point=Pe,au.Rect=Ct,au.Size=un,au.Spot=Cn,au.Transaction=_o,au.UndoManager=Ai;function Do(e,t,n,r){Yn(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=zb,this.wk=null):(this.el=Dp,this.wk=r),this.st=new Wt}Do.prototype.copy=function(){var e=new Do;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=Do.prototype,ye.qb=function(e){e.classType===Do&&(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=Dp,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 Hb(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==="")yn("Binding error: target property is the empty string: "+this.toString());else{var o=t;if(r!==""&&(o=Oo(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(d){}}}},ye.sp=function(e,t,n,r){if(this.el===Dp){var i=this.xl;if(n===void 0||i===n){n=this.sl;var o=this.wk,a=e;if(i!==""&&(a=Oo(e,i)),a!==void 0&&!this.st.contains(e))try{this.st.add(e);var d=r!==null?r.diagram:null,E=d!==null?d.model:null;if(o===null){if(n!=="")E!==null?E.setDataProperty(t,n,a):oo(t,n,a);else if(E!==null&&r!==null&&0<=r.itemIndex&&r.panel!==null&&Array.isArray(r.panel.itemArray)){var O=r.itemIndex,D=r.panel.itemArray;E.ov(D,O),E.ts(D,O,a)}}else try{if(n!==""){var X=o(a,t,E);E!==null?E.setDataProperty(t,n,X):oo(t,n,X)}else{var se=o(a,t,E);if(se!==void 0&&E!==null&&r!==null&&0<=r.itemIndex&&r.panel!==null&&Array.isArray(r.panel.itemArray)){var ge=r.itemIndex,ve=r.panel.itemArray;E.ov(ve,ge),E.ts(ve,ge,se)}}}catch(Te){}}finally{this.st.remove(e)}}}},Dn.Object.defineProperties(Do.prototype,{Ai:{get:function(){return this.j},set:function(e){this._isFrozen&&vt(this),this.j=e}},targetProperty:{get:function(){return this.xl},set:function(e){this._isFrozen&&vt(this),this.xl=e}},sourceName:{get:function(){return this.Cr},set:function(e){this._isFrozen&&vt(this),this.Cr=e,e!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(e){this._isFrozen&&vt(this),this.wn=e}},sourceProperty:{get:function(){return this.sl},set:function(e){this._isFrozen&&vt(this),this.sl=e}},converter:{get:function(){return this.Im},set:function(e){this._isFrozen&&vt(this),this.Im=e}},backConverter:{get:function(){return this.wk},set:function(e){this._isFrozen&&vt(this),this.wk=e}},mode:{get:function(){return this.el},set:function(e){this._isFrozen&&vt(this),this.el=e}}}),Do.prototype.updateSource=Do.prototype.sp,Do.prototype.updateTarget=Do.prototype.Mv,Do.prototype.ofModel=Do.prototype.dA,Do.prototype.ofObject=Do.prototype.cp,Do.prototype.makeTwoWay=Do.prototype.Kx;var X1="Binding",zb=new Ut(Do,"OneWay",1),Dp=new Ut(Do,"TwoWay",2);Do.className="Binding",Do.parseEnum=function(e,t){return function(n){return n=wi(e,n),n===null?t:n}},Do.toString=hr,Do.OneWay=zb,Do.TwoWay=Dp;function Lr(e,t,n){In.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Wt,this.wb=new wt,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&&(on(e)?this.nodeDataArray=e:n=e),n&&(Object.assign(this,n),e=n.Changed)&&(delete this.Changed,this.Pe(e))}Kn(Lr,In),Lr.constructGraphLinksModel=In.constructGraphLinksModel,Lr.prototype.cloneProtected=function(e){In.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=Lr.prototype,ye.clear=function(){In.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)+":"+hr(i)}for(t+=`
link data:`,e=this.linkDataArray,n=e.length,r=0;r<n;r++)i=e[r],t+=" "+vl(this,i,!0)+"-->"+vl(this,i,!1)}return t},ye.Qv=function(e,t){this.linkKeyProperty===""&&nt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=In.prototype.Qv.call(this,e,t),r=this,i=new Wt,o=new Wt,a=new Wt,d=this.vh;e.changes.each(function(D){D.model===r&&(D.modelChange==="linkDataArray"?D.change===uo?i.add(D.newValue):D.change===po&&a.add(D.oldValue):r.Jc(D.object)?o.add(D.object):D.object!==null&&(D.object!==null&&d&&d.contains(D.object)?d.get(D.object).each(function(X){r.Jc(X)&&o.add(X)}):D.object instanceof In||r.lb(D.object)||Gb(r,D.object).each(function(X){o.add(X)})))});var E=this.il;E.clear(),i.each(function(D){E.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<E.count&&(n===null&&(n={}),t?n.removedLinkKeys=E.Fa():n.insertedLinkKeys=E.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(),E.clear(),n},ye.rm=function(){var e=In.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){In.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=In.prototype.Rv.call(this),t=`,
"linkDataArray": `+lh(this,this.linkDataArray,!0);return e+t},ye.kv=function(e){In.prototype.kv.call(this,e),e=e.linkDataArray,Array.isArray(e)&&(this.dm(e),this.linkDataArray=e)};function Gb(e,t){for(var n=new Wt,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===""&&nt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=In.prototype.Pv.call(this,e,t),r=this,i=new Wt,o=new Wt,a=new Wt,d=this.vh;e.changes.each(function(D){D.model===r&&(D.modelChange==="linkDataArray"?D.change===uo?i.add(D.newValue):D.change===po&&a.add(D.oldValue):r.Jc(D.object)?o.add(D.object):D.object!==null&&(D.object!==null&&d&&d.contains(D.object)?d.get(D.object).each(function(X){r.Jc(X)&&o.add(X)}):D.object instanceof In||r.lb(D.object)||Gb(r,D.object).each(function(X){o.add(X)})))});var E=this.il;E.clear(),i.each(function(D){E.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<E.count&&(e+=(t?this.Xv:this.Vv)+lh(this,E.Fa(),!0)),0<o.count&&(e+=this.iy+lh(this,o.Fa(),!0)),0<O.count&&(e+=(t?this.Vv:this.Xv)+lh(this,O.Fa(),!0)),O.clear(),E.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)&&nt("applyIncrementalJson cannot change Model properties"),In.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]);Kb(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)},Lr.prototype.changeState=function(e,t){if(e!==null&&e.model===this){if(e.change===Ui){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===uo){if(n=e.newParam,e.modelChange==="linkDataArray"){e=e.newValue,dt(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===po){if(n=e.oldParam,e.modelChange==="linkDataArray"){e=e.oldValue,dt(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}}In.prototype.changeState.call(this,e,t)}},ye=Lr.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 vl(this,e,!0)},ye.wv=function(e,t){md(this,e,t,!0)},ye.Bx=function(e){return vl(this,e,!1)},ye.Bv=function(e,t){md(this,e,t,!1)};function vl(e,t,n){if(t!==null&&(e=n?e.lf:e.mf,e!==""&&(e=Oo(t,e),e!==void 0))){if(uh(e))return e;nt((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=Oo(t,i);o!==n&&(wu(e,o,t),oo(t,i,n),e.hc(n)===null&&xu(e,n,t),Vo(e,r?"linkFromKey":"linkToKey",Ui,i,t,o,n),typeof i=="string"&&e.La(t,i))}else oo(t,i,n)}}ye.zx=function(e){return Cm(this,e,!0)},ye.xv=function(e,t){vd(this,e,t,!0)},ye.Cx=function(e){return Cm(this,e,!1)},ye.Cv=function(e,t){vd(this,e,t,!1)};function Cm(e,t,n){return t===null||(e=n?e.ej:e.fj,e==="")?"":(t=Oo(t,e),t===void 0?"":t)}function vd(e,t,n,r){if(t!==null){var i=r?e.ej:e.fj;if(i!=="")if(e.Jc(t)){var o=Oo(t,i);o===void 0&&(o=""),o!==n&&(oo(t,i,n),Vo(e,r?"linkFromPortId":"linkToPortId",Ui,i,t,o,n),typeof i=="string"&&e.La(t,i))}else oo(t,i,n)}}ye.Ef=function(e){if(e===null)return Tm;var t=this.je;return t===""?Tm:(e=Oo(e,t),e===void 0?Tm:e)},ye.Ls=function(e,t){if(e!==null){var n=this.je;if(n!=="")if(this.Jc(e)){var r=Oo(e,n);if(r===void 0&&(r=Tm),r!==t){if(Array.isArray(r))for(var i=r.length,o=0;o<i;o++)wu(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&&xu(this,a,e)}Vo(this,"linkLabelKeys",Ui,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=Oo(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&&xu(this,t,e),Vo(this,"linkLabelKeys",uo,n,e,null,t,null,i)))}else nt(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=Oo(e,n);if(Array.isArray(r)){var i=r.indexOf(t);0>i||(r.splice(i,1),this.Jc(e)&&(wu(this,t,e),Vo(this,"linkLabelKeys",po,n,e,t,null,i,null)))}else r!==void 0&&nt(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+e)}}},ye.Ac=function(e){if(e!==null){var t=this.Jh;if(t!==""&&(t=Oo(e,t),t!==void 0)){if(uh(t))return t;nt("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=Oo(e,n);r!==t&&this.jh(t)===null&&(oo(e,n,t),r!==void 0&&this.wb.remove(r),this.wb.add(t,e),Vo(this,"linkKey",Ui,n,e,r,t),typeof n=="string"&&this.La(e,n))}else oo(e,n,t)}},ye.jh=function(e){return e===null&&nt("GraphLinksModel.findLinkDataForKey:key must not be null"),e!==void 0&&uh(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&&(Dr(e),this.Jc(e)||Wb(this,e,!0))};function Wb(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&&nt("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)),Vo(e,"linkDataArray",uo,"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&&Vb(this,e,!0)};function Vb(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(Vo(e,"linkDataArray",po,"linkDataArray",e,t,null,r,null),n=vl(e,t,!0),wu(e,n,t),n=vl(e,t,!1),wu(e,n,t),r=e.Ef(t),Array.isArray(r))for(var i=r.length,o=0;o<i;o++)n=r[o],wu(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===""&&nt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),e!==this.linkDataArray&&on(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 d=this.jh(a);d!==o&&(d!==null?(this.Do(d,o),Kb(this,o,d)):(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=vl(e,t,!0);n=e.Vl(n),e.hc(n)===null&&xu(e,n,t),n=vl(e,t,!1),n=e.Vl(n),e.hc(n)===null&&xu(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&&xu(e,n,t)}ye.Jo=function(e){if(e===null)return null;var t=this.Ak;return e=t!==null?t(e,this):Em(this,e,!0),dt(e)&&(Yn(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:!!Oo(e,t)},ye.lh=function(e){if(e!==null){var t=this.Je;if(t!==""&&(t=Oo(e,t),t!==void 0)){if(uh(t))return t;nt("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=Oo(e,n);r!==t&&(wu(this,r,e),oo(e,n,t),this.hc(t)===null&&xu(this,t,e),Vo(this,"nodeGroupKey",Ui,n,e,r,t),typeof n=="string"&&this.La(e,n))}else oo(e,n,t)}},Lr.prototype.copyNodeData=function(e){return e===null?null:(e=In.prototype.copyNodeData.call(this,e),this.Ij||this.Je===""||Oo(e,this.Je)===void 0||oo(e,this.Je,void 0),e)},Lr.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){vd(this,e,n,!0);return}if(t===this.linkToPortIdProperty){vd(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=Oo(e,t);r!==n&&(oo(e,t,n),this.Fs(e,t,r,n))},ye=Lr.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&&Oo(e,i)===t[i]||r&&i===this.linkKeyProperty||this.setDataProperty(e,i,t[i])}},ye.jp=function(e,t){In.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(vl(this,r,!0)===i){var a=this.lf;oo(r,a,o),Vo(this,"linkFromKey",Ui,a,r,i,o),typeof a=="string"&&this.La(r,a)}if(vl(this,r,!1)===i&&(a=this.mf,oo(r,a,o),Vo(this,"linkToKey",Ui,a,r,i,o),typeof a=="string"&&this.La(r,a)),a=this.Ef(r),Array.isArray(a))for(var d=a.length,E=this.je,O=0;O<d;O++)a[O]===i&&(a[O]=o,Vo(this,"linkLabelKeys",uo,E,r,i,o,O,O))}},ye.qv=function(e,t,n){if(this.lh(e)===t){var r=this.Je;oo(e,r,n),Vo(this,"nodeGroupKey",Ui,r,e,t,n),typeof r=="string"&&this.La(e,r)}},ye.Lv=function(){In.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){In.prototype.fm.call(this,e),e=this.wa(e);var t=Lp(this,e);if(t!==null){var n=An();for(t=t.iterator;t.next();){var r=t.value;if(this.lb(r)){if(this.lh(r)===e){var i=this.Je;Vo(this,"nodeGroupKey",Ui,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)}}else if(vl(this,r,!0)===e&&(i=this.lf,Vo(this,"linkFromKey",Ui,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)),vl(this,r,!1)===e&&(i=this.mf,Vo(this,"linkToKey",Ui,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,d=0;d<o;d++)i[d]===e&&(Vo(this,"linkLabelKeys",uo,a,r,e,e,d,d),n.push(r))}for(t=0;t<n.length;t++)wu(this,e,n[t]);Nn(n)}},ye.em=function(e){In.prototype.em.call(this,e);var t=this.lh(e);this.hc(t)===null&&xu(this,t,e)},ye.qp=function(e){In.prototype.qp.call(this,e);var t=this.lh(e);wu(this,t,e)},ye.ps=function(e){if(e===null)return"";var t=this.dj;if(t===""||(t=Oo(e,t),t===void 0))return"";if(typeof t=="string")return t;nt("getCategoryForLinkData found a non-string category for "+e+": "+t)},Lr.prototype.getLinkCategoryForData=function(e){return this.ps(e)},Lr.prototype.lp=function(e,t){if(e!==null){var n=this.dj;if(n!=="")if(this.Jc(e)){var r=Oo(e,n);r===void 0&&(r=""),r!==t&&(oo(e,n,t),Vo(this,"linkCategory",Ui,n,e,r,t),typeof n=="string"&&this.La(e,n))}else oo(e,n,t)}},Lr.prototype.setLinkCategoryForData=function(e,t){this.lp(e,t)},ye=Lr.prototype,ye.lm=function(e,t){In.prototype.lm.call(this,e,t),this.mp(t,this.lh(e))};function Kb(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},Dn.Object.defineProperties(Lr.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];dt(i)||nt("GraphLinksModel.linkDataArray must only contain Objects, not: "+i),Dr(i)}if(this.md=e,this.linkKeyProperty!==""){for(r=new Gt,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 Wt,i=0;i<n;i++)r.add(e[i]);for(this.$f=r,Vo(this,"linkDataArray",Ui,"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"}}}),Lr.prototype.setCategoryForLinkData=Lr.prototype.lp,Lr.prototype.getCategoryForLinkData=Lr.prototype.ps,Lr.prototype.assignAllDataProperties=Lr.prototype.Do,Lr.prototype.setGroupKeyForNodeData=Lr.prototype.mp,Lr.prototype.getGroupKeyForNodeData=Lr.prototype.lh,Lr.prototype.isGroupForNodeData=Lr.prototype.Yu,Lr.prototype.copyLinkData=Lr.prototype.Jo,Lr.prototype.mergeLinkDataArray=Lr.prototype.Zz,Lr.prototype.removeLinkDataCollection=Lr.prototype.lA,Lr.prototype.removeLinkData=Lr.prototype.bm,Lr.prototype.addLinkDataCollection=Lr.prototype.Ey,Lr.prototype.addLinkData=Lr.prototype.fi,Lr.prototype.containsLinkData=Lr.prototype.Jc,Lr.prototype.makeLinkDataKeyUnique=Lr.prototype.Bs,Lr.prototype.findLinkDataForKey=Lr.prototype.jh,Lr.prototype.setKeyForLinkData=Lr.prototype.Ks,Lr.prototype.getKeyForLinkData=Lr.prototype.Ac,Lr.prototype.removeLabelKeyForLinkData=Lr.prototype.Qx,Lr.prototype.addLabelKeyForLinkData=Lr.prototype.Bu,Lr.prototype.setLabelKeysForLinkData=Lr.prototype.Ls,Lr.prototype.getLabelKeysForLinkData=Lr.prototype.Ef,Lr.prototype.setToPortIdForLinkData=Lr.prototype.Cv,Lr.prototype.getToPortIdForLinkData=Lr.prototype.Cx,Lr.prototype.setFromPortIdForLinkData=Lr.prototype.xv,Lr.prototype.getFromPortIdForLinkData=Lr.prototype.zx,Lr.prototype.setToKeyForLinkData=Lr.prototype.Bv,Lr.prototype.getToKeyForLinkData=Lr.prototype.Bx,Lr.prototype.setFromKeyForLinkData=Lr.prototype.wv,Lr.prototype.getFromKeyForLinkData=Lr.prototype.yx,Lr.prototype.clear=Lr.prototype.clear;var Tm=Object.freeze([]);Lr.className="GraphLinksModel",au.GraphLinksModel=Lr,In.constructGraphLinksModel=In.constructGraphLinksModel=function(){return new Lr},In.initDiagramModel=wy=function(){return new Lr};function ya(e,t){In.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",e!==void 0&&(on(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}Kn(ya,In),ya.constructGraphLinksModel=In.constructGraphLinksModel,ya.prototype.cloneProtected=function(e){In.prototype.cloneProtected.call(this,e),e.Ke=this.Ke,e.Nm=this.Nm,e.nj=this.nj},ye=ya.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)+":"+hr(i)}}return t},ye.rm=function(){var e=In.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){In.prototype.gp.call(this,e),e.nodeParentKeyProperty&&(this.nodeParentKeyProperty=e.nodeParentKeyProperty)},ye.fp=function(e){e.nodeParentKeyProperty!==void 0&&e.nodeParentKeyProperty!==this.nodeParentKeyProperty&&nt("applyIncrementalJson cannot change Model properties"),In.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=Oo(e,t),t!==void 0)){if(uh(t))return t;nt("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=Oo(e,n);r!==t&&(wu(this,r,e),oo(e,n,t),this.hc(t)===null&&xu(this,t,e),Vo(this,"nodeParentKey",Ui,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=Oo(e,t),t===void 0)?"":typeof t=="string"?t:(nt("getParentLinkCategoryForNodeData found a non-string category for "+e+": "+t),"")},ya.prototype.getLinkCategoryForData=function(e){return this.ss(e)},ya.prototype.Ms=function(e,t){if(e!==null){var n=this.nj;if(n!=="")if(this.lb(e)){var r=Oo(e,n);r===void 0&&(r=""),r!==t&&(oo(e,n,t),Vo(this,"parentLinkCategory",Ui,n,e,r,t),typeof n=="string"&&this.La(e,n))}else oo(e,n,t)}},ya.prototype.setLinkCategoryForData=function(e,t){this.Ms(e,t)},ya.prototype.copyNodeData=function(e){return e===null?null:(e=In.prototype.copyNodeData.call(this,e),this.Jj||this.Ke===""||Oo(e,this.Ke)===void 0||oo(e,this.Ke,void 0),e)},ya.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=Oo(e,t);r!==n&&(oo(e,t,n),this.Fs(e,t,r,n))},ye=ya.prototype,ye.jp=function(e,t){In.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),Vo(this,"nodeParentKey",Ui,r,e,t,n),typeof r=="string"&&this.La(e,r)}},ye.fm=function(e){In.prototype.fm.call(this,e),e=this.wa(e);var t=Lp(this,e);if(t!==null){var n=An();for(t=t.iterator;t.next();){var r=t.value;if(this.lb(r)&&this.mh(r)===e){var i=this.Ke;Vo(this,"nodeParentKey",Ui,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)}}for(t=0;t<n.length;t++)wu(this,e,n[t]);Nn(n)}},ye.em=function(e){In.prototype.em.call(this,e);var t=this.mh(e);t=this.Vl(t),this.hc(t)===null&&xu(this,t,e)},ye.qp=function(e){In.prototype.qp.call(this,e);var t=this.mh(e);wu(this,t,e)},ye.lm=function(e,t){In.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},Dn.Object.defineProperties(ya.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"}}}),ya.prototype.setParentLinkCategoryForNodeData=ya.prototype.Ms,ya.prototype.getParentLinkCategoryForNodeData=ya.prototype.ss,ya.prototype.setParentKeyForNodeData=ya.prototype.qe,ya.prototype.getParentKeyForNodeData=ya.prototype.mh,ya.className="TreeModel",au.TreeModel=ya;function fo(e){lo.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=lu,this.Ti=0,this.Zv=new Pe,this.Jp=this.me=0,this.Xr=new jp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=lu,this.K=ba,this.nd=bd,this.hd=my,this.tf=6,this.Nn=Om,e&&Object.assign(this,e)}Kn(fo,lo),fo.prototype.cloneProtected=function(e){lo.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},fo.prototype.qb=function(e){e.classType===fo?e===Rm||e===Im||e===km||e===Nm||e===bd?this.sorting=e:e===Xh||e===yd||e===ba||e===hh?this.direction=e:e===Fc||e===ch||e===lu||e===uu?this.arrangement=e:(e===Ef||e===Om)&&(this.nodeDiameterFormula=e):lo.prototype.qb.call(this,e)},fo.prototype.createNetwork=function(){return new Sd(this)},fo.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 Gt;t.addAll(e.iterator),e=new Gt;var n=new Gt,r=this.sort(t),i,o,a=this.Jp,d=this.arrangement,E=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 se=this.sweepAngle;if((!isFinite(se)||360<se||1>se)&&(se=360),t=this.spacing,isFinite(t)||(t=NaN),d===uu&&E===Ef?d=lu:d===uu&&E!==Ef&&(d=this.arrangement),(this.direction===Xh||this.direction===yd)&&this.sorting!==bd){for(E=0;!(E>=r.length)&&(e.add(r.M(E)),!(E+1>=r.length));E+=2)n.add(r.M(E+1));this.direction===Xh?(this.arrangement===uu&&e.reverse(),r=new Gt,r.addAll(e),r.addAll(n)):(this.arrangement===uu&&n.reverse(),r=new Gt,r.addAll(n),r.addAll(e))}E=r.length;for(var ge=o=i=0;ge<r.length;ge++){var ve=X+se*o*(this.direction===ba?1:-1)/E,Te=r.M(ge).diameter;isNaN(Te)&&(Te=fh(r.M(ge),ve)),360>se&&(ge===0||ge===r.length-1)&&(Te/=2),i+=Te,o++}if(isNaN(O)||d===uu){if(isNaN(t)&&(t=6),d!==lu&&d!==uu){for(o=-1/0,a=0;a<E;a++)ge=r.M(a),i=r.M(a===E-1?0:a+1),isNaN(ge.diameter)&&fh(ge,0),isNaN(i.diameter)&&fh(i,0),o=Math.max(o,(ge.diameter+i.diameter)/2);a=o+t,d===Fc?O=(o+t)/(2*Math.PI/E):O=_m(this,a*(360<=se?E:E-1),D,X*Math.PI/180,se*Math.PI/180)}else O=_m(this,i+(360<=se?E:E-1)*(d!==uu?t:1.6*t),D,X*Math.PI/180,se*Math.PI/180);o=O*D}else if(o=O*D,ge=Ty(this,O,o,X*Math.PI/180,se*Math.PI/180),isNaN(t))(d===lu||d===uu)&&(t=(ge-i)/(360<=se?E:E-1));else if(d===lu||d===uu)ge=(ge-i)/(360<=se?E:E-1),ge<t?(O=_m(this,i+t*(360<=se?E:E-1),D,X*Math.PI/180,se*Math.PI/180),o=O*D):t=ge;else{for(a=-1/0,i=0;i<E;i++)ve=r.M(i),Te=r.M(i===E-1?0:i+1),isNaN(ve.diameter)&&fh(ve,0),isNaN(Te.diameter)&&fh(Te,0),a=Math.max(a,(ve.diameter+Te.diameter)/2);a+=t,i=_m(this,a*(360<=se?E:E-1),D,X*Math.PI/180,se*Math.PI/180),i>O?(O=i,o=O*D):a=ge/(360<=se?E:E-1)}if(this.kw=d,this.lc=O,this.Zm=D,this.lw=X,this.Wp=se,this.Ti=t,this.me=o,this.Jp=a,t=r,r=this.kw,d=this.lc,O=this.lw,D=this.Wp,X=this.Ti,se=this.me,E=this.Jp,this.direction!==Xh&&this.direction!==yd||r!==uu)if(this.direction===Xh||this.direction===yd){switch(a=0,r){case ch:a=180*Am(this,d,se,O,E)/Math.PI;break;case lu:E=t=0,a=e.first(),a!==null&&(t=fh(a,Math.PI/2)),a=n.first(),a!==null&&(E=fh(a,Math.PI/2)),a=180*Am(this,d,se,O,X+(t+E)/2)/Math.PI;break;case Fc:a=D/t.length}if(this.direction===Xh){switch(r){case ch:Bp(this,e,O,hh);break;case lu:Fp(this,e,O,hh);break;case Fc:Pp(this,e,D/2,O,hh)}switch(r){case ch:Bp(this,n,O+a,ba);break;case lu:Fp(this,n,O+a,ba);break;case Fc:Pp(this,n,D/2,O+a,ba)}}else{switch(r){case ch:Bp(this,n,O,hh);break;case lu:Fp(this,n,O,hh);break;case Fc:Pp(this,n,D/2,O,hh)}switch(r){case ch:Bp(this,e,O+a,ba);break;case lu:Fp(this,e,O+a,ba);break;case Fc:Pp(this,e,D/2,O+a,ba)}}}else switch(r){case ch:Bp(this,t,O,this.direction);break;case lu:Fp(this,t,O,this.direction);break;case Fc:Pp(this,t,D,O,this.direction);break;case uu:Yb(this,t,D,O,this.direction)}else Yb(this,t,D,O-D/2,ba)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Pp(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 d=t.length,E=0;E<d;E++){var O=r+(i===ba?E*n/(360<=o?d:d-1):-(E*n)/d),D=t.M(E),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 Fp(e,t,n,r){var i=e.lc,o=e.me,a=e.Ti;n=n*Math.PI/180;for(var d=t.length,E=0;E<d;E++){var O=t.M(E),D=t.M(E===d-1?0:E+1),X=o*Math.sin(n);O.centerX=i*Math.cos(n),O.centerY=X,O.actualAngle=180*n/Math.PI,isNaN(O.diameter)&&fh(O,0),isNaN(D.diameter)&&fh(D,0),O=Am(e,i,o,r===ba?n:-n,(O.diameter+D.diameter)/2+a),n+=r===ba?O:-O}}function Bp(e,t,n,r){var i=e.lc,o=e.me,a=e.Jp;n=n*Math.PI/180;for(var d=t.length,E=0;E<d;E++){var O=t.M(E);O.centerX=i*Math.cos(n),O.centerY=o*Math.sin(n),O.actualAngle=180*n/Math.PI,O=Am(e,i,o,r===ba?n:-n,a),n+=r===ba?O:-O}}function Yb(e,t,n,r,i){var o=e.Wp;if(e.mj=0,e.Xr=new jp,360>n){for(o=r+(i===ba?o:-o);0>o;)o+=360;o%=360,180<o&&(o-=360),o*=Math.PI/180,e.gt=o,Xb(e,t,n,r,i)}else $b(e,t,n,r,i);e.Xr.commit(t)}function $b(e,t,n,r,i){var o=e.lc,a=e.Ti,d=e.Zm,E=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=Pe.alloc();for(var X=0;X<D.length&&(D[X].centerX=E,D[X].centerY=O,!(X>=D.length-1));X++)Zb(e,E,O,D,X,i,o)||Jb(e,E,O,D,X,i,o),E=o.x,O=o.y;if(Pe.free(o),e.mj++,!(23<e.mj)){E=D[0].centerX,O=D[0].centerY,o=D[D.length-1].centerX,X=D[D.length-1].centerY;var se=Math.abs(E-o)-((D[0].width+D[D.length-1].width)/2+a),ge=Math.abs(O-X)-((D[0].height+D[D.length-1].height)/2+a);a=0,1>Math.abs(ge)?Math.abs(E-o)<(D[0].width+D[D.length-1].width)/2&&(a=0):a=0<ge?ge:1>Math.abs(se)?0:se,E=Math.abs(o)>Math.abs(X)?0<o!=O>X:0<X!=E<o,(E=i===ba?E:!E)&&(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*d,$b(e,t,n,r,i))}}}function Xb(e,t,n,r,i){for(var o=e.lc,a=e.me,d=e.Zm,E=o*Math.cos(r*Math.PI/180),O=a*Math.sin(r*Math.PI/180),D=Pe.alloc(),X=t.Fa(),se=0;se<X.length&&(X[se].centerX=E,X[se].centerY=O,!(se>=X.length-1));se++)Zb(e,E,O,X,se,i,D)||Jb(e,E,O,X,se,i,D),E=D.x,O=D.y;if(Pe.free(D),e.mj++,!(23<e.mj)){if(E=Math.atan2(O,E),E=i===ba?e.gt-E:E-e.gt,E=Math.abs(E)<Math.abs(E-2*Math.PI)?E:E-2*Math.PI,o=E*(o+a)/2,a=e.Xr,Math.abs(o)<Math.abs(a.Pl))for(a.Pl=o,a.mk=[],a.tm=[],E=0;E<X.length;E++)a.mk[E]=X[E].bounds.x,a.tm[E]=X[E].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*d,Xb(e,t,n,r,i))}}function Zb(e,t,n,r,i,o,a){var d=e.lc,E=e.me,O=0;e=(r[i].width+r[i+1].width)/2+e.Ti;var D=!1;if(0<=n!=(o===ba)){if(o=t+e,o>d){if(o=t-e,o<-d)return a.x=o,a.y=O,!1;D=!0}}else if(o=t-e,o<-d){if(o=t+e,o>d)return a.x=o,a.y=O,!1;D=!0}return O=Math.sqrt(1-Math.min(1,o*o/(d*d)))*E,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 Jb(e,t,n,r,i,o,a){var d=e.lc,E=e.me,O=0;if(e=(r[i].height+r[i+1].height)/2+e.Ti,r=!1,0<=t!=(o===ba)){if(o=n-e,o<-E){if(o=n+e,o>E){a.x=O,a.y=o;return}r=!0}}else if(o=n+e,o>E){if(o=n-e,o<-E){a.x=O,a.y=o;return}r=!0}O=Math.sqrt(1-Math.min(1,o*o/(E*E)))*d,0>t!==r&&(O=-O),a.x=O,a.y=o}fo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},fo.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 Pe(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))},fo.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,d=r!==void 0&&i!==void 0?i/(o+1):Math.PI/(2*(o+1)),E=0,O=0;O<=o;O++){r!==void 0&&i!==void 0?E=r+O*i/o:E=O*Math.PI/(2*o);var D=Math.sin(E);a+=Math.sqrt(1-e*e*D*D)*d}return r!==void 0&&i!==void 0?(t>n?t:n)*a:4*(t>n?t:n)*a}function _m(e,t,n,r,i){return t/(r!==void 0&&i!==void 0?Ty(e,1,n,r,i):Ty(e,1,n))}function Am(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 d=0;;d++){var E=Math.sin(r+d*e);if(a+=(t>n?t:n)*Math.sqrt(1-o*o*E*E)*e,a>=i)return d*e}}fo.prototype.sort=function(e){switch(this.sorting){case km:break;case Nm:e.reverse();break;case Rm:e.sort(this.comparer);break;case Im:e.sort(this.comparer),e.reverse();break;case bd:return this.ak(Z1(e));default:nt("Invalid sorting type.")}return e};function Z1(e){for(var t=[],n=0;n<e.length;n++)t.push(0);n=new Gt;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 d=e.M(a).edgesCount;d>i&&(i=d,o=a)}else for(a=0;a<e.length;a++)d=t[a],d>i&&(i=d,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}fo.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=[],d=[];r=[],i=new Gt;for(var E=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(E===0)n.push(O);else{for(var X=D=1/0,se=-1,ge=[],ve=0;ve<n.length;ve++)0>t[n[ve]].indexOf(n[ve===n.length-1?0:ve+1])&&ge.push(ve===n.length-1?0:ve+1);if(ge.length===0)for(ve=0;ve<n.length;ve++)ge.push(ve);for(ve=0;ve<ge.length;ve++){for(var Te=ge[ve],Ke=t[O],Ge=0,Xe=0;Xe<a.length;Xe++){var Ze=o[a[Xe]],tt=o[d[Xe]];if(Ze<tt){var at=Ze;Ze=tt}else at=tt;if(at<Te&&Te<=Ze)for(tt=0;tt<Ke.length;tt++){var St=Ke[tt];0>n.indexOf(St)||at<o[St]&&o[St]<Ze||at===o[St]||Ze===o[St]||Ge++}else for(tt=0;tt<Ke.length;tt++)St=Ke[tt],0>n.indexOf(St)||at<o[St]&&o[St]<Ze&&at!==o[St]&&Ze!==o[St]&&Ge++}for(Ke=Ge,Xe=Ge=0;Xe<t[O].length;Xe++)at=n.indexOf(t[O][Xe]),0<=at&&(at=Math.abs(Te-(at>=Te?at+1:at)),Ge+=at<n.length+1-at?at:n.length+1-at);for(Xe=0;Xe<a.length;Xe++)at=o[a[Xe]],Ze=o[d[Xe]],at>=Te&&at++,Ze>=Te&&Ze++,at>Ze&&(tt=Ze,Ze=at,at=tt),Ze-at<(n.length+2)/2==(at<Te&&Te<=Ze)&&Ge++;(Ke<D||Ke===D&&Ge<X)&&(D=Ke,X=Ge,se=Te)}for(n.splice(se,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),d.push(X))}E++}}for(a=n.length;;){for(o=!0,d=0;d<r.length;d++)if(E=r[d],O=t[E][0],D=n.indexOf(O),0<=D){for(se=X=0;se<t[O].length;se++)ge=n.indexOf(t[O][se]),0>ge||ge===D||(ve=ge>D?ge-D:D-ge,X+=ge<D!=ve>a-ve?1:-1);n.splice(0>X?D:D+1,0,E),r.splice(d,1),d--}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},Dn.Object.defineProperties(fo.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!==uu&&e!==lu&&e!==ch&&e!==Fc||(this.Rb=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K===e||e!==ba&&e!==hh&&e!==Xh&&e!==yd||(this.K=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==km&&e!==Nm&&e!==Rm&&!Im&&e!==bd||(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!==Om&&e!==Ef||(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 lu=new Ut(fo,"ConstantSpacing",0),ch=new Ut(fo,"ConstantDistance",1),Fc=new Ut(fo,"ConstantAngle",2),uu=new Ut(fo,"Packed",3),ba=new Ut(fo,"Clockwise",4),hh=new Ut(fo,"Counterclockwise",5),Xh=new Ut(fo,"BidirectionalLeft",6),yd=new Ut(fo,"BidirectionalRight",7),km=new Ut(fo,"Forwards",8),Nm=new Ut(fo,"Reverse",9),Rm=new Ut(fo,"Ascending",10),Im=new Ut(fo,"Descending",11),bd=new Ut(fo,"Optimized",12),Om=new Ut(fo,"Pythagorean",13),Ef=new Ut(fo,"Circular",14);fo.className="CircularLayout",fo.ConstantSpacing=lu,fo.ConstantDistance=ch,fo.ConstantAngle=Fc,fo.Packed=uu,fo.Clockwise=ba,fo.Counterclockwise=hh,fo.BidirectionalLeft=Xh,fo.BidirectionalRight=yd,fo.Forwards=km,fo.Reverse=Nm,fo.Ascending=Rm,fo.Descending=Im,fo.Optimized=bd,fo.Pythagorean=Om,fo.Circular=Ef;function jp(){this.Pl=-1/0,this.tm=this.mk=null}jp.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},jp.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]}},jp.className="VertexArrangement";function Sd(e){Vi.call(this,e)}Kn(Sd,Vi),Sd.prototype.createVertex=function(){return new Up(this)},Sd.prototype.createEdge=function(){return new Lm(this)},Sd.className="CircularNetwork";function Up(e){Xo.call(this,e),this.u=this.Si=NaN}Kn(Up,Xo);function fh(e,t){var n=e.network;if(n===null)return NaN;if(n=n.layout,n===null)return NaN;if(n.arrangement===uu)if(n.nodeDiameterFormula===Ef)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===Ef?Math.max(e.width,e.height):Math.sqrt(e.width*e.width+e.height*e.height);return e.Si}Dn.Object.defineProperties(Up.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)}}}),Up.className="CircularVertex";function Lm(e){el.call(this,e)}Kn(Lm,el),Lm.className="CircularEdge";function Fs(e){lo.call(this),this.ah=null,this.An=0,this.$d=new un(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)}Kn(Fs,lo),Fs.prototype.cloneProtected=function(e){lo.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},Fs.prototype.createNetwork=function(){return new Cf(this)},Fs.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}Qb(this,0,e)}this.network=t;var a=r=n.iterator;r=this.arrangementSpacing;var d=a.count,E=!0;o=i=0;for(var O=An(),D=0;D<d+t.vertexes.count+2;D++)O[D]=null;d=0,a.reset();for(var X=Ct.alloc();a.next();)if(D=a.value,this.computeBounds(D,X),E)E=!1,i=X.x+X.width/2,o=X.y+X.height/2,O[0]=new Pe(X.x+X.width+r.width,X.y),O[1]=new Pe(X.x,X.y+X.height+r.height),d=2;else{var se=qb(O,d,i,o,X.width,X.height,r),ge=O[se],ve=new Pe(ge.x+X.width+r.width,ge.y),Te=new Pe(ge.x,ge.y+X.height+r.height);for(se+1<d&&O.splice(se+1,0,null),O[se]=ve,O[se+1]=Te,d++,se=ge.x-X.x,ge=ge.y-X.y,D=D.vertexes.iterator;D.next();)ve=D.value,ve.centerX+=se,ve.centerY+=ge}for(Ct.free(X),D=t.vertexes.iterator;D.next();)a=D.value,se=a.bounds,2>d?(i=se.x+se.width/2,o=se.y+se.height/2,O[0]=new Pe(se.x+se.width+r.width,se.y),O[1]=new Pe(se.x,se.y+se.height+r.height),d=2):(E=qb(O,d,i,o,se.width,se.height,r),X=O[E],ge=new Pe(X.x+se.width+r.width,X.y),se=new Pe(X.x,X.y+se.height+r.height),E+1<d&&O.splice(E+1,0,null),O[E]=ge,O[E+1]=se,d++,a.centerX=X.x+a.width/2,a.centerY=X.y+a.height/2);for(Nn(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)}}t1(this,e),this.updateParts()}this.dl=e,this.network=null,this.isValidLayout=!0},Fs.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},Fs.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 Qb(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,Qb(e,t+1,n),t1(e,o),q1(e,i),t=i.vertexes.Fa(),t.sort(function(a,d){return a===null||d===null||a===d?0:d.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 Cf(e),i=0;i<e.ah.length;i++){var o=e.ah[i];if(1<o.Vd){r.dh(o);var a=new n1;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 Gt),o.We.add(a),o.sv=o.We.count-1}else break}for(o=n.edges.iterator;o.next();){var d=o.value;i=d.fromVertex,a=d.toVertex,i.network===r&&a.network===r?r.Bo(d):i.network===r?(d=i.Hj,d===null&&(d=new Gt,i.Hj=d),d.add(a),i.Vd--,i.sh+=a.sh):a.network===r&&(d=a.Hj,d===null&&(d=new Gt,a.Hj=d),d.add(i),a.Vd--,a.sh+=i.sh)}for(i=r.edges.iterator;i.next();)o=i.value,o.length*=Math.max(1,lt.sqrt((o.fromVertex.sh+o.toVertex.sh)/(4*t+1)));for(t=r.vertexes.iterator;t.next();){i=t.value;var E=i.Hj;if(E!==null&&0<E.count&&(a=i.We.M(i.We.count-1).Rs-i.Vd,!(0>=a))){for(var O=d=0,D=E.count-a;D<E.count;D++){var X=E.M(D),se=null;for(o=X.edges.iterator;o.next();){var ge=o.value;if(ge.Ax(X)===i){se=ge;break}}se!==null&&(O+=se.length,d+=X.width*X.height)}o=i.centerX,E=i.centerY,D=i.width,X=i.height,se=i.focus,ge=D*X,1>ge&&(ge=1),d=lt.sqrt((d+ge+O*O*4/(a*a))/ge),a=(d-1)*D/2,d=(d-1)*X/2,i.bounds=new Ct(o-se.x-a,E-se.y-d,D+2*a,X+2*d),i.focus=new Pe(se.x+a,se.y+d)}}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 Ct(r.centerX-o,r.centerY-a,i.Ss,i.Qs),r.focus=new Pe(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=lt.sqrt(o*o+a*a)/2;for(var d=!1,E=a=0,O=0,D=t.vertexes.iterator;D.next();){var X=D.value;1>=X.Vd?E++:(d=!0,O++,a+=Math.atan2(t.centerY-X.centerY,t.centerX-X.centerX))}if(E!==0){for(0<O&&(a/=O),O=t=0,t=d?2*Math.PI/(E+1):2*Math.PI/E,E%2===0&&(O=t/2),1<n.count&&n.sort(function(ge,ve){return ge===null||ve===null||ge===ve?0:ve.width*ve.height-ge.width*ge.height}),d=E%2===0?0:1,n=n.iterator;n.next();)if(E=n.value,!(1<E.Vd||e.isFixed(E))){for(D=null,X=E.edges.iterator;X.next();){D=X.value;break}X=E.width;var se=E.height;X=lt.sqrt(X*X+se*se)/2,D=o+D.length+X,X=a+(t*(d/2>>1)+O)*(d%2===0?1:-1),E.centerX=r+D*Math.cos(X),E.centerY=i+D*Math.sin(X),d++}}}}function qb(e,t,n,r,i,o,a){var d=9e19,E=-1,O=0;e:for(;O<t;O++){var D=e[O],X=D.x-n,se=D.y-r;if(X=X*X+se*se,X<d){for(se=O-1;0<=se;se--)if(e[se].y>D.y&&e[se].x-D.x<i+a.width)continue e;for(se=O+1;se<t;se++)if(e[se].x>D.x&&e[se].y-D.y<o+a.height)continue e;E=O,d=X}}return E}Fs.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},Fs.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 e1(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 d=o.width;return o=o.height,r+i<a?e>t+o?(n=r+i-a,e=e-t-o,lt.sqrt(n*n+e*e)):e+n<t?(r=r+i-a,e=e+n-t,lt.sqrt(r*r+e*e)):a-(r+i):r>a+d?e>t+o?(n=r-a-d,e=e-t-o,lt.sqrt(n*n+e*e)):e+n<t?(r=r-a-d,e=e+n-t,lt.sqrt(r*r+e*e)):r-(a+d):e>t+o?e-(t+o):e+n<t?t-(e+n):.1}function t1(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 d=t[a];d.forceX=0,d.forceY=0;var E=d.centerX;d=d.centerY,r=Math.min(r,E),i=Math.max(i,E),n=Math.min(n,d),o=Math.max(o,d)}(i=i-r>o-n)?t.sort(function(Te,Ke){return Te===null||Ke===null||Te===Ke?0:Te.centerX-Ke.centerX}):t.sort(function(Te,Ke){return Te===null||Ke===null||Te===Ke?0:Te.centerY-Ke.centerY}),n=e.Zf;var O=r=d=0;for(o=0;o<t.length;o++){a=t[o],r=a.bounds,d=a.focus,E=r.x+d.x;var D=r.y+d.y;r=a.charge*e.electricalFieldX(E,D),O=a.charge*e.electricalFieldY(E,D),r+=a.mass*e.gravitationalFieldX(E,D),O+=a.mass*e.gravitationalFieldY(E,D),a.forceX+=r,a.forceY+=O;for(var X=o+1;X<t.length;X++){var se=t[X];if(se!==a){r=se.bounds,d=se.focus,O=r.x+d.x;var ge=r.y+d.y;if(E-O>n||O-E>n){if(i)break}else if(D-ge>n||ge-D>n){if(!i)break}else{var ve=e1(a,se);1>ve?(r=e.randomNumberGenerator,r===null&&(e.randomNumberGenerator=r=new Mm),ve=r.random(),d=r.random(),E>O?(r=Math.abs(se.bounds.right-a.bounds.x),r=(1+r)*ve):E<O?(r=Math.abs(se.bounds.x-a.bounds.right),r=-(1+r)*ve):(r=Math.max(se.width,a.width),r=(1+r)*ve-r/2),D>ge?(O=Math.abs(se.bounds.bottom-a.bounds.y),O=(1+O)*d):E<O?(O=Math.abs(se.bounds.y-a.bounds.bottom),O=-(1+O)*d):(O=Math.max(se.height,a.height),O=(1+O)*d-O/2)):(d=-(a.charge*se.charge)/(ve*ve),r=(O-E)/ve*d,O=(ge-D)/ve*d),a.forceX+=r,a.forceY+=O,se.forceX-=r,se.forceY-=O}}}}for(i=e.network.edges.iterator;i.next();)d=i.value,n=d.fromVertex,o=d.toVertex,a=n.bounds,E=n.focus,r=a.x+E.x,a=a.y+E.y,D=o.bounds,X=o.focus,E=D.x+X.x,D=D.y+X.y,X=e1(n,o),1>X?(X=e.randomNumberGenerator,X===null&&(e.randomNumberGenerator=X=new Mm),d=X.random(),X=X.random(),r=(r>E?1:-1)*(1+(o.width>n.width?o.width:n.width))*d,O=(a>D?1:-1)*(1+(o.height>n.height?o.height:n.height))*X):(d=d.stiffness*(X-d.length),r=(E-r)/X*d,O=(D-a)/X*d),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}Fs.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},Fs.prototype.moveFixedVertex=function(){},Fs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Fs.prototype.yv=function(){if(this.setsPortSpots)for(var e=this.network.edges.iterator;e.next();){var t=e.value.link;t!==null&&(t.fromSpot=Bo,t.toSpot=Bo)}},Fs.prototype.commitNodes=function(){var e=0,t=0;if(this.arrangesToOrigin){var n=Ct.alloc();this.computeBounds(this.network,n),t=this.arrangementOrigin,e=t.x-n.x,t=t.y-n.y,Ct.free(n)}n=Ct.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()}Ct.free(n)},Fs.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Fs.prototype.springStiffness=function(e){return e=e.stiffness,isNaN(e)?this.Hk:e},Fs.prototype.springLength=function(e){return e=e.length,isNaN(e)?this.Gk:e},Fs.prototype.electricalCharge=function(e){return e=e.charge,isNaN(e)?this.Ek:e},Fs.prototype.electricalFieldX=function(){return 0},Fs.prototype.electricalFieldY=function(){return 0},Fs.prototype.gravitationalMass=function(e){return e=e.mass,isNaN(e)?this.Fk:e},Fs.prototype.gravitationalFieldX=function(){return 0},Fs.prototype.gravitationalFieldY=function(){return 0},Fs.prototype.isFixed=function(e){return e.isFixed},Dn.Object.defineProperties(Fs.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"&&nt('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())}}}),Fs.className="ForceDirectedLayout";function n1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}n1.className="ForceDirectedSubnet";function Cf(e){Vi.call(this,e)}Kn(Cf,Vi),Cf.prototype.createVertex=function(){return new Hp(this)},Cf.prototype.createEdge=function(){return new zp(this)},Cf.className="ForceDirectedNetwork";function Hp(e){Xo.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}Kn(Hp,Xo),Dn.Object.defineProperties(Hp.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)}}}),Hp.className="ForceDirectedVertex";function zp(e){el.call(this,e),this.j=this.o=NaN}Kn(zp,el),Dn.Object.defineProperties(zp.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)}}}),zp.className="ForceDirectedEdge";function Mm(){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()}Mm.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},Mm.className="RandomNumberGenerator";function gi(e){lo.call(this),this.kc=this.ie=25,this.K=0,this.Dk=jm,this.Zk=Um,this.Qk=Hm,this.bj=4,this.rk=zm,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 Pe,this.He=[],this.He.length=100,this.xw=this.ve=0,e&&Object.assign(this,e)}Kn(gi,lo),gi.prototype.cloneProtected=function(e){lo.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},gi.prototype.qb=function(e){e.classType===gi?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:nt("Unknown enum value: "+e):lo.prototype.qb.call(this,e)},gi.prototype.createNetwork=function(){return new wd(this)},gi.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!==Wp&&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===Wp&&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,d=0,E=0,O=0;if(r.link!==null){if(d=r.link,d===null)continue;var D=i.node;if(a=o.node,D===null||a===null)continue;var X=d.fromNode;E=d.toNode;for(var se=d.fromPort;se!==null&&!se.Ed();)se=se.panel;for(d=d.toPort;d!==null&&!d.Ed();)d=d.panel;if(r.rev){O=X;var ge=se;X=E,se=d,E=O,d=ge}var ve=i.focus;O=o.focus;var Te=r.rev?o.bounds:i.bounds;ge=Pe.alloc(),D!==X?Te.w()&&X.isVisible()?X.actualBounds.w()?(Oc(X,se,ir,ge),ge.x+=X.actualBounds.x-Te.x,ge.y+=X.actualBounds.y-Te.y):(Oc(X,se,ir,ge),ge.w()||ge.assign(ve)):ge.assign(ve):Te.w()?(Oc(X,se,ir,ge),ge.w()||ge.assign(ve)):ge.assign(ve),X=r.rev?i.bounds:o.bounds,D=Pe.alloc(),a!==E?X.w()&&E.isVisible()?E.actualBounds.w()?(Oc(E,d,ir,D),D.x+=E.actualBounds.x-X.x,D.y+=E.actualBounds.y-X.y):(Oc(E,d,ir,D),D.w()||D.assign(O)):D.assign(O):X.w()?(Oc(E,d,ir,D),D.w()||D.assign(O)):D.assign(O),this.K===90||this.K===270?(a=Math.round((ge.x-ve.x)/this.kc),E=ge.x,d=Math.round((D.x-O.x)/this.kc),O=D.x):(a=Math.round((ge.y-ve.y)/this.kc),E=ge.y,d=Math.round((D.y-O.y)/this.kc),O=D.y),Pe.free(ge),Pe.free(D),r.portFromColOffset=a,r.portFromPos=E,r.portToColOffset=d,r.portToPos=O}else r.portFromColOffset=0,r.portFromPos=0,r.portToColOffset=0,r.portToPos=0;if(ge=i.layer,D=o.layer,X=0,Te=r.link,Te!==null){var Ke=Te.fromPort,Ge=Te.toPort;if(Ke!==null&&Ge!==null){var Xe=Te.fromNode;if(se=Te.toNode,Xe!==null&&se!==null){var Ze=Bm(this,!0),tt=Bm(this,!1),at=this.setsPortSpots?Ze:Te.computeSpot(!0,Ke);ve=this.setsPortSpots?tt:Te.computeSpot(!1,Ge);var St=Te.isOrthogonal;at.$c()&&at.Hf(tt)&&ve.$c()&&ve.Hf(Ze)?X=0:(Ze=Te.getLinkPoint(Xe,Ke,at,!0,St,se,Ge,Pe.alloc()),tt=Te.getLinkDirection(Xe,Ke,Ze,at,!0,St,se,Ge),Pe.free(Ze),at.ys()||tt!==h1(this,r,!0)?this.setsPortSpots&&Xe!==null&&Xe.ports.count===1&&r.rev&&(X+=1):X+=1,at=Te.getLinkPoint(se,Ge,ve,!1,St,Xe,Ke,Pe.alloc()),Te=Te.getLinkDirection(se,Ge,at,ve,!1,St,Xe,Ke),Pe.free(at),ve.ys()||Te!==h1(this,r,!1)?this.setsPortSpots&&se!==null&&se.ports.count===1&&r.rev&&(X+=2):X+=2)}}}if(se=X,X=se===1||se===3,(se=se===2||se===3)&&(ve=e.createVertex(),ve.node=null,ve.Dj=1,ve.layer=ge,ve.near=i,e.dh(ve),i=e.Zj(i,ve,r.link),i.valid=!1,i.rev=r.rev,i.portFromColOffset=a,i.portToColOffset=0,i.portFromPos=E,i.portToPos=0,i=ve),Te=1,X&&Te--,ge-D>Te&&0<ge){for(r.valid=!1,ve=e.createVertex(),ve.node=null,ve.Dj=2,ve.layer=ge-1,e.dh(ve),i=e.Zj(i,ve,r.link),i.valid=!0,i.rev=r.rev,i.portFromColOffset=se?0:a,i.portToColOffset=0,i.portFromPos=se?0:E,i.portToPos=0,i=ve,ge--;ge-D>Te&&0<ge;)ve=e.createVertex(),ve.node=null,ve.Dj=3,ve.layer=ge-1,e.dh(ve),i=e.Zj(i,ve,r.link),i.valid=!0,i.rev=r.rev,i.portFromColOffset=0,i.portToColOffset=0,i.portFromPos=0,i.portToPos=0,i=ve,ge--;i=e.Zj(ve,o,r.link),i.valid=!X,X&&(ve.near=o),i.rev=r.rev,i.portFromColOffset=0,i.portToColOffset=d,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=dh(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),ph(this,e,t)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},gi.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}gi.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},gi.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 Ma(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 Ol(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 r1(e,t,n){var r=dh(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 d=0,E=r[a],O=E.near;if(O!==null&&O.layer===E.layer)if(E=O.index,E>a)for(var D=a+1;D<E;D++){var X=r[D];X.near===O&&X.Dj===O.Dj||d++}else for(D=a-1;D>E;D--)X=r[D],X.near===O&&X.Dj===O.Dj||d++;var se;if(0<=n)for(E=r[a].sourceEdgesArrayAccess,O=0;O<E.length;O++){var ge=E[O];if(ge.valid&&ge.fromVertex.layer!==t)for(X=ge.fromVertex.index,D=ge.portToPos,ge=ge.portFromPos,se=O+1;se<E.length;se++){var ve=E[se];if(ve.valid&&ve.fromVertex.layer!==t){var Te=ve.fromVertex.index,Ke=ve.portToPos;ve=ve.portFromPos,D<Ke&&(X>Te||X===Te&&ge>ve)&&d++,Ke<D&&(Te>X||Te===X&&ve>ge)&&d++}}}if(0>=n){for(E=r[a].destinationEdgesArrayAccess,O=0;O<E.length;O++)if(ge=E[O],ge.valid&&ge.toVertex.layer!==t)for(X=ge.toVertex.index,D=ge.portToPos,ge=ge.portFromPos,se=O+1;se<E.length;se++)ve=E[se],ve.valid&&ve.toVertex.layer!==t&&(Te=ve.toVertex.index,Ke=ve.portToPos,ve=ve.portFromPos,ge<ve&&(X>Te||X===Te&&D>Ke)&&d++,ve<ge&&(Te>X||Te===X&&Ke>D)&&d++)}for(o[a*i+a]=d,E=a+1;E<i;E++){var Ge=0,Xe=0;if(0<=n){d=r[a].sourceEdgesArrayAccess;var Ze=r[E].sourceEdgesArrayAccess;for(O=0;O<d.length;O++)if(ge=d[O],ge.valid&&ge.fromVertex.layer!==t)for(X=ge.fromVertex.index,ge=ge.portFromPos,se=0;se<Ze.length;se++)ve=Ze[se],ve.valid&&ve.fromVertex.layer!==t&&(Te=ve.fromVertex.index,ve=ve.portFromPos,(X<Te||X===Te&&ge<ve)&&Xe++,(Te<X||Te===X&&ve<ge)&&Ge++)}if(0>=n){for(d=r[a].destinationEdgesArrayAccess,Ze=r[E].destinationEdgesArrayAccess,O=0;O<d.length;O++)if(ge=d[O],ge.valid&&ge.toVertex.layer!==t)for(X=ge.toVertex.index,D=ge.portToPos,se=0;se<Ze.length;se++)ve=Ze[se],ve.valid&&ve.toVertex.layer!==t&&(Te=ve.toVertex.index,Ke=ve.portToPos,(X<Te||X===Te&&D<Ke)&&Xe++,(Te<X||Te===X&&Ke<D)&&Ge++)}o[a*i+E]=Ge,o[E*i+a]=Xe}}return ph(e,t,r),o}gi.prototype.countCrossings=function(){for(var e=0,t=0;t<=this.Ia;t++)for(var n=r1(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 Dm(e){for(var t=0,n=0;n<=e.Ia;n++){for(var r=e,i=n,o=dh(r,i),a=r.tc[i],d=0,E=0;E<a;E++){var O=o[E].destinationEdgesArrayAccess;if(O!==null)for(var D=0;D<O.length;D++){var X=O[D];if(X.valid&&X.toVertex.layer!==i){var se=X.fromVertex.column+X.portFromColOffset,ge=X.toVertex.column+X.portToColOffset;d+=(Math.abs(se-ge)+1)*_y(X)}}}ph(r,i,o),t+=d}return t}gi.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=dh(e,t),i=e.tc[t],o=[],a=0;a<i;a++){var d=r[a],E=null;0>=n&&(E=d.sourceEdgesArrayAccess);var O=null;0<=n&&(O=d.destinationEdgesArrayAccess);var D=0,X=0,se=d.near;if(se!==null&&se.layer===d.layer&&(D+=se.column-1,X++),E!==null)for(se=0;se<E.length;se++){d=E[se];var ge=d.fromVertex;d.valid&&!d.rev&&ge.layer!==t&&(D+=ge.column,X++)}if(O!==null)for(E=0;E<O.length;E++)d=O[E],se=d.toVertex,d.valid&&!d.rev&&se.layer!==t&&(D+=se.column,X++);o[a]=X===0?-1:D/X}return ph(e,t,r),o}function i1(e,t,n){for(var r=dh(e,t),i=e.tc[t],o=[],a=0;a<i;a++){var d=r[a],E=null;0>=n&&(E=d.sourceEdgesArrayAccess);var O=null;0<=n&&(O=d.destinationEdgesArrayAccess);var D=0,X=[],se=d.near;if(se!==null&&se.layer===d.layer&&(X[D]=se.column-1,D++),d=void 0,E!==null)for(se=0;se<E.length;se++){d=E[se];var ge=d.fromVertex;d.valid&&!d.rev&&ge.layer!==t&&(X[D]=ge.column+d.portFromColOffset,D++)}if(O!==null)for(E=0;E<O.length;E++)d=O[E],se=d.toVertex,d.valid&&!d.rev&&se.layer!==t&&(X[D]=se.column+d.portToColOffset,D++);D===0?o[a]=-1:(X.sort(function(ve,Te){return ve-Te}),O=D>>1,o[a]=D&1?X[O]:X[O-1]+X[O]>>1)}return ph(e,t,r),o}function Gp(e,t,n,r,i,o){if(t.component===r){if(t.component=n,i)for(var a=t.destinationEdges;a.next();){var d=a.value,E=d.toVertex,O=t.layer-E.layer;d=e.linkMinLength(d),O===d&&Gp(e,E,n,r,i,o)}if(o)for(a=t.sourceEdges;a.next();)d=a.value,E=d.fromVertex,O=E.layer-t.layer,d=e.linkMinLength(d),O===d&&Gp(e,E,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)}}gi.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=o1(e);i!==null;)r[n]=i,n--,i.valid=!1,i=o1(e);for(i=s1(e);i!==null;)r[t]=i,t++,i.valid=!1,i=s1(e);i=null;for(var o=0,a=this.network.vertexes.iterator;a.next();){var d=a.value;if(d.valid){for(var E=0,O=d.destinationEdges;O.next();)O.value.toVertex.valid&&E++;O=0;for(var D=d.sourceEdges;D.next();)D.value.fromVertex.valid&&O++;(i===null||o<E-O)&&(i=d,o=E-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 jm: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 Wp: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 o1(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 s1(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++}gi.prototype.assignLayers=function(){switch(this.Zk){case Oy:a1(this);break;case Ly:for(var e,t=this.network.vertexes.iterator;t.next();)e=u1(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 Um:for(a1(this),t=this.network.vertexes.iterator;t.next();)t.value.valid=!1;for(t.reset();t.next();)e=t.value,e.sourceEdges.count===0&&c1(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 a1(e){for(var t=e.network.vertexes.iterator;t.next();){var n=l1(e,t.value);e.Ia=Math.max(n,e.Ia)}}function l1(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,l1(e,o)+i)}t.layer=n}else n=t.layer;return n}function u1(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,u1(e,o)+i)}t.layer=n}else n=t.layer;return n}function c1(e,t){if(!t.valid){t.valid=!0;for(var n=t.destinationEdges;n.next();)c1(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],d=a.fromVertex,E=a.toVertex;a=e.linkMinLength(a),d.layer-E.layer>a&&Gp(e,d,0,-1,!0,!1)}for(Gp(e,t,1,-1,!0,!0);t.component!==0;){for(o=0,r=1/0,d=0,E=null,a=e.network.vertexes.iterator;a.next();){var O=a.value;if(O.component===1){var D=0,X=!1,se=O.sourceEdgesArrayAccess;i=se.length;for(var ge=0;ge<i;ge++){var ve=se[ge],Te=ve.fromVertex;D+=1,Te.component!==1&&(o+=1,Te=Te.layer-O.layer,ve=e.linkMinLength(ve),r=Math.min(r,Te-ve))}for(se=O.destinationEdgesArrayAccess,i=se.length,ge=0;ge<i;ge++)ve=se[ge].toVertex,--D,ve.component!==1?--o:X=!0;(E===null||D<d)&&!X&&(E=O,d=D)}}if(0<o){for(n.reset();n.next();)i=n.value,i.component===1&&(i.layer+=r);t.component=0}else E.component=0}for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(Gp(e,t,1,-1,!0,!1);t.component!==0;){for(r=0,i=1/0,o=0,d=null,E=e.network.vertexes.iterator;E.next();)if(a=E.value,a.component===1){for(O=0,D=!1,se=a.sourceEdgesArrayAccess,X=se.length,ge=0;ge<X;ge++)ve=se[ge].fromVertex,O+=1,ve.component!==1?r+=1:D=!0;for(se=a.destinationEdgesArrayAccess,X=se.length,ge=0;ge<X;ge++)ve=se[ge],Te=ve.toVertex,--O,Te.component!==1&&(--r,Te=a.layer-Te.layer,ve=e.linkMinLength(ve),i=Math.min(i,Te-ve));(d===null||O>o)&&!D&&(d=a,o=O)}if(0>r){for(n.reset();n.next();)r=n.value,r.component===1&&(r.layer-=i);t.component=0}else d.component=0}}}function h1(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}gi.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 Hm: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&&f1(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&&d1(this,n)}};function f1(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&&f1(e,r))}function d1(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&&d1(e,r))}gi.prototype.reduceCrossings=function(){var e=this.countCrossings(),t=Ma(this),n,r;for(n=0;n<this.bj;n++){for(r=0;r<=this.Ia;r++)Pm(this,r,1),Gl(this,r,1);var i=this.countCrossings();for(i<e&&(e=i,t=Ma(this)),r=this.Ia;0<=r;r--)Pm(this,r,-1),Gl(this,r,-1);i=this.countCrossings(),i<e&&(e=i,t=Ma(this))}for(Ol(this,t),n=0;n<this.bj;n++){for(r=0;r<=this.Ia;r++)Pm(this,r,0),Gl(this,r,0);for(i=this.countCrossings(),i<e&&(e=i,t=Ma(this)),r=this.Ia;0<=r;r--)Pm(this,r,0),Gl(this,r,0);i=this.countCrossings(),i<e&&(e=i,t=Ma(this))}Ol(this,t);var o,a,d;switch(this.rk){case Py:break;case Fy:for(d=e+1;(r=this.countCrossings())<d;)for(d=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=Gl(this,r,-1)||o;for(i=this.countCrossings(),i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=Gl(this,r,1)||o;for(i=this.countCrossings(),i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=Gl(this,r,1)||o;for(i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=Gl(this,r,-1)||o;for(i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=Gl(this,r,0)||o;for(i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=Gl(this,r,0)||o;i>=e?Ol(this,t):(e=i,t=Ma(this))}break;default:case zm:for(n=this.Ia,a=0,d=e+1;(r=this.countCrossings())<d;){for(d=r,o=!0;o;)for(o=!1,r=n;r>=a;r--)o=Gl(this,r,-1)||o;for(i=this.countCrossings(),i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=Gl(this,r,1)||o;for(i=this.countCrossings(),i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=Gl(this,r,1)||o;for(i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=Gl(this,r,-1)||o;for(i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=Gl(this,r,0)||o;for(i>=e?Ol(this,t):(e=i,t=Ma(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=Gl(this,r,0)||o;i>=e?Ol(this,t):(e=i,t=Ma(this))}}Ol(this,t)};function Pm(e,t,n){var r=dh(e,t),i=e.tc[t],o=i1(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 d=!0,E;d;)for(d=!1,n=0;n<i-1;n++)(o[n+1]<o[n]||o[n+1]===o[n]&&a[n+1]<a[n])&&(d=!0,E=o[n],o[n]=o[n+1],o[n+1]=E,E=a[n],a[n]=a[n+1],a[n+1]=E,E=r[n],r[n]=r[n+1],r[n+1]=E);for(n=o=0;n<i;n++)E=r[n],E.index=n,o+=e.nodeMinColumnSpace(E,!0),E.column=o,o+=1,o+=e.nodeMinColumnSpace(E,!1);ph(e,t,r)}function Gl(e,t,n){var r=dh(e,t),i=e.tc[t];n=r1(e,t,n);var o,a=[];for(o=0;o<i;o++)a[o]=-1;var d=[];for(o=0;o<i;o++)d[o]=-1;for(var E=!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],se=0,ge=0,ve=r[o].column,Te=r[o+1].column,Ke=e.nodeMinColumnSpace(r[o],!0),Ge=e.nodeMinColumnSpace(r[o],!1),Xe=e.nodeMinColumnSpace(r[o+1],!0),Ze=e.nodeMinColumnSpace(r[o+1],!1);Ke=ve-Ke+Xe,Ge=Te-Ge+Ze;var tt=r[o].sourceEdges.iterator;for(tt.reset();tt.next();)if(Xe=tt.value,Ze=Xe.fromVertex,Xe.valid&&Ze.layer===t){for(Xe=0;r[Xe]!==Ze;)Xe++;Xe<o&&(se+=2*(o-Xe),ge+=2*(o+1-Xe)),Xe===o+1&&(se+=1),Xe>o+1&&(se+=4*(Xe-o),ge+=4*(Xe-(o+1)))}for(tt=r[o].destinationEdges.iterator,tt.reset();tt.next();)if(Xe=tt.value,Ze=Xe.toVertex,Xe.valid&&Ze.layer===t){for(Xe=0;r[Xe]!==Ze;)Xe++;Xe===o+1&&(ge+=1)}for(tt=r[o+1].sourceEdges.iterator,tt.reset();tt.next();)if(Xe=tt.value,Ze=Xe.fromVertex,Xe.valid&&Ze.layer===t){for(Xe=0;r[Xe]!==Ze;)Xe++;Xe<o&&(se+=2*(o+1-Xe),ge+=2*(o-Xe)),Xe===o&&(ge+=1),Xe>o+1&&(se+=4*(Xe-(o+1)),ge+=4*(Xe-o))}for(tt=r[o+1].destinationEdges.iterator,tt.reset();tt.next();)if(Xe=tt.value,Ze=Xe.toVertex,Xe.valid&&Ze.layer===t){for(Xe=0;r[Xe]!==Ze;)Xe++;Xe===o&&(se+=1)}Xe=Ze=0,tt=a[r[o].index];var at=d[r[o].index],St=a[r[o+1].index],ln=d[r[o+1].index];tt!==-1&&(Ze+=Math.abs(tt-ve),Xe+=Math.abs(tt-Ge)),at!==-1&&(Ze+=Math.abs(at-ve),Xe+=Math.abs(at-Ge)),St!==-1&&(Ze+=Math.abs(St-Te),Xe+=Math.abs(St-Ke)),ln!==-1&&(Ze+=Math.abs(ln-Te),Xe+=Math.abs(ln-Ke)),(ge<se-.5||ge===se&&X<D-.5||ge===se&&X===D&&Xe<Ze-.5)&&(O=E=!0,r[o].column=Ge,r[o+1].column=Ke,D=r[o],r[o]=r[o+1],r[o+1]=D)}for(o=0;o<i;o++)r[o].index=o;return ph(e,t,r),E}gi.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=xd(this,t,1)||n;for(t=this.Md-1;0<=t;t--)n=xd(this,t,-1)||n;n=xd(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&&(p1(this,-1),p1(this,1)),this.bg&2)for(n=!0;n;){for(n=!1,n=xd(this,this.Md,0)||n,t=this.Md+1;t<=this.Ia;t++)n=xd(this,t,0)||n;for(t=this.Md-1;0<=t;t--)n=xd(this,t,0)||n}}else sS(this)};function xd(e,t,n){for(var r=!1;rS(e,t,n);)r=!0;return r}function rS(e,t,n){var r,i=dh(e,t),o=e.tc[t],a=Ay(e,t,-1);if(0<n)for(r=0;r<o;r++)a[r]=-1;var d=Ay(e,t,1);if(0>n)for(r=0;r<o;r++)d[r]=-1;for(var E=!1,O=!0;O;)for(O=!1,r=0;r<o;r++){var D=i[r].column,X=e.nodeMinColumnSpace(i[r],!0),se=e.nodeMinColumnSpace(i[r],!1),ge=0;0>r-1||D-i[r-1].column-1>X+e.nodeMinColumnSpace(i[r-1],!1)?ge=D-1:ge=D,X=r+1>=o||i[r+1].column-D-1>se+e.nodeMinColumnSpace(i[r+1],!0)?D+1:D;var ve=se=0,Te=0;if(0>=n)for(var Ke=i[r].sourceEdges.iterator;Ke.next();){var Ge=Ke.value,Xe=Ge.fromVertex;if(Ge.valid&&Xe.layer!==t){var Ze=_y(Ge),tt=Ge.portFromColOffset;Ge=Ge.portToColOffset,Xe=Xe.column,se+=(Math.abs(D+Ge-(Xe+tt))+1)*Ze,ve+=(Math.abs(ge+Ge-(Xe+tt))+1)*Ze,Te+=(Math.abs(X+Ge-(Xe+tt))+1)*Ze}}if(0<=n)for(Ke=i[r].destinationEdges.iterator;Ke.next();)Ge=Ke.value,Xe=Ge.toVertex,Ge.valid&&Xe.layer!==t&&(Ze=_y(Ge),tt=Ge.portFromColOffset,Ge=Ge.portToColOffset,Xe=Xe.column,se+=(Math.abs(D+tt-(Xe+Ge))+1)*Ze,ve+=(Math.abs(ge+tt-(Xe+Ge))+1)*Ze,Te+=(Math.abs(X+tt-(Xe+Ge))+1)*Ze);Ge=tt=Ze=0,Ke=a[i[r].index],Xe=d[i[r].index],Ke!==-1&&(Ze+=Math.abs(Ke-D),tt+=Math.abs(Ke-ge),Ge+=Math.abs(Ke-X)),Xe!==-1&&(Ze+=Math.abs(Xe-D),tt+=Math.abs(Xe-ge),Ge+=Math.abs(Xe-X)),ve<se||ve===se&&tt<Ze?(O=E=!0,i[r].column=ge):(Te<se||Te===se&&Ge<Ze)&&(O=E=!0,i[r].column=X)}return ph(e,t,i),e.normalize(),E}function Ry(e,t,n){var r=dh(e,t),i=e.tc[t],o=i1(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 d=r[n].column,E=e.nodeMinColumnSpace(r[n],!0),O=e.nodeMinColumnSpace(r[n],!1),D=0;if(a[n]===-1)if(n===0&&n===i-1)D=d;else if(n===0){var X=r[n+1].column;X-d===O+e.nodeMinColumnSpace(r[n+1],!0)?D=d-1:D=d}else n===i-1?(X=r[n-1].column,D=d-X===E+e.nodeMinColumnSpace(r[n-1],!1)?d+1:d):(X=r[n-1].column,E=X+e.nodeMinColumnSpace(r[n-1],!1)+E+1,X=r[n+1].column,O=X-e.nodeMinColumnSpace(r[n+1],!0)-O-1,D=(E+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,E=X+e.nodeMinColumnSpace(r[n-1],!1)+E+1,D=Math.max(a[n],E)):(X=r[n-1].column,E=X+e.nodeMinColumnSpace(r[n-1],!1)+E+1,X=r[n+1].column,O=X-e.nodeMinColumnSpace(r[n+1],!0)-O-1,E<a[n]&&a[n]<O?D=a[n]:E>=a[n]?D=E:O<=a[n]&&(D=O));D!==d&&(o=!0,r[n].column=D)}ph(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 d=r.column-e.nodeMinColumnSpace(r,!0),E=r.column+e.nodeMinColumnSpace(r,!1);d<=t&&E>=t&&(i[r.layer]=!0),d<=n&&E>=n&&(o[r.layer]=!0)}for(d=!0,n=!1,r=0;r<=e.Ia;r++)d=d&&!(i[r]&&o[r]);if(d)for(a.reset();a.next();)e=a.value,e.column>t&&(--e.column,n=!0);return n}function p1(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=Ma(e),o=Dm(e);for(r=o+1;o<r;){r=o,g1(e,n,1);var a=Dm(e);a>o?Ol(e,i):a<o&&(o=a,i=Ma(e))}}if(0>t)for(n=e.Ra;0<=n;n--)for(i=Ma(e),o=Dm(e),r=o+1;o<r;)r=o,g1(e,n,-1),a=Dm(e),a>o?Ol(e,i):a<o&&(o=a,i=Ma(e));e.normalize()}function g1(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,d=Math.max(0,o.column-e.nodeMinColumnSpace(o,!0)),E=Math.min(e.Ra,o.column+e.nodeMinColumnSpace(o,!1));d<=E;d++)i[a*(e.Ra+1)+d]=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(E=a[a.length-1],a.pop(),i[E])for(i[E]=!1,o=0;o<e.le;o++)t[E*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=An(),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 Wt,aS(t,n);var o=null,a=null,d=null,E=null,O=(e.ve&1)!==0,D=(e.ve&2)!==0,X=(e.ve&4)!==0,se=(e.ve&8)!==0;for(O&&(e.verticalAlignment(t,n,!0),o=Fm(e,t,!0,!1)),t.reverse(),X&&(e.verticalAlignment(t,n,!1),d=Fm(e,t,!1,!1)),r=wn(t),i=r.next();!i.done;i=r.next())i.value.reverse();se&&(e.verticalAlignment(t,n,!1),E=Fm(e,t,!1,!0)),t.reverse(),D&&(e.verticalAlignment(t,n,!0),a=Fm(e,t,!0,!0)),Nn(t),e.u(o,a,d,E),e.network.vertexes.each(function(ge){var ve=An();O&&ve.push(o.get(ge)),D&&ve.push(a.get(ge)),X&&ve.push(d.get(ge)),se&&ve.push(E.get(ge)),ve.sort(function(Ke,Ge){return Ke-Ge});var Te=ve.length;Te=(ve[Math.floor((Te-1)/2)]+ve[Math.ceil((Te-1)/2)])/2,Nn(ve),ge.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],d=e[r+1],E=0;o<d.length;E++){var O=d[E];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(E===d.length-1||X){for(D=a.length-1,X&&(D=By(O)[0].index);o<=E;){if(O=d[o],!O.bo){X=[];for(var se=wn(O.sourceEdgesArrayAccess),ge=se.next();!ge.done;ge=se.next())ge=ge.value,ge.valid&&X.push(ge);O.bo=X}for(O=wn(O.bo),X=O.next();!X.done;X=O.next())X=X.value,se=X.fromVertex.index,(se<i||se>D)&&t.add(X);o++}i=D}}}gi.prototype.verticalAlignment=function(e,t,n){lS(e),e=wn(e);for(var r=e.next();!r.done;r=e.next()){var i=-1;r=wn(r.value);for(var o=r.next();!o.done;o=r.next()){o=o.value;var a=n?By(o):hS(o),d=a.length;if(0<d){a.sort(function(X,se){return X.vi-se.vi});var E=(d-1)/2;for(d=Math.floor(E),E=Math.ceil(E);d<=E;d++)if(o.align===o){var O=a[d],D=void 0;D=n?Gm(O,o):Gm(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 Fm(e,t,n,r){for(var i=e.K===90||e.K===270,o=wn(t),a=o.next();!a.done;a=o.next()){var d=wn(a.value);for(a=d.next();!a.done;a=d.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=wn(t),d=o.next();!d.done;d=o.next()){d=wn(d.value);for(var E=d.next();!E.done;E=d.next())if(E=E.value,E.root===E){for(var O=0,D=E;D.align!==E;){var X=D.align,se=a?D.width:D.height,ge=a?X.width:X.height;if(n){var ve=Gm(D,X),Te=ve.portFromPos,Ke=ve.portToPos;ve.link!==null&&(D.node&&D.node!==ve.link.fromNode&&(Te=a?D.focusX:D.focusY),X.node&&X.node!==ve.link.toNode&&(Ke=a?X.focusX:X.focusY))}else ve=Gm(X,D),Te=ve.portToPos,Ke=ve.portFromPos,ve.link!==null&&(D.node&&D.node!==ve.link.toNode&&(Te=a?D.focusX:D.focusY),X.node&&X.node!==ve.link.fromNode&&(Ke=a?X.focusX:X.focusY));se=r?D.qg+(se-Te)-(ge-Ke):D.qg+Te-Ke,X.qg=se,O=Math.min(O,se),D=D.align}D=E;do D.qg=D.qg-O,D=D.align;while(D!==E)}}for(n=wn(t),a=n.next();!a.done;a=n.next())for(o=wn(a.value),a=o.next();!a.done;a=o.next())a=a.value,a.root===a&&m1(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,d=0;do{for(o=t[a][d];o.align!==o.root;)o=o.align,a++,0<o.vi&&(d=v1(o,t),d.sd.shift=Math.min(d.sd.shift,o.sd.shift+o.zc+o.qg-(d.zc+d.qg+(i?d.width:d.height)+e.columnSpacing)));d=o.vi+1}while(a<t.length&&d<t[a].length&&o.sd===t[a][d].sd)}for(e=new wt,t=wn(t),a=t.next();!a.done;a=t.next())for(n=wn(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 m1(e,t,n){if(isNaN(t.zc)){t.zc=0;var r=t;do{if(0<r.vi){var i=v1(r,n),o=i.root;m1(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 v1(e,t){var n=e.Tz;return e=e.vi,1>e&&nt("Could not determine previous vertex in layer"),t[n][e-1]}gi.prototype.u=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];n=-1;for(var r=An(),i=An(),o=1/0,a=0;4>a;a++)if(t[a]){var d=uS(this,t[a],r,i,a);d<o&&(n=a,o=d)}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(E){return function(O){O.value+=E.delta}}(o)));Nn(r),Nn(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(d){var E=d.key;d=d.value,E=e.K===90||e.K===270?E.width:E.height,d<o&&(o=d),d+E>a&&(a=d+E)}),n[i]=o,r[i]=a,a-o}gi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var e=Bm(this,!0),t=Bm(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 Bm(e,t){return e.K===270?t?ps:us:e.K===90?t?us:ps:e.K===180?t?As:Zo:t?Zo:As}gi.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,d=-1/0;e.next();){var E=e.value,O=E.layer,D=E.column|0;r?(a=t.x+this.kc*D,O=this.Kd[O]):(a=this.Kd[O],O=t.y+this.kc*D),E.centerX=a,E.centerY=O,n&&isFinite(E.zc)&&(r?E.node?E.x=t.x+E.zc:E.centerX=t.x+E.zc:E.node?E.y=t.y+E.zc:E.centerY=t.y+E.zc),o=Math.min(E.x,o),i=Math.min(E.y,i),r?(a=o,d=Math.max(d,E.bounds.right)):(a=i,d=Math.max(d,E.bounds.bottom))}for(this.xw=d-a,o=t.x-o,t=t.y-i,this.Rf=new Pe(n&&r?0:o,n&&!r?0:t),e.reset();e.next();)n=e.value,n.x+=o,n.y+=t,n.commit()},gi.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 Ct(0,0,n,Math.abs(this.Ta[0]))):t.push(new Ct(0,this.Ta[r-1],n,Math.abs(this.Ta[r-1]-this.Ta[r]))):this.K===90?r===0?t.push(new Ct(0,this.Ta[0],n,Math.abs(this.Ta[0]-e))):t.push(new Ct(0,this.Ta[r],n,Math.abs(this.Ta[r-1]-this.Ta[r]))):this.K===180?r===0?t.push(new Ct(0,0,Math.abs(this.Ta[0]),n)):t.push(new Ct(this.Ta[r-1],0,Math.abs(this.Ta[r-1]-this.Ta[r]),n)):r===0?t.push(new Ct(this.Ta[0],0,Math.abs(this.Ta[0]-e),n)):t.push(new Ct(this.Ta[r],0,Math.abs(this.Ta[r-1]-this.Ta[r]),n));this.commitLayers(t,this.Rf)},gi.prototype.commitLayers=function(){},gi.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,d=r.toPort;if(i!==null){var E=i.findVisibleNode();E!==null&&E!==i&&(i=E,a=E.port)}o!==null&&(E=o.findVisibleNode(),E!==null&&E!==o&&(o=E,d=E.port));var O=t.computeSpot(!0,a);E=t.computeSpot(!1,d);var D=n.fromVertex,X=n.toVertex;if(n.valid)t.curve===ml&&t.pointsCount===4&&(D.column===X.column&&this.alignOption===0?(n=t.getLinkPoint(i,a,O,!0,!1,o,d),d=t.getLinkPoint(o,d,E,!1,!1,i,a),n.w()||n.set(i.actualBounds.center),d.w()||d.set(o.actualBounds.center),t.Fj(),t.yf(n.x,n.y),t.yf((2*n.x+d.x)/3,(2*n.y+d.y)/3),t.yf((n.x+2*d.x)/3,(n.y+2*d.y)/3),t.yf(d.x,d.y)):(n=r=!1,a!==null&&O===nr&&(r=!0),d!==null&&E===nr&&(n=!0),(r||n)&&(E=null,r&&(E=t.getLinkPointFromPoint(i,a,a.ga(ir),t.i(3),!0),E.w()||E.set(i.actualBounds.center),t.L(0,E.x,E.y)),i=null,n&&(i=t.getLinkPointFromPoint(o,d,d.ga(ir),t.i(0),!1),i.w()||i.set(o.actualBounds.center),t.L(3,i.x,i.y)),E&&(o=t.i(2),t.L(1,(2*E.x+o.x)/3,(2*E.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 se=!1,ge=!1,ve=this.ie,Te=t.firstPickIndex+1;if(t.isOrthogonal){ge=!0;var Ke=t.pointsCount;4<Ke&&t.points.removeRange(2,Ke-3)}else if(t.curve===ml)se=!0,Ke=t.pointsCount,4<Ke&&t.points.removeRange(2,Ke-3),Ke===4&&(Te=2);else{Ke=t.pointsCount;var Ge=O===nr,Xe=E===nr;2<Ke&&Ge&&Xe?t.points.removeRange(1,Ke-2):3<Ke&&Ge&&!Xe?t.points.removeRange(1,Ke-3):3<Ke&&!Ge&&Xe?t.points.removeRange(2,Ke-2):4<Ke&&!Ge&&!Xe&&t.points.removeRange(2,Ke-3)}if(n.rev){for(;X!==null&&D!==X;){var Ze=Ke=null;for(Ge=X.sourceEdges.iterator;Ge.next()&&(Xe=Ge.value,Xe.link!==n.link||(Ke=Xe.fromVertex,Ze=Xe.toVertex,Ke.node!==null)););if(Ke===null)break;if(Ke!==D){Ge=t.i(Te-1).x,Xe=t.i(Te-1).y;var tt=Ke.centerX,at=Ke.centerY;if(ge)this.K===180||this.K===0?Te===t.firstPickIndex+1?(t.m(Te++,Ge,Xe),t.m(Te++,Ge,at)):(Ze!==null?Ze.centerY:Xe)!==at&&(Ze=this.Ta[Ke.layer-1]+this.Rf.x,t.m(Te++,Ze,Xe),t.m(Te++,Ze,at)):Te===t.firstPickIndex+1?(t.m(Te++,Ge,Xe),t.m(Te++,tt,Xe)):(Ze!==null?Ze.centerX:Ge)!==tt&&(Ze=this.Ta[Ke.layer-1]+this.Rf.y,t.m(Te++,Ge,Ze),t.m(Te++,tt,Ze));else if(Te===t.firstPickIndex+1){Ze=Math.max(10,this.he[X.layer]);var St=Math.max(10,this.Ld[X.layer]);if(se)this.K===180?tt<=X.bounds.x?(X=X.bounds.x,t.m(Te++,X-Ze,at),t.m(Te++,X,at),t.m(Te++,X+St,at)):(t.m(Te++,tt-Ze,at),t.m(Te++,tt,at),t.m(Te++,tt+St,at)):this.K===90?at>=X.bounds.bottom?(X=X.bounds.y+X.bounds.height,t.m(Te++,tt,X+St),t.m(Te++,tt,X),t.m(Te++,tt,X-Ze)):(t.m(Te++,tt,at+St),t.m(Te++,tt,at),t.m(Te++,tt,at-Ze)):this.K===270?at<=X.bounds.y?(X=X.bounds.y,t.m(Te++,tt,X-Ze),t.m(Te++,tt,X),t.m(Te++,tt,X+St)):(t.m(Te++,tt,at-Ze),t.m(Te++,tt,at),t.m(Te++,tt,at+St)):this.K===0&&(tt>=X.bounds.right?(X=X.bounds.x+X.bounds.width,t.m(Te++,X+St,at),t.m(Te++,X,at),t.m(Te++,X-Ze,at)):(t.m(Te++,tt+St,at),t.m(Te++,tt,at),t.m(Te++,tt-Ze,at)));else{t.m(Te++,Ge,Xe);var ln=0;this.K===180||this.K===0?((this.K===180?tt>=X.bounds.right:tt<=X.bounds.x)&&(ln=(this.K===0?-Ze:St)/2),t.m(Te++,Ge+ln,at)):((this.K===270?at>=X.bounds.bottom:at<=X.bounds.y)&&(ln=(this.K===90?-Ze:St)/2),t.m(Te++,tt,Xe+ln)),t.m(Te++,tt,at)}}else Ze=Math.max(10,this.he[Ke.layer]),St=Math.max(10,this.Ld[Ke.layer]),se?this.K===180?(t.m(Te++,tt-Ze-ve,at),t.m(Te++,Math.min(tt-Ze+ve/2,tt),at),t.m(Te++,tt,at),t.m(Te++,tt,at),t.m(Te++,Math.max(tt+St-ve/2,tt),at),t.m(Te++,tt+St+ve,at)):this.K===90?(t.m(Te++,tt,at+St+ve),t.m(Te++,tt,Math.max(at+St-ve/2,at)),t.m(Te++,tt,at),t.m(Te++,tt,at),t.m(Te++,tt,Math.min(at-Ze+ve/2,at)),t.m(Te++,tt,at-Ze-ve)):this.K===270?(t.m(Te++,tt,at-Ze-ve),t.m(Te++,tt,Math.min(at-Ze+ve/2,at)),t.m(Te++,tt,at),t.m(Te++,tt,at),t.m(Te++,tt,Math.max(at+St-ve/2,at)),t.m(Te++,tt,at+St+ve)):(t.m(Te++,tt+St+ve,at),t.m(Te++,Math.max(tt+St-ve/2,tt),at),t.m(Te++,tt,at),t.m(Te++,tt,at),t.m(Te++,Math.min(tt-Ze+ve/2,tt),at),t.m(Te++,tt-Ze-ve,at)):t.m(Te++,tt,at)}X=Ke}(d===null||O!==nr||ge)&&(Ge=t.i(Te-1).x,Xe=t.i(Te-1).y,tt=t.i(Te).x,at=t.i(Te).y,ge?(ve=this.Ld[D.layer],this.K===180||this.K===0?(ge=Xe,ge>=D.bounds.y&&ge<=D.bounds.bottom&&(this.K===180?tt>=D.bounds.x:tt<=D.bounds.right)&&(X=D.centerX+(this.K===180?-ve:ve),ge<D.bounds.y+D.bounds.height/2?ge=D.bounds.y-this.kc/2:ge=D.bounds.bottom+this.kc/2,t.m(Te++,X,Xe),t.m(Te++,X,ge)),t.m(Te++,tt,ge)):(ge=Ge,ge>=D.bounds.x&&ge<=D.bounds.right&&(this.K===270?at>=D.bounds.y:at<=D.bounds.bottom)&&(X=D.centerY+(this.K===270?-ve:ve),ge<D.bounds.x+D.bounds.width/2?ge=D.bounds.x-this.kc/2:ge=D.bounds.right+this.kc/2,t.m(Te++,Ge,X),t.m(Te++,ge,X)),t.m(Te++,ge,at)),t.m(Te++,tt,at)):se?(Ze=Math.max(10,this.he[D.layer]),St=Math.max(10,this.Ld[D.layer]),this.K===180&&tt>=D.bounds.x?(X=D.bounds.x+D.bounds.width,t.L(Te-2,X,Xe),t.L(Te-1,X+St,Xe)):this.K===90&&at<=D.bounds.bottom?(X=D.bounds.y,t.L(Te-2,Ge,X),t.L(Te-1,Ge,X-Ze)):this.K===270&&at>=D.bounds.y?(X=D.bounds.y+D.bounds.height,t.L(Te-2,Ge,X),t.L(Te-1,Ge,X+St)):this.K===0&&tt<=D.bounds.right&&(X=D.bounds.x,t.L(Te-2,X,Xe),t.L(Te-1,X-Ze,Xe))):(Ze=Math.max(10,this.he[D.layer]),St=Math.max(10,this.Ld[D.layer]),ge=0,this.K===180||this.K===0?((this.K===180?tt<=D.bounds.x:tt>=D.bounds.right)&&(ge=(this.K===0?St:-Ze)/2),t.m(Te++,tt+ge,Xe)):((this.K===270?at<=D.bounds.y:at>=D.bounds.bottom)&&(ge=(this.K===90?St:-Ze)/2),t.m(Te++,Ge,at+ge)),t.m(Te++,tt,at)))}else{for(;D!==null&&D!==X;){for(Ze=Ke=null,D=D.destinationEdges.iterator;D.next()&&(Ge=D.value,Ge.link!==n.link||(Ke=Ge.toVertex,Ze=Ge.fromVertex,Ze.node!==null&&(Ze=null),Ke.node!==null)););if(Ke===null)break;Ke!==X&&(Ge=t.i(Te-1).x,Xe=t.i(Te-1).y,tt=Ke.centerX,at=Ke.centerY,ge?this.K===180||this.K===0?(Ze!==null?Ze.centerY:Xe)!==at&&(Ze=this.Ta[Ke.layer]+this.Rf.x,Te===t.firstPickIndex+1&&(Ze=this.K===0?Math.max(Ze,Ge):Math.min(Ze,Ge)),t.m(Te++,Ze,Xe),t.m(Te++,Ze,at)):(Ze!==null?Ze.centerX:Ge)!==tt&&(Ze=this.Ta[Ke.layer]+this.Rf.y,Te===t.firstPickIndex+1&&(Ze=this.K===90?Math.max(Ze,Xe):Math.min(Ze,Xe)),t.m(Te++,Ge,Ze),t.m(Te++,tt,Ze)):(Ze=Math.max(10,this.he[Ke.layer]),St=Math.max(10,this.Ld[Ke.layer]),se?this.K===180?(t.m(Te++,tt+St+ve,at),t.m(Te++,Math.max(tt+St-ve/2,tt),at),t.m(Te++,tt,at),t.m(Te++,tt,at),t.m(Te++,Math.min(tt-Ze+ve/2,tt),at),t.m(Te++,tt-Ze-ve,at)):this.K===90?(t.m(Te++,tt,at-Ze-ve),t.m(Te++,tt,Math.min(at-Ze+ve/2,at)),t.m(Te++,tt,at),t.m(Te++,tt,at),t.m(Te++,tt,Math.max(at+St-ve/2,at)),t.m(Te++,tt,at+St+ve)):this.K===270?(t.m(Te++,tt,at+St+ve),t.m(Te++,tt,Math.max(at+St-ve/2,at)),t.m(Te++,tt,at),t.m(Te++,tt,at),t.m(Te++,tt,Math.min(at-Ze+ve/2,at)),t.m(Te++,tt,at-Ze-ve)):(t.m(Te++,tt-Ze-ve,at),t.m(Te++,Math.min(tt-Ze+ve/2,tt),at),t.m(Te++,tt,at),t.m(Te++,tt,at),t.m(Te++,Math.max(tt+St-ve/2,tt),at),t.m(Te++,tt+St+ve,at)):this.K===180?(t.m(Te++,tt+St,at),t.m(Te++,tt-Ze,at)):this.K===90?(t.m(Te++,tt,at-Ze),t.m(Te++,tt,at+St)):this.K===270?(t.m(Te++,tt,at+St),t.m(Te++,tt,at-Ze)):(t.m(Te++,tt-Ze,at),t.m(Te++,tt+St,at)))),D=Ke}ge&&(Ge=t.i(Te-1).x,Xe=t.i(Te-1).y,tt=t.i(Te).x,at=t.i(Te).y,this.K===180||this.K===0?Xe!==at&&(Ze=this.K===0?Math.min(Math.max((tt+Ge)/2,this.Ta[X.layer]+this.Rf.x),tt):Math.max(Math.min((tt+Ge)/2,this.Ta[X.layer]+this.Rf.x),tt),t.m(Te++,Ze,Xe),t.m(Te++,Ze,at)):Ge!==tt&&(Ze=this.K===90?Math.min(Math.max((at+Xe)/2,this.Ta[X.layer]+this.Rf.y),at):Math.max(Math.min((at+Xe)/2,this.Ta[X.layer]+this.Rf.y),at),t.m(Te++,Ge,Ze),t.m(Te++,tt,Ze)))}r!==null&&se&&4<=t.pointsCount&&(a!==null&&(a=O===nr?t.getLinkPointFromPoint(i,a,a.ga(ir),t.i(3),!0):t.i(0),O===nr&&(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)),d!==null&&(i=E===nr?t.getLinkPointFromPoint(o,d,d.ga(ir),t.i(t.pointsCount-4),!1):t.i(t.pointsCount-1),E===nr&&(d=t.i(t.pointsCount-3),E=t.i(t.pointsCount-4),this.direction===90||this.direction===270?(t.L(t.pointsCount-2,(i.x+d.x)/2,d.y),t.L(t.pointsCount-2,E.x,(d.y+E.y)/2)):(t.L(t.pointsCount-2,d.x,(i.y+d.y)/2),t.L(t.pointsCount-3,(d.x+E.x)/2,E.y))),i.w()||i.set(o.actualBounds.center),t.L(t.pointsCount-1,i.x,i.y))),t.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},gi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var e=new Gt,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 d=new gh;d.layer=Math.floor(o.y/2);var E=r.i(0),O=r.i(r.pointsCount-1);if(d.first=E.x*E.x+E.y,d.jc=O.x*O.x+O.y,d.rd=Math.min(o.x,a.x),d.Ic=Math.max(o.x,a.x),d.index=i,d.link=r,i+2<r.pointsCount){E=r.i(i-1),O=r.i(i+2);var D=0;E.y<o.y?D=O.y<o.y?3:o.x<a.x?2:1:E.y>o.y&&(D=O.y>o.y?0:a.x<o.x?2:1),d.j=D}n.push(d)}}}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,d=n[o].jc,E=o;E<i;E++)O=n[E],O.jc!==d&&(D++,d=O.jc);this.zi(n,this.Ux,o,o+a);var X=1;for(d=n[o].first,E=o;E<i;E++)O=n[E],O.first!==d&&(X++,d=O.first);for(E=!0,O=X,D<X?(E=!1,O=D,d=n[o].jc,this.zi(n,this.Js,o,o+a)):d=n[o].first,D=0,X=o;X<i;X++){var se=n[X];(E?se.first:se.jc)!==d&&(D++,d=E?se.first:se.jc);var ge=se.link;o=ge.i(se.index),a=ge.i(se.index+1);var ve=this.linkSpacing*(D-(O-1)/2);t++,ge.uh(),ge.L(se.index,o.x,o.y+ve),ge.L(se.index+1,a.x,a.y+ve),ge.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)&&(d=new gh,d.layer=Math.floor(o.x/2),E=r.i(0),O=r.i(r.pointsCount-1),d.first=E.x+E.y*E.y,d.jc=O.x+O.y*O.y,d.rd=Math.min(o.y,a.y),d.Ic=Math.max(o.y,a.y),d.index=i,d.link=r,i+2<r.pointsCount&&(E=r.i(i-1),O=r.i(i+2),D=0,E.x<o.x?D=O.x<o.x?3:o.y<a.y?2:1:E.x>o.x&&(D=O.x>o.x?0:a.y<o.y?2:1),d.j=D),n.push(d));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,d=n[o].jc,E=o;E<i;E++)O=n[E],O.jc!==d&&(D++,d=O.jc);for(this.zi(n,this.Ux,o,o+a),X=1,d=n[o].first,E=o;E<i;E++)O=n[E],O.first!==d&&(X++,d=O.first);for(E=!0,O=X,D<X?(E=!1,O=D,d=n[o].jc,this.zi(n,this.Js,o,o+a)):d=n[o].first,D=0,X=o;X<i;X++)se=n[X],(E?se.first:se.jc)!==d&&(D++,d=E?se.first:se.jc),ge=se.link,o=ge.i(se.index),a=ge.i(se.index+1),ve=this.linkSpacing*(D-(O-1)/2),t++,ge.uh(),ge.L(se.index,o.x+ve,o.y),ge.L(se.index+1,a.x+ve,a.y),ge.zf()}o=i}e=r}}}},ye=gi.prototype,ye.Vx=function(e,t){return e instanceof gh&&t instanceof gh&&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 gh&&t instanceof gh&&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 gh&&t instanceof gh&&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)&&nt("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 dh(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 ph(e,t,n){e.He[e.tc[t]]=n}Dn.Object.defineProperties(gi.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()):nt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(e){this.Dk===e||e!==Iy&&e!==jm&&e!==Wp||(this.Dk=e,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(e){this.Zk===e||e!==Um&&e!==Oy&&e!==Ly||(this.Zk=e,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(e){this.Qk===e||e!==Hm&&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!==zm&&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 jm=new Ut(gi,"CycleDepthFirst",0),Iy=new Ut(gi,"CycleGreedy",1),Wp=new Ut(gi,"CycleFromLayers",2),Um=new Ut(gi,"LayerOptimalLinkLength",0),Oy=new Ut(gi,"LayerLongestPathSink",1),Ly=new Ut(gi,"LayerLongestPathSource",2),Hm=new Ut(gi,"InitDepthFirstOut",0),My=new Ut(gi,"InitDepthFirstIn",1),Dy=new Ut(gi,"InitNaive",2),Py=new Ut(gi,"AggressiveNone",0),zm=new Ut(gi,"AggressiveLess",1),Fy=new Ut(gi,"AggressiveMore",2),cS=8;gi.className="LayeredDigraphLayout",gi.CycleDepthFirst=jm,gi.CycleGreedy=Iy,gi.CycleFromLayers=Wp,gi.LayerOptimalLinkLength=Um,gi.LayerLongestPathSink=Oy,gi.LayerLongestPathSource=Ly,gi.InitDepthFirstOut=Hm,gi.InitDepthFirstIn=My,gi.InitNaive=Dy,gi.AggressiveNone=Py,gi.AggressiveLess=zm,gi.AggressiveMore=Fy,gi.PackNone=0,gi.PackExpand=1,gi.PackStraighten=2,gi.PackMedian=4,gi.PackAll=15,gi.AlignNone=0,gi.AlignUpperLeft=1,gi.AlignUpperRight=2,gi.AlignLowerLeft=4,gi.AlignLowerRight=8,gi.AlignAll=15;function gh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}gh.className="SegInfo";function wd(e){Vi.call(this,e)}Kn(wd,Vi),wd.prototype.createVertex=function(){return new Ll(this)},wd.prototype.createEdge=function(){return new Vp(this)},wd.className="LayeredDigraphNetwork";function Ll(e){Xo.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}Kn(Ll,Xo);function y1(e,t){return e.index-t.index}function Gm(e,t){if(!e.$n){for(var n=[],r=wn(e.destinationEdgesArrayAccess),i=r.next();!i.done;i=r.next())i=i.value,i.valid&&n.push(i);e.$n=n}for(e=wn(e.$n),n=e.next();!n.done;n=e.next())if(n=n.value,n.toVertex===t)return n;nt("Unable to find destination edge to given vertex")}function By(e){if(!e.co){for(var t=[],n=wn(e.sourceEdgesArrayAccess),r=n.next();!r.done;r=n.next())r=r.value,r.valid&&t.push(r.fromVertex);t.sort(y1),e.co=t}return e.co}function hS(e){if(!e.ao){for(var t=[],n=wn(e.destinationEdgesArrayAccess),r=n.next();!r.done;r=n.next())r=r.value,r.valid&&t.push(r.toVertex);t.sort(y1),e.ao=t}return e.ao}Ll.prototype.Cl=function(e){Xo.prototype.Cl.call(this,e),this.bo=this.co=null},Ll.prototype.Kl=function(e){Xo.prototype.Kl.call(this,e),this.bo=this.co=null},Ll.prototype.zl=function(e){Xo.prototype.zl.call(this,e),this.$n=this.ao=null},Ll.prototype.Jl=function(e){Xo.prototype.Jl.call(this,e),this.$n=this.ao=null},Dn.Object.defineProperties(Ll.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)}}}),Ll.prototype.deleteDestinationEdge=Ll.prototype.Jl,Ll.prototype.addDestinationEdge=Ll.prototype.zl,Ll.prototype.deleteSourceEdge=Ll.prototype.Kl,Ll.prototype.addSourceEdge=Ll.prototype.Cl,Ll.className="LayeredDigraphVertex";function Vp(e){el.call(this,e),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Kn(Vp,el),Dn.Object.defineProperties(Vp.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)}}}),Vp.className="LayeredDigraphEdge";function Er(e){lo.call(this),this.Ub=new Wt,this.Wn=Ym,this.ud=Qu,this.vo=Xm,this.Bq=Xy,this.$v=[],this.td=!0,this.Rb=Zm,this.$d=new un(10,10).freeze();var t=new kf(this);this.W=new Wl(t),this.Y=new Wl(t),this.ru=[],e&&Object.assign(this,e)}Kn(Er,lo),Er.prototype.cloneProtected=function(e){lo.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)},Er.prototype.qb=function(e){e.classType===Er?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:nt("Unknown enum value: "+e):lo.prototype.qb.call(this,e)},Er.prototype.createNetwork=function(){return new kf(this)},Er.prototype.makeNetwork=function(e){function t(r){if(r instanceof fn)return!r.isLinkLabel&&r.category!=="Comment";if(r instanceof en){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 xt?(n.lg(e.nodes,!0,t),n.lg(e.links,!0,t)):e instanceof tr?n.lg(e.memberParts,!1,t):n.lg(e.iterator,!1,t),n},Er.prototype.doLayout=function(e){this.network===null&&(this.network=this.makeNetwork(e)),this.arrangement!==Jm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var t=this.diagram;if(t===null&&e instanceof xt&&(t=e),this.path===Ym&&t!==null?this.ud=t.isTreePathToChildren?Qu:_f:this.ud=this.path===Ym?Qu: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 Wt,t=this.Ub.iterator;t.next();){var n=t.value;n instanceof fn?(n=this.network.ki(n),n!==null&&e.add(n)):n instanceof Wl&&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=b1(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 Wl&&x1(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Wl&&w1(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Wl&&E1(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 Wl&&this.layoutTree(t);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Wt,this.isValidLayout=!0};function fS(e){var t=new Wt;for(e=e.iterator;e.next();){var n=e.value;n.initialized||t.add(n)}return t}Er.prototype.findRoots=function(){for(var e=this.network.vertexes,t=e.iterator;t.next();){var n=t.value;switch(this.ud){case Qu:n.sourceEdges.count===0&&this.Ub.add(n);break;case _f:n.destinationEdges.count===0&&this.Ub.add(n);break;default:nt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(e=b1(this,e),e!==null&&this.Ub.add(e))};function b1(e,t){var n=999999,r=null;for(t=t.iterator;t.next();){var i=t.value;switch(e.ud){case Qu:i.sourceEdges.count<n&&(n=i.sourceEdges.count,r=i);break;case _f:i.destinationEdges.count<n&&(n=i.destinationEdges.count,r=i);break;default:nt("Unhandled path value "+e.ud.toString())}}return r}function jy(e,t){if(t!==null){switch(e.ud){case Qu:if(0<t.destinationEdges.count){for(var n=new Gt,r=t.destinationVertexes;r.next();){var i=r.value;S1(e,t,i)&&n.add(i)}0<n.count&&(t.children=n.Fa())}break;case _f:if(0<t.sourceEdges.count){for(n=new Gt,r=t.sourceVertexes;r.next();)i=r.value,S1(e,t,i)&&n.add(i);0<n.count&&(t.children=n.Fa())}break;default:nt("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 S1(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}Er.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 x1(e,t){if(t!==null){e.initializeTreeVertexValues(t),t.alignment===tc&&e.sortTreeVertexChildren(t);for(var n=0,r=t.childrenCount,i=0,o=t.children,a=o.length,d=0;d<a;d++){var E=o[d];x1(e,E),n+=E.descendantCount+1,r=Math.max(r,E.maxChildrenCount),i=Math.max(i,E.maxGenerationCount)}t.descendantCount=n,t.maxChildrenCount=r,t.maxGenerationCount=0<r?i+1:0}}function dS(e,t){switch(e.vo){default:case Xm: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}}Er.prototype.initializeTreeVertexValues=function(e){if(e.copyInheritedPropertiesFrom(dS(this,e)),e.parent!==null&&e.parent.alignment===tc){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 w1(e,t){if(t!==null){e.assignTreeVertexValues(t),t=t.children;for(var n=t.length,r=0;r<n;r++)w1(e,t[r])}}Er.prototype.assignTreeVertexValues=function(){};function E1(e,t){if(t!==null){t.alignment!==tc&&e.sortTreeVertexChildren(t),t=t.children;for(var n=t.length,r=0;r<n;r++)E1(e,t[r])}}Er.prototype.sortTreeVertexChildren=function(e){switch(e.sorting){case Ed:break;case Yp:e.children.reverse();break;case $p:e.children.sort(e.comparer);break;case Xp:e.children.sort(e.comparer),e.children.reverse();break;default:nt("Unhandled sorting value "+e.sorting.toString())}},Er.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},Er.prototype.addComments=function(e){var t=e.angle,n=e.parent,r=0,i=!1;n!==null&&(r=n.angle,i=n.alignment,i=mh(i)),t=t===90||t===270,r=r===90||r===270,n=e.childrenCount===0;var o=0,a=0,d=0,E=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(d)):(o+=D.width+Math.abs(d),a=Math.max(a,D.height)),d=E)}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=Ct.allocAt(0,0,e.bounds.width+o,e.bounds.height+a),e.bounds=i,Ct.free(i))};function mh(e){return e===Bc||e===tc||e===jc||e===dc}function Kp(e){return e===Bc||e===tc}function Uy(e){var t=e.parent;if(t!==null){var n=t.alignment;if(mh(n)){if(Kp(n)){for(t=t.children,n=0;n<t.length&&e!==t[n];)n++;return n%2===0}if(n===jc)return!0}}return!1}Er.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=mh(o)),r=r===90||r===270,n=i===90||i===270;for(var a=e.childrenCount===0,d=Uy(e),E=0,O=e.comments,D=O.length,X=Pe.alloc(),se=0;se<D;se++){var ge=O[se],ve=ge.measuredBounds;if(r&&!a||!o&&!n&&a||o&&n&&a){if(135<i&&!o||n&&d)if(0<=e.commentMargin)for(X.h(e.bounds.x-e.commentMargin-ve.width,e.bounds.y+E),ge.move(X),ge=ge.Sd();ge.next();){var Te=ge.value;Te.fromSpot=As,Te.toSpot=Zo}else for(X.h(e.bounds.x+2*e.focus.x-e.commentMargin,e.bounds.y+E),ge.move(X),ge=ge.Sd();ge.next();)Te=ge.value,Te.fromSpot=Zo,Te.toSpot=As;else if(0<=e.commentMargin)for(X.h(e.bounds.x+2*e.focus.x+e.commentMargin,e.bounds.y+E),ge.move(X),ge=ge.Sd();ge.next();)Te=ge.value,Te.fromSpot=Zo,Te.toSpot=As;else for(X.h(e.bounds.x+e.commentMargin-ve.width,e.bounds.y+E),ge.move(X),ge=ge.Sd();ge.next();)Te=ge.value,Te.fromSpot=As,Te.toSpot=Zo;E=0<=e.commentSpacing?E+(ve.height+e.commentSpacing):E+(e.commentSpacing-ve.height)}else{if(135<i&&!o||!n&&d)if(0<=e.commentMargin)for(X.h(e.bounds.x+E,e.bounds.y-e.commentMargin-ve.height),ge.move(X),ge=ge.Sd();ge.next();)Te=ge.value,Te.fromSpot=ps,Te.toSpot=us;else for(X.h(e.bounds.x+E,e.bounds.y+2*e.focus.y-e.commentMargin),ge.move(X),ge=ge.Sd();ge.next();)Te=ge.value,Te.fromSpot=us,Te.toSpot=ps;else if(0<=e.commentMargin)for(X.h(e.bounds.x+E,e.bounds.y+2*e.focus.y+e.commentMargin),ge.move(X),ge=ge.Sd();ge.next();)Te=ge.value,Te.fromSpot=us,Te.toSpot=ps;else for(X.h(e.bounds.x+E,e.bounds.y+e.commentMargin-ve.height),ge.move(X),ge=ge.Sd();ge.next();)Te=ge.value,Te.fromSpot=ps,Te.toSpot=us;E=0<=e.commentSpacing?E+(ve.width+e.commentSpacing):E+(e.commentSpacing-ve.width)}}if(Pe.free(X),t=E-e.commentSpacing-(r?t.height:t.width),this.ud===Qu)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)}},Er.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 $m:C1(this,e);break;case Zp:if(e.alignment===tc)C1(this,e);else if(e.childrenCount===0)r=e.parent,n=!1,t=0,r!==null&&(t=r.angle,n=r.alignment,n=mh(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=cu(e);t=i===90||i===270;var o=0,a=e.children,d=a.length;for(n=0;n<d;n++)r=a[n],o=Math.max(o,t?r.Da.width:r.Da.height);var E=e.alignment;r=E===qu;var O=E===ec,D=mh(E),X=Math.max(0,e.breadthLimit);n=this.computeLayerSpacing(e);var se=e.nodeSpacing,ge=this.computeNodeIndent(e),ve=e.rowSpacing,Te=0;(r||O||e.hm||e.im&&e.maxGenerationCount===1)&&(Te=Math.max(0,e.rowIndent)),r=e.width;var Ke=e.height,Ge=0,Xe=0,Ze=0,tt=null,at=null,St=0,ln=0,_n=0,Sn=0,qt=0,Pt=0,er=0,$n=0;if(D&&!Kp(E)&&135<i&&a.reverse(),Kp(E))if(1<d)for(var ei=0;ei<d;ei++)ei%2===0&&ei!==d-1&&($n=Math.max($n,t?a[ei].Da.width:a[ei].Da.height));else d===1&&($n=t?a[0].Da.width:a[0].Da.height);if(D){switch(E){case Bc:Xe=135>i?T1(this,e,a,$n,Ge,Xe):_1(this,e,a,$n,Ge,Xe),$n=Xe.x,Ge=Xe.width,Xe=Xe.height;break;case jc:for(tt=0;tt<d;tt++)at=a[tt],X=at.Da,Ze=Pt===0?0:ve,t?(at.S.h(o-X.width,Sn+Ze),Ge=Math.max(Ge,X.width),Xe=Math.max(Xe,Sn+Ze+X.height),Sn+=Ze+X.height):(at.S.h(_n+Ze,o-X.height),Ge=Math.max(Ge,_n+Ze+X.width),Xe=Math.max(Xe,X.height),_n+=Ze+X.width),Pt++;break;case dc:for(tt=0;tt<d;tt++)at=a[tt],o=at.Da,X=Pt===0?0:ve,t?(at.S.h(se/2+e.focus.x,Sn+X),Ge=Math.max(Ge,o.width),Xe=Math.max(Xe,Sn+X+o.height),Sn+=X+o.height):(at.S.h(_n+X,se/2+e.focus.y),Ge=Math.max(Ge,_n+X+o.width),Xe=Math.max(Xe,o.height),_n+=X+o.width),Pt++}tt=za(this,2),at=za(this,2),t?(tt[0].h(0,0),tt[1].h(0,Xe),at[0].h(Ge,0)):(tt[0].h(0,0),tt[1].h(Ge,0),at[0].h(0,Xe)),at[1].h(Ge,Xe)}else for(ei=0;ei<d;ei++){var zi=a[ei],as=zi.Da;if(t){0<X&&0<Pt&&_n+se+as.width>X&&(_n<o&&Zh(e,E,o-_n,0,er,ei-1),qt++,Pt=0,er=ei,Ze=Xe,_n=0,Sn=135<i?-Xe-ve:Xe+ve),Vm(this,zi,0,Sn);var hs=0;if(Pt===0)tt=zi.Yo,at=zi.kp,St=as.width,ln=as.height,(tt===null||at===null||i!==cu(zi))&&(tt=za(this,2),at=za(this,2),tt[0].h(0,0),tt[1].h(0,ln),at[0].h(St,0),at[1].h(St,ln));else{var na=An();ln=A1(this,e,zi,tt,at,St,ln,na),hs=ln.x,tt=na[0],at=na[1],St=ln.width,ln=ln.height,Nn(na),_n<as.width&&0>hs&&(Tf(e,-hs,0,er,ei-1),Km(tt,-hs,0),Km(at,-hs,0),hs=0)}zi.S.h(hs,Sn),Ge=Math.max(Ge,St),Xe=Math.max(Xe,Ze+(qt===0?0:ve)+as.height),_n=St}else 0<X&&0<Pt&&Sn+se+as.height>X&&(Sn<o&&Zh(e,E,0,o-Sn,er,ei-1),qt++,Pt=0,er=ei,Ze=Ge,Sn=0,_n=135<i?-Ge-ve:Ge+ve),Vm(this,zi,_n,0),hs=0,Pt===0?(tt=zi.Yo,at=zi.kp,St=as.width,ln=as.height,(tt===null||at===null||i!==cu(zi))&&(tt=za(this,2),at=za(this,2),tt[0].h(0,0),tt[1].h(St,0),at[0].h(0,ln),at[1].h(St,ln))):(na=An(),ln=A1(this,e,zi,tt,at,St,ln,na),hs=ln.x,tt=na[0],at=na[1],St=ln.width,ln=ln.height,Nn(na),Sn<as.height&&0>hs&&(Tf(e,0,-hs,er,ei-1),Km(tt,0,-hs),Km(at,0,-hs),hs=0)),zi.S.h(_n,hs),Xe=Math.max(Xe,ln),Ge=Math.max(Ge,Ze+(qt===0?0:ve)+as.width),Sn=ln;Pt++}switch(0<qt&&(t?(Xe+=Math.max(0,n),_n<Ge&&Zh(e,E,Ge-_n,0,er,d-1),0<Te&&(O||Tf(e,Te,0,0,d-1),Ge+=Te)):(Ge+=Math.max(0,n),Sn<Xe&&Zh(e,E,0,Xe-Sn,er,d-1),0<Te&&(O||Tf(e,0,Te,0,d-1),Xe+=Te))),Te=O=0,E){case Cd:t?O+=Ge/2-e.focus.x-ge/2:Te+=Xe/2-e.focus.y-ge/2;break;case Af:0<qt?t?O+=Ge/2-e.focus.x-ge/2:Te+=Xe/2-e.focus.y-ge/2:t?($n=a[0].S.x+a[0].la.x,O+=$n+(a[d-1].S.x+a[d-1].la.x+2*a[d-1].focus.x-$n)/2-e.focus.x-ge/2):($n=a[0].S.y+a[0].la.y,Te+=$n+(a[d-1].S.y+a[d-1].la.y+2*a[d-1].focus.y-$n)/2-e.focus.y-ge/2);break;case qu:t?(O-=ge,Ge+=ge):(Te-=ge,Xe+=ge);break;case ec:t?(O+=Ge-e.width+ge,Ge+=ge):(Te+=Xe-e.height+ge,Xe+=ge);break;case Bc:t?1<d?O+=$n+se/2-e.focus.x:O+=a[0].focus.x-e.focus.x+a[0].la.x:1<d?Te+=$n+se/2-e.focus.y:Te+=a[0].focus.y-e.focus.y+a[0].la.y;break;case jc:t?O+=Ge+se/2-e.focus.x:Te+=Xe+se/2-e.focus.y;break;case dc:break;default:Xe=this.customAlignment(e,O,Te,Ge,Xe),O=Xe[0],Te=Xe[1],Ge=Xe[2],Xe=Xe[3]}for(ge=0;ge<d;ge++)$n=a[ge],t?$n.S.h($n.S.x+$n.la.x-O,$n.S.y+(135<i?(D?-Xe:-$n.Da.height)+$n.la.y-n:Ke+n+$n.la.y)):$n.S.h($n.S.x+(135<i?(D?-Ge:-$n.Da.width)+$n.la.x-n:r+n+$n.la.x),$n.S.y+$n.la.y-Te);if(d=a=0,D?t?(Ge=Hy(e,Ge,O),0>O&&(O=0),135<i&&(Te+=Xe+n),Xe+=Ke+n,E===dc&&(a+=se/2+e.focus.x),d+=Ke+n):(135<i&&(O+=Ge+n),Ge+=r+n,Xe=zy(e,Xe,Te),0>Te&&(Te=0),E===dc&&(d+=se/2+e.focus.y),a+=r+n):t?(e.comments===null?r>Ge&&(Ge=Gy(E,r-Ge,0),a=Ge.x,d=Ge.y,Ge=r,O=0):Ge=Hy(e,Ge,O),0>O&&(a-=O,O=0),135<i&&(Te+=Xe+n),Xe=Math.max(Math.max(Xe,Ke),Xe+Ke+n),d+=Ke+n):(135<i&&(O+=Ge+n),Ge=Math.max(Math.max(Ge,r),Ge+r+n),e.comments===null?Ke>Xe&&(Xe=Gy(E,0,Ke-Xe),a=Xe.x,d=Xe.y,Xe=Ke,Te=0):Xe=zy(e,Xe,Te),0>Te&&(d-=Te,Te=0),a+=r+n),0<qt)i=za(this,4),qt=za(this,4),t?(i[2].h(0,Ke+n),i[3].h(i[2].x,Xe),qt[2].h(Ge,i[2].y),qt[3].h(qt[2].x,i[3].y)):(i[2].h(r+n,0),i[3].h(Ge,i[2].y),qt[2].h(i[2].x,Xe),qt[3].h(i[3].x,qt[2].y));else{for(i=za(this,tt.length+2),qt=za(this,at.length+2),E=0;E<tt.length;E++)D=tt[E],i[E+2].h(D.x+a,D.y+d);for(E=0;E<at.length;E++)D=at[E],qt[E+2].h(D.x+a,D.y+d)}t?(i[0].h(O,0),i[1].h(i[0].x,Ke),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])),qt[0].h(O+r,0),qt[1].h(qt[0].x,Ke),qt[2].y<qt[1].y&&(qt[2].x<qt[0].x?qt[2].assign(qt[1]):qt[1].assign(qt[2])),qt[3].y<qt[2].y&&(qt[3].x<qt[0].x?qt[3].assign(qt[2]):qt[2].assign(qt[3])),i[2].y-=n/2,qt[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])),qt[0].h(0,Te+Ke),qt[1].h(r,qt[0].y),qt[2].x<qt[1].x&&(qt[2].y<qt[0].y?qt[2].assign(qt[1]):qt[1].assign(qt[2])),qt[3].x<qt[2].x&&(qt[3].y<qt[0].y?qt[3].assign(qt[2]):qt[2].assign(qt[3])),i[2].x-=n/2,qt[2].x-=n/2),Eu(this,tt),Eu(this,at),e.Yo=i,e.kp=qt,e.la.h(O,Te),e.Da.h(Ge,Xe)}break;default:nt("Unhandled compaction value "+e.compaction.toString())}}};function C1(e,t){if(t.childrenCount===0){var n=!1,r=0;t.parent!==null&&(r=t.parent.angle,n=t.parent.alignment,n=mh(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=cu(t),n=r===90||r===270;var o=0;i=t.children;for(var a=i.length,d=0;d<a;d++){var E=i[d];o=Math.max(o,n?E.Da.width:E.Da.height)}var O=t.alignment,D=O===qu,X=O===ec;d=mh(O);var se=Math.max(0,t.breadthLimit);E=e.computeLayerSpacing(t);var ge=t.nodeSpacing,ve=e.computeNodeIndent(t),Te=D||X?0:ve/2,Ke=t.rowSpacing,Ge=0;(D||X||t.hm||t.im&&t.maxGenerationCount===1)&&(Ge=Math.max(0,t.rowIndent)),D=t.width;var Xe=t.height,Ze=0,tt=0,at=0,St=0,ln=0,_n=0,Sn=0,qt=0,Pt=0,er=0;if(d&&!Kp(O)&&135<r&&i.reverse(),Kp(O))if(1<a)for(var $n=0;$n<a;$n++){var ei=i[$n],zi=ei.Da;$n%2===0&&$n!==a-1?Pt=Math.max(Pt,(n?zi.width:zi.height)+e.computeBusNodeSpacing(ei)-ge):$n%2!==0&&(er=Math.max(er,(n?zi.width:zi.height)+e.computeBusNodeSpacing(ei)-ge))}else a===1&&(Pt=n?i[0].Da.width:i[0].Da.height);if(d)switch(O){case Bc:case tc:tt=135>r?T1(e,t,i,Pt,Ze,tt):_1(e,t,i,Pt,Ze,tt),Pt=tt.x,Ze=tt.width,tt=tt.height;break;case jc:for(se=0;se<a;se++)Te=i[se],at=Te.Da,er=Sn===0?0:Ke,n?(Te.S.h(o-at.width,ln+er),Ze=Math.max(Ze,at.width),tt=Math.max(tt,ln+er+at.height),ln+=er+at.height):(Te.S.h(St+er,o-at.height),Ze=Math.max(Ze,St+er+at.width),tt=Math.max(tt,at.height),St+=er+at.width),Sn++;break;case dc:for(o=0;o<a;o++)se=i[o],Te=se.Da,at=Sn===0?0:Ke,n?(se.S.h(ge/2+t.focus.x,ln+at),Ze=Math.max(Ze,Te.width),tt=Math.max(tt,ln+at+Te.height),ln+=at+Te.height):(se.S.h(St+at,ge/2+t.focus.y),Ze=Math.max(Ze,St+at+Te.width),tt=Math.max(tt,Te.height),St+=at+Te.width),Sn++}else for(er=0;er<a;er++)$n=i[er],ei=$n.Da,n?(0<se&&0<Sn&&St+ge+ei.width>se&&(St<o&&Zh(t,O,o-St,0,qt,er-1),_n++,Sn=0,qt=er,at=tt,St=0,ln=135<r?-tt-Ke:tt+Ke),zi=Sn===0?Te:ge,Vm(e,$n,0,ln),$n.S.h(St+zi,ln),Ze=Math.max(Ze,St+zi+ei.width),tt=Math.max(tt,at+(_n===0?0:Ke)+ei.height),St+=zi+ei.width):(0<se&&0<Sn&&ln+ge+ei.height>se&&(ln<o&&Zh(t,O,0,o-ln,qt,er-1),_n++,Sn=0,qt=er,at=Ze,ln=0,St=135<r?-Ze-Ke:Ze+Ke),zi=Sn===0?Te:ge,Vm(e,$n,St,0),$n.S.h(St,ln+zi),tt=Math.max(tt,ln+zi+ei.height),Ze=Math.max(Ze,at+(_n===0?0:Ke)+ei.width),ln+=zi+ei.height),Sn++;switch(0<_n&&(n?(tt+=Math.max(0,E),St<Ze&&Zh(t,O,Ze-St,0,qt,a-1),0<Ge&&(X||Tf(t,Ge,0,0,a-1),Ze+=Ge)):(Ze+=Math.max(0,E),ln<tt&&Zh(t,O,0,tt-ln,qt,a-1),0<Ge&&(X||Tf(t,0,Ge,0,a-1),tt+=Ge))),Ge=X=0,O){case Cd:n?X+=Ze/2-t.focus.x-ve/2:Ge+=tt/2-t.focus.y-ve/2;break;case Af:0<_n?n?X+=Ze/2-t.focus.x-ve/2:Ge+=tt/2-t.focus.y-ve/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-ve/2):(e=i[0].S.y+i[0].la.y,Ge+=e+(i[a-1].S.y+i[a-1].la.y+2*i[a-1].focus.y-e)/2-t.focus.y-ve/2);break;case qu:n?(X-=ve,Ze+=ve):(Ge-=ve,tt+=ve);break;case ec:n?(X+=Ze-t.width+ve,Ze+=ve):(Ge+=tt-t.height+ve,tt+=ve);break;case Bc:case tc:n?1<a?X+=Pt+ge/2-t.focus.x:X+=i[0].focus.x-t.focus.x+i[0].la.x:1<a?Ge+=Pt+ge/2-t.focus.y:Ge+=i[0].focus.y-t.focus.y+i[0].la.y;break;case jc:n?X+=Ze+ge/2-t.focus.x:Ge+=tt+ge/2-t.focus.y;break;case dc:break;default:e=e.customAlignment(t,X,Ge,Ze,tt),X=e[0],Ge=e[1],Ze=e[2],tt=e[3]}for(e=0;e<a;e++)ve=i[e],n?ve.S.h(ve.S.x+ve.la.x-X,ve.S.y+(135<r?(d?-tt:-ve.Da.height)+ve.la.y-E:Xe+E+ve.la.y)):ve.S.h(ve.S.x+(135<r?(d?-Ze:-ve.Da.width)+ve.la.x-E:D+E+ve.la.x),ve.S.y+ve.la.y-Ge);n?(Ze=Hy(t,Ze,X),0>X&&(X=0),135<r&&(Ge+=tt+E),tt=Math.max(Math.max(tt,Xe),tt+Xe+E)):(135<r&&(X+=Ze+E),Ze=Math.max(Math.max(Ze,D),Ze+D+E),tt=zy(t,tt,Ge),0>Ge&&(Ge=0)),t.la.h(X,Ge),t.Da.h(Ze,tt)}}Er.prototype.customAlignment=function(e,t,n,r,i){return[t,n,r,i]};function T1(e,t,n,r,i,o){var a=n.length;if(a===0)return new Ct(r,0,i,o);if(a===1)return t=n[0],i=t.Da.width,o=t.Da.height,new Ct(r,0,i,o);for(var d=t.nodeSpacing,E=t.rowSpacing,O=cu(t)===90,D=0,X=0,se=0,ge=0;ge<a;ge++)if(!(ge%2!==0||1<a&&ge===a-1)){var ve=n[ge],Te=ve.Da,Ke=D===0?0:E;if(O){var Ge=e.computeBusNodeSpacing(ve)-d;ve.S.h(r-(Te.width+Ge),se+Ke),i=Math.max(i,Te.width+Ge),o=Math.max(o,se+Ke+Te.height),se+=Ke+Te.height}else Ge=e.computeBusNodeSpacing(ve)-d,ve.S.h(X+Ke,r-(Te.height+Ge)),o=Math.max(o,Te.height+Ge),i=Math.max(i,X+Ke+Te.width),X+=Ke+Te.width;D++}for(D=0,ve=X,ge=se,O?(X=r+d,se=0):(X=0,se=r+d),Te=0;Te<a;Te++)if(Te%2!==0){Ke=n[Te],Ge=Ke.Da;var Xe=D===0?0:E;if(O){var Ze=e.computeBusNodeSpacing(Ke)-d;Ke.S.h(X+Ze,se+Xe),i=Math.max(i,X+Ge.width+Ze),o=Math.max(o,se+Xe+Ge.height),se+=Xe+Ge.height}else Ze=e.computeBusNodeSpacing(Ke)-d,Ke.S.h(X+Xe,se+Ze),i=Math.max(i,X+Xe+Ge.width),o=Math.max(o,se+Ge.height+Ze),X+=Xe+Ge.width;D++}return 1<a&&a%2===1&&(n=n[a-1],a=n.Da,e=e.computeBusLastRowSpacing(n,O?Math.max(Math.abs(ge),Math.abs(se)):Math.max(Math.abs(ve),Math.abs(X))),O?(n.S.h(r+d/2-n.focus.x-n.la.x,o+e),O=r+d/2-n.focus.x-n.la.x,i=Math.max(i,O+a.width),0>O&&(i-=O),o=Math.max(o,Math.max(ge,se)+e+a.height),0>n.S.x&&(r=Wm(t,n.S.x,!1,r,d))):(n.S.h(i+e,r+d/2-n.focus.y-n.la.y),i=Math.max(i,Math.max(ve,X)+e+a.width),se=r+d/2-n.focus.y-n.la.y,o=Math.max(o,se+a.height),0>se&&(o-=se),0>n.S.y&&(r=Wm(t,n.S.y,!0,r,d)))),new Ct(r,0,i,o)}function _1(e,t,n,r,i,o){var a=n.length;if(a===0)return new Ct(r,0,i,o);if(a===1)return n=n[0],i=n.Da.width,o=n.Da.height,new Ct(r,0,i,o);for(var d=t.nodeSpacing,E=t.rowSpacing,O=cu(t)===270,D=0,X=0,se=0,ge=0;ge<a;ge++)if(!(ge%2!==0||1<a&&ge===a-1)){var ve=n[ge],Te=ve.Da,Ke=D===0?0:E;if(O){var Ge=e.computeBusNodeSpacing(ve)-d;se-=Ke+Te.height,ve.S.h(r-(Te.width+Ge),se),i=Math.max(i,Te.width+Ge),o=Math.max(o,Math.abs(se))}else Ge=e.computeBusNodeSpacing(ve)-d,X-=Ke+Te.width,ve.S.h(X,r-(Te.height+Ge)),o=Math.max(o,Te.height+Ge),i=Math.max(i,Math.abs(X));D++}for(D=0,ve=X,ge=se,O?(X=r+d,se=0):(X=0,se=r+d),Te=0;Te<a;Te++)if(Te%2!==0){Ke=n[Te],Ge=Ke.Da;var Xe=D===0?0:E;if(O){var Ze=e.computeBusNodeSpacing(Ke)-d;se-=Xe+Ge.height,Ke.S.h(X+Ze,se),i=Math.max(i,X+Ge.width+Ze),o=Math.max(o,Math.abs(se))}else Ze=e.computeBusNodeSpacing(Ke)-d,X-=Xe+Ge.width,Ke.S.h(X,se+Ze),o=Math.max(o,se+Ge.height+Ze),i=Math.max(i,Math.abs(X));D++}for(1<a&&a%2===1&&(E=n[a-1],D=E.Da,e=e.computeBusLastRowSpacing(E,O?Math.max(Math.abs(ge),Math.abs(se)):Math.max(Math.abs(ve),Math.abs(X))),O?(E.S.h(r+d/2-E.focus.x-E.la.x,-o-D.height-e),X=r+d/2-E.focus.x-E.la.x,i=Math.max(i,X+D.width),0>X&&(i-=X),o=Math.max(o,Math.abs(Math.min(ge,se))+e+D.height),0>E.S.x&&(r=Wm(t,E.S.x,!1,r,d))):(E.S.h(-i-D.width-e,r+d/2-E.focus.y-E.la.y),i=Math.max(i,Math.abs(Math.min(ve,X))+e+D.width),se=r+d/2-E.focus.y-E.la.y,o=Math.max(o,se+D.height),0>se&&(o-=se),0>E.S.y&&(r=Wm(t,E.S.y,!0,r,d)))),t=0;t<a;t++)d=n[t],O?d.S.h(d.S.x,d.S.y+o):d.S.h(d.S.x+i,d.S.y);return new Ct(r,0,i,o)}Er.prototype.computeBusNodeSpacing=function(e){return e.parent===null?0:e.parent.nodeSpacing},Er.prototype.computeBusLastRowSpacing=function(e){return e.parent===null?0:e.parent.rowSpacing};function Wm(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 Af:case Cd:return n+e.width>t&&(t=n+e.width),0>n&&(t-=n),t;case qu:return e.width>t?e.width:t;case ec:return 2*e.focus.x>t?e.width:t+e.width-2*e.focus.x;case Bc:case tc:return Math.max(e.width,Math.max(t,n+e.width)-Math.min(0,n));case jc:return e.width-e.focus.x+e.nodeSpacing/2+t;case dc:return Math.max(e.width,e.focus.x+e.nodeSpacing/2+t);default:return t}}function zy(e,t,n){switch(e.alignment){case Af:case Cd:return n+e.height>t&&(t=n+e.height),0>n&&(t-=n),t;case qu:return e.height>t?e.height:t;case ec:return 2*e.focus.y>t?e.height:t+e.height-2*e.focus.y;case Bc:case tc:return Math.max(e.height,Math.max(t,n+e.height)-Math.min(0,n));case jc:return e.height-e.focus.y+e.nodeSpacing/2+t;case dc:return Math.max(e.height,e.focus.y+e.nodeSpacing/2+t);default:return t}}function Gy(e,t,n){switch(e){case Cd:t/=2,n/=2;break;case Af:t/=2,n/=2;break;case qu:n=t=0;break;case ec:break;default:nt("Unhandled alignment value "+e.toString())}return new Pe(t,n)}function Zh(e,t,n,r,i,o){t=Gy(t,n,r),Tf(e,t.x,t.y,i,o)}function Tf(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 Vm(e,t,n,r){var i=t.parent;switch(e.ud){case Qu:for(e=t.sourceEdges;e.next();)t=e.value,t.fromVertex===i&&t.relativePoint.h(n,r);break;case _f:for(e=t.destinationEdges;e.next();)t=e.value,t.toVertex===i&&t.relativePoint.h(n,r);break;default:nt("Unhandled path value "+e.ud.toString())}}function Km(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];i.x+=t,i.y+=n}}function A1(e,t,n,r,i,o,a,d){var E=cu(t),O=E===90||E===270,D=t.nodeSpacing;t=r;var X=i;r=o;var se=a,ge=n.Yo,ve=n.kp;a=n.Da;var Te=O?Math.max(se,a.height):Math.max(r,a.width);if((ge===null||E!==cu(n))&&(ge=za(e,2),ve=za(e,2),O?(ge[0].h(0,0),ge[1].h(0,a.height),ve[0].h(a.width,0),ve[1].h(ve[0].x,ge[1].y)):(ge[0].h(0,0),ge[1].h(a.width,0),ve[0].h(0,a.height),ve[1].h(ge[1].x,ve[0].y))),O){if(se=9999999,!(X===null||2>X.length||ge===null||2>ge.length))for(i=n=0;n<X.length&&i<ge.length;){o=X[n];var Ke=ge[i];E=Ke.x,O=Ke.y,E+=r;var Ge=o;n+1<X.length&&(Ge=X[n+1]);var Xe=Ke;Ke=Xe.x,Xe=Xe.y,i+1<ge.length&&(Xe=ge[i+1],Ke=Xe.x,Xe=Xe.y,Ke+=r);var Ze=se;o.y===O?Ze=E-o.x:o.y>O&&o.y<Xe?Ze=E+(o.y-O)/(Xe-O)*(Ke-E)-o.x:O>o.y&&O<Ge.y&&(Ze=E-(o.x+(O-o.y)/(Ge.y-o.y)*(Ge.x-o.x))),Ze<se&&(se=Ze),Ge.y<=o.y?n++:Xe<=O?i++:(Ge.y<=Xe&&n++,Xe<=Ge.y&&i++)}if(se=r-se,se+=D,n=ge,i=se,t===null||2>t.length||n===null||2>n.length)r=null;else{for(D=za(e,t.length+n.length),r=o=E=0;o<n.length&&n[o].y<t[0].y;)O=n[o++],D[r++].h(O.x+i,O.y);for(;E<t.length;)O=t[E++],D[r++].h(O.x,O.y);for(E=t[t.length-1].y;o<n.length&&n[o].y<=E;)o++;for(;o<n.length&&n[o].y>E;)O=n[o++],D[r++].h(O.x+i,O.y);for(n=za(e,r),E=0;E<r;E++)n[E].assign(D[E]);Eu(e,D),r=n}if(o=ve,E=se,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;)Ge=X[n++],D[i++].h(Ge.x,Ge.y);for(;O<o.length;)Ge=o[O++],D[i++].h(Ge.x+E,Ge.y);for(o=o[o.length-1].y;n<X.length&&X[n].y<=o;)n++;for(;n<X.length&&X[n].y>o;)E=X[n++],D[i++].h(E.x,E.y);for(o=za(e,i),n=0;n<i;n++)o[n].assign(D[n]);Eu(e,D),i=o}return o=Math.max(0,se)+a.width,a=Te,Eu(e,t),Eu(e,ge),Eu(e,X),Eu(e,ve),d[0]=r,d[1]=i,new Ct(se,0,o,a)}if(r=9999999,!(X===null||2>X.length||ge===null||2>ge.length))for(i=n=0;n<X.length&&i<ge.length;)o=X[n],Ke=ge[i],E=Ke.x,O=Ke.y,O+=se,Ge=o,n+1<X.length&&(Ge=X[n+1]),Xe=Ke,Ke=Xe.x,Xe=Xe.y,i+1<ge.length&&(Xe=ge[i+1],Ke=Xe.x,Xe=Xe.y,Xe+=se),Ze=r,o.x===E?Ze=O-o.y:o.x>E&&o.x<Ke?Ze=O+(o.x-E)/(Ke-E)*(Xe-O)-o.y:E>o.x&&E<Ge.x&&(Ze=O-(o.y+(E-o.x)/(Ge.x-o.x)*(Ge.y-o.y))),Ze<r&&(r=Ze),Ge.x<=o.x?n++:Ke<=E?i++:(Ge.x<=Ke&&n++,Ke<=Ge.x&&i++);if(se-=r,se+=D,n=ge,i=se,t===null||2>t.length||n===null||2>n.length)r=null;else{for(D=za(e,t.length+n.length),r=o=E=0;o<n.length&&n[o].x<t[0].x;)O=n[o++],D[r++].h(O.x,O.y+i);for(;E<t.length;)O=t[E++],D[r++].h(O.x,O.y);for(E=t[t.length-1].x;o<n.length&&n[o].x<=E;)o++;for(;o<n.length&&n[o].x>E;)O=n[o++],D[r++].h(O.x,O.y+i);for(n=za(e,r),E=0;E<r;E++)n[E].assign(D[E]);Eu(e,D),r=n}if(o=ve,E=se,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;)Ge=X[n++],D[i++].h(Ge.x,Ge.y);for(;O<o.length;)Ge=o[O++],D[i++].h(Ge.x,Ge.y+E);for(o=o[o.length-1].x;n<X.length&&X[n].x<=o;)n++;for(;n<X.length&&X[n].x>o;)E=X[n++],D[i++].h(E.x,E.y);for(o=za(e,i),n=0;n<i;n++)o[n].assign(D[n]);Eu(e,D),i=o}return o=Te,a=Math.max(0,se)+a.height,Eu(e,t),Eu(e,ge),Eu(e,X),Eu(e,ve),d[0]=r,d[1]=i,new Ct(se,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 Pe;return e}function Eu(e,t){var n=t.length,r=e.ru[n];r===void 0&&(r=[],e.ru[n]=r),r.push(t)}Er.prototype.arrangeTrees=function(){if(this.Rb===Jm)for(var e=this.Ub.iterator;e.next();){var t=e.value;if(t instanceof Wl){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 Wl&&e.push(n);switch(this.sorting){case Ed:break;case Yp:e.reverse();break;case $p:e.sort(this.comparer);break;case Xp:e.sort(this.comparer),e.reverse();break;default:nt("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 Zm:n+=i.Da.height+this.$d.height;break;case $y:t+=i.Da.width+this.$d.width;break;default:nt("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)}}}Er.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Er.prototype.commitNodes=function(){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();for(e.reset();e.next();)this.layoutComments(e.value)},Er.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 Pe(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),r=new Pe(-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 d=e[a]+t[a];this.angle===270?(o-=d,i.push(new Ct(0,o,n,d))):this.angle===90?(i.push(new Ct(0,o,n,d)),o+=d):this.angle===180?(o-=d,i.push(new Ct(o,0,d,n))):(i.push(new Ct(o,0,d,n)),o+=d)}this.commitLayers(i,r)}},Er.prototype.commitLayers=function(){},Er.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Er.prototype.yv=function(){for(var e=this.Ub.iterator;e.next();){var t=e.value;t instanceof Wl&&k1(this,t)}};function k1(e,t){if(t!==null){e.setPortSpots(t),t=t.children;for(var n=t.length,r=0;r<n;r++)k1(e,t[r])}}Er.prototype.setPortSpots=function(e){var t=e.alignment;if(mh(t)){var n=this.ud===Qu,r=cu(e);switch(r){case 0:var i=Zo;break;case 90:i=us;break;case 180:i=As;break;default:i=ps}var o=e.children,a=o.length;switch(t){case Bc:case tc:for(t=0;t<a;t++){var d=o[t];if(d=(n?d.sourceEdges:d.destinationEdges).first(),d!==null&&(d=d.link,d!==null)){var E=r===90||r===270?As:ps;if(a===1||t===a-1&&a%2===1)switch(r){case 0:E=As;break;case 90:E=ps;break;case 180:E=Zo;break;default:E=us}else t%2===0&&(E=r===90||r===270?Zo:us);n?(e.setsPortSpot&&(d.fromSpot=i),e.setsChildPortSpot&&(d.toSpot=E)):(e.setsPortSpot&&(d.fromSpot=E),e.setsChildPortSpot&&(d.toSpot=i))}}break;case jc:for(r=r===90||r===270?Zo:us,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 dc:for(r=r===90||r===270?As:ps,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=cu(e),this.ud===Qu){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=Zo;break;case 90:r.fromSpot=us;break;case 180:r.fromSpot=As;break;default:r.fromSpot=ps}else r.fromSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:r.toSpot=As;break;case 90:r.toSpot=ps;break;case 180:r.toSpot=Zo;break;default:r.toSpot=us}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=Zo;break;case 90:r.toSpot=us;break;case 180:r.toSpot=As;break;default:r.toSpot=ps}else r.toSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:r.fromSpot=As;break;case 90:r.fromSpot=ps;break;case 180:r.fromSpot=Zo;break;default:r.fromSpot=us}else r.fromSpot=e.childPortSpot}};function cu(e){return e=e.angle,45>=e?0:135>=e?90:225>=e?180:315>=e?270:0}Er.prototype.computeLayerSpacing=function(e){var t=cu(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},Er.prototype.computeNodeIndent=function(e){var t=cu(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)},Dn.Object.defineProperties(Er.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!==Xm&&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!==Zm&&e!==$y&&e!==Jm||(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!==Ed&&e!==Yp&&e!==$p&&!Xp||(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()):nt("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!==$m&&e!==Zp||(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!==Ed&&e!==Yp&&e!==$p&&!Xp||(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!==$m&&e!==Zp||(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 Ym=new Ut(Er,"PathDefault",-1),Qu=new Ut(Er,"PathDestination",0),_f=new Ut(Er,"PathSource",1),Ed=new Ut(Er,"SortingForwards",10),Yp=new Ut(Er,"SortingReverse",11),$p=new Ut(Er,"SortingAscending",12),Xp=new Ut(Er,"SortingDescending",13),Cd=new Ut(Er,"AlignmentCenterSubtrees",20),Af=new Ut(Er,"AlignmentCenterChildren",21),qu=new Ut(Er,"AlignmentStart",22),ec=new Ut(Er,"AlignmentEnd",23),Bc=new Ut(Er,"AlignmentBus",24),tc=new Ut(Er,"AlignmentBusBranching",25),jc=new Ut(Er,"AlignmentTopLeftBus",26),dc=new Ut(Er,"AlignmentBottomRightBus",27),$m=new Ut(Er,"CompactionNone",30),Zp=new Ut(Er,"CompactionBlock",31),Xm=new Ut(Er,"StyleLayered",40),Vy=new Ut(Er,"StyleLastParents",41),Ky=new Ut(Er,"StyleAlternating",42),Yy=new Ut(Er,"StyleRootOnly",43),Zm=new Ut(Er,"ArrangementVertical",50),$y=new Ut(Er,"ArrangementHorizontal",51),Jm=new Ut(Er,"ArrangementFixedRoots",52),Xy=new Ut(Er,"LayerIndividual",60),Zy=new Ut(Er,"LayerSiblings",61),Qm=new Ut(Er,"LayerUniform",62);Er.className="TreeLayout",Er.PathDefault=Ym,Er.PathDestination=Qu,Er.PathSource=_f,Er.SortingForwards=Ed,Er.SortingReverse=Yp,Er.SortingAscending=$p,Er.SortingDescending=Xp,Er.AlignmentCenterSubtrees=Cd,Er.AlignmentCenterChildren=Af,Er.AlignmentStart=qu,Er.AlignmentEnd=ec,Er.AlignmentBus=Bc,Er.AlignmentBusBranching=tc,Er.AlignmentTopLeftBus=jc,Er.AlignmentBottomRightBus=dc,Er.CompactionNone=$m,Er.CompactionBlock=Zp,Er.StyleLayered=Xm,Er.StyleLastParents=Vy,Er.StyleAlternating=Ky,Er.StyleRootOnly=Yy,Er.ArrangementVertical=Zm,Er.ArrangementHorizontal=$y,Er.ArrangementFixedRoots=Jm,Er.LayerIndividual=Xy,Er.LayerSiblings=Zy,Er.LayerUniform=Qm;function kf(e){Vi.call(this,e)}Kn(kf,Vi),kf.prototype.createVertex=function(){return new Wl(this)},kf.prototype.createEdge=function(){return new Td(this)},kf.className="TreeNetwork";function Wl(e){Xo.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 Pe(0,0),this.Da=new un(0,0),this.la=new Pe(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Ed,this.hd=my,this.Kb=0,this.Jb=Af,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Zp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Bo,this.wr=!0,this.Dp=Bo}Kn(Wl,Xo),Wl.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)},Dn.Object.defineProperties(Wl.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)}}}),Wl.className="TreeVertex";function Td(e){el.call(this,e),this.$t=new Pe(0,0)}Kn(Td,el),Td.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 Qu:n=this.fromVertex,r=this.toVertex;break;case _f:n=this.toVertex,r=this.fromVertex;break;default:nt("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=cu(n),a=t.computeLayerSpacing(n),d=n.rowSpacing;e.vg();var E=e.curve===ml,O=e.isOrthogonal,D;if(e.uh(),O||E){for(D=2;4<e.pointsCount;)e.pv(2);var X=e.i(1),se=e.i(2)}else{for(D=1;3<e.pointsCount;)e.pv(1);X=e.i(0),se=e.i(e.pointsCount-1)}var ge=e.i(e.pointsCount-1);o===0?(n.alignment===ec?(o=r.bottom+i.y,i.y===0&&X.y>ge.y+n.rowIndent&&(o=Math.min(o,Math.max(X.y,o-t.computeNodeIndent(n))))):n.alignment===qu?(o=r.top+i.y,i.y===0&&X.y<ge.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,E?(e.m(D,X.x,o),D++,e.m(D,r.right+a,o),D++,e.m(D,r.right+a+(i.x-d)/3,o),D++,e.m(D,r.right+a+2*(i.x-d)/3,o),D++,e.m(D,r.right+a+(i.x-d),o),D++,e.m(D,se.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?d/2:d),o),D++,O&&e.m(D,e.i(D-1).x,se.y))):o===90?(n.alignment===ec?(o=r.right+i.x,i.x===0&&X.x>ge.x+n.rowIndent&&(o=Math.min(o,Math.max(X.x,o-t.computeNodeIndent(n))))):n.alignment===qu?(o=r.left+i.x,i.x===0&&X.x<ge.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,E?(e.m(D,o,X.y),D++,e.m(D,o,r.bottom+a),D++,e.m(D,o,r.bottom+a+(i.y-d)/3),D++,e.m(D,o,r.bottom+a+2*(i.y-d)/3),D++,e.m(D,o,r.bottom+a+(i.y-d)),D++,e.m(D,o,se.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?d/2:d)),D++,O&&e.m(D,se.x,e.i(D-1).y))):o===180?(n.alignment===ec?(o=r.bottom+i.y,i.y===0&&X.y>ge.y+n.rowIndent&&(o=Math.min(o,Math.max(X.y,o-t.computeNodeIndent(n))))):n.alignment===qu?(o=r.top+i.y,i.y===0&&X.y<ge.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,E?(e.m(D,X.x,o),D++,e.m(D,r.left-a,o),D++,e.m(D,r.left-a+(i.x+d)/3,o),D++,e.m(D,r.left-a+2*(i.x+d)/3,o),D++,e.m(D,r.left-a+(i.x+d),o),D++,e.m(D,se.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?d/2:d),o),D++,O&&e.m(D,e.i(D-1).x,se.y))):o===270?(n.alignment===ec?(o=r.right+i.x,i.x===0&&X.x>ge.x+n.rowIndent&&(o=Math.min(o,Math.max(X.x,o-t.computeNodeIndent(n))))):n.alignment===qu?(o=r.left+i.x,i.x===0&&X.x<ge.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,E?(e.m(D,o,X.y),D++,e.m(D,o,r.top-a),D++,e.m(D,o,r.top-a+(i.y+d)/3),D++,e.m(D,o,r.top-a+2*(i.y+d)/3),D++,e.m(D,o,r.top-a+(i.y+d)),D++,e.m(D,o,se.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?d/2:d)),D++,O&&e.m(D,se.x,e.i(D-1).y))):nt("Invalid angle "+o),e.zf()}else i=r,e=this.link,r=this.network.layout,t=cu(n),t!==cu(i)&&(a=r.computeLayerSpacing(n),d=n.bounds,n=i.bounds,t===0&&n.left-d.right<a+1||t===90&&n.top-d.bottom<a+1||t===180&&d.left-n.right<a+1||t===270&&d.top-n.bottom<a+1||(e.vg(),n=e.curve===ml,i=e.isOrthogonal,r=mh(this.fromVertex.alignment),e.uh(),t===0?(t=d.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=d.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=d.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=d.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()))}}},Dn.Object.defineProperties(Td.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)}}}),Td.className="TreeEdge",Bi.prototype.initializeStandardTools=function(){this.gb("Action",new Lt,this.mouseDownTools),this.gb("Relinking",new la,this.mouseDownTools),this.gb("LinkReshaping",new Ee,this.mouseDownTools),this.gb("Rotating",new Ht,this.mouseDownTools),this.gb("Resizing",new yt,this.mouseDownTools),this.gb("Linking",new js,this.mouseMoveTools),this.gb("Dragging",new Hi,this.mouseMoveTools),this.gb("DragSelecting",new nn,this.mouseMoveTools),this.gb("Panning",new Dt,this.mouseMoveTools),this.gb("ContextMenu",new Ni,this.mouseUpTools),this.gb("TextEditing",new Br,this.mouseUpTools),this.gb("ClickCreating",new sn,this.mouseUpTools),this.gb("ClickSelecting",new Kt,this.mouseUpTools)},Lu("Horizontal",new Ag),Lu("Spot",new Ng),Lu("Table",new Ig),Lu("Viewbox",new Mg),Lu("TableRow",new Og),Lu("TableColumn",new Lg),Lu("Graduated",new fp),Lu("Grid",new hp),$f.add("GraphLinksModel",cs),$f.add("TreeModel",Il);var qm=mn.go,Jy={get licenseKey(){return xt.licenseKey},set licenseKey(e){xt.licenseKey=e},get version(){return xt.version},Group:tr,EnumValue:Ut,List:Gt,Set:Wt,Map:wt,Point:Pe,Size:un,Rect:Ct,Margin:sr,Spot:Cn,Geometry:Qt,PathFigure:To,PathSegment:Fr,InputEvent:rs,DiagramEvent:xl,ChangedEvent:eo,Model:In,GraphLinksModel:Lr,TreeModel:ya,Binding:Do,Transaction:_o,UndoManager:Ai,CommandHandler:Ve,Tool:Ar,DraggingTool:Hi,DraggingInfo:ac,DraggingOptions:C,LinkingBaseTool:ho,LinkingTool:js,RelinkingTool:la,LinkReshapingTool:Ee,ResizingTool:yt,RotatingTool:Ht,ClickSelectingTool:Kt,ActionTool:Lt,ClickCreatingTool:sn,HTMLInfo:jr,ContextMenuTool:Ni,DragSelectingTool:nn,PanningTool:Dt,TextEditingTool:Br,ToolManager:Bi,Animation:bn,AnimationManager:Ds,AnimationTrigger:Aa,Layer:ys,Diagram:xt,Palette:K,Overview:q,Brush:fi,GraphObject:ht,Panel:Zt,RowColumnDefinition:Wo,Shape:ur,TextBlock:Wi,Picture:Oa,Part:Pn,Adornment:Zr,Node:fn,Link:en,Placeholder:pa,Layout:lo,LayoutNetwork:Vi,LayoutVertex:Xo,LayoutEdge:el,GridLayout:Cs,PanelLayout:$o,CircularLayout:fo,CircularNetwork:Sd,CircularVertex:Up,CircularEdge:Lm,ForceDirectedLayout:Fs,ForceDirectedNetwork:Cf,ForceDirectedVertex:Hp,ForceDirectedEdge:zp,LayeredDigraphLayout:gi,LayeredDigraphNetwork:wd,LayeredDigraphVertex:Ll,LayeredDigraphEdge:Vp,TreeLayout:Er,TreeNetwork:kf,TreeVertex:Wl,TreeEdge:Td};typeof qm=="object"&&qm.version&&yn("WARNING: a `go` object on the root object is already defined. "+("Debug"in qm?"debug ":"")+"version: "+qm.version+", replaced with version: "+Jy.version),xt.prototype.go=Jy,mn.go=Jy,typeof Oe.exports=="object"&&(Oe.exports=typeof S.g!="undefined"?S.g.go:self.go)}();var B=typeof S.g!="undefined"?S.g.go:self.go;const Y=typeof S.g!="undefined"?S.g.go:self.go,s=Y.Group,w=Y.EnumValue,_=Y.List,u=Y.Set,p=Y.Map,y=Y.Point,m=Y.Size,b=Y.Rect,v=Y.Margin,c=Y.Spot,h=Y.Geometry,g=Y.PathFigure,x=Y.PathSegment,T=Y.InputEvent,I=Y.DiagramEvent,R=Y.ChangedEvent,N=Y.Model,k=Y.GraphLinksModel,L=Y.TreeModel,H=Y.Binding,M=Y.Transaction,F=Y.UndoManager,P=Y.CommandHandler,U=Y.Tool,G=Y.DraggingTool,Q=Y.DraggingInfo,ee=Y.LinkingBaseTool,ae=Y.LinkingTool,oe=Y.RelinkingTool,he=Y.LinkReshapingTool,le=Y.ResizingTool,be=Y.RotatingTool,pe=Y.ClickSelectingTool,_e=Y.ActionTool,ne=Y.ClickCreatingTool,ue=Y.HTMLInfo,ce=Y.ContextMenuTool,Re=Y.DragSelectingTool,ke=Y.PanningTool,Ne=Y.TextEditingTool,De=Y.ToolManager,Me=Y.Animation,We=Y.AnimationManager,je=Y.AnimationTrigger,et=Y.Layer,it=Y.Diagram,ze=Y.Palette,xe=Y.Overview,fe=Y.Brush,W=Y.GraphObject,Z=Y.Panel,me=Y.RowColumnDefinition,Ce=Y.Shape,re=Y.TextBlock,ie=Y.TextBlockMetrics,de=Y.Picture,Ae=Y.Part,Be=Y.Adornment,He=Y.Node,st=Y.Link,Qe=Y.Placeholder,pt=Y.Layout,It=Y.LayoutNetwork,gt=Y.LayoutVertex,rt=Y.LayoutEdge,ut=Y.GridLayout,At=Y.PanelLayout,bt=Y.CircularLayout,Tt=Y.CircularNetwork,Mt=Y.CircularVertex,Ot=Y.CircularEdge,$e=Y.ForceDirectedLayout,$t=Y.ForceDirectedNetwork,gn=Y.ForceDirectedVertex,Et=Y.ForceDirectedEdge,Mn=Y.LayeredDigraphLayout,qn=Y.LayeredDigraphNetwork,Zn=Y.LayeredDigraphVertex,Bt=Y.LayeredDigraphEdge,yr=Y.TreeLayout,vr=Y.TreeNetwork,Un=Y.TreeVertex,Wn=Y.TreeEdge,wr=Y.version},46963:function(Oe){"use strict";Oe.exports=S;var J=/[#.]/g;function S(B,Y){for(var s=B||"",w=Y||"div",_={},u=0,p,y,m;u<s.length;)J.lastIndex=u,m=J.exec(s),p=s.slice(u,m?m.index:s.length),p&&(y?y==="#"?_.id=p:_.className?_.className.push(p):_.className=[p]:w=p,u+=p.length),m&&(y=m[0],u++);return{type:"element",tagName:w,properties:_,children:[]}}},5641:function(Oe,J,S){"use strict";var B=S(88914),Y=S(47178),s=S(46963),w=S(92848).Q,_=S(58951).Q;Oe.exports=p;var u={}.hasOwnProperty;function p(x,T,I){var R=I?g(I):null;return N;function N(L,H){var M=s(L,T),F=Array.prototype.slice.call(arguments,2),P=M.tagName.toLowerCase(),U;if(M.tagName=R&&u.call(R,P)?R[P]:P,H&&y(H,M)&&(F.unshift(H),H=null),H)for(U in H)k(M.properties,U,H[U]);return b(M.children,F),M.tagName==="template"&&(M.content={type:"root",children:M.children},M.children=[]),M}function k(L,H,M){var F,P,U;M==null||M!==M||(F=B(x,H),P=F.property,U=M,typeof U=="string"&&(F.spaceSeparated?U=w(U):F.commaSeparated?U=_(U):F.commaOrSpaceSeparated&&(U=w(_(U).join(" ")))),P==="style"&&typeof M!="string"&&(U=h(U)),P==="className"&&L.className&&(U=L.className.concat(U)),L[P]=v(F,P,U))}}function y(x,T){return typeof x=="string"||"length"in x||m(T.tagName,x)}function m(x,T){var I=T.type;return x==="input"||!I||typeof I!="string"?!1:typeof T.children=="object"&&"length"in T.children?!0:(I=I.toLowerCase(),x==="button"?I!=="menu"&&I!=="submit"&&I!=="reset"&&I!=="button":"value"in T)}function b(x,T){var I,R;if(typeof T=="string"||typeof T=="number"){x.push({type:"text",value:String(T)});return}if(typeof T=="object"&&"length"in T){for(I=-1,R=T.length;++I<R;)b(x,T[I]);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,I){var R,N,k;if(typeof I!="object"||!("length"in I))return c(x,T,I);for(N=I.length,R=-1,k=[];++R<N;)k[R]=c(x,T,I[R]);return k}function c(x,T,I){var R=I;return x.number||x.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(x.boolean||x.overloadedBoolean)&&typeof R=="string"&&(R===""||Y(I)===Y(T))&&(R=!0),R}function h(x){var T=[],I;for(I in x)T.push([I,x[I]].join(": "));return T.join("; ")}function g(x){for(var T=x.length,I=-1,R={},N;++I<T;)N=x[I],R[N.toLowerCase()]=N;return R}},82073:function(Oe,J,S){"use strict";var B=S(18795),Y=S(5641),s=Y(B,"div");s.displayName="html",Oe.exports=s},43621:function(Oe,J,S){"use strict";Oe.exports=S(82073)},93193:function(Oe){var J=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,S=/\n/g,B=/^\s*/,Y=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,w=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_=/^[;\s]*/,u=/^\s+|\s+$/g,p=`
`,y="/",m="*",b="",v="comment",c="declaration";Oe.exports=function(g,x){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];x=x||{};var T=1,I=1;function R(ee){var ae=ee.match(S);ae&&(T+=ae.length);var oe=ee.lastIndexOf(p);I=~oe?ee.length-oe:I+ee.length}function N(){var ee={line:T,column:I};return function(ae){return ae.position=new k(ee),F(),ae}}function k(ee){this.start=ee,this.end={line:T,column:I},this.source=x.source}k.prototype.content=g;var L=[];function H(ee){var ae=new Error(x.source+":"+T+":"+I+": "+ee);if(ae.reason=ee,ae.filename=x.source,ae.line=T,ae.column=I,ae.source=g,x.silent)L.push(ae);else throw ae}function M(ee){var ae=ee.exec(g);if(ae){var oe=ae[0];return R(oe),g=g.slice(oe.length),ae}}function F(){M(B)}function P(ee){var ae;for(ee=ee||[];ae=U();)ae!==!1&&ee.push(ae);return ee}function U(){var ee=N();if(!(y!=g.charAt(0)||m!=g.charAt(1))){for(var ae=2;b!=g.charAt(ae)&&(m!=g.charAt(ae)||y!=g.charAt(ae+1));)++ae;if(ae+=2,b===g.charAt(ae-1))return H("End of comment missing");var oe=g.slice(2,ae-2);return I+=2,R(oe),g=g.slice(ae),I+=2,ee({type:v,comment:oe})}}function G(){var ee=N(),ae=M(Y);if(ae){if(U(),!M(s))return H("property missing ':'");var oe=M(w),he=ee({type:c,property:h(ae[0].replace(J,b)),value:oe?h(oe[0].replace(J,b)):b});return M(_),he}}function Q(){var ee=[];P(ee);for(var ae;ae=G();)ae!==!1&&(ee.push(ae),P(ee));return ee}return F(),Q()};function h(g){return g?g.replace(u,b):b}},91241:function(Oe){"use strict";Oe.exports=J;function J(S){var B=typeof S=="string"?S.charCodeAt(0):S;return B>=97&&B<=122||B>=65&&B<=90}},21127:function(Oe,J,S){"use strict";var B=S(91241),Y=S(22347);Oe.exports=s;function s(w){return B(w)||Y(w)}},22347:function(Oe){"use strict";Oe.exports=J;function J(S){var B=typeof S=="string"?S.charCodeAt(0):S;return B>=48&&B<=57}},65207:function(Oe){"use strict";Oe.exports=J;function J(S){var B=typeof S=="string"?S.charCodeAt(0):S;return B>=97&&B<=102||B>=65&&B<=70||B>=48&&B<=57}},24334:function(Oe,J,S){var B,Y;(function(s,w){Oe.exports=w(s)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof S.g!="undefined"?S.g:this,function(s){"use strict";s=s||{};var w=s.Base64,_="2.6.4",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=function(oe){for(var he={},le=0,be=oe.length;le<be;le++)he[oe.charAt(le)]=le;return he}(u),y=String.fromCharCode,m=function(oe){if(oe.length<2){var he=oe.charCodeAt(0);return he<128?oe:he<2048?y(192|he>>>6)+y(128|he&63):y(224|he>>>12&15)+y(128|he>>>6&63)+y(128|he&63)}else{var he=65536+(oe.charCodeAt(0)-55296)*1024+(oe.charCodeAt(1)-56320);return y(240|he>>>18&7)+y(128|he>>>12&63)+y(128|he>>>6&63)+y(128|he&63)}},b=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(oe){return oe.replace(b,m)},c=function(oe){var he=[0,2,1][oe.length%3],le=oe.charCodeAt(0)<<16|(oe.length>1?oe.charCodeAt(1):0)<<8|(oe.length>2?oe.charCodeAt(2):0),be=[u.charAt(le>>>18),u.charAt(le>>>12&63),he>=2?"=":u.charAt(le>>>6&63),he>=1?"=":u.charAt(le&63)];return be.join("")},h=s.btoa&&typeof s.btoa=="function"?function(oe){return s.btoa(oe)}:function(oe){if(oe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return oe.replace(/[\s\S]{1,3}/g,c)},g=function(oe){return h(v(String(oe)))},x=function(oe){return oe.replace(/[+\/]/g,function(he){return he=="+"?"-":"_"}).replace(/=/g,"")},T=function(oe,he){return he?x(g(oe)):g(oe)},I=function(oe){return T(oe,!0)},R;s.Uint8Array&&(R=function(oe,he){for(var le="",be=0,pe=oe.length;be<pe;be+=3){var _e=oe[be],ne=oe[be+1],ue=oe[be+2],ce=_e<<16|ne<<8|ue;le+=u.charAt(ce>>>18)+u.charAt(ce>>>12&63)+(typeof ne!="undefined"?u.charAt(ce>>>6&63):"=")+(typeof ue!="undefined"?u.charAt(ce&63):"=")}return he?x(le):le});var N=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k=function(oe){switch(oe.length){case 4:var he=(7&oe.charCodeAt(0))<<18|(63&oe.charCodeAt(1))<<12|(63&oe.charCodeAt(2))<<6|63&oe.charCodeAt(3),le=he-65536;return y((le>>>10)+55296)+y((le&1023)+56320);case 3:return y((15&oe.charCodeAt(0))<<12|(63&oe.charCodeAt(1))<<6|63&oe.charCodeAt(2));default:return y((31&oe.charCodeAt(0))<<6|63&oe.charCodeAt(1))}},L=function(oe){return oe.replace(N,k)},H=function(oe){var he=oe.length,le=he%4,be=(he>0?p[oe.charAt(0)]<<18:0)|(he>1?p[oe.charAt(1)]<<12:0)|(he>2?p[oe.charAt(2)]<<6:0)|(he>3?p[oe.charAt(3)]:0),pe=[y(be>>>16),y(be>>>8&255),y(be&255)];return pe.length-=[0,0,2,1][le],pe.join("")},M=s.atob&&typeof s.atob=="function"?function(oe){return s.atob(oe)}:function(oe){return oe.replace(/\S{1,4}/g,H)},F=function(oe){return M(String(oe).replace(/[^A-Za-z0-9\+\/]/g,""))},P=function(oe){return L(M(oe))},U=function(oe){return String(oe).replace(/[-_]/g,function(he){return he=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},G=function(oe){return P(U(oe))},Q;s.Uint8Array&&(Q=function(oe){return Uint8Array.from(F(U(oe)),function(he){return he.charCodeAt(0)})});var ee=function(){var oe=s.Base64;return s.Base64=w,oe};if(s.Base64={VERSION:_,atob:F,btoa:h,fromBase64:G,toBase64:T,utob:v,encode:T,encodeURI:I,btou:L,decode:G,noConflict:ee,fromUint8Array:R,toUint8Array:Q},typeof Object.defineProperty=="function"){var ae=function(oe){return{value:oe,enumerable:!1,writable:!0,configurable:!0}};s.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ae(function(){return G(this)})),Object.defineProperty(String.prototype,"toBase64",ae(function(oe){return T(this,oe)})),Object.defineProperty(String.prototype,"toBase64URI",ae(function(){return T(this,!0)}))}}return s.Meteor&&(Base64=s.Base64),Oe.exports?Oe.exports.Base64=s.Base64:(B=[],Y=function(){return s.Base64}.apply(J,B),Y!==void 0&&(Oe.exports=Y)),{Base64:s.Base64}})},2859:function(Oe,J,S){"use strict";S.d(J,{hP:function(){return xe}});var B=function(fe,W){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,me){Z.__proto__=me}||function(Z,me){for(var Ce in me)Object.prototype.hasOwnProperty.call(me,Ce)&&(Z[Ce]=me[Ce])})(fe,W)};function Y(fe,W){function Z(){this.constructor=fe}B(fe,W),fe.prototype=W===null?Object.create(W):(Z.prototype=W.prototype,new Z)}function s(fe,W,Z,me){return new(Z||(Z=Promise))(function(Ce,re){function ie(Be){try{Ae(me.next(Be))}catch(He){re(He)}}function de(Be){try{Ae(me.throw(Be))}catch(He){re(He)}}function Ae(Be){var He;Be.done?Ce(Be.value):(He=Be.value,He instanceof Z?He:new Z(function(st){st(He)})).then(ie,de)}Ae((me=me.apply(fe,W||[])).next())})}function w(fe,W){var Z,me,Ce,re,ie={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return re={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function de(Ae){return function(Be){return function(He){if(Z)throw new TypeError("Generator is already executing.");for(;ie;)try{if(Z=1,me&&(Ce=2&He[0]?me.return:He[0]?me.throw||((Ce=me.return)&&Ce.call(me),0):me.next)&&!(Ce=Ce.call(me,He[1])).done)return Ce;switch(me=0,Ce&&(He=[2&He[0],Ce.value]),He[0]){case 0:case 1:Ce=He;break;case 4:return ie.label++,{value:He[1],done:!1};case 5:ie.label++,me=He[1],He=[0];continue;case 7:He=ie.ops.pop(),ie.trys.pop();continue;default:if(Ce=ie.trys,!((Ce=Ce.length>0&&Ce[Ce.length-1])||He[0]!==6&&He[0]!==2)){ie=0;continue}if(He[0]===3&&(!Ce||He[1]>Ce[0]&&He[1]<Ce[3])){ie.label=He[1];break}if(He[0]===6&&ie.label<Ce[1]){ie.label=Ce[1],Ce=He;break}if(Ce&&ie.label<Ce[2]){ie.label=Ce[2],ie.ops.push(He);break}Ce[2]&&ie.ops.pop(),ie.trys.pop();continue}He=W.call(fe,ie)}catch(st){He=[6,st],me=0}finally{Z=Ce=0}if(5&He[0])throw He[1];return{value:He[0]?He[1]:void 0,done:!0}}([Ae,Be])}}}function _(){for(var fe=0,W=0,Z=arguments.length;W<Z;W++)fe+=arguments[W].length;var me=Array(fe),Ce=0;for(W=0;W<Z;W++)for(var re=arguments[W],ie=0,de=re.length;ie<de;ie++,Ce++)me[Ce]=re[ie];return me}var u=function(){function fe(){}return fe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},fe.setAttributes=function(W,Z){for(var me=0,Ce=Z;me<Ce.length;me++){var re=Ce[me],ie=re[0],de=re[1];W.setAttribute(ie,de)}},fe.createRect=function(W,Z,me){var Ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ce.setAttribute("width",W.toString()),Ce.setAttribute("height",Z.toString()),me&&fe.setAttributes(Ce,me),Ce},fe.createLine=function(W,Z,me,Ce,re){var ie=document.createElementNS("http://www.w3.org/2000/svg","line");return ie.setAttribute("x1",W.toString()),ie.setAttribute("y1",Z.toString()),ie.setAttribute("x2",me.toString()),ie.setAttribute("y2",Ce.toString()),re&&fe.setAttributes(ie,re),ie},fe.createPolygon=function(W,Z){var me=document.createElementNS("http://www.w3.org/2000/svg","polygon");return me.setAttribute("points",W),Z&&fe.setAttributes(me,Z),me},fe.createCircle=function(W,Z){var me=document.createElementNS("http://www.w3.org/2000/svg","circle");return me.setAttribute("cx",(W/2).toString()),me.setAttribute("cy",(W/2).toString()),me.setAttribute("r",W.toString()),Z&&fe.setAttributes(me,Z),me},fe.createEllipse=function(W,Z,me){var Ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ce.setAttribute("cx",(W/2).toString()),Ce.setAttribute("cy",(Z/2).toString()),Ce.setAttribute("rx",(W/2).toString()),Ce.setAttribute("ry",(Z/2).toString()),me&&fe.setAttributes(Ce,me),Ce},fe.createGroup=function(W){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return W&&fe.setAttributes(Z,W),Z},fe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},fe.createMarker=function(W,Z,me,Ce,re,ie,de){var Ae=document.createElementNS("http://www.w3.org/2000/svg","marker");return fe.setAttributes(Ae,[["id",W],["orient",Z],["markerWidth",me.toString()],["markerHeight",Ce.toString()],["refX",re.toString()],["refY",ie.toString()]]),Ae.appendChild(de),Ae},fe.createText=function(W){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),W&&fe.setAttributes(Z,W),Z},fe.createTSpan=function(W,Z){var me=document.createElementNS("http://www.w3.org/2000/svg","tspan");return me.textContent=W,Z&&fe.setAttributes(me,Z),me},fe.createImage=function(W){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return W&&fe.setAttributes(Z,W),Z},fe.createPoint=function(W,Z){var me=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return me.x=W,me.y=Z,me},fe.createPath=function(W,Z){var me=document.createElementNS("http://www.w3.org/2000/svg","path");return me.setAttribute("d",W),Z&&fe.setAttributes(me,Z),me},fe}(),p=function(){function fe(){}return fe.addKey=function(W){fe.key=W},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}(),y=function(){function fe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return fe.prototype.rasterize=function(W,Z,me){var Ce=this;return new Promise(function(re){var ie=me!==void 0?me:document.createElement("canvas");W===null&&(Ce.markersOnly=!0,Ce.naturalSize=!1);var de=document.createElementNS("http://www.w3.org/2000/svg","svg");de.setAttribute("xmlns","http://www.w3.org/2000/svg"),de.setAttribute("width",Z.width.baseVal.valueAsString),de.setAttribute("height",Z.height.baseVal.valueAsString),de.setAttribute("viewBox","0 0 "+Z.viewBox.baseVal.width.toString()+" "+Z.viewBox.baseVal.height.toString()),de.innerHTML=Z.innerHTML,Ce.naturalSize===!0?(de.width.baseVal.value=W.naturalWidth,de.height.baseVal.value=W.naturalHeight):Ce.width!==void 0&&Ce.height!==void 0&&(de.width.baseVal.value=Ce.width,de.height.baseVal.value=Ce.height),ie.width=de.width.baseVal.value,ie.height=de.height.baseVal.value;var Ae=de.outerHTML,Be=ie.getContext("2d");Ce.markersOnly!==!0&&Be.drawImage(W,0,0,ie.width,ie.height);var He=window.URL,st=new Image(ie.width,ie.height);st.setAttribute("crossOrigin","anonymous");var Qe=new Blob([Ae],{type:"image/svg+xml"}),pt=He.createObjectURL(Qe);st.onload=function(){Be.drawImage(st,0,0),He.revokeObjectURL(pt);var It=ie.toDataURL(Ce.imageType,Ce.imageQuality);re(It)},st.src=pt})},fe}(),m=function(){},b=function(){function fe(W){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+W+"_"}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(W){return this.styleSheet===void 0&&this.addStyleSheet(),W.name=""+this.classNamePrefix+W.localName,this.classes.push(W),this.styleSheet.sheet.insertRule("."+W.name+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length),W},fe.prototype.addRule=function(W){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(W),this.styleSheet.sheet.insertRule(W.selector+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length)},fe.prototype.addStyleSheet=function(){var W;this.styleSheet=document.createElement("style"),((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).appendChild(this.styleSheet),this.addRule(new 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 W;this.styleSheet&&(((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},fe}(),v=function(fe,W){this.selector=fe,this.style=W},c=function(fe,W){this.localName=fe,this.style=W},h=function(){function fe(W,Z,me,Ce,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=W,this.displayMode=Z,this.markerItems=me,this.uiStyleSettings=Ce,this.styles=re,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(W){var Z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=W,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var me=document.createElement("div");me.className=this.toolbarBlockStyleClass.name,me.style.whiteSpace="nowrap",this.uiContainer.appendChild(me),this.addActionButton(me,'<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(me,'<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(me,'<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(me,'<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(me,'<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(me,'<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(me,'<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(me,'<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(re){var ie=document.createElement("div");ie.className=""+Z.toolbarButtonStyleClass.name,ie.setAttribute("data-type-name",re.typeName),ie.innerHTML=re.icon,ie.addEventListener("click",function(){Z.markerToolbarButtonClicked(ie,re)}),Z.buttons.push(ie),Z.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 Ce=document.createElement("div");Ce.className=this.toolbarBlockStyleClass.name,Ce.style.whiteSpace="nowrap",Ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ce),this.addActionButton(Ce,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Ce,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},fe.prototype.addButtonClickListener=function(W){this.buttonClickListeners.push(W)},fe.prototype.removeButtonClickListener=function(W){this.buttonClickListeners.indexOf(W)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(W),1)},fe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},fe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var W=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Z=0;Z<this.markerButtons.length;Z++)Z<W||Z===W&&this.markerButtons.length-1===W?this.markerButtonBlock.appendChild(this.markerButtons[Z]):(Z===W&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Z]))}},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 W=this;this.buttons.forEach(function(Z){Z.className=Z.className.replace(W.uiStyleSettings.toolbarButtonStyleColorsClassName?W.uiStyleSettings.toolbarButtonStyleColorsClassName:W.toolbarButtonStyleColorsClass.name,"").trim(),Z.className=Z.className.replace(W.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?W.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:W.toolbarActiveButtonStyleColorsClass.name,"").trim(),Z.className+=" "+(W.uiStyleSettings.toolbarButtonStyleColorsClassName?W.uiStyleSettings.toolbarButtonStyleColorsClassName:W.toolbarButtonStyleColorsClass.name)})},fe.prototype.addActionButton=function(W,Z,me){var Ce=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=Z,re.setAttribute("data-action",me),re.addEventListener("click",function(){Ce.actionToolbarButtonClicked(re,me)}),me){case"select":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":re.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":re.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":re.style.fill=this.uiStyleSettings.closeButtonColor}W.appendChild(re),this.buttons.push(re)},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 W=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new c("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*W)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*W)+`px;
padding: `+W+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new 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(W,Z){this.setActiveButton(W),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(me){return me("marker",Z)}),this.markerButtonOverflowBlock.style.display="none"},fe.prototype.actionToolbarButtonClicked=function(W,Z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(me){return me("action",Z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},fe.prototype.setActiveButton=function(W){this.resetButtonStyles(),W.className=W.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),W.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},fe.prototype.setActiveMarkerButton=function(W){var Z=this.markerButtons.find(function(me){return me.getAttribute("data-type-name")===W});Z&&this.setActiveButton(Z)},fe.prototype.setCurrentMarker=function(W){var Z=this;this.currentMarker=W,this.buttons.filter(function(me){return/delete|notes/.test(me.getAttribute("data-action"))}).forEach(function(me){Z.currentMarker===void 0?(me.style.fillOpacity="0.4",me.style.pointerEvents="none"):(me.style.fillOpacity="1",me.style.pointerEvents="all")})},fe}(),g=function(){function fe(W,Z,me,Ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=W,this.displayMode=Z,this.uiStyleSettings=me,this.styles=Ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return fe.prototype.addStyles=function(){var W;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 Z=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: `+((W=this.uiStyleSettings.toolboxBackgroundColor)!==null&&W!==void 0?W:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new c("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px;
padding: `+Z+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new 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(W){var Z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=W,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},fe.prototype.setPanelButtons=function(W){var Z,me,Ce=this;this.panels=W,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((me=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&me!==void 0?me:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var ie;re.uiStyleSettings=Ce.uiStyleSettings;var de=document.createElement("div");de.className=Ce.toolboxButtonStyleClass.name+" "+((ie=Ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ie!==void 0?ie:Ce.toolboxButtonStyleColorsClass.name),de.innerHTML=re.icon,de.title=re.title,de.addEventListener("click",function(){Ce.panelButtonClick(re)}),Ce.panelButtons.push(de),Ce.buttonRow.appendChild(de)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},fe.prototype.panelButtonClick=function(W){var Z=this,me=-1;if(W!==this.activePanel){me=this.panels.indexOf(W),this.panelRow.innerHTML="";var Ce=W.getUi();Ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ce),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=W}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Z.displayMode==="inline"?Z.panelRow.style.display="none":Z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,ie){var de,Ae;re.className=Z.toolboxButtonStyleClass.name+" "+(ie===me?""+((de=Z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&de!==void 0?de:Z.toolboxActiveButtonStyleColorsClass.name):""+((Ae=Z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ae!==void 0?Ae:Z.toolboxButtonStyleColorsClass.name))})},fe}(),x=function(fe,W){this.title=fe,this.icon=W},T=function(fe){function W(Z,me,Ce,re){var ie=fe.call(this,Z,re||'<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=me,ie.currentColor=Ce,ie.setCurrentColor=ie.setCurrentColor.bind(ie),ie.getColorBox=ie.getColorBox.bind(ie),ie}return Y(W,fe),W.prototype.getUi=function(){var Z=this,me=document.createElement("div");return me.style.overflow="hidden",me.style.whiteSpace="nowrap",this.colors.forEach(function(Ce){var re=Z.getColorBox(Ce);me.appendChild(re),Z.colorBoxes.push(re)}),me},W.prototype.getColorBox=function(Z){var me=this,Ce=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-Ce,ie=document.createElement("div");ie.style.display="inline-block",ie.style.boxSizing="content-box",ie.style.width=re-2+"px",ie.style.height=re-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=(re+2)/2+"px",ie.style.borderColor=Z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){me.setCurrentColor(Z,ie)});var de=document.createElement("div");return de.style.display="inline-block",de.style.width=re-2+"px",de.style.height=re-2+"px",de.style.backgroundColor=Z,de.style.borderRadius=re/2+"px",Z==="transparent"&&(de.style.fill=this.uiStyleSettings.toolboxAccentColor,de.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(de),ie},W.prototype.setCurrentColor=function(Z,me){var Ce=this;this.currentColor=Z,this.colorBoxes.forEach(function(re){re.style.borderColor=re===me?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Z)},W}(x),I=function(){function fe(W,Z,me){this._state="new",this._isSelected=!1,this._container=W,this._overlayContainer=Z,this.globalSettings=me,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(W){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(W,Z){},fe.prototype.dblClick=function(W,Z){},fe.prototype.manipulate=function(W){},fe.prototype.pointerUp=function(W){this.stateChanged()},fe.prototype.dispose=function(){},fe.prototype.addMarkerVisualToContainer=function(W){this.container.childNodes.length>0?this.container.insertBefore(W,this.container.childNodes[0]):this.container.appendChild(W)},fe.prototype.getState=function(){return{typeName:fe.typeName,state:this.state,notes:this.notes}},fe.prototype.restoreState=function(W){this._state=W.state,this.notes=W.notes},fe.prototype.scale=function(W,Z){},fe.prototype.colorChanged=function(W){this.onColorChanged&&this.onColorChanged(W),this.stateChanged()},fe.prototype.fillColorChanged=function(W){this.onFillColorChanged&&this.onFillColorChanged(W),this.stateChanged()},fe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var W=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),W.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(W)&&this.onStateChanged(this)}},fe.typeName="MarkerBase",fe}(),R=function(){function fe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return fe.prototype.findGripByVisual=function(W){return this.topLeft.ownsTarget(W)?this.topLeft:this.topCenter.ownsTarget(W)?this.topCenter:this.topRight.ownsTarget(W)?this.topRight:this.centerLeft.ownsTarget(W)?this.centerLeft:this.centerRight.ownsTarget(W)?this.centerRight:this.bottomLeft.ownsTarget(W)?this.bottomLeft:this.bottomCenter.ownsTarget(W)?this.bottomCenter:this.bottomRight.ownsTarget(W)?this.bottomRight:void 0},fe}(),N=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(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},fe}(),k=function(){function fe(){}return fe.toITransformMatrix=function(W){return{a:W.a,b:W.b,c:W.c,d:W.d,e:W.e,f:W.f}},fe.toSVGMatrix=function(W,Z){return W.a=Z.a,W.b=Z.b,W.c=Z.c,W.d=Z.d,W.e=Z.e,W.f=Z.f,W},fe}(),L=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(u.createTransform()),re.setupControlBox(),re}return Y(W,fe),Object.defineProperty(W.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"visual",{get:function(){return this._visual},set:function(Z){this._visual=Z;var me=u.createTransform();this._visual.transform.baseVal.appendItem(me)},enumerable:!1,configurable:!0}),W.prototype.ownsTarget=function(Z){return!!fe.prototype.ownsTarget.call(this,Z)||!!(this.controlGrips.findGripByVisual(Z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Z))},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.state==="new"&&(this.left=Z.x,this.top=Z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ce=this.unrotatePoint(Z);if(this.manipulationStartX=Ce.x,this.manipulationStartY=Ce.y,this.offsetX=Ce.x-this.left,this.offsetY=Ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(me),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(me)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.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"},W.prototype.pointerUp=function(Z){var me=this.state;fe.prototype.pointerUp.call(this,Z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Z),this._state="select",me==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},W.prototype.moveVisual=function(Z){this.visual.style.transform="translate("+Z.x+"px, "+Z.y+"px)"},W.prototype.manipulate=function(Z){var me=this.unrotatePoint(Z);this.state==="creating"?this.resize(Z):this.state==="move"?(this.left=this.manipulationStartLeft+(me.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(me.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(me):this.state==="rotate"&&this.rotate(Z)},W.prototype.resize=function(Z){var me=this.manipulationStartLeft,Ce=this.manipulationStartWidth,re=this.manipulationStartTop,ie=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:me=this.manipulationStartLeft+Z.x-this.manipulationStartX,Ce=this.manipulationStartWidth+this.manipulationStartLeft-me;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ce=this.manipulationStartWidth+Z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+Z.y-this.manipulationStartY,ie=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ie=this.manipulationStartHeight+Z.y-this.manipulationStartY}Ce>=0?(this.left=me,this.width=Ce):(this.left=me+Ce,this.width=-Ce),ie>=0?(this.top=re,this.height=ie):(this.top=re+ie,this.height=-ie),this.setSize()},W.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},W.prototype.rotate=function(Z){if(Math.abs(Z.x-this.centerX)>.1){var me=Math.sign(Z.x-this.centerX);this.rotationAngle=180*Math.atan((Z.y-this.centerY)/(Z.x-this.centerX))/Math.PI+90*me,this.applyRotation()}},W.prototype.applyRotation=function(){var Z=this.container.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Z,0)},W.prototype.rotatePoint=function(Z){if(this.rotationAngle===0)return Z;var me=this.container.getCTM(),Ce=u.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(me)).x,y:Ce.y}},W.prototype.unrotatePoint=function(Z){if(this.rotationAngle===0)return Z;var me=this.container.getCTM();me=me.inverse();var Ce=u.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(me)).x,y:Ce.y}},W.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=u.createGroup();var Z=u.createTransform();Z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Z),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"},W.prototype.adjustControlBox=function(){var Z=this.controlBox.transform.baseVal.getItem(0);Z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Z,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},W.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},W.prototype.createGrip=function(){var Z=new N;return Z.visual.transform.baseVal.appendItem(u.createTransform()),this.controlBox.appendChild(Z.visual),Z},W.prototype.positionGrips=function(){var Z=this.controlGrips.topLeft.GRIP_SIZE,me=-Z/2,Ce=me,re=(this.width+this.CB_DISTANCE)/2-Z/2,ie=(this.height+this.CB_DISTANCE)/2-Z/2,de=this.height+this.CB_DISTANCE-Z/2,Ae=this.width+this.CB_DISTANCE-Z/2;this.positionGrip(this.controlGrips.topLeft.visual,me,Ce),this.positionGrip(this.controlGrips.topCenter.visual,re,Ce),this.positionGrip(this.controlGrips.topRight.visual,Ae,Ce),this.positionGrip(this.controlGrips.centerLeft.visual,me,ie),this.positionGrip(this.controlGrips.centerRight.visual,Ae,ie),this.positionGrip(this.controlGrips.bottomLeft.visual,me,de),this.positionGrip(this.controlGrips.bottomCenter.visual,re,de),this.positionGrip(this.controlGrips.bottomRight.visual,Ae,de),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,Ce-3*this.CB_DISTANCE)},W.prototype.positionGrip=function(Z,me,Ce){var re=Z.transform.baseVal.getItem(0);re.setTranslate(me,Ce),Z.transform.baseVal.replaceItem(re,0)},W.prototype.hideControlBox=function(){this.controlBox.style.display="none"},W.prototype.showControlBox=function(){this.controlBox.style.display=""},W.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:k.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:k.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},fe.prototype.getState.call(this))},W.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var me=Z;this.left=me.left,this.top=me.top,this.width=me.width,this.height=me.height,this.rotationAngle=me.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(k.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,me.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(k.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,me.containerTransformMatrix))},W.prototype.scale=function(Z,me){fe.prototype.scale.call(this,Z,me);var Ce=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:Ce.x*Z,y:Ce.y*me});this.left=re.x,this.top=re.y,this.width=this.width*Z,this.height=this.height*me,this.adjustControlBox()},W}(I),H=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return Y(W,fe),W.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},W.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)},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},W.prototype.manipulate=function(Z){fe.prototype.manipulate.call(this,Z)},W.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),this.setSize()},W.prototype.setSize=function(){fe.prototype.setSize.call(this),u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(Z){fe.prototype.pointerUp.call(this,Z),this.setSize()},W.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&u.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},W.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&u.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},W.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&u.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&u.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},W.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this))},W.prototype.restoreState=function(Z){var me=Z;this.fillColor=me.fillColor,this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.opacity=me.opacity,this.createVisual(),fe.prototype.restoreState.call(this,Z),this.setSize()},W.prototype.scale=function(Z,me){fe.prototype.scale.call(this,Z,me),this.setSize()},W.title="Rectangle marker",W}(L),M=function(fe){function W(Z,me,Ce,re){var ie=fe.call(this,Z,re||'<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=me,ie.currentWidth=Ce,ie.setCurrentWidth=ie.setCurrentWidth.bind(ie),ie}return Y(W,fe),W.prototype.getUi=function(){var Z=this,me=document.createElement("div");return me.style.display="flex",me.style.overflow="hidden",me.style.flexGrow="2",this.widths.forEach(function(Ce){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=Ce===Z.currentWidth?Z.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){Z.setCurrentWidth(Ce,re)}),me.appendChild(re);var ie=document.createElement("div");ie.innerText=Ce.toString(),ie.style.marginRight="5px",re.appendChild(ie);var de=document.createElement("div");de.style.minHeight="20px",de.style.flexGrow="2",de.style.display="flex",de.style.alignItems="center";var Ae=document.createElement("hr");Ae.style.minWidth="20px",Ae.style.border="0px",Ae.style.borderTop=Ce+"px solid "+Z.uiStyleSettings.toolboxColor,Ae.style.flexGrow="2",de.appendChild(Ae),re.appendChild(de),Z.widthBoxes.push(re)}),me},W.prototype.setCurrentWidth=function(Z,me){var Ce=this;this.currentWidth=Z,this.widthBoxes.forEach(function(re){re.style.borderColor=re===me?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},W}(x),F=function(fe){function W(Z,me,Ce,re){var ie=fe.call(this,Z,re||'<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=me,ie.currentStyle=Ce,ie.setCurrentStyle=ie.setCurrentStyle.bind(ie),ie}return Y(W,fe),W.prototype.getUi=function(){var Z=this,me=document.createElement("div");return me.style.display="flex",me.style.overflow="hidden",me.style.flexGrow="2",this.styles.forEach(function(Ce){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/Z.styles.length-5+"%",re.style.borderColor=Ce===Z.currentStyle?Z.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){Z.setCurrentStyle(Ce,re)}),me.appendChild(re);var ie=document.createElement("div");ie.style.minHeight="20px",ie.style.flexGrow="2",ie.style.overflow="hidden";var de=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ce!==""?'stroke-dasharray="'+Ce+'"':"")+` />
</svg>`;ie.innerHTML=de,re.appendChild(ie),Z.styleBoxes.push(re)}),me},W.prototype.setCurrentStyle=function(Z,me){var Ce=this;this.currentStyle=Z,this.styleBoxes.forEach(function(re){re.style.borderColor=re===me?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},W}(x),P=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.strokeColor=Ce.defaultColor,re.strokeWidth=Ce.defaultStrokeWidth,re.strokeDasharray=Ce.defaultStrokeDasharray,re.strokePanel=new T("Line color",Ce.defaultColorSet,Ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new M("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new F("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Y(W,fe),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=W.typeName,Z},W.typeName="FrameMarker",W.title="Frame marker",W.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',W}(H),U=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 W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return Y(W,fe),W.prototype.ownsTarget=function(Z){return!!fe.prototype.ownsTarget.call(this,Z)||!(!this.grip1.ownsTarget(Z)&&!this.grip2.ownsTarget(Z))},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.manipulationStartX=Z.x,this.manipulationStartY=Z.y,this.state==="new"&&(this.x1=Z.x,this.y1=Z.y,this.x2=Z.x,this.y2=Z.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(me)?this.activeGrip=this.grip1:this.grip2.ownsTarget(me)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},W.prototype.pointerUp=function(Z){var me=this.state;fe.prototype.pointerUp.call(this,Z),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Z),this._state="select",me==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},W.prototype.adjustVisual=function(){},W.prototype.manipulate=function(Z){this.state==="creating"?this.resize(Z):this.state==="move"?(this.x1=this.manipulationStartX1+Z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Z)},W.prototype.resize=function(Z){switch(this.activeGrip){case this.grip1:this.x1=Z.x,this.y1=Z.y;break;case this.grip2:case void 0:this.x2=Z.x,this.y2=Z.y}this.adjustVisual(),this.adjustControlBox()},W.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=u.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){this.positionGrips()},W.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},W.prototype.createGrip=function(){var Z=new N;return Z.visual.transform.baseVal.appendItem(u.createTransform()),this.controlBox.appendChild(Z.visual),Z},W.prototype.positionGrips=function(){var Z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Z/2,this.y1-Z/2),this.positionGrip(this.grip2.visual,this.x2-Z/2,this.y2-Z/2)},W.prototype.positionGrip=function(Z,me,Ce){var re=Z.transform.baseVal.getItem(0);re.setTranslate(me,Ce),Z.transform.baseVal.replaceItem(re,0)},W.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},fe.prototype.getState.call(this))},W.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var me=Z;this.x1=me.x1,this.y1=me.y1,this.x2=me.x2,this.y2=me.y2},W.prototype.scale=function(Z,me){fe.prototype.scale.call(this,Z,me),this.x1=this.x1*Z,this.y1=this.y1*me,this.x2=this.x2*Z,this.y2=this.y2*me,this.adjustVisual(),this.adjustControlBox()},W}(I),Q=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=Ce.defaultColor,re.strokeWidth=Ce.defaultStrokeWidth,re.strokeDasharray=Ce.defaultStrokeDasharray,re.strokePanel=new T("Line color",Ce.defaultColorSet,Ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new M("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new F("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Y(W,fe),W.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorLine&&Z!==this.visibleLine)},W.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)},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},W.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),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()]]))},W.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},W.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},W.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},fe.prototype.getState.call(this));return Z.typeName=W.typeName,Z},W.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var me=Z;this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.createVisual(),this.adjustVisual()},W.typeName="LineMarker",W.title="Line marker",W.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',W}(G),ee=function(fe){function W(Z,me,Ce,re){var ie=fe.call(this,Z,re||'<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=me,ie.currentFont=Ce,ie.setCurrentFont=ie.setCurrentFont.bind(ie),ie}return Y(W,fe),W.prototype.getUi=function(){var Z=this,me=document.createElement("div");return me.style.overflow="hidden",me.style.flexGrow="2",this.fonts.forEach(function(Ce){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/Z.fonts.length-5+"%",re.style.borderColor=Ce===Z.currentFont?Z.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){Z.setCurrentFont(Ce,re)}),me.appendChild(re);var ie=document.createElement("div");ie.style.display="flex",ie.style.minHeight="20px",ie.style.flexGrow="2",ie.style.fontFamily=Ce,ie.style.overflow="hidden";var de=document.createElement("div");de.style.whiteSpace="nowrap",de.style.overflow="hidden",de.style.textOverflow="ellipsis",de.innerHTML="The quick brown fox jumps over the lazy dog",ie.appendChild(de),re.appendChild(ie),Z.fontBoxes.push(re)}),me},W.prototype.setCurrentFont=function(Z,me){var Ce=this;this.currentFont=Z,this.fontBoxes.forEach(function(re){re.style.borderColor=re===me?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},W}(x),ae=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=Ce.defaultColor,re.fontFamily=Ce.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new T("Color",Ce.defaultColorSet,Ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new ee("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return Y(W,fe),W.prototype.ownsTarget=function(Z){if(fe.prototype.ownsTarget.call(this,Z)||Z===this.visual||Z===this.textElement||Z===this.bgRectangle)return!0;var me=!1;return this.textElement.childNodes.forEach(function(Ce){Ce===Z&&(me=!0)}),me},W.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()},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.isMoved=!1,this.pointerDownPoint=Z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},W.prototype.renderText=function(){var Z=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(me){Z.textElement.appendChild(u.createTSpan(me.trim()===""?" ":me.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},W.prototype.getTextScale=function(){var Z=this.textElement.getBBox(),me=1;if(Z.width>0&&Z.height>0){var Ce=(1*this.width-this.width*this.padding*2/100)/Z.width,re=(1*this.height-this.height*this.padding*2/100)/Z.height;me=Math.min(Ce,re)}return me},W.prototype.getTextPosition=function(Z){var me=this.textElement.getBBox(),Ce=0,re=0;return me.width>0&&me.height>0&&(Ce=(this.width-me.width*Z)/2,re=this.height/2-me.height*Z/2),{x:Ce,y:re}},W.prototype.sizeText=function(){var Z=this.textElement.getBBox(),me=this.getTextScale(),Ce=this.getTextPosition(me);Ce.y-=Z.y*me,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ce.x+"px, "+Ce.y+"px) scale("+me+", "+me+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ce.x,Ce.y),this.textElement.transform.baseVal.getItem(1).setScale(me,me))},W.prototype.manipulate=function(Z){fe.prototype.manipulate.call(this,Z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Z.x-this.pointerDownPoint.x)>5||Math.abs(Z.y-this.pointerDownPoint.y)>5)},W.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),this.isMoved=!0,this.setSize(),this.sizeText()},W.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()]]))},W.prototype.pointerUp=function(Z){var me=this.state;me==="creating"&&(this._suppressMarkerCreateEvent=!0),fe.prototype.pointerUp.call(this,Z),this.setSize(),(me==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},W.prototype.showTextEditor=function(){var Z=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(me){me.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var me=Number.parseFloat(Z.textEditor.style.fontSize);Z.textEditor.clientWidth>=Number.parseInt(Z.textEditor.style.maxWidth)&&me>.9;)me-=.1,Z.textEditor.style.fontSize=Math.max(me,.9)+"em"}),this.textEditor.addEventListener("keyup",function(me){me.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(me){if(me.clipboardData){var Ce=me.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(Ce)),me.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Z.textEditDivClicked(Z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},W.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Z=this.getTextScale(),me=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ce=this.textElement.getBBox(),re={x:Ce.width*Z,y:Ce.height*Z};me.x-=re.x/2,me.y-=re.y/2,this.textEditor.style.top=me.y+"px",this.textEditor.style.left=me.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-me.x+"px",this.textEditor.style.fontSize=Math.max(16*Z,12)+"px",this.textElement.style.display="none"}},W.prototype.textEditDivClicked=function(Z){this.text=Z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},W.prototype.select=function(){fe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},W.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),fe.prototype.deselect.call(this)},W.prototype.dblClick=function(Z,me){fe.prototype.dblClick.call(this,Z,me),this.showTextEditor()},W.prototype.setColor=function(Z){this.textElement&&u.setAttributes(this.textElement,[["fill",Z]]),this.color=Z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Z)},W.prototype.setFont=function(Z){this.textElement&&u.setAttributes(this.textElement,[["font-family",Z]]),this.fontFamily=Z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},W.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},W.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},fe.prototype.getState.call(this));return Z.typeName=W.typeName,Z},W.prototype.restoreState=function(Z){var me=Z;this.color=me.color,this.fontFamily=me.fontFamily,this.padding=me.padding,this.text=me.text,this.createVisual(),fe.prototype.restoreState.call(this,Z),this.setSize()},W.prototype.scale=function(Z,me){fe.prototype.scale.call(this,Z,me),this.setSize(),this.sizeText(),this.positionTextEditor()},W.typeName="TextMarker",W.title="Text marker",W.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',W}(L),oe=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=Ce.defaultColor,re.lineWidth=Ce.defaultStrokeWidth,re.pixelRatio=Ce.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new T("Color",Ce.defaultColorSet,Ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new M("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return Y(W,fe),W.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.drawingImage)},W.prototype.createVisual=function(){this.visual=u.createGroup(),this.drawingImage=u.createImage(),this.visual.appendChild(this.drawingImage);var Z=u.createTransform();this.visual.transform.baseVal.appendItem(Z),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(Z,me){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Z.x,Z.y),this.drawing=!0):fe.prototype.pointerDown.call(this,Z,me)},W.prototype.manipulate=function(Z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Z.x,Z.y),this.canvasContext.stroke()):fe.prototype.manipulate.call(this,Z)},W.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(Z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):fe.prototype.pointerUp.call(this,Z)},W.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},W.prototype.select=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.select.call(this)},W.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.deselect.call(this)},W.prototype.finishCreation=function(){for(var Z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),me=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ce=me[0],re=me[1],ie=me[2],de=me[3],Ae=!1,Be=0;Be<this.canvasElement.height;Be++)for(var He=0;He<this.canvasElement.width;He++)Z.data[Be*this.canvasElement.width*4+4*He+3]>0&&(Ae=!0,Be<re&&(re=Be),He<Ce&&(Ce=He),Be>de&&(de=Be),He>ie&&(ie=He));if(Ae){this.left=Ce/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(ie-Ce)/this.pixelRatio,this.height=(de-re)/this.pixelRatio;var st=document.createElement("canvas");st.width=ie-Ce,st.height=de-re,st.getContext("2d").putImageData(this.canvasContext.getImageData(Ce,re,ie-Ce,de-re),0,0),this.drawingImgUrl=st.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},W.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})},W.prototype.setColor=function(Z){this.color=Z,this.colorChanged(Z)},W.prototype.setLineWidth=function(Z){this.lineWidth=Z},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=Object.assign({drawingImgUrl:this.drawingImgUrl},fe.prototype.getState.call(this));return Z.typeName=W.typeName,Z},W.prototype.restoreState=function(Z){this.createVisual(),fe.prototype.restoreState.call(this,Z),this.drawingImgUrl=Z.drawingImgUrl,this.setDrawingImage()},W.prototype.scale=function(Z,me){fe.prototype.scale.call(this,Z,me),this.setDrawingImage()},W.typeName="FreehandMarker",W.title="Freehand marker",W.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',W}(L),he=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,Ce||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return re.typeBoxes=[],re.currentType=me,re.setCurrentType=re.setCurrentType.bind(re),re}return Y(W,fe),W.prototype.getUi=function(){var Z=this,me=document.createElement("div");me.style.display="flex",me.style.overflow="hidden",me.style.flexGrow="2";for(var Ce=function(de){var Ae="both";switch(de){case 0:Ae="both";break;case 1:Ae="start";break;case 2:Ae="end";break;case 3:Ae="none"}var Be=document.createElement("div");if(Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=Ae===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Z.setCurrentType(Ae,Be)}),me.appendChild(Be),Ae==="both"||Ae==="start"){var He=document.createElement("div");He.style.display="flex",He.style.alignItems="center",He.style.minHeight="20px",He.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,He.style.marginLeft="5px",Be.appendChild(He)}var st=document.createElement("div");st.style.display="flex",st.style.alignItems="center",st.style.minHeight="20px",st.style.flexGrow="2";var Qe=document.createElement("hr");if(Qe.style.minWidth="20px",Qe.style.border="0px",Qe.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),Qe.style.flexGrow="2",st.appendChild(Qe),Be.appendChild(st),Ae==="both"||Ae==="end"){var pt=document.createElement("div");pt.style.display="flex",pt.style.alignItems="center",pt.style.minHeight="20px",pt.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,pt.style.marginRight="5px",Be.appendChild(pt)}re.typeBoxes.push(Be)},re=this,ie=0;ie<4;ie++)Ce(ie);return me},W.prototype.setCurrentType=function(Z,me){var Ce=this;this.currentType=Z,this.typeBoxes.forEach(function(re){re.style.borderColor=re===me?Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},W}(x),le=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new he("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return Y(W,fe),W.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.arrow1&&Z!==this.arrow2)},W.prototype.getArrowPoints=function(Z,me){var Ce=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return Z-Ce/2+","+(me+re/2)+" "+Z+","+(me-re/2)+" "+(Z+Ce/2)+","+(me+re/2)},W.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)},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.state==="creating"&&this.createTips()},W.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 Z=0;Math.abs(this.x1-this.x2)>.1&&(Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var me=this.arrow1.transform.baseVal.getItem(0);me.setRotate(Z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(me,0);var Ce=this.arrow2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ce,0)}},W.prototype.setArrowType=function(Z){this.arrowType=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=Object.assign({arrowType:this.arrowType},fe.prototype.getState.call(this));return Z.typeName=W.typeName,Z},W.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var me=Z;this.arrowType=me.arrowType,this.createTips(),this.adjustVisual()},W.typeName="ArrowMarker",W.title="Arrow marker",W.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',W}(Q),be=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.fillColor=Ce.defaultFillColor,re.strokeWidth=0,re.fillPanel=new T("Color",Ce.defaultColorSet,Ce.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return Y(W,fe),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=W.typeName,Z},W.typeName="CoverMarker",W.title="Cover marker",W.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',W}(H),pe=function(fe){function W(Z,me,Ce,re){var ie=fe.call(this,Z,re||'<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=me,ie.currentOpacity=Ce,ie.setCurrentOpacity=ie.setCurrentOpacity.bind(ie),ie}return Y(W,fe),W.prototype.getUi=function(){var Z=this,me=document.createElement("div");return me.style.display="flex",me.style.overflow="hidden",me.style.flexGrow="2",me.style.justifyContent="space-between",this.opacities.forEach(function(Ce){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=Ce===Z.currentOpacity?Z.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){Z.setCurrentOpacity(Ce,re)}),me.appendChild(re);var ie=document.createElement("div");ie.innerText=100*Ce+"%",re.appendChild(ie),Z.opacityBoxes.push(re)}),me},W.prototype.setCurrentOpacity=function(Z,me){var Ce=this;this.currentOpacity=Z,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===me?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},W}(x),_e=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=Ce.defaultHighlightColor,re.strokeWidth=0,re.opacity=Ce.defaultHighlightOpacity,re.fillPanel=new T("Color",Ce.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new pe("Opacity",Ce.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Y(W,fe),W.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&u.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=W.typeName,Z},W.typeName="HighlightMarker",W.title="Highlight marker",W.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',W}(be),ne='<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>',ue='<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>',ce=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=Ce.defaultStrokeColor,re.bgColor=Ce.defaultFillColor,re.fontFamily=Ce.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new T("Text color",Ce.defaultColorSet,re.color,ne),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new T("Fill color",Ce.defaultColorSet,re.bgColor,ue),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new ee("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new N,re.tipGrip.visual.transform.baseVal.appendItem(u.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return Y(W,fe),W.prototype.ownsTarget=function(Z){return fe.prototype.ownsTarget.call(this,Z)||this.tipGrip.ownsTarget(Z)||this.tip===Z},W.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)},W.prototype.pointerDown=function(Z,me){this.state==="new"&&fe.prototype.pointerDown.call(this,Z,me),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(me)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):fe.prototype.pointerDown.call(this,Z,me)},W.prototype.pointerUp=function(Z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,fe.prototype.pointerUp.call(this,Z);else{var me=this.state==="creating";fe.prototype.pointerUp.call(this,Z),this.setTipPoints(me),this.positionTip()}},W.prototype.manipulate=function(Z){if(this.tipMoving){var me=this.unrotatePoint(Z);this.tipPosition={x:me.x-this.manipulationStartLeft,y:me.y-this.manipulationStartTop},this.positionTip()}else fe.prototype.manipulate.call(this,Z)},W.prototype.setBgColor=function(Z){this.bgRectangle&&this.tip&&(u.setAttributes(this.bgRectangle,[["fill",Z]]),u.setAttributes(this.tip,[["fill",Z]])),this.bgColor=Z,this.fillColorChanged(Z)},W.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},W.prototype.setTipPoints=function(Z){Z===void 0&&(Z=!1);var me=Math.min(this.height/2,15),Ce=this.height/5;Z&&(this.tipPosition={x:me+Ce/2,y:this.height+20});var re=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ce=this.width/5,me=Math.min(this.width/2,15),this.tipBase1Position={x:me,y:0},this.tipBase2Position={x:me+Ce,y:0}):(this.tipBase1Position={x:0,y:me},this.tipBase2Position={x:0,y:me+Ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ce=this.width/5,me=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-me-Ce,y:0},this.tipBase2Position={x:this.width-me,y:0}):(this.tipBase1Position={x:this.width,y:me},this.tipBase2Position={x:this.width,y:me+Ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?re<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ce=this.width/5,me=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-me-Ce,y:this.height},this.tipBase2Position={x:this.width-me,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-me-Ce},this.tipBase2Position={x:this.width,y:this.height-me}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ce=this.width/5,me=Math.min(this.width/2,15),this.tipBase1Position={x:me,y:this.height},this.tipBase2Position={x:me+Ce,y:this.height}):(this.tipBase1Position={x:0,y:this.height-me},this.tipBase2Position={x:0,y:this.height-me-Ce})},W.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),this.positionTip()},W.prototype.positionTip=function(){u.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Z=this.tipGrip.visual.transform.baseVal.getItem(0);Z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Z,0)},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),W.prototype.select=function(){this.positionTip(),fe.prototype.select.call(this)},W.prototype.getState=function(){var Z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},fe.prototype.getState.call(this));return Z.typeName=W.typeName,Z},W.prototype.restoreState=function(Z){var me=Z;this.bgColor=me.bgColor,this.tipPosition=me.tipPosition,fe.prototype.restoreState.call(this,Z),this.createTip(),this.setTipPoints()},W.prototype.scale=function(Z,me){fe.prototype.scale.call(this,Z,me),this.tipPosition={x:this.tipPosition.x*Z,y:this.tipPosition.y*me},this.positionTip()},W.typeName="CalloutMarker",W.title="Callout marker",W.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',W}(ae),Re=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=Ce.defaultColor,re.strokeWidth=Ce.defaultStrokeWidth,re.strokeDasharray=Ce.defaultStrokeDasharray,re.fillColor=Ce.defaultFillColor,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.setOpacity=re.setOpacity.bind(re),re.createVisual=re.createVisual.bind(re),re.strokePanel=new T("Line color",_(Ce.defaultColorSet,["transparent"]),Ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new T("Fill color",_(Ce.defaultColorSet,["transparent"]),re.fillColor,ue),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new M("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new F("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new pe("Opacity",Ce.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Y(W,fe),W.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},W.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)},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},W.prototype.manipulate=function(Z){fe.prototype.manipulate.call(this,Z)},W.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),this.setSize()},W.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()]])},W.prototype.pointerUp=function(Z){fe.prototype.pointerUp.call(this,Z),this.setSize()},W.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&u.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},W.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&u.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Z),this.stateChanged()},W.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&u.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&u.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},W.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&u.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this));return Z.typeName=W.typeName,Z},W.prototype.restoreState=function(Z){var me=Z;this.fillColor=me.fillColor,this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.opacity=me.opacity,this.createVisual(),fe.prototype.restoreState.call(this,Z),this.setSize()},W.prototype.scale=function(Z,me){fe.prototype.scale.call(this,Z,me),this.setSize()},W.typeName="EllipseMarker",W.title="Ellipse marker",W.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',W}(L),ke=function(fe){function W(Z,me,Ce){return fe.call(this,Z,me,Ce)||this}return Y(W,fe),Object.defineProperty(W.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),W.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.tip1&&Z!==this.tip2)},W.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)},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.state==="creating"&&this.createTips()},W.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 Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),me=this.tip1.transform.baseVal.getItem(0);me.setRotate(Z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(me,0);var Ce=this.tip2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ce,0)}},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=W.typeName,Z},W.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z),this.createTips(),this.adjustVisual()},W.typeName="MeasurementMarker",W.title="Measurement marker",W.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',W}(Q),Ne=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.strokePanel.colors=Ce.defaultColorSet,re.fillColor="transparent",re}return Y(W,fe),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=fe.prototype.getState.call(this);return Z.typeName=W.typeName,Z},W.typeName="EllipseFrameMarker",W.title="Ellipse frame marker",W.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',W}(Re),De=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(W){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(W)||(this.undoStack.push(W),JSON.stringify(this.lastRedoStep)!==JSON.stringify(W)&&this.redoStack.splice(0,this.redoStack.length))},fe.prototype.replaceLastUndoStep=function(W){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=W)},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 W=this.undoStack.pop();return W!==void 0&&this.redoStack.push(W),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}(),Me=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=Ce.defaultColor,re.strokeWidth=Ce.defaultStrokeWidth,re.strokeDasharray=Ce.defaultStrokeDasharray,re.strokePanel=new T("Line color",Ce.defaultColorSet,Ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new M("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new F("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Y(W,fe),W.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorCurve&&Z!==this.visibleCurve&&!this.curveGrip.ownsTarget(Z))},W.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},W.prototype.createVisual=function(){this.visual=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)},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Z.x,this.curveY=Z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(me)&&(this.activeGrip=this.curveGrip,this._state="resize")},W.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),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()]]))},W.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)},W.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,fe.prototype.addControlGrips.call(this)},W.prototype.positionGrips=function(){fe.prototype.positionGrips.call(this);var Z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Z/2,this.curveY-Z/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},W.prototype.manipulate=function(Z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Z.y-this.manipulationStartY),fe.prototype.manipulate.call(this,Z)},W.prototype.resize=function(Z){this.activeGrip===this.curveGrip&&(this.curveX=Z.x,this.curveY=Z.y),fe.prototype.resize.call(this,Z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},W.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},W.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},W.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual()},W.prototype.scale=function(Z,me){this.curveX=this.curveX*Z,this.curveY=this.curveY*me,fe.prototype.scale.call(this,Z,me)},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},fe.prototype.getState.call(this));return Z.typeName=W.typeName,Z},W.prototype.restoreState=function(Z){fe.prototype.restoreState.call(this,Z);var me=Z;this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.curveX=me.curveX,this.curveY=me.curveY,this.createVisual(),this.adjustVisual()},W.typeName="CurveMarker",W.title="Curve marker",W.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',W}(G),We=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,me,Ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=Ce.defaultColor,re.strokeWidth=Ce.defaultStrokeWidth,re.strokeDasharray=Ce.defaultStrokeDasharray,re.fillColor=Ce.defaultFillColor,re.textColor=Ce.defaultStrokeColor,re.fontFamily=Ce.defaultFontFamily,re.fontSize=Ce.defaultCaptionFontSize,re.captionText=Ce.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new T("Line color",_(Ce.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new T("Fill color",_(Ce.defaultColorSet,["transparent"]),re.fillColor,ue),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new M("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new F("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new ee("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new T("Text color",Ce.defaultColorSet,re.textColor,ne),re.textColorPanel.onColorChanged=re.setTextColor,re}return Y(W,fe),W.prototype.ownsTarget=function(Z){return!(!fe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.frame&&Z!==this.captionBg&&Z!==this.captionElement)},W.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()},W.prototype.setCaptionText=function(Z){this.captionText=Z,this.captionElement.textContent=this.captionText,this.sizeCaption()},W.prototype.pointerDown=function(Z,me){fe.prototype.pointerDown.call(this,Z,me),this.isMoved=!1,this.pointerDownPoint=Z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},W.prototype.manipulate=function(Z){fe.prototype.manipulate.call(this,Z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Z.x-this.pointerDownPoint.x)>5||Math.abs(Z.y-this.pointerDownPoint.y)>5)},W.prototype.resize=function(Z){fe.prototype.resize.call(this,Z),this.setSize()},W.prototype.sizeCaption=function(){var Z=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Z.width+2*this.PADDING,this.captionBoxHeight=Z.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')"]])},W.prototype.showTextEditor=function(){var Z=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.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(me){me.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(me){me.key==="Enter"&&Z.finishTextEditing(Z.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(me){me.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Z.finishTextEditing(Z.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Z.finishTextEditing(Z.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},W.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"))},W.prototype.finishTextEditing=function(Z){this.setCaptionText(Z.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},W.prototype.setFont=function(Z){this.captionElement&&u.setAttributes(this.captionElement,[["font-family",Z]]),this.fontFamily=Z,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},W.prototype.setTextColor=function(Z){this.captionElement&&u.setAttributes(this.captionElement,[["fill",Z]]),this.textColor=Z,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},W.prototype.setSize=function(){fe.prototype.setSize.call(this),u.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},W.prototype.pointerUp=function(Z){fe.prototype.pointerUp.call(this,Z),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},W.prototype.dblClick=function(Z,me){fe.prototype.dblClick.call(this,Z,me),this.showTextEditor()},W.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.frame&&u.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},W.prototype.setFillColor=function(Z){this.fillColor=Z,this.captionBg&&u.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Z),this.stateChanged()},W.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.frame&&u.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.frame&&u.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var Z=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 Z.typeName=this.typeName,Z},W.prototype.restoreState=function(Z){var me=Z;this.fillColor=me.fillColor,this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.textColor=me.textColor,this.fontFamily=me.fontFamily,this.captionText=me.captionText,this.fontSize=me.fontSize,this.createVisual(),fe.prototype.restoreState.call(this,Z),this.setSize()},W.prototype.scale=function(Z,me){fe.prototype.scale.call(this,Z,me),this.setSize()},W.typeName="CaptionFrameMarker",W.title="Caption frame marker",W.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>',W}(L),je=function(){function fe(W,Z){Z===void 0&&(Z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=W,this.cancelable=Z}return Object.defineProperty(fe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),fe.prototype.preventDefault=function(){this._defaultPrevented=!0},fe}(),et=function(fe){function W(Z,me,Ce){var re=fe.call(this,Z,!1)||this;return re.dataUrl=me,re.state=Ce,re}return Y(W,fe),W}(je),it=function(fe){function W(Z,me,Ce){Ce===void 0&&(Ce=!1);var re=fe.call(this,Z,Ce)||this;return re.marker=me,re}return Y(W,fe),W}(je),ze=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(W,Z){this[W].push(Z)},fe.prototype.removeEventListener=function(W,Z){var me=this[W].indexOf(Z);me>-1&&this[W].splice(me,1)},fe}(),xe=function(){function fe(W){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new U,this._isOpen=!1,this.undoRedoManager=new De,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 ze,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=fe.instanceCounter++,this.styles=new b(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=W,this.targetRoot=document.body,this.width=W.clientWidth,this.height=W.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(fe.prototype,"ALL_MARKER_TYPES",{get:function(){return[P,oe,le,ae,Ne,Re,_e,ce,ke,be,Q,Me,We]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[P,oe,le,ae,Re,_e,ce]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[P,oe,le,ae,_e]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(W){var Z=this;this._availableMarkerTypes.splice(0),W.forEach(function(me){if(typeof me=="string"){var Ce=Z.ALL_MARKER_TYPES.find(function(re){return re.typeName===me});Ce!==void 0&&Z._availableMarkerTypes.push(Ce)}else Z._availableMarkerTypes.push(me)})},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(W){this._zoomLevel=W,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(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(),p.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},fe.prototype.show=function(){var W=this;this.styles.styleSheetRoot===void 0&&m.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=m.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Z){return Z(new je(W))})},fe.prototype.render=function(){return s(this,void 0,void 0,function(){var W;return w(this,function(Z){switch(Z.label){case 0:return this.setCurrentMarker(),(W=new y).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.markersOnly=this.renderMarkersOnly,W.width=this.renderWidth,W.height=this.renderHeight,[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Z.sent(),[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Z.sent()]}})})},fe.prototype.close=function(W){var Z=this;if(W===void 0&&(W=!1),this.isOpen){var me=!1;W||this.eventListeners.beforeclose.forEach(function(Ce){var re=new je(Z,!0);Ce(re),re.defaultPrevented&&(me=!0)}),me||(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(Ce){return Ce(new je(Z))}),this.detachEvents(),this._isOpen=!1)}},fe.prototype.addMarkersToToolbar=function(){for(var W,Z=[],me=0;me<arguments.length;me++)Z[me]=arguments[me];(W=this._availableMarkerTypes).push.apply(W,Z)},fe.prototype.addRenderEventListener=function(W){this.addEventListener("render",function(Z){W(Z.dataUrl,Z.state)})},fe.prototype.removeRenderEventListener=function(W){},fe.prototype.addCloseEventListener=function(W){this.addEventListener("close",function(){W()})},fe.prototype.removeCloseEventListener=function(W){},fe.prototype.setupResizeObserver=function(){var W=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){W.resize(W.target.clientWidth,W.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return W.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},fe.prototype.onPopupTargetResize=function(){var W=1*this.target.clientWidth/this.target.clientHeight,Z=this.editorCanvas.clientWidth/W>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*W:this.editorCanvas.clientWidth,me=Z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/W;this.resize(Z,me)},fe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},fe.prototype.resize=function(W,Z){this._isResizing=!0;var me=W/this.imageWidth,Ce=Z/this.imageHeight;this.imageWidth=Math.round(W),this.imageHeight=Math.round(Z),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(me,Ce),this._isResizing=!1},fe.prototype.scaleMarkers=function(W,Z){var me,Ce=this;this._currentMarker&&this._currentMarker instanceof ae?this._currentMarker.scale(W,Z):(me=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==Ce._currentMarker&&re.scale(W,Z)}),me!==void 0&&this.setCurrentMarker(me)},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 W=this.editingTarget.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=W.left-Z.left,this.top=W.top-Z.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 W,Z=[],me=0;me<arguments.length;me++)Z[me]=arguments[me];this.defs=u.createDefs(),this.addDefsToImage(),(W=this.defs).append.apply(W,Z)},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 W=document.createElement("a");W.href="https://markerjs.com/",W.target="_blank",W.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',W.title="Powered by marker.js",W.style.display="grid",W.style.alignItems="center",W.style.justifyItems="center",W.style.padding="3px",W.style.width="20px",W.style.height="20px",this.logoUI.appendChild(W),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},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 W=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=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new 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 g(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(W){this.markerImage.removeChild(W.container),this.markers.indexOf(W)>-1&&this.markers.splice(this.markers.indexOf(W),1),W.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(W,Z){if(W==="marker"&&Z!==void 0)this.createNewMarker(Z);else if(W==="action")switch(Z){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},fe.prototype.deleteSelectedMarker=function(){var W=this;if(this._currentMarker!==void 0){var Z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ce){var re=new it(W,W._currentMarker,!0);Ce(re),re.defaultPrevented&&(Z=!0)}),!Z){var me=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ce){return Ce(new it(W,me))})}}},fe.prototype.clear=function(){var W=this,Z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ie){var de=new it(W,void 0,!0);ie(de),de.defaultPrevented&&(Z=!0)}),!Z)){this.setCurrentMarker();for(var me=function(ie){var de=Ce.markers[ie];Ce.setCurrentMarker(Ce.markers[ie]),Ce._currentMarker.dispose(),Ce.markerImage.removeChild(Ce._currentMarker.container),Ce.markers.splice(Ce.markers.indexOf(Ce._currentMarker),1),Ce.eventListeners.markerdelete.forEach(function(Ae){return Ae(new it(W,de))})},Ce=this,re=this.markers.length-1;re>=0;re--)me(re);this.addUndoStep()}},Object.defineProperty(fe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),fe.prototype.showNotesEditor=function(){var W;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(W=this._currentMarker.notes)!==null&&W!==void 0?W:"",this.overlayContainer.appendChild(this.notesArea))},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 W=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Z=this.getState(),me=this.undoRedoManager.getLastUndoStep();if(!me||me.width===Z.width&&me.height===Z.height){var Ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Z),Ce<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(re){return re(new je(W))})}else this.undoRedoManager.replaceLastUndoStep(Z),this.eventListeners.statechange.forEach(function(re){return re(new je(W))})}},fe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},fe.prototype.undoStep=function(){var W=this,Z=this.undoRedoManager.undo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(me){return me(new je(W))}))},fe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},fe.prototype.redoStep=function(){var W=this,Z=this.undoRedoManager.redo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(me){return me(new je(W))}))},fe.prototype.stepZoom=function(){var W=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=W<this.zoomSteps.length-1?this.zoomSteps[W+1]:this.zoomSteps[0]},fe.prototype.panTo=function(W){this.contentDiv.scrollBy({left:this.prevPanPoint.x-W.x,top:this.prevPanPoint.y-W.y}),this.prevPanPoint=W},fe.prototype.startRenderAndClose=function(){return s(this,void 0,void 0,function(){var W,Z,me=this;return w(this,function(Ce){switch(Ce.label){case 0:return[4,this.render()];case 1:return W=Ce.sent(),Z=this.getState(),this.eventListeners.render.forEach(function(re){return re(new et(me,W,Z))}),this.close(!0),[2]}})})},fe.prototype.getState=function(W){W===!0&&this.setCurrentMarker();var Z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(me){return Z.markers.push(me.getState())}),Z},fe.prototype.restoreState=function(W){var Z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);W.markers.forEach(function(me){var Ce=Z._availableMarkerTypes.find(function(ie){return ie.typeName===me.typeName});if(Ce!==void 0){var re=Z.addNewMarker(Ce);re.restoreState(me),Z.markers.push(re)}}),W.width&&W.height&&(W.width!==this.imageWidth||W.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/W.width,this.imageHeight/W.height),this.eventListeners.restorestate.forEach(function(me){return me(new je(Z))})},fe.prototype.addNewMarker=function(W){var Z=u.createGroup();return this.markerImage.appendChild(Z),new W(Z,this.overlayContainer,this.settings)},fe.prototype.createNewMarker=function(W){var Z,me=this;(Z=typeof W=="string"?this._availableMarkerTypes.find(function(Ce){return Ce.typeName===W}):W)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Z),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(Z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ce){return Ce(new it(me,me._currentMarker))}))},fe.prototype.markerCreated=function(W){var Z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(W),this.setCurrentMarker(W),W instanceof oe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(oe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(me){return me(new it(Z,Z._currentMarker))})},fe.prototype.colorChanged=function(W){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=W,this.settings.defaultStrokeColor=W)},fe.prototype.fillColorChanged=function(W){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=W)},fe.prototype.markerStateChanged=function(W){var Z=this;this.eventListeners.markerchange.forEach(function(me){return me(new it(Z,W))})},fe.prototype.setCurrentMarker=function(W){var Z=this;this._currentMarker!==W&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(me){return me(new it(Z,Z._currentMarker))})),this._currentMarker=W,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(me){return me(new it(Z,Z._currentMarker))}))},fe.prototype.onPointerDown=function(W){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||W.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Z=this.markers.find(function(me){return me.ownsTarget(W.target)});Z!==void 0?(this.setCurrentMarker(Z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(W.clientX,W.clientY),W.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:W.clientX,y:W.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(W.clientX,W.clientY))},fe.prototype.onDblClick=function(W){if(this._isFocused||this.focus(),this.mode==="select"){var Z=this.markers.find(function(me){return me.ownsTarget(W.target)});Z!==void 0&&Z!==this._currentMarker&&this.setCurrentMarker(Z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(W.clientX,W.clientY),W.target):this.setCurrentMarker()}},fe.prototype.onPointerMove=function(W){this.touchPoints!==1&&W.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||W.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(W.clientX,W.clientY)):this.zoomLevel>1&&this.panTo({x:W.clientX,y:W.clientY}))},fe.prototype.onPointerUp=function(W){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(W.clientX,W.clientY)),this.isDragging=!1,this.addUndoStep()},fe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},fe.prototype.onKeyUp=function(W){this._currentMarker===void 0||this.notesArea!==void 0||W.key!=="Delete"&&W.key!=="Backspace"||this.deleteSelectedMarker()},fe.prototype.clientToLocalCoordinates=function(W,Z){var me=this.markerImage.getBoundingClientRect();return{x:(W-me.left)/this.zoomLevel,y:(Z-me.top)/this.zoomLevel}},fe.prototype.onWindowResize=function(){this.positionUI()},fe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},fe.prototype.addLicenseKey=function(W){p.addKey(W)},fe.prototype.addEventListener=function(W,Z){this.eventListeners.addEventListener(W,Z)},fe.prototype.removeEventListener=function(W,Z){this.eventListeners.removeEventListener(W,Z)},fe.prototype.renderState=function(W){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(W),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(fe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),fe.prototype.focus=function(){var W=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Z){return Z(new je(W))}))},fe.prototype.blur=function(){var W=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Z){return Z(new je(W))}))},fe.instanceCounter=0,fe}()},67842:function(Oe){"use strict";var J,S=59;Oe.exports=B;function B(Y){var s="&"+Y+";",w;return J=J||document.createElement("i"),J.innerHTML=s,w=J.textContent,w.charCodeAt(w.length-1)===S&&Y!=="semi"||w===s?!1:w}},12256:function(Oe,J,S){"use strict";var B=S(47854),Y=S(80501),s=S(22347),w=S(65207),_=S(21127),u=S(67842);Oe.exports=_e;var p={}.hasOwnProperty,y=String.fromCharCode,m=Function.prototype,b={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,g=32,x=38,T=59,I=60,R=61,N=35,k=88,L=120,H=65533,M="named",F="hexadecimal",P="decimal",U={};U[F]=16,U[P]=10;var G={};G[M]=_,G[P]=s,G[F]=w;var Q=1,ee=2,ae=3,oe=4,he=5,le=6,be=7,pe={};pe[Q]="Named character references must be terminated by a semicolon",pe[ee]="Numeric character references must be terminated by a semicolon",pe[ae]="Named character references cannot be empty",pe[oe]="Numeric character references cannot be empty",pe[he]="Named character references must be known",pe[le]="Numeric character references cannot be disallowed",pe[be]="Numeric character references cannot be outside the permissible Unicode range";function _e(Re,ke){var Ne={},De,Me;ke||(ke={});for(Me in b)De=ke[Me],Ne[Me]=De==null?b[Me]:De;return(Ne.position.indent||Ne.position.start)&&(Ne.indent=Ne.position.indent||[],Ne.position=Ne.position.start),ne(Re,Ne)}function ne(Re,ke){var Ne=ke.additional,De=ke.nonTerminated,Me=ke.text,We=ke.reference,je=ke.warning,et=ke.textContext,it=ke.referenceContext,ze=ke.warningContext,xe=ke.position,fe=ke.indent||[],W=Re.length,Z=0,me=-1,Ce=xe.column||1,re=xe.line||1,ie="",de=[],Ae,Be,He,st,Qe,pt,It,gt,rt,ut,At,bt,Tt,Mt,Ot,$e,$t,gn,Et;for(typeof Ne=="string"&&(Ne=Ne.charCodeAt(0)),$e=Mn(),gt=je?qn:m,Z--,W++;++Z<W;)if(Qe===c&&(Ce=fe[me]||1),Qe=Re.charCodeAt(Z),Qe===x){if(It=Re.charCodeAt(Z+1),It===v||It===c||It===h||It===g||It===x||It===I||It!==It||Ne&&It===Ne){ie+=y(Qe),Ce++;continue}for(Tt=Z+1,bt=Tt,Et=Tt,It===N?(Et=++bt,It=Re.charCodeAt(Et),It===k||It===L?(Mt=F,Et=++bt):Mt=P):Mt=M,Ae="",At="",st="",Ot=G[Mt],Et--;++Et<W&&(It=Re.charCodeAt(Et),!!Ot(It));)st+=y(It),Mt===M&&p.call(B,st)&&(Ae=st,At=B[st]);He=Re.charCodeAt(Et)===T,He&&(Et++,Be=Mt===M?u(st):!1,Be&&(Ae=st,At=Be)),gn=1+Et-Tt,!He&&!De||(st?Mt===M?(He&&!At?gt(he,1):(Ae!==st&&(Et=bt+Ae.length,gn=1+Et-bt,He=!1),He||(rt=Ae?Q:ae,ke.attribute?(It=Re.charCodeAt(Et),It===R?(gt(rt,gn),At=null):_(It)?At=null:gt(rt,gn)):gt(rt,gn))),pt=At):(He||gt(ee,gn),pt=parseInt(st,U[Mt]),ue(pt)?(gt(be,gn),pt=y(H)):pt in Y?(gt(le,gn),pt=Y[pt]):(ut="",ce(pt)&&gt(le,gn),pt>65535&&(pt-=65536,ut+=y(pt>>>10|55296),pt=56320|pt&1023),pt=ut+y(pt))):Mt!==M&&gt(oe,gn)),pt?(Zn(),$e=Mn(),Z=Et-1,Ce+=Et-Tt+1,de.push(pt),$t=Mn(),$t.offset++,We&&We.call(it,pt,{start:$e,end:$t},Re.slice(Tt-1,Et)),$e=$t):(st=Re.slice(Tt-1,Et),ie+=st,Ce+=st.length,Z=Et-1)}else Qe===10&&(re++,me++,Ce=0),Qe===Qe?(ie+=y(Qe),Ce++):Zn();return de.join("");function Mn(){return{line:re,column:Ce,offset:Z+(xe.offset||0)}}function qn(Bt,yr){var vr=Mn();vr.column+=yr,vr.offset+=yr,je.call(ze,pe[Bt],vr,Bt)}function Zn(){ie&&(de.push(ie),Me&&Me.call(et,ie,{start:$e,end:Mn()}),ie="")}}function ue(Re){return Re>=55296&&Re<=57343||Re>1114111}function ce(Re){return Re>=1&&Re<=8||Re===11||Re>=13&&Re<=31||Re>=127&&Re<=159||Re>=64976&&Re<=65007||(Re&65535)===65535||(Re&65535)===65534}},68398:function(Oe,J,S){var B=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Y=function(s){var w=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,_=0,u={},p={manual:s.Prism&&s.Prism.manual,disableWorkerMessageHandler:s.Prism&&s.Prism.disableWorkerMessageHandler,util:{encode:function R(N){return N instanceof y?new y(N.type,R(N.content),N.alias):Array.isArray(N)?N.map(R):N.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:++_}),R.__id},clone:function R(N,k){k=k||{};var L,H;switch(p.util.type(N)){case"Object":if(H=p.util.objId(N),k[H])return k[H];L={},k[H]=L;for(var M in N)N.hasOwnProperty(M)&&(L[M]=R(N[M],k));return L;case"Array":return H=p.util.objId(N),k[H]?k[H]:(L=[],k[H]=L,N.forEach(function(F,P){L[P]=R(F,k)}),L);default:return N}},getLanguage:function(R){for(;R;){var N=w.exec(R.className);if(N)return N[1].toLowerCase();R=R.parentElement}return"none"},setLanguage:function(R,N){R.className=R.className.replace(RegExp(w,"gi"),""),R.classList.add("language-"+N)},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 N=document.getElementsByTagName("script");for(var k in N)if(N[k].src==R)return N[k]}return null}},isActive:function(R,N,k){for(var L="no-"+N;R;){var H=R.classList;if(H.contains(N))return!0;if(H.contains(L))return!1;R=R.parentElement}return!!k}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(R,N){var k=p.util.clone(p.languages[R]);for(var L in N)k[L]=N[L];return k},insertBefore:function(R,N,k,L){L=L||p.languages;var H=L[R],M={};for(var F in H)if(H.hasOwnProperty(F)){if(F==N)for(var P in k)k.hasOwnProperty(P)&&(M[P]=k[P]);k.hasOwnProperty(F)||(M[F]=H[F])}var U=L[R];return L[R]=M,p.languages.DFS(p.languages,function(G,Q){Q===U&&G!=R&&(this[G]=M)}),M},DFS:function R(N,k,L,H){H=H||{};var M=p.util.objId;for(var F in N)if(N.hasOwnProperty(F)){k.call(N,F,N[F],L||F);var P=N[F],U=p.util.type(P);U==="Object"&&!H[M(P)]?(H[M(P)]=!0,R(P,k,null,H)):U==="Array"&&!H[M(P)]&&(H[M(P)]=!0,R(P,k,F,H))}}},plugins:{},highlightAll:function(R,N){p.highlightAllUnder(document,R,N)},highlightAllUnder:function(R,N,k){var L={callback:k,container:R,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};p.hooks.run("before-highlightall",L),L.elements=Array.prototype.slice.apply(L.container.querySelectorAll(L.selector)),p.hooks.run("before-all-elements-highlight",L);for(var H=0,M;M=L.elements[H++];)p.highlightElement(M,N===!0,L.callback)},highlightElement:function(R,N,k){var L=p.util.getLanguage(R),H=p.languages[L];p.util.setLanguage(R,L);var M=R.parentElement;M&&M.nodeName.toLowerCase()==="pre"&&p.util.setLanguage(M,L);var F=R.textContent,P={element:R,language:L,grammar:H,code:F};function U(Q){P.highlightedCode=Q,p.hooks.run("before-insert",P),P.element.innerHTML=P.highlightedCode,p.hooks.run("after-highlight",P),p.hooks.run("complete",P),k&&k.call(P.element)}if(p.hooks.run("before-sanity-check",P),M=P.element.parentElement,M&&M.nodeName.toLowerCase()==="pre"&&!M.hasAttribute("tabindex")&&M.setAttribute("tabindex","0"),!P.code){p.hooks.run("complete",P),k&&k.call(P.element);return}if(p.hooks.run("before-highlight",P),!P.grammar){U(p.util.encode(P.code));return}if(N&&s.Worker){var G=new Worker(p.filename);G.onmessage=function(Q){U(Q.data)},G.postMessage(JSON.stringify({language:P.language,code:P.code,immediateClose:!0}))}else U(p.highlight(P.code,P.grammar,P.language))},highlight:function(R,N,k){var L={code:R,grammar:N,language:k};if(p.hooks.run("before-tokenize",L),!L.grammar)throw new Error('The language "'+L.language+'" has no grammar.');return L.tokens=p.tokenize(L.code,L.grammar),p.hooks.run("after-tokenize",L),y.stringify(p.util.encode(L.tokens),L.language)},tokenize:function(R,N){var k=N.rest;if(k){for(var L in k)N[L]=k[L];delete N.rest}var H=new v;return c(H,H.head,R),b(R,H,N,H.head,0),g(H)},hooks:{all:{},add:function(R,N){var k=p.hooks.all;k[R]=k[R]||[],k[R].push(N)},run:function(R,N){var k=p.hooks.all[R];if(!(!k||!k.length))for(var L=0,H;H=k[L++];)H(N)}},Token:y};s.Prism=p;function y(R,N,k,L){this.type=R,this.content=N,this.alias=k,this.length=(L||"").length|0}y.stringify=function R(N,k){if(typeof N=="string")return N;if(Array.isArray(N)){var L="";return N.forEach(function(U){L+=R(U,k)}),L}var H={type:N.type,content:R(N.content,k),tag:"span",classes:["token",N.type],attributes:{},language:k},M=N.alias;M&&(Array.isArray(M)?Array.prototype.push.apply(H.classes,M):H.classes.push(M)),p.hooks.run("wrap",H);var F="";for(var P in H.attributes)F+=" "+P+'="'+(H.attributes[P]||"").replace(/"/g,"&quot;")+'"';return"<"+H.tag+' class="'+H.classes.join(" ")+'"'+F+">"+H.content+"</"+H.tag+">"};function m(R,N,k,L){R.lastIndex=N;var H=R.exec(k);if(H&&L&&H[1]){var M=H[1].length;H.index+=M,H[0]=H[0].slice(M)}return H}function b(R,N,k,L,H,M){for(var F in k)if(!(!k.hasOwnProperty(F)||!k[F])){var P=k[F];P=Array.isArray(P)?P:[P];for(var U=0;U<P.length;++U){if(M&&M.cause==F+","+U)return;var G=P[U],Q=G.inside,ee=!!G.lookbehind,ae=!!G.greedy,oe=G.alias;if(ae&&!G.pattern.global){var he=G.pattern.toString().match(/[imsuy]*$/)[0];G.pattern=RegExp(G.pattern.source,he+"g")}for(var le=G.pattern||G,be=L.next,pe=H;be!==N.tail&&!(M&&pe>=M.reach);pe+=be.value.length,be=be.next){var _e=be.value;if(N.length>R.length)return;if(!(_e instanceof y)){var ne=1,ue;if(ae){if(ue=m(le,pe,R,ee),!ue||ue.index>=R.length)break;var Ne=ue.index,ce=ue.index+ue[0].length,Re=pe;for(Re+=be.value.length;Ne>=Re;)be=be.next,Re+=be.value.length;if(Re-=be.value.length,pe=Re,be.value instanceof y)continue;for(var ke=be;ke!==N.tail&&(Re<ce||typeof ke.value=="string");ke=ke.next)ne++,Re+=ke.value.length;ne--,_e=R.slice(pe,Re),ue.index-=pe}else if(ue=m(le,0,_e,ee),!ue)continue;var Ne=ue.index,De=ue[0],Me=_e.slice(0,Ne),We=_e.slice(Ne+De.length),je=pe+_e.length;M&&je>M.reach&&(M.reach=je);var et=be.prev;Me&&(et=c(N,et,Me),pe+=Me.length),h(N,et,ne);var it=new y(F,Q?p.tokenize(De,Q):De,oe,De);if(be=c(N,et,it),We&&c(N,be,We),ne>1){var ze={cause:F+","+U,reach:je};b(R,N,k,be.prev,pe,ze),M&&ze.reach>M.reach&&(M.reach=ze.reach)}}}}}}function v(){var R={value:null,prev:null,next:null},N={value:null,prev:R,next:null};R.next=N,this.head=R,this.tail=N,this.length=0}function c(R,N,k){var L=N.next,H={value:k,prev:N,next:L};return N.next=H,L.prev=H,R.length++,H}function h(R,N,k){for(var L=N.next,H=0;H<k&&L!==R.tail;H++)L=L.next;N.next=L,L.prev=N,R.length-=H}function g(R){for(var N=[],k=R.head.next;k!==R.tail;)N.push(k.value),k=k.next;return N}if(!s.document)return s.addEventListener&&(p.disableWorkerMessageHandler||s.addEventListener("message",function(R){var N=JSON.parse(R.data),k=N.language,L=N.code,H=N.immediateClose;s.postMessage(p.highlight(L,p.languages[k],k)),H&&s.close()},!1)),p;var x=p.util.currentScript();x&&(p.filename=x.src,x.hasAttribute("data-manual")&&(p.manual=!0));function T(){p.manual||p.highlightAll()}if(!p.manual){var I=document.readyState;I==="loading"||I==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",T):window.requestAnimationFrame?window.requestAnimationFrame(T):window.setTimeout(T,16)}return p}(B);Oe.exports&&(Oe.exports=Y),typeof S.g!="undefined"&&(S.g.Prism=Y)},88914:function(Oe,J,S){"use strict";var B=S(47178),Y=S(19095),s=S(1969),w="data";Oe.exports=y;var _=/^data[-\w.:]+$/i,u=/-[a-z]/g,p=/[A-Z]/g;function y(h,g){var x=B(g),T=g,I=s;return x in h.normal?h.property[h.normal[x]]:(x.length>4&&x.slice(0,4)===w&&_.test(g)&&(g.charAt(4)==="-"?T=m(g):g=b(g),I=Y),new I(T,g))}function m(h){var g=h.slice(5).replace(u,c);return w+g.charAt(0).toUpperCase()+g.slice(1)}function b(h){var g=h.slice(4);return u.test(g)?h:(g=g.replace(p,v),g.charAt(0)!=="-"&&(g="-"+g),w+g)}function v(h){return"-"+h.toLowerCase()}function c(h){return h.charAt(1).toUpperCase()}},18795:function(Oe,J,S){"use strict";var B=S(83576),Y=S(8179),s=S(59780),w=S(68244),_=S(20019),u=S(38567);Oe.exports=B([s,Y,w,_,u])},20019:function(Oe,J,S){"use strict";var B=S(70167),Y=S(79318),s=B.booleanish,w=B.number,_=B.spaceSeparated;Oe.exports=Y({transform:u,properties:{ariaActiveDescendant:null,ariaAtomic:s,ariaAutoComplete:null,ariaBusy:s,ariaChecked:s,ariaColCount:w,ariaColIndex:w,ariaColSpan:w,ariaControls:_,ariaCurrent:null,ariaDescribedBy:_,ariaDetails:null,ariaDisabled:s,ariaDropEffect:_,ariaErrorMessage:null,ariaExpanded:s,ariaFlowTo:_,ariaGrabbed:s,ariaHasPopup:null,ariaHidden:s,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_,ariaLevel:w,ariaLive:null,ariaModal:s,ariaMultiLine:s,ariaMultiSelectable:s,ariaOrientation:null,ariaOwns:_,ariaPlaceholder:null,ariaPosInSet:w,ariaPressed:s,ariaReadOnly:s,ariaRelevant:null,ariaRequired:s,ariaRoleDescription:_,ariaRowCount:w,ariaRowIndex:w,ariaRowSpan:w,ariaSelected:s,ariaSetSize:w,ariaSort:null,ariaValueMax:w,ariaValueMin:w,ariaValueNow:w,ariaValueText:null,role:null}});function u(p,y){return y==="role"?y:"aria-"+y.slice(4).toLowerCase()}},38567:function(Oe,J,S){"use strict";var B=S(70167),Y=S(79318),s=S(85804),w=B.boolean,_=B.overloadedBoolean,u=B.booleanish,p=B.number,y=B.spaceSeparated,m=B.commaSeparated;Oe.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:m,acceptCharset:y,accessKey:y,action:null,allow:null,allowFullScreen:w,allowPaymentRequest:w,allowUserMedia:w,alt:null,as:null,async:w,autoCapitalize:null,autoComplete:y,autoFocus:w,autoPlay:w,capture:w,charSet:null,checked:w,cite:null,className:y,cols:p,colSpan:null,content:null,contentEditable:u,controls:w,controlsList:y,coords:p|m,crossOrigin:null,data:null,dateTime:null,decoding:null,default:w,defer:w,dir:null,dirName:null,disabled:w,download:_,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:w,formTarget:null,headers:y,height:p,hidden:w,high:p,href:null,hrefLang:null,htmlFor:y,httpEquiv:y,id:null,imageSizes:null,imageSrcSet:m,inputMode:null,integrity:null,is:null,isMap:w,itemId:null,itemProp:y,itemRef:y,itemScope:w,itemType:y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:w,low:p,manifest:null,max:null,maxLength:p,media:null,method:null,min:null,minLength:p,multiple:w,muted:w,name:null,nonce:null,noModule:w,noValidate:w,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:w,optimum:p,pattern:null,ping:y,placeholder:null,playsInline:w,poster:null,preload:null,readOnly:w,referrerPolicy:null,rel:y,required:w,reversed:w,rows:p,rowSpan:p,sandbox:y,scope:null,scoped:w,seamless:w,selected:w,shape:null,size:p,sizes:null,slot:null,span:p,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:m,start:p,step:null,style:null,tabIndex:p,target:null,title:null,translate:null,type:null,typeMustMatch:w,useMap:null,value:u,width:p,wrap:null,align:null,aLink:null,archive:y,axis:null,background:null,bgColor:null,border:p,borderColor:null,bottomMargin:p,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:w,declare:w,event:null,face:null,frame:null,frameBorder:null,hSpace:p,leftMargin:p,link:null,longDesc:null,lowSrc:null,marginHeight:p,marginWidth:p,noResize:w,noHref:w,noShade:w,noWrap:w,object:null,profile:null,prompt:null,rev:null,rightMargin:p,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:p,valueType:null,version:null,vAlign:null,vLink:null,vSpace:p,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:w,disableRemotePlayback:w,prefix:null,property:null,results:p,security:null,unselectable:null}})},85804:function(Oe,J,S){"use strict";var B=S(56432);Oe.exports=Y;function Y(s,w){return B(s,w.toLowerCase())}},56432:function(Oe){"use strict";Oe.exports=J;function J(S,B){return B in S?S[B]:B}},79318:function(Oe,J,S){"use strict";var B=S(47178),Y=S(44347),s=S(19095);Oe.exports=w;function w(_){var u=_.space,p=_.mustUseProperty||[],y=_.attributes||{},m=_.properties,b=_.transform,v={},c={},h,g;for(h in m)g=new s(h,b(y,h),m[h],u),p.indexOf(h)!==-1&&(g.mustUseProperty=!0),v[h]=g,c[B(h)]=h,c[B(g.attribute)]=h;return new Y(v,c,u)}},19095:function(Oe,J,S){"use strict";var B=S(1969),Y=S(70167);Oe.exports=_,_.prototype=new B,_.prototype.defined=!0;var s=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],w=s.length;function _(p,y,m,b){var v=-1,c;for(u(this,"space",b),B.call(this,p,y);++v<w;)c=s[v],u(this,c,(m&Y[c])===Y[c])}function u(p,y,m){m&&(p[y]=m)}},1969:function(Oe){"use strict";Oe.exports=S;var J=S.prototype;J.space=null,J.attribute=null,J.property=null,J.boolean=!1,J.booleanish=!1,J.overloadedBoolean=!1,J.number=!1,J.commaSeparated=!1,J.spaceSeparated=!1,J.commaOrSpaceSeparated=!1,J.mustUseProperty=!1,J.defined=!1;function S(B,Y){this.property=B,this.attribute=Y}},83576:function(Oe,J,S){"use strict";var B=S(97270),Y=S(44347);Oe.exports=s;function s(w){for(var _=w.length,u=[],p=[],y=-1,m,b;++y<_;)m=w[y],u.push(m.property),p.push(m.normal),b=m.space;return new Y(B.apply(null,u),B.apply(null,p),b)}},44347:function(Oe){"use strict";Oe.exports=S;var J=S.prototype;J.space=null,J.normal={},J.property={};function S(B,Y,s){this.property=B,this.normal=Y,s&&(this.space=s)}},70167:function(Oe,J){"use strict";var S=0;J.boolean=B(),J.booleanish=B(),J.overloadedBoolean=B(),J.number=B(),J.spaceSeparated=B(),J.commaSeparated=B(),J.commaOrSpaceSeparated=B();function B(){return Math.pow(2,++S)}},8179:function(Oe,J,S){"use strict";var B=S(79318);Oe.exports=B({space:"xlink",transform:Y,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Y(s,w){return"xlink:"+w.slice(5).toLowerCase()}},59780:function(Oe,J,S){"use strict";var B=S(79318);Oe.exports=B({space:"xml",transform:Y,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Y(s,w){return"xml:"+w.slice(3).toLowerCase()}},68244:function(Oe,J,S){"use strict";var B=S(79318),Y=S(85804);Oe.exports=B({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Y,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(Oe){"use strict";Oe.exports=J;function J(S){return S.toLowerCase()}},66042:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return ae}});var B=S(98506),Y=S(16886),s=S(43403),w=S(34280),_=S(59301),u=_.createContext(null),p=_.createContext({}),y=u,m=S(52873),b=S(67711),v=S(92310),c=S.n(v),h=S(77900),g=S(10228),x=S(26112),T=S(33346),I=S(8654),R=["prefixCls","className","containerRef"],N=function(he){var le=he.prefixCls,be=he.className,pe=he.containerRef,_e=(0,T.Z)(he,R),ne=_.useContext(p),ue=ne.panel,ce=(0,I.x1)(ue,pe);return _.createElement("div",(0,b.Z)({className:c()("".concat(le,"-content"),be),role:"dialog",ref:ce},(0,x.Z)(he,{aria:!0}),{"aria-modal":"true"},_e))},k=N,L=S(48736);function H(oe){return typeof oe=="string"&&String(Number(oe))===oe?((0,L.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(oe)):oe}function M(oe){warning(!("wrapperClassName"in oe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!oe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var F={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function P(oe,he){var le,be,pe,_e=oe.prefixCls,ne=oe.open,ue=oe.placement,ce=oe.inline,Re=oe.push,ke=oe.forceRender,Ne=oe.autoFocus,De=oe.keyboard,Me=oe.classNames,We=oe.rootClassName,je=oe.rootStyle,et=oe.zIndex,it=oe.className,ze=oe.id,xe=oe.style,fe=oe.motion,W=oe.width,Z=oe.height,me=oe.children,Ce=oe.mask,re=oe.maskClosable,ie=oe.maskMotion,de=oe.maskClassName,Ae=oe.maskStyle,Be=oe.afterOpenChange,He=oe.onClose,st=oe.onMouseEnter,Qe=oe.onMouseOver,pt=oe.onMouseLeave,It=oe.onClick,gt=oe.onKeyDown,rt=oe.onKeyUp,ut=oe.styles,At=oe.drawerRender,bt=_.useRef(),Tt=_.useRef(),Mt=_.useRef();_.useImperativeHandle(he,function(){return bt.current});var Ot=function(wn){var Jn=wn.keyCode,Ir=wn.shiftKey;switch(Jn){case g.Z.TAB:{if(Jn===g.Z.TAB){if(!Ir&&document.activeElement===Mt.current){var Wr;(Wr=Tt.current)===null||Wr===void 0||Wr.focus({preventScroll:!0})}else if(Ir&&document.activeElement===Tt.current){var cr;(cr=Mt.current)===null||cr===void 0||cr.focus({preventScroll:!0})}}break}case g.Z.ESC:{He&&De&&(wn.stopPropagation(),He(wn));break}}};_.useEffect(function(){if(ne&&Ne){var Fn;(Fn=bt.current)===null||Fn===void 0||Fn.focus({preventScroll:!0})}},[ne]);var $e=_.useState(!1),$t=(0,Y.Z)($e,2),gn=$t[0],Et=$t[1],Mn=_.useContext(y),qn;typeof Re=="boolean"?qn=Re?{}:{distance:0}:qn=Re||{};var Zn=(le=(be=(pe=qn)===null||pe===void 0?void 0:pe.distance)!==null&&be!==void 0?be:Mn==null?void 0:Mn.pushDistance)!==null&&le!==void 0?le:180,Bt=_.useMemo(function(){return{pushDistance:Zn,push:function(){Et(!0)},pull:function(){Et(!1)}}},[Zn]);_.useEffect(function(){if(ne){var Fn;Mn==null||(Fn=Mn.push)===null||Fn===void 0||Fn.call(Mn)}else{var wn;Mn==null||(wn=Mn.pull)===null||wn===void 0||wn.call(Mn)}},[ne]),_.useEffect(function(){return function(){var Fn;Mn==null||(Fn=Mn.pull)===null||Fn===void 0||Fn.call(Mn)}},[]);var yr=Ce&&_.createElement(h.default,(0,b.Z)({key:"mask"},ie,{visible:ne}),function(Fn,wn){var Jn=Fn.className,Ir=Fn.style;return _.createElement("div",{className:c()("".concat(_e,"-mask"),Jn,Me==null?void 0:Me.mask,de),style:(0,B.Z)((0,B.Z)((0,B.Z)({},Ir),Ae),ut==null?void 0:ut.mask),onClick:re&&ne?He:void 0,ref:wn})}),vr=typeof fe=="function"?fe(ue):fe,Un={};if(gn&&Zn)switch(ue){case"top":Un.transform="translateY(".concat(Zn,"px)");break;case"bottom":Un.transform="translateY(".concat(-Zn,"px)");break;case"left":Un.transform="translateX(".concat(Zn,"px)");break;default:Un.transform="translateX(".concat(-Zn,"px)");break}ue==="left"||ue==="right"?Un.width=H(W):Un.height=H(Z);var Wn={onMouseEnter:st,onMouseOver:Qe,onMouseLeave:pt,onClick:It,onKeyDown:gt,onKeyUp:rt},wr=_.createElement(h.default,(0,b.Z)({key:"panel"},vr,{visible:ne,forceRender:ke,onVisibleChanged:function(wn){Be==null||Be(wn)},removeOnLeave:!1,leavedClassName:"".concat(_e,"-content-wrapper-hidden")}),function(Fn,wn){var Jn=Fn.className,Ir=Fn.style,Wr=_.createElement(k,(0,b.Z)({id:ze,containerRef:wn,prefixCls:_e,className:c()(it,Me==null?void 0:Me.content),style:(0,B.Z)((0,B.Z)({},xe),ut==null?void 0:ut.content)},(0,x.Z)(oe,{aria:!0}),Wn),me);return _.createElement("div",(0,b.Z)({className:c()("".concat(_e,"-content-wrapper"),Me==null?void 0:Me.wrapper,Jn),style:(0,B.Z)((0,B.Z)((0,B.Z)({},Un),Ir),ut==null?void 0:ut.wrapper)},(0,x.Z)(oe,{data:!0})),At?At(Wr):Wr)}),ye=(0,B.Z)({},je);return et&&(ye.zIndex=et),_.createElement(y.Provider,{value:Bt},_.createElement("div",{className:c()(_e,"".concat(_e,"-").concat(ue),We,(0,m.Z)((0,m.Z)({},"".concat(_e,"-open"),ne),"".concat(_e,"-inline"),ce)),style:ye,tabIndex:-1,ref:bt,onKeyDown:Ot},yr,_.createElement("div",{tabIndex:0,ref:Tt,style:F,"aria-hidden":"true","data-sentinel":"start"}),wr,_.createElement("div",{tabIndex:0,ref:Mt,style:F,"aria-hidden":"true","data-sentinel":"end"})))}var U=_.forwardRef(P),G=U,Q=function(he){var le=he.open,be=le===void 0?!1:le,pe=he.prefixCls,_e=pe===void 0?"rc-drawer":pe,ne=he.placement,ue=ne===void 0?"right":ne,ce=he.autoFocus,Re=ce===void 0?!0:ce,ke=he.keyboard,Ne=ke===void 0?!0:ke,De=he.width,Me=De===void 0?378:De,We=he.mask,je=We===void 0?!0:We,et=he.maskClosable,it=et===void 0?!0:et,ze=he.getContainer,xe=he.forceRender,fe=he.afterOpenChange,W=he.destroyOnClose,Z=he.onMouseEnter,me=he.onMouseOver,Ce=he.onMouseLeave,re=he.onClick,ie=he.onKeyDown,de=he.onKeyUp,Ae=he.panelRef,Be=_.useState(!1),He=(0,Y.Z)(Be,2),st=He[0],Qe=He[1],pt=_.useState(!1),It=(0,Y.Z)(pt,2),gt=It[0],rt=It[1];(0,w.Z)(function(){rt(!0)},[]);var ut=gt?be:!1,At=_.useRef(),bt=_.useRef();(0,w.Z)(function(){ut&&(bt.current=document.activeElement)},[ut]);var Tt=function(gn){var Et;if(Qe(gn),fe==null||fe(gn),!gn&&bt.current&&!((Et=At.current)!==null&&Et!==void 0&&Et.contains(bt.current))){var Mn;(Mn=bt.current)===null||Mn===void 0||Mn.focus({preventScroll:!0})}},Mt=_.useMemo(function(){return{panel:Ae}},[Ae]);if(!xe&&!st&&!ut&&W)return null;var Ot={onMouseEnter:Z,onMouseOver:me,onMouseLeave:Ce,onClick:re,onKeyDown:ie,onKeyUp:de},$e=(0,B.Z)((0,B.Z)({},he),{},{open:ut,prefixCls:_e,placement:ue,autoFocus:Re,keyboard:Ne,width:Me,mask:je,maskClosable:it,inline:ze===!1,afterOpenChange:Tt,ref:At},Ot);return _.createElement(p.Provider,{value:Mt},_.createElement(s.Z,{open:ut||xe||st,autoDestroy:!1,getContainer:ze,autoLock:je&&(ut||st)},_.createElement(G,$e)))},ee=Q,ae=ee},91574:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return It}});var B=S(67711),Y=S(98506),s=S(52873),w=S(16886),_=S(26420),u=S(33346),p=S(92310),y=S.n(p),m=/margin|padding|width|height|max|min|offset/,b={left:!0,top:!0},v={cssFloat:1,styleFloat:1,float:1};function c(gt){return gt.nodeType===1?gt.ownerDocument.defaultView.getComputedStyle(gt,null):{}}function h(gt,rt,ut){if(rt=rt.toLowerCase(),ut==="auto"){if(rt==="height")return gt.offsetHeight;if(rt==="width")return gt.offsetWidth}return rt in b||(b[rt]=m.test(rt)),b[rt]?parseFloat(ut)||0:ut}function g(gt,rt){var ut=arguments.length,At=c(gt);return rt=v[rt]?"cssFloat"in gt.style?"cssFloat":"styleFloat":rt,ut===1?At:h(gt,rt,At[rt]||gt.style[rt])}function x(gt,rt,ut){var At=arguments.length;if(rt=v[rt]?"cssFloat"in gt.style?"cssFloat":"styleFloat":rt,At===3)return typeof ut=="number"&&m.test(rt)&&(ut="".concat(ut,"px")),gt.style[rt]=ut,ut;for(var bt in rt)rt.hasOwnProperty(bt)&&x(gt,bt,rt[bt]);return c(gt)}function T(gt){return gt===document.body?document.documentElement.clientWidth:gt.offsetWidth}function I(gt){return gt===document.body?window.innerHeight||document.documentElement.clientHeight:gt.offsetHeight}function R(){var gt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),rt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:gt,height:rt}}function N(){var gt=document.documentElement.clientWidth,rt=window.innerHeight||document.documentElement.clientHeight;return{width:gt,height:rt}}function k(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function L(gt){var rt=gt.getBoundingClientRect(),ut=document.documentElement;return{left:rt.left+(window.pageXOffset||ut.scrollLeft)-(ut.clientLeft||document.body.clientLeft||0),top:rt.top+(window.pageYOffset||ut.scrollTop)-(ut.clientTop||document.body.clientTop||0)}}var H=S(18929),M=S(59301),F=S(55311),P=S(8224),U=S(10228),G=S(43403),Q=S(77900),ee=M.createContext(null),ae=function(rt){var ut=rt.visible,At=rt.maskTransitionName,bt=rt.getContainer,Tt=rt.prefixCls,Mt=rt.rootClassName,Ot=rt.icons,$e=rt.countRender,$t=rt.showSwitch,gn=rt.showProgress,Et=rt.current,Mn=rt.transform,qn=rt.count,Zn=rt.scale,Bt=rt.minScale,yr=rt.maxScale,vr=rt.closeIcon,Un=rt.onActive,Wn=rt.onClose,wr=rt.onZoomIn,ye=rt.onZoomOut,Fn=rt.onRotateRight,wn=rt.onRotateLeft,Jn=rt.onFlipX,Ir=rt.onFlipY,Wr=rt.onReset,cr=rt.toolbarRender,ro=rt.zIndex,Kr=rt.image,oi=(0,M.useContext)(ee),Kn=Ot.rotateLeft,Dn=Ot.rotateRight,li=Ot.zoomIn,Nr=Ot.zoomOut,Yr=Ot.close,mn=Ot.left,zn=Ot.right,Mr=Ot.flipX,Ci=Ot.flipY,vi="".concat(Tt,"-operations-operation");M.useEffect(function(){var Ft=function(Xn){Xn.keyCode===U.Z.ESC&&Wn()};return ut&&window.addEventListener("keydown",Ft),function(){window.removeEventListener("keydown",Ft)}},[ut]);var nt=function(hr,Xn){hr.preventDefault(),hr.stopPropagation(),Un(Xn)},vt=M.useCallback(function(Ft){var hr=Ft.type,Xn=Ft.disabled,or=Ft.onClick,Tn=Ft.icon;return M.createElement("div",{key:hr,className:y()(vi,"".concat(Tt,"-operations-operation-").concat(hr),(0,s.Z)({},"".concat(Tt,"-operations-operation-disabled"),!!Xn)),onClick:or},Tn)},[vi,Tt]),hn=$t?vt({icon:mn,onClick:function(hr){return nt(hr,-1)},type:"prev",disabled:Et===0}):void 0,yn=$t?vt({icon:zn,onClick:function(hr){return nt(hr,1)},type:"next",disabled:Et===qn-1}):void 0,dt=vt({icon:Ci,onClick:Ir,type:"flipY"}),on=vt({icon:Mr,onClick:Jn,type:"flipX"}),kn=vt({icon:Kn,onClick:wn,type:"rotateLeft"}),_t=vt({icon:Dn,onClick:Fn,type:"rotateRight"}),we=vt({icon:Nr,onClick:ye,type:"zoomOut",disabled:Zn<=Bt}),An=vt({icon:li,onClick:wr,type:"zoomIn",disabled:Zn===yr}),Nn=M.createElement("div",{className:"".concat(Tt,"-operations")},dt,on,kn,_t,we,An);return M.createElement(Q.default,{visible:ut,motionName:At},function(Ft){var hr=Ft.className,Xn=Ft.style;return M.createElement(G.Z,{open:!0,getContainer:bt!=null?bt:document.body},M.createElement("div",{className:y()("".concat(Tt,"-operations-wrapper"),hr,Mt),style:(0,Y.Z)((0,Y.Z)({},Xn),{},{zIndex:ro})},vr===null?null:M.createElement("button",{className:"".concat(Tt,"-close"),onClick:Wn},vr||Yr),$t&&M.createElement(M.Fragment,null,M.createElement("div",{className:y()("".concat(Tt,"-switch-left"),(0,s.Z)({},"".concat(Tt,"-switch-left-disabled"),Et===0)),onClick:function(Tn){return nt(Tn,-1)}},mn),M.createElement("div",{className:y()("".concat(Tt,"-switch-right"),(0,s.Z)({},"".concat(Tt,"-switch-right-disabled"),Et===qn-1)),onClick:function(Tn){return nt(Tn,1)}},zn)),M.createElement("div",{className:"".concat(Tt,"-footer")},gn&&M.createElement("div",{className:"".concat(Tt,"-progress")},$e?$e(Et+1,qn):"".concat(Et+1," / ").concat(qn)),cr?cr(Nn,(0,Y.Z)((0,Y.Z)({icons:{prevIcon:hn,nextIcon:yn,flipYIcon:dt,flipXIcon:on,rotateLeftIcon:kn,rotateRightIcon:_t,zoomOutIcon:we,zoomInIcon:An},actions:{onActive:Un,onFlipY:Ir,onFlipX:Jn,onRotateLeft:wn,onRotateRight:Fn,onZoomOut:ye,onZoomIn:wr,onReset:Wr,onClose:Wn},transform:Mn},oi?{current:Et,total:qn}:{}),{},{image:Kr})):Nn)))})},oe=ae,he=S(13697),le=S(16089),be={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function pe(gt,rt,ut,At){var bt=(0,M.useRef)(null),Tt=(0,M.useRef)([]),Mt=(0,M.useState)(be),Ot=(0,w.Z)(Mt,2),$e=Ot[0],$t=Ot[1],gn=function(Zn){$t(be),(0,he.Z)(be,$e)||At==null||At({transform:be,action:Zn})},Et=function(Zn,Bt){bt.current===null&&(Tt.current=[],bt.current=(0,le.Z)(function(){$t(function(yr){var vr=yr;return Tt.current.forEach(function(Un){vr=(0,Y.Z)((0,Y.Z)({},vr),Un)}),bt.current=null,At==null||At({transform:vr,action:Bt}),vr})})),Tt.current.push((0,Y.Z)((0,Y.Z)({},$e),Zn))},Mn=function(Zn,Bt,yr,vr,Un){var Wn=gt.current,wr=Wn.width,ye=Wn.height,Fn=Wn.offsetWidth,wn=Wn.offsetHeight,Jn=Wn.offsetLeft,Ir=Wn.offsetTop,Wr=Zn,cr=$e.scale*Zn;cr>ut?(cr=ut,Wr=ut/$e.scale):cr<rt&&(cr=Un?cr:rt,Wr=cr/$e.scale);var ro=yr!=null?yr:innerWidth/2,Kr=vr!=null?vr:innerHeight/2,oi=Wr-1,Kn=oi*wr*.5,Dn=oi*ye*.5,li=oi*(ro-$e.x-Jn),Nr=oi*(Kr-$e.y-Ir),Yr=$e.x-(li-Kn),mn=$e.y-(Nr-Dn);if(Zn<1&&cr===1){var zn=Fn*cr,Mr=wn*cr,Ci=N(),vi=Ci.width,nt=Ci.height;zn<=vi&&Mr<=nt&&(Yr=0,mn=0)}Et({x:Yr,y:mn,scale:cr},Bt)};return{transform:$e,resetTransform:gn,updateTransform:Et,dispatchZoomChange:Mn}}var _e=S(48736);function ne(gt,rt,ut,At){var bt=rt+ut,Tt=(ut-At)/2;if(ut>At){if(rt>0)return(0,s.Z)({},gt,Tt);if(rt<0&&bt<At)return(0,s.Z)({},gt,-Tt)}else if(rt<0||bt>At)return(0,s.Z)({},gt,rt<0?Tt:-Tt);return{}}function ue(gt,rt,ut,At){var bt=N(),Tt=bt.width,Mt=bt.height,Ot=null;return gt<=Tt&&rt<=Mt?Ot={x:0,y:0}:(gt>Tt||rt>Mt)&&(Ot=(0,Y.Z)((0,Y.Z)({},ne("x",ut,gt,Tt)),ne("y",At,rt,Mt))),Ot}var ce=1,Re=1;function ke(gt,rt,ut,At,bt,Tt,Mt){var Ot=bt.rotate,$e=bt.scale,$t=bt.x,gn=bt.y,Et=(0,M.useState)(!1),Mn=(0,w.Z)(Et,2),qn=Mn[0],Zn=Mn[1],Bt=(0,M.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),yr=function(ye){!rt||ye.button!==0||(ye.preventDefault(),ye.stopPropagation(),Bt.current={diffX:ye.pageX-$t,diffY:ye.pageY-gn,transformX:$t,transformY:gn},Zn(!0))},vr=function(ye){ut&&qn&&Tt({x:ye.pageX-Bt.current.diffX,y:ye.pageY-Bt.current.diffY},"move")},Un=function(){if(ut&&qn){Zn(!1);var ye=Bt.current,Fn=ye.transformX,wn=ye.transformY,Jn=$t!==Fn&&gn!==wn;if(!Jn)return;var Ir=gt.current.offsetWidth*$e,Wr=gt.current.offsetHeight*$e,cr=gt.current.getBoundingClientRect(),ro=cr.left,Kr=cr.top,oi=Ot%180!==0,Kn=ue(oi?Wr:Ir,oi?Ir:Wr,ro,Kr);Kn&&Tt((0,Y.Z)({},Kn),"dragRebound")}},Wn=function(ye){if(!(!ut||ye.deltaY==0)){var Fn=Math.abs(ye.deltaY/100),wn=Math.min(Fn,Re),Jn=ce+wn*At;ye.deltaY>0&&(Jn=ce/Jn),Mt(Jn,"wheel",ye.clientX,ye.clientY)}};return(0,M.useEffect)(function(){var wr,ye,Fn,wn;if(rt){Fn=(0,P.Z)(window,"mouseup",Un,!1),wn=(0,P.Z)(window,"mousemove",vr,!1);try{window.top!==window.self&&(wr=(0,P.Z)(window.top,"mouseup",Un,!1),ye=(0,P.Z)(window.top,"mousemove",vr,!1))}catch(Jn){(0,_e.Kp)(!1,"[rc-image] ".concat(Jn))}}return function(){var Jn,Ir,Wr,cr;(Jn=Fn)===null||Jn===void 0||Jn.remove(),(Ir=wn)===null||Ir===void 0||Ir.remove(),(Wr=wr)===null||Wr===void 0||Wr.remove(),(cr=ye)===null||cr===void 0||cr.remove()}},[ut,qn,$t,gn,Ot,rt]),{isMoving:qn,onMouseDown:yr,onMouseMove:vr,onMouseUp:Un,onWheel:Wn}}function Ne(gt){return new Promise(function(rt){if(!gt){rt(!1);return}var ut=document.createElement("img");ut.onerror=function(){return rt(!1)},ut.onload=function(){return rt(!0)},ut.src=gt})}function De(gt){var rt=gt.src,ut=gt.isCustomPlaceholder,At=gt.fallback,bt=(0,M.useState)(ut?"loading":"normal"),Tt=(0,w.Z)(bt,2),Mt=Tt[0],Ot=Tt[1],$e=(0,M.useRef)(!1),$t=Mt==="error";(0,M.useEffect)(function(){var qn=!0;return Ne(rt).then(function(Zn){!Zn&&qn&&Ot("error")}),function(){qn=!1}},[rt]),(0,M.useEffect)(function(){ut&&!$e.current?Ot("loading"):$t&&Ot("normal")},[rt]);var gn=function(){Ot("normal")},Et=function(Zn){$e.current=!1,Mt==="loading"&&Zn!==null&&Zn!==void 0&&Zn.complete&&(Zn.naturalWidth||Zn.naturalHeight)&&($e.current=!0,gn())},Mn=$t&&At?{src:At}:{onLoad:gn,src:rt};return[Et,Mn,Mt]}function Me(gt,rt){var ut=gt.x-rt.x,At=gt.y-rt.y;return Math.hypot(ut,At)}function We(gt,rt,ut,At){var bt=Me(gt,ut),Tt=Me(rt,At);if(bt===0&&Tt===0)return[gt.x,gt.y];var Mt=bt/(bt+Tt),Ot=gt.x+Mt*(rt.x-gt.x),$e=gt.y+Mt*(rt.y-gt.y);return[Ot,$e]}function je(gt,rt,ut,At,bt,Tt,Mt){var Ot=bt.rotate,$e=bt.scale,$t=bt.x,gn=bt.y,Et=(0,M.useState)(!1),Mn=(0,w.Z)(Et,2),qn=Mn[0],Zn=Mn[1],Bt=(0,M.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),yr=function(ye){Bt.current=(0,Y.Z)((0,Y.Z)({},Bt.current),ye)},vr=function(ye){if(rt){ye.stopPropagation(),Zn(!0);var Fn=ye.touches,wn=Fn===void 0?[]:Fn;wn.length>1?yr({point1:{x:wn[0].clientX,y:wn[0].clientY},point2:{x:wn[1].clientX,y:wn[1].clientY},eventType:"touchZoom"}):yr({point1:{x:wn[0].clientX-$t,y:wn[0].clientY-gn},eventType:"move"})}},Un=function(ye){var Fn=ye.touches,wn=Fn===void 0?[]:Fn,Jn=Bt.current,Ir=Jn.point1,Wr=Jn.point2,cr=Jn.eventType;if(wn.length>1&&cr==="touchZoom"){var ro={x:wn[0].clientX,y:wn[0].clientY},Kr={x:wn[1].clientX,y:wn[1].clientY},oi=We(Ir,Wr,ro,Kr),Kn=(0,w.Z)(oi,2),Dn=Kn[0],li=Kn[1],Nr=Me(ro,Kr)/Me(Ir,Wr);Mt(Nr,"touchZoom",Dn,li,!0),yr({point1:ro,point2:Kr,eventType:"touchZoom"})}else cr==="move"&&(Tt({x:wn[0].clientX-Ir.x,y:wn[0].clientY-Ir.y},"move"),yr({eventType:"move"}))},Wn=function(){if(ut){if(qn&&Zn(!1),yr({eventType:"none"}),At>$e)return Tt({x:0,y:0,scale:At},"touchZoom");var ye=gt.current.offsetWidth*$e,Fn=gt.current.offsetHeight*$e,wn=gt.current.getBoundingClientRect(),Jn=wn.left,Ir=wn.top,Wr=Ot%180!==0,cr=ue(Wr?Fn:ye,Wr?ye:Fn,Jn,Ir);cr&&Tt((0,Y.Z)({},cr),"dragRebound")}};return(0,M.useEffect)(function(){var wr;return ut&&rt&&(wr=(0,P.Z)(window,"touchmove",function(ye){return ye.preventDefault()},{passive:!1})),function(){var ye;(ye=wr)===null||ye===void 0||ye.remove()}},[ut,rt]),{isTouching:qn,onTouchStart:vr,onTouchMove:Un,onTouchEnd:Wn}}var et=["fallback","src","imgRef"],it=["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"],ze=function(rt){var ut=rt.fallback,At=rt.src,bt=rt.imgRef,Tt=(0,u.Z)(rt,et),Mt=De({src:At,fallback:ut}),Ot=(0,w.Z)(Mt,2),$e=Ot[0],$t=Ot[1];return M.createElement("img",(0,B.Z)({ref:function(Et){bt.current=Et,$e(Et)}},Tt,$t))},xe=function(rt){var ut=rt.prefixCls,At=rt.src,bt=rt.alt,Tt=rt.imageInfo,Mt=rt.fallback,Ot=rt.movable,$e=Ot===void 0?!0:Ot,$t=rt.onClose,gn=rt.visible,Et=rt.icons,Mn=Et===void 0?{}:Et,qn=rt.rootClassName,Zn=rt.closeIcon,Bt=rt.getContainer,yr=rt.current,vr=yr===void 0?0:yr,Un=rt.count,Wn=Un===void 0?1:Un,wr=rt.countRender,ye=rt.scaleStep,Fn=ye===void 0?.5:ye,wn=rt.minScale,Jn=wn===void 0?1:wn,Ir=rt.maxScale,Wr=Ir===void 0?50:Ir,cr=rt.transitionName,ro=cr===void 0?"zoom":cr,Kr=rt.maskTransitionName,oi=Kr===void 0?"fade":Kr,Kn=rt.imageRender,Dn=rt.imgCommonProps,li=rt.toolbarRender,Nr=rt.onTransform,Yr=rt.onChange,mn=(0,u.Z)(rt,it),zn=(0,M.useRef)(),Mr=(0,M.useContext)(ee),Ci=Mr&&Wn>1,vi=Mr&&Wn>=1,nt=(0,M.useState)(!0),vt=(0,w.Z)(nt,2),hn=vt[0],yn=vt[1],dt=pe(zn,Jn,Wr,Nr),on=dt.transform,kn=dt.resetTransform,_t=dt.updateTransform,we=dt.dispatchZoomChange,An=ke(zn,$e,gn,Fn,on,_t,we),Nn=An.isMoving,Ft=An.onMouseDown,hr=An.onWheel,Xn=je(zn,$e,gn,Jn,on,_t,we),or=Xn.isTouching,Tn=Xn.onTouchStart,mt=Xn.onTouchMove,fr=Xn.onTouchEnd,Li=on.rotate,Ut=on.scale,wi=y()((0,s.Z)({},"".concat(ut,"-moving"),Nn));(0,M.useEffect)(function(){hn||yn(!0)},[hn]);var Mi=function(){kn("close")},Or=function(){we(ce+Fn,"zoomIn")},Di=function(){we(ce/(ce+Fn),"zoomOut")},ii=function(){_t({rotate:Li+90},"rotateRight")},ui=function(){_t({rotate:Li-90},"rotateLeft")},$r=function(){_t({flipX:!on.flipX},"flipX")},ti=function(){_t({flipY:!on.flipY},"flipY")},si=function(){kn("reset")},Gt=function(mi){var Hr=vr+mi;!Number.isInteger(Hr)||Hr<0||Hr>Wn-1||(yn(!1),kn(mi<0?"prev":"next"),Yr==null||Yr(Hr,vr))},di=function(mi){!gn||!Ci||(mi.keyCode===U.Z.LEFT?Gt(-1):mi.keyCode===U.Z.RIGHT&&Gt(1))},Wt=function(mi){gn&&(Ut!==1?_t({x:0,y:0,scale:1},"doubleClick"):we(ce+Fn,"doubleClick",mi.clientX,mi.clientY))};(0,M.useEffect)(function(){var br=(0,P.Z)(window,"keydown",di,!1);return function(){br.remove()}},[gn,Ci,vr]);var Yn=M.createElement(ze,(0,B.Z)({},Dn,{width:rt.width,height:rt.height,imgRef:zn,className:"".concat(ut,"-img"),alt:bt,style:{transform:"translate3d(".concat(on.x,"px, ").concat(on.y,"px, 0) scale3d(").concat(on.flipX?"-":"").concat(Ut,", ").concat(on.flipY?"-":"").concat(Ut,", 1) rotate(").concat(Li,"deg)"),transitionDuration:(!hn||or)&&"0s"},fallback:Mt,src:At,onWheel:hr,onMouseDown:Ft,onDoubleClick:Wt,onTouchStart:Tn,onTouchMove:mt,onTouchEnd:fr,onTouchCancel:fr})),Dr=(0,Y.Z)({url:At,alt:bt},Tt);return M.createElement(M.Fragment,null,M.createElement(F.Z,(0,B.Z)({transitionName:ro,maskTransitionName:oi,closable:!1,keyboard:!0,prefixCls:ut,onClose:$t,visible:gn,classNames:{wrapper:wi},rootClassName:qn,getContainer:Bt},mn,{afterClose:Mi}),M.createElement("div",{className:"".concat(ut,"-img-wrapper")},Kn?Kn(Yn,(0,Y.Z)({transform:on,image:Dr},Mr?{current:vr}:{})):Yn)),M.createElement(oe,{visible:gn,transform:on,maskTransitionName:oi,closeIcon:Zn,getContainer:Bt,prefixCls:ut,rootClassName:qn,icons:Mn,countRender:wr,showSwitch:Ci,showProgress:vi,current:vr,count:Wn,scale:Ut,minScale:Jn,maxScale:Wr,toolbarRender:li,onActive:Gt,onZoomIn:Or,onZoomOut:Di,onRotateRight:ii,onRotateLeft:ui,onFlipX:$r,onFlipY:ti,onClose:$t,onReset:si,zIndex:mn.zIndex!==void 0?mn.zIndex+1:void 0,image:Dr}))},fe=xe,W=S(15142),Z=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function me(gt){var rt=M.useState({}),ut=(0,w.Z)(rt,2),At=ut[0],bt=ut[1],Tt=M.useCallback(function(Ot,$e){return bt(function($t){return(0,Y.Z)((0,Y.Z)({},$t),{},(0,s.Z)({},Ot,$e))}),function(){bt(function($t){var gn=(0,Y.Z)({},$t);return delete gn[Ot],gn})}},[]),Mt=M.useMemo(function(){return gt?gt.map(function(Ot){if(typeof Ot=="string")return{data:{src:Ot}};var $e={};return Object.keys(Ot).forEach(function($t){["src"].concat((0,W.Z)(Z)).includes($t)&&($e[$t]=Ot[$t])}),{data:$e}}):Object.keys(At).reduce(function(Ot,$e){var $t=At[$e],gn=$t.canPreview,Et=$t.data;return gn&&Ot.push({data:Et,id:$e}),Ot},[])},[gt,At]);return[Mt,Tt,!!gt]}var Ce=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],re=["src"],ie=function(rt){var ut,At=rt.previewPrefixCls,bt=At===void 0?"rc-image-preview":At,Tt=rt.children,Mt=rt.icons,Ot=Mt===void 0?{}:Mt,$e=rt.items,$t=rt.preview,gn=rt.fallback,Et=(0,_.Z)($t)==="object"?$t:{},Mn=Et.visible,qn=Et.onVisibleChange,Zn=Et.getContainer,Bt=Et.current,yr=Et.movable,vr=Et.minScale,Un=Et.maxScale,Wn=Et.countRender,wr=Et.closeIcon,ye=Et.onChange,Fn=Et.onTransform,wn=Et.toolbarRender,Jn=Et.imageRender,Ir=(0,u.Z)(Et,Ce),Wr=me($e),cr=(0,w.Z)(Wr,3),ro=cr[0],Kr=cr[1],oi=cr[2],Kn=(0,H.Z)(0,{value:Bt}),Dn=(0,w.Z)(Kn,2),li=Dn[0],Nr=Dn[1],Yr=(0,M.useState)(!1),mn=(0,w.Z)(Yr,2),zn=mn[0],Mr=mn[1],Ci=((ut=ro[li])===null||ut===void 0?void 0:ut.data)||{},vi=Ci.src,nt=(0,u.Z)(Ci,re),vt=(0,H.Z)(!!Mn,{value:Mn,onChange:function(or,Tn){qn==null||qn(or,Tn,li)}}),hn=(0,w.Z)(vt,2),yn=hn[0],dt=hn[1],on=(0,M.useState)(null),kn=(0,w.Z)(on,2),_t=kn[0],we=kn[1],An=M.useCallback(function(Xn,or,Tn,mt){var fr=oi?ro.findIndex(function(Li){return Li.data.src===or}):ro.findIndex(function(Li){return Li.id===Xn});Nr(fr<0?0:fr),dt(!0),we({x:Tn,y:mt}),Mr(!0)},[ro,oi]);M.useEffect(function(){yn?zn||Nr(0):Mr(!1)},[yn]);var Nn=function(or,Tn){Nr(or),ye==null||ye(or,Tn)},Ft=function(){dt(!1),we(null)},hr=M.useMemo(function(){return{register:Kr,onPreview:An}},[Kr,An]);return M.createElement(ee.Provider,{value:hr},Tt,M.createElement(fe,(0,B.Z)({"aria-hidden":!yn,movable:yr,visible:yn,prefixCls:bt,closeIcon:wr,onClose:Ft,mousePosition:_t,imgCommonProps:nt,src:vi,fallback:gn,icons:Ot,minScale:vr,maxScale:Un,getContainer:Zn,current:li,count:ro.length,countRender:Wn,onTransform:Fn,toolbarRender:wn,imageRender:Jn,onChange:Nn},Ir)))},de=ie,Ae=0;function Be(gt,rt){var ut=M.useState(function(){return Ae+=1,String(Ae)}),At=(0,w.Z)(ut,1),bt=At[0],Tt=M.useContext(ee),Mt={data:rt,canPreview:gt};return M.useEffect(function(){if(Tt)return Tt.register(bt,Mt)},[]),M.useEffect(function(){Tt&&Tt.register(bt,Mt)},[gt,rt]),bt}var He=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],st=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Qe=function(rt){var ut=rt.src,At=rt.alt,bt=rt.onPreviewClose,Tt=rt.prefixCls,Mt=Tt===void 0?"rc-image":Tt,Ot=rt.previewPrefixCls,$e=Ot===void 0?"".concat(Mt,"-preview"):Ot,$t=rt.placeholder,gn=rt.fallback,Et=rt.width,Mn=rt.height,qn=rt.style,Zn=rt.preview,Bt=Zn===void 0?!0:Zn,yr=rt.className,vr=rt.onClick,Un=rt.onError,Wn=rt.wrapperClassName,wr=rt.wrapperStyle,ye=rt.rootClassName,Fn=(0,u.Z)(rt,He),wn=$t&&$t!==!0,Jn=(0,_.Z)(Bt)==="object"?Bt:{},Ir=Jn.src,Wr=Jn.visible,cr=Wr===void 0?void 0:Wr,ro=Jn.onVisibleChange,Kr=ro===void 0?bt:ro,oi=Jn.getContainer,Kn=oi===void 0?void 0:oi,Dn=Jn.mask,li=Jn.maskClassName,Nr=Jn.movable,Yr=Jn.icons,mn=Jn.scaleStep,zn=Jn.minScale,Mr=Jn.maxScale,Ci=Jn.imageRender,vi=Jn.toolbarRender,nt=(0,u.Z)(Jn,st),vt=Ir!=null?Ir:ut,hn=(0,H.Z)(!!cr,{value:cr,onChange:Kr}),yn=(0,w.Z)(hn,2),dt=yn[0],on=yn[1],kn=De({src:ut,isCustomPlaceholder:wn,fallback:gn}),_t=(0,w.Z)(kn,3),we=_t[0],An=_t[1],Nn=_t[2],Ft=(0,M.useState)(null),hr=(0,w.Z)(Ft,2),Xn=hr[0],or=hr[1],Tn=(0,M.useContext)(ee),mt=!!Bt,fr=function(){on(!1),or(null)},Li=y()(Mt,Wn,ye,(0,s.Z)({},"".concat(Mt,"-error"),Nn==="error")),Ut=(0,M.useMemo)(function(){var Di={};return Z.forEach(function(ii){rt[ii]!==void 0&&(Di[ii]=rt[ii])}),Di},Z.map(function(Di){return rt[Di]})),wi=(0,M.useMemo)(function(){return(0,Y.Z)((0,Y.Z)({},Ut),{},{src:vt})},[vt,Ut]),Mi=Be(mt,wi),Or=function(ii){var ui=L(ii.target),$r=ui.left,ti=ui.top;Tn?Tn.onPreview(Mi,vt,$r,ti):(or({x:$r,y:ti}),on(!0)),vr==null||vr(ii)};return M.createElement(M.Fragment,null,M.createElement("div",(0,B.Z)({},Fn,{className:Li,onClick:mt?Or:vr,style:(0,Y.Z)({width:Et,height:Mn},wr)}),M.createElement("img",(0,B.Z)({},Ut,{className:y()("".concat(Mt,"-img"),(0,s.Z)({},"".concat(Mt,"-img-placeholder"),$t===!0),yr),style:(0,Y.Z)({height:Mn},qn),ref:we},An,{width:Et,height:Mn,onError:Un})),Nn==="loading"&&M.createElement("div",{"aria-hidden":"true",className:"".concat(Mt,"-placeholder")},$t),Dn&&mt&&M.createElement("div",{className:y()("".concat(Mt,"-mask"),li),style:{display:(qn==null?void 0:qn.display)==="none"?"none":void 0}},Dn)),!Tn&&mt&&M.createElement(fe,(0,B.Z)({"aria-hidden":!dt,visible:dt,prefixCls:$e,onClose:fr,mousePosition:Xn,src:vt,alt:At,imageInfo:{width:Et,height:Mn},fallback:gn,getContainer:Kn,icons:Yr,movable:Nr,scaleStep:mn,minScale:zn,maxScale:Mr,rootClassName:ye,imageRender:Ci,imgCommonProps:Ut,toolbarRender:vi},nt)))};Qe.PreviewGroup=de;var pt=Qe,It=pt},23425:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return F}});var B=S(52873),Y=S(67711),s=S(26420),w=S(98506),_=S(16886),u=S(92310),p=S.n(u),y=S(18929),m=S(10228),b=S(26112),v=S(48736),c=S(59301),h=S(17119),g=[10,20,50,100],x=function(U){var G=U.pageSizeOptions,Q=G===void 0?g:G,ee=U.locale,ae=U.changeSize,oe=U.pageSize,he=U.goButton,le=U.quickGo,be=U.rootPrefixCls,pe=U.disabled,_e=U.buildOptionText,ne=U.showSizeChanger,ue=U.sizeChangerRender,ce=c.useState(""),Re=(0,_.Z)(ce,2),ke=Re[0],Ne=Re[1],De=function(){return!ke||Number.isNaN(ke)?void 0:Number(ke)},Me=typeof _e=="function"?_e:function(Z){return"".concat(Z," ").concat(ee.items_per_page)},We=function(me){Ne(me.target.value)},je=function(me){he||ke===""||(Ne(""),!(me.relatedTarget&&(me.relatedTarget.className.indexOf("".concat(be,"-item-link"))>=0||me.relatedTarget.className.indexOf("".concat(be,"-item"))>=0))&&(le==null||le(De())))},et=function(me){ke!==""&&(me.keyCode===m.Z.ENTER||me.type==="click")&&(Ne(""),le==null||le(De()))},it=function(){return Q.some(function(me){return me.toString()===oe.toString()})?Q:Q.concat([oe]).sort(function(me,Ce){var re=Number.isNaN(Number(me))?0:Number(me),ie=Number.isNaN(Number(Ce))?0:Number(Ce);return re-ie})},ze="".concat(be,"-options");if(!ne&&!le)return null;var xe=null,fe=null,W=null;return ne&&ue&&(xe=ue({disabled:pe,size:oe,onSizeChange:function(me){ae==null||ae(Number(me))},"aria-label":ee.page_size,className:"".concat(ze,"-size-changer"),options:it().map(function(Z){return{label:Me(Z),value:Z}})})),le&&(he&&(W=typeof he=="boolean"?c.createElement("button",{type:"button",onClick:et,onKeyUp:et,disabled:pe,className:"".concat(ze,"-quick-jumper-button")},ee.jump_to_confirm):c.createElement("span",{onClick:et,onKeyUp:et},he)),fe=c.createElement("div",{className:"".concat(ze,"-quick-jumper")},ee.jump_to,c.createElement("input",{disabled:pe,type:"text",value:ke,onChange:We,onKeyUp:et,onBlur:je,"aria-label":ee.page}),ee.page,W)),c.createElement("li",{className:ze},xe,fe)},T=x,I=function(U){var G=U.rootPrefixCls,Q=U.page,ee=U.active,ae=U.className,oe=U.showTitle,he=U.onClick,le=U.onKeyPress,be=U.itemRender,pe="".concat(G,"-item"),_e=p()(pe,"".concat(pe,"-").concat(Q),(0,B.Z)((0,B.Z)({},"".concat(pe,"-active"),ee),"".concat(pe,"-disabled"),!Q),ae),ne=function(){he(Q)},ue=function(ke){le(ke,he,Q)},ce=be(Q,"page",c.createElement("a",{rel:"nofollow"},Q));return ce?c.createElement("li",{title:oe?String(Q):null,className:_e,onClick:ne,onKeyDown:ue,tabIndex:0},ce):null},R=I,N=function(U,G,Q){return Q};function k(){}function L(P){var U=Number(P);return typeof U=="number"&&!Number.isNaN(U)&&isFinite(U)&&Math.floor(U)===U}function H(P,U,G){var Q=typeof P=="undefined"?U:P;return Math.floor((G-1)/Q)+1}var M=function(U){var G=U.prefixCls,Q=G===void 0?"rc-pagination":G,ee=U.selectPrefixCls,ae=ee===void 0?"rc-select":ee,oe=U.className,he=U.current,le=U.defaultCurrent,be=le===void 0?1:le,pe=U.total,_e=pe===void 0?0:pe,ne=U.pageSize,ue=U.defaultPageSize,ce=ue===void 0?10:ue,Re=U.onChange,ke=Re===void 0?k:Re,Ne=U.hideOnSinglePage,De=U.align,Me=U.showPrevNextJumpers,We=Me===void 0?!0:Me,je=U.showQuickJumper,et=U.showLessItems,it=U.showTitle,ze=it===void 0?!0:it,xe=U.onShowSizeChange,fe=xe===void 0?k:xe,W=U.locale,Z=W===void 0?h.Z:W,me=U.style,Ce=U.totalBoundaryShowSizeChanger,re=Ce===void 0?50:Ce,ie=U.disabled,de=U.simple,Ae=U.showTotal,Be=U.showSizeChanger,He=Be===void 0?_e>re:Be,st=U.sizeChangerRender,Qe=U.pageSizeOptions,pt=U.itemRender,It=pt===void 0?N:pt,gt=U.jumpPrevIcon,rt=U.jumpNextIcon,ut=U.prevIcon,At=U.nextIcon,bt=c.useRef(null),Tt=(0,y.Z)(10,{value:ne,defaultValue:ce}),Mt=(0,_.Z)(Tt,2),Ot=Mt[0],$e=Mt[1],$t=(0,y.Z)(1,{value:he,defaultValue:be,postState:function(Dr){return Math.max(1,Math.min(Dr,H(void 0,Ot,_e)))}}),gn=(0,_.Z)($t,2),Et=gn[0],Mn=gn[1],qn=c.useState(Et),Zn=(0,_.Z)(qn,2),Bt=Zn[0],yr=Zn[1];(0,c.useEffect)(function(){yr(Et)},[Et]);var vr=ke!==k,Un="current"in U,Wn=Math.max(1,Et-(et?3:5)),wr=Math.min(H(void 0,Ot,_e),Et+(et?3:5));function ye(Yn,Dr){var br=Yn||c.createElement("button",{type:"button","aria-label":Dr,className:"".concat(Q,"-item-link")});return typeof Yn=="function"&&(br=c.createElement(Yn,(0,w.Z)({},U))),br}function Fn(Yn){var Dr=Yn.target.value,br=H(void 0,Ot,_e),mi;return Dr===""?mi=Dr:Number.isNaN(Number(Dr))?mi=Bt:Dr>=br?mi=br:mi=Number(Dr),mi}function wn(Yn){return L(Yn)&&Yn!==Et&&L(_e)&&_e>0}var Jn=_e>Ot?je:!1;function Ir(Yn){(Yn.keyCode===m.Z.UP||Yn.keyCode===m.Z.DOWN)&&Yn.preventDefault()}function Wr(Yn){var Dr=Fn(Yn);switch(Dr!==Bt&&yr(Dr),Yn.keyCode){case m.Z.ENTER:Kr(Dr);break;case m.Z.UP:Kr(Dr-1);break;case m.Z.DOWN:Kr(Dr+1);break;default:break}}function cr(Yn){Kr(Fn(Yn))}function ro(Yn){var Dr=H(Yn,Ot,_e),br=Et>Dr&&Dr!==0?Dr:Et;$e(Yn),yr(br),fe==null||fe(Et,Yn),Mn(br),ke==null||ke(br,Yn)}function Kr(Yn){if(wn(Yn)&&!ie){var Dr=H(void 0,Ot,_e),br=Yn;return Yn>Dr?br=Dr:Yn<1&&(br=1),br!==Bt&&yr(br),Mn(br),ke==null||ke(br,Ot),br}return Et}var oi=Et>1,Kn=Et<H(void 0,Ot,_e);function Dn(){oi&&Kr(Et-1)}function li(){Kn&&Kr(Et+1)}function Nr(){Kr(Wn)}function Yr(){Kr(wr)}function mn(Yn,Dr){if(Yn.key==="Enter"||Yn.charCode===m.Z.ENTER||Yn.keyCode===m.Z.ENTER){for(var br=arguments.length,mi=new Array(br>2?br-2:0),Hr=2;Hr<br;Hr++)mi[Hr-2]=arguments[Hr];Dr.apply(void 0,mi)}}function zn(Yn){mn(Yn,Dn)}function Mr(Yn){mn(Yn,li)}function Ci(Yn){mn(Yn,Nr)}function vi(Yn){mn(Yn,Yr)}function nt(Yn){var Dr=It(Yn,"prev",ye(ut,"prev page"));return c.isValidElement(Dr)?c.cloneElement(Dr,{disabled:!oi}):Dr}function vt(Yn){var Dr=It(Yn,"next",ye(At,"next page"));return c.isValidElement(Dr)?c.cloneElement(Dr,{disabled:!Kn}):Dr}function hn(Yn){(Yn.type==="click"||Yn.keyCode===m.Z.ENTER)&&Kr(Bt)}var yn=null,dt=(0,b.Z)(U,{aria:!0,data:!0}),on=Ae&&c.createElement("li",{className:"".concat(Q,"-total-text")},Ae(_e,[_e===0?0:(Et-1)*Ot+1,Et*Ot>_e?_e:Et*Ot])),kn=null,_t=H(void 0,Ot,_e);if(Ne&&_e<=Ot)return null;var we=[],An={rootPrefixCls:Q,onClick:Kr,onKeyPress:mn,showTitle:ze,itemRender:It,page:-1},Nn=Et-1>0?Et-1:0,Ft=Et+1<_t?Et+1:_t,hr=je&&je.goButton,Xn=(0,s.Z)(de)==="object"?de.readOnly:!de,or=hr,Tn=null;de&&(hr&&(typeof hr=="boolean"?or=c.createElement("button",{type:"button",onClick:hn,onKeyUp:hn},Z.jump_to_confirm):or=c.createElement("span",{onClick:hn,onKeyUp:hn},hr),or=c.createElement("li",{title:ze?"".concat(Z.jump_to).concat(Et,"/").concat(_t):null,className:"".concat(Q,"-simple-pager")},or)),Tn=c.createElement("li",{title:ze?"".concat(Et,"/").concat(_t):null,className:"".concat(Q,"-simple-pager")},Xn?Bt:c.createElement("input",{type:"text","aria-label":Z.jump_to,value:Bt,disabled:ie,onKeyDown:Ir,onKeyUp:Wr,onChange:Wr,onBlur:cr,size:3}),c.createElement("span",{className:"".concat(Q,"-slash")},"/"),_t));var mt=et?1:2;if(_t<=3+mt*2){_t||we.push(c.createElement(R,(0,Y.Z)({},An,{key:"noPager",page:1,className:"".concat(Q,"-item-disabled")})));for(var fr=1;fr<=_t;fr+=1)we.push(c.createElement(R,(0,Y.Z)({},An,{key:fr,page:fr,active:Et===fr})))}else{var Li=et?Z.prev_3:Z.prev_5,Ut=et?Z.next_3:Z.next_5,wi=It(Wn,"jump-prev",ye(gt,"prev page")),Mi=It(wr,"jump-next",ye(rt,"next page"));We&&(yn=wi?c.createElement("li",{title:ze?Li:null,key:"prev",onClick:Nr,tabIndex:0,onKeyDown:Ci,className:p()("".concat(Q,"-jump-prev"),(0,B.Z)({},"".concat(Q,"-jump-prev-custom-icon"),!!gt))},wi):null,kn=Mi?c.createElement("li",{title:ze?Ut:null,key:"next",onClick:Yr,tabIndex:0,onKeyDown:vi,className:p()("".concat(Q,"-jump-next"),(0,B.Z)({},"".concat(Q,"-jump-next-custom-icon"),!!rt))},Mi):null);var Or=Math.max(1,Et-mt),Di=Math.min(Et+mt,_t);Et-1<=mt&&(Di=1+mt*2),_t-Et<=mt&&(Or=_t-mt*2);for(var ii=Or;ii<=Di;ii+=1)we.push(c.createElement(R,(0,Y.Z)({},An,{key:ii,page:ii,active:Et===ii})));if(Et-1>=mt*2&&Et!==3&&(we[0]=c.cloneElement(we[0],{className:p()("".concat(Q,"-item-after-jump-prev"),we[0].props.className)}),we.unshift(yn)),_t-Et>=mt*2&&Et!==_t-2){var ui=we[we.length-1];we[we.length-1]=c.cloneElement(ui,{className:p()("".concat(Q,"-item-before-jump-next"),ui.props.className)}),we.push(kn)}Or!==1&&we.unshift(c.createElement(R,(0,Y.Z)({},An,{key:1,page:1}))),Di!==_t&&we.push(c.createElement(R,(0,Y.Z)({},An,{key:_t,page:_t})))}var $r=nt(Nn);if($r){var ti=!oi||!_t;$r=c.createElement("li",{title:ze?Z.prev_page:null,onClick:Dn,tabIndex:ti?null:0,onKeyDown:zn,className:p()("".concat(Q,"-prev"),(0,B.Z)({},"".concat(Q,"-disabled"),ti)),"aria-disabled":ti},$r)}var si=vt(Ft);if(si){var Gt,di;de?(Gt=!Kn,di=oi?0:null):(Gt=!Kn||!_t,di=Gt?null:0),si=c.createElement("li",{title:ze?Z.next_page:null,onClick:li,tabIndex:di,onKeyDown:Mr,className:p()("".concat(Q,"-next"),(0,B.Z)({},"".concat(Q,"-disabled"),Gt)),"aria-disabled":Gt},si)}var Wt=p()(Q,oe,(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(Q,"-start"),De==="start"),"".concat(Q,"-center"),De==="center"),"".concat(Q,"-end"),De==="end"),"".concat(Q,"-simple"),de),"".concat(Q,"-disabled"),ie));return c.createElement("ul",(0,Y.Z)({className:Wt,style:me,ref:bt},dt),on,$r,de?Tn:we,si,c.createElement(T,{locale:Z,rootPrefixCls:Q,disabled:ie,selectPrefixCls:ae,changeSize:ro,pageSize:Ot,pageSizeOptions:Qe,quickGo:Jn?Kr:null,goButton:or,showSizeChanger:He,sizeChangerRender:st}))},F=M},25930:function(Oe,J,S){"use strict";S.d(J,{Cd:function(){return Q}});var B=S(67711),Y=S(98506),s=S(33346),w=S(59301),_=S(92310),u=S.n(_),p={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},y=function(){var oe=(0,w.useRef)([]),he=(0,w.useRef)(null);return(0,w.useEffect)(function(){var le=Date.now(),be=!1;oe.current.forEach(function(pe){if(pe){be=!0;var _e=pe.style;_e.transitionDuration=".3s, .3s, .3s, .06s",he.current&&le-he.current<100&&(_e.transitionDuration="0s, 0s")}}),be&&(he.current=Date.now())}),oe.current},m=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],b=function(oe){var he=(0,Y.Z)((0,Y.Z)({},p),oe),le=he.className,be=he.percent,pe=he.prefixCls,_e=he.strokeColor,ne=he.strokeLinecap,ue=he.strokeWidth,ce=he.style,Re=he.trailColor,ke=he.trailWidth,Ne=he.transition,De=(0,s.Z)(he,m);delete De.gapPosition;var Me=Array.isArray(be)?be:[be],We=Array.isArray(_e)?_e:[_e],je=y(),et=ue/2,it=100-ue/2,ze="M ".concat(ne==="round"?et:0,",").concat(et,`
L `).concat(ne==="round"?it:100,",").concat(et),xe="0 0 100 ".concat(ue),fe=0;return w.createElement("svg",(0,B.Z)({className:u()("".concat(pe,"-line"),le),viewBox:xe,preserveAspectRatio:"none",style:ce},De),w.createElement("path",{className:"".concat(pe,"-line-trail"),d:ze,strokeLinecap:ne,stroke:Re,strokeWidth:ke||ue,fillOpacity:"0"}),Me.map(function(W,Z){var me=1;switch(ne){case"round":me=1-ue/100;break;case"square":me=1-ue/2/100;break;default:me=1;break}var Ce={strokeDasharray:"".concat(W*me,"px, 100px"),strokeDashoffset:"-".concat(fe,"px"),transition:Ne||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},re=We[Z]||We[We.length-1];return fe+=W,w.createElement("path",{key:Z,className:"".concat(pe,"-line-path"),d:ze,strokeLinecap:ne,stroke:re,strokeWidth:ue,fillOpacity:"0",ref:function(de){je[Z]=de},style:Ce})}))},v=b,c=S(26420),h=S(16886),g=S(47273),x=0,T=(0,g.Z)();function I(){var ae;return T?(ae=x,x+=1):ae="TEST_OR_SSR",ae}var R=function(ae){var oe=w.useState(),he=(0,h.Z)(oe,2),le=he[0],be=he[1];return w.useEffect(function(){be("rc_progress_".concat(I()))},[]),ae||le},N=function(oe){var he=oe.bg,le=oe.children;return w.createElement("div",{style:{width:"100%",height:"100%",background:he}},le)};function k(ae,oe){return Object.keys(ae).map(function(he){var le=parseFloat(he),be="".concat(Math.floor(le*oe),"%");return"".concat(ae[he]," ").concat(be)})}var L=w.forwardRef(function(ae,oe){var he=ae.prefixCls,le=ae.color,be=ae.gradientId,pe=ae.radius,_e=ae.style,ne=ae.ptg,ue=ae.strokeLinecap,ce=ae.strokeWidth,Re=ae.size,ke=ae.gapDegree,Ne=le&&(0,c.Z)(le)==="object",De=Ne?"#FFF":void 0,Me=Re/2,We=w.createElement("circle",{className:"".concat(he,"-circle-path"),r:pe,cx:Me,cy:Me,stroke:De,strokeLinecap:ue,strokeWidth:ce,opacity:ne===0?0:1,style:_e,ref:oe});if(!Ne)return We;var je="".concat(be,"-conic"),et=ke?"".concat(180+ke/2,"deg"):"0deg",it=k(le,(360-ke)/360),ze=k(le,1),xe="conic-gradient(from ".concat(et,", ").concat(it.join(", "),")"),fe="linear-gradient(to ".concat(ke?"bottom":"top",", ").concat(ze.join(", "),")");return w.createElement(w.Fragment,null,w.createElement("mask",{id:je},We),w.createElement("foreignObject",{x:0,y:0,width:Re,height:Re,mask:"url(#".concat(je,")")},w.createElement(N,{bg:fe},w.createElement(N,{bg:xe}))))}),H=L,M=100,F=function(oe,he,le,be,pe,_e,ne,ue,ce,Re){var ke=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ne=le/100*360*((360-_e)/360),De=_e===0?0:{bottom:0,top:180,left:90,right:-90}[ne],Me=(100-be)/100*he;ce==="round"&&be!==100&&(Me+=Re/2,Me>=he&&(Me=he-.01));var We=M/2;return{stroke:typeof ue=="string"?ue:void 0,strokeDasharray:"".concat(he,"px ").concat(oe),strokeDashoffset:Me+ke,transform:"rotate(".concat(pe+Ne+De,"deg)"),transformOrigin:"".concat(We,"px ").concat(We,"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 U(ae){var oe=ae!=null?ae:[];return Array.isArray(oe)?oe:[oe]}var G=function(oe){var he=(0,Y.Z)((0,Y.Z)({},p),oe),le=he.id,be=he.prefixCls,pe=he.steps,_e=he.strokeWidth,ne=he.trailWidth,ue=he.gapDegree,ce=ue===void 0?0:ue,Re=he.gapPosition,ke=he.trailColor,Ne=he.strokeLinecap,De=he.style,Me=he.className,We=he.strokeColor,je=he.percent,et=(0,s.Z)(he,P),it=M/2,ze=R(le),xe="".concat(ze,"-gradient"),fe=it-_e/2,W=Math.PI*2*fe,Z=ce>0?90+ce/2:-90,me=W*((360-ce)/360),Ce=(0,c.Z)(pe)==="object"?pe:{count:pe,gap:2},re=Ce.count,ie=Ce.gap,de=U(je),Ae=U(We),Be=Ae.find(function(rt){return rt&&(0,c.Z)(rt)==="object"}),He=Be&&(0,c.Z)(Be)==="object",st=He?"butt":Ne,Qe=F(W,me,0,100,Z,ce,Re,ke,st,_e),pt=y(),It=function(){var ut=0;return de.map(function(At,bt){var Tt=Ae[bt]||Ae[Ae.length-1],Mt=F(W,me,ut,At,Z,ce,Re,Tt,st,_e);return ut+=At,w.createElement(H,{key:bt,color:Tt,ptg:At,radius:fe,prefixCls:be,gradientId:xe,style:Mt,strokeLinecap:st,strokeWidth:_e,gapDegree:ce,ref:function($e){pt[bt]=$e},size:M})}).reverse()},gt=function(){var ut=Math.round(re*(de[0]/100)),At=100/re,bt=0;return new Array(re).fill(null).map(function(Tt,Mt){var Ot=Mt<=ut-1?Ae[0]:ke,$e=Ot&&(0,c.Z)(Ot)==="object"?"url(#".concat(xe,")"):void 0,$t=F(W,me,bt,At,Z,ce,Re,Ot,"butt",_e,ie);return bt+=(me-$t.strokeDashoffset+ie)*100/me,w.createElement("circle",{key:Mt,className:"".concat(be,"-circle-path"),r:fe,cx:it,cy:it,stroke:$e,strokeWidth:_e,opacity:1,style:$t,ref:function(Et){pt[Mt]=Et}})})};return w.createElement("svg",(0,B.Z)({className:u()("".concat(be,"-circle"),Me),viewBox:"0 0 ".concat(M," ").concat(M),style:De,id:le,role:"presentation"},et),!re&&w.createElement("circle",{className:"".concat(be,"-circle-trail"),r:fe,cx:it,cy:it,stroke:ke,strokeLinecap:st,strokeWidth:ne||_e,style:Qe}),re?gt():It())},Q=G,ee={Line:v,Circle:Q}},738:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return k}});var B=S(67711),Y=S(52873),s=S(16886),w=S(33346),_=S(92310),u=S.n(_),p=S(18929),y=S(10228),m=S(26112),b=S(59301);function v(L,H){var M=L.disabled,F=L.prefixCls,P=L.character,U=L.characterRender,G=L.index,Q=L.count,ee=L.value,ae=L.allowHalf,oe=L.focused,he=L.onHover,le=L.onClick,be=function(Ne){he(Ne,G)},pe=function(Ne){le(Ne,G)},_e=function(Ne){Ne.keyCode===y.Z.ENTER&&le(Ne,G)},ne=G+1,ue=new Set([F]);ee===0&&G===0&&oe?ue.add("".concat(F,"-focused")):ae&&ee+.5>=ne&&ee<ne?(ue.add("".concat(F,"-half")),ue.add("".concat(F,"-active")),oe&&ue.add("".concat(F,"-focused"))):(ne<=ee?ue.add("".concat(F,"-full")):ue.add("".concat(F,"-zero")),ne===ee&&oe&&ue.add("".concat(F,"-focused")));var ce=typeof P=="function"?P(L):P,Re=b.createElement("li",{className:u()(Array.from(ue)),ref:H},b.createElement("div",{onClick:M?null:pe,onKeyDown:M?null:_e,onMouseMove:M?null:be,role:"radio","aria-checked":ee>G?"true":"false","aria-posinset":G+1,"aria-setsize":Q,tabIndex:M?-1:0},b.createElement("div",{className:"".concat(F,"-first")},ce),b.createElement("div",{className:"".concat(F,"-second")},ce)));return U&&(Re=U(Re,L)),Re}var c=b.forwardRef(v);function h(){var L=b.useRef({});function H(F){return L.current[F]}function M(F){return function(P){L.current[F]=P}}return[H,M]}function g(L){var H=L.pageXOffset,M="scrollLeft";if(typeof H!="number"){var F=L.document;H=F.documentElement[M],typeof H!="number"&&(H=F.body[M])}return H}function x(L){var H,M,F=L.ownerDocument,P=F.body,U=F&&F.documentElement,G=L.getBoundingClientRect();return H=G.left,M=G.top,H-=U.clientLeft||P.clientLeft||0,M-=U.clientTop||P.clientTop||0,{left:H,top:M}}function T(L){var H=x(L),M=L.ownerDocument,F=M.defaultView||M.parentWindow;return H.left+=g(F),H.left}var I=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function R(L,H){var M=L.prefixCls,F=M===void 0?"rc-rate":M,P=L.className,U=L.defaultValue,G=L.value,Q=L.count,ee=Q===void 0?5:Q,ae=L.allowHalf,oe=ae===void 0?!1:ae,he=L.allowClear,le=he===void 0?!0:he,be=L.keyboard,pe=be===void 0?!0:be,_e=L.character,ne=_e===void 0?"\u2605":_e,ue=L.characterRender,ce=L.disabled,Re=L.direction,ke=Re===void 0?"ltr":Re,Ne=L.tabIndex,De=Ne===void 0?0:Ne,Me=L.autoFocus,We=L.onHoverChange,je=L.onChange,et=L.onFocus,it=L.onBlur,ze=L.onKeyDown,xe=L.onMouseLeave,fe=(0,w.Z)(L,I),W=h(),Z=(0,s.Z)(W,2),me=Z[0],Ce=Z[1],re=b.useRef(null),ie=function(){if(!ce){var Wn;(Wn=re.current)===null||Wn===void 0||Wn.focus()}};b.useImperativeHandle(H,function(){return{focus:ie,blur:function(){if(!ce){var Wn;(Wn=re.current)===null||Wn===void 0||Wn.blur()}}}});var de=(0,p.Z)(U||0,{value:G}),Ae=(0,s.Z)(de,2),Be=Ae[0],He=Ae[1],st=(0,p.Z)(null),Qe=(0,s.Z)(st,2),pt=Qe[0],It=Qe[1],gt=function(Wn,wr){var ye=ke==="rtl",Fn=Wn+1;if(oe){var wn=me(Wn),Jn=T(wn),Ir=wn.clientWidth;(ye&&wr-Jn>Ir/2||!ye&&wr-Jn<Ir/2)&&(Fn-=.5)}return Fn},rt=function(Wn){He(Wn),je==null||je(Wn)},ut=b.useState(!1),At=(0,s.Z)(ut,2),bt=At[0],Tt=At[1],Mt=function(){Tt(!0),et==null||et()},Ot=function(){Tt(!1),it==null||it()},$e=b.useState(null),$t=(0,s.Z)($e,2),gn=$t[0],Et=$t[1],Mn=function(Wn,wr){var ye=gt(wr,Wn.pageX);ye!==pt&&(Et(ye),It(null)),We==null||We(ye)},qn=function(Wn){ce||(Et(null),It(null),We==null||We(void 0)),Wn&&(xe==null||xe(Wn))},Zn=function(Wn,wr){var ye=gt(wr,Wn.pageX),Fn=!1;le&&(Fn=ye===Be),qn(),rt(Fn?0:ye),It(Fn?ye:null)},Bt=function(Wn){var wr=Wn.keyCode,ye=ke==="rtl",Fn=oe?.5:1;pe&&(wr===y.Z.RIGHT&&Be<ee&&!ye?(rt(Be+Fn),Wn.preventDefault()):wr===y.Z.LEFT&&Be>0&&!ye||wr===y.Z.RIGHT&&Be>0&&ye?(rt(Be-Fn),Wn.preventDefault()):wr===y.Z.LEFT&&Be<ee&&ye&&(rt(Be+Fn),Wn.preventDefault())),ze==null||ze(Wn)};b.useEffect(function(){Me&&!ce&&ie()},[]);var yr=new Array(ee).fill(0).map(function(Un,Wn){return b.createElement(c,{ref:Ce(Wn),index:Wn,count:ee,disabled:ce,prefixCls:"".concat(F,"-star"),allowHalf:oe,value:gn===null?Be:gn,onClick:Zn,onHover:Mn,key:Un||Wn,character:ne,characterRender:ue,focused:bt})}),vr=u()(F,P,(0,Y.Z)((0,Y.Z)({},"".concat(F,"-disabled"),ce),"".concat(F,"-rtl"),ke==="rtl"));return b.createElement("ul",(0,B.Z)({className:vr,onMouseLeave:qn,tabIndex:ce?-1:De,onFocus:ce?null:Mt,onBlur:ce?null:Ot,onKeyDown:ce?null:Bt,ref:re},(0,m.Z)(fe,{aria:!0,data:!0,attr:!0})),yr)}var N=b.forwardRef(R),k=N},6551:function(Oe,J,S){"use strict";S.d(J,{ZP:function(){return p}});var B=S(16886),Y=S(59301),s=S(47273),w=0,_=(0,s.Z)();function u(){var y;return _?(y=w,w+=1):y="TEST_OR_SSR",y}function p(y){var m=Y.useState(),b=(0,B.Z)(m,2),v=b[0],c=b[1];return Y.useEffect(function(){c("rc_select_".concat(u()))},[]),y||v}},37463:function(Oe,J,S){"use strict";S.d(J,{Ac:function(){return Tt},Xo:function(){return Ot},Wx:function(){return $t},ZP:function(){return vi},lk:function(){return k}});var B=S(67711),Y=S(15142),s=S(52873),w=S(98506),_=S(16886),u=S(33346),p=S(26420),y=S(18929),m=S(48736),b=S(59301),v=S(92310),c=S.n(v),h=S(34280),g=S(49658),x=S(8654),T=function(vt){var hn=vt.className,yn=vt.customizeIcon,dt=vt.customizeIconProps,on=vt.children,kn=vt.onMouseDown,_t=vt.onClick,we=typeof yn=="function"?yn(dt):yn;return b.createElement("span",{className:hn,onMouseDown:function(Nn){Nn.preventDefault(),kn==null||kn(Nn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:_t,"aria-hidden":!0},we!==void 0?we:b.createElement("span",{className:c()(hn.split(/\s+/).map(function(An){return"".concat(An,"-icon")}))},on))},I=T,R=function(vt,hn,yn,dt,on){var kn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,_t=arguments.length>6?arguments[6]:void 0,we=arguments.length>7?arguments[7]:void 0,An=b.useMemo(function(){if((0,p.Z)(dt)==="object")return dt.clearIcon;if(on)return on},[dt,on]),Nn=b.useMemo(function(){return!!(!kn&&dt&&(yn.length||_t)&&!(we==="combobox"&&_t===""))},[dt,kn,yn.length,_t,we]);return{allowClear:Nn,clearIcon:b.createElement(I,{className:"".concat(vt,"-clear"),onMouseDown:hn,customizeIcon:An},"\xD7")}},N=b.createContext(null);function k(){return b.useContext(N)}function L(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,vt=b.useState(!1),hn=(0,_.Z)(vt,2),yn=hn[0],dt=hn[1],on=b.useRef(null),kn=function(){window.clearTimeout(on.current)};b.useEffect(function(){return kn},[]);var _t=function(An,Nn){kn(),on.current=window.setTimeout(function(){dt(An),Nn&&Nn()},nt)};return[yn,_t,kn]}function H(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,vt=b.useRef(null),hn=b.useRef(null);b.useEffect(function(){return function(){window.clearTimeout(hn.current)}},[]);function yn(dt){(dt||vt.current===null)&&(vt.current=dt),window.clearTimeout(hn.current),hn.current=window.setTimeout(function(){vt.current=null},nt)}return[function(){return vt.current},yn]}function M(nt,vt,hn,yn){var dt=b.useRef(null);dt.current={open:vt,triggerOpen:hn,customizedTrigger:yn},b.useEffect(function(){function on(kn){var _t;if(!((_t=dt.current)!==null&&_t!==void 0&&_t.customizedTrigger)){var we=kn.target;we.shadowRoot&&kn.composed&&(we=kn.composedPath()[0]||we),dt.current.open&&nt().filter(function(An){return An}).every(function(An){return!An.contains(we)&&An!==we})&&dt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",on),function(){return window.removeEventListener("mousedown",on)}},[])}var F=S(10228);function P(nt){return nt&&![F.Z.ESC,F.Z.SHIFT,F.Z.BACKSPACE,F.Z.TAB,F.Z.WIN_KEY,F.Z.ALT,F.Z.META,F.Z.WIN_KEY_RIGHT,F.Z.CTRL,F.Z.SEMICOLON,F.Z.EQUALS,F.Z.CAPS_LOCK,F.Z.CONTEXT_MENU,F.Z.F1,F.Z.F2,F.Z.F3,F.Z.F4,F.Z.F5,F.Z.F6,F.Z.F7,F.Z.F8,F.Z.F9,F.Z.F10,F.Z.F11,F.Z.F12].includes(nt)}var U=S(26112),G=S(11780);function Q(nt,vt,hn){var yn=(0,w.Z)((0,w.Z)({},nt),hn?vt:{});return Object.keys(vt).forEach(function(dt){var on=vt[dt];typeof on=="function"&&(yn[dt]=function(){for(var kn,_t=arguments.length,we=new Array(_t),An=0;An<_t;An++)we[An]=arguments[An];return on.apply(void 0,we),(kn=nt[dt])===null||kn===void 0?void 0:kn.call.apply(kn,[nt].concat(we))})}),yn}var ee=Q,ae=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],oe=function(vt,hn){var yn=vt.prefixCls,dt=vt.id,on=vt.inputElement,kn=vt.autoFocus,_t=vt.autoComplete,we=vt.editable,An=vt.activeDescendantId,Nn=vt.value,Ft=vt.open,hr=vt.attrs,Xn=(0,u.Z)(vt,ae),or=on||b.createElement("input",null),Tn=or,mt=Tn.ref,fr=Tn.props;return(0,m.Kp)(!("maxLength"in or.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),or=b.cloneElement(or,(0,w.Z)((0,w.Z)((0,w.Z)({type:"search"},ee(Xn,fr,!0)),{},{id:dt,ref:(0,x.sQ)(hn,mt),autoComplete:_t||"off",autoFocus:kn,className:c()("".concat(yn,"-selection-search-input"),fr==null?void 0:fr.className),role:"combobox","aria-expanded":Ft||!1,"aria-haspopup":"listbox","aria-owns":"".concat(dt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(dt,"_list"),"aria-activedescendant":Ft?An:void 0},hr),{},{value:we?Nn:"",readOnly:!we,unselectable:we?null:"on",style:(0,w.Z)((0,w.Z)({},fr.style),{},{opacity:we?null:0})})),or},he=b.forwardRef(oe),le=he;function be(nt){return Array.isArray(nt)?nt:nt!==void 0?[nt]:[]}var pe=typeof window!="undefined"&&window.document&&window.document.documentElement,_e=pe;function ne(nt){return nt!=null}function ue(nt){return!nt&&nt!==0}function ce(nt){return["string","number"].includes((0,p.Z)(nt))}function Re(nt){var vt=void 0;return nt&&(ce(nt.title)?vt=nt.title.toString():ce(nt.label)&&(vt=nt.label.toString())),vt}function ke(nt,vt){_e?b.useLayoutEffect(nt,vt):b.useEffect(nt,vt)}function Ne(nt){var vt;return(vt=nt.key)!==null&&vt!==void 0?vt:nt.value}var De=function(vt){vt.preventDefault(),vt.stopPropagation()},Me=function(vt){var hn=vt.id,yn=vt.prefixCls,dt=vt.values,on=vt.open,kn=vt.searchValue,_t=vt.autoClearSearchValue,we=vt.inputRef,An=vt.placeholder,Nn=vt.disabled,Ft=vt.mode,hr=vt.showSearch,Xn=vt.autoFocus,or=vt.autoComplete,Tn=vt.activeDescendantId,mt=vt.tabIndex,fr=vt.removeIcon,Li=vt.maxTagCount,Ut=vt.maxTagTextLength,wi=vt.maxTagPlaceholder,Mi=wi===void 0?function(dn){return"+ ".concat(dn.length," ...")}:wi,Or=vt.tagRender,Di=vt.onToggleOpen,ii=vt.onRemove,ui=vt.onInputChange,$r=vt.onInputPaste,ti=vt.onInputKeyDown,si=vt.onInputMouseDown,Gt=vt.onInputCompositionStart,di=vt.onInputCompositionEnd,Wt=vt.onInputBlur,Yn=b.useRef(null),Dr=(0,b.useState)(0),br=(0,_.Z)(Dr,2),mi=br[0],Hr=br[1],Tr=(0,b.useState)(!1),Gi=(0,_.Z)(Tr,2),kt=Gi[0],Xt=Gi[1],wt="".concat(yn,"-selection"),Pe=on||Ft==="multiple"&&_t===!1||Ft==="tags"?kn:"",an=Ft==="tags"||Ft==="multiple"&&_t===!1||hr&&(on||kt);ke(function(){Hr(Yn.current.scrollWidth)},[Pe]);var vn=function(rn,pn,jn,dr,lr){return b.createElement("span",{title:Re(rn),className:c()("".concat(wt,"-item"),(0,s.Z)({},"".concat(wt,"-item-disabled"),jn))},b.createElement("span",{className:"".concat(wt,"-item-content")},pn),dr&&b.createElement(I,{className:"".concat(wt,"-item-remove"),onMouseDown:De,onClick:lr,customizeIcon:fr},"\xD7"))},Bn=function(rn,pn,jn,dr,lr,un){var zr=function(ci){De(ci),Di(!on)};return b.createElement("span",{onMouseDown:zr},Or({label:pn,value:rn,disabled:jn,closable:dr,onClose:lr,isMaxTag:!!un}))},On=function(rn){var pn=rn.disabled,jn=rn.label,dr=rn.value,lr=!Nn&&!pn,un=jn;if(typeof Ut=="number"&&(typeof jn=="string"||typeof jn=="number")){var zr=String(un);zr.length>Ut&&(un="".concat(zr.slice(0,Ut),"..."))}var _r=function(Cr){Cr&&Cr.stopPropagation(),ii(rn)};return typeof Or=="function"?Bn(dr,un,pn,lr,_r):vn(rn,un,pn,lr,_r)},En=function(rn){if(!dt.length)return null;var pn=typeof Mi=="function"?Mi(rn):Mi;return typeof Or=="function"?Bn(void 0,pn,!1,!1,void 0,!0):vn({title:pn},pn,!1)},Vt=b.createElement("div",{className:"".concat(wt,"-search"),style:{width:mi},onFocus:function(){Xt(!0)},onBlur:function(){Xt(!1)}},b.createElement(le,{ref:we,open:on,prefixCls:yn,id:hn,inputElement:null,disabled:Nn,autoFocus:Xn,autoComplete:or,editable:an,activeDescendantId:Tn,value:Pe,onKeyDown:ti,onMouseDown:si,onChange:ui,onPaste:$r,onCompositionStart:Gt,onCompositionEnd:di,onBlur:Wt,tabIndex:mt,attrs:(0,U.Z)(vt,!0)}),b.createElement("span",{ref:Yn,className:"".concat(wt,"-search-mirror"),"aria-hidden":!0},Pe,"\xA0")),cn=b.createElement(G.Z,{prefixCls:"".concat(wt,"-overflow"),data:dt,renderItem:On,renderRest:En,suffix:Vt,itemKey:Ne,maxCount:Li});return b.createElement("span",{className:"".concat(wt,"-wrap")},cn,!dt.length&&!Pe&&b.createElement("span",{className:"".concat(wt,"-placeholder")},An))},We=Me,je=function(vt){var hn=vt.inputElement,yn=vt.prefixCls,dt=vt.id,on=vt.inputRef,kn=vt.disabled,_t=vt.autoFocus,we=vt.autoComplete,An=vt.activeDescendantId,Nn=vt.mode,Ft=vt.open,hr=vt.values,Xn=vt.placeholder,or=vt.tabIndex,Tn=vt.showSearch,mt=vt.searchValue,fr=vt.activeValue,Li=vt.maxLength,Ut=vt.onInputKeyDown,wi=vt.onInputMouseDown,Mi=vt.onInputChange,Or=vt.onInputPaste,Di=vt.onInputCompositionStart,ii=vt.onInputCompositionEnd,ui=vt.onInputBlur,$r=vt.title,ti=b.useState(!1),si=(0,_.Z)(ti,2),Gt=si[0],di=si[1],Wt=Nn==="combobox",Yn=Wt||Tn,Dr=hr[0],br=mt||"";Wt&&fr&&!Gt&&(br=fr),b.useEffect(function(){Wt&&di(!1)},[Wt,fr]);var mi=Nn!=="combobox"&&!Ft&&!Tn?!1:!!br,Hr=$r===void 0?Re(Dr):$r,Tr=b.useMemo(function(){return Dr?null:b.createElement("span",{className:"".concat(yn,"-selection-placeholder"),style:mi?{visibility:"hidden"}:void 0},Xn)},[Dr,mi,Xn,yn]);return b.createElement("span",{className:"".concat(yn,"-selection-wrap")},b.createElement("span",{className:"".concat(yn,"-selection-search")},b.createElement(le,{ref:on,prefixCls:yn,id:dt,open:Ft,inputElement:hn,disabled:kn,autoFocus:_t,autoComplete:we,editable:Yn,activeDescendantId:An,value:br,onKeyDown:Ut,onMouseDown:wi,onChange:function(kt){di(!0),Mi(kt)},onPaste:Or,onCompositionStart:Di,onCompositionEnd:ii,onBlur:ui,tabIndex:or,attrs:(0,U.Z)(vt,!0),maxLength:Wt?Li:void 0})),!Wt&&Dr?b.createElement("span",{className:"".concat(yn,"-selection-item"),title:Hr,style:mi?{visibility:"hidden"}:void 0},Dr.label):null,Tr)},et=je,it=function(vt,hn){var yn=(0,b.useRef)(null),dt=(0,b.useRef)(!1),on=vt.prefixCls,kn=vt.open,_t=vt.mode,we=vt.showSearch,An=vt.tokenWithEnter,Nn=vt.disabled,Ft=vt.prefix,hr=vt.autoClearSearchValue,Xn=vt.onSearch,or=vt.onSearchSubmit,Tn=vt.onToggleOpen,mt=vt.onInputKeyDown,fr=vt.onInputBlur,Li=vt.domRef;b.useImperativeHandle(hn,function(){return{focus:function(Hr){yn.current.focus(Hr)},blur:function(){yn.current.blur()}}});var Ut=H(0),wi=(0,_.Z)(Ut,2),Mi=wi[0],Or=wi[1],Di=function(Hr){var Tr=Hr.which,Gi=yn.current instanceof HTMLTextAreaElement;!Gi&&kn&&(Tr===F.Z.UP||Tr===F.Z.DOWN)&&Hr.preventDefault(),mt&&mt(Hr),Tr===F.Z.ENTER&&_t==="tags"&&!dt.current&&!kn&&(or==null||or(Hr.target.value)),!(Gi&&!kn&&~[F.Z.UP,F.Z.DOWN,F.Z.LEFT,F.Z.RIGHT].indexOf(Tr))&&P(Tr)&&Tn(!0)},ii=function(){Or(!0)},ui=(0,b.useRef)(null),$r=function(Hr){Xn(Hr,!0,dt.current)!==!1&&Tn(!0)},ti=function(){dt.current=!0},si=function(Hr){dt.current=!1,_t!=="combobox"&&$r(Hr.target.value)},Gt=function(Hr){var Tr=Hr.target.value;if(An&&ui.current&&/[\r\n]/.test(ui.current)){var Gi=ui.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Tr=Tr.replace(Gi,ui.current)}ui.current=null,$r(Tr)},di=function(Hr){var Tr=Hr.clipboardData,Gi=Tr==null?void 0:Tr.getData("text");ui.current=Gi||""},Wt=function(Hr){var Tr=Hr.target;if(Tr!==yn.current){var Gi=document.body.style.msTouchAction!==void 0;Gi?setTimeout(function(){yn.current.focus()}):yn.current.focus()}},Yn=function(Hr){var Tr=Mi();Hr.target!==yn.current&&!Tr&&!(_t==="combobox"&&Nn)&&Hr.preventDefault(),(_t!=="combobox"&&(!we||!Tr)||!kn)&&(kn&&hr!==!1&&Xn("",!0,!1),Tn())},Dr={inputRef:yn,onInputKeyDown:Di,onInputMouseDown:ii,onInputChange:Gt,onInputPaste:di,onInputCompositionStart:ti,onInputCompositionEnd:si,onInputBlur:fr},br=_t==="multiple"||_t==="tags"?b.createElement(We,(0,B.Z)({},vt,Dr)):b.createElement(et,(0,B.Z)({},vt,Dr));return b.createElement("div",{ref:Li,className:"".concat(on,"-selector"),onClick:Wt,onMouseDown:Yn},Ft&&b.createElement("div",{className:"".concat(on,"-prefix")},Ft),br)},ze=b.forwardRef(it),xe=ze,fe=S(65030),W=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Z=function(vt){var hn=vt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:hn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:hn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:hn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:hn,adjustY:1},htmlRegion:"scroll"}}},me=function(vt,hn){var yn=vt.prefixCls,dt=vt.disabled,on=vt.visible,kn=vt.children,_t=vt.popupElement,we=vt.animation,An=vt.transitionName,Nn=vt.dropdownStyle,Ft=vt.dropdownClassName,hr=vt.direction,Xn=hr===void 0?"ltr":hr,or=vt.placement,Tn=vt.builtinPlacements,mt=vt.dropdownMatchSelectWidth,fr=vt.dropdownRender,Li=vt.dropdownAlign,Ut=vt.getPopupContainer,wi=vt.empty,Mi=vt.getTriggerDOMNode,Or=vt.onPopupVisibleChange,Di=vt.onPopupMouseEnter,ii=(0,u.Z)(vt,W),ui="".concat(yn,"-dropdown"),$r=_t;fr&&($r=fr(_t));var ti=b.useMemo(function(){return Tn||Z(mt)},[Tn,mt]),si=we?"".concat(ui,"-").concat(we):An,Gt=typeof mt=="number",di=b.useMemo(function(){return Gt?null:mt===!1?"minWidth":"width"},[mt,Gt]),Wt=Nn;Gt&&(Wt=(0,w.Z)((0,w.Z)({},Wt),{},{width:mt}));var Yn=b.useRef(null);return b.useImperativeHandle(hn,function(){return{getPopupElement:function(){var br;return(br=Yn.current)===null||br===void 0?void 0:br.popupElement}}}),b.createElement(fe.Z,(0,B.Z)({},ii,{showAction:Or?["click"]:[],hideAction:Or?["click"]:[],popupPlacement:or||(Xn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ti,prefixCls:ui,popupTransitionName:si,popup:b.createElement("div",{onMouseEnter:Di},$r),ref:Yn,stretch:di,popupAlign:Li,popupVisible:on,getPopupContainer:Ut,popupClassName:c()(Ft,(0,s.Z)({},"".concat(ui,"-empty"),wi)),popupStyle:Wt,getTriggerDOMNode:Mi,onPopupVisibleChange:Or}),kn)},Ce=b.forwardRef(me),re=Ce,ie=S(57879);function de(nt,vt){var hn=nt.key,yn;return"value"in nt&&(yn=nt.value),hn!=null?hn:yn!==void 0?yn:"rc-index-key-".concat(vt)}function Ae(nt){return typeof nt!="undefined"&&!Number.isNaN(nt)}function Be(nt,vt){var hn=nt||{},yn=hn.label,dt=hn.value,on=hn.options,kn=hn.groupLabel,_t=yn||(vt?"children":"label");return{label:_t,value:dt||"value",options:on||"options",groupLabel:kn||_t}}function He(nt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},hn=vt.fieldNames,yn=vt.childrenAsData,dt=[],on=Be(hn,!1),kn=on.label,_t=on.value,we=on.options,An=on.groupLabel;function Nn(Ft,hr){Array.isArray(Ft)&&Ft.forEach(function(Xn){if(hr||!(we in Xn)){var or=Xn[_t];dt.push({key:de(Xn,dt.length),groupOption:hr,data:Xn,label:Xn[kn],value:or})}else{var Tn=Xn[An];Tn===void 0&&yn&&(Tn=Xn.label),dt.push({key:de(Xn,dt.length),group:!0,data:Xn,label:Tn}),Nn(Xn[we],!0)}})}return Nn(nt,!1),dt}function st(nt){var vt=(0,w.Z)({},nt);return"props"in vt||Object.defineProperty(vt,"props",{get:function(){return(0,m.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),vt}}),vt}var Qe=function(vt,hn,yn){if(!hn||!hn.length)return null;var dt=!1,on=function _t(we,An){var Nn=(0,ie.Z)(An),Ft=Nn[0],hr=Nn.slice(1);if(!Ft)return[we];var Xn=we.split(Ft);return dt=dt||Xn.length>1,Xn.reduce(function(or,Tn){return[].concat((0,Y.Z)(or),(0,Y.Z)(_t(Tn,hr)))},[]).filter(Boolean)},kn=on(vt,hn);return dt?typeof yn!="undefined"?kn.slice(0,yn):kn:null},pt=b.createContext(null),It=pt;function gt(nt){var vt=nt.visible,hn=nt.values;if(!vt)return null;var yn=50;return b.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(hn.slice(0,yn).map(function(dt){var on=dt.label,kn=dt.value;return["number","string"].includes((0,p.Z)(on))?on:kn}).join(", ")),hn.length>yn?", ...":null)}var rt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ut=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],At=function(vt){return vt==="tags"||vt==="multiple"},bt=b.forwardRef(function(nt,vt){var hn,yn=nt.id,dt=nt.prefixCls,on=nt.className,kn=nt.showSearch,_t=nt.tagRender,we=nt.direction,An=nt.omitDomProps,Nn=nt.displayValues,Ft=nt.onDisplayValuesChange,hr=nt.emptyOptions,Xn=nt.notFoundContent,or=Xn===void 0?"Not Found":Xn,Tn=nt.onClear,mt=nt.mode,fr=nt.disabled,Li=nt.loading,Ut=nt.getInputElement,wi=nt.getRawInputElement,Mi=nt.open,Or=nt.defaultOpen,Di=nt.onDropdownVisibleChange,ii=nt.activeValue,ui=nt.onActiveValueChange,$r=nt.activeDescendantId,ti=nt.searchValue,si=nt.autoClearSearchValue,Gt=nt.onSearch,di=nt.onSearchSplit,Wt=nt.tokenSeparators,Yn=nt.allowClear,Dr=nt.prefix,br=nt.suffixIcon,mi=nt.clearIcon,Hr=nt.OptionList,Tr=nt.animation,Gi=nt.transitionName,kt=nt.dropdownStyle,Xt=nt.dropdownClassName,wt=nt.dropdownMatchSelectWidth,Pe=nt.dropdownRender,an=nt.dropdownAlign,vn=nt.placement,Bn=nt.builtinPlacements,On=nt.getPopupContainer,En=nt.showAction,Vt=En===void 0?[]:En,cn=nt.onFocus,dn=nt.onBlur,rn=nt.onKeyUp,pn=nt.onKeyDown,jn=nt.onMouseDown,dr=(0,u.Z)(nt,rt),lr=At(mt),un=(kn!==void 0?kn:lr)||mt==="combobox",zr=(0,w.Z)({},dr);ut.forEach(function(qi){delete zr[qi]}),An==null||An.forEach(function(qi){delete zr[qi]});var _r=b.useState(!1),ci=(0,_.Z)(_r,2),Cr=ci[0],Zi=ci[1];b.useEffect(function(){Zi((0,g.Z)())},[]);var ji=b.useRef(null),Pi=b.useRef(null),Ti=b.useRef(null),Fi=b.useRef(null),Ji=b.useRef(null),Ct=b.useRef(!1),ai=L(),Qr=(0,_.Z)(ai,3),Sr=Qr[0],Pr=Qr[1],ri=Qr[2];b.useImperativeHandle(vt,function(){var qi,Oi;return{focus:(qi=Fi.current)===null||qi===void 0?void 0:qi.focus,blur:(Oi=Fi.current)===null||Oi===void 0?void 0:Oi.blur,scrollTo:function(Vn){var ts;return(ts=Ji.current)===null||ts===void 0?void 0:ts.scrollTo(Vn)},nativeElement:ji.current||Pi.current}});var _i=b.useMemo(function(){var qi;if(mt!=="combobox")return ti;var Oi=(qi=Nn[0])===null||qi===void 0?void 0:qi.value;return typeof Oi=="string"||typeof Oi=="number"?String(Oi):""},[ti,mt,Nn]),Nt=mt==="combobox"&&typeof Ut=="function"&&Ut()||null,Rr=typeof wi=="function"&&wi(),Ki=(0,x.x1)(Pi,Rr==null||(hn=Rr.props)===null||hn===void 0?void 0:hn.ref),_s=b.useState(!1),fs=(0,_.Z)(_s,2),Da=fs[0],Rs=fs[1];(0,h.Z)(function(){Rs(!0)},[]);var sr=(0,y.Z)(!1,{defaultValue:Or,value:Mi}),mo=(0,_.Z)(sr,2),vo=mo[0],Ko=mo[1],yo=Da?vo:!1,Ao=!or&&hr;(fr||Ao&&yo&&mt==="combobox")&&(yo=!1);var Cn=Ao?!1:yo,nr=b.useCallback(function(qi){var Oi=qi!==void 0?qi:!yo;fr||(Ko(Oi),yo!==Oi&&(Di==null||Di(Oi)))},[fr,yo,Ko,Di]),xr=b.useMemo(function(){return(Wt||[]).some(function(qi){return[`
`,`\r
`].includes(qi)})},[Wt]),Xr=b.useContext(It)||{},Jr=Xr.maxCount,Yi=Xr.rawValues,ir=function(Oi,Yo,Vn){if(!(lr&&Ae(Jr)&&(Yi==null?void 0:Yi.size)>=Jr)){var ts=!0,lt=Oi;ui==null||ui(null);var Qt=Qe(Oi,Wt,Ae(Jr)?Jr-Yi.size:void 0),wa=Vn?null:Qt;return mt!=="combobox"&&wa&&(lt="",di==null||di(wa),nr(!1),ts=!1),Gt&&_i!==lt&&Gt(lt,{source:Yo?"typing":"effect"}),ts}},es=function(Oi){!Oi||!Oi.trim()||Gt(Oi,{source:"submit"})};b.useEffect(function(){!yo&&!lr&&mt!=="combobox"&&ir("",!1,!1)},[yo]),b.useEffect(function(){vo&&fr&&Ko(!1),fr&&!Ct.current&&Pr(!1)},[fr]);var Co=H(),xo=(0,_.Z)(Co,2),ni=xo[0],Qi=xo[1],xs=b.useRef(!1),io=function(Oi){var Yo=ni(),Vn=Oi.key,ts=Vn==="Enter";if(ts&&(mt!=="combobox"&&Oi.preventDefault(),yo||nr(!0)),Qi(!!_i),Vn==="Backspace"&&!Yo&&lr&&!_i&&Nn.length){for(var lt=(0,Y.Z)(Nn),Qt=null,wa=lt.length-1;wa>=0;wa-=1){var sl=lt[wa];if(!sl.disabled){lt.splice(wa,1),Qt=sl;break}}Qt&&Ft(lt,{type:"remove",values:[Qt]})}for(var jo=arguments.length,ns=new Array(jo>1?jo-1:0),sa=1;sa<jo;sa++)ns[sa-1]=arguments[sa];if(yo&&(!ts||!xs.current)){var Ea;ts&&(xs.current=!0),(Ea=Ji.current)===null||Ea===void 0||Ea.onKeyDown.apply(Ea,[Oi].concat(ns))}pn==null||pn.apply(void 0,[Oi].concat(ns))},ds=function(Oi){for(var Yo=arguments.length,Vn=new Array(Yo>1?Yo-1:0),ts=1;ts<Yo;ts++)Vn[ts-1]=arguments[ts];if(yo){var lt;(lt=Ji.current)===null||lt===void 0||lt.onKeyUp.apply(lt,[Oi].concat(Vn))}Oi.key==="Enter"&&(xs.current=!1),rn==null||rn.apply(void 0,[Oi].concat(Vn))},Hs=function(Oi){var Yo=Nn.filter(function(Vn){return Vn!==Oi});Ft(Yo,{type:"remove",values:[Oi]})},Is=function(){xs.current=!1},Lo=b.useRef(!1),Pa=function(){Pr(!0),fr||(cn&&!Lo.current&&cn.apply(void 0,arguments),Vt.includes("focus")&&nr(!0)),Lo.current=!0},$l=function(){Ct.current=!0,Pr(!1,function(){Lo.current=!1,Ct.current=!1,nr(!1)}),!fr&&(_i&&(mt==="tags"?Gt(_i,{source:"submit"}):mt==="multiple"&&Gt("",{source:"blur"})),dn&&dn.apply(void 0,arguments))},zs=[];b.useEffect(function(){return function(){zs.forEach(function(qi){return clearTimeout(qi)}),zs.splice(0,zs.length)}},[]);var oa=function(Oi){var Yo,Vn=Oi.target,ts=(Yo=Ti.current)===null||Yo===void 0?void 0:Yo.getPopupElement();if(ts&&ts.contains(Vn)){var lt=setTimeout(function(){var jo=zs.indexOf(lt);if(jo!==-1&&zs.splice(jo,1),ri(),!Cr&&!ts.contains(document.activeElement)){var ns;(ns=Fi.current)===null||ns===void 0||ns.focus()}});zs.push(lt)}for(var Qt=arguments.length,wa=new Array(Qt>1?Qt-1:0),sl=1;sl<Qt;sl++)wa[sl-1]=arguments[sl];jn==null||jn.apply(void 0,[Oi].concat(wa))},Gs=b.useState({}),ol=(0,_.Z)(Gs,2),du=ol[1];function pu(){du({})}var Bo;Rr&&(Bo=function(Oi){nr(Oi)}),M(function(){var qi;return[ji.current,(qi=Ti.current)===null||qi===void 0?void 0:qi.getPopupElement()]},Cn,nr,!!Rr);var Xl=b.useMemo(function(){return(0,w.Z)((0,w.Z)({},nt),{},{notFoundContent:or,open:yo,triggerOpen:Cn,id:yn,showSearch:un,multiple:lr,toggleOpen:nr})},[nt,or,Cn,yo,yn,un,lr,nr]),gu=!!br||Li,bl;gu&&(bl=b.createElement(I,{className:c()("".concat(dt,"-arrow"),(0,s.Z)({},"".concat(dt,"-arrow-loading"),Li)),customizeIcon:br,customizeIconProps:{loading:Li,searchValue:_i,open:yo,focused:Sr,showSearch:un}}));var Dl=function(){var Oi;Tn==null||Tn(),(Oi=Fi.current)===null||Oi===void 0||Oi.focus(),Ft([],{type:"clear",values:Nn}),ir("",!1,!1)},ps=R(dt,Dl,Nn,Yn,mi,fr,_i,mt),As=ps.allowClear,Zo=ps.clearIcon,us=b.createElement(Hr,{ref:Ji}),Sl=c()(dt,on,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(dt,"-focused"),Sr),"".concat(dt,"-multiple"),lr),"".concat(dt,"-single"),!lr),"".concat(dt,"-allow-clear"),Yn),"".concat(dt,"-show-arrow"),gu),"".concat(dt,"-disabled"),fr),"".concat(dt,"-loading"),Li),"".concat(dt,"-open"),yo),"".concat(dt,"-customize-input"),Nt),"".concat(dt,"-show-search"),un)),Os=b.createElement(re,{ref:Ti,disabled:fr,prefixCls:dt,visible:Cn,popupElement:us,animation:Tr,transitionName:Gi,dropdownStyle:kt,dropdownClassName:Xt,direction:we,dropdownMatchSelectWidth:wt,dropdownRender:Pe,dropdownAlign:an,placement:vn,builtinPlacements:Bn,getPopupContainer:On,empty:hr,getTriggerDOMNode:function(Oi){return Pi.current||Oi},onPopupVisibleChange:Bo,onPopupMouseEnter:pu},Rr?b.cloneElement(Rr,{ref:Ki}):b.createElement(xe,(0,B.Z)({},nt,{domRef:Pi,prefixCls:dt,inputElement:Nt,ref:Fi,id:yn,prefix:Dr,showSearch:un,autoClearSearchValue:si,mode:mt,activeDescendantId:$r,tagRender:_t,values:Nn,open:yo,onToggleOpen:nr,activeValue:ii,searchValue:_i,onSearch:ir,onSearchSubmit:es,onRemove:Hs,tokenWithEnter:xr,onInputBlur:Is}))),so;return Rr?so=Os:so=b.createElement("div",(0,B.Z)({className:Sl},zr,{ref:ji,onMouseDown:oa,onKeyDown:io,onKeyUp:ds,onFocus:Pa,onBlur:$l}),b.createElement(gt,{visible:Sr&&!yo,values:Nn}),Os,bl,As&&Zo),b.createElement(N.Provider,{value:Xl},so)}),Tt=bt,Mt=function(){return null};Mt.isSelectOptGroup=!0;var Ot=Mt,$e=function(){return null};$e.isSelectOption=!0;var $t=$e,gn=S(80547),Et=S(2738),Mn=S(6790);function qn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Zn=["disabled","title","children","style","className"];function Bt(nt){return typeof nt=="string"||typeof nt=="number"}var yr=function(vt,hn){var yn=k(),dt=yn.prefixCls,on=yn.id,kn=yn.open,_t=yn.multiple,we=yn.mode,An=yn.searchValue,Nn=yn.toggleOpen,Ft=yn.notFoundContent,hr=yn.onPopupScroll,Xn=b.useContext(It),or=Xn.maxCount,Tn=Xn.flattenOptions,mt=Xn.onActiveValue,fr=Xn.defaultActiveFirstOption,Li=Xn.onSelect,Ut=Xn.menuItemSelectedIcon,wi=Xn.rawValues,Mi=Xn.fieldNames,Or=Xn.virtual,Di=Xn.direction,ii=Xn.listHeight,ui=Xn.listItemHeight,$r=Xn.optionRender,ti="".concat(dt,"-item"),si=(0,gn.Z)(function(){return Tn},[kn,Tn],function(En,Vt){return Vt[0]&&En[1]!==Vt[1]}),Gt=b.useRef(null),di=b.useMemo(function(){return _t&&Ae(or)&&(wi==null?void 0:wi.size)>=or},[_t,or,wi==null?void 0:wi.size]),Wt=function(Vt){Vt.preventDefault()},Yn=function(Vt){var cn;(cn=Gt.current)===null||cn===void 0||cn.scrollTo(typeof Vt=="number"?{index:Vt}:Vt)},Dr=b.useCallback(function(En){return we==="combobox"?!1:wi.has(En)},[we,(0,Y.Z)(wi).toString(),wi.size]),br=function(Vt){for(var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,dn=si.length,rn=0;rn<dn;rn+=1){var pn=(Vt+rn*cn+dn)%dn,jn=si[pn]||{},dr=jn.group,lr=jn.data;if(!dr&&!(lr!=null&&lr.disabled)&&(Dr(lr.value)||!di))return pn}return-1},mi=b.useState(function(){return br(0)}),Hr=(0,_.Z)(mi,2),Tr=Hr[0],Gi=Hr[1],kt=function(Vt){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Gi(Vt);var dn={source:cn?"keyboard":"mouse"},rn=si[Vt];if(!rn){mt(null,-1,dn);return}mt(rn.value,Vt,dn)};(0,b.useEffect)(function(){kt(fr!==!1?br(0):-1)},[si.length,An]);var Xt=b.useCallback(function(En){return we==="combobox"?String(En).toLowerCase()===An.toLowerCase():wi.has(En)},[we,An,(0,Y.Z)(wi).toString(),wi.size]);(0,b.useEffect)(function(){var En=setTimeout(function(){if(!_t&&kn&&wi.size===1){var cn=Array.from(wi)[0],dn=si.findIndex(function(rn){var pn=rn.data;return An?String(pn.value).startsWith(An):pn.value===cn});dn!==-1&&(kt(dn),Yn(dn))}});if(kn){var Vt;(Vt=Gt.current)===null||Vt===void 0||Vt.scrollTo(void 0)}return function(){return clearTimeout(En)}},[kn,An]);var wt=function(Vt){Vt!==void 0&&Li(Vt,{selected:!wi.has(Vt)}),_t||Nn(!1)};if(b.useImperativeHandle(hn,function(){return{onKeyDown:function(Vt){var cn=Vt.which,dn=Vt.ctrlKey;switch(cn){case F.Z.N:case F.Z.P:case F.Z.UP:case F.Z.DOWN:{var rn=0;if(cn===F.Z.UP?rn=-1:cn===F.Z.DOWN?rn=1:qn()&&dn&&(cn===F.Z.N?rn=1:cn===F.Z.P&&(rn=-1)),rn!==0){var pn=br(Tr+rn,rn);Yn(pn),kt(pn,!0)}break}case F.Z.TAB:case F.Z.ENTER:{var jn,dr=si[Tr];dr&&!(dr!=null&&(jn=dr.data)!==null&&jn!==void 0&&jn.disabled)&&!di?wt(dr.value):wt(void 0),kn&&Vt.preventDefault();break}case F.Z.ESC:Nn(!1),kn&&Vt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Vt){Yn(Vt)}}}),si.length===0)return b.createElement("div",{role:"listbox",id:"".concat(on,"_list"),className:"".concat(ti,"-empty"),onMouseDown:Wt},Ft);var Pe=Object.keys(Mi).map(function(En){return Mi[En]}),an=function(Vt){return Vt.label};function vn(En,Vt){var cn=En.group;return{role:cn?"presentation":"option",id:"".concat(on,"_list_").concat(Vt)}}var Bn=function(Vt){var cn=si[Vt];if(!cn)return null;var dn=cn.data||{},rn=dn.value,pn=cn.group,jn=(0,U.Z)(dn,!0),dr=an(cn);return cn?b.createElement("div",(0,B.Z)({"aria-label":typeof dr=="string"&&!pn?dr:null},jn,{key:Vt},vn(cn,Vt),{"aria-selected":Xt(rn)}),rn):null},On={role:"listbox",id:"".concat(on,"_list")};return b.createElement(b.Fragment,null,Or&&b.createElement("div",(0,B.Z)({},On,{style:{height:0,width:0,overflow:"hidden"}}),Bn(Tr-1),Bn(Tr),Bn(Tr+1)),b.createElement(Mn.Z,{itemKey:"key",ref:Gt,data:si,height:ii,itemHeight:ui,fullHeight:!1,onMouseDown:Wt,onScroll:hr,virtual:Or,direction:Di,innerProps:Or?null:On},function(En,Vt){var cn=En.group,dn=En.groupOption,rn=En.data,pn=En.label,jn=En.value,dr=rn.key;if(cn){var lr,un=(lr=rn.title)!==null&&lr!==void 0?lr:Bt(pn)?pn.toString():void 0;return b.createElement("div",{className:c()(ti,"".concat(ti,"-group"),rn.className),title:un},pn!==void 0?pn:dr)}var zr=rn.disabled,_r=rn.title,ci=rn.children,Cr=rn.style,Zi=rn.className,ji=(0,u.Z)(rn,Zn),Pi=(0,Et.Z)(ji,Pe),Ti=Dr(jn),Fi=zr||!Ti&&di,Ji="".concat(ti,"-option"),Ct=c()(ti,Ji,Zi,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(Ji,"-grouped"),dn),"".concat(Ji,"-active"),Tr===Vt&&!Fi),"".concat(Ji,"-disabled"),Fi),"".concat(Ji,"-selected"),Ti)),ai=an(En),Qr=!Ut||typeof Ut=="function"||Ti,Sr=typeof ai=="number"?ai:ai||jn,Pr=Bt(Sr)?Sr.toString():void 0;return _r!==void 0&&(Pr=_r),b.createElement("div",(0,B.Z)({},(0,U.Z)(Pi),Or?{}:vn(En,Vt),{"aria-selected":Xt(jn),className:Ct,title:Pr,onMouseMove:function(){Tr===Vt||Fi||kt(Vt)},onClick:function(){Fi||wt(jn)},style:Cr}),b.createElement("div",{className:"".concat(Ji,"-content")},typeof $r=="function"?$r(En,{index:Vt}):Sr),b.isValidElement(Ut)||Ti,Qr&&b.createElement(I,{className:"".concat(ti,"-option-state"),customizeIcon:Ut,customizeIconProps:{value:jn,disabled:Fi,isSelected:Ti}},Ti?"\u2713":null))}))},vr=b.forwardRef(yr),Un=vr,Wn=function(nt,vt){var hn=b.useRef({values:new Map,options:new Map}),yn=b.useMemo(function(){var on=hn.current,kn=on.values,_t=on.options,we=nt.map(function(Ft){if(Ft.label===void 0){var hr;return(0,w.Z)((0,w.Z)({},Ft),{},{label:(hr=kn.get(Ft.value))===null||hr===void 0?void 0:hr.label})}return Ft}),An=new Map,Nn=new Map;return we.forEach(function(Ft){An.set(Ft.value,Ft),Nn.set(Ft.value,vt.get(Ft.value)||_t.get(Ft.value))}),hn.current.values=An,hn.current.options=Nn,we},[nt,vt]),dt=b.useCallback(function(on){return vt.get(on)||hn.current.options.get(on)},[vt]);return[yn,dt]};function wr(nt,vt){return be(nt).join("").toUpperCase().includes(vt)}var ye=function(nt,vt,hn,yn,dt){return b.useMemo(function(){if(!hn||yn===!1)return nt;var on=vt.options,kn=vt.label,_t=vt.value,we=[],An=typeof yn=="function",Nn=hn.toUpperCase(),Ft=An?yn:function(Xn,or){return dt?wr(or[dt],Nn):or[on]?wr(or[kn!=="children"?kn:"label"],Nn):wr(or[_t],Nn)},hr=An?function(Xn){return st(Xn)}:function(Xn){return Xn};return nt.forEach(function(Xn){if(Xn[on]){var or=Ft(hn,hr(Xn));if(or)we.push(Xn);else{var Tn=Xn[on].filter(function(mt){return Ft(hn,hr(mt))});Tn.length&&we.push((0,w.Z)((0,w.Z)({},Xn),{},(0,s.Z)({},on,Tn)))}return}Ft(hn,hr(Xn))&&we.push(Xn)}),we},[nt,yn,dt,hn,vt])},Fn=S(6551),wn=S(11592),Jn=["children","value"],Ir=["children"];function Wr(nt){var vt=nt,hn=vt.key,yn=vt.props,dt=yn.children,on=yn.value,kn=(0,u.Z)(yn,Jn);return(0,w.Z)({key:hn,value:on!==void 0?on:hn,children:dt},kn)}function cr(nt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,wn.Z)(nt).map(function(hn,yn){if(!b.isValidElement(hn)||!hn.type)return null;var dt=hn,on=dt.type.isSelectOptGroup,kn=dt.key,_t=dt.props,we=_t.children,An=(0,u.Z)(_t,Ir);return vt||!on?Wr(hn):(0,w.Z)((0,w.Z)({key:"__RC_SELECT_GRP__".concat(kn===null?yn:kn,"__"),label:kn},An),{},{options:cr(we)})}).filter(function(hn){return hn})}var ro=function(vt,hn,yn,dt,on){return b.useMemo(function(){var kn=vt,_t=!vt;_t&&(kn=cr(hn));var we=new Map,An=new Map,Nn=function(Xn,or,Tn){Tn&&typeof Tn=="string"&&Xn.set(or[Tn],or)},Ft=function hr(Xn){for(var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tn=0;Tn<Xn.length;Tn+=1){var mt=Xn[Tn];!mt[yn.options]||or?(we.set(mt[yn.value],mt),Nn(An,mt,yn.label),Nn(An,mt,dt),Nn(An,mt,on)):hr(mt[yn.options],!0)}};return Ft(kn),{options:kn,valueOptions:we,labelOptions:An}},[vt,hn,yn,dt,on])},Kr=ro;function oi(nt){var vt=b.useRef();vt.current=nt;var hn=b.useCallback(function(){return vt.current.apply(vt,arguments)},[]);return hn}function Kn(nt){var vt=nt.mode,hn=nt.options,yn=nt.children,dt=nt.backfill,on=nt.allowClear,kn=nt.placeholder,_t=nt.getInputElement,we=nt.showSearch,An=nt.onSearch,Nn=nt.defaultOpen,Ft=nt.autoFocus,hr=nt.labelInValue,Xn=nt.value,or=nt.inputValue,Tn=nt.optionLabelProp,mt=isMultiple(vt),fr=we!==void 0?we:mt||vt==="combobox",Li=hn||convertChildrenToData(yn);if(warning(vt!=="tags"||Li.every(function(Or){return!Or.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),vt==="tags"||vt==="combobox"){var Ut=Li.some(function(Or){return Or.options?Or.options.some(function(Di){return typeof("value"in Di?Di.value:Di.key)=="number"}):typeof("value"in Or?Or.value:Or.key)=="number"});warning(!Ut,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(vt!=="combobox"||!Tn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(vt==="combobox"||!dt,"`backfill` only works with `combobox` mode."),warning(vt==="combobox"||!_t,"`getInputElement` only work with `combobox` mode."),noteOnce(vt!=="combobox"||!_t||!on||!kn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),An&&!fr&&vt!=="combobox"&&vt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Nn||Ft,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Xn!=null){var wi=toArray(Xn);warning(!hr||wi.every(function(Or){return _typeof(Or)==="object"&&("key"in Or||"value"in Or)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!mt||Array.isArray(Xn),"`value` should be array when `mode` is `multiple` or `tags`")}if(yn){var Mi=null;toNodeArray(yn).some(function(Or){if(!React.isValidElement(Or)||!Or.type)return!1;var Di=Or,ii=Di.type;if(ii.isSelectOption)return!1;if(ii.isSelectOptGroup){var ui=toNodeArray(Or.props.children).every(function($r){return!React.isValidElement($r)||!Or.type||$r.type.isSelectOption?!0:(Mi=$r.type,!1)});return!ui}return Mi=ii,!0}),Mi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Mi.displayName||Mi.name||Mi,"`.")),warning(or===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Dn(nt,vt){if(nt){var hn=function yn(dt){for(var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kn=0;kn<dt.length;kn++){var _t=dt[kn];if(_t[vt==null?void 0:vt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!on&&Array.isArray(_t[vt==null?void 0:vt.options])&&yn(_t[vt==null?void 0:vt.options],!0))break}};hn(nt)}}var li=null,Nr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Yr=["inputValue"];function mn(nt){return!nt||(0,p.Z)(nt)!=="object"}var zn=b.forwardRef(function(nt,vt){var hn=nt.id,yn=nt.mode,dt=nt.prefixCls,on=dt===void 0?"rc-select":dt,kn=nt.backfill,_t=nt.fieldNames,we=nt.inputValue,An=nt.searchValue,Nn=nt.onSearch,Ft=nt.autoClearSearchValue,hr=Ft===void 0?!0:Ft,Xn=nt.onSelect,or=nt.onDeselect,Tn=nt.dropdownMatchSelectWidth,mt=Tn===void 0?!0:Tn,fr=nt.filterOption,Li=nt.filterSort,Ut=nt.optionFilterProp,wi=nt.optionLabelProp,Mi=nt.options,Or=nt.optionRender,Di=nt.children,ii=nt.defaultActiveFirstOption,ui=nt.menuItemSelectedIcon,$r=nt.virtual,ti=nt.direction,si=nt.listHeight,Gt=si===void 0?200:si,di=nt.listItemHeight,Wt=di===void 0?20:di,Yn=nt.labelRender,Dr=nt.value,br=nt.defaultValue,mi=nt.labelInValue,Hr=nt.onChange,Tr=nt.maxCount,Gi=(0,u.Z)(nt,Nr),kt=(0,Fn.ZP)(hn),Xt=At(yn),wt=!!(!Mi&&Di),Pe=b.useMemo(function(){return fr===void 0&&yn==="combobox"?!1:fr},[fr,yn]),an=b.useMemo(function(){return Be(_t,wt)},[JSON.stringify(_t),wt]),vn=(0,y.Z)("",{value:An!==void 0?An:we,postState:function(xr){return xr||""}}),Bn=(0,_.Z)(vn,2),On=Bn[0],En=Bn[1],Vt=Kr(Mi,Di,an,Ut,wi),cn=Vt.valueOptions,dn=Vt.labelOptions,rn=Vt.options,pn=b.useCallback(function(nr){var xr=be(nr);return xr.map(function(Xr){var Jr,Yi,ir,es,Co;if(mn(Xr))Jr=Xr;else{var xo;ir=Xr.key,Yi=Xr.label,Jr=(xo=Xr.value)!==null&&xo!==void 0?xo:ir}var ni=cn.get(Jr);if(ni){var Qi;if(Yi===void 0&&(Yi=ni==null?void 0:ni[wi||an.label]),ir===void 0&&(ir=(Qi=ni==null?void 0:ni.key)!==null&&Qi!==void 0?Qi:Jr),es=ni==null?void 0:ni.disabled,Co=ni==null?void 0:ni.title,0)var xs}return{label:Yi,value:Jr,key:ir,disabled:es,title:Co}})},[an,wi,cn]),jn=(0,y.Z)(br,{value:Dr}),dr=(0,_.Z)(jn,2),lr=dr[0],un=dr[1],zr=b.useMemo(function(){var nr,xr=Xt&&lr===null?[]:lr,Xr=pn(xr);return yn==="combobox"&&ue((nr=Xr[0])===null||nr===void 0?void 0:nr.value)?[]:Xr},[lr,pn,yn,Xt]),_r=Wn(zr,cn),ci=(0,_.Z)(_r,2),Cr=ci[0],Zi=ci[1],ji=b.useMemo(function(){if(!yn&&Cr.length===1){var nr=Cr[0];if(nr.value===null&&(nr.label===null||nr.label===void 0))return[]}return Cr.map(function(xr){var Xr;return(0,w.Z)((0,w.Z)({},xr),{},{label:(Xr=typeof Yn=="function"?Yn(xr):xr.label)!==null&&Xr!==void 0?Xr:xr.value})})},[yn,Cr,Yn]),Pi=b.useMemo(function(){return new Set(Cr.map(function(nr){return nr.value}))},[Cr]);b.useEffect(function(){if(yn==="combobox"){var nr,xr=(nr=Cr[0])===null||nr===void 0?void 0:nr.value;En(ne(xr)?String(xr):"")}},[Cr]);var Ti=oi(function(nr,xr){var Xr=xr!=null?xr:nr;return(0,s.Z)((0,s.Z)({},an.value,nr),an.label,Xr)}),Fi=b.useMemo(function(){if(yn!=="tags")return rn;var nr=(0,Y.Z)(rn),xr=function(Jr){return cn.has(Jr)};return(0,Y.Z)(Cr).sort(function(Xr,Jr){return Xr.value<Jr.value?-1:1}).forEach(function(Xr){var Jr=Xr.value;xr(Jr)||nr.push(Ti(Jr,Xr.label))}),nr},[Ti,rn,cn,Cr,yn]),Ji=ye(Fi,an,On,Pe,Ut),Ct=b.useMemo(function(){return yn!=="tags"||!On||Ji.some(function(nr){return nr[Ut||"value"]===On})||Ji.some(function(nr){return nr[an.value]===On})?Ji:[Ti(On)].concat((0,Y.Z)(Ji))},[Ti,Ut,yn,Ji,On,an]),ai=function nr(xr){var Xr=(0,Y.Z)(xr).sort(function(Jr,Yi){return Li(Jr,Yi,{searchValue:On})});return Xr.map(function(Jr){return Array.isArray(Jr.options)?(0,w.Z)((0,w.Z)({},Jr),{},{options:Jr.options.length>0?nr(Jr.options):Jr.options}):Jr})},Qr=b.useMemo(function(){return Li?ai(Ct):Ct},[Ct,Li,On]),Sr=b.useMemo(function(){return He(Qr,{fieldNames:an,childrenAsData:wt})},[Qr,an,wt]),Pr=function(xr){var Xr=pn(xr);if(un(Xr),Hr&&(Xr.length!==Cr.length||Xr.some(function(ir,es){var Co;return((Co=Cr[es])===null||Co===void 0?void 0:Co.value)!==(ir==null?void 0:ir.value)}))){var Jr=mi?Xr:Xr.map(function(ir){return ir.value}),Yi=Xr.map(function(ir){return st(Zi(ir.value))});Hr(Xt?Jr:Jr[0],Xt?Yi:Yi[0])}},ri=b.useState(null),_i=(0,_.Z)(ri,2),Nt=_i[0],Rr=_i[1],Ki=b.useState(0),_s=(0,_.Z)(Ki,2),fs=_s[0],Da=_s[1],Rs=ii!==void 0?ii:yn!=="combobox",sr=b.useCallback(function(nr,xr){var Xr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jr=Xr.source,Yi=Jr===void 0?"keyboard":Jr;Da(xr),kn&&yn==="combobox"&&nr!==null&&Yi==="keyboard"&&Rr(String(nr))},[kn,yn]),mo=function(xr,Xr,Jr){var Yi=function(){var Hs,Is=Zi(xr);return[mi?{label:Is==null?void 0:Is[an.label],value:xr,key:(Hs=Is==null?void 0:Is.key)!==null&&Hs!==void 0?Hs:xr}:xr,st(Is)]};if(Xr&&Xn){var ir=Yi(),es=(0,_.Z)(ir,2),Co=es[0],xo=es[1];Xn(Co,xo)}else if(!Xr&&or&&Jr!=="clear"){var ni=Yi(),Qi=(0,_.Z)(ni,2),xs=Qi[0],io=Qi[1];or(xs,io)}},vo=oi(function(nr,xr){var Xr,Jr=Xt?xr.selected:!0;Jr?Xr=Xt?[].concat((0,Y.Z)(Cr),[nr]):[nr]:Xr=Cr.filter(function(Yi){return Yi.value!==nr}),Pr(Xr),mo(nr,Jr),yn==="combobox"?Rr(""):(!At||hr)&&(En(""),Rr(""))}),Ko=function(xr,Xr){Pr(xr);var Jr=Xr.type,Yi=Xr.values;(Jr==="remove"||Jr==="clear")&&Yi.forEach(function(ir){mo(ir.value,!1,Jr)})},yo=function(xr,Xr){if(En(xr),Rr(null),Xr.source==="submit"){var Jr=(xr||"").trim();if(Jr){var Yi=Array.from(new Set([].concat((0,Y.Z)(Pi),[Jr])));Pr(Yi),mo(Jr,!0),En("")}return}Xr.source!=="blur"&&(yn==="combobox"&&Pr(xr),Nn==null||Nn(xr))},Ao=function(xr){var Xr=xr;yn!=="tags"&&(Xr=xr.map(function(Yi){var ir=dn.get(Yi);return ir==null?void 0:ir.value}).filter(function(Yi){return Yi!==void 0}));var Jr=Array.from(new Set([].concat((0,Y.Z)(Pi),(0,Y.Z)(Xr))));Pr(Jr),Jr.forEach(function(Yi){mo(Yi,!0)})},Cn=b.useMemo(function(){var nr=$r!==!1&&mt!==!1;return(0,w.Z)((0,w.Z)({},Vt),{},{flattenOptions:Sr,onActiveValue:sr,defaultActiveFirstOption:Rs,onSelect:vo,menuItemSelectedIcon:ui,rawValues:Pi,fieldNames:an,virtual:nr,direction:ti,listHeight:Gt,listItemHeight:Wt,childrenAsData:wt,maxCount:Tr,optionRender:Or})},[Tr,Vt,Sr,sr,Rs,vo,ui,Pi,an,$r,mt,ti,Gt,Wt,wt,Or]);return b.createElement(It.Provider,{value:Cn},b.createElement(Tt,(0,B.Z)({},Gi,{id:kt,prefixCls:on,ref:vt,omitDomProps:Yr,mode:yn,displayValues:ji,onDisplayValuesChange:Ko,direction:ti,searchValue:On,onSearch:yo,autoClearSearchValue:hr,onSearchSplit:Ao,dropdownMatchSelectWidth:mt,OptionList:Un,emptyOptions:!Sr.length,activeValue:Nt,activeDescendantId:"".concat(kt,"_list_").concat(fs)})))}),Mr=zn;Mr.Option=$t,Mr.OptGroup=Ot;var Ci=Mr,vi=Ci},63158:function(Oe,J,S){"use strict";var B=S(67711),Y=S(52873),s=S(16886),w=S(33346),_=S(59301),u=S(92310),p=S.n(u),y=S(18929),m=S(10228),b=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],v=_.forwardRef(function(c,h){var g,x=c.prefixCls,T=x===void 0?"rc-switch":x,I=c.className,R=c.checked,N=c.defaultChecked,k=c.disabled,L=c.loadingIcon,H=c.checkedChildren,M=c.unCheckedChildren,F=c.onClick,P=c.onChange,U=c.onKeyDown,G=(0,w.Z)(c,b),Q=(0,y.Z)(!1,{value:R,defaultValue:N}),ee=(0,s.Z)(Q,2),ae=ee[0],oe=ee[1];function he(_e,ne){var ue=ae;return k||(ue=_e,oe(ue),P==null||P(ue,ne)),ue}function le(_e){_e.which===m.Z.LEFT?he(!1,_e):_e.which===m.Z.RIGHT&&he(!0,_e),U==null||U(_e)}function be(_e){var ne=he(!ae,_e);F==null||F(ne,_e)}var pe=p()(T,I,(g={},(0,Y.Z)(g,"".concat(T,"-checked"),ae),(0,Y.Z)(g,"".concat(T,"-disabled"),k),g));return _.createElement("button",(0,B.Z)({},G,{type:"button",role:"switch","aria-checked":ae,disabled:k,className:pe,ref:h,onKeyDown:le,onClick:be}),L,_.createElement("span",{className:"".concat(T,"-inner")},_.createElement("span",{className:"".concat(T,"-inner-checked")},H),_.createElement("span",{className:"".concat(T,"-inner-unchecked")},M)))});v.displayName="Switch",J.Z=v},86351:function(Oe,J,S){"use strict";S.d(J,{R:function(){return Y},w:function(){return B}});var B={},Y="rc-table-internal-hook"},97347:function(Oe,J,S){"use strict";S.d(J,{L:function(){return T},Z:function(){return L}});var B=S(16886),Y=S(52873),s=S(15142),w=S(26420),_=S(98506),u=S(33346),p=S(11592),y=S(48736),m=S(59301),b=S(86351),v=S(54451);function c(H){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof M=="number"?M:M.endsWith("%")?H*parseFloat(M)/100:null}function h(H,M,F){return m.useMemo(function(){if(M&&M>0){var P=0,U=0;H.forEach(function(be){var pe=c(M,be.width);pe?P+=pe:U+=1});var G=Math.max(M,F),Q=Math.max(G-P,U),ee=U,ae=Q/U,oe=0,he=H.map(function(be){var pe=(0,_.Z)({},be),_e=c(M,pe.width);if(_e)pe.width=_e;else{var ne=Math.floor(ae);pe.width=ee===1?Q:ne,Q-=ne,ee-=1}return oe+=pe.width,pe});if(oe<G){var le=G/oe;Q=G,he.forEach(function(be,pe){var _e=Math.floor(be.width*le);be.width=pe===he.length-1?Q:_e,Q-=_e})}return[he,Math.max(oe,G)]}return[H,M]},[H,M,F])}var g=["children"],x=["fixed"];function T(H){return(0,p.Z)(H).filter(function(M){return m.isValidElement(M)}).map(function(M){var F=M.key,P=M.props,U=P.children,G=(0,u.Z)(P,g),Q=(0,_.Z)({key:F},G);return U&&(Q.children=T(U)),Q})}function I(H){return H.filter(function(M){return M&&(0,w.Z)(M)==="object"&&!M.hidden}).map(function(M){var F=M.children;return F&&F.length>0?(0,_.Z)((0,_.Z)({},M),{},{children:I(F)}):M})}function R(H){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return H.filter(function(F){return F&&(0,w.Z)(F)==="object"}).reduce(function(F,P,U){var G=P.fixed,Q=G===!0?"left":G,ee="".concat(M,"-").concat(U),ae=P.children;return ae&&ae.length>0?[].concat((0,s.Z)(F),(0,s.Z)(R(ae,ee).map(function(oe){return(0,_.Z)({fixed:Q},oe)}))):[].concat((0,s.Z)(F),[(0,_.Z)((0,_.Z)({key:ee},P),{},{fixed:Q})])},[])}function N(H){return H.map(function(M){var F=M.fixed,P=(0,u.Z)(M,x),U=F;return F==="left"?U="right":F==="right"&&(U="left"),(0,_.Z)({fixed:U},P)})}function k(H,M){var F=H.prefixCls,P=H.columns,U=H.children,G=H.expandable,Q=H.expandedKeys,ee=H.columnTitle,ae=H.getRowKey,oe=H.onTriggerExpand,he=H.expandIcon,le=H.rowExpandable,be=H.expandIconColumnIndex,pe=H.direction,_e=H.expandRowByClick,ne=H.columnWidth,ue=H.fixed,ce=H.scrollWidth,Re=H.clientWidth,ke=m.useMemo(function(){var xe=P||T(U)||[];return I(xe.slice())},[P,U]),Ne=m.useMemo(function(){if(G){var xe=ke.slice();if(!xe.includes(b.w)){var fe=be||0;fe>=0&&(fe||ue==="left"||!ue)&&xe.splice(fe,0,b.w),ue==="right"&&xe.splice(ke.length,0,b.w)}var W=xe.indexOf(b.w);xe=xe.filter(function(re,ie){return re!==b.w||ie===W});var Z=ke[W],me;ue?me=ue:me=Z?Z.fixed:null;var Ce=(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({},v.v,{className:"".concat(F,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ee),"fixed",me),"className","".concat(F,"-row-expand-icon-cell")),"width",ne),"render",function(ie,de,Ae){var Be=ae(de,Ae),He=Q.has(Be),st=le?le(de):!0,Qe=he({prefixCls:F,expanded:He,expandable:st,record:de,onExpand:oe});return _e?m.createElement("span",{onClick:function(It){return It.stopPropagation()}},Qe):Qe});return xe.map(function(re){return re===b.w?Ce:re})}return ke.filter(function(re){return re!==b.w})},[G,ke,ae,Q,he,pe]),De=m.useMemo(function(){var xe=Ne;return M&&(xe=M(xe)),xe.length||(xe=[{render:function(){return null}}]),xe},[M,Ne,pe]),Me=m.useMemo(function(){return pe==="rtl"?N(R(De)):R(De)},[De,pe,ce]),We=m.useMemo(function(){for(var xe=-1,fe=Me.length-1;fe>=0;fe-=1){var W=Me[fe].fixed;if(W==="left"||W===!0){xe=fe;break}}if(xe>=0)for(var Z=0;Z<=xe;Z+=1){var me=Me[Z].fixed;if(me!=="left"&&me!==!0)return!0}var Ce=Me.findIndex(function(de){var Ae=de.fixed;return Ae==="right"});if(Ce>=0)for(var re=Ce;re<Me.length;re+=1){var ie=Me[re].fixed;if(ie!=="right")return!0}return!1},[Me]),je=h(Me,ce,Re),et=(0,B.Z)(je,2),it=et[0],ze=et[1];return[De,it,ze,We]}var L=k},4030:function(Oe,J,S){"use strict";S.d(J,{w2:function(){return B.w},vP:function(){return Bt.v},RQ:function(){return B.R},ER:function(){return Be},Q$:function(){return fr},TN:function(){return Hr}});var B=S(86351),Y=S(16886),s=S(6089),w=S(34280),_=S(13697),u=S(59301),p=S(4676);function y(kt){var Xt=u.createContext(void 0),wt=function(an){var vn=an.value,Bn=an.children,On=u.useRef(vn);On.current=vn;var En=u.useState(function(){return{getValue:function(){return On.current},listeners:new Set}}),Vt=(0,Y.Z)(En,1),cn=Vt[0];return(0,w.Z)(function(){(0,p.unstable_batchedUpdates)(function(){cn.listeners.forEach(function(dn){dn(vn)})})},[vn]),u.createElement(Xt.Provider,{value:cn},Bn)};return{Context:Xt,Provider:wt,defaultValue:kt}}function m(kt,Xt){var wt=(0,s.Z)(typeof Xt=="function"?Xt:function(dn){if(Xt===void 0)return dn;if(!Array.isArray(Xt))return dn[Xt];var rn={};return Xt.forEach(function(pn){rn[pn]=dn[pn]}),rn}),Pe=u.useContext(kt==null?void 0:kt.Context),an=Pe||{},vn=an.listeners,Bn=an.getValue,On=u.useRef();On.current=wt(Pe?Bn():kt==null?void 0:kt.defaultValue);var En=u.useState({}),Vt=(0,Y.Z)(En,2),cn=Vt[1];return(0,w.Z)(function(){if(!Pe)return;function dn(rn){var pn=wt(rn);(0,_.Z)(On.current,pn,!0)||cn({})}return vn.add(dn),function(){vn.delete(dn)}},[Pe]),On.current}var b=S(67711),v=S(8654);function c(){var kt=u.createContext(null);function Xt(){return u.useContext(kt)}function wt(an,vn){var Bn=(0,v.Yr)(an),On=function(Vt,cn){var dn=Bn?{ref:cn}:{},rn=u.useRef(0),pn=u.useRef(Vt),jn=Xt();return jn!==null?u.createElement(an,(0,b.Z)({},Vt,dn)):((!vn||vn(pn.current,Vt))&&(rn.current+=1),pn.current=Vt,u.createElement(kt.Provider,{value:rn.current},u.createElement(an,(0,b.Z)({},Vt,dn))))};return Bn?u.forwardRef(On):On}function Pe(an,vn){var Bn=(0,v.Yr)(an),On=function(Vt,cn){var dn=Bn?{ref:cn}:{};return Xt(),u.createElement(an,(0,b.Z)({},Vt,dn))};return Bn?u.memo(u.forwardRef(On),vn):u.memo(On,vn)}return{makeImmutable:wt,responseImmutable:Pe,useImmutableMark:Xt}}var h=c(),g=h.makeImmutable,x=h.responseImmutable,T=h.useImmutableMark,I=c(),R=I.makeImmutable,N=I.responseImmutable,k=I.useImmutableMark,L=y(),H=L;function M(kt,Xt){var wt=React.useRef(0);wt.current+=1;var Pe=React.useRef(kt),an=[];Object.keys(kt||{}).map(function(Bn){var On;(kt==null?void 0:kt[Bn])!==((On=Pe.current)===null||On===void 0?void 0:On[Bn])&&an.push(Bn)}),Pe.current=kt;var vn=React.useRef([]);return an.length&&(vn.current=an),React.useDebugValue(wt.current),React.useDebugValue(vn.current.join(", ")),Xt&&console.log("".concat(Xt,":"),wt.current,vn.current),wt.current}var F=null,P=null,U=S(26420),G=S(98506),Q=S(52873),ee=S(92310),ae=S.n(ee),oe=S(80547),he=S(97938),le=S(48736),be=u.createContext({renderWithProps:!1}),pe=be,_e="RC_TABLE_KEY";function ne(kt){return kt==null?[]:Array.isArray(kt)?kt:[kt]}function ue(kt){var Xt=[],wt={};return kt.forEach(function(Pe){for(var an=Pe||{},vn=an.key,Bn=an.dataIndex,On=vn||ne(Bn).join("-")||_e;wt[On];)On="".concat(On,"_next");wt[On]=!0,Xt.push(On)}),Xt}function ce(kt){return kt!=null}function Re(kt){return typeof kt=="number"&&!Number.isNaN(kt)}function ke(kt){return kt&&(0,U.Z)(kt)==="object"&&!Array.isArray(kt)&&!u.isValidElement(kt)}function Ne(kt,Xt,wt,Pe,an,vn){var Bn=u.useContext(pe),On=k(),En=(0,oe.Z)(function(){if(ce(Pe))return[Pe];var Vt=Xt==null||Xt===""?[]:Array.isArray(Xt)?Xt:[Xt],cn=(0,he.Z)(kt,Vt),dn=cn,rn=void 0;if(an){var pn=an(cn,kt,wt);ke(pn)?(dn=pn.children,rn=pn.props,Bn.renderWithProps=!0):dn=pn}return[dn,rn]},[On,kt,Pe,Xt,an,wt],function(Vt,cn){if(vn){var dn=(0,Y.Z)(Vt,2),rn=dn[1],pn=(0,Y.Z)(cn,2),jn=pn[1];return vn(jn,rn)}return Bn.renderWithProps?!0:!(0,_.Z)(Vt,cn,!0)});return En}function De(kt,Xt,wt,Pe){var an=kt+Xt-1;return kt<=Pe&&an>=wt}function Me(kt,Xt){return m(H,function(wt){var Pe=De(kt,Xt||1,wt.hoverStartRow,wt.hoverEndRow);return[Pe,wt.onHover]})}var We=S(70425),je=function(Xt){var wt=Xt.ellipsis,Pe=Xt.rowType,an=Xt.children,vn,Bn=wt===!0?{showTitle:!0}:wt;return Bn&&(Bn.showTitle||Pe==="header")&&(typeof an=="string"||typeof an=="number"?vn=an.toString():u.isValidElement(an)&&typeof an.props.children=="string"&&(vn=an.props.children)),vn};function et(kt){var Xt,wt,Pe,an,vn,Bn,On,En,Vt=kt.component,cn=kt.children,dn=kt.ellipsis,rn=kt.scope,pn=kt.prefixCls,jn=kt.className,dr=kt.align,lr=kt.record,un=kt.render,zr=kt.dataIndex,_r=kt.renderIndex,ci=kt.shouldCellUpdate,Cr=kt.index,Zi=kt.rowType,ji=kt.colSpan,Pi=kt.rowSpan,Ti=kt.fixLeft,Fi=kt.fixRight,Ji=kt.firstFixLeft,Ct=kt.lastFixLeft,ai=kt.firstFixRight,Qr=kt.lastFixRight,Sr=kt.appendNode,Pr=kt.additionalProps,ri=Pr===void 0?{}:Pr,_i=kt.isSticky,Nt="".concat(pn,"-cell"),Rr=m(H,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ki=Rr.supportSticky,_s=Rr.allColumnsFixedLeft,fs=Rr.rowHoverable,Da=Ne(lr,zr,_r,cn,un,ci),Rs=(0,Y.Z)(Da,2),sr=Rs[0],mo=Rs[1],vo={},Ko=typeof Ti=="number"&&Ki,yo=typeof Fi=="number"&&Ki;Ko&&(vo.position="sticky",vo.left=Ti),yo&&(vo.position="sticky",vo.right=Fi);var Ao=(Xt=(wt=(Pe=mo==null?void 0:mo.colSpan)!==null&&Pe!==void 0?Pe:ri.colSpan)!==null&&wt!==void 0?wt:ji)!==null&&Xt!==void 0?Xt:1,Cn=(an=(vn=(Bn=mo==null?void 0:mo.rowSpan)!==null&&Bn!==void 0?Bn:ri.rowSpan)!==null&&vn!==void 0?vn:Pi)!==null&&an!==void 0?an:1,nr=Me(Cr,Cn),xr=(0,Y.Z)(nr,2),Xr=xr[0],Jr=xr[1],Yi=(0,We.zX)(function(xs){var io;lr&&Jr(Cr,Cr+Cn-1),ri==null||(io=ri.onMouseEnter)===null||io===void 0||io.call(ri,xs)}),ir=(0,We.zX)(function(xs){var io;lr&&Jr(-1,-1),ri==null||(io=ri.onMouseLeave)===null||io===void 0||io.call(ri,xs)});if(Ao===0||Cn===0)return null;var es=(On=ri.title)!==null&&On!==void 0?On:je({rowType:Zi,ellipsis:dn,children:sr}),Co=ae()(Nt,jn,(En={},(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)(En,"".concat(Nt,"-fix-left"),Ko&&Ki),"".concat(Nt,"-fix-left-first"),Ji&&Ki),"".concat(Nt,"-fix-left-last"),Ct&&Ki),"".concat(Nt,"-fix-left-all"),Ct&&_s&&Ki),"".concat(Nt,"-fix-right"),yo&&Ki),"".concat(Nt,"-fix-right-first"),ai&&Ki),"".concat(Nt,"-fix-right-last"),Qr&&Ki),"".concat(Nt,"-ellipsis"),dn),"".concat(Nt,"-with-append"),Sr),"".concat(Nt,"-fix-sticky"),(Ko||yo)&&_i&&Ki),(0,Q.Z)(En,"".concat(Nt,"-row-hover"),!mo&&Xr)),ri.className,mo==null?void 0:mo.className),xo={};dr&&(xo.textAlign=dr);var ni=(0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)({},mo==null?void 0:mo.style),vo),xo),ri.style),Qi=sr;return(0,U.Z)(Qi)==="object"&&!Array.isArray(Qi)&&!u.isValidElement(Qi)&&(Qi=null),dn&&(Ct||ai)&&(Qi=u.createElement("span",{className:"".concat(Nt,"-content")},Qi)),u.createElement(Vt,(0,b.Z)({},mo,ri,{className:Co,style:ni,title:es,scope:rn,onMouseEnter:fs?Yi:void 0,onMouseLeave:fs?ir:void 0,colSpan:Ao!==1?Ao:null,rowSpan:Cn!==1?Cn:null}),Sr,Qi)}var it=u.memo(et);function ze(kt,Xt,wt,Pe,an){var vn=wt[kt]||{},Bn=wt[Xt]||{},On,En;vn.fixed==="left"?On=Pe.left[an==="rtl"?Xt:kt]:Bn.fixed==="right"&&(En=Pe.right[an==="rtl"?kt:Xt]);var Vt=!1,cn=!1,dn=!1,rn=!1,pn=wt[Xt+1],jn=wt[kt-1],dr=pn&&!pn.fixed||jn&&!jn.fixed||wt.every(function(ci){return ci.fixed==="left"});if(an==="rtl"){if(On!==void 0){var lr=jn&&jn.fixed==="left";rn=!lr&&dr}else if(En!==void 0){var un=pn&&pn.fixed==="right";dn=!un&&dr}}else if(On!==void 0){var zr=pn&&pn.fixed==="left";Vt=!zr&&dr}else if(En!==void 0){var _r=jn&&jn.fixed==="right";cn=!_r&&dr}return{fixLeft:On,fixRight:En,lastFixLeft:Vt,firstFixRight:cn,lastFixRight:dn,firstFixLeft:rn,isSticky:Pe.isSticky}}var xe=u.createContext({}),fe=xe;function W(kt){var Xt=kt.className,wt=kt.index,Pe=kt.children,an=kt.colSpan,vn=an===void 0?1:an,Bn=kt.rowSpan,On=kt.align,En=m(H,["prefixCls","direction"]),Vt=En.prefixCls,cn=En.direction,dn=u.useContext(fe),rn=dn.scrollColumnIndex,pn=dn.stickyOffsets,jn=dn.flattenColumns,dr=wt+vn-1,lr=dr+1===rn?vn+1:vn,un=ze(wt,wt+lr-1,jn,pn,cn);return u.createElement(it,(0,b.Z)({className:Xt,index:wt,component:"td",prefixCls:Vt,record:null,dataIndex:null,align:On,colSpan:lr,rowSpan:Bn,render:function(){return Pe}},un))}var Z=S(33346),me=["children"];function Ce(kt){var Xt=kt.children,wt=(0,Z.Z)(kt,me);return u.createElement("tr",wt,Xt)}function re(kt){var Xt=kt.children;return Xt}re.Row=Ce,re.Cell=W;var ie=re;function de(kt){var Xt=kt.children,wt=kt.stickyOffsets,Pe=kt.flattenColumns,an=m(H,"prefixCls"),vn=Pe.length-1,Bn=Pe[vn],On=u.useMemo(function(){return{stickyOffsets:wt,flattenColumns:Pe,scrollColumnIndex:Bn!=null&&Bn.scrollbar?vn:null}},[Bn,Pe,vn,wt]);return u.createElement(fe.Provider,{value:On},u.createElement("tfoot",{className:"".concat(an,"-summary")},Xt))}var Ae=N(de),Be=ie,He=S(29301),st=S(24514),Qe=S(75152),pt=S(26112);function It(kt,Xt,wt,Pe,an,vn,Bn){kt.push({record:Xt,indent:wt,index:Bn});var On=vn(Xt),En=an==null?void 0:an.has(On);if(Xt&&Array.isArray(Xt[Pe])&&En)for(var Vt=0;Vt<Xt[Pe].length;Vt+=1)It(kt,Xt[Pe][Vt],wt+1,Pe,an,vn,Vt)}function gt(kt,Xt,wt,Pe){var an=u.useMemo(function(){if(wt!=null&&wt.size){for(var vn=[],Bn=0;Bn<(kt==null?void 0:kt.length);Bn+=1){var On=kt[Bn];It(vn,On,0,Xt,wt,Pe,Bn)}return vn}return kt==null?void 0:kt.map(function(En,Vt){return{record:En,indent:0,index:Vt}})},[kt,Xt,wt,Pe]);return an}function rt(kt,Xt,wt,Pe){var an=m(H,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),vn=an.flattenColumns,Bn=an.expandableType,On=an.expandedKeys,En=an.childrenColumnName,Vt=an.onTriggerExpand,cn=an.rowExpandable,dn=an.onRow,rn=an.expandRowByClick,pn=an.rowClassName,jn=Bn==="nest",dr=Bn==="row"&&(!cn||cn(kt)),lr=dr||jn,un=On&&On.has(Xt),zr=En&&kt&&kt[En],_r=(0,We.zX)(Vt),ci=dn==null?void 0:dn(kt,wt),Cr=ci==null?void 0:ci.onClick,Zi=function(Fi){rn&&lr&&Vt(kt,Fi);for(var Ji=arguments.length,Ct=new Array(Ji>1?Ji-1:0),ai=1;ai<Ji;ai++)Ct[ai-1]=arguments[ai];Cr==null||Cr.apply(void 0,[Fi].concat(Ct))},ji;typeof pn=="string"?ji=pn:typeof pn=="function"&&(ji=pn(kt,wt,Pe));var Pi=ue(vn);return(0,G.Z)((0,G.Z)({},an),{},{columnsKey:Pi,nestExpandable:jn,expanded:un,hasNestChildren:zr,record:kt,onTriggerExpand:_r,rowSupportExpand:dr,expandable:lr,rowProps:(0,G.Z)((0,G.Z)({},ci),{},{className:ae()(ji,ci==null?void 0:ci.className),onClick:Zi})})}function ut(kt){var Xt=kt.prefixCls,wt=kt.children,Pe=kt.component,an=kt.cellComponent,vn=kt.className,Bn=kt.expanded,On=kt.colSpan,En=kt.isEmpty,Vt=m(H,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),cn=Vt.scrollbarSize,dn=Vt.fixHeader,rn=Vt.fixColumn,pn=Vt.componentWidth,jn=Vt.horizonScroll,dr=wt;return(En?jn&&pn:rn)&&(dr=u.createElement("div",{style:{width:pn-(dn&&!En?cn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Xt,"-expanded-row-fixed")},dr)),u.createElement(Pe,{className:vn,style:{display:Bn?null:"none"}},u.createElement(it,{component:an,prefixCls:Xt,colSpan:On},dr))}var At=ut;function bt(kt){var Xt=kt.prefixCls,wt=kt.record,Pe=kt.onExpand,an=kt.expanded,vn=kt.expandable,Bn="".concat(Xt,"-row-expand-icon");if(!vn)return u.createElement("span",{className:ae()(Bn,"".concat(Xt,"-row-spaced"))});var On=function(Vt){Pe(wt,Vt),Vt.stopPropagation()};return u.createElement("span",{className:ae()(Bn,(0,Q.Z)((0,Q.Z)({},"".concat(Xt,"-row-expanded"),an),"".concat(Xt,"-row-collapsed"),!an)),onClick:On})}function Tt(kt,Xt,wt){var Pe=[];function an(vn){(vn||[]).forEach(function(Bn,On){Pe.push(Xt(Bn,On)),an(Bn[wt])})}return an(kt),Pe}function Mt(kt,Xt,wt,Pe){return typeof kt=="string"?kt:typeof kt=="function"?kt(Xt,wt,Pe):""}function Ot(kt,Xt,wt,Pe,an){var vn=kt.record,Bn=kt.prefixCls,On=kt.columnsKey,En=kt.fixedInfoList,Vt=kt.expandIconColumnIndex,cn=kt.nestExpandable,dn=kt.indentSize,rn=kt.expandIcon,pn=kt.expanded,jn=kt.hasNestChildren,dr=kt.onTriggerExpand,lr=On[wt],un=En[wt],zr;wt===(Vt||0)&&cn&&(zr=u.createElement(u.Fragment,null,u.createElement("span",{style:{paddingLeft:"".concat(dn*Pe,"px")},className:"".concat(Bn,"-row-indent indent-level-").concat(Pe)}),rn({prefixCls:Bn,expanded:pn,expandable:jn,record:vn,onExpand:dr})));var _r;return Xt.onCell&&(_r=Xt.onCell(vn,an)),{key:lr,fixedInfo:un,appendCellNode:zr,additionalCellProps:_r||{}}}function $e(kt){var Xt=kt.className,wt=kt.style,Pe=kt.record,an=kt.index,vn=kt.renderIndex,Bn=kt.rowKey,On=kt.indent,En=On===void 0?0:On,Vt=kt.rowComponent,cn=kt.cellComponent,dn=kt.scopeCellComponent,rn=rt(Pe,Bn,an,En),pn=rn.prefixCls,jn=rn.flattenColumns,dr=rn.expandedRowClassName,lr=rn.expandedRowRender,un=rn.rowProps,zr=rn.expanded,_r=rn.rowSupportExpand,ci=u.useRef(!1);ci.current||(ci.current=zr);var Cr=Mt(dr,Pe,an,En),Zi=u.createElement(Vt,(0,b.Z)({},un,{"data-row-key":Bn,className:ae()(Xt,"".concat(pn,"-row"),"".concat(pn,"-row-level-").concat(En),un==null?void 0:un.className,(0,Q.Z)({},Cr,En>=1)),style:(0,G.Z)((0,G.Z)({},wt),un==null?void 0:un.style)}),jn.map(function(Ti,Fi){var Ji=Ti.render,Ct=Ti.dataIndex,ai=Ti.className,Qr=Ot(rn,Ti,Fi,En,an),Sr=Qr.key,Pr=Qr.fixedInfo,ri=Qr.appendCellNode,_i=Qr.additionalCellProps;return u.createElement(it,(0,b.Z)({className:ai,ellipsis:Ti.ellipsis,align:Ti.align,scope:Ti.rowScope,component:Ti.rowScope?dn:cn,prefixCls:pn,key:Sr,record:Pe,index:an,renderIndex:vn,dataIndex:Ct,render:Ji,shouldCellUpdate:Ti.shouldCellUpdate},Pr,{appendNode:ri,additionalProps:_i}))})),ji;if(_r&&(ci.current||zr)){var Pi=lr(Pe,an,En+1,zr);ji=u.createElement(At,{expanded:zr,className:ae()("".concat(pn,"-expanded-row"),"".concat(pn,"-expanded-row-level-").concat(En+1),Cr),prefixCls:pn,component:Vt,cellComponent:cn,colSpan:jn.length,isEmpty:!1},Pi)}return u.createElement(u.Fragment,null,Zi,ji)}var $t=N($e);function gn(kt){var Xt=kt.columnKey,wt=kt.onColumnResize,Pe=u.useRef();return(0,w.Z)(function(){Pe.current&&wt(Xt,Pe.current.offsetWidth)},[]),u.createElement(He.Z,{data:Xt},u.createElement("td",{ref:Pe,style:{padding:0,border:0,height:0}},u.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Et=S(29194);function Mn(kt){var Xt=kt.prefixCls,wt=kt.columnsKey,Pe=kt.onColumnResize,an=u.useRef(null);return u.createElement("tr",{"aria-hidden":"true",className:"".concat(Xt,"-measure-row"),style:{height:0,fontSize:0},ref:an},u.createElement(He.Z.Collection,{onBatchResize:function(Bn){(0,Et.Z)(an.current)&&Bn.forEach(function(On){var En=On.data,Vt=On.size;Pe(En,Vt.offsetWidth)})}},wt.map(function(vn){return u.createElement(gn,{key:vn,columnKey:vn,onColumnResize:Pe})})))}function qn(kt){var Xt=kt.data,wt=kt.measureColumnWidth,Pe=m(H,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),an=Pe.prefixCls,vn=Pe.getComponent,Bn=Pe.onColumnResize,On=Pe.flattenColumns,En=Pe.getRowKey,Vt=Pe.expandedKeys,cn=Pe.childrenColumnName,dn=Pe.emptyNode,rn=gt(Xt,cn,Vt,En),pn=u.useRef({renderWithProps:!1}),jn=vn(["body","wrapper"],"tbody"),dr=vn(["body","row"],"tr"),lr=vn(["body","cell"],"td"),un=vn(["body","cell"],"th"),zr;Xt.length?zr=rn.map(function(ci,Cr){var Zi=ci.record,ji=ci.indent,Pi=ci.index,Ti=En(Zi,Cr);return u.createElement($t,{key:Ti,rowKey:Ti,record:Zi,index:Cr,renderIndex:Pi,rowComponent:dr,cellComponent:lr,scopeCellComponent:un,indent:ji})}):zr=u.createElement(At,{expanded:!0,className:"".concat(an,"-placeholder"),prefixCls:an,component:dr,cellComponent:lr,colSpan:On.length,isEmpty:!0},dn);var _r=ue(On);return u.createElement(pe.Provider,{value:pn.current},u.createElement(jn,{className:"".concat(an,"-tbody")},wt&&u.createElement(Mn,{prefixCls:an,columnsKey:_r,onColumnResize:Bn}),zr))}var Zn=N(qn),Bt=S(54451),yr=["columnType"];function vr(kt){for(var Xt=kt.colWidths,wt=kt.columns,Pe=kt.columCount,an=m(H,["tableLayout"]),vn=an.tableLayout,Bn=[],On=Pe||wt.length,En=!1,Vt=On-1;Vt>=0;Vt-=1){var cn=Xt[Vt],dn=wt&&wt[Vt],rn=void 0,pn=void 0;if(dn&&(rn=dn[Bt.v],vn==="auto"&&(pn=dn.minWidth)),cn||pn||rn||En){var jn=rn||{},dr=jn.columnType,lr=(0,Z.Z)(jn,yr);Bn.unshift(u.createElement("col",(0,b.Z)({key:Vt,style:{width:cn,minWidth:pn}},lr))),En=!0}}return u.createElement("colgroup",null,Bn)}var Un=vr,Wn=S(15142),wr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ye(kt,Xt){return(0,u.useMemo)(function(){for(var wt=[],Pe=0;Pe<Xt;Pe+=1){var an=kt[Pe];if(an!==void 0)wt[Pe]=an;else return null}return wt},[kt.join("_"),Xt])}var Fn=u.forwardRef(function(kt,Xt){var wt=kt.className,Pe=kt.noData,an=kt.columns,vn=kt.flattenColumns,Bn=kt.colWidths,On=kt.columCount,En=kt.stickyOffsets,Vt=kt.direction,cn=kt.fixHeader,dn=kt.stickyTopOffset,rn=kt.stickyBottomOffset,pn=kt.stickyClassName,jn=kt.onScroll,dr=kt.maxContentScroll,lr=kt.children,un=(0,Z.Z)(kt,wr),zr=m(H,["prefixCls","scrollbarSize","isSticky","getComponent"]),_r=zr.prefixCls,ci=zr.scrollbarSize,Cr=zr.isSticky,Zi=zr.getComponent,ji=Zi(["header","table"],"table"),Pi=Cr&&!cn?0:ci,Ti=u.useRef(null),Fi=u.useCallback(function(_i){(0,v.mH)(Xt,_i),(0,v.mH)(Ti,_i)},[]);u.useEffect(function(){var _i;function Nt(Rr){var Ki=Rr,_s=Ki.currentTarget,fs=Ki.deltaX;fs&&(jn({currentTarget:_s,scrollLeft:_s.scrollLeft+fs}),Rr.preventDefault())}return(_i=Ti.current)===null||_i===void 0||_i.addEventListener("wheel",Nt,{passive:!1}),function(){var Rr;(Rr=Ti.current)===null||Rr===void 0||Rr.removeEventListener("wheel",Nt)}},[]);var Ji=u.useMemo(function(){return vn.every(function(_i){return _i.width})},[vn]),Ct=vn[vn.length-1],ai={fixed:Ct?Ct.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_r,"-cell-scrollbar")}}},Qr=(0,u.useMemo)(function(){return Pi?[].concat((0,Wn.Z)(an),[ai]):an},[Pi,an]),Sr=(0,u.useMemo)(function(){return Pi?[].concat((0,Wn.Z)(vn),[ai]):vn},[Pi,vn]),Pr=(0,u.useMemo)(function(){var _i=En.right,Nt=En.left;return(0,G.Z)((0,G.Z)({},En),{},{left:Vt==="rtl"?[].concat((0,Wn.Z)(Nt.map(function(Rr){return Rr+Pi})),[0]):Nt,right:Vt==="rtl"?_i:[].concat((0,Wn.Z)(_i.map(function(Rr){return Rr+Pi})),[0]),isSticky:Cr})},[Pi,En,Cr]),ri=ye(Bn,On);return u.createElement("div",{style:(0,G.Z)({overflow:"hidden"},Cr?{top:dn,bottom:rn}:{}),ref:Fi,className:ae()(wt,(0,Q.Z)({},pn,!!pn))},u.createElement(ji,{style:{tableLayout:"fixed",visibility:Pe||ri?null:"hidden"}},(!Pe||!dr||Ji)&&u.createElement(Un,{colWidths:ri?[].concat((0,Wn.Z)(ri),[Pi]):[],columCount:On+1,columns:Sr}),lr((0,G.Z)((0,G.Z)({},un),{},{stickyOffsets:Pr,columns:Qr,flattenColumns:Sr}))))}),wn=u.memo(Fn),Jn=function(Xt){var wt=Xt.cells,Pe=Xt.stickyOffsets,an=Xt.flattenColumns,vn=Xt.rowComponent,Bn=Xt.cellComponent,On=Xt.onHeaderRow,En=Xt.index,Vt=m(H,["prefixCls","direction"]),cn=Vt.prefixCls,dn=Vt.direction,rn;On&&(rn=On(wt.map(function(jn){return jn.column}),En));var pn=ue(wt.map(function(jn){return jn.column}));return u.createElement(vn,rn,wt.map(function(jn,dr){var lr=jn.column,un=ze(jn.colStart,jn.colEnd,an,Pe,dn),zr;return lr&&lr.onHeaderCell&&(zr=jn.column.onHeaderCell(lr)),u.createElement(it,(0,b.Z)({},jn,{scope:lr.title?jn.colSpan>1?"colgroup":"col":null,ellipsis:lr.ellipsis,align:lr.align,component:Bn,prefixCls:cn,key:pn[dr]},un,{additionalProps:zr,rowType:"header"}))}))},Ir=Jn;function Wr(kt){var Xt=[];function wt(Bn,On){var En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Xt[En]=Xt[En]||[];var Vt=On,cn=Bn.filter(Boolean).map(function(dn){var rn={key:dn.key,className:dn.className||"",children:dn.title,column:dn,colStart:Vt},pn=1,jn=dn.children;return jn&&jn.length>0&&(pn=wt(jn,Vt,En+1).reduce(function(dr,lr){return dr+lr},0),rn.hasSubColumns=!0),"colSpan"in dn&&(pn=dn.colSpan),"rowSpan"in dn&&(rn.rowSpan=dn.rowSpan),rn.colSpan=pn,rn.colEnd=rn.colStart+pn-1,Xt[En].push(rn),Vt+=pn,pn});return cn}wt(kt,0);for(var Pe=Xt.length,an=function(On){Xt[On].forEach(function(En){!("rowSpan"in En)&&!En.hasSubColumns&&(En.rowSpan=Pe-On)})},vn=0;vn<Pe;vn+=1)an(vn);return Xt}var cr=function(Xt){var wt=Xt.stickyOffsets,Pe=Xt.columns,an=Xt.flattenColumns,vn=Xt.onHeaderRow,Bn=m(H,["prefixCls","getComponent"]),On=Bn.prefixCls,En=Bn.getComponent,Vt=u.useMemo(function(){return Wr(Pe)},[Pe]),cn=En(["header","wrapper"],"thead"),dn=En(["header","row"],"tr"),rn=En(["header","cell"],"th");return u.createElement(cn,{className:"".concat(On,"-thead")},Vt.map(function(pn,jn){var dr=u.createElement(Ir,{key:jn,flattenColumns:an,cells:pn,stickyOffsets:wt,rowComponent:dn,cellComponent:rn,onHeaderRow:vn,index:jn});return dr}))},ro=N(cr),Kr=S(97347);function oi(kt,Xt,wt){var Pe=(0,Bt.g)(kt),an=Pe.expandIcon,vn=Pe.expandedRowKeys,Bn=Pe.defaultExpandedRowKeys,On=Pe.defaultExpandAllRows,En=Pe.expandedRowRender,Vt=Pe.onExpand,cn=Pe.onExpandedRowsChange,dn=Pe.childrenColumnName,rn=an||bt,pn=dn||"children",jn=u.useMemo(function(){return En?"row":kt.expandable&&kt.internalHooks===B.R&&kt.expandable.__PARENT_RENDER_ICON__||Xt.some(function(Cr){return Cr&&(0,U.Z)(Cr)==="object"&&Cr[pn]})?"nest":!1},[!!En,Xt]),dr=u.useState(function(){return Bn||(On?Tt(Xt,wt,pn):[])}),lr=(0,Y.Z)(dr,2),un=lr[0],zr=lr[1],_r=u.useMemo(function(){return new Set(vn||un||[])},[vn,un]),ci=u.useCallback(function(Cr){var Zi=wt(Cr,Xt.indexOf(Cr)),ji,Pi=_r.has(Zi);Pi?(_r.delete(Zi),ji=(0,Wn.Z)(_r)):ji=[].concat((0,Wn.Z)(_r),[Zi]),zr(ji),Vt&&Vt(!Pi,Cr),cn&&cn(ji)},[wt,_r,Xt,Vt,cn]);return[Pe,jn,_r,rn,pn,ci]}function Kn(kt,Xt,wt){var Pe=kt.map(function(an,vn){return ze(vn,vn,kt,Xt,wt)});return(0,oe.Z)(function(){return Pe},[Pe],function(an,vn){return!(0,_.Z)(an,vn)})}function Dn(kt){var Xt=(0,u.useRef)(kt),wt=(0,u.useState)({}),Pe=(0,Y.Z)(wt,2),an=Pe[1],vn=(0,u.useRef)(null),Bn=(0,u.useRef)([]);function On(En){Bn.current.push(En);var Vt=Promise.resolve();vn.current=Vt,Vt.then(function(){if(vn.current===Vt){var cn=Bn.current,dn=Xt.current;Bn.current=[],cn.forEach(function(rn){Xt.current=rn(Xt.current)}),vn.current=null,dn!==Xt.current&&an({})}})}return(0,u.useEffect)(function(){return function(){vn.current=null}},[]),[Xt.current,On]}function li(kt){var Xt=(0,u.useRef)(kt||null),wt=(0,u.useRef)();function Pe(){window.clearTimeout(wt.current)}function an(Bn){Xt.current=Bn,Pe(),wt.current=window.setTimeout(function(){Xt.current=null,wt.current=void 0},100)}function vn(){return Xt.current}return(0,u.useEffect)(function(){return Pe},[]),[an,vn]}function Nr(){var kt=u.useState(-1),Xt=(0,Y.Z)(kt,2),wt=Xt[0],Pe=Xt[1],an=u.useState(-1),vn=(0,Y.Z)(an,2),Bn=vn[0],On=vn[1],En=u.useCallback(function(Vt,cn){Pe(Vt),On(cn)},[]);return[wt,Bn,En]}var Yr=S(47273),mn=(0,Yr.Z)()?window:null;function zn(kt,Xt){var wt=(0,U.Z)(kt)==="object"?kt:{},Pe=wt.offsetHeader,an=Pe===void 0?0:Pe,vn=wt.offsetSummary,Bn=vn===void 0?0:vn,On=wt.offsetScroll,En=On===void 0?0:On,Vt=wt.getContainer,cn=Vt===void 0?function(){return mn}:Vt,dn=cn()||mn,rn=!!kt;return u.useMemo(function(){return{isSticky:rn,stickyClassName:rn?"".concat(Xt,"-sticky-holder"):"",offsetHeader:an,offsetSummary:Bn,offsetScroll:En,container:dn}},[rn,En,an,Bn,Xt,dn])}function Mr(kt,Xt,wt){var Pe=(0,u.useMemo)(function(){var an=Xt.length,vn=function(Vt,cn,dn){for(var rn=[],pn=0,jn=Vt;jn!==cn;jn+=dn)rn.push(pn),Xt[jn].fixed&&(pn+=kt[jn]||0);return rn},Bn=vn(0,an,1),On=vn(an-1,-1,-1).reverse();return wt==="rtl"?{left:On,right:Bn}:{left:Bn,right:On}},[kt,Xt,wt]);return Pe}var Ci=Mr;function vi(kt){var Xt=kt.className,wt=kt.children;return u.createElement("div",{className:Xt},wt)}var nt=vi,vt=S(8224),hn=S(16089),yn=S(76846);function dt(kt){var Xt=(0,yn.bn)(kt),wt=Xt.getBoundingClientRect(),Pe=document.documentElement;return{left:wt.left+(window.pageXOffset||Pe.scrollLeft)-(Pe.clientLeft||document.body.clientLeft||0),top:wt.top+(window.pageYOffset||Pe.scrollTop)-(Pe.clientTop||document.body.clientTop||0)}}var on=function(Xt,wt){var Pe,an,vn=Xt.scrollBodyRef,Bn=Xt.onScroll,On=Xt.offsetScroll,En=Xt.container,Vt=Xt.direction,cn=m(H,"prefixCls"),dn=((Pe=vn.current)===null||Pe===void 0?void 0:Pe.scrollWidth)||0,rn=((an=vn.current)===null||an===void 0?void 0:an.clientWidth)||0,pn=dn&&rn*(rn/dn),jn=u.useRef(),dr=Dn({scrollLeft:0,isHiddenScrollBar:!0}),lr=(0,Y.Z)(dr,2),un=lr[0],zr=lr[1],_r=u.useRef({delta:0,x:0}),ci=u.useState(!1),Cr=(0,Y.Z)(ci,2),Zi=Cr[0],ji=Cr[1],Pi=u.useRef(null);u.useEffect(function(){return function(){hn.Z.cancel(Pi.current)}},[]);var Ti=function(){ji(!1)},Fi=function(Sr){Sr.persist(),_r.current.delta=Sr.pageX-un.scrollLeft,_r.current.x=0,ji(!0),Sr.preventDefault()},Ji=function(Sr){var Pr,ri=Sr||((Pr=window)===null||Pr===void 0?void 0:Pr.event),_i=ri.buttons;if(!Zi||_i===0){Zi&&ji(!1);return}var Nt=_r.current.x+Sr.pageX-_r.current.x-_r.current.delta,Rr=Vt==="rtl";Nt=Math.max(Rr?pn-rn:0,Math.min(Rr?0:rn-pn,Nt));var Ki=!Rr||Math.abs(Nt)+Math.abs(pn)<rn;Ki&&(Bn({scrollLeft:Nt/rn*(dn+2)}),_r.current.x=Sr.pageX)},Ct=function(){hn.Z.cancel(Pi.current),Pi.current=(0,hn.Z)(function(){if(vn.current){var Sr=dt(vn.current).top,Pr=Sr+vn.current.offsetHeight,ri=En===window?document.documentElement.scrollTop+window.innerHeight:dt(En).top+En.clientHeight;Pr-(0,Qe.Z)()<=ri||Sr>=ri-On?zr(function(_i){return(0,G.Z)((0,G.Z)({},_i),{},{isHiddenScrollBar:!0})}):zr(function(_i){return(0,G.Z)((0,G.Z)({},_i),{},{isHiddenScrollBar:!1})})}})},ai=function(Sr){zr(function(Pr){return(0,G.Z)((0,G.Z)({},Pr),{},{scrollLeft:Sr/dn*rn||0})})};return u.useImperativeHandle(wt,function(){return{setScrollLeft:ai,checkScrollBarVisible:Ct}}),u.useEffect(function(){var Qr=(0,vt.Z)(document.body,"mouseup",Ti,!1),Sr=(0,vt.Z)(document.body,"mousemove",Ji,!1);return Ct(),function(){Qr.remove(),Sr.remove()}},[pn,Zi]),u.useEffect(function(){if(vn.current){for(var Qr=[],Sr=(0,yn.bn)(vn.current);Sr;)Qr.push(Sr),Sr=Sr.parentElement;return Qr.forEach(function(Pr){return Pr.addEventListener("scroll",Ct,!1)}),window.addEventListener("resize",Ct,!1),window.addEventListener("scroll",Ct,!1),En.addEventListener("scroll",Ct,!1),function(){Qr.forEach(function(Pr){return Pr.removeEventListener("scroll",Ct)}),window.removeEventListener("resize",Ct),window.removeEventListener("scroll",Ct),En.removeEventListener("scroll",Ct)}}},[En]),u.useEffect(function(){un.isHiddenScrollBar||zr(function(Qr){var Sr=vn.current;return Sr?(0,G.Z)((0,G.Z)({},Qr),{},{scrollLeft:Sr.scrollLeft/Sr.scrollWidth*Sr.clientWidth}):Qr})},[un.isHiddenScrollBar]),dn<=rn||!pn||un.isHiddenScrollBar?null:u.createElement("div",{style:{height:(0,Qe.Z)(),width:rn,bottom:On},className:"".concat(cn,"-sticky-scroll")},u.createElement("div",{onMouseDown:Fi,ref:jn,className:ae()("".concat(cn,"-sticky-scroll-bar"),(0,Q.Z)({},"".concat(cn,"-sticky-scroll-bar-active"),Zi)),style:{width:"".concat(pn,"px"),transform:"translate3d(".concat(un.scrollLeft,"px, 0, 0)")}}))},kn=u.forwardRef(on);function _t(kt){return null}var we=_t;function An(kt){return null}var Nn=An,Ft="rc-table",hr=[],Xn={};function or(){return"No Data"}function Tn(kt,Xt){var wt=(0,G.Z)({rowKey:"key",prefixCls:Ft,emptyText:or},kt),Pe=wt.prefixCls,an=wt.className,vn=wt.rowClassName,Bn=wt.style,On=wt.data,En=wt.rowKey,Vt=wt.scroll,cn=wt.tableLayout,dn=wt.direction,rn=wt.title,pn=wt.footer,jn=wt.summary,dr=wt.caption,lr=wt.id,un=wt.showHeader,zr=wt.components,_r=wt.emptyText,ci=wt.onRow,Cr=wt.onHeaderRow,Zi=wt.onScroll,ji=wt.internalHooks,Pi=wt.transformColumns,Ti=wt.internalRefs,Fi=wt.tailor,Ji=wt.getContainerWidth,Ct=wt.sticky,ai=wt.rowHoverable,Qr=ai===void 0?!0:ai,Sr=On||hr,Pr=!!Sr.length,ri=ji===B.R,_i=u.useCallback(function(ki,to){return(0,he.Z)(zr,ki)||to},[zr]),Nt=u.useMemo(function(){return typeof En=="function"?En:function(ki){var to=ki&&ki[En];return to}},[En]),Rr=_i(["body"]),Ki=Nr(),_s=(0,Y.Z)(Ki,3),fs=_s[0],Da=_s[1],Rs=_s[2],sr=oi(wt,Sr,Nt),mo=(0,Y.Z)(sr,6),vo=mo[0],Ko=mo[1],yo=mo[2],Ao=mo[3],Cn=mo[4],nr=mo[5],xr=Vt==null?void 0:Vt.x,Xr=u.useState(0),Jr=(0,Y.Z)(Xr,2),Yi=Jr[0],ir=Jr[1],es=(0,Kr.Z)((0,G.Z)((0,G.Z)((0,G.Z)({},wt),vo),{},{expandable:!!vo.expandedRowRender,columnTitle:vo.columnTitle,expandedKeys:yo,getRowKey:Nt,onTriggerExpand:nr,expandIcon:Ao,expandIconColumnIndex:vo.expandIconColumnIndex,direction:dn,scrollWidth:ri&&Fi&&typeof xr=="number"?xr:null,clientWidth:Yi}),ri?Pi:null),Co=(0,Y.Z)(es,4),xo=Co[0],ni=Co[1],Qi=Co[2],xs=Co[3],io=Qi!=null?Qi:xr,ds=u.useMemo(function(){return{columns:xo,flattenColumns:ni}},[xo,ni]),Hs=u.useRef(),Is=u.useRef(),Lo=u.useRef(),Pa=u.useRef();u.useImperativeHandle(Xt,function(){return{nativeElement:Hs.current,scrollTo:function(to){var No;if(Lo.current instanceof HTMLElement){var vs=to.index,is=to.top,Ca=to.key;if(Re(is)){var Ta;(Ta=Lo.current)===null||Ta===void 0||Ta.scrollTo({top:is})}else{var _a,aa=Ca!=null?Ca:Nt(Sr[vs]);(_a=Lo.current.querySelector('[data-row-key="'.concat(aa,'"]')))===null||_a===void 0||_a.scrollIntoView()}}else(No=Lo.current)!==null&&No!==void 0&&No.scrollTo&&Lo.current.scrollTo(to)}}});var $l=u.useRef(),zs=u.useState(!1),oa=(0,Y.Z)(zs,2),Gs=oa[0],ol=oa[1],du=u.useState(!1),pu=(0,Y.Z)(du,2),Bo=pu[0],Xl=pu[1],gu=u.useState(new Map),bl=(0,Y.Z)(gu,2),Dl=bl[0],ps=bl[1],As=ue(ni),Zo=As.map(function(ki){return Dl.get(ki)}),us=u.useMemo(function(){return Zo},[Zo.join("_")]),Sl=Ci(us,ni,dn),Os=Vt&&ce(Vt.y),so=Vt&&ce(io)||!!vo.fixed,qi=so&&ni.some(function(ki){var to=ki.fixed;return to}),Oi=u.useRef(),Yo=zn(Ct,Pe),Vn=Yo.isSticky,ts=Yo.offsetHeader,lt=Yo.offsetSummary,Qt=Yo.offsetScroll,wa=Yo.stickyClassName,sl=Yo.container,jo=u.useMemo(function(){return jn==null?void 0:jn(Sr)},[jn,Sr]),ns=(Os||Vn)&&u.isValidElement(jo)&&jo.type===ie&&jo.props.fixed,sa,Ea,Zl;Os&&(Ea={overflowY:Pr?"scroll":"auto",maxHeight:Vt.y}),so&&(sa={overflowX:"auto"},Os||(Ea={overflowY:"hidden"}),Zl={width:io===!0?"auto":io,minWidth:"100%"});var To=u.useCallback(function(ki,to){ps(function(No){if(No.get(ki)!==to){var vs=new Map(No);return vs.set(ki,to),vs}return No})},[]),Fr=li(null),gs=(0,Y.Z)(Fr,2),Bs=gs[0],$i=gs[1];function yi(ki,to){to&&(typeof to=="function"?to(ki):to.scrollLeft!==ki&&(to.scrollLeft=ki,to.scrollLeft!==ki&&setTimeout(function(){to.scrollLeft=ki},0)))}var ko=(0,s.Z)(function(ki){var to=ki.currentTarget,No=ki.scrollLeft,vs=dn==="rtl",is=typeof No=="number"?No:to.scrollLeft,Ca=to||Xn;if(!$i()||$i()===Ca){var Ta;Bs(Ca),yi(is,Is.current),yi(is,Lo.current),yi(is,$l.current),yi(is,(Ta=Oi.current)===null||Ta===void 0?void 0:Ta.setScrollLeft)}var _a=to||Is.current;if(_a){var aa=ri&&Fi&&typeof io=="number"?io:_a.scrollWidth,$a=_a.clientWidth;if(aa===$a){ol(!1),Xl(!1);return}vs?(ol(-is<aa-$a),Xl(-is>0)):(ol(is>0),Xl(is<aa-$a))}}),Ws=(0,s.Z)(function(ki){ko(ki),Zi==null||Zi(ki)}),go=function(){if(so&&Lo.current){var to;ko({currentTarget:(0,yn.bn)(Lo.current),scrollLeft:(to=Lo.current)===null||to===void 0?void 0:to.scrollLeft})}else ol(!1),Xl(!1)},Zs=function(to){var No,vs=to.width;(No=Oi.current)===null||No===void 0||No.checkScrollBarVisible();var is=Hs.current?Hs.current.offsetWidth:vs;ri&&Ji&&Hs.current&&(is=Ji(Hs.current,is)||is),is!==Yi&&(go(),ir(is))},rs=u.useRef(!1);u.useEffect(function(){rs.current&&go()},[so,On,xo.length]),u.useEffect(function(){rs.current=!0},[]);var xl=u.useState(0),eo=(0,Y.Z)(xl,2),ms=eo[0],Ui=eo[1],uo=u.useState(!0),po=(0,Y.Z)(uo,2),_o=po[0],Ai=po[1];(0,w.Z)(function(){(!Fi||!ri)&&(Lo.current instanceof Element?Ui((0,Qe.o)(Lo.current).width):Ui((0,Qe.o)(Pa.current).width)),Ai((0,st.G)("position","sticky"))},[]),u.useEffect(function(){ri&&Ti&&(Ti.body.current=Lo.current)});var Jl=u.useCallback(function(ki){return u.createElement(u.Fragment,null,u.createElement(ro,ki),ns==="top"&&u.createElement(Ae,ki,jo))},[ns,jo]),Ar=u.useCallback(function(ki){return u.createElement(Ae,ki,jo)},[jo]),oc=_i(["table"],"table"),Bi=u.useMemo(function(){return cn||(qi?io==="max-content"?"auto":"fixed":Os||Vn||ni.some(function(ki){var to=ki.ellipsis;return to})?"fixed":"auto")},[Os,qi,ni,cn,Vn]),ju,Pl={colWidths:us,columCount:ni.length,stickyOffsets:Sl,onHeaderRow:Cr,fixHeader:Os,scroll:Vt},al=u.useMemo(function(){return Pr?null:typeof _r=="function"?_r():_r},[Pr,_r]),Uu=u.createElement(Zn,{data:Sr,measureColumnWidth:Os||so||Vn}),Nu=u.createElement(Un,{colWidths:ni.map(function(ki){var to=ki.width;return to}),columns:ni}),Fa=dr!=null?u.createElement("caption",{className:"".concat(Pe,"-caption")},dr):void 0,Ba=(0,pt.Z)(wt,{data:!0}),Hi=(0,pt.Z)(wt,{aria:!0});if(Os||Vn){var Ls;typeof Rr=="function"?(Ls=Rr(Sr,{scrollbarSize:ms,ref:Lo,onScroll:ko}),Pl.colWidths=ni.map(function(ki,to){var No=ki.width,vs=to===ni.length-1?No-ms:No;return typeof vs=="number"&&!Number.isNaN(vs)?vs:0})):Ls=u.createElement("div",{style:(0,G.Z)((0,G.Z)({},sa),Ea),onScroll:Ws,ref:Lo,className:ae()("".concat(Pe,"-body"))},u.createElement(oc,(0,b.Z)({style:(0,G.Z)((0,G.Z)({},Zl),{},{tableLayout:Bi})},Hi),Fa,Nu,Uu,!ns&&jo&&u.createElement(Ae,{stickyOffsets:Sl,flattenColumns:ni},jo)));var Ql=(0,G.Z)((0,G.Z)((0,G.Z)({noData:!Sr.length,maxContentScroll:so&&io==="max-content"},Pl),ds),{},{direction:dn,stickyClassName:wa,onScroll:ko});ju=u.createElement(u.Fragment,null,un!==!1&&u.createElement(wn,(0,b.Z)({},Ql,{stickyTopOffset:ts,className:"".concat(Pe,"-header"),ref:Is}),Jl),Ls,ns&&ns!=="top"&&u.createElement(wn,(0,b.Z)({},Ql,{stickyBottomOffset:lt,className:"".concat(Pe,"-summary"),ref:$l}),Ar),Vn&&Lo.current&&Lo.current instanceof Element&&u.createElement(kn,{ref:Oi,offsetScroll:Qt,scrollBodyRef:Lo,onScroll:ko,container:sl,direction:dn}))}else ju=u.createElement("div",{style:(0,G.Z)((0,G.Z)({},sa),Ea),className:ae()("".concat(Pe,"-content")),onScroll:ko,ref:Lo},u.createElement(oc,(0,b.Z)({style:(0,G.Z)((0,G.Z)({},Zl),{},{tableLayout:Bi})},Hi),Fa,Nu,un!==!1&&u.createElement(ro,(0,b.Z)({},Pl,ds)),Uu,jo&&u.createElement(Ae,{stickyOffsets:Sl,flattenColumns:ni},jo)));var ja=u.createElement("div",(0,b.Z)({className:ae()(Pe,an,(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(Pe,"-rtl"),dn==="rtl"),"".concat(Pe,"-ping-left"),Gs),"".concat(Pe,"-ping-right"),Bo),"".concat(Pe,"-layout-fixed"),cn==="fixed"),"".concat(Pe,"-fixed-header"),Os),"".concat(Pe,"-fixed-column"),qi),"".concat(Pe,"-fixed-column-gapped"),qi&&xs),"".concat(Pe,"-scroll-horizontal"),so),"".concat(Pe,"-has-fix-left"),ni[0]&&ni[0].fixed),"".concat(Pe,"-has-fix-right"),ni[ni.length-1]&&ni[ni.length-1].fixed==="right")),style:Bn,id:lr,ref:Hs},Ba),rn&&u.createElement(nt,{className:"".concat(Pe,"-title")},rn(Sr)),u.createElement("div",{ref:Pa,className:"".concat(Pe,"-container")},ju),pn&&u.createElement(nt,{className:"".concat(Pe,"-footer")},pn(Sr)));so&&(ja=u.createElement(He.Z,{onResize:Zs},ja));var ll=Kn(ni,Sl,dn),Ya=u.useMemo(function(){return{scrollX:io,prefixCls:Pe,getComponent:_i,scrollbarSize:ms,direction:dn,fixedInfoList:ll,isSticky:Vn,supportSticky:_o,componentWidth:Yi,fixHeader:Os,fixColumn:qi,horizonScroll:so,tableLayout:Bi,rowClassName:vn,expandedRowClassName:vo.expandedRowClassName,expandIcon:Ao,expandableType:Ko,expandRowByClick:vo.expandRowByClick,expandedRowRender:vo.expandedRowRender,onTriggerExpand:nr,expandIconColumnIndex:vo.expandIconColumnIndex,indentSize:vo.indentSize,allColumnsFixedLeft:ni.every(function(ki){return ki.fixed==="left"}),emptyNode:al,columns:xo,flattenColumns:ni,onColumnResize:To,hoverStartRow:fs,hoverEndRow:Da,onHover:Rs,rowExpandable:vo.rowExpandable,onRow:ci,getRowKey:Nt,expandedKeys:yo,childrenColumnName:Cn,rowHoverable:Qr}},[io,Pe,_i,ms,dn,ll,Vn,_o,Yi,Os,qi,so,Bi,vn,vo.expandedRowClassName,Ao,Ko,vo.expandRowByClick,vo.expandedRowRender,nr,vo.expandIconColumnIndex,vo.indentSize,al,xo,ni,To,fs,Da,Rs,vo.rowExpandable,ci,Nt,yo,Cn,Qr]);return u.createElement(H.Provider,{value:Ya},ja)}var mt=u.forwardRef(Tn);function fr(kt){return R(mt,kt)}var Li=fr();Li.EXPAND_COLUMN=B.w,Li.INTERNAL_HOOKS=B.R,Li.Column=we,Li.ColumnGroup=Nn,Li.Summary=Be;var Ut=Li,wi=S(6790),Mi=y(null),Or=y(null);function Di(kt,Xt,wt){var Pe=Xt||1;return wt[kt+Pe]-(wt[kt]||0)}function ii(kt){var Xt=kt.rowInfo,wt=kt.column,Pe=kt.colIndex,an=kt.indent,vn=kt.index,Bn=kt.component,On=kt.renderIndex,En=kt.record,Vt=kt.style,cn=kt.className,dn=kt.inverse,rn=kt.getHeight,pn=wt.render,jn=wt.dataIndex,dr=wt.className,lr=wt.width,un=m(Or,["columnsOffset"]),zr=un.columnsOffset,_r=Ot(Xt,wt,Pe,an,vn),ci=_r.key,Cr=_r.fixedInfo,Zi=_r.appendCellNode,ji=_r.additionalCellProps,Pi=ji.style,Ti=ji.colSpan,Fi=Ti===void 0?1:Ti,Ji=ji.rowSpan,Ct=Ji===void 0?1:Ji,ai=Pe-1,Qr=Di(ai,Fi,zr),Sr=Fi>1?lr-Qr:0,Pr=(0,G.Z)((0,G.Z)((0,G.Z)({},Pi),Vt),{},{flex:"0 0 ".concat(Qr,"px"),width:"".concat(Qr,"px"),marginRight:Sr,pointerEvents:"auto"}),ri=u.useMemo(function(){return dn?Ct<=1:Fi===0||Ct===0||Ct>1},[Ct,Fi,dn]);ri?Pr.visibility="hidden":dn&&(Pr.height=rn==null?void 0:rn(Ct));var _i=ri?function(){return null}:pn,Nt={};return(Ct===0||Fi===0)&&(Nt.rowSpan=1,Nt.colSpan=1),u.createElement(it,(0,b.Z)({className:ae()(dr,cn),ellipsis:wt.ellipsis,align:wt.align,scope:wt.rowScope,component:Bn,prefixCls:Xt.prefixCls,key:ci,record:En,index:vn,renderIndex:On,dataIndex:jn,render:_i,shouldCellUpdate:wt.shouldCellUpdate},Cr,{appendNode:Zi,additionalProps:(0,G.Z)((0,G.Z)({},ji),{},{style:Pr},Nt)}))}var ui=ii,$r=["data","index","className","rowKey","style","extra","getHeight"],ti=u.forwardRef(function(kt,Xt){var wt=kt.data,Pe=kt.index,an=kt.className,vn=kt.rowKey,Bn=kt.style,On=kt.extra,En=kt.getHeight,Vt=(0,Z.Z)(kt,$r),cn=wt.record,dn=wt.indent,rn=wt.index,pn=m(H,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),jn=pn.scrollX,dr=pn.flattenColumns,lr=pn.prefixCls,un=pn.fixColumn,zr=pn.componentWidth,_r=m(Mi,["getComponent"]),ci=_r.getComponent,Cr=rt(cn,vn,Pe,dn),Zi=ci(["body","row"],"div"),ji=ci(["body","cell"],"div"),Pi=Cr.rowSupportExpand,Ti=Cr.expanded,Fi=Cr.rowProps,Ji=Cr.expandedRowRender,Ct=Cr.expandedRowClassName,ai;if(Pi&&Ti){var Qr=Ji(cn,Pe,dn+1,Ti),Sr=Mt(Ct,cn,Pe,dn),Pr={};un&&(Pr={style:(0,Q.Z)({},"--virtual-width","".concat(zr,"px"))});var ri="".concat(lr,"-expanded-row-cell");ai=u.createElement(Zi,{className:ae()("".concat(lr,"-expanded-row"),"".concat(lr,"-expanded-row-level-").concat(dn+1),Sr)},u.createElement(it,{component:ji,prefixCls:lr,className:ae()(ri,(0,Q.Z)({},"".concat(ri,"-fixed"),un)),additionalProps:Pr},Qr))}var _i=(0,G.Z)((0,G.Z)({},Bn),{},{width:jn});On&&(_i.position="absolute",_i.pointerEvents="none");var Nt=u.createElement(Zi,(0,b.Z)({},Fi,Vt,{"data-row-key":vn,ref:Pi?null:Xt,className:ae()(an,"".concat(lr,"-row"),Fi==null?void 0:Fi.className,(0,Q.Z)({},"".concat(lr,"-row-extra"),On)),style:(0,G.Z)((0,G.Z)({},_i),Fi==null?void 0:Fi.style)}),dr.map(function(Rr,Ki){return u.createElement(ui,{key:Ki,component:ji,rowInfo:Cr,column:Rr,colIndex:Ki,indent:dn,index:Pe,renderIndex:rn,record:cn,inverse:On,getHeight:En})}));return Pi?u.createElement("div",{ref:Xt},Nt,ai):Nt}),si=N(ti),Gt=si,di=u.forwardRef(function(kt,Xt){var wt=kt.data,Pe=kt.onScroll,an=m(H,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),vn=an.flattenColumns,Bn=an.onColumnResize,On=an.getRowKey,En=an.expandedKeys,Vt=an.prefixCls,cn=an.childrenColumnName,dn=an.scrollX,rn=an.direction,pn=m(Mi),jn=pn.sticky,dr=pn.scrollY,lr=pn.listItemHeight,un=pn.getComponent,zr=pn.onScroll,_r=u.useRef(),ci=gt(wt,cn,En,On),Cr=u.useMemo(function(){var ai=0;return vn.map(function(Qr){var Sr=Qr.width,Pr=Qr.key;return ai+=Sr,[Pr,Sr,ai]})},[vn]),Zi=u.useMemo(function(){return Cr.map(function(ai){return ai[2]})},[Cr]);u.useEffect(function(){Cr.forEach(function(ai){var Qr=(0,Y.Z)(ai,2),Sr=Qr[0],Pr=Qr[1];Bn(Sr,Pr)})},[Cr]),u.useImperativeHandle(Xt,function(){var ai,Qr={scrollTo:function(Pr){var ri;(ri=_r.current)===null||ri===void 0||ri.scrollTo(Pr)},nativeElement:(ai=_r.current)===null||ai===void 0?void 0:ai.nativeElement};return Object.defineProperty(Qr,"scrollLeft",{get:function(){var Pr;return((Pr=_r.current)===null||Pr===void 0?void 0:Pr.getScrollInfo().x)||0},set:function(Pr){var ri;(ri=_r.current)===null||ri===void 0||ri.scrollTo({left:Pr})}}),Qr});var ji=function(Qr,Sr){var Pr,ri=(Pr=ci[Sr])===null||Pr===void 0?void 0:Pr.record,_i=Qr.onCell;if(_i){var Nt,Rr=_i(ri,Sr);return(Nt=Rr==null?void 0:Rr.rowSpan)!==null&&Nt!==void 0?Nt:1}return 1},Pi=function(Qr){var Sr=Qr.start,Pr=Qr.end,ri=Qr.getSize,_i=Qr.offsetY;if(Pr<0)return null;for(var Nt=vn.filter(function(Ao){return ji(Ao,Sr)===0}),Rr=Sr,Ki=function(Cn){if(Nt=Nt.filter(function(nr){return ji(nr,Cn)===0}),!Nt.length)return Rr=Cn,1},_s=Sr;_s>=0&&!Ki(_s);_s-=1);for(var fs=vn.filter(function(Ao){return ji(Ao,Pr)!==1}),Da=Pr,Rs=function(Cn){if(fs=fs.filter(function(nr){return ji(nr,Cn)!==1}),!fs.length)return Da=Math.max(Cn-1,Pr),1},sr=Pr;sr<ci.length&&!Rs(sr);sr+=1);for(var mo=[],vo=function(Cn){var nr=ci[Cn];if(!nr)return 1;vn.some(function(xr){return ji(xr,Cn)>1})&&mo.push(Cn)},Ko=Rr;Ko<=Da;Ko+=1)vo(Ko);var yo=mo.map(function(Ao){var Cn=ci[Ao],nr=On(Cn.record,Ao),xr=function(Yi){var ir=Ao+Yi-1,es=On(ci[ir].record,ir),Co=ri(nr,es);return Co.bottom-Co.top},Xr=ri(nr);return u.createElement(Gt,{key:Ao,data:Cn,rowKey:nr,index:Ao,style:{top:-_i+Xr.top},extra:!0,getHeight:xr})});return yo},Ti=u.useMemo(function(){return{columnsOffset:Zi}},[Zi]),Fi="".concat(Vt,"-tbody"),Ji=un(["body","wrapper"]),Ct={};return jn&&(Ct.position="sticky",Ct.bottom=0,(0,U.Z)(jn)==="object"&&jn.offsetScroll&&(Ct.bottom=jn.offsetScroll)),u.createElement(Or.Provider,{value:Ti},u.createElement(wi.Z,{fullHeight:!1,ref:_r,prefixCls:"".concat(Fi,"-virtual"),styles:{horizontalScrollBar:Ct},className:Fi,height:dr,itemHeight:lr||24,data:ci,itemKey:function(Qr){return On(Qr.record)},component:Ji,scrollWidth:dn,direction:rn,onVirtualScroll:function(Qr){var Sr,Pr=Qr.x;Pe({currentTarget:(Sr=_r.current)===null||Sr===void 0?void 0:Sr.nativeElement,scrollLeft:Pr})},onScroll:zr,extraRender:Pi},function(ai,Qr,Sr){var Pr=On(ai.record,Qr);return u.createElement(Gt,{data:ai,rowKey:Pr,index:Qr,style:Sr.style})}))}),Wt=N(di),Yn=Wt,Dr=function(Xt,wt){var Pe=wt.ref,an=wt.onScroll;return u.createElement(Yn,{ref:Pe,data:Xt,onScroll:an})};function br(kt,Xt){var wt=kt.data,Pe=kt.columns,an=kt.scroll,vn=kt.sticky,Bn=kt.prefixCls,On=Bn===void 0?Ft:Bn,En=kt.className,Vt=kt.listItemHeight,cn=kt.components,dn=kt.onScroll,rn=an||{},pn=rn.x,jn=rn.y;typeof pn!="number"&&(pn=1),typeof jn!="number"&&(jn=500);var dr=(0,We.zX)(function(zr,_r){return(0,he.Z)(cn,zr)||_r}),lr=(0,We.zX)(dn),un=u.useMemo(function(){return{sticky:vn,scrollY:jn,listItemHeight:Vt,getComponent:dr,onScroll:lr}},[vn,jn,Vt,dr,lr]);return u.createElement(Mi.Provider,{value:un},u.createElement(Ut,(0,b.Z)({},kt,{className:ae()(En,"".concat(On,"-virtual")),scroll:(0,G.Z)((0,G.Z)({},an),{},{x:pn}),components:(0,G.Z)((0,G.Z)({},cn),{},{body:wt!=null&&wt.length?Dr:void 0}),columns:Pe,internalHooks:B.R,tailor:!0,ref:Xt})))}var mi=u.forwardRef(br);function Hr(kt){return R(mi,kt)}var Tr=Hr(),Gi=null},54451:function(Oe,J,S){"use strict";S.d(J,{g:function(){return u},v:function(){return _}});var B=S(98506),Y=S(33346),s=S(48736),w=["expandable"],_="RC_TABLE_INTERNAL_COL_DEFINE";function u(p){var y=p.expandable,m=(0,Y.Z)(p,w),b;return"expandable"in p?b=(0,B.Z)((0,B.Z)({},m),y):b=m,b.showExpandColumn===!1&&(b.expandIconColumnIndex=-1),b}},22711:function(Oe,J,S){"use strict";S.r(J),S.d(J,{ResizableTextArea:function(){return ee},default:function(){return le}});var B=S(67711),Y=S(52873),s=S(98506),w=S(15142),_=S(16886),u=S(33346),p=S(92310),y=S.n(p),m=S(36901),b=S(66003),v=S(30292),c=S(18929),h=S(59301),g=S(26420),x=S(29301),T=S(34280),I=S(16089),R=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,N=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],k={},L;function H(be){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=be.getAttribute("id")||be.getAttribute("data-reactid")||be.getAttribute("name");if(pe&&k[_e])return k[_e];var ne=window.getComputedStyle(be),ue=ne.getPropertyValue("box-sizing")||ne.getPropertyValue("-moz-box-sizing")||ne.getPropertyValue("-webkit-box-sizing"),ce=parseFloat(ne.getPropertyValue("padding-bottom"))+parseFloat(ne.getPropertyValue("padding-top")),Re=parseFloat(ne.getPropertyValue("border-bottom-width"))+parseFloat(ne.getPropertyValue("border-top-width")),ke=N.map(function(De){return"".concat(De,":").concat(ne.getPropertyValue(De))}).join(";"),Ne={sizingStyle:ke,paddingSize:ce,borderSize:Re,boxSizing:ue};return pe&&_e&&(k[_e]=Ne),Ne}function M(be){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),L.setAttribute("name","hiddenTextarea"),document.body.appendChild(L)),be.getAttribute("wrap")?L.setAttribute("wrap",be.getAttribute("wrap")):L.removeAttribute("wrap");var ue=H(be,pe),ce=ue.paddingSize,Re=ue.borderSize,ke=ue.boxSizing,Ne=ue.sizingStyle;L.setAttribute("style","".concat(Ne,";").concat(R)),L.value=be.value||be.placeholder||"";var De=void 0,Me=void 0,We,je=L.scrollHeight;if(ke==="border-box"?je+=Re:ke==="content-box"&&(je-=ce),_e!==null||ne!==null){L.value=" ";var et=L.scrollHeight-ce;_e!==null&&(De=et*_e,ke==="border-box"&&(De=De+ce+Re),je=Math.max(De,je)),ne!==null&&(Me=et*ne,ke==="border-box"&&(Me=Me+ce+Re),We=je>Me?"":"hidden",je=Math.min(Me,je))}var it={height:je,overflowY:We,resize:"none"};return De&&(it.minHeight=De),Me&&(it.maxHeight=Me),it}var F=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],P=0,U=1,G=2,Q=h.forwardRef(function(be,pe){var _e=be,ne=_e.prefixCls,ue=_e.defaultValue,ce=_e.value,Re=_e.autoSize,ke=_e.onResize,Ne=_e.className,De=_e.style,Me=_e.disabled,We=_e.onChange,je=_e.onInternalAutoSize,et=(0,u.Z)(_e,F),it=(0,c.Z)(ue,{value:ce,postState:function($t){return $t!=null?$t:""}}),ze=(0,_.Z)(it,2),xe=ze[0],fe=ze[1],W=function($t){fe($t.target.value),We==null||We($t)},Z=h.useRef();h.useImperativeHandle(pe,function(){return{textArea:Z.current}});var me=h.useMemo(function(){return Re&&(0,g.Z)(Re)==="object"?[Re.minRows,Re.maxRows]:[]},[Re]),Ce=(0,_.Z)(me,2),re=Ce[0],ie=Ce[1],de=!!Re,Ae=function(){try{if(document.activeElement===Z.current){var $t=Z.current,gn=$t.selectionStart,Et=$t.selectionEnd,Mn=$t.scrollTop;Z.current.setSelectionRange(gn,Et),Z.current.scrollTop=Mn}}catch(qn){}},Be=h.useState(G),He=(0,_.Z)(Be,2),st=He[0],Qe=He[1],pt=h.useState(),It=(0,_.Z)(pt,2),gt=It[0],rt=It[1],ut=function(){Qe(P)};(0,T.Z)(function(){de&&ut()},[ce,re,ie,de]),(0,T.Z)(function(){if(st===P)Qe(U);else if(st===U){var $e=M(Z.current,!1,re,ie);Qe(G),rt($e)}else Ae()},[st]);var At=h.useRef(),bt=function(){I.Z.cancel(At.current)},Tt=function($t){st===G&&(ke==null||ke($t),Re&&(bt(),At.current=(0,I.Z)(function(){ut()})))};h.useEffect(function(){return bt},[]);var Mt=de?gt:null,Ot=(0,s.Z)((0,s.Z)({},De),Mt);return(st===P||st===U)&&(Ot.overflowY="hidden",Ot.overflowX="hidden"),h.createElement(x.Z,{onResize:Tt,disabled:!(Re||ke)},h.createElement("textarea",(0,B.Z)({},et,{ref:Z,style:Ot,className:y()(ne,Ne,(0,Y.Z)({},"".concat(ne,"-disabled"),Me)),disabled:Me,value:xe,onChange:W})))}),ee=Q,ae=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],oe=h.forwardRef(function(be,pe){var _e,ne=be.defaultValue,ue=be.value,ce=be.onFocus,Re=be.onBlur,ke=be.onChange,Ne=be.allowClear,De=be.maxLength,Me=be.onCompositionStart,We=be.onCompositionEnd,je=be.suffix,et=be.prefixCls,it=et===void 0?"rc-textarea":et,ze=be.showCount,xe=be.count,fe=be.className,W=be.style,Z=be.disabled,me=be.hidden,Ce=be.classNames,re=be.styles,ie=be.onResize,de=be.onClear,Ae=be.onPressEnter,Be=be.readOnly,He=be.autoSize,st=be.onKeyDown,Qe=(0,u.Z)(be,ae),pt=(0,c.Z)(ne,{value:ue,defaultValue:ne}),It=(0,_.Z)(pt,2),gt=It[0],rt=It[1],ut=gt==null?"":String(gt),At=h.useState(!1),bt=(0,_.Z)(At,2),Tt=bt[0],Mt=bt[1],Ot=h.useRef(!1),$e=h.useState(null),$t=(0,_.Z)($e,2),gn=$t[0],Et=$t[1],Mn=(0,h.useRef)(null),qn=(0,h.useRef)(null),Zn=function(){var Mr;return(Mr=qn.current)===null||Mr===void 0?void 0:Mr.textArea},Bt=function(){Zn().focus()};(0,h.useImperativeHandle)(pe,function(){var zn;return{resizableTextArea:qn.current,focus:Bt,blur:function(){Zn().blur()},nativeElement:((zn=Mn.current)===null||zn===void 0?void 0:zn.nativeElement)||Zn()}}),(0,h.useEffect)(function(){Mt(function(zn){return!Z&&zn})},[Z]);var yr=h.useState(null),vr=(0,_.Z)(yr,2),Un=vr[0],Wn=vr[1];h.useEffect(function(){if(Un){var zn;(zn=Zn()).setSelectionRange.apply(zn,(0,w.Z)(Un))}},[Un]);var wr=(0,b.Z)(xe,ze),ye=(_e=wr.max)!==null&&_e!==void 0?_e:De,Fn=Number(ye)>0,wn=wr.strategy(ut),Jn=!!ye&&wn>ye,Ir=function(Mr,Ci){var vi=Ci;!Ot.current&&wr.exceedFormatter&&wr.max&&wr.strategy(Ci)>wr.max&&(vi=wr.exceedFormatter(Ci,{max:wr.max}),Ci!==vi&&Wn([Zn().selectionStart||0,Zn().selectionEnd||0])),rt(vi),(0,v.rJ)(Mr.currentTarget,Mr,ke,vi)},Wr=function(Mr){Ot.current=!0,Me==null||Me(Mr)},cr=function(Mr){Ot.current=!1,Ir(Mr,Mr.currentTarget.value),We==null||We(Mr)},ro=function(Mr){Ir(Mr,Mr.target.value)},Kr=function(Mr){Mr.key==="Enter"&&Ae&&Ae(Mr),st==null||st(Mr)},oi=function(Mr){Mt(!0),ce==null||ce(Mr)},Kn=function(Mr){Mt(!1),Re==null||Re(Mr)},Dn=function(Mr){rt(""),Bt(),(0,v.rJ)(Zn(),Mr,ke)},li=je,Nr;wr.show&&(wr.showFormatter?Nr=wr.showFormatter({value:ut,count:wn,maxLength:ye}):Nr="".concat(wn).concat(Fn?" / ".concat(ye):""),li=h.createElement(h.Fragment,null,li,h.createElement("span",{className:y()("".concat(it,"-data-count"),Ce==null?void 0:Ce.count),style:re==null?void 0:re.count},Nr)));var Yr=function(Mr){var Ci;ie==null||ie(Mr),(Ci=Zn())!==null&&Ci!==void 0&&Ci.style.height&&Et(!0)},mn=!He&&!ze&&!Ne;return h.createElement(m.BaseInput,{ref:Mn,value:ut,allowClear:Ne,handleReset:Dn,suffix:li,prefixCls:it,classNames:(0,s.Z)((0,s.Z)({},Ce),{},{affixWrapper:y()(Ce==null?void 0:Ce.affixWrapper,(0,Y.Z)((0,Y.Z)({},"".concat(it,"-show-count"),ze),"".concat(it,"-textarea-allow-clear"),Ne))}),disabled:Z,focused:Tt,className:y()(fe,Jn&&"".concat(it,"-out-of-range")),style:(0,s.Z)((0,s.Z)({},W),gn&&!mn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Nr=="string"?Nr:void 0}},hidden:me,readOnly:Be,onClear:de},h.createElement(ee,(0,B.Z)({},Qe,{autoSize:He,maxLength:De,onKeyDown:Kr,onChange:ro,onFocus:oi,onBlur:Kn,onCompositionStart:Wr,onCompositionEnd:cr,className:y()(Ce==null?void 0:Ce.textarea),style:(0,s.Z)((0,s.Z)({},re==null?void 0:re.textarea),{},{resize:W==null?void 0:W.resize}),disabled:Z,prefixCls:it,onResize:Yr,ref:qn,readOnly:Be})))}),he=oe,le=he},639:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return k}});var B=S(67711),Y=S(52873),s=S(98506),w=S(16886),_=S(33346),u=S(59301),p=S(92310),y=S.n(p),m=S(26112),b=S(30699),v=function(H){for(var M=H.prefixCls,F=H.level,P=H.isStart,U=H.isEnd,G="".concat(M,"-indent-unit"),Q=[],ee=0;ee<F;ee+=1)Q.push(u.createElement("span",{key:ee,className:y()(G,(0,Y.Z)((0,Y.Z)({},"".concat(G,"-start"),P[ee]),"".concat(G,"-end"),U[ee]))}));return u.createElement("span",{"aria-hidden":"true",className:"".concat(M,"-indent")},Q)},c=u.memo(v),h=S(65065),g=S(34061),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],T="open",I="close",R="---",N=function(H){var M,F,P,U=H.eventKey,G=H.className,Q=H.style,ee=H.dragOver,ae=H.dragOverGapTop,oe=H.dragOverGapBottom,he=H.isLeaf,le=H.isStart,be=H.isEnd,pe=H.expanded,_e=H.selected,ne=H.checked,ue=H.halfChecked,ce=H.loading,Re=H.domRef,ke=H.active,Ne=H.data,De=H.onMouseMove,Me=H.selectable,We=(0,_.Z)(H,x),je=u.useContext(b.k),et=u.useContext(b.y),it=u.useRef(null),ze=u.useState(!1),xe=(0,w.Z)(ze,2),fe=xe[0],W=xe[1],Z=!!(je.disabled||H.disabled||(M=et.nodeDisabled)!==null&&M!==void 0&&M.call(et,Ne)),me=u.useMemo(function(){return!je.checkable||H.checkable===!1?!1:je.checkable},[je.checkable,H.checkable]),Ce=function(wn){Z||je.onNodeSelect(wn,(0,g.F)(H))},re=function(wn){Z||!me||H.disableCheckbox||je.onNodeCheck(wn,(0,g.F)(H),!ne)},ie=u.useMemo(function(){return typeof Me=="boolean"?Me:je.selectable},[Me,je.selectable]),de=function(wn){je.onNodeClick(wn,(0,g.F)(H)),ie?Ce(wn):re(wn)},Ae=function(wn){je.onNodeDoubleClick(wn,(0,g.F)(H))},Be=function(wn){je.onNodeMouseEnter(wn,(0,g.F)(H))},He=function(wn){je.onNodeMouseLeave(wn,(0,g.F)(H))},st=function(wn){je.onNodeContextMenu(wn,(0,g.F)(H))},Qe=u.useMemo(function(){return!!(je.draggable&&(!je.draggable.nodeDraggable||je.draggable.nodeDraggable(Ne)))},[je.draggable,Ne]),pt=function(wn){wn.stopPropagation(),W(!0),je.onNodeDragStart(wn,H);try{wn.dataTransfer.setData("text/plain","")}catch(Jn){}},It=function(wn){wn.preventDefault(),wn.stopPropagation(),je.onNodeDragEnter(wn,H)},gt=function(wn){wn.preventDefault(),wn.stopPropagation(),je.onNodeDragOver(wn,H)},rt=function(wn){wn.stopPropagation(),je.onNodeDragLeave(wn,H)},ut=function(wn){wn.stopPropagation(),W(!1),je.onNodeDragEnd(wn,H)},At=function(wn){wn.preventDefault(),wn.stopPropagation(),W(!1),je.onNodeDrop(wn,H)},bt=function(wn){ce||je.onNodeExpand(wn,(0,g.F)(H))},Tt=u.useMemo(function(){var Fn=(0,h.Z)(je.keyEntities,U)||{},wn=Fn.children;return!!(wn||[]).length},[je.keyEntities,U]),Mt=u.useMemo(function(){return he===!1?!1:he||!je.loadData&&!Tt||je.loadData&&H.loaded&&!Tt},[he,je.loadData,Tt,H.loaded]);u.useEffect(function(){ce||typeof je.loadData=="function"&&pe&&!Mt&&!H.loaded&&je.onNodeLoad((0,g.F)(H))},[ce,je.loadData,je.onNodeLoad,pe,Mt,H]);var Ot=u.useMemo(function(){var Fn;return(Fn=je.draggable)!==null&&Fn!==void 0&&Fn.icon?u.createElement("span",{className:"".concat(je.prefixCls,"-draggable-icon")},je.draggable.icon):null},[je.draggable]),$e=function(wn){var Jn=H.switcherIcon||je.switcherIcon;return typeof Jn=="function"?Jn((0,s.Z)((0,s.Z)({},H),{},{isLeaf:wn})):Jn},$t=function(){if(Mt){var wn=$e(!0);return wn!==!1?u.createElement("span",{className:y()("".concat(je.prefixCls,"-switcher"),"".concat(je.prefixCls,"-switcher-noop"))},wn):null}var Jn=$e(!1);return Jn!==!1?u.createElement("span",{onClick:bt,className:y()("".concat(je.prefixCls,"-switcher"),"".concat(je.prefixCls,"-switcher_").concat(pe?T:I))},Jn):null},gn=u.useMemo(function(){if(!me)return null;var Fn=typeof me!="boolean"?me:null;return u.createElement("span",{className:y()("".concat(je.prefixCls,"-checkbox"),(0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(je.prefixCls,"-checkbox-checked"),ne),"".concat(je.prefixCls,"-checkbox-indeterminate"),!ne&&ue),"".concat(je.prefixCls,"-checkbox-disabled"),Z||H.disableCheckbox)),onClick:re,role:"checkbox","aria-checked":ue?"mixed":ne,"aria-disabled":Z||H.disableCheckbox,"aria-label":"Select ".concat(typeof H.title=="string"?H.title:"tree node")},Fn)},[me,ne,ue,Z,H.disableCheckbox,H.title]),Et=u.useMemo(function(){return Mt?null:pe?T:I},[Mt,pe]),Mn=u.useMemo(function(){return u.createElement("span",{className:y()("".concat(je.prefixCls,"-iconEle"),"".concat(je.prefixCls,"-icon__").concat(Et||"docu"),(0,Y.Z)({},"".concat(je.prefixCls,"-icon_loading"),ce))})},[je.prefixCls,Et,ce]),qn=u.useMemo(function(){var Fn=!!je.draggable,wn=!H.disabled&&Fn&&je.dragOverNodeKey===U;return wn?je.dropIndicatorRender({dropPosition:je.dropPosition,dropLevelOffset:je.dropLevelOffset,indent:je.indent,prefixCls:je.prefixCls,direction:je.direction}):null},[je.dropPosition,je.dropLevelOffset,je.indent,je.prefixCls,je.direction,je.draggable,je.dragOverNodeKey,je.dropIndicatorRender]),Zn=u.useMemo(function(){var Fn=H.title,wn=Fn===void 0?R:Fn,Jn="".concat(je.prefixCls,"-node-content-wrapper"),Ir;if(je.showIcon){var Wr=H.icon||je.icon;Ir=Wr?u.createElement("span",{className:y()("".concat(je.prefixCls,"-iconEle"),"".concat(je.prefixCls,"-icon__customize"))},typeof Wr=="function"?Wr(H):Wr):Mn}else je.loadData&&ce&&(Ir=Mn);var cr;return typeof wn=="function"?cr=wn(Ne):je.titleRender?cr=je.titleRender(Ne):cr=wn,u.createElement("span",{ref:it,title:typeof wn=="string"?wn:"",className:y()(Jn,"".concat(Jn,"-").concat(Et||"normal"),(0,Y.Z)({},"".concat(je.prefixCls,"-node-selected"),!Z&&(_e||fe))),onMouseEnter:Be,onMouseLeave:He,onContextMenu:st,onClick:de,onDoubleClick:Ae},Ir,u.createElement("span",{className:"".concat(je.prefixCls,"-title")},cr),qn)},[je.prefixCls,je.showIcon,H,je.icon,Mn,je.titleRender,Ne,Et,Be,He,st,de,Ae]),Bt=(0,m.Z)(We,{aria:!0,data:!0}),yr=(0,h.Z)(je.keyEntities,U)||{},vr=yr.level,Un=be[be.length-1],Wn=!Z&&Qe,wr=je.draggingNodeKey===U,ye=Me!==void 0?{"aria-selected":!!Me}:void 0;return u.createElement("div",(0,B.Z)({ref:Re,role:"treeitem","aria-expanded":he?void 0:pe,className:y()(G,"".concat(je.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(je.prefixCls,"-treenode-disabled"),Z),"".concat(je.prefixCls,"-treenode-switcher-").concat(pe?"open":"close"),!he),"".concat(je.prefixCls,"-treenode-checkbox-checked"),ne),"".concat(je.prefixCls,"-treenode-checkbox-indeterminate"),ue),"".concat(je.prefixCls,"-treenode-selected"),_e),"".concat(je.prefixCls,"-treenode-loading"),ce),"".concat(je.prefixCls,"-treenode-active"),ke),"".concat(je.prefixCls,"-treenode-leaf-last"),Un),"".concat(je.prefixCls,"-treenode-draggable"),Qe),"dragging",wr),(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)(P,"drop-target",je.dropTargetKey===U),"drop-container",je.dropContainerKey===U),"drag-over",!Z&&ee),"drag-over-gap-top",!Z&&ae),"drag-over-gap-bottom",!Z&&oe),"filter-node",(F=je.filterTreeNode)===null||F===void 0?void 0:F.call(je,(0,g.F)(H))),"".concat(je.prefixCls,"-treenode-leaf"),Mt))),style:Q,draggable:Wn,onDragStart:Wn?pt:void 0,onDragEnter:Qe?It:void 0,onDragOver:Qe?gt:void 0,onDragLeave:Qe?rt:void 0,onDrop:Qe?At:void 0,onDragEnd:Qe?ut:void 0,onMouseMove:De},ye,Bt),u.createElement(c,{prefixCls:je.prefixCls,level:vr,isStart:le,isEnd:be}),Ot,$t(),gn,Zn)};N.isTreeNode=1;var k=N},30699:function(Oe,J,S){"use strict";S.d(J,{k:function(){return Y},y:function(){return s}});var B=S(59301),Y=B.createContext(null),s=B.createContext({})},71598:function(Oe,J,S){"use strict";S.d(J,{OF:function(){return U.Z},y6:function(){return I.y},ZP:function(){return Z}});var B=S(67711),Y=S(26420),s=S(98506),w=S(15142),_=S(42573),u=S(58698),p=S(62437),y=S(74700),m=S(45080),b=S(52873),v=S(92310),c=S.n(v),h=S(10228),g=S(26112),x=S(48736),T=S(59301),I=S(30699),R=function(Ce){var re=Ce.dropPosition,ie=Ce.dropLevelOffset,de=Ce.indent,Ae={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(re){case-1:Ae.top=0,Ae.left=-ie*de;break;case 1:Ae.bottom=0,Ae.left=-ie*de;break;case 0:Ae.bottom=0,Ae.left=de;break}return T.createElement("div",{style:Ae})},N=R;function k(me){if(me==null)throw new TypeError("Cannot destructure "+me)}var L=S(16886),H=S(33346),M=S(34280),F=S(6790),P=S(77900),U=S(639);function G(me,Ce){var re=T.useState(!1),ie=(0,L.Z)(re,2),de=ie[0],Ae=ie[1];(0,M.Z)(function(){if(de)return me(),function(){Ce()}},[de]),(0,M.Z)(function(){return Ae(!0),function(){Ae(!1)}},[])}var Q=G,ee=S(34061),ae=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],oe=T.forwardRef(function(me,Ce){var re=me.className,ie=me.style,de=me.motion,Ae=me.motionNodes,Be=me.motionType,He=me.onMotionStart,st=me.onMotionEnd,Qe=me.active,pt=me.treeNodeRequiredProps,It=(0,H.Z)(me,ae),gt=T.useState(!0),rt=(0,L.Z)(gt,2),ut=rt[0],At=rt[1],bt=T.useContext(I.k),Tt=bt.prefixCls,Mt=Ae&&Be!=="hide";(0,M.Z)(function(){Ae&&Mt!==ut&&At(Mt)},[Ae]);var Ot=function(){Ae&&He()},$e=T.useRef(!1),$t=function(){Ae&&!$e.current&&($e.current=!0,st())};Q(Ot,$t);var gn=function(Mn){Mt===Mn&&$t()};return Ae?T.createElement(P.default,(0,B.Z)({ref:Ce,visible:ut},de,{motionAppear:Be==="show",onVisibleChanged:gn}),function(Et,Mn){var qn=Et.className,Zn=Et.style;return T.createElement("div",{ref:Mn,className:c()("".concat(Tt,"-treenode-motion"),qn),style:Zn},Ae.map(function(Bt){var yr=Object.assign({},(k(Bt.data),Bt.data)),vr=Bt.title,Un=Bt.key,Wn=Bt.isStart,wr=Bt.isEnd;delete yr.children;var ye=(0,ee.H8)(Un,pt);return T.createElement(U.Z,(0,B.Z)({},yr,ye,{title:vr,active:Qe,data:Bt.data,key:Un,isStart:Wn,isEnd:wr}))}))}):T.createElement(U.Z,(0,B.Z)({domRef:Ce,className:re,style:ie},It,{active:Qe}))}),he=oe;function le(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],re=me.length,ie=Ce.length;if(Math.abs(re-ie)!==1)return{add:!1,key:null};function de(Ae,Be){var He=new Map;Ae.forEach(function(Qe){He.set(Qe,!0)});var st=Be.filter(function(Qe){return!He.has(Qe)});return st.length===1?st[0]:null}return re<ie?{add:!0,key:de(me,Ce)}:{add:!1,key:de(Ce,me)}}function be(me,Ce,re){var ie=me.findIndex(function(He){return He.key===re}),de=me[ie+1],Ae=Ce.findIndex(function(He){return He.key===re});if(de){var Be=Ce.findIndex(function(He){return He.key===de.key});return Ce.slice(Ae+1,Be)}return Ce.slice(Ae+1)}var pe=["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"],_e={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ne=function(){},ue="RC_TREE_MOTION_".concat(Math.random()),ce={key:ue},Re={key:ue,level:0,index:0,pos:"0",node:ce,nodes:[ce]},ke={parent:null,children:[],pos:Re.pos,data:ce,title:null,key:ue,isStart:[],isEnd:[]};function Ne(me,Ce,re,ie){return Ce===!1||!re?me:me.slice(0,Math.ceil(re/ie)+1)}function De(me){var Ce=me.key,re=me.pos;return(0,ee.km)(Ce,re)}function Me(me){for(var Ce=String(me.data.key),re=me;re.parent;)re=re.parent,Ce="".concat(re.data.key," > ").concat(Ce);return Ce}var We=T.forwardRef(function(me,Ce){var re=me.prefixCls,ie=me.data,de=me.selectable,Ae=me.checkable,Be=me.expandedKeys,He=me.selectedKeys,st=me.checkedKeys,Qe=me.loadedKeys,pt=me.loadingKeys,It=me.halfCheckedKeys,gt=me.keyEntities,rt=me.disabled,ut=me.dragging,At=me.dragOverNodeKey,bt=me.dropPosition,Tt=me.motion,Mt=me.height,Ot=me.itemHeight,$e=me.virtual,$t=me.scrollWidth,gn=me.focusable,Et=me.activeItem,Mn=me.focused,qn=me.tabIndex,Zn=me.onKeyDown,Bt=me.onFocus,yr=me.onBlur,vr=me.onActiveChange,Un=me.onListChangeStart,Wn=me.onListChangeEnd,wr=(0,H.Z)(me,pe),ye=T.useRef(null),Fn=T.useRef(null);T.useImperativeHandle(Ce,function(){return{scrollTo:function(_t){ye.current.scrollTo(_t)},getIndentWidth:function(){return Fn.current.offsetWidth}}});var wn=T.useState(Be),Jn=(0,L.Z)(wn,2),Ir=Jn[0],Wr=Jn[1],cr=T.useState(ie),ro=(0,L.Z)(cr,2),Kr=ro[0],oi=ro[1],Kn=T.useState(ie),Dn=(0,L.Z)(Kn,2),li=Dn[0],Nr=Dn[1],Yr=T.useState([]),mn=(0,L.Z)(Yr,2),zn=mn[0],Mr=mn[1],Ci=T.useState(null),vi=(0,L.Z)(Ci,2),nt=vi[0],vt=vi[1],hn=T.useRef(ie);hn.current=ie;function yn(){var kn=hn.current;oi(kn),Nr(kn),Mr([]),vt(null),Wn()}(0,M.Z)(function(){Wr(Be);var kn=le(Ir,Be);if(kn.key!==null)if(kn.add){var _t=Kr.findIndex(function(Xn){var or=Xn.key;return or===kn.key}),we=Ne(be(Kr,ie,kn.key),$e,Mt,Ot),An=Kr.slice();An.splice(_t+1,0,ke),Nr(An),Mr(we),vt("show")}else{var Nn=ie.findIndex(function(Xn){var or=Xn.key;return or===kn.key}),Ft=Ne(be(ie,Kr,kn.key),$e,Mt,Ot),hr=ie.slice();hr.splice(Nn+1,0,ke),Nr(hr),Mr(Ft),vt("hide")}else Kr!==ie&&(oi(ie),Nr(ie))},[Be,ie]),T.useEffect(function(){ut||yn()},[ut]);var dt=Tt?li:ie,on={expandedKeys:Be,selectedKeys:He,loadedKeys:Qe,loadingKeys:pt,checkedKeys:st,halfCheckedKeys:It,dragOverNodeKey:At,dropPosition:bt,keyEntities:gt};return T.createElement(T.Fragment,null,Mn&&Et&&T.createElement("span",{style:_e,"aria-live":"assertive"},Me(Et)),T.createElement("div",null,T.createElement("input",{style:_e,disabled:gn===!1||rt,tabIndex:gn!==!1?qn:null,onKeyDown:Zn,onFocus:Bt,onBlur:yr,value:"",onChange:ne,"aria-label":"for screen reader"})),T.createElement("div",{className:"".concat(re,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},T.createElement("div",{className:"".concat(re,"-indent")},T.createElement("div",{ref:Fn,className:"".concat(re,"-indent-unit")}))),T.createElement(F.Z,(0,B.Z)({},wr,{data:dt,itemKey:De,height:Mt,fullHeight:!1,virtual:$e,itemHeight:Ot,scrollWidth:$t,prefixCls:"".concat(re,"-list"),ref:ye,role:"tree",onVisibleChange:function(_t){_t.every(function(we){return De(we)!==ue})&&yn()}}),function(kn){var _t=kn.pos,we=Object.assign({},(k(kn.data),kn.data)),An=kn.title,Nn=kn.key,Ft=kn.isStart,hr=kn.isEnd,Xn=(0,ee.km)(Nn,_t);delete we.key,delete we.children;var or=(0,ee.H8)(Xn,on);return T.createElement(he,(0,B.Z)({},we,or,{title:An,active:!!Et&&Nn===Et.key,pos:_t,data:kn.data,isStart:Ft,isEnd:hr,motion:Tt,motionNodes:Nn===ue?zn:null,motionType:nt,onMotionStart:Un,onMotionEnd:yn,treeNodeRequiredProps:on,onMouseMove:function(){vr(null)}}))}))}),je=We,et=S(82661),it=S(34643),ze=S(65065),xe=10,fe=function(me){(0,y.Z)(re,me);var Ce=(0,m.Z)(re);function re(){var ie;(0,_.Z)(this,re);for(var de=arguments.length,Ae=new Array(de),Be=0;Be<de;Be++)Ae[Be]=arguments[Be];return ie=Ce.call.apply(Ce,[this].concat(Ae)),(0,b.Z)((0,p.Z)(ie),"destroyed",!1),(0,b.Z)((0,p.Z)(ie),"delayedDragEnterLogic",void 0),(0,b.Z)((0,p.Z)(ie),"loadingRetryTimes",{}),(0,b.Z)((0,p.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,ee.w$)()}),(0,b.Z)((0,p.Z)(ie),"dragStartMousePosition",null),(0,b.Z)((0,p.Z)(ie),"dragNodeProps",null),(0,b.Z)((0,p.Z)(ie),"currentMouseOverDroppableNodeKey",null),(0,b.Z)((0,p.Z)(ie),"listRef",T.createRef()),(0,b.Z)((0,p.Z)(ie),"onNodeDragStart",function(He,st){var Qe=ie.state,pt=Qe.expandedKeys,It=Qe.keyEntities,gt=ie.props.onDragStart,rt=st.eventKey;ie.dragNodeProps=st,ie.dragStartMousePosition={x:He.clientX,y:He.clientY};var ut=(0,et._5)(pt,rt);ie.setState({draggingNodeKey:rt,dragChildrenKeys:(0,et.wA)(rt,It),indent:ie.listRef.current.getIndentWidth()}),ie.setExpandedKeys(ut),window.addEventListener("dragend",ie.onWindowDragEnd),gt==null||gt({event:He,node:(0,ee.F)(st)})}),(0,b.Z)((0,p.Z)(ie),"onNodeDragEnter",function(He,st){var Qe=ie.state,pt=Qe.expandedKeys,It=Qe.keyEntities,gt=Qe.dragChildrenKeys,rt=Qe.flattenNodes,ut=Qe.indent,At=ie.props,bt=At.onDragEnter,Tt=At.onExpand,Mt=At.allowDrop,Ot=At.direction,$e=st.pos,$t=st.eventKey;if(ie.currentMouseOverDroppableNodeKey!==$t&&(ie.currentMouseOverDroppableNodeKey=$t),!ie.dragNodeProps){ie.resetDragState();return}var gn=(0,et.OM)(He,ie.dragNodeProps,st,ut,ie.dragStartMousePosition,Mt,rt,It,pt,Ot),Et=gn.dropPosition,Mn=gn.dropLevelOffset,qn=gn.dropTargetKey,Zn=gn.dropContainerKey,Bt=gn.dropTargetPos,yr=gn.dropAllowed,vr=gn.dragOverNodeKey;if(gt.includes(qn)||!yr){ie.resetDragState();return}if(ie.delayedDragEnterLogic||(ie.delayedDragEnterLogic={}),Object.keys(ie.delayedDragEnterLogic).forEach(function(Un){clearTimeout(ie.delayedDragEnterLogic[Un])}),ie.dragNodeProps.eventKey!==st.eventKey&&(He.persist(),ie.delayedDragEnterLogic[$e]=window.setTimeout(function(){if(ie.state.draggingNodeKey!==null){var Un=(0,w.Z)(pt),Wn=(0,ze.Z)(It,st.eventKey);Wn&&(Wn.children||[]).length&&(Un=(0,et.L0)(pt,st.eventKey)),ie.props.hasOwnProperty("expandedKeys")||ie.setExpandedKeys(Un),Tt==null||Tt(Un,{node:(0,ee.F)(st),expanded:!0,nativeEvent:He.nativeEvent})}},800)),ie.dragNodeProps.eventKey===qn&&Mn===0){ie.resetDragState();return}ie.setState({dragOverNodeKey:vr,dropPosition:Et,dropLevelOffset:Mn,dropTargetKey:qn,dropContainerKey:Zn,dropTargetPos:Bt,dropAllowed:yr}),bt==null||bt({event:He,node:(0,ee.F)(st),expandedKeys:pt})}),(0,b.Z)((0,p.Z)(ie),"onNodeDragOver",function(He,st){var Qe=ie.state,pt=Qe.dragChildrenKeys,It=Qe.flattenNodes,gt=Qe.keyEntities,rt=Qe.expandedKeys,ut=Qe.indent,At=ie.props,bt=At.onDragOver,Tt=At.allowDrop,Mt=At.direction;if(ie.dragNodeProps){var Ot=(0,et.OM)(He,ie.dragNodeProps,st,ut,ie.dragStartMousePosition,Tt,It,gt,rt,Mt),$e=Ot.dropPosition,$t=Ot.dropLevelOffset,gn=Ot.dropTargetKey,Et=Ot.dropContainerKey,Mn=Ot.dropTargetPos,qn=Ot.dropAllowed,Zn=Ot.dragOverNodeKey;pt.includes(gn)||!qn||(ie.dragNodeProps.eventKey===gn&&$t===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():$e===ie.state.dropPosition&&$t===ie.state.dropLevelOffset&&gn===ie.state.dropTargetKey&&Et===ie.state.dropContainerKey&&Mn===ie.state.dropTargetPos&&qn===ie.state.dropAllowed&&Zn===ie.state.dragOverNodeKey||ie.setState({dropPosition:$e,dropLevelOffset:$t,dropTargetKey:gn,dropContainerKey:Et,dropTargetPos:Mn,dropAllowed:qn,dragOverNodeKey:Zn}),bt==null||bt({event:He,node:(0,ee.F)(st)}))}}),(0,b.Z)((0,p.Z)(ie),"onNodeDragLeave",function(He,st){ie.currentMouseOverDroppableNodeKey===st.eventKey&&!He.currentTarget.contains(He.relatedTarget)&&(ie.resetDragState(),ie.currentMouseOverDroppableNodeKey=null);var Qe=ie.props.onDragLeave;Qe==null||Qe({event:He,node:(0,ee.F)(st)})}),(0,b.Z)((0,p.Z)(ie),"onWindowDragEnd",function(He){ie.onNodeDragEnd(He,null,!0),window.removeEventListener("dragend",ie.onWindowDragEnd)}),(0,b.Z)((0,p.Z)(ie),"onNodeDragEnd",function(He,st){var Qe=ie.props.onDragEnd;ie.setState({dragOverNodeKey:null}),ie.cleanDragState(),Qe==null||Qe({event:He,node:(0,ee.F)(st)}),ie.dragNodeProps=null,window.removeEventListener("dragend",ie.onWindowDragEnd)}),(0,b.Z)((0,p.Z)(ie),"onNodeDrop",function(He,st){var Qe,pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,It=ie.state,gt=It.dragChildrenKeys,rt=It.dropPosition,ut=It.dropTargetKey,At=It.dropTargetPos,bt=It.dropAllowed;if(bt){var Tt=ie.props.onDrop;if(ie.setState({dragOverNodeKey:null}),ie.cleanDragState(),ut!==null){var Mt=(0,s.Z)((0,s.Z)({},(0,ee.H8)(ut,ie.getTreeNodeRequiredProps())),{},{active:((Qe=ie.getActiveItem())===null||Qe===void 0?void 0:Qe.key)===ut,data:(0,ze.Z)(ie.state.keyEntities,ut).node}),Ot=gt.includes(ut);(0,x.ZP)(!Ot,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $e=(0,et.yx)(At),$t={event:He,node:(0,ee.F)(Mt),dragNode:ie.dragNodeProps?(0,ee.F)(ie.dragNodeProps):null,dragNodesKeys:[ie.dragNodeProps.eventKey].concat(gt),dropToGap:rt!==0,dropPosition:rt+Number($e[$e.length-1])};pt||Tt==null||Tt($t),ie.dragNodeProps=null}}}),(0,b.Z)((0,p.Z)(ie),"cleanDragState",function(){var He=ie.state.draggingNodeKey;He!==null&&ie.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ie.dragStartMousePosition=null,ie.currentMouseOverDroppableNodeKey=null}),(0,b.Z)((0,p.Z)(ie),"triggerExpandActionExpand",function(He,st){var Qe=ie.state,pt=Qe.expandedKeys,It=Qe.flattenNodes,gt=st.expanded,rt=st.key,ut=st.isLeaf;if(!(ut||He.shiftKey||He.metaKey||He.ctrlKey)){var At=It.filter(function(Tt){return Tt.key===rt})[0],bt=(0,ee.F)((0,s.Z)((0,s.Z)({},(0,ee.H8)(rt,ie.getTreeNodeRequiredProps())),{},{data:At.data}));ie.setExpandedKeys(gt?(0,et._5)(pt,rt):(0,et.L0)(pt,rt)),ie.onNodeExpand(He,bt)}}),(0,b.Z)((0,p.Z)(ie),"onNodeClick",function(He,st){var Qe=ie.props,pt=Qe.onClick,It=Qe.expandAction;It==="click"&&ie.triggerExpandActionExpand(He,st),pt==null||pt(He,st)}),(0,b.Z)((0,p.Z)(ie),"onNodeDoubleClick",function(He,st){var Qe=ie.props,pt=Qe.onDoubleClick,It=Qe.expandAction;It==="doubleClick"&&ie.triggerExpandActionExpand(He,st),pt==null||pt(He,st)}),(0,b.Z)((0,p.Z)(ie),"onNodeSelect",function(He,st){var Qe=ie.state.selectedKeys,pt=ie.state,It=pt.keyEntities,gt=pt.fieldNames,rt=ie.props,ut=rt.onSelect,At=rt.multiple,bt=st.selected,Tt=st[gt.key],Mt=!bt;Mt?At?Qe=(0,et.L0)(Qe,Tt):Qe=[Tt]:Qe=(0,et._5)(Qe,Tt);var Ot=Qe.map(function($e){var $t=(0,ze.Z)(It,$e);return $t?$t.node:null}).filter(Boolean);ie.setUncontrolledState({selectedKeys:Qe}),ut==null||ut(Qe,{event:"select",selected:Mt,node:st,selectedNodes:Ot,nativeEvent:He.nativeEvent})}),(0,b.Z)((0,p.Z)(ie),"onNodeCheck",function(He,st,Qe){var pt=ie.state,It=pt.keyEntities,gt=pt.checkedKeys,rt=pt.halfCheckedKeys,ut=ie.props,At=ut.checkStrictly,bt=ut.onCheck,Tt=st.key,Mt,Ot={event:"check",node:st,checked:Qe,nativeEvent:He.nativeEvent};if(At){var $e=Qe?(0,et.L0)(gt,Tt):(0,et._5)(gt,Tt),$t=(0,et._5)(rt,Tt);Mt={checked:$e,halfChecked:$t},Ot.checkedNodes=$e.map(function(Bt){return(0,ze.Z)(It,Bt)}).filter(Boolean).map(function(Bt){return Bt.node}),ie.setUncontrolledState({checkedKeys:$e})}else{var gn=(0,it.S)([].concat((0,w.Z)(gt),[Tt]),!0,It),Et=gn.checkedKeys,Mn=gn.halfCheckedKeys;if(!Qe){var qn=new Set(Et);qn.delete(Tt);var Zn=(0,it.S)(Array.from(qn),{checked:!1,halfCheckedKeys:Mn},It);Et=Zn.checkedKeys,Mn=Zn.halfCheckedKeys}Mt=Et,Ot.checkedNodes=[],Ot.checkedNodesPositions=[],Ot.halfCheckedKeys=Mn,Et.forEach(function(Bt){var yr=(0,ze.Z)(It,Bt);if(yr){var vr=yr.node,Un=yr.pos;Ot.checkedNodes.push(vr),Ot.checkedNodesPositions.push({node:vr,pos:Un})}}),ie.setUncontrolledState({checkedKeys:Et},!1,{halfCheckedKeys:Mn})}bt==null||bt(Mt,Ot)}),(0,b.Z)((0,p.Z)(ie),"onNodeLoad",function(He){var st,Qe=He.key,pt=ie.state.keyEntities,It=(0,ze.Z)(pt,Qe);if(!(It!=null&&(st=It.children)!==null&&st!==void 0&&st.length)){var gt=new Promise(function(rt,ut){ie.setState(function(At){var bt=At.loadedKeys,Tt=bt===void 0?[]:bt,Mt=At.loadingKeys,Ot=Mt===void 0?[]:Mt,$e=ie.props,$t=$e.loadData,gn=$e.onLoad;if(!$t||Tt.includes(Qe)||Ot.includes(Qe))return null;var Et=$t(He);return Et.then(function(){var Mn=ie.state.loadedKeys,qn=(0,et.L0)(Mn,Qe);gn==null||gn(qn,{event:"load",node:He}),ie.setUncontrolledState({loadedKeys:qn}),ie.setState(function(Zn){return{loadingKeys:(0,et._5)(Zn.loadingKeys,Qe)}}),rt()}).catch(function(Mn){if(ie.setState(function(Zn){return{loadingKeys:(0,et._5)(Zn.loadingKeys,Qe)}}),ie.loadingRetryTimes[Qe]=(ie.loadingRetryTimes[Qe]||0)+1,ie.loadingRetryTimes[Qe]>=xe){var qn=ie.state.loadedKeys;(0,x.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ie.setUncontrolledState({loadedKeys:(0,et.L0)(qn,Qe)}),rt()}ut(Mn)}),{loadingKeys:(0,et.L0)(Ot,Qe)}})});return gt.catch(function(){}),gt}}),(0,b.Z)((0,p.Z)(ie),"onNodeMouseEnter",function(He,st){var Qe=ie.props.onMouseEnter;Qe==null||Qe({event:He,node:st})}),(0,b.Z)((0,p.Z)(ie),"onNodeMouseLeave",function(He,st){var Qe=ie.props.onMouseLeave;Qe==null||Qe({event:He,node:st})}),(0,b.Z)((0,p.Z)(ie),"onNodeContextMenu",function(He,st){var Qe=ie.props.onRightClick;Qe&&(He.preventDefault(),Qe({event:He,node:st}))}),(0,b.Z)((0,p.Z)(ie),"onFocus",function(){var He=ie.props.onFocus;ie.setState({focused:!0});for(var st=arguments.length,Qe=new Array(st),pt=0;pt<st;pt++)Qe[pt]=arguments[pt];He==null||He.apply(void 0,Qe)}),(0,b.Z)((0,p.Z)(ie),"onBlur",function(){var He=ie.props.onBlur;ie.setState({focused:!1}),ie.onActiveChange(null);for(var st=arguments.length,Qe=new Array(st),pt=0;pt<st;pt++)Qe[pt]=arguments[pt];He==null||He.apply(void 0,Qe)}),(0,b.Z)((0,p.Z)(ie),"getTreeNodeRequiredProps",function(){var He=ie.state,st=He.expandedKeys,Qe=He.selectedKeys,pt=He.loadedKeys,It=He.loadingKeys,gt=He.checkedKeys,rt=He.halfCheckedKeys,ut=He.dragOverNodeKey,At=He.dropPosition,bt=He.keyEntities;return{expandedKeys:st||[],selectedKeys:Qe||[],loadedKeys:pt||[],loadingKeys:It||[],checkedKeys:gt||[],halfCheckedKeys:rt||[],dragOverNodeKey:ut,dropPosition:At,keyEntities:bt}}),(0,b.Z)((0,p.Z)(ie),"setExpandedKeys",function(He){var st=ie.state,Qe=st.treeData,pt=st.fieldNames,It=(0,ee.oH)(Qe,He,pt);ie.setUncontrolledState({expandedKeys:He,flattenNodes:It},!0)}),(0,b.Z)((0,p.Z)(ie),"onNodeExpand",function(He,st){var Qe=ie.state.expandedKeys,pt=ie.state,It=pt.listChanging,gt=pt.fieldNames,rt=ie.props,ut=rt.onExpand,At=rt.loadData,bt=st.expanded,Tt=st[gt.key];if(!It){var Mt=Qe.includes(Tt),Ot=!bt;if((0,x.ZP)(bt&&Mt||!bt&&!Mt,"Expand state not sync with index check"),Qe=Ot?(0,et.L0)(Qe,Tt):(0,et._5)(Qe,Tt),ie.setExpandedKeys(Qe),ut==null||ut(Qe,{node:st,expanded:Ot,nativeEvent:He.nativeEvent}),Ot&&At){var $e=ie.onNodeLoad(st);$e&&$e.then(function(){var $t=(0,ee.oH)(ie.state.treeData,Qe,gt);ie.setUncontrolledState({flattenNodes:$t})}).catch(function(){var $t=ie.state.expandedKeys,gn=(0,et._5)($t,Tt);ie.setExpandedKeys(gn)})}}}),(0,b.Z)((0,p.Z)(ie),"onListChangeStart",function(){ie.setUncontrolledState({listChanging:!0})}),(0,b.Z)((0,p.Z)(ie),"onListChangeEnd",function(){setTimeout(function(){ie.setUncontrolledState({listChanging:!1})})}),(0,b.Z)((0,p.Z)(ie),"onActiveChange",function(He){var st=ie.state.activeKey,Qe=ie.props,pt=Qe.onActiveChange,It=Qe.itemScrollOffset,gt=It===void 0?0:It;st!==He&&(ie.setState({activeKey:He}),He!==null&&ie.scrollTo({key:He,offset:gt}),pt==null||pt(He))}),(0,b.Z)((0,p.Z)(ie),"getActiveItem",function(){var He=ie.state,st=He.activeKey,Qe=He.flattenNodes;return st===null?null:Qe.find(function(pt){var It=pt.key;return It===st})||null}),(0,b.Z)((0,p.Z)(ie),"offsetActiveKey",function(He){var st=ie.state,Qe=st.flattenNodes,pt=st.activeKey,It=Qe.findIndex(function(ut){var At=ut.key;return At===pt});It===-1&&He<0&&(It=Qe.length),It=(It+He+Qe.length)%Qe.length;var gt=Qe[It];if(gt){var rt=gt.key;ie.onActiveChange(rt)}else ie.onActiveChange(null)}),(0,b.Z)((0,p.Z)(ie),"onKeyDown",function(He){var st=ie.state,Qe=st.activeKey,pt=st.expandedKeys,It=st.checkedKeys,gt=st.fieldNames,rt=ie.props,ut=rt.onKeyDown,At=rt.checkable,bt=rt.selectable;switch(He.which){case h.Z.UP:{ie.offsetActiveKey(-1),He.preventDefault();break}case h.Z.DOWN:{ie.offsetActiveKey(1),He.preventDefault();break}}var Tt=ie.getActiveItem();if(Tt&&Tt.data){var Mt=ie.getTreeNodeRequiredProps(),Ot=Tt.data.isLeaf===!1||!!(Tt.data[gt.children]||[]).length,$e=(0,ee.F)((0,s.Z)((0,s.Z)({},(0,ee.H8)(Qe,Mt)),{},{data:Tt.data,active:!0}));switch(He.which){case h.Z.LEFT:{Ot&&pt.includes(Qe)?ie.onNodeExpand({},$e):Tt.parent&&ie.onActiveChange(Tt.parent.key),He.preventDefault();break}case h.Z.RIGHT:{Ot&&!pt.includes(Qe)?ie.onNodeExpand({},$e):Tt.children&&Tt.children.length&&ie.onActiveChange(Tt.children[0].key),He.preventDefault();break}case h.Z.ENTER:case h.Z.SPACE:{At&&!$e.disabled&&$e.checkable!==!1&&!$e.disableCheckbox?ie.onNodeCheck({},$e,!It.includes(Qe)):!At&&bt&&!$e.disabled&&$e.selectable!==!1&&ie.onNodeSelect({},$e);break}}}ut==null||ut(He)}),(0,b.Z)((0,p.Z)(ie),"setUncontrolledState",function(He){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ie.destroyed){var pt=!1,It=!0,gt={};Object.keys(He).forEach(function(rt){if(ie.props.hasOwnProperty(rt)){It=!1;return}pt=!0,gt[rt]=He[rt]}),pt&&(!st||It)&&ie.setState((0,s.Z)((0,s.Z)({},gt),Qe))}}),(0,b.Z)((0,p.Z)(ie),"scrollTo",function(He){ie.listRef.current.scrollTo(He)}),ie}return(0,u.Z)(re,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var de=this.props,Ae=de.activeKey,Be=de.itemScrollOffset,He=Be===void 0?0:Be;Ae!==void 0&&Ae!==this.state.activeKey&&(this.setState({activeKey:Ae}),Ae!==null&&this.scrollTo({key:Ae,offset:He}))}},{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 de=this.state,Ae=de.focused,Be=de.flattenNodes,He=de.keyEntities,st=de.draggingNodeKey,Qe=de.activeKey,pt=de.dropLevelOffset,It=de.dropContainerKey,gt=de.dropTargetKey,rt=de.dropPosition,ut=de.dragOverNodeKey,At=de.indent,bt=this.props,Tt=bt.prefixCls,Mt=bt.className,Ot=bt.style,$e=bt.showLine,$t=bt.focusable,gn=bt.tabIndex,Et=gn===void 0?0:gn,Mn=bt.selectable,qn=bt.showIcon,Zn=bt.icon,Bt=bt.switcherIcon,yr=bt.draggable,vr=bt.checkable,Un=bt.checkStrictly,Wn=bt.disabled,wr=bt.motion,ye=bt.loadData,Fn=bt.filterTreeNode,wn=bt.height,Jn=bt.itemHeight,Ir=bt.scrollWidth,Wr=bt.virtual,cr=bt.titleRender,ro=bt.dropIndicatorRender,Kr=bt.onContextMenu,oi=bt.onScroll,Kn=bt.direction,Dn=bt.rootClassName,li=bt.rootStyle,Nr=(0,g.Z)(this.props,{aria:!0,data:!0}),Yr;yr&&((0,Y.Z)(yr)==="object"?Yr=yr:typeof yr=="function"?Yr={nodeDraggable:yr}:Yr={});var mn={prefixCls:Tt,selectable:Mn,showIcon:qn,icon:Zn,switcherIcon:Bt,draggable:Yr,draggingNodeKey:st,checkable:vr,checkStrictly:Un,disabled:Wn,keyEntities:He,dropLevelOffset:pt,dropContainerKey:It,dropTargetKey:gt,dropPosition:rt,dragOverNodeKey:ut,indent:At,direction:Kn,dropIndicatorRender:ro,loadData:ye,filterTreeNode:Fn,titleRender:cr,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(I.k.Provider,{value:mn},T.createElement("div",{className:c()(Tt,Mt,Dn,(0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(Tt,"-show-line"),$e),"".concat(Tt,"-focused"),Ae),"".concat(Tt,"-active-focused"),Qe!==null)),style:li},T.createElement(je,(0,B.Z)({ref:this.listRef,prefixCls:Tt,style:Ot,data:Be,disabled:Wn,selectable:Mn,checkable:!!vr,motion:wr,dragging:st!==null,height:wn,itemHeight:Jn,virtual:Wr,focusable:$t,focused:Ae,tabIndex:Et,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Kr,onScroll:oi,scrollWidth:Ir},this.getTreeNodeRequiredProps(),Nr))))}}],[{key:"getDerivedStateFromProps",value:function(de,Ae){var Be=Ae.prevProps,He={prevProps:de};function st(Et){return!Be&&de.hasOwnProperty(Et)||Be&&Be[Et]!==de[Et]}var Qe,pt=Ae.fieldNames;if(st("fieldNames")&&(pt=(0,ee.w$)(de.fieldNames),He.fieldNames=pt),st("treeData")?Qe=de.treeData:st("children")&&((0,x.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Qe=(0,ee.zn)(de.children)),Qe){He.treeData=Qe;var It=(0,ee.I8)(Qe,{fieldNames:pt});He.keyEntities=(0,s.Z)((0,b.Z)({},ue,Re),It.keyEntities)}var gt=He.keyEntities||Ae.keyEntities;if(st("expandedKeys")||Be&&st("autoExpandParent"))He.expandedKeys=de.autoExpandParent||!Be&&de.defaultExpandParent?(0,et.r7)(de.expandedKeys,gt):de.expandedKeys;else if(!Be&&de.defaultExpandAll){var rt=(0,s.Z)({},gt);delete rt[ue];var ut=[];Object.keys(rt).forEach(function(Et){var Mn=rt[Et];Mn.children&&Mn.children.length&&ut.push(Mn.key)}),He.expandedKeys=ut}else!Be&&de.defaultExpandedKeys&&(He.expandedKeys=de.autoExpandParent||de.defaultExpandParent?(0,et.r7)(de.defaultExpandedKeys,gt):de.defaultExpandedKeys);if(He.expandedKeys||delete He.expandedKeys,Qe||He.expandedKeys){var At=(0,ee.oH)(Qe||Ae.treeData,He.expandedKeys||Ae.expandedKeys,pt);He.flattenNodes=At}if(de.selectable&&(st("selectedKeys")?He.selectedKeys=(0,et.BT)(de.selectedKeys,de):!Be&&de.defaultSelectedKeys&&(He.selectedKeys=(0,et.BT)(de.defaultSelectedKeys,de))),de.checkable){var bt;if(st("checkedKeys")?bt=(0,et.E6)(de.checkedKeys)||{}:!Be&&de.defaultCheckedKeys?bt=(0,et.E6)(de.defaultCheckedKeys)||{}:Qe&&(bt=(0,et.E6)(de.checkedKeys)||{checkedKeys:Ae.checkedKeys,halfCheckedKeys:Ae.halfCheckedKeys}),bt){var Tt=bt,Mt=Tt.checkedKeys,Ot=Mt===void 0?[]:Mt,$e=Tt.halfCheckedKeys,$t=$e===void 0?[]:$e;if(!de.checkStrictly){var gn=(0,it.S)(Ot,!0,gt);Ot=gn.checkedKeys,$t=gn.halfCheckedKeys}He.checkedKeys=Ot,He.halfCheckedKeys=$t}}return st("loadedKeys")&&(He.loadedKeys=de.loadedKeys),He}}]),re}(T.Component);(0,b.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:N,allowDrop:function(){return!0},expandAction:!1}),(0,b.Z)(fe,"TreeNode",U.Z);var W=fe,Z=W},82661:function(Oe,J,S){"use strict";S.d(J,{BT:function(){return T},E6:function(){return N},L0:function(){return b},OM:function(){return x},_5:function(){return m},r7:function(){return k},wA:function(){return c},yx:function(){return v}});var B=S(15142),Y=S(26420),s=S(48736),w=S(59301),_=S(639),u=S(65065),p=S(34061),y=null;function m(L,H){if(!L)return[];var M=L.slice(),F=M.indexOf(H);return F>=0&&M.splice(F,1),M}function b(L,H){var M=(L||[]).slice();return M.indexOf(H)===-1&&M.push(H),M}function v(L){return L.split("-")}function c(L,H){var M=[],F=(0,u.Z)(H,L);function P(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];U.forEach(function(G){var Q=G.key,ee=G.children;M.push(Q),P(ee)})}return P(F.children),M}function h(L){if(L.parent){var H=v(L.pos);return Number(H[H.length-1])===L.parent.children.length-1}return!1}function g(L){var H=v(L.pos);return Number(H[H.length-1])===0}function x(L,H,M,F,P,U,G,Q,ee,ae){var oe,he=L.clientX,le=L.clientY,be=L.target.getBoundingClientRect(),pe=be.top,_e=be.height,ne=(ae==="rtl"?-1:1)*(((P==null?void 0:P.x)||0)-he),ue=(ne-12)/F,ce=ee.filter(function(Z){var me;return(me=Q[Z])===null||me===void 0||(me=me.children)===null||me===void 0?void 0:me.length}),Re=(0,u.Z)(Q,M.eventKey);if(le<pe+_e/2){var ke=G.findIndex(function(Z){return Z.key===Re.key}),Ne=ke<=0?0:ke-1,De=G[Ne].key;Re=(0,u.Z)(Q,De)}var Me=Re.key,We=Re,je=Re.key,et=0,it=0;if(!ce.includes(Me))for(var ze=0;ze<ue&&h(Re);ze+=1)Re=Re.parent,it+=1;var xe=H.data,fe=Re.node,W=!0;return g(Re)&&Re.level===0&&le<pe+_e/2&&U({dragNode:xe,dropNode:fe,dropPosition:-1})&&Re.key===M.eventKey?et=-1:(We.children||[]).length&&ce.includes(je)?U({dragNode:xe,dropNode:fe,dropPosition:0})?et=0:W=!1:it===0?ue>-1.5?U({dragNode:xe,dropNode:fe,dropPosition:1})?et=1:W=!1:U({dragNode:xe,dropNode:fe,dropPosition:0})?et=0:U({dragNode:xe,dropNode:fe,dropPosition:1})?et=1:W=!1:U({dragNode:xe,dropNode:fe,dropPosition:1})?et=1:W=!1,{dropPosition:et,dropLevelOffset:it,dropTargetKey:Re.key,dropTargetPos:Re.pos,dragOverNodeKey:je,dropContainerKey:et===0?null:((oe=Re.parent)===null||oe===void 0?void 0:oe.key)||null,dropAllowed:W}}function T(L,H){if(L){var M=H.multiple;return M?L.slice():L.length?[L[0]]:L}}var I=function(H){return H};function R(L,H){if(!L)return[];var M=H||{},F=M.processProps,P=F===void 0?I:F,U=Array.isArray(L)?L:[L];return U.map(function(G){var Q=G.children,ee=_objectWithoutProperties(G,y),ae=R(Q,H);return React.createElement(TreeNode,_extends({key:ee.key},P(ee)),ae)})}function N(L){if(!L)return null;var H;if(Array.isArray(L))H={checkedKeys:L,halfCheckedKeys:void 0};else if((0,Y.Z)(L)==="object")H={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 H}function k(L,H){var M=new Set;function F(P){if(!M.has(P)){var U=(0,u.Z)(H,P);if(U){M.add(P);var G=U.parent,Q=U.node;Q.disabled||G&&F(G.key)}}}return(L||[]).forEach(function(P){F(P)}),(0,B.Z)(M)}},34643:function(Oe,J,S){"use strict";S.d(J,{S:function(){return p}});var B=S(48736),Y=S(65065);function s(y,m){var b=new Set;return y.forEach(function(v){m.has(v)||b.add(v)}),b}function w(y){var m=y||{},b=m.disabled,v=m.disableCheckbox,c=m.checkable;return!!(b||v)||c===!1}function _(y,m,b,v){for(var c=new Set(y),h=new Set,g=0;g<=b;g+=1){var x=m.get(g)||new Set;x.forEach(function(N){var k=N.key,L=N.node,H=N.children,M=H===void 0?[]:H;c.has(k)&&!v(L)&&M.filter(function(F){return!v(F.node)}).forEach(function(F){c.add(F.key)})})}for(var T=new Set,I=b;I>=0;I-=1){var R=m.get(I)||new Set;R.forEach(function(N){var k=N.parent,L=N.node;if(!(v(L)||!N.parent||T.has(N.parent.key))){if(v(N.parent.node)){T.add(k.key);return}var H=!0,M=!1;(k.children||[]).filter(function(F){return!v(F.node)}).forEach(function(F){var P=F.key,U=c.has(P);H&&!U&&(H=!1),!M&&(U||h.has(P))&&(M=!0)}),H&&c.add(k.key),M&&h.add(k.key),T.add(k.key)}})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(s(h,c))}}function u(y,m,b,v,c){for(var h=new Set(y),g=new Set(m),x=0;x<=v;x+=1){var T=b.get(x)||new Set;T.forEach(function(k){var L=k.key,H=k.node,M=k.children,F=M===void 0?[]:M;!h.has(L)&&!g.has(L)&&!c(H)&&F.filter(function(P){return!c(P.node)}).forEach(function(P){h.delete(P.key)})})}g=new Set;for(var I=new Set,R=v;R>=0;R-=1){var N=b.get(R)||new Set;N.forEach(function(k){var L=k.parent,H=k.node;if(!(c(H)||!k.parent||I.has(k.parent.key))){if(c(k.parent.node)){I.add(L.key);return}var M=!0,F=!1;(L.children||[]).filter(function(P){return!c(P.node)}).forEach(function(P){var U=P.key,G=h.has(U);M&&!G&&(M=!1),!F&&(G||g.has(U))&&(F=!0)}),M||h.delete(L.key),F&&g.add(L.key),I.add(L.key)}})}return{checkedKeys:Array.from(h),halfCheckedKeys:Array.from(s(g,h))}}function p(y,m,b,v){var c=[],h;v?h=v:h=w;var g=new Set(y.filter(function(R){var N=!!(0,Y.Z)(b,R);return N||c.push(R),N})),x=new Map,T=0;Object.keys(b).forEach(function(R){var N=b[R],k=N.level,L=x.get(k);L||(L=new Set,x.set(k,L)),L.add(N),T=Math.max(T,k)}),(0,B.ZP)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var I;return m===!0?I=_(g,x,T,h):I=u(g,m.halfCheckedKeys,x,T,h),I}},65065:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return B}});function B(Y,s){return Y[s]}},34061:function(Oe,J,S){"use strict";S.d(J,{F:function(){return k},H8:function(){return N},I8:function(){return R},km:function(){return c},oH:function(){return T},w$:function(){return h},zn:function(){return x}});var B=S(26420),Y=S(15142),s=S(98506),w=S(33346),_=S(11592),u=S(2738),p=S(48736),y=S(65065),m=["children"];function b(L,H){return"".concat(L,"-").concat(H)}function v(L){return L&&L.type&&L.type.isTreeNode}function c(L,H){return L!=null?L:H}function h(L){var H=L||{},M=H.title,F=H._title,P=H.key,U=H.children,G=M||"title";return{title:G,_title:F||[G],key:P||"key",children:U||"children"}}function g(L,H){var M=new Map;function F(P){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(P||[]).forEach(function(G){var Q=G[H.key],ee=G[H.children];warning(Q!=null,"Tree node must have a certain key: [".concat(U).concat(Q,"]"));var ae=String(Q);warning(!M.has(ae)||Q===null||Q===void 0,"Same 'key' exist in the Tree: ".concat(ae)),M.set(ae,!0),F(ee,"".concat(U).concat(ae," > "))})}F(L)}function x(L){function H(M){var F=(0,_.Z)(M);return F.map(function(P){if(!v(P))return(0,p.ZP)(!P,"Tree/TreeNode can only accept TreeNode as children."),null;var U=P.key,G=P.props,Q=G.children,ee=(0,w.Z)(G,m),ae=(0,s.Z)({key:U},ee),oe=H(Q);return oe.length&&(ae.children=oe),ae}).filter(function(P){return P})}return H(L)}function T(L,H,M){var F=h(M),P=F._title,U=F.key,G=F.children,Q=new Set(H===!0?[]:H),ee=[];function ae(oe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return oe.map(function(le,be){for(var pe=b(he?he.pos:"0",be),_e=c(le[U],pe),ne,ue=0;ue<P.length;ue+=1){var ce=P[ue];if(le[ce]!==void 0){ne=le[ce];break}}var Re=Object.assign((0,u.Z)(le,[].concat((0,Y.Z)(P),[U,G])),{title:ne,key:_e,parent:he,pos:pe,children:null,data:le,isStart:[].concat((0,Y.Z)(he?he.isStart:[]),[be===0]),isEnd:[].concat((0,Y.Z)(he?he.isEnd:[]),[be===oe.length-1])});return ee.push(Re),H===!0||Q.has(_e)?Re.children=ae(le[G]||[],Re):Re.children=[],Re})}return ae(L),ee}function I(L,H,M){var F={};(0,B.Z)(M)==="object"?F=M:F={externalGetKey:M},F=F||{};var P=F,U=P.childrenPropName,G=P.externalGetKey,Q=P.fieldNames,ee=h(Q),ae=ee.key,oe=ee.children,he=U||oe,le;G?typeof G=="string"?le=function(_e){return _e[G]}:typeof G=="function"&&(le=function(_e){return G(_e)}):le=function(_e,ne){return c(_e[ae],ne)};function be(pe,_e,ne,ue){var ce=pe?pe[he]:L,Re=pe?b(ne.pos,_e):"0",ke=pe?[].concat((0,Y.Z)(ue),[pe]):[];if(pe){var Ne=le(pe,Re),De={node:pe,index:_e,pos:Re,key:Ne,parentPos:ne.node?ne.pos:null,level:ne.level+1,nodes:ke};H(De)}ce&&ce.forEach(function(Me,We){be(Me,We,{node:pe,pos:Re,level:ne?ne.level+1:-1},ke)})}be(null)}function R(L){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=H.initWrapper,F=H.processEntity,P=H.onProcessFinished,U=H.externalGetKey,G=H.childrenPropName,Q=H.fieldNames,ee=arguments.length>2?arguments[2]:void 0,ae=U||ee,oe={},he={},le={posEntities:oe,keyEntities:he};return M&&(le=M(le)||le),I(L,function(be){var pe=be.node,_e=be.index,ne=be.pos,ue=be.key,ce=be.parentPos,Re=be.level,ke=be.nodes,Ne={node:pe,nodes:ke,index:_e,key:ue,pos:ne,level:Re},De=c(ue,ne);oe[ne]=Ne,he[De]=Ne,Ne.parent=oe[ce],Ne.parent&&(Ne.parent.children=Ne.parent.children||[],Ne.parent.children.push(Ne)),F&&F(Ne,le)},{externalGetKey:ae,childrenPropName:G,fieldNames:Q}),P&&P(le),le}function N(L,H){var M=H.expandedKeys,F=H.selectedKeys,P=H.loadedKeys,U=H.loadingKeys,G=H.checkedKeys,Q=H.halfCheckedKeys,ee=H.dragOverNodeKey,ae=H.dropPosition,oe=H.keyEntities,he=(0,y.Z)(oe,L),le={eventKey:L,expanded:M.indexOf(L)!==-1,selected:F.indexOf(L)!==-1,loaded:P.indexOf(L)!==-1,loading:U.indexOf(L)!==-1,checked:G.indexOf(L)!==-1,halfChecked:Q.indexOf(L)!==-1,pos:String(he?he.pos:""),dragOver:ee===L&&ae===0,dragOverGapTop:ee===L&&ae===-1,dragOverGapBottom:ee===L&&ae===1};return le}function k(L){var H=L.data,M=L.expanded,F=L.selected,P=L.checked,U=L.loaded,G=L.loading,Q=L.halfChecked,ee=L.dragOver,ae=L.dragOverGapTop,oe=L.dragOverGapBottom,he=L.pos,le=L.active,be=L.eventKey,pe=(0,s.Z)((0,s.Z)({},H),{},{expanded:M,selected:F,checked:P,loaded:U,loading:G,halfChecked:Q,dragOver:ee,dragOverGapTop:ae,dragOverGapBottom:oe,pos:he,active:le,key:be});return"props"in pe||Object.defineProperty(pe,"props",{get:function(){return(0,p.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),L}}),pe}},90472:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return be}});var B=S(67711),Y=S(42573),s=S(58698),w=S(62437),_=S(74700),u=S(45080),p=S(52873),y=S(59301),m=S(98506),b=S(33346),v=S(26420),c=S(77910),h=S(51343),g=S(15142),x=S(92310),T=S.n(x),I=S(26112),R=S(48736),N=function(pe,_e){if(pe&&_e){var ne=Array.isArray(_e)?_e:_e.split(","),ue=pe.name||"",ce=pe.type||"",Re=ce.replace(/\/.*$/,"");return ne.some(function(ke){var Ne=ke.trim();if(/^\*(\/\*)?$/.test(ke))return!0;if(Ne.charAt(0)==="."){var De=ue.toLowerCase(),Me=Ne.toLowerCase(),We=[Me];return(Me===".jpg"||Me===".jpeg")&&(We=[".jpg",".jpeg"]),We.some(function(je){return De.endsWith(je)})}return/\/\*$/.test(Ne)?Re===Ne.replace(/\/.*$/,""):ce===Ne?!0:/^\w+$/.test(Ne)?((0,R.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ne,"'.Skip for check.")),!0):!1})}return!0};function k(pe,_e){var ne="cannot ".concat(pe.method," ").concat(pe.action," ").concat(_e.status,"'"),ue=new Error(ne);return ue.status=_e.status,ue.method=pe.method,ue.url=pe.action,ue}function L(pe){var _e=pe.responseText||pe.response;if(!_e)return _e;try{return JSON.parse(_e)}catch(ne){return _e}}function H(pe){var _e=new XMLHttpRequest;pe.onProgress&&_e.upload&&(_e.upload.onprogress=function(Re){Re.total>0&&(Re.percent=Re.loaded/Re.total*100),pe.onProgress(Re)});var ne=new FormData;pe.data&&Object.keys(pe.data).forEach(function(ce){var Re=pe.data[ce];if(Array.isArray(Re)){Re.forEach(function(ke){ne.append("".concat(ce,"[]"),ke)});return}ne.append(ce,Re)}),pe.file instanceof Blob?ne.append(pe.filename,pe.file,pe.file.name):ne.append(pe.filename,pe.file),_e.onerror=function(Re){pe.onError(Re)},_e.onload=function(){return _e.status<200||_e.status>=300?pe.onError(k(pe,_e),L(_e)):pe.onSuccess(L(_e),_e)},_e.open(pe.method,pe.action,!0),pe.withCredentials&&"withCredentials"in _e&&(_e.withCredentials=!0);var ue=pe.headers||{};return ue["X-Requested-With"]!==null&&_e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ue).forEach(function(ce){ue[ce]!==null&&_e.setRequestHeader(ce,ue[ce])}),_e.send(ne),{abort:function(){_e.abort()}}}var M=function(){var pe=(0,h.Z)((0,c.Z)().mark(function _e(ne,ue){var ce,Re,ke,Ne,De,Me,We,je;return(0,c.Z)().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:Me=function(){return Me=(0,h.Z)((0,c.Z)().mark(function xe(fe){return(0,c.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.abrupt("return",new Promise(function(me){fe.file(function(Ce){ue(Ce)?(fe.fullPath&&!Ce.webkitRelativePath&&(Object.defineProperties(Ce,{webkitRelativePath:{writable:!0}}),Ce.webkitRelativePath=fe.fullPath.replace(/^\//,""),Object.defineProperties(Ce,{webkitRelativePath:{writable:!1}})),me(Ce)):me(null)})}));case 1:case"end":return Z.stop()}},xe)})),Me.apply(this,arguments)},De=function(xe){return Me.apply(this,arguments)},Ne=function(){return Ne=(0,h.Z)((0,c.Z)().mark(function xe(fe){var W,Z,me,Ce,re;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:W=fe.createReader(),Z=[];case 2:return de.next=5,new Promise(function(Ae){W.readEntries(Ae,function(){return Ae([])})});case 5:if(me=de.sent,Ce=me.length,Ce){de.next=9;break}return de.abrupt("break",12);case 9:for(re=0;re<Ce;re++)Z.push(me[re]);de.next=2;break;case 12:return de.abrupt("return",Z);case 13:case"end":return de.stop()}},xe)})),Ne.apply(this,arguments)},ke=function(xe){return Ne.apply(this,arguments)},ce=[],Re=[],ne.forEach(function(ze){return Re.push(ze.webkitGetAsEntry())}),We=function(){var ze=(0,h.Z)((0,c.Z)().mark(function xe(fe,W){var Z,me;return(0,c.Z)().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(fe){re.next=2;break}return re.abrupt("return");case 2:if(fe.path=W||"",!fe.isFile){re.next=10;break}return re.next=6,De(fe);case 6:Z=re.sent,Z&&ce.push(Z),re.next=15;break;case 10:if(!fe.isDirectory){re.next=15;break}return re.next=13,ke(fe);case 13:me=re.sent,Re.push.apply(Re,(0,g.Z)(me));case 15:case"end":return re.stop()}},xe)}));return function(fe,W){return ze.apply(this,arguments)}}(),je=0;case 9:if(!(je<Re.length)){it.next=15;break}return it.next=12,We(Re[je]);case 12:je++,it.next=9;break;case 15:return it.abrupt("return",ce);case 16:case"end":return it.stop()}},_e)}));return function(ne,ue){return pe.apply(this,arguments)}}(),F=M,P=+new Date,U=0;function G(){return"rc-upload-".concat(P,"-").concat(++U)}var Q=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ee=function(pe){(0,_.Z)(ne,pe);var _e=(0,u.Z)(ne);function ne(){var ue;(0,Y.Z)(this,ne);for(var ce=arguments.length,Re=new Array(ce),ke=0;ke<ce;ke++)Re[ke]=arguments[ke];return ue=_e.call.apply(_e,[this].concat(Re)),(0,p.Z)((0,w.Z)(ue),"state",{uid:G()}),(0,p.Z)((0,w.Z)(ue),"reqs",{}),(0,p.Z)((0,w.Z)(ue),"fileInput",void 0),(0,p.Z)((0,w.Z)(ue),"_isMounted",void 0),(0,p.Z)((0,w.Z)(ue),"onChange",function(Ne){var De=ue.props,Me=De.accept,We=De.directory,je=Ne.target.files,et=(0,g.Z)(je).filter(function(it){return!We||N(it,Me)});ue.uploadFiles(et),ue.reset()}),(0,p.Z)((0,w.Z)(ue),"onClick",function(Ne){var De=ue.fileInput;if(De){var Me=Ne.target,We=ue.props.onClick;if(Me&&Me.tagName==="BUTTON"){var je=De.parentNode;je.focus(),Me.blur()}De.click(),We&&We(Ne)}}),(0,p.Z)((0,w.Z)(ue),"onKeyDown",function(Ne){Ne.key==="Enter"&&ue.onClick(Ne)}),(0,p.Z)((0,w.Z)(ue),"onFileDrop",function(){var Ne=(0,h.Z)((0,c.Z)().mark(function De(Me){var We,je,et;return(0,c.Z)().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(We=ue.props.multiple,Me.preventDefault(),Me.type!=="dragover"){ze.next=4;break}return ze.abrupt("return");case 4:if(!ue.props.directory){ze.next=11;break}return ze.next=7,F(Array.prototype.slice.call(Me.dataTransfer.items),function(xe){return N(xe,ue.props.accept)});case 7:je=ze.sent,ue.uploadFiles(je),ze.next=14;break;case 11:et=(0,g.Z)(Me.dataTransfer.files).filter(function(xe){return N(xe,ue.props.accept)}),We===!1&&(et=et.slice(0,1)),ue.uploadFiles(et);case 14:case"end":return ze.stop()}},De)}));return function(De){return Ne.apply(this,arguments)}}()),(0,p.Z)((0,w.Z)(ue),"uploadFiles",function(Ne){var De=(0,g.Z)(Ne),Me=De.map(function(We){return We.uid=G(),ue.processFile(We,De)});Promise.all(Me).then(function(We){var je=ue.props.onBatchStart;je==null||je(We.map(function(et){var it=et.origin,ze=et.parsedFile;return{file:it,parsedFile:ze}})),We.filter(function(et){return et.parsedFile!==null}).forEach(function(et){ue.post(et)})})}),(0,p.Z)((0,w.Z)(ue),"processFile",function(){var Ne=(0,h.Z)((0,c.Z)().mark(function De(Me,We){var je,et,it,ze,xe,fe,W,Z,me;return(0,c.Z)().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(je=ue.props.beforeUpload,et=Me,!je){re.next=14;break}return re.prev=3,re.next=6,je(Me,We);case 6:et=re.sent,re.next=12;break;case 9:re.prev=9,re.t0=re.catch(3),et=!1;case 12:if(et!==!1){re.next=14;break}return re.abrupt("return",{origin:Me,parsedFile:null,action:null,data:null});case 14:if(it=ue.props.action,typeof it!="function"){re.next=21;break}return re.next=18,it(Me);case 18:ze=re.sent,re.next=22;break;case 21:ze=it;case 22:if(xe=ue.props.data,typeof xe!="function"){re.next=29;break}return re.next=26,xe(Me);case 26:fe=re.sent,re.next=30;break;case 29:fe=xe;case 30:return W=((0,v.Z)(et)==="object"||typeof et=="string")&&et?et:Me,W instanceof File?Z=W:Z=new File([W],Me.name,{type:Me.type}),me=Z,me.uid=Me.uid,re.abrupt("return",{origin:Me,data:fe,parsedFile:me,action:ze});case 35:case"end":return re.stop()}},De,null,[[3,9]])}));return function(De,Me){return Ne.apply(this,arguments)}}()),(0,p.Z)((0,w.Z)(ue),"saveFileInput",function(Ne){ue.fileInput=Ne}),ue}return(0,s.Z)(ne,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ce){var Re=this,ke=ce.data,Ne=ce.origin,De=ce.action,Me=ce.parsedFile;if(this._isMounted){var We=this.props,je=We.onStart,et=We.customRequest,it=We.name,ze=We.headers,xe=We.withCredentials,fe=We.method,W=Ne.uid,Z=et||H,me={action:De,filename:it,data:ke,file:Me,headers:ze,withCredentials:xe,method:fe||"post",onProgress:function(re){var ie=Re.props.onProgress;ie==null||ie(re,Me)},onSuccess:function(re,ie){var de=Re.props.onSuccess;de==null||de(re,Me,ie),delete Re.reqs[W]},onError:function(re,ie){var de=Re.props.onError;de==null||de(re,ie,Me),delete Re.reqs[W]}};je(Ne),this.reqs[W]=Z(me)}}},{key:"reset",value:function(){this.setState({uid:G()})}},{key:"abort",value:function(ce){var Re=this.reqs;if(ce){var ke=ce.uid?ce.uid:ce;Re[ke]&&Re[ke].abort&&Re[ke].abort(),delete Re[ke]}else Object.keys(Re).forEach(function(Ne){Re[Ne]&&Re[Ne].abort&&Re[Ne].abort(),delete Re[Ne]})}},{key:"render",value:function(){var ce=this.props,Re=ce.component,ke=ce.prefixCls,Ne=ce.className,De=ce.classNames,Me=De===void 0?{}:De,We=ce.disabled,je=ce.id,et=ce.name,it=ce.style,ze=ce.styles,xe=ze===void 0?{}:ze,fe=ce.multiple,W=ce.accept,Z=ce.capture,me=ce.children,Ce=ce.directory,re=ce.openFileDialogOnClick,ie=ce.onMouseEnter,de=ce.onMouseLeave,Ae=ce.hasControlInside,Be=(0,b.Z)(ce,Q),He=T()((0,p.Z)((0,p.Z)((0,p.Z)({},ke,!0),"".concat(ke,"-disabled"),We),Ne,Ne)),st=Ce?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Qe=We?{}:{onClick:re?this.onClick:function(){},onKeyDown:re?this.onKeyDown:function(){},onMouseEnter:ie,onMouseLeave:de,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Ae?void 0:"0"};return y.createElement(Re,(0,B.Z)({},Qe,{className:He,role:Ae?void 0:"button",style:it}),y.createElement("input",(0,B.Z)({},(0,I.Z)(Be,{aria:!0,data:!0}),{id:je,name:et,disabled:We,type:"file",ref:this.saveFileInput,onClick:function(It){return It.stopPropagation()},key:this.state.uid,style:(0,m.Z)({display:"none"},xe.input),className:Me.input,accept:W},st,{multiple:fe,onChange:this.onChange},Z!=null?{capture:Z}:{})),me)}}]),ne}(y.Component),ae=ee;function oe(){}var he=function(pe){(0,_.Z)(ne,pe);var _e=(0,u.Z)(ne);function ne(){var ue;(0,Y.Z)(this,ne);for(var ce=arguments.length,Re=new Array(ce),ke=0;ke<ce;ke++)Re[ke]=arguments[ke];return ue=_e.call.apply(_e,[this].concat(Re)),(0,p.Z)((0,w.Z)(ue),"uploader",void 0),(0,p.Z)((0,w.Z)(ue),"saveUploader",function(Ne){ue.uploader=Ne}),ue}return(0,s.Z)(ne,[{key:"abort",value:function(ce){this.uploader.abort(ce)}},{key:"render",value:function(){return y.createElement(ae,(0,B.Z)({},this.props,{ref:this.saveUploader}))}}]),ne}(y.Component);(0,p.Z)(he,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:oe,onError:oe,onSuccess:oe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var le=he,be=le},8224:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return Y}});var B=S(4676);function Y(s,w,_,u){var p=B.unstable_batchedUpdates?function(m){B.unstable_batchedUpdates(_,m)}:_;return s!=null&&s.addEventListener&&s.addEventListener(w,p,u),{remove:function(){s!=null&&s.removeEventListener&&s.removeEventListener(w,p,u)}}}},24514:function(Oe,J,S){"use strict";S.d(J,{G:function(){return w}});var B=S(47273),Y=function(u){if((0,B.Z)()&&window.document.documentElement){var p=Array.isArray(u)?u:[u],y=window.document.documentElement;return p.some(function(m){return m in y.style})}return!1},s=function(u,p){if(!Y(u))return!1;var y=document.createElement("div"),m=y.style[u];return y.style[u]=p,y.style[u]!==m};function w(_,u){return!Array.isArray(_)&&u!==void 0?s(_,u):Y(_)}},6790:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return xe}});var B=S(67711),Y=S(26420),s=S(98506),w=S(52873),_=S(16886),u=S(33346),p=S(92310),y=S.n(p),m=S(29301),b=S(70425),v=S(34280),c=S(59301),h=S(4676),g=c.forwardRef(function(fe,W){var Z=fe.height,me=fe.offsetY,Ce=fe.offsetX,re=fe.children,ie=fe.prefixCls,de=fe.onInnerResize,Ae=fe.innerProps,Be=fe.rtl,He=fe.extra,st={},Qe={display:"flex",flexDirection:"column"};return me!==void 0&&(st={height:Z,position:"relative",overflow:"hidden"},Qe=(0,s.Z)((0,s.Z)({},Qe),{},(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({transform:"translateY(".concat(me,"px)")},Be?"marginRight":"marginLeft",-Ce),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:st},c.createElement(m.Z,{onResize:function(It){var gt=It.offsetHeight;gt&&de&&de()}},c.createElement("div",(0,B.Z)({style:Qe,className:y()((0,w.Z)({},"".concat(ie,"-holder-inner"),ie)),ref:W},Ae),re,He)))});g.displayName="Filler";var x=g;function T(fe){var W=fe.children,Z=fe.setRef,me=c.useCallback(function(Ce){Z(Ce)},[]);return c.cloneElement(W,{ref:me})}function I(fe,W,Z,me,Ce,re,ie,de){var Ae=de.getKey;return fe.slice(W,Z+1).map(function(Be,He){var st=W+He,Qe=ie(Be,st,{style:{width:me},offsetX:Ce}),pt=Ae(Be);return c.createElement(T,{key:pt,setRef:function(gt){return re(Be,gt)}},Qe)})}function R(fe,W,Z,me){var Ce=Z-fe,re=W-Z,ie=Math.min(Ce,re)*2;if(me<=ie){var de=Math.floor(me/2);return me%2?Z+de+1:Z-de}return Ce>re?Z-(me-re):Z+(me-Ce)}function N(fe,W,Z){var me=fe.length,Ce=W.length,re,ie;if(me===0&&Ce===0)return null;me<Ce?(re=fe,ie=W):(re=W,ie=fe);var de={__EMPTY_ITEM__:!0};function Ae(It){return It!==void 0?Z(It):de}for(var Be=null,He=Math.abs(me-Ce)!==1,st=0;st<ie.length;st+=1){var Qe=Ae(re[st]),pt=Ae(ie[st]);if(Qe!==pt){Be=st,He=He||Qe!==Ae(ie[st+1]);break}}return Be===null?null:{index:Be,multiple:He}}function k(fe,W,Z){var me=c.useState(fe),Ce=(0,_.Z)(me,2),re=Ce[0],ie=Ce[1],de=c.useState(null),Ae=(0,_.Z)(de,2),Be=Ae[0],He=Ae[1];return c.useEffect(function(){var st=N(re||[],fe||[],W);(st==null?void 0:st.index)!==void 0&&(Z==null||Z(st.index),He(fe[st.index])),ie(fe)},[fe]),[Be]}var L=S(16089),H=(typeof navigator=="undefined"?"undefined":(0,Y.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),M=H,F=function(fe,W,Z,me){var Ce=(0,c.useRef)(!1),re=(0,c.useRef)(null);function ie(){clearTimeout(re.current),Ce.current=!0,re.current=setTimeout(function(){Ce.current=!1},50)}var de=(0,c.useRef)({top:fe,bottom:W,left:Z,right:me});return de.current.top=fe,de.current.bottom=W,de.current.left=Z,de.current.right=me,function(Ae,Be){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,st=Ae?Be<0&&de.current.left||Be>0&&de.current.right:Be<0&&de.current.top||Be>0&&de.current.bottom;return He&&st?(clearTimeout(re.current),Ce.current=!1):(!st||Ce.current)&&ie(),!Ce.current&&st}};function P(fe,W,Z,me,Ce,re,ie){var de=(0,c.useRef)(0),Ae=(0,c.useRef)(null),Be=(0,c.useRef)(null),He=(0,c.useRef)(!1),st=F(W,Z,me,Ce);function Qe(At,bt){if(L.Z.cancel(Ae.current),!st(!1,bt)){var Tt=At;if(!Tt._virtualHandled)Tt._virtualHandled=!0;else return;de.current+=bt,Be.current=bt,M||Tt.preventDefault(),Ae.current=(0,L.Z)(function(){var Mt=He.current?10:1;ie(de.current*Mt,!1),de.current=0})}}function pt(At,bt){ie(bt,!0),M||At.preventDefault()}var It=(0,c.useRef)(null),gt=(0,c.useRef)(null);function rt(At){if(fe){L.Z.cancel(gt.current),gt.current=(0,L.Z)(function(){It.current=null},2);var bt=At.deltaX,Tt=At.deltaY,Mt=At.shiftKey,Ot=bt,$e=Tt;(It.current==="sx"||!It.current&&Mt&&Tt&&!bt)&&(Ot=Tt,$e=0,It.current="sx");var $t=Math.abs(Ot),gn=Math.abs($e);It.current===null&&(It.current=re&&$t>gn?"x":"y"),It.current==="y"?Qe(At,$e):pt(At,Ot)}}function ut(At){fe&&(He.current=At.detail===Be.current)}return[rt,ut]}function U(fe,W,Z,me){var Ce=c.useMemo(function(){return[new Map,[]]},[fe,Z.id,me]),re=(0,_.Z)(Ce,2),ie=re[0],de=re[1],Ae=function(He){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He,Qe=ie.get(He),pt=ie.get(st);if(Qe===void 0||pt===void 0)for(var It=fe.length,gt=de.length;gt<It;gt+=1){var rt,ut=fe[gt],At=W(ut);ie.set(At,gt);var bt=(rt=Z.get(At))!==null&&rt!==void 0?rt:me;if(de[gt]=(de[gt-1]||0)+bt,At===He&&(Qe=gt),At===st&&(pt=gt),Qe!==void 0&&pt!==void 0)break}return{top:de[Qe-1]||0,bottom:de[pt]}};return Ae}var G=S(42573),Q=S(58698),ee=function(){function fe(){(0,G.Z)(this,fe),(0,w.Z)(this,"maps",void 0),(0,w.Z)(this,"id",0),(0,w.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Q.Z)(fe,[{key:"set",value:function(Z,me){this.diffRecords.set(Z,this.maps[Z]),this.maps[Z]=me,this.id+=1}},{key:"get",value:function(Z){return this.maps[Z]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),fe}(),ae=ee;function oe(fe){var W=parseFloat(fe);return isNaN(W)?0:W}function he(fe,W,Z){var me=c.useState(0),Ce=(0,_.Z)(me,2),re=Ce[0],ie=Ce[1],de=(0,c.useRef)(new Map),Ae=(0,c.useRef)(new ae),Be=(0,c.useRef)(0);function He(){Be.current+=1}function st(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;He();var It=function(){var ut=!1;de.current.forEach(function(At,bt){if(At&&At.offsetParent){var Tt=At.offsetHeight,Mt=getComputedStyle(At),Ot=Mt.marginTop,$e=Mt.marginBottom,$t=oe(Ot),gn=oe($e),Et=Tt+$t+gn;Ae.current.get(bt)!==Et&&(Ae.current.set(bt,Et),ut=!0)}}),ut&&ie(function(At){return At+1})};if(pt)It();else{Be.current+=1;var gt=Be.current;Promise.resolve().then(function(){gt===Be.current&&It()})}}function Qe(pt,It){var gt=fe(pt),rt=de.current.get(gt);It?(de.current.set(gt,It),st()):de.current.delete(gt),!rt!=!It&&(It?W==null||W(pt):Z==null||Z(pt))}return(0,c.useEffect)(function(){return He},[]),[Qe,st,Ae.current,re]}var le=14/15;function be(fe,W,Z){var me=(0,c.useRef)(!1),Ce=(0,c.useRef)(0),re=(0,c.useRef)(0),ie=(0,c.useRef)(null),de=(0,c.useRef)(null),Ae,Be=function(pt){if(me.current){var It=Math.ceil(pt.touches[0].pageX),gt=Math.ceil(pt.touches[0].pageY),rt=Ce.current-It,ut=re.current-gt,At=Math.abs(rt)>Math.abs(ut);At?Ce.current=It:re.current=gt;var bt=Z(At,At?rt:ut,!1,pt);bt&&pt.preventDefault(),clearInterval(de.current),bt&&(de.current=setInterval(function(){At?rt*=le:ut*=le;var Tt=Math.floor(At?rt:ut);(!Z(At,Tt,!0)||Math.abs(Tt)<=.1)&&clearInterval(de.current)},16))}},He=function(){me.current=!1,Ae()},st=function(pt){Ae(),pt.touches.length===1&&!me.current&&(me.current=!0,Ce.current=Math.ceil(pt.touches[0].pageX),re.current=Math.ceil(pt.touches[0].pageY),ie.current=pt.target,ie.current.addEventListener("touchmove",Be,{passive:!1}),ie.current.addEventListener("touchend",He,{passive:!0}))};Ae=function(){ie.current&&(ie.current.removeEventListener("touchmove",Be),ie.current.removeEventListener("touchend",He))},(0,v.Z)(function(){return fe&&W.current.addEventListener("touchstart",st,{passive:!0}),function(){var Qe;(Qe=W.current)===null||Qe===void 0||Qe.removeEventListener("touchstart",st),Ae(),clearInterval(de.current)}},[fe])}function pe(fe){return Math.floor(Math.pow(fe,.5))}function _e(fe,W){var Z="touches"in fe?fe.touches[0]:fe;return Z[W?"pageX":"pageY"]-window[W?"scrollX":"scrollY"]}function ne(fe,W,Z){c.useEffect(function(){var me=W.current;if(fe&&me){var Ce=!1,re,ie,de=function(){L.Z.cancel(re)},Ae=function Qe(){de(),re=(0,L.Z)(function(){Z(ie),Qe()})},Be=function(pt){if(!(pt.target.draggable||pt.button!==0)){var It=pt;It._virtualHandled||(It._virtualHandled=!0,Ce=!0)}},He=function(){Ce=!1,de()},st=function(pt){if(Ce){var It=_e(pt,!1),gt=me.getBoundingClientRect(),rt=gt.top,ut=gt.bottom;if(It<=rt){var At=rt-It;ie=-pe(At),Ae()}else if(It>=ut){var bt=It-ut;ie=pe(bt),Ae()}else de()}};return me.addEventListener("mousedown",Be),me.ownerDocument.addEventListener("mouseup",He),me.ownerDocument.addEventListener("mousemove",st),function(){me.removeEventListener("mousedown",Be),me.ownerDocument.removeEventListener("mouseup",He),me.ownerDocument.removeEventListener("mousemove",st),de()}}},[fe])}var ue=10;function ce(fe,W,Z,me,Ce,re,ie,de){var Ae=c.useRef(),Be=c.useState(null),He=(0,_.Z)(Be,2),st=He[0],Qe=He[1];return(0,v.Z)(function(){if(st&&st.times<ue){if(!fe.current){Qe(function(wr){return(0,s.Z)({},wr)});return}re();var pt=st.targetAlign,It=st.originAlign,gt=st.index,rt=st.offset,ut=fe.current.clientHeight,At=!1,bt=pt,Tt=null;if(ut){for(var Mt=pt||It,Ot=0,$e=0,$t=0,gn=Math.min(W.length-1,gt),Et=0;Et<=gn;Et+=1){var Mn=Ce(W[Et]);$e=Ot;var qn=Z.get(Mn);$t=$e+(qn===void 0?me:qn),Ot=$t}for(var Zn=Mt==="top"?rt:ut-rt,Bt=gn;Bt>=0;Bt-=1){var yr=Ce(W[Bt]),vr=Z.get(yr);if(vr===void 0){At=!0;break}if(Zn-=vr,Zn<=0)break}switch(Mt){case"top":Tt=$e-rt;break;case"bottom":Tt=$t-ut+rt;break;default:{var Un=fe.current.scrollTop,Wn=Un+ut;$e<Un?bt="top":$t>Wn&&(bt="bottom")}}Tt!==null&&ie(Tt),Tt!==st.lastTop&&(At=!0)}At&&Qe((0,s.Z)((0,s.Z)({},st),{},{times:st.times+1,targetAlign:bt,lastTop:Tt}))}},[st,fe.current]),function(pt){if(pt==null){de();return}if(L.Z.cancel(Ae.current),typeof pt=="number")ie(pt);else if(pt&&(0,Y.Z)(pt)==="object"){var It,gt=pt.align;"index"in pt?It=pt.index:It=W.findIndex(function(At){return Ce(At)===pt.key});var rt=pt.offset,ut=rt===void 0?0:rt;Qe({times:0,index:It,offset:ut,originAlign:gt})}}}var Re=c.forwardRef(function(fe,W){var Z=fe.prefixCls,me=fe.rtl,Ce=fe.scrollOffset,re=fe.scrollRange,ie=fe.onStartMove,de=fe.onStopMove,Ae=fe.onScroll,Be=fe.horizontal,He=fe.spinSize,st=fe.containerSize,Qe=fe.style,pt=fe.thumbStyle,It=fe.showScrollBar,gt=c.useState(!1),rt=(0,_.Z)(gt,2),ut=rt[0],At=rt[1],bt=c.useState(null),Tt=(0,_.Z)(bt,2),Mt=Tt[0],Ot=Tt[1],$e=c.useState(null),$t=(0,_.Z)($e,2),gn=$t[0],Et=$t[1],Mn=!me,qn=c.useRef(),Zn=c.useRef(),Bt=c.useState(It),yr=(0,_.Z)(Bt,2),vr=yr[0],Un=yr[1],Wn=c.useRef(),wr=function(){It===!0||It===!1||(clearTimeout(Wn.current),Un(!0),Wn.current=setTimeout(function(){Un(!1)},3e3))},ye=re-st||0,Fn=st-He||0,wn=c.useMemo(function(){if(Ce===0||ye===0)return 0;var Dn=Ce/ye;return Dn*Fn},[Ce,ye,Fn]),Jn=function(li){li.stopPropagation(),li.preventDefault()},Ir=c.useRef({top:wn,dragging:ut,pageY:Mt,startTop:gn});Ir.current={top:wn,dragging:ut,pageY:Mt,startTop:gn};var Wr=function(li){At(!0),Ot(_e(li,Be)),Et(Ir.current.top),ie(),li.stopPropagation(),li.preventDefault()};c.useEffect(function(){var Dn=function(mn){mn.preventDefault()},li=qn.current,Nr=Zn.current;return li.addEventListener("touchstart",Dn,{passive:!1}),Nr.addEventListener("touchstart",Wr,{passive:!1}),function(){li.removeEventListener("touchstart",Dn),Nr.removeEventListener("touchstart",Wr)}},[]);var cr=c.useRef();cr.current=ye;var ro=c.useRef();ro.current=Fn,c.useEffect(function(){if(ut){var Dn,li=function(mn){var zn=Ir.current,Mr=zn.dragging,Ci=zn.pageY,vi=zn.startTop;L.Z.cancel(Dn);var nt=qn.current.getBoundingClientRect(),vt=st/(Be?nt.width:nt.height);if(Mr){var hn=(_e(mn,Be)-Ci)*vt,yn=vi;!Mn&&Be?yn-=hn:yn+=hn;var dt=cr.current,on=ro.current,kn=on?yn/on:0,_t=Math.ceil(kn*dt);_t=Math.max(_t,0),_t=Math.min(_t,dt),Dn=(0,L.Z)(function(){Ae(_t,Be)})}},Nr=function(){At(!1),de()};return window.addEventListener("mousemove",li,{passive:!0}),window.addEventListener("touchmove",li,{passive:!0}),window.addEventListener("mouseup",Nr,{passive:!0}),window.addEventListener("touchend",Nr,{passive:!0}),function(){window.removeEventListener("mousemove",li),window.removeEventListener("touchmove",li),window.removeEventListener("mouseup",Nr),window.removeEventListener("touchend",Nr),L.Z.cancel(Dn)}}},[ut]),c.useEffect(function(){return wr(),function(){clearTimeout(Wn.current)}},[Ce]),c.useImperativeHandle(W,function(){return{delayHidden:wr}});var Kr="".concat(Z,"-scrollbar"),oi={position:"absolute",visibility:vr?null:"hidden"},Kn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Be?(Object.assign(oi,{height:8,left:0,right:0,bottom:0}),Object.assign(Kn,(0,w.Z)({height:"100%",width:He},Mn?"left":"right",wn))):(Object.assign(oi,(0,w.Z)({width:8,top:0,bottom:0},Mn?"right":"left",0)),Object.assign(Kn,{width:"100%",height:He,top:wn})),c.createElement("div",{ref:qn,className:y()(Kr,(0,w.Z)((0,w.Z)((0,w.Z)({},"".concat(Kr,"-horizontal"),Be),"".concat(Kr,"-vertical"),!Be),"".concat(Kr,"-visible"),vr)),style:(0,s.Z)((0,s.Z)({},oi),Qe),onMouseDown:Jn,onMouseMove:wr},c.createElement("div",{ref:Zn,className:y()("".concat(Kr,"-thumb"),(0,w.Z)({},"".concat(Kr,"-thumb-moving"),ut)),style:(0,s.Z)((0,s.Z)({},Kn),pt),onMouseDown:Wr}))}),ke=Re,Ne=20;function De(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Z=fe/W*fe;return isNaN(Z)&&(Z=0),Z=Math.max(Z,Ne),Math.floor(Z)}var Me=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],We=[],je={overflowY:"auto",overflowAnchor:"none"};function et(fe,W){var Z=fe.prefixCls,me=Z===void 0?"rc-virtual-list":Z,Ce=fe.className,re=fe.height,ie=fe.itemHeight,de=fe.fullHeight,Ae=de===void 0?!0:de,Be=fe.style,He=fe.data,st=fe.children,Qe=fe.itemKey,pt=fe.virtual,It=fe.direction,gt=fe.scrollWidth,rt=fe.component,ut=rt===void 0?"div":rt,At=fe.onScroll,bt=fe.onVirtualScroll,Tt=fe.onVisibleChange,Mt=fe.innerProps,Ot=fe.extraRender,$e=fe.styles,$t=fe.showScrollBar,gn=$t===void 0?"optional":$t,Et=(0,u.Z)(fe,Me),Mn=c.useCallback(function(Vt){return typeof Qe=="function"?Qe(Vt):Vt==null?void 0:Vt[Qe]},[Qe]),qn=he(Mn,null,null),Zn=(0,_.Z)(qn,4),Bt=Zn[0],yr=Zn[1],vr=Zn[2],Un=Zn[3],Wn=!!(pt!==!1&&re&&ie),wr=c.useMemo(function(){return Object.values(vr.maps).reduce(function(Vt,cn){return Vt+cn},0)},[vr.id,vr.maps]),ye=Wn&&He&&(Math.max(ie*He.length,wr)>re||!!gt),Fn=It==="rtl",wn=y()(me,(0,w.Z)({},"".concat(me,"-rtl"),Fn),Ce),Jn=He||We,Ir=(0,c.useRef)(),Wr=(0,c.useRef)(),cr=(0,c.useRef)(),ro=(0,c.useState)(0),Kr=(0,_.Z)(ro,2),oi=Kr[0],Kn=Kr[1],Dn=(0,c.useState)(0),li=(0,_.Z)(Dn,2),Nr=li[0],Yr=li[1],mn=(0,c.useState)(!1),zn=(0,_.Z)(mn,2),Mr=zn[0],Ci=zn[1],vi=function(){Ci(!0)},nt=function(){Ci(!1)},vt={getKey:Mn};function hn(Vt){Kn(function(cn){var dn;typeof Vt=="function"?dn=Vt(cn):dn=Vt;var rn=ii(dn);return Ir.current.scrollTop=rn,rn})}var yn=(0,c.useRef)({start:0,end:Jn.length}),dt=(0,c.useRef)(),on=k(Jn,Mn),kn=(0,_.Z)(on,1),_t=kn[0];dt.current=_t;var we=c.useMemo(function(){if(!Wn)return{scrollHeight:void 0,start:0,end:Jn.length-1,offset:void 0};if(!ye){var Vt;return{scrollHeight:((Vt=Wr.current)===null||Vt===void 0?void 0:Vt.offsetHeight)||0,start:0,end:Jn.length-1,offset:void 0}}for(var cn=0,dn,rn,pn,jn=Jn.length,dr=0;dr<jn;dr+=1){var lr=Jn[dr],un=Mn(lr),zr=vr.get(un),_r=cn+(zr===void 0?ie:zr);_r>=oi&&dn===void 0&&(dn=dr,rn=cn),_r>oi+re&&pn===void 0&&(pn=dr),cn=_r}return dn===void 0&&(dn=0,rn=0,pn=Math.ceil(re/ie)),pn===void 0&&(pn=Jn.length-1),pn=Math.min(pn+1,Jn.length-1),{scrollHeight:cn,start:dn,end:pn,offset:rn}},[ye,Wn,oi,Jn,Un,re]),An=we.scrollHeight,Nn=we.start,Ft=we.end,hr=we.offset;yn.current.start=Nn,yn.current.end=Ft,c.useLayoutEffect(function(){var Vt=vr.getRecord();if(Vt.size===1){var cn=Array.from(Vt.keys())[0],dn=Vt.get(cn),rn=Jn[Nn];if(rn&&dn===void 0){var pn=Mn(rn);if(pn===cn){var jn=vr.get(cn),dr=jn-ie;hn(function(lr){return lr+dr})}}}vr.resetRecord()},[An]);var Xn=c.useState({width:0,height:re}),or=(0,_.Z)(Xn,2),Tn=or[0],mt=or[1],fr=function(cn){mt({width:cn.offsetWidth,height:cn.offsetHeight})},Li=(0,c.useRef)(),Ut=(0,c.useRef)(),wi=c.useMemo(function(){return De(Tn.width,gt)},[Tn.width,gt]),Mi=c.useMemo(function(){return De(Tn.height,An)},[Tn.height,An]),Or=An-re,Di=(0,c.useRef)(Or);Di.current=Or;function ii(Vt){var cn=Vt;return Number.isNaN(Di.current)||(cn=Math.min(cn,Di.current)),cn=Math.max(cn,0),cn}var ui=oi<=0,$r=oi>=Or,ti=Nr<=0,si=Nr>=gt,Gt=F(ui,$r,ti,si),di=function(){return{x:Fn?-Nr:Nr,y:oi}},Wt=(0,c.useRef)(di()),Yn=(0,b.zX)(function(Vt){if(bt){var cn=(0,s.Z)((0,s.Z)({},di()),Vt);(Wt.current.x!==cn.x||Wt.current.y!==cn.y)&&(bt(cn),Wt.current=cn)}});function Dr(Vt,cn){var dn=Vt;cn?((0,h.flushSync)(function(){Yr(dn)}),Yn()):hn(dn)}function br(Vt){var cn=Vt.currentTarget.scrollTop;cn!==oi&&hn(cn),At==null||At(Vt),Yn()}var mi=function(cn){var dn=cn,rn=gt?gt-Tn.width:0;return dn=Math.max(dn,0),dn=Math.min(dn,rn),dn},Hr=(0,b.zX)(function(Vt,cn){cn?((0,h.flushSync)(function(){Yr(function(dn){var rn=dn+(Fn?-Vt:Vt);return mi(rn)})}),Yn()):hn(function(dn){var rn=dn+Vt;return rn})}),Tr=P(Wn,ui,$r,ti,si,!!gt,Hr),Gi=(0,_.Z)(Tr,2),kt=Gi[0],Xt=Gi[1];be(Wn,Ir,function(Vt,cn,dn,rn){var pn=rn;return Gt(Vt,cn,dn)?!1:!pn||!pn._virtualHandled?(pn&&(pn._virtualHandled=!0),kt({preventDefault:function(){},deltaX:Vt?cn:0,deltaY:Vt?0:cn}),!0):!1}),ne(ye,Ir,function(Vt){hn(function(cn){return cn+Vt})}),(0,v.Z)(function(){function Vt(dn){var rn=ui&&dn.detail<0,pn=$r&&dn.detail>0;Wn&&!rn&&!pn&&dn.preventDefault()}var cn=Ir.current;return cn.addEventListener("wheel",kt,{passive:!1}),cn.addEventListener("DOMMouseScroll",Xt,{passive:!0}),cn.addEventListener("MozMousePixelScroll",Vt,{passive:!1}),function(){cn.removeEventListener("wheel",kt),cn.removeEventListener("DOMMouseScroll",Xt),cn.removeEventListener("MozMousePixelScroll",Vt)}},[Wn,ui,$r]),(0,v.Z)(function(){if(gt){var Vt=mi(Nr);Yr(Vt),Yn({x:Vt})}},[Tn.width,gt]);var wt=function(){var cn,dn;(cn=Li.current)===null||cn===void 0||cn.delayHidden(),(dn=Ut.current)===null||dn===void 0||dn.delayHidden()},Pe=ce(Ir,Jn,vr,ie,Mn,function(){return yr(!0)},hn,wt);c.useImperativeHandle(W,function(){return{nativeElement:cr.current,getScrollInfo:di,scrollTo:function(cn){function dn(rn){return rn&&(0,Y.Z)(rn)==="object"&&("left"in rn||"top"in rn)}dn(cn)?(cn.left!==void 0&&Yr(mi(cn.left)),Pe(cn.top)):Pe(cn)}}}),(0,v.Z)(function(){if(Tt){var Vt=Jn.slice(Nn,Ft+1);Tt(Vt,Jn)}},[Nn,Ft,Jn]);var an=U(Jn,Mn,vr,ie),vn=Ot==null?void 0:Ot({start:Nn,end:Ft,virtual:ye,offsetX:Nr,offsetY:hr,rtl:Fn,getSize:an}),Bn=I(Jn,Nn,Ft,gt,Nr,Bt,st,vt),On=null;re&&(On=(0,s.Z)((0,w.Z)({},Ae?"height":"maxHeight",re),je),Wn&&(On.overflowY="hidden",gt&&(On.overflowX="hidden"),Mr&&(On.pointerEvents="none")));var En={};return Fn&&(En.dir="rtl"),c.createElement("div",(0,B.Z)({ref:cr,style:(0,s.Z)((0,s.Z)({},Be),{},{position:"relative"}),className:wn},En,Et),c.createElement(m.Z,{onResize:fr},c.createElement(ut,{className:"".concat(me,"-holder"),style:On,ref:Ir,onScroll:br,onMouseEnter:wt},c.createElement(x,{prefixCls:me,height:An,offsetX:Nr,offsetY:hr,scrollWidth:gt,onInnerResize:yr,ref:Wr,innerProps:Mt,rtl:Fn,extra:vn},Bn))),ye&&An>re&&c.createElement(ke,{ref:Li,prefixCls:me,scrollOffset:oi,scrollRange:An,rtl:Fn,onScroll:Dr,onStartMove:vi,onStopMove:nt,spinSize:Mi,containerSize:Tn.height,style:$e==null?void 0:$e.verticalScrollBar,thumbStyle:$e==null?void 0:$e.verticalScrollBarThumb,showScrollBar:gn}),ye&&gt>Tn.width&&c.createElement(ke,{ref:Ut,prefixCls:me,scrollOffset:Nr,scrollRange:gt,rtl:Fn,onScroll:Dr,onStartMove:vi,onStopMove:nt,spinSize:wi,containerSize:Tn.width,horizontal:!0,style:$e==null?void 0:$e.horizontalScrollBar,thumbStyle:$e==null?void 0:$e.horizontalScrollBarThumb,showScrollBar:gn}))}var it=c.forwardRef(et);it.displayName="List";var ze=it,xe=ze},2637:function(Oe,J,S){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"DraggableCore",{enumerable:!0,get:function(){return y.default}}),J.default=void 0;var B=c(S(59301)),Y=b(S(12708)),s=b(S(4676)),w=b(S(57780)),_=S(13957),u=S(60976),p=S(36641),y=b(S(80486)),m=b(S(94187));function b(R){return R&&R.__esModule?R:{default:R}}function v(R){if(typeof WeakMap!="function")return null;var N=new WeakMap,k=new WeakMap;return(v=function(L){return L?k:N})(R)}function c(R,N){if(!N&&R&&R.__esModule)return R;if(R===null||typeof R!="object"&&typeof R!="function")return{default:R};var k=v(N);if(k&&k.has(R))return k.get(R);var L={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in R)if(M!=="default"&&Object.prototype.hasOwnProperty.call(R,M)){var F=H?Object.getOwnPropertyDescriptor(R,M):null;F&&(F.get||F.set)?Object.defineProperty(L,M,F):L[M]=R[M]}return L.default=R,k&&k.set(R,L),L}function h(){return h=Object.assign?Object.assign.bind():function(R){for(var N=1;N<arguments.length;N++){var k=arguments[N];for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(R[L]=k[L])}return R},h.apply(this,arguments)}function g(R,N,k){return N=x(N),N in R?Object.defineProperty(R,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):R[N]=k,R}function x(R){var N=T(R,"string");return typeof N=="symbol"?N:String(N)}function T(R,N){if(typeof R!="object"||R===null)return R;var k=R[Symbol.toPrimitive];if(k!==void 0){var L=k.call(R,N||"default");if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(R)}class I extends B.Component{static getDerivedStateFromProps(N,k){let{position:L}=N,{prevPropsPosition:H}=k;return L&&(!H||L.x!==H.x||L.y!==H.y)?((0,m.default)("Draggable: getDerivedStateFromProps %j",{position:L,prevPropsPosition:H}),{x:L.x,y:L.y,prevPropsPosition:Ii({},L)}):null}constructor(N){super(N),g(this,"onDragStart",(k,L)=>{if((0,m.default)("Draggable: onDragStart: %j",L),this.props.onStart(k,(0,u.createDraggableData)(this,L))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),g(this,"onDrag",(k,L)=>{if(!this.state.dragging)return!1;(0,m.default)("Draggable: onDrag: %j",L);const H=(0,u.createDraggableData)(this,L),M={x:H.x,y:H.y,slackX:0,slackY:0};if(this.props.bounds){const{x:P,y:U}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[G,Q]=(0,u.getBoundPosition)(this,M.x,M.y);M.x=G,M.y=Q,M.slackX=this.state.slackX+(P-M.x),M.slackY=this.state.slackY+(U-M.y),H.x=M.x,H.y=M.y,H.deltaX=M.x-this.state.x,H.deltaY=M.y-this.state.y}if(this.props.onDrag(k,H)===!1)return!1;this.setState(M)}),g(this,"onDragStop",(k,L)=>{if(!this.state.dragging||this.props.onStop(k,(0,u.createDraggableData)(this,L))===!1)return!1;(0,m.default)("Draggable: onDragStop: %j",L);const M={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:P,y:U}=this.props.position;M.x=P,M.y=U}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:N.position?N.position.x:N.defaultPosition.x,y:N.position?N.position.y:N.defaultPosition.y,prevPropsPosition:Ii({},N.position),slackX:0,slackY:0,isElementSVG:!1},N.position&&!(N.onDrag||N.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 N,k;return(N=(k=this.props)===null||k===void 0||(k=k.nodeRef)===null||k===void 0?void 0:k.current)!==null&&N!==void 0?N:s.default.findDOMNode(this)}render(){const ne=this.props,{axis:N,bounds:k,children:L,defaultPosition:H,defaultClassName:M,defaultClassNameDragging:F,defaultClassNameDragged:P,position:U,positionOffset:G,scale:Q}=ne,ee=s0(ne,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let ae={},oe=null;const le=!!!U||this.state.dragging,be=U||H,pe={x:(0,u.canDragX)(this)&&le?this.state.x:be.x,y:(0,u.canDragY)(this)&&le?this.state.y:be.y};this.state.isElementSVG?oe=(0,_.createSVGTransform)(pe,G):ae=(0,_.createCSSTransform)(pe,G);const _e=(0,w.default)(L.props.className||"",M,{[F]:this.state.dragging,[P]:this.state.dragged});return B.createElement(y.default,h({},ee,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),B.cloneElement(B.Children.only(L),{className:_e,style:Ii(Ii({},L.props.style),ae),transform:oe}))}}J.default=I,g(I,"displayName","Draggable"),g(I,"propTypes",Th(Ii({},y.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:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe})),g(I,"defaultProps",Th(Ii({},y.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(Oe,J,S){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.default=void 0;var B=b(S(59301)),Y=y(S(12708)),s=y(S(4676)),w=S(13957),_=S(60976),u=S(36641),p=y(S(94187));function y(I){return I&&I.__esModule?I:{default:I}}function m(I){if(typeof WeakMap!="function")return null;var R=new WeakMap,N=new WeakMap;return(m=function(k){return k?N:R})(I)}function b(I,R){if(!R&&I&&I.__esModule)return I;if(I===null||typeof I!="object"&&typeof I!="function")return{default:I};var N=m(R);if(N&&N.has(I))return N.get(I);var k={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in I)if(H!=="default"&&Object.prototype.hasOwnProperty.call(I,H)){var M=L?Object.getOwnPropertyDescriptor(I,H):null;M&&(M.get||M.set)?Object.defineProperty(k,H,M):k[H]=I[H]}return k.default=I,N&&N.set(I,k),k}function v(I,R,N){return R=c(R),R in I?Object.defineProperty(I,R,{value:N,enumerable:!0,configurable:!0,writable:!0}):I[R]=N,I}function c(I){var R=h(I,"string");return typeof R=="symbol"?R:String(R)}function h(I,R){if(typeof I!="object"||I===null)return I;var N=I[Symbol.toPrimitive];if(N!==void 0){var k=N.call(I,R||"default");if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(I)}const g={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let x=g.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 N=this.findDOMNode();if(!N||!N.ownerDocument||!N.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:k}=N;if(this.props.disabled||!(R.target instanceof k.defaultView.Node)||this.props.handle&&!(0,w.matchesSelectorAndParentsTo)(R.target,this.props.handle,N)||this.props.cancel&&(0,w.matchesSelectorAndParentsTo)(R.target,this.props.cancel,N))return;R.type==="touchstart"&&R.preventDefault();const L=(0,w.getTouchIdentifier)(R);this.touchIdentifier=L;const H=(0,_.getControlPosition)(R,L,this);if(H==null)return;const{x:M,y:F}=H,P=(0,_.createCoreData)(this,M,F);(0,p.default)("DraggableCore: handleDragStart: %j",P),(0,p.default)("calling",this.props.onStart),!(this.props.onStart(R,P)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,w.addUserSelectStyles)(k),this.dragging=!0,this.lastX=M,this.lastY=F,(0,w.addEvent)(k,x.move,this.handleDrag),(0,w.addEvent)(k,x.stop,this.handleDragStop))}),v(this,"handleDrag",R=>{const N=(0,_.getControlPosition)(R,this.touchIdentifier,this);if(N==null)return;let{x:k,y:L}=N;if(Array.isArray(this.props.grid)){let F=k-this.lastX,P=L-this.lastY;if([F,P]=(0,_.snapToGrid)(this.props.grid,F,P),!F&&!P)return;k=this.lastX+F,L=this.lastY+P}const H=(0,_.createCoreData)(this,k,L);if((0,p.default)("DraggableCore: handleDrag: %j",H),this.props.onDrag(R,H)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(F){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=k,this.lastY=L}),v(this,"handleDragStop",R=>{if(!this.dragging)return;const N=(0,_.getControlPosition)(R,this.touchIdentifier,this);if(N==null)return;let{x:k,y:L}=N;if(Array.isArray(this.props.grid)){let P=k-this.lastX||0,U=L-this.lastY||0;[P,U]=(0,_.snapToGrid)(this.props.grid,P,U),k=this.lastX+P,L=this.lastY+U}const H=(0,_.createCoreData)(this,k,L);if(this.props.onStop(R,H)===!1||this.mounted===!1)return!1;const F=this.findDOMNode();F&&this.props.enableUserSelectHack&&(0,w.removeUserSelectStyles)(F.ownerDocument),(0,p.default)("DraggableCore: handleDragStop: %j",H),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,F&&((0,p.default)("DraggableCore: Removing handlers"),(0,w.removeEvent)(F.ownerDocument,x.move,this.handleDrag),(0,w.removeEvent)(F.ownerDocument,x.stop,this.handleDragStop))}),v(this,"onMouseDown",R=>(x=g.mouse,this.handleDragStart(R))),v(this,"onMouseUp",R=>(x=g.mouse,this.handleDragStop(R))),v(this,"onTouchStart",R=>(x=g.touch,this.handleDragStart(R))),v(this,"onTouchEnd",R=>(x=g.touch,this.handleDragStop(R)))}componentDidMount(){this.mounted=!0;const R=this.findDOMNode();R&&(0,w.addEvent)(R,g.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const R=this.findDOMNode();if(R){const{ownerDocument:N}=R;(0,w.removeEvent)(N,g.mouse.move,this.handleDrag),(0,w.removeEvent)(N,g.touch.move,this.handleDrag),(0,w.removeEvent)(N,g.mouse.stop,this.handleDragStop),(0,w.removeEvent)(N,g.touch.stop,this.handleDragStop),(0,w.removeEvent)(R,g.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,w.removeUserSelectStyles)(N)}}findDOMNode(){var R,N;return(R=this.props)!==null&&R!==void 0&&R.nodeRef?(N=this.props)===null||N===void 0||(N=N.nodeRef)===null||N===void 0?void 0:N.current:s.default.findDOMNode(this)}render(){return B.cloneElement(B.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}J.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(I,R){if(I[R]&&I[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})},12911:function(Oe,J,S){"use strict";const{default:B,DraggableCore:Y}=S(2637);Oe.exports=B,Oe.exports.default=B,Oe.exports.DraggableCore=Y},13957:function(Oe,J,S){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.addClassName=H,J.addEvent=y,J.addUserSelectStyles=k,J.createCSSTransform=x,J.createSVGTransform=T,J.getTouch=R,J.getTouchIdentifier=N,J.getTranslation=I,J.innerHeight=c,J.innerWidth=h,J.matchesSelector=u,J.matchesSelectorAndParentsTo=p,J.offsetXYFromParent=g,J.outerHeight=b,J.outerWidth=v,J.removeClassName=M,J.removeEvent=m,J.removeUserSelectStyles=L;var B=S(36641),Y=w(S(32092));function s(F){if(typeof WeakMap!="function")return null;var P=new WeakMap,U=new WeakMap;return(s=function(G){return G?U:P})(F)}function w(F,P){if(!P&&F&&F.__esModule)return F;if(F===null||typeof F!="object"&&typeof F!="function")return{default:F};var U=s(P);if(U&&U.has(F))return U.get(F);var G={},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ee in F)if(ee!=="default"&&Object.prototype.hasOwnProperty.call(F,ee)){var ae=Q?Object.getOwnPropertyDescriptor(F,ee):null;ae&&(ae.get||ae.set)?Object.defineProperty(G,ee,ae):G[ee]=F[ee]}return G.default=F,U&&U.set(F,G),G}let _="";function u(F,P){return _||(_=(0,B.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(U){return(0,B.isFunction)(F[U])})),(0,B.isFunction)(F[_])?F[_](P):!1}function p(F,P,U){let G=F;do{if(u(G,P))return!0;if(G===U)return!1;G=G.parentNode}while(G);return!1}function y(F,P,U,G){if(!F)return;const Q=Ii({capture:!0},G);F.addEventListener?F.addEventListener(P,U,Q):F.attachEvent?F.attachEvent("on"+P,U):F["on"+P]=U}function m(F,P,U,G){if(!F)return;const Q=Ii({capture:!0},G);F.removeEventListener?F.removeEventListener(P,U,Q):F.detachEvent?F.detachEvent("on"+P,U):F["on"+P]=null}function b(F){let P=F.clientHeight;const U=F.ownerDocument.defaultView.getComputedStyle(F);return P+=(0,B.int)(U.borderTopWidth),P+=(0,B.int)(U.borderBottomWidth),P}function v(F){let P=F.clientWidth;const U=F.ownerDocument.defaultView.getComputedStyle(F);return P+=(0,B.int)(U.borderLeftWidth),P+=(0,B.int)(U.borderRightWidth),P}function c(F){let P=F.clientHeight;const U=F.ownerDocument.defaultView.getComputedStyle(F);return P-=(0,B.int)(U.paddingTop),P-=(0,B.int)(U.paddingBottom),P}function h(F){let P=F.clientWidth;const U=F.ownerDocument.defaultView.getComputedStyle(F);return P-=(0,B.int)(U.paddingLeft),P-=(0,B.int)(U.paddingRight),P}function g(F,P,U){const Q=P===P.ownerDocument.body?{left:0,top:0}:P.getBoundingClientRect(),ee=(F.clientX+P.scrollLeft-Q.left)/U,ae=(F.clientY+P.scrollTop-Q.top)/U;return{x:ee,y:ae}}function x(F,P){const U=I(F,P,"px");return{[(0,Y.browserPrefixToKey)("transform",Y.default)]:U}}function T(F,P){return I(F,P,"")}function I(F,P,U){let{x:G,y:Q}=F,ee="translate(".concat(G).concat(U,",").concat(Q).concat(U,")");if(P){const ae="".concat(typeof P.x=="string"?P.x:P.x+U),oe="".concat(typeof P.y=="string"?P.y:P.y+U);ee="translate(".concat(ae,", ").concat(oe,")")+ee}return ee}function R(F,P){return F.targetTouches&&(0,B.findInArray)(F.targetTouches,U=>P===U.identifier)||F.changedTouches&&(0,B.findInArray)(F.changedTouches,U=>P===U.identifier)}function N(F){if(F.targetTouches&&F.targetTouches[0])return F.targetTouches[0].identifier;if(F.changedTouches&&F.changedTouches[0])return F.changedTouches[0].identifier}function k(F){if(!F)return;let P=F.getElementById("react-draggable-style-el");P||(P=F.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;}
`,F.getElementsByTagName("head")[0].appendChild(P)),F.body&&H(F.body,"react-draggable-transparent-selection")}function L(F){if(F)try{if(F.body&&M(F.body,"react-draggable-transparent-selection"),F.selection)F.selection.empty();else{const P=(F.defaultView||window).getSelection();P&&P.type!=="Caret"&&P.removeAllRanges()}}catch(P){}}function H(F,P){F.classList?F.classList.add(P):F.className.match(new RegExp("(?:^|\\s)".concat(P,"(?!\\S)")))||(F.className+=" ".concat(P))}function M(F,P){F.classList?F.classList.remove(P):F.className=F.className.replace(new RegExp("(?:^|\\s)".concat(P,"(?!\\S)"),"g"),"")}},32092:function(Oe,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.browserPrefixToKey=Y,J.browserPrefixToStyle=s,J.default=void 0,J.getPrefix=B;const S=["Moz","Webkit","O","ms"];function B(){var u;let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const y=(u=window.document)===null||u===void 0||(u=u.documentElement)===null||u===void 0?void 0:u.style;if(!y||p in y)return"";for(let m=0;m<S.length;m++)if(Y(p,S[m])in y)return S[m];return""}function Y(u,p){return p?"".concat(p).concat(w(u)):u}function s(u,p){return p?"-".concat(p.toLowerCase(),"-").concat(u):u}function w(u){let p="",y=!0;for(let m=0;m<u.length;m++)y?(p+=u[m].toUpperCase(),y=!1):u[m]==="-"?y=!0:p+=u[m];return p}var _=J.default=B()},94187:function(Oe,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.default=S;function S(){}},60976:function(Oe,J,S){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.canDragX=_,J.canDragY=u,J.createCoreData=y,J.createDraggableData=m,J.getBoundPosition=s,J.getControlPosition=p,J.snapToGrid=w;var B=S(36641),Y=S(13957);function s(c,h,g){if(!c.props.bounds)return[h,g];let{bounds:x}=c.props;x=typeof x=="string"?x:b(x);const T=v(c);if(typeof x=="string"){const{ownerDocument:I}=T,R=I.defaultView;let N;if(x==="parent"?N=T.parentNode:N=I.querySelector(x),!(N instanceof R.HTMLElement))throw new Error('Bounds selector "'+x+'" could not find an element.');const k=N,L=R.getComputedStyle(T),H=R.getComputedStyle(k);x={left:-T.offsetLeft+(0,B.int)(H.paddingLeft)+(0,B.int)(L.marginLeft),top:-T.offsetTop+(0,B.int)(H.paddingTop)+(0,B.int)(L.marginTop),right:(0,Y.innerWidth)(k)-(0,Y.outerWidth)(T)-T.offsetLeft+(0,B.int)(H.paddingRight)-(0,B.int)(L.marginRight),bottom:(0,Y.innerHeight)(k)-(0,Y.outerHeight)(T)-T.offsetTop+(0,B.int)(H.paddingBottom)-(0,B.int)(L.marginBottom)}}return(0,B.isNum)(x.right)&&(h=Math.min(h,x.right)),(0,B.isNum)(x.bottom)&&(g=Math.min(g,x.bottom)),(0,B.isNum)(x.left)&&(h=Math.max(h,x.left)),(0,B.isNum)(x.top)&&(g=Math.max(g,x.top)),[h,g]}function w(c,h,g){const x=Math.round(h/c[0])*c[0],T=Math.round(g/c[1])*c[1];return[x,T]}function _(c){return c.props.axis==="both"||c.props.axis==="x"}function u(c){return c.props.axis==="both"||c.props.axis==="y"}function p(c,h,g){const x=typeof h=="number"?(0,Y.getTouch)(c,h):null;if(typeof h=="number"&&!x)return null;const T=v(g),I=g.props.offsetParent||T.offsetParent||T.ownerDocument.body;return(0,Y.offsetXYFromParent)(x||c,I,g.props.scale)}function y(c,h,g){const x=!(0,B.isNum)(c.lastX),T=v(c);return x?{node:T,deltaX:0,deltaY:0,lastX:h,lastY:g,x:h,y:g}:{node:T,deltaX:h-c.lastX,deltaY:g-c.lastY,lastX:c.lastX,lastY:c.lastY,x:h,y:g}}function m(c,h){const g=c.props.scale;return{node:h.node,x:c.state.x+h.deltaX/g,y:c.state.y+h.deltaY/g,deltaX:h.deltaX/g,deltaY:h.deltaY/g,lastX:c.state.x,lastY:c.state.y}}function b(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}},36641:function(Oe,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.dontSetMe=w,J.findInArray=S,J.int=s,J.isFunction=B,J.isNum=Y;function S(_,u){for(let p=0,y=_.length;p<y;p++)if(u.apply(u,[_[p],p,_]))return _[p]}function B(_){return typeof _=="function"||Object.prototype.toString.call(_)==="[object Function]"}function Y(_){return typeof _=="number"&&!isNaN(_)}function s(_){return parseInt(_,10)}function w(_,u,p){if(_[u])return new Error("Invalid prop ".concat(u," passed to ").concat(p," - do not set this, set it on the child."))}},34547:function(Oe,J,S){"use strict";S.d(J,{s:function(){return be}});var B=S(59301),Y=S(12911),s=S.n(Y),w=S(37712),_=S(4676),u=function(){return u=Object.assign||function(pe){for(var _e,ne=1,ue=arguments.length;ne<ue;ne++){_e=arguments[ne];for(var ce in _e)Object.prototype.hasOwnProperty.call(_e,ce)&&(pe[ce]=_e[ce])}return pe},u.apply(this,arguments)},p={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},y={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},m={width:"20px",height:"20px",position:"absolute",zIndex:1},b={top:u(u({},p),{top:"-5px"}),right:u(u({},y),{left:void 0,right:"-5px"}),bottom:u(u({},p),{top:void 0,bottom:"-5px"}),left:u(u({},y),{left:"-5px"}),topRight:u(u({},m),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:u(u({},m),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:u(u({},m),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:u(u({},m),{left:"-10px",top:"-10px",cursor:"nw-resize"})},v=(0,B.memo)(function(pe){var _e=pe.onResizeStart,ne=pe.direction,ue=pe.children,ce=pe.replaceStyles,Re=pe.className,ke=(0,B.useCallback)(function(Me){_e(Me,ne)},[_e,ne]),Ne=(0,B.useCallback)(function(Me){_e(Me,ne)},[_e,ne]),De=(0,B.useMemo)(function(){return u(u({position:"absolute",userSelect:"none"},b[ne]),ce!=null?ce:{})},[ce,ne]);return(0,w.jsx)("div",{className:Re||void 0,style:De,onMouseDown:ke,onTouchStart:Ne,children:ue})}),c=function(){var pe=function(_e,ne){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ce){ue.__proto__=ce}||function(ue,ce){for(var Re in ce)Object.prototype.hasOwnProperty.call(ce,Re)&&(ue[Re]=ce[Re])},pe(_e,ne)};return function(_e,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");pe(_e,ne);function ue(){this.constructor=_e}_e.prototype=ne===null?Object.create(ne):(ue.prototype=ne.prototype,new ue)}}(),h=function(){return h=Object.assign||function(pe){for(var _e,ne=1,ue=arguments.length;ne<ue;ne++){_e=arguments[ne];for(var ce in _e)Object.prototype.hasOwnProperty.call(_e,ce)&&(pe[ce]=_e[ce])}return pe},h.apply(this,arguments)},g={width:"auto",height:"auto"},x=function(pe,_e,ne){return Math.max(Math.min(pe,ne),_e)},T=function(pe,_e,ne){var ue=Math.round(pe/_e);return ue*_e+ne*(ue-1)},I=function(pe,_e){return new RegExp(pe,"i").test(_e)},R=function(pe){return!!(pe.touches&&pe.touches.length)},N=function(pe){return!!((pe.clientX||pe.clientX===0)&&(pe.clientY||pe.clientY===0))},k=function(pe,_e,ne){ne===void 0&&(ne=0);var ue=_e.reduce(function(Re,ke,Ne){return Math.abs(ke-pe)<Math.abs(_e[Re]-pe)?Ne:Re},0),ce=Math.abs(_e[ue]-pe);return ne===0||ce<ne?_e[ue]:pe},L=function(pe){return pe=pe.toString(),pe==="auto"||pe.endsWith("px")||pe.endsWith("%")||pe.endsWith("vh")||pe.endsWith("vw")||pe.endsWith("vmax")||pe.endsWith("vmin")?pe:"".concat(pe,"px")},H=function(pe,_e,ne,ue){if(pe&&typeof pe=="string"){if(pe.endsWith("px"))return Number(pe.replace("px",""));if(pe.endsWith("%")){var ce=Number(pe.replace("%",""))/100;return _e*ce}if(pe.endsWith("vw")){var ce=Number(pe.replace("vw",""))/100;return ne*ce}if(pe.endsWith("vh")){var ce=Number(pe.replace("vh",""))/100;return ue*ce}}return pe},M=function(pe,_e,ne,ue,ce,Re,ke){return ue=H(ue,pe.width,_e,ne),ce=H(ce,pe.height,_e,ne),Re=H(Re,pe.width,_e,ne),ke=H(ke,pe.height,_e,ne),{maxWidth:typeof ue=="undefined"?void 0:Number(ue),maxHeight:typeof ce=="undefined"?void 0:Number(ce),minWidth:typeof Re=="undefined"?void 0:Number(Re),minHeight:typeof ke=="undefined"?void 0:Number(ke)}},F=function(pe){return Array.isArray(pe)?pe:[pe,pe]},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"],U="__resizable_base__",G=function(pe){c(_e,pe);function _e(ne){var ue,ce,Re,ke,Ne=pe.call(this,ne)||this;return Ne.ratio=1,Ne.resizable=null,Ne.parentLeft=0,Ne.parentTop=0,Ne.resizableLeft=0,Ne.resizableRight=0,Ne.resizableTop=0,Ne.resizableBottom=0,Ne.targetLeft=0,Ne.targetTop=0,Ne.delta={width:0,height:0},Ne.appendBase=function(){if(!Ne.resizable||!Ne.window)return null;var De=Ne.parentNode;if(!De)return null;var Me=Ne.window.document.createElement("div");return Me.style.width="100%",Me.style.height="100%",Me.style.position="absolute",Me.style.transform="scale(0, 0)",Me.style.left="0",Me.style.flex="0 0 100%",Me.classList?Me.classList.add(U):Me.className+=U,De.appendChild(Me),Me},Ne.removeBase=function(De){var Me=Ne.parentNode;Me&&Me.removeChild(De)},Ne.state={isResizing:!1,width:(ce=(ue=Ne.propsSize)===null||ue===void 0?void 0:ue.width)!==null&&ce!==void 0?ce:"auto",height:(ke=(Re=Ne.propsSize)===null||Re===void 0?void 0:Re.height)!==null&&ke!==void 0?ke:"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},Ne.onResizeStart=Ne.onResizeStart.bind(Ne),Ne.onMouseMove=Ne.onMouseMove.bind(Ne),Ne.onMouseUp=Ne.onMouseUp.bind(Ne),Ne}return Object.defineProperty(_e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||g},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"size",{get:function(){var ne=0,ue=0;if(this.resizable&&this.window){var ce=this.resizable.offsetWidth,Re=this.resizable.offsetHeight,ke=this.resizable.style.position;ke!=="relative"&&(this.resizable.style.position="relative"),ne=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:ce,ue=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:Re,this.resizable.style.position=ke}return{width:ne,height:ue}},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"sizeStyle",{get:function(){var ne=this,ue=this.props.size,ce=function(Ne){var De;if(typeof ne.state[Ne]=="undefined"||ne.state[Ne]==="auto")return"auto";if(ne.propsSize&&ne.propsSize[Ne]&&(!((De=ne.propsSize[Ne])===null||De===void 0)&&De.toString().endsWith("%"))){if(ne.state[Ne].toString().endsWith("%"))return ne.state[Ne].toString();var Me=ne.getParentSize(),We=Number(ne.state[Ne].toString().replace("px","")),je=We/Me[Ne]*100;return"".concat(je,"%")}return L(ne.state[Ne])},Re=ue&&typeof ue.width!="undefined"&&!this.state.isResizing?L(ue.width):ce("width"),ke=ue&&typeof ue.height!="undefined"&&!this.state.isResizing?L(ue.height):ce("height");return{width:Re,height:ke}},enumerable:!1,configurable:!0}),_e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var ne=this.appendBase();if(!ne)return{width:0,height:0};var ue=!1,ce=this.parentNode.style.flexWrap;ce!=="wrap"&&(ue=!0,this.parentNode.style.flexWrap="wrap"),ne.style.position="relative",ne.style.minWidth="100%",ne.style.minHeight="100%";var Re={width:ne.offsetWidth,height:ne.offsetHeight};return ue&&(this.parentNode.style.flexWrap=ce),this.removeBase(ne),Re},_e.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))},_e.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))},_e.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var ne=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:ne.flexBasis!=="auto"?ne.flexBasis:void 0})}},_e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},_e.prototype.createSizeForCssProperty=function(ne,ue){var ce=this.propsSize&&this.propsSize[ue];return this.state[ue]==="auto"&&this.state.original[ue]===ne&&(typeof ce=="undefined"||ce==="auto")?"auto":ne},_e.prototype.calculateNewMaxFromBoundary=function(ne,ue){var ce=this.props.boundsByDirection,Re=this.state.direction,ke=ce&&I("left",Re),Ne=ce&&I("top",Re),De,Me;if(this.props.bounds==="parent"){var We=this.parentNode;We&&(De=ke?this.resizableRight-this.parentLeft:We.offsetWidth+(this.parentLeft-this.resizableLeft),Me=Ne?this.resizableBottom-this.parentTop:We.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(De=ke?this.resizableRight:this.window.innerWidth-this.resizableLeft,Me=Ne?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(De=ke?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),Me=Ne?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return De&&Number.isFinite(De)&&(ne=ne&&ne<De?ne:De),Me&&Number.isFinite(Me)&&(ue=ue&&ue<Me?ue:Me),{maxWidth:ne,maxHeight:ue}},_e.prototype.calculateNewSizeFromDirection=function(ne,ue){var ce=this.props.scale||1,Re=F(this.props.resizeRatio||1),ke=Re[0],Ne=Re[1],De=this.state,Me=De.direction,We=De.original,je=this.props,et=je.lockAspectRatio,it=je.lockAspectRatioExtraHeight,ze=je.lockAspectRatioExtraWidth,xe=We.width,fe=We.height,W=it||0,Z=ze||0;return I("right",Me)&&(xe=We.width+(ne-We.x)*ke/ce,et&&(fe=(xe-Z)/this.ratio+W)),I("left",Me)&&(xe=We.width-(ne-We.x)*ke/ce,et&&(fe=(xe-Z)/this.ratio+W)),I("bottom",Me)&&(fe=We.height+(ue-We.y)*Ne/ce,et&&(xe=(fe-W)*this.ratio+Z)),I("top",Me)&&(fe=We.height-(ue-We.y)*Ne/ce,et&&(xe=(fe-W)*this.ratio+Z)),{newWidth:xe,newHeight:fe}},_e.prototype.calculateNewSizeFromAspectRatio=function(ne,ue,ce,Re){var ke=this.props,Ne=ke.lockAspectRatio,De=ke.lockAspectRatioExtraHeight,Me=ke.lockAspectRatioExtraWidth,We=typeof Re.width=="undefined"?10:Re.width,je=typeof ce.width=="undefined"||ce.width<0?ne:ce.width,et=typeof Re.height=="undefined"?10:Re.height,it=typeof ce.height=="undefined"||ce.height<0?ue:ce.height,ze=De||0,xe=Me||0;if(Ne){var fe=(et-ze)*this.ratio+xe,W=(it-ze)*this.ratio+xe,Z=(We-xe)/this.ratio+ze,me=(je-xe)/this.ratio+ze,Ce=Math.max(We,fe),re=Math.min(je,W),ie=Math.max(et,Z),de=Math.min(it,me);ne=x(ne,Ce,re),ue=x(ue,ie,de)}else ne=x(ne,We,je),ue=x(ue,et,it);return{newWidth:ne,newHeight:ue}},_e.prototype.setBoundingClientRect=function(){var ne=1/(this.props.scale||1);if(this.props.bounds==="parent"){var ue=this.parentNode;if(ue){var ce=ue.getBoundingClientRect();this.parentLeft=ce.left*ne,this.parentTop=ce.top*ne}}if(this.props.bounds&&typeof this.props.bounds!="string"){var Re=this.props.bounds.getBoundingClientRect();this.targetLeft=Re.left*ne,this.targetTop=Re.top*ne}if(this.resizable){var ke=this.resizable.getBoundingClientRect(),Ne=ke.left,De=ke.top,Me=ke.right,We=ke.bottom;this.resizableLeft=Ne*ne,this.resizableRight=Me*ne,this.resizableTop=De*ne,this.resizableBottom=We*ne}},_e.prototype.onResizeStart=function(ne,ue){if(!(!this.resizable||!this.window)){var ce=0,Re=0;if(ne.nativeEvent&&N(ne.nativeEvent)?(ce=ne.nativeEvent.clientX,Re=ne.nativeEvent.clientY):ne.nativeEvent&&R(ne.nativeEvent)&&(ce=ne.nativeEvent.touches[0].clientX,Re=ne.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var ke=this.props.onResizeStart(ne,ue,this.resizable);if(ke===!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 Ne,De=this.window.getComputedStyle(this.resizable);if(De.flexBasis!=="auto"){var Me=this.parentNode;if(Me){var We=this.window.getComputedStyle(Me).flexDirection;this.flexDir=We.startsWith("row")?"row":"column",Ne=De.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var je={original:{x:ce,y:Re,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:h(h({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(ne.target).cursor||"auto"}),direction:ue,flexBasis:Ne};this.setState(je)}},_e.prototype.onMouseMove=function(ne){var ue=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&R(ne))try{ne.preventDefault(),ne.stopPropagation()}catch(Mt){}var ce=this.props,Re=ce.maxWidth,ke=ce.maxHeight,Ne=ce.minWidth,De=ce.minHeight,Me=R(ne)?ne.touches[0].clientX:ne.clientX,We=R(ne)?ne.touches[0].clientY:ne.clientY,je=this.state,et=je.direction,it=je.original,ze=je.width,xe=je.height,fe=this.getParentSize(),W=M(fe,this.window.innerWidth,this.window.innerHeight,Re,ke,Ne,De);Re=W.maxWidth,ke=W.maxHeight,Ne=W.minWidth,De=W.minHeight;var Z=this.calculateNewSizeFromDirection(Me,We),me=Z.newHeight,Ce=Z.newWidth,re=this.calculateNewMaxFromBoundary(Re,ke);this.props.snap&&this.props.snap.x&&(Ce=k(Ce,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(me=k(me,this.props.snap.y,this.props.snapGap));var ie=this.calculateNewSizeFromAspectRatio(Ce,me,{width:re.maxWidth,height:re.maxHeight},{width:Ne,height:De});if(Ce=ie.newWidth,me=ie.newHeight,this.props.grid){var de=T(Ce,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),Ae=T(me,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),Be=this.props.snapGap||0,He=Be===0||Math.abs(de-Ce)<=Be?de:Ce,st=Be===0||Math.abs(Ae-me)<=Be?Ae:me;Ce=He,me=st}var Qe={width:Ce-it.width,height:me-it.height};if(this.delta=Qe,ze&&typeof ze=="string"){if(ze.endsWith("%")){var pt=Ce/fe.width*100;Ce="".concat(pt,"%")}else if(ze.endsWith("vw")){var It=Ce/this.window.innerWidth*100;Ce="".concat(It,"vw")}else if(ze.endsWith("vh")){var gt=Ce/this.window.innerHeight*100;Ce="".concat(gt,"vh")}}if(xe&&typeof xe=="string"){if(xe.endsWith("%")){var pt=me/fe.height*100;me="".concat(pt,"%")}else if(xe.endsWith("vw")){var It=me/this.window.innerWidth*100;me="".concat(It,"vw")}else if(xe.endsWith("vh")){var gt=me/this.window.innerHeight*100;me="".concat(gt,"vh")}}var rt={width:this.createSizeForCssProperty(Ce,"width"),height:this.createSizeForCssProperty(me,"height")};this.flexDir==="row"?rt.flexBasis=rt.width:this.flexDir==="column"&&(rt.flexBasis=rt.height);var ut=this.state.width!==rt.width,At=this.state.height!==rt.height,bt=this.state.flexBasis!==rt.flexBasis,Tt=ut||At||bt;Tt&&(0,_.flushSync)(function(){ue.setState(rt)}),this.props.onResize&&Tt&&this.props.onResize(ne,et,this.resizable,Qe)}},_e.prototype.onMouseUp=function(ne){var ue,ce,Re=this.state,ke=Re.isResizing,Ne=Re.direction,De=Re.original;!ke||!this.resizable||(this.props.onResizeStop&&this.props.onResizeStop(ne,Ne,this.resizable,this.delta),this.props.size&&this.setState({width:(ue=this.props.size.width)!==null&&ue!==void 0?ue:"auto",height:(ce=this.props.size.height)!==null&&ce!==void 0?ce:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:h(h({},this.state.backgroundStyle),{cursor:"auto"})}))},_e.prototype.updateSize=function(ne){var ue,ce;this.setState({width:(ue=ne.width)!==null&&ue!==void 0?ue:"auto",height:(ce=ne.height)!==null&&ce!==void 0?ce:"auto"})},_e.prototype.renderResizer=function(){var ne=this,ue=this.props,ce=ue.enable,Re=ue.handleStyles,ke=ue.handleClasses,Ne=ue.handleWrapperStyle,De=ue.handleWrapperClass,Me=ue.handleComponent;if(!ce)return null;var We=Object.keys(ce).map(function(je){return ce[je]!==!1?(0,w.jsx)(v,{direction:je,onResizeStart:ne.onResizeStart,replaceStyles:Re&&Re[je],className:ke&&ke[je],children:Me&&Me[je]?Me[je]:null},je):null});return(0,w.jsx)("div",{className:De,style:Ne,children:We})},_e.prototype.render=function(){var ne=this,ue=Object.keys(this.props).reduce(function(ke,Ne){return P.indexOf(Ne)!==-1||(ke[Ne]=ne.props[Ne]),ke},{}),ce=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&&(ce.flexBasis=this.state.flexBasis);var Re=this.props.as||"div";return(0,w.jsxs)(Re,h({style:ce,className:this.props.className},ue,{ref:function(ke){ke&&(ne.resizable=ke)},children:[this.state.isResizing&&(0,w.jsx)("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},_e.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},_e}(B.PureComponent);var Q=function(pe,_e){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,ue){ne.__proto__=ue}||function(ne,ue){for(var ce in ue)ue.hasOwnProperty(ce)&&(ne[ce]=ue[ce])},Q(pe,_e)};function ee(pe,_e){Q(pe,_e);function ne(){this.constructor=pe}pe.prototype=_e===null?Object.create(_e):(ne.prototype=_e.prototype,new ne)}var ae=function(){return ae=Object.assign||function(_e){for(var ne,ue=1,ce=arguments.length;ue<ce;ue++){ne=arguments[ue];for(var Re in ne)Object.prototype.hasOwnProperty.call(ne,Re)&&(_e[Re]=ne[Re])}return _e},ae.apply(this,arguments)};function oe(pe,_e){var ne={};for(var ue in pe)Object.prototype.hasOwnProperty.call(pe,ue)&&_e.indexOf(ue)<0&&(ne[ue]=pe[ue]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ue=Object.getOwnPropertySymbols(pe);ce<ue.length;ce++)_e.indexOf(ue[ce])<0&&Object.prototype.propertyIsEnumerable.call(pe,ue[ce])&&(ne[ue[ce]]=pe[ue[ce]]);return ne}var he={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},le=function(pe){return{bottom:pe,bottomLeft:pe,bottomRight:pe,left:pe,right:pe,top:pe,topLeft:pe,topRight:pe}},be=function(pe){ee(_e,pe);function _e(ne){var ue=pe.call(this,ne)||this;return ue.resizingPosition={x:0,y:0},ue.offsetFromParent={left:0,top:0},ue.resizableElement={current:null},ue.originalPosition={x:0,y:0},ue.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:ne.maxWidth,maxHeight:ne.maxHeight},ue.onResizeStart=ue.onResizeStart.bind(ue),ue.onResize=ue.onResize.bind(ue),ue.onResizeStop=ue.onResizeStop.bind(ue),ue.onDragStart=ue.onDragStart.bind(ue),ue.onDrag=ue.onDrag.bind(ue),ue.onDragStop=ue.onDragStop.bind(ue),ue.getMaxSizesFromProps=ue.getMaxSizesFromProps.bind(ue),ue}return _e.prototype.componentDidMount=function(){this.updateOffsetFromParent();var ne=this.offsetFromParent,ue=ne.left,ce=ne.top,Re=this.getDraggablePosition(),ke=Re.x,Ne=Re.y;this.draggable.setState({x:ke-ue,y:Ne-ce}),this.forceUpdate()},_e.prototype.getDraggablePosition=function(){var ne=this.draggable.state,ue=ne.x,ce=ne.y;return{x:ue,y:ce}},_e.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},_e.prototype.getParentSize=function(){return this.resizable.getParentSize()},_e.prototype.getMaxSizesFromProps=function(){var ne=typeof this.props.maxWidth=="undefined"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,ue=typeof this.props.maxHeight=="undefined"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:ne,maxHeight:ue}},_e.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},_e.prototype.getOffsetHeight=function(ne){var ue=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/ue;case"body":return document.body.offsetHeight/ue;default:return ne.offsetHeight}},_e.prototype.getOffsetWidth=function(ne){var ue=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/ue;case"body":return document.body.offsetWidth/ue;default:return ne.offsetWidth}},_e.prototype.onDragStart=function(ne,ue){this.props.onDragStart&&this.props.onDragStart(ne,ue);var ce=this.getDraggablePosition();if(this.originalPosition=ce,!!this.props.bounds){var Re=this.getParent(),ke=this.props.scale,Ne;if(this.props.bounds==="parent")Ne=Re;else if(this.props.bounds==="body"){var De=Re.getBoundingClientRect(),Me=De.left,We=De.top,je=document.body.getBoundingClientRect(),et=-(Me-Re.offsetLeft*ke-je.left)/ke,it=-(We-Re.offsetTop*ke-je.top)/ke,ze=(document.body.offsetWidth-this.resizable.size.width*ke)/ke+et,xe=(document.body.offsetHeight-this.resizable.size.height*ke)/ke+it;return this.setState({bounds:{top:it,right:ze,bottom:xe,left:et}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var fe=Re.getBoundingClientRect(),W=fe.left,Z=fe.top,me=-(W-Re.offsetLeft*ke)/ke,Ce=-(Z-Re.offsetTop*ke)/ke,ze=(window.innerWidth-this.resizable.size.width*ke)/ke+me,xe=(window.innerHeight-this.resizable.size.height*ke)/ke+Ce;return this.setState({bounds:{top:Ce,right:ze,bottom:xe,left:me}})}else typeof this.props.bounds=="string"?Ne=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(Ne=this.props.bounds);if(!(!(Ne instanceof HTMLElement)||!(Re instanceof HTMLElement))){var re=Ne.getBoundingClientRect(),ie=re.left,de=re.top,Ae=Re.getBoundingClientRect(),Be=Ae.left,He=Ae.top,st=(ie-Be)/ke,Qe=de-He;if(this.resizable){this.updateOffsetFromParent();var pt=this.offsetFromParent;this.setState({bounds:{top:Qe-pt.top,right:st+(Ne.offsetWidth-this.resizable.size.width)-pt.left/ke,bottom:Qe+(Ne.offsetHeight-this.resizable.size.height)-pt.top,left:st-pt.left/ke}})}}}},_e.prototype.onDrag=function(ne,ue){if(this.props.onDrag){var ce=this.offsetFromParent,Re=ce.left,ke=ce.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(ne,ae(ae({},ue),{x:ue.x+Re,y:ue.y+ke}));if(this.props.dragAxis==="x")return this.props.onDrag(ne,ae(ae({},ue),{x:ue.x+Re,y:this.originalPosition.y+ke,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(ne,ae(ae({},ue),{x:this.originalPosition.x+Re,y:ue.y+ke,deltaX:0}))}},_e.prototype.onDragStop=function(ne,ue){if(this.props.onDragStop){var ce=this.offsetFromParent,Re=ce.left,ke=ce.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(ne,ae(ae({},ue),{x:ue.x+Re,y:ue.y+ke}));if(this.props.dragAxis==="x")return this.props.onDragStop(ne,ae(ae({},ue),{x:ue.x+Re,y:this.originalPosition.y+ke,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(ne,ae(ae({},ue),{x:this.originalPosition.x+Re,y:ue.y+ke,deltaX:0}))}},_e.prototype.onResizeStart=function(ne,ue,ce){ne.stopPropagation(),this.setState({resizing:!0});var Re=this.props.scale,ke=this.offsetFromParent,Ne=this.getDraggablePosition();if(this.resizingPosition={x:Ne.x+ke.left,y:Ne.y+ke.top},this.originalPosition=Ne,this.props.bounds){var De=this.getParent(),Me=void 0;this.props.bounds==="parent"?Me=De:this.props.bounds==="body"?Me=document.body:this.props.bounds==="window"?Me=window:typeof this.props.bounds=="string"?Me=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(Me=this.props.bounds);var We=this.getSelfElement();if(We instanceof Element&&(Me instanceof HTMLElement||Me===window)&&De instanceof HTMLElement){var je=this.getMaxSizesFromProps(),et=je.maxWidth,it=je.maxHeight,ze=this.getParentSize();if(et&&typeof et=="string")if(et.endsWith("%")){var xe=Number(et.replace("%",""))/100;et=ze.width*xe}else et.endsWith("px")&&(et=Number(et.replace("px","")));if(it&&typeof it=="string")if(it.endsWith("%")){var xe=Number(it.replace("%",""))/100;it=ze.height*xe}else it.endsWith("px")&&(it=Number(it.replace("px","")));var fe=We.getBoundingClientRect(),W=fe.left,Z=fe.top,me=this.props.bounds==="window"?{left:0,top:0}:Me.getBoundingClientRect(),Ce=me.left,re=me.top,ie=this.getOffsetWidth(Me),de=this.getOffsetHeight(Me),Ae=ue.toLowerCase().endsWith("left"),Be=ue.toLowerCase().endsWith("right"),He=ue.startsWith("top"),st=ue.startsWith("bottom");if((Ae||He)&&this.resizable){var Qe=(W-Ce)/Re+this.resizable.size.width;this.setState({maxWidth:Qe>Number(et)?et:Qe})}if(Be||this.props.lockAspectRatio&&!Ae&&!He){var Qe=ie+(Ce-W)/Re;this.setState({maxWidth:Qe>Number(et)?et:Qe})}if((He||Ae)&&this.resizable){var Qe=(Z-re)/Re+this.resizable.size.height;this.setState({maxHeight:Qe>Number(it)?it:Qe})}if(st||this.props.lockAspectRatio&&!He&&!Ae){var Qe=de+(re-Z)/Re;this.setState({maxHeight:Qe>Number(it)?it:Qe})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(ne,ue,ce)},_e.prototype.onResize=function(ne,ue,ce,Re){var ke=this,Ne={x:this.originalPosition.x,y:this.originalPosition.y},De=-Re.width,Me=-Re.height,We=["top","left","topLeft","bottomLeft","topRight"];We.includes(ue)&&(ue==="bottomLeft"?Ne.x+=De:(ue==="topRight"||(Ne.x+=De),Ne.y+=Me));var je=this.draggable.state;(Ne.x!==je.x||Ne.y!==je.y)&&(0,_.flushSync)(function(){ke.draggable.setState(Ne)}),this.updateOffsetFromParent();var et=this.offsetFromParent,it=this.getDraggablePosition().x+et.left,ze=this.getDraggablePosition().y+et.top;this.resizingPosition={x:it,y:ze},this.props.onResize&&this.props.onResize(ne,ue,ce,Re,{x:it,y:ze})},_e.prototype.onResizeStop=function(ne,ue,ce,Re){this.setState({resizing:!1});var ke=this.getMaxSizesFromProps(),Ne=ke.maxWidth,De=ke.maxHeight;this.setState({maxWidth:Ne,maxHeight:De}),this.props.onResizeStop&&this.props.onResizeStop(ne,ue,ce,Re,this.resizingPosition)},_e.prototype.updateSize=function(ne){this.resizable&&this.resizable.updateSize({width:ne.width,height:ne.height})},_e.prototype.updatePosition=function(ne){this.draggable.setState(ne)},_e.prototype.updateOffsetFromParent=function(){var ne=this.props.scale,ue=this.getParent(),ce=this.getSelfElement();if(!ue||ce===null)return{top:0,left:0};var Re=ue.getBoundingClientRect(),ke=Re.left,Ne=Re.top,De=ce.getBoundingClientRect(),Me=this.getDraggablePosition(),We=ue.scrollLeft,je=ue.scrollTop;this.offsetFromParent={left:De.left-ke+We-Me.x*ne,top:De.top-Ne+je-Me.y*ne}},_e.prototype.render=function(){var ne=this,ue=this.props,ce=ue.disableDragging,Re=ue.style,ke=ue.dragHandleClassName,Ne=ue.position,De=ue.onMouseDown,Me=ue.onMouseUp,We=ue.dragAxis,je=ue.dragGrid,et=ue.bounds,it=ue.enableUserSelectHack,ze=ue.cancel,xe=ue.children,fe=ue.onResizeStart,W=ue.onResize,Z=ue.onResizeStop,me=ue.onDragStart,Ce=ue.onDrag,re=ue.onDragStop,ie=ue.resizeHandleStyles,de=ue.resizeHandleClasses,Ae=ue.resizeHandleComponent,Be=ue.enableResizing,He=ue.resizeGrid,st=ue.resizeHandleWrapperClass,Qe=ue.resizeHandleWrapperStyle,pt=ue.scale,It=ue.allowAnyClick,gt=ue.dragPositionOffset,rt=oe(ue,["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"]),ut=this.props.default?ae({},this.props.default):void 0;delete rt.default;var At=ce||ke?{cursor:"auto"}:{cursor:"move"},bt=ae(ae(ae({},he),At),Re),Tt=this.offsetFromParent,Mt=Tt.left,Ot=Tt.top,$e;Ne&&($e={x:Ne.x-Mt,y:Ne.y-Ot});var $t=this.state.resizing?void 0:$e,gn=this.state.resizing?"both":We;return(0,B.createElement)(s(),{ref:function(Et){Et&&(ne.draggable=Et)},handle:ke?".".concat(ke):void 0,defaultPosition:ut,onMouseDown:De,onMouseUp:Me,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:gn,disabled:ce,grid:je,bounds:et?this.state.bounds:void 0,position:$t,enableUserSelectHack:it,cancel:ze,scale:pt,allowAnyClick:It,nodeRef:this.resizableElement,positionOffset:gt},(0,B.createElement)(G,ae({},rt,{ref:function(Et){Et&&(ne.resizable=Et,ne.resizableElement.current=Et.resizable)},defaultSize:ut,size:this.props.size,enable:typeof Be=="boolean"?le(Be):Be,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:bt,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:He,handleWrapperClass:st,handleWrapperStyle:Qe,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:ie,handleClasses:de,handleComponent:Ae,scale:this.props.scale}),xe))},_e.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(){}},_e}(B.PureComponent)},77596:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return ue}});var B=S(33346),Y=S(15142),s=S(52873),w=S(59301),_=S(67711);function u(ce,Re){var ke=Object.keys(ce);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(ce);Re&&(Ne=Ne.filter(function(De){return Object.getOwnPropertyDescriptor(ce,De).enumerable})),ke.push.apply(ke,Ne)}return ke}function p(ce){for(var Re=1;Re<arguments.length;Re++){var ke=arguments[Re]!=null?arguments[Re]:{};Re%2?u(Object(ke),!0).forEach(function(Ne){(0,s.Z)(ce,Ne,ke[Ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(ke)):u(Object(ke)).forEach(function(Ne){Object.defineProperty(ce,Ne,Object.getOwnPropertyDescriptor(ke,Ne))})}return ce}function y(ce){var Re=ce.length;if(Re===0||Re===1)return ce;if(Re===2)return[ce[0],ce[1],"".concat(ce[0],".").concat(ce[1]),"".concat(ce[1],".").concat(ce[0])];if(Re===3)return[ce[0],ce[1],ce[2],"".concat(ce[0],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[2]),"".concat(ce[2],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[0])];if(Re>=4)return[ce[0],ce[1],ce[2],ce[3],"".concat(ce[0],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[3]),"".concat(ce[3],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[3]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[3]),"".concat(ce[0],".").concat(ce[3],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[3],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[3],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[3],".").concat(ce[2]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[3],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[3],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[3],".").concat(ce[1],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[3],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[2],".").concat(ce[3]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[3],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[1],".").concat(ce[3]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[3],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[3],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[3],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[2],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[3],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[0],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[3],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[3],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[3],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[1],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[3],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[0],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[3],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[3],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[3],".").concat(ce[1],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[0],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[3],".").concat(ce[0],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[1],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[3],".").concat(ce[1],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[2],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[2],".").concat(ce[1],".").concat(ce[0])]}var m={};function b(ce){if(ce.length===0||ce.length===1)return ce;var Re=ce.join(".");return m[Re]||(m[Re]=y(ce)),m[Re]}function v(ce){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=arguments.length>2?arguments[2]:void 0,Ne=ce.filter(function(Me){return Me!=="token"}),De=b(Ne);return De.reduce(function(Me,We){return p(p({},Me),ke[We])},Re)}function c(ce){return ce.join(" ")}function h(ce,Re){var ke=0;return function(Ne){return ke+=1,Ne.map(function(De,Me){return g({node:De,stylesheet:ce,useInlineStyles:Re,key:"code-segment-".concat(ke,"-").concat(Me)})})}}function g(ce){var Re=ce.node,ke=ce.stylesheet,Ne=ce.style,De=Ne===void 0?{}:Ne,Me=ce.useInlineStyles,We=ce.key,je=Re.properties,et=Re.type,it=Re.tagName,ze=Re.value;if(et==="text")return ze;if(it){var xe=h(ke,Me),fe;if(!Me)fe=p(p({},je),{},{className:c(je.className)});else{var W=Object.keys(ke).reduce(function(re,ie){return ie.split(".").forEach(function(de){re.includes(de)||re.push(de)}),re},[]),Z=je.className&&je.className.includes("token")?["token"]:[],me=je.className&&Z.concat(je.className.filter(function(re){return!W.includes(re)}));fe=p(p({},je),{},{className:c(me)||void 0,style:v(je.className,Object.assign({},je.style,De),ke)})}var Ce=xe(Re.children);return w.createElement(it,(0,_.Z)({key:We},fe),Ce)}}var x=function(ce,Re){var ke=ce.listLanguages();return ke.indexOf(Re)!==-1},T=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function I(ce,Re){var ke=Object.keys(ce);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(ce);Re&&(Ne=Ne.filter(function(De){return Object.getOwnPropertyDescriptor(ce,De).enumerable})),ke.push.apply(ke,Ne)}return ke}function R(ce){for(var Re=1;Re<arguments.length;Re++){var ke=arguments[Re]!=null?arguments[Re]:{};Re%2?I(Object(ke),!0).forEach(function(Ne){(0,s.Z)(ce,Ne,ke[Ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(ke)):I(Object(ke)).forEach(function(Ne){Object.defineProperty(ce,Ne,Object.getOwnPropertyDescriptor(ke,Ne))})}return ce}var N=/\n/g;function k(ce){return ce.match(N)}function L(ce){var Re=ce.lines,ke=ce.startingLineNumber,Ne=ce.style;return Re.map(function(De,Me){var We=Me+ke;return w.createElement("span",{key:"line-".concat(Me),className:"react-syntax-highlighter-line-number",style:typeof Ne=="function"?Ne(We):Ne},"".concat(We,`
`))})}function H(ce){var Re=ce.codeString,ke=ce.codeStyle,Ne=ce.containerStyle,De=Ne===void 0?{float:"left",paddingRight:"10px"}:Ne,Me=ce.numberStyle,We=Me===void 0?{}:Me,je=ce.startingLineNumber;return w.createElement("code",{style:Object.assign({},ke,De)},L({lines:Re.replace(/\n$/,"").split(`
`),style:We,startingLineNumber:je}))}function M(ce){return"".concat(ce.toString().length,".25em")}function F(ce,Re){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(ce),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Re},children:[{type:"text",value:ce}]}}function P(ce,Re,ke){var Ne={display:"inline-block",minWidth:M(ke),paddingRight:"1em",textAlign:"right",userSelect:"none"},De=typeof ce=="function"?ce(Re):ce,Me=R(R({},Ne),De);return Me}function U(ce){var Re=ce.children,ke=ce.lineNumber,Ne=ce.lineNumberStyle,De=ce.largestLineNumber,Me=ce.showInlineLineNumbers,We=ce.lineProps,je=We===void 0?{}:We,et=ce.className,it=et===void 0?[]:et,ze=ce.showLineNumbers,xe=ce.wrapLongLines,fe=ce.wrapLines,W=fe===void 0?!1:fe,Z=W?R({},typeof je=="function"?je(ke):je):{};if(Z.className=Z.className?[].concat((0,Y.Z)(Z.className.trim().split(/\s+/)),(0,Y.Z)(it)):it,ke&&Me){var me=P(Ne,ke,De);Re.unshift(F(ke,me))}return xe&ze&&(Z.style=R({display:"flex"},Z.style)),{type:"element",tagName:"span",properties:Z,children:Re}}function G(ce){for(var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ne=0;Ne<ce.length;Ne++){var De=ce[Ne];if(De.type==="text")ke.push(U({children:[De],className:(0,Y.Z)(new Set(Re))}));else if(De.children){var Me=Re.concat(De.properties.className);G(De.children,Me).forEach(function(We){return ke.push(We)})}}return ke}function Q(ce,Re,ke,Ne,De,Me,We,je,et){var it,ze=G(ce.value),xe=[],fe=-1,W=0;function Z(Be,He){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return U({children:Be,lineNumber:He,lineNumberStyle:je,largestLineNumber:We,showInlineLineNumbers:De,lineProps:ke,className:st,showLineNumbers:Ne,wrapLongLines:et,wrapLines:Re})}function me(Be,He){if(Ne&&He&&De){var st=P(je,He,We);Be.unshift(F(He,st))}return Be}function Ce(Be,He){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Re||st.length>0?Z(Be,He,st):me(Be,He)}for(var re=function(){var He=ze[W],st=He.children[0].value,Qe=k(st);if(Qe){var pt=st.split(`
`);pt.forEach(function(It,gt){var rt=Ne&&xe.length+Me,ut={type:"text",value:"".concat(It,`
`)};if(gt===0){var At=ze.slice(fe+1,W).concat(U({children:[ut],className:He.properties.className})),bt=Ce(At,rt);xe.push(bt)}else if(gt===pt.length-1){var Tt=ze[W+1]&&ze[W+1].children&&ze[W+1].children[0],Mt={type:"text",value:"".concat(It)};if(Tt){var Ot=U({children:[Mt],className:He.properties.className});ze.splice(W+1,0,Ot)}else{var $e=[Mt],$t=Ce($e,rt,He.properties.className);xe.push($t)}}else{var gn=[ut],Et=Ce(gn,rt,He.properties.className);xe.push(Et)}}),fe=W}W++};W<ze.length;)re();if(fe!==ze.length-1){var ie=ze.slice(fe+1,ze.length);if(ie&&ie.length){var de=Ne&&xe.length+Me,Ae=Ce(ie,de);xe.push(Ae)}}return Re?xe:(it=[]).concat.apply(it,xe)}function ee(ce){var Re=ce.rows,ke=ce.stylesheet,Ne=ce.useInlineStyles;return Re.map(function(De,Me){return g({node:De,stylesheet:ke,useInlineStyles:Ne,key:"code-segement".concat(Me)})})}function ae(ce){return ce&&typeof ce.highlightAuto!="undefined"}function oe(ce){var Re=ce.astGenerator,ke=ce.language,Ne=ce.code,De=ce.defaultCodeValue;if(ae(Re)){var Me=x(Re,ke);return ke==="text"?{value:De,language:"text"}:Me?Re.highlight(ke,Ne):Re.highlightAuto(Ne)}try{return ke&&ke!=="text"?{value:Re.highlight(Ne,ke)}:{value:De}}catch(We){return{value:De}}}function he(ce,Re){return function(Ne){var De=Ne.language,Me=Ne.children,We=Ne.style,je=We===void 0?Re:We,et=Ne.customStyle,it=et===void 0?{}:et,ze=Ne.codeTagProps,xe=ze===void 0?{className:De?"language-".concat(De):void 0,style:R(R({},je['code[class*="language-"]']),je['code[class*="language-'.concat(De,'"]')])}:ze,fe=Ne.useInlineStyles,W=fe===void 0?!0:fe,Z=Ne.showLineNumbers,me=Z===void 0?!1:Z,Ce=Ne.showInlineLineNumbers,re=Ce===void 0?!0:Ce,ie=Ne.startingLineNumber,de=ie===void 0?1:ie,Ae=Ne.lineNumberContainerStyle,Be=Ne.lineNumberStyle,He=Be===void 0?{}:Be,st=Ne.wrapLines,Qe=Ne.wrapLongLines,pt=Qe===void 0?!1:Qe,It=Ne.lineProps,gt=It===void 0?{}:It,rt=Ne.renderer,ut=Ne.PreTag,At=ut===void 0?"pre":ut,bt=Ne.CodeTag,Tt=bt===void 0?"code":bt,Mt=Ne.code,Ot=Mt===void 0?(Array.isArray(Me)?Me[0]:Me)||"":Mt,$e=Ne.astGenerator,$t=(0,B.Z)(Ne,T);$e=$e||ce;var gn=me?w.createElement(H,{containerStyle:Ae,codeStyle:xe.style||{},numberStyle:He,startingLineNumber:de,codeString:Ot}):null,Et=je.hljs||je['pre[class*="language-"]']||{backgroundColor:"#fff"},Mn=ae($e)?"hljs":"prismjs",qn=W?Object.assign({},$t,{style:Object.assign({},Et,it)}):Object.assign({},$t,{className:$t.className?"".concat(Mn," ").concat($t.className):Mn,style:Object.assign({},it)});if(pt?xe.style=R({whiteSpace:"pre-wrap"},xe.style):xe.style=R({whiteSpace:"pre"},xe.style),!$e)return w.createElement(At,qn,gn,w.createElement(Tt,xe,Ot));(st===void 0&&rt||pt)&&(st=!0),rt=rt||ee;var Zn=[{type:"text",value:Ot}],Bt=oe({astGenerator:$e,language:De,code:Ot,defaultCodeValue:Zn});Bt.language===null&&(Bt.value=Zn);var yr=Bt.value.length;yr===1&&Bt.value[0].type==="text"&&(yr=Bt.value[0].value.split(`
`).length);var vr=yr+de,Un=Q(Bt,st,gt,me,re,de,vr,He,pt);return w.createElement(At,qn,w.createElement(Tt,xe,!re&&gn,rt({rows:Un,stylesheet:je,useInlineStyles:W})))}}var le={'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"}},be=S(11594),pe=S.n(be),_e=["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"],ne=he(pe(),le);ne.supportedLanguages=_e;var ue=ne},14179:function(Oe,J){"use strict";J.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"}}},19524:function(Oe,J,S){"use strict";S(84126);var B=S(59301),Y=60103;if(J.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var s=Symbol.for;Y=s("react.element"),J.Fragment=s("react.fragment")}var w=B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function p(y,m,b){var v,c={},h=null,g=null;b!==void 0&&(h=""+b),m.key!==void 0&&(h=""+m.key),m.ref!==void 0&&(g=m.ref);for(v in m)_.call(m,v)&&!u.hasOwnProperty(v)&&(c[v]=m[v]);if(y&&y.defaultProps)for(v in m=y.defaultProps,m)c[v]===void 0&&(c[v]=m[v]);return{$$typeof:Y,type:y,key:h,ref:g,props:c,_owner:w.current}}J.jsx=p,J.jsxs=p},37712:function(Oe,J,S){"use strict";Oe.exports=S(19524)},95489:function(Oe,J,S){"use strict";var B=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof S.g=="object"?S.g:{},Y=H();B.Prism={manual:!0,disableWorkerMessageHandler:!0};var s=S(43621),w=S(12256),_=S(68398),u=S(70614),p=S(54212),y=S(9720),m=S(88786);Y();var b={}.hasOwnProperty;function v(){}v.prototype=_;var c=new v;Oe.exports=c,c.highlight=x,c.register=h,c.alias=g,c.registered=T,c.listLanguages=I,h(u),h(p),h(y),h(m),c.util.encode=k,c.Token.stringify=R;function h(M){if(typeof M!="function"||!M.displayName)throw new Error("Expected `function` for `grammar`, got `"+M+"`");c.languages[M.displayName]===void 0&&M(c)}function g(M,F){var P=c.languages,U=M,G,Q,ee,ae;F&&(U={},U[M]=F);for(G in U)for(Q=U[G],Q=typeof Q=="string"?[Q]:Q,ee=Q.length,ae=-1;++ae<ee;)P[Q[ae]]=P[G]}function x(M,F){var P=_.highlight,U;if(typeof M!="string")throw new Error("Expected `string` for `value`, got `"+M+"`");if(c.util.type(F)==="Object")U=F,F=null;else{if(typeof F!="string")throw new Error("Expected `string` for `name`, got `"+F+"`");if(b.call(c.languages,F))U=c.languages[F];else throw new Error("Unknown language: `"+F+"` is not registered")}return P.call(this,M,U,F)}function T(M){if(typeof M!="string")throw new Error("Expected `string` for `language`, got `"+M+"`");return b.call(c.languages,M)}function I(){var M=c.languages,F=[],P;for(P in M)b.call(M,P)&&typeof M[P]=="object"&&F.push(P);return F}function R(M,F,P){var U;return typeof M=="string"?{type:"text",value:M}:c.util.type(M)==="Array"?N(M,F):(U={type:M.type,content:c.Token.stringify(M.content,F,P),tag:"span",classes:["token",M.type],attributes:{},language:F,parent:P},M.alias&&(U.classes=U.classes.concat(M.alias)),c.hooks.run("wrap",U),s(U.tag+"."+U.classes.join("."),L(U.attributes),U.content))}function N(M,F){for(var P=[],U=M.length,G=-1,Q;++G<U;)Q=M[G],Q!==""&&Q!==null&&Q!==void 0&&P.push(Q);for(G=-1,U=P.length;++G<U;)Q=P[G],P[G]=c.Token.stringify(Q,F,P);return P}function k(M){return M}function L(M){var F;for(F in M)M[F]=w(M[F]);return M}function H(){var M="Prism"in B,F=M?B.Prism:void 0;return P;function P(){M?B.Prism=F:delete B.Prism,M=void 0,F=void 0}}},11594:function(Oe,J,S){"use strict";var B=S(95489);Oe.exports=B,B.register(S(79007)),B.register(S(15465)),B.register(S(42746)),B.register(S(93281)),B.register(S(95143)),B.register(S(65924)),B.register(S(65043)),B.register(S(43556)),B.register(S(14901)),B.register(S(4248)),B.register(S(17758)),B.register(S(33335)),B.register(S(17427)),B.register(S(22956)),B.register(S(56007)),B.register(S(45652)),B.register(S(33819)),B.register(S(84230)),B.register(S(20803)),B.register(S(65235)),B.register(S(52406)),B.register(S(79571)),B.register(S(3058)),B.register(S(51422)),B.register(S(1618)),B.register(S(2505)),B.register(S(51274)),B.register(S(23796)),B.register(S(13979)),B.register(S(87994)),B.register(S(47035)),B.register(S(36142)),B.register(S(85290)),B.register(S(7407)),B.register(S(79440)),B.register(S(7110)),B.register(S(73435)),B.register(S(91372)),B.register(S(63663)),B.register(S(92987)),B.register(S(91657)),B.register(S(34367)),B.register(S(35348)),B.register(S(26841)),B.register(S(87071)),B.register(S(13652)),B.register(S(87648)),B.register(S(10617)),B.register(S(5348)),B.register(S(71053)),B.register(S(69820)),B.register(S(41929)),B.register(S(51837)),B.register(S(4182)),B.register(S(22117)),B.register(S(95627)),B.register(S(34265)),B.register(S(50618)),B.register(S(32126)),B.register(S(26737)),B.register(S(90134)),B.register(S(51348)),B.register(S(60841)),B.register(S(42857)),B.register(S(81269)),B.register(S(31134)),B.register(S(83125)),B.register(S(9438)),B.register(S(27771)),B.register(S(86549)),B.register(S(37079)),B.register(S(59250)),B.register(S(81226)),B.register(S(65245)),B.register(S(25040)),B.register(S(40284)),B.register(S(39187)),B.register(S(34302)),B.register(S(90515)),B.register(S(33534)),B.register(S(9885)),B.register(S(76364)),B.register(S(56452)),B.register(S(8477)),B.register(S(58230)),B.register(S(66192)),B.register(S(81084)),B.register(S(50318)),B.register(S(95769)),B.register(S(14155)),B.register(S(92823)),B.register(S(63092)),B.register(S(21550)),B.register(S(29710)),B.register(S(2050)),B.register(S(67967)),B.register(S(29138)),B.register(S(67915)),B.register(S(54853)),B.register(S(68330)),B.register(S(76823)),B.register(S(86712)),B.register(S(72252)),B.register(S(78634)),B.register(S(43583)),B.register(S(23328)),B.register(S(74494)),B.register(S(46745)),B.register(S(22152)),B.register(S(83698)),B.register(S(26619)),B.register(S(53990)),B.register(S(7093)),B.register(S(4005)),B.register(S(53510)),B.register(S(24799)),B.register(S(97443)),B.register(S(80746)),B.register(S(17015)),B.register(S(89246)),B.register(S(487)),B.register(S(79539)),B.register(S(15628)),B.register(S(14320)),B.register(S(73222)),B.register(S(92486)),B.register(S(24103)),B.register(S(40604)),B.register(S(23109)),B.register(S(32082)),B.register(S(77674)),B.register(S(37524)),B.register(S(6658)),B.register(S(24824)),B.register(S(22776)),B.register(S(89700)),B.register(S(99296)),B.register(S(39940)),B.register(S(34973)),B.register(S(98135)),B.register(S(36907)),B.register(S(3567)),B.register(S(23763)),B.register(S(33978)),B.register(S(40472)),B.register(S(44695)),B.register(S(53885)),B.register(S(51478)),B.register(S(16928)),B.register(S(13586)),B.register(S(37164)),B.register(S(25153)),B.register(S(33245)),B.register(S(32218)),B.register(S(65626)),B.register(S(60090)),B.register(S(40722)),B.register(S(37783)),B.register(S(41224)),B.register(S(71365)),B.register(S(42846)),B.register(S(32964)),B.register(S(78830)),B.register(S(88799)),B.register(S(66791)),B.register(S(41735)),B.register(S(13490)),B.register(S(7383)),B.register(S(66894)),B.register(S(45779)),B.register(S(27734)),B.register(S(91889)),B.register(S(55965)),B.register(S(37326)),B.register(S(92949)),B.register(S(5681)),B.register(S(70696)),B.register(S(35790)),B.register(S(25777)),B.register(S(65889)),B.register(S(53852)),B.register(S(97719)),B.register(S(63839)),B.register(S(67623)),B.register(S(32530)),B.register(S(8938)),B.register(S(55259)),B.register(S(67411)),B.register(S(15375)),B.register(S(12093)),B.register(S(83588)),B.register(S(94127)),B.register(S(21294)),B.register(S(38709)),B.register(S(15008)),B.register(S(96549)),B.register(S(5221)),B.register(S(27447)),B.register(S(73191)),B.register(S(75542)),B.register(S(50323)),B.register(S(44298)),B.register(S(9634)),B.register(S(75266)),B.register(S(48139)),B.register(S(97534)),B.register(S(90826)),B.register(S(63919)),B.register(S(68862)),B.register(S(39523)),B.register(S(31207)),B.register(S(75308)),B.register(S(45315)),B.register(S(13794)),B.register(S(41299)),B.register(S(98177)),B.register(S(48780)),B.register(S(79793)),B.register(S(52085)),B.register(S(65411)),B.register(S(84750)),B.register(S(88216)),B.register(S(66433)),B.register(S(34855)),B.register(S(12998)),B.register(S(10202)),B.register(S(41186)),B.register(S(68963)),B.register(S(5569)),B.register(S(69435)),B.register(S(42766)),B.register(S(46449)),B.register(S(89032)),B.register(S(40241)),B.register(S(24812)),B.register(S(16747)),B.register(S(73584)),B.register(S(79243)),B.register(S(31788)),B.register(S(60871)),B.register(S(21023)),B.register(S(14693)),B.register(S(8743)),B.register(S(1689)),B.register(S(69210)),B.register(S(58710)),B.register(S(60452)),B.register(S(92784)),B.register(S(36489)),B.register(S(78380)),B.register(S(10409)),B.register(S(6539)),B.register(S(82028)),B.register(S(62282)),B.register(S(55686)),B.register(S(70889)),B.register(S(37116)),B.register(S(66963)),B.register(S(21078)),B.register(S(96198)),B.register(S(17723)),B.register(S(67771)),B.register(S(30307)),B.register(S(8921)),B.register(S(13429)),B.register(S(65197)),B.register(S(88904)),B.register(S(35)),B.register(S(86095)),B.register(S(76998)),B.register(S(14409)),B.register(S(33460)),B.register(S(28108))},79007:function(Oe){"use strict";Oe.exports=J,J.displayName="abap",J.aliases=[];function J(S){S.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:/[,.:()]/}}},15465:function(Oe){"use strict";Oe.exports=J,J.displayName="abnf",J.aliases=[];function J(S){(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:/[()\[\]]/}})(S)}},42746:function(Oe){"use strict";Oe.exports=J,J.displayName="actionscript",J.aliases=[];function J(S){S.languages.actionscript=S.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),S.languages.actionscript["class-name"].alias="function",delete S.languages.actionscript.parameter,delete S.languages.actionscript["literal-property"],S.languages.markup&&S.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:S.languages.markup}})}},93281:function(Oe){"use strict";Oe.exports=J,J.displayName="ada",J.aliases=[];function J(S){S.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}}},95143:function(Oe){"use strict";Oe.exports=J,J.displayName="agda",J.aliases=[];function J(S){(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/}})(S)}},65924:function(Oe){"use strict";Oe.exports=J,J.displayName="al",J.aliases=[];function J(S){S.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:/[()\[\]{}:.;,]/}}},65043:function(Oe){"use strict";Oe.exports=J,J.displayName="antlr4",J.aliases=["g4"];function J(S){S.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:/[;:()=]/},S.languages.g4=S.languages.antlr4}},43556:function(Oe){"use strict";Oe.exports=J,J.displayName="apacheconf",J.aliases=[];function J(S){S.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:/\^?.*\$|\^.*\$?/}}},14901:function(Oe,J,S){"use strict";var B=S(69435);Oe.exports=Y,Y.displayName="apex",Y.aliases=[];function Y(s){s.register(B),function(w){var _=/\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 _.source});function p(m){return RegExp(m.replace(/<CLASS-NAME>/g,function(){return u}),"i")}var y={keyword:_,punctuation:/[()\[\]{};,:.<>]/};w.languages.apex={comment:w.languages.clike.comment,string:w.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:w.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:p(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:y},{pattern:p(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:y},{pattern:p(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:y}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:_,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)}},4248:function(Oe){"use strict";Oe.exports=J,J.displayName="apl",J.aliases=[];function J(S){S.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"}}}},17758:function(Oe){"use strict";Oe.exports=J,J.displayName="applescript",J.aliases=[];function J(S){S.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:/[{}():,¬«»《》]/}}},33335:function(Oe){"use strict";Oe.exports=J,J.displayName="aql",J.aliases=[];function J(S){S.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:/::|[?.:,;()[\]{}]/}}},17427:function(Oe,J,S){"use strict";var B=S(87071);Oe.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}},22956:function(Oe){"use strict";Oe.exports=J,J.displayName="arff",J.aliases=[];function J(S){S.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(Oe){"use strict";Oe.exports=J,J.displayName="asciidoc",J.aliases=["adoc"];function J(S){(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 w(_){_=_.split(" ");for(var u={},p=0,y=_.length;p<y;p++)u[_[p]]=s[_[p]];return u}Y.inside.interpreted.inside.rest=w("macro inline replacement entity"),s["passthrough-block"].inside.rest=w("macro"),s["literal-block"].inside.rest=w("callout"),s.table.inside.rest=w("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=w("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=w("macro inline replacement entity"),B.hooks.add("wrap",function(_){_.type==="entity"&&(_.attributes.title=_.content.value.replace(/&amp;/,"&"))}),B.languages.adoc=B.languages.asciidoc})(S)}},45652:function(Oe){"use strict";Oe.exports=J,J.displayName="asm6502",J.aliases=[];function J(S){S.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:/[(),:]/}}},33819:function(Oe){"use strict";Oe.exports=J,J.displayName="asmatmel",J.aliases=[];function J(S){S.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:/[(),:]/}}},84230:function(Oe,J,S){"use strict";var B=S(87648);Oe.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||{}}})}},20803:function(Oe){"use strict";Oe.exports=J,J.displayName="autohotkey",J.aliases=[];function J(S){S.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:/[{}[\]():,]/}}},65235:function(Oe){"use strict";Oe.exports=J,J.displayName="autoit",J.aliases=[];function J(S){S.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:/[\[\]().,:]/}}},52406:function(Oe){"use strict";Oe.exports=J,J.displayName="avisynth",J.aliases=["avs"];function J(S){(function(B){function Y(m,b){return m.replace(/<<(\d+)>>/g,function(v,c){return b[+c]})}function s(m,b,v){return RegExp(Y(m,b),v||"")}var w=/bool|clip|float|int|string|val/.source,_=[/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("|"),p=[/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("|"),y=[_,u,p].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,[w],"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,[y],"i"),alias:"function"},"type-cast":{pattern:s(/\b(?:<<0>>)(?=\s*\()/.source,[w],"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})(S)}},79571:function(Oe){"use strict";Oe.exports=J,J.displayName="avroIdl",J.aliases=[];function J(S){S.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:/[()\[\]{}<>.:,;-]/},S.languages.avdl=S.languages["avro-idl"]}},3058:function(Oe){"use strict";Oe.exports=J,J.displayName="bash",J.aliases=["shell"];function J(S){(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},w={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:w},{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:w},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:w.entity}}],environment:{pattern:RegExp("\\$?"+Y),alias:"constant"},variable:w.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 _=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],u=w.variable[1].inside,p=0;p<_.length;p++)u[_[p]]=B.languages.bash[_[p]];B.languages.shell=B.languages.bash})(S)}},51422:function(Oe){"use strict";Oe.exports=J,J.displayName="basic",J.aliases=[];function J(S){S.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:/[,;:()]/}}},1618:function(Oe){"use strict";Oe.exports=J,J.displayName="batch",J.aliases=[];function J(S){(function(B){var Y=/%%?[~:\w]+%?|!\S+!/,s={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},w=/"(?:[\\"]"|[^"])*"(?!")/,_=/(?:\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:w,parameter:s,variable:Y,number:_,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:w,parameter:s,variable:Y,number:_,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:w,parameter:s,variable:[Y,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:_,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:w,parameter:s,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Y,number:_,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(S)}},2505:function(Oe){"use strict";Oe.exports=J,J.displayName="bbcode",J.aliases=["shortcode"];function J(S){S.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=\]]+/}}},S.languages.shortcode=S.languages.bbcode}},51274:function(Oe){"use strict";Oe.exports=J,J.displayName="bicep",J.aliases=[];function J(S){S.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:/[{}[\];(),.:]/},S.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=S.languages.bicep}},23796:function(Oe){"use strict";Oe.exports=J,J.displayName="birb",J.aliases=[];function J(S){S.languages.birb=S.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/}),S.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(Oe,J,S){"use strict";var B=S(79440);Oe.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:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(Oe){"use strict";Oe.exports=J,J.displayName="bnf",J.aliases=["rbnf"];function J(S){S.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}/},S.languages.rbnf=S.languages.bnf}},47035:function(Oe){"use strict";Oe.exports=J,J.displayName="brainfuck",J.aliases=[];function J(S){S.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(Oe){"use strict";Oe.exports=J,J.displayName="brightscript",J.aliases=[];function J(S){S.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},S.languages.brightscript["directive-statement"].inside.expression.inside=S.languages.brightscript}},85290:function(Oe){"use strict";Oe.exports=J,J.displayName="bro",J.aliases=[];function J(S){S.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:/[{}[\];(),.:]/}}},7407:function(Oe){"use strict";Oe.exports=J,J.displayName="bsl",J.aliases=[];function J(S){S.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"}]},S.languages.oscript=S.languages.bsl}},79440:function(Oe){"use strict";Oe.exports=J,J.displayName="c",J.aliases=[];function J(S){S.languages.c=S.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|[?:~]|[-+*/%&|^!=<>]=?/}),S.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),S.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},S.languages.c.string],char:S.languages.c.char,comment:S.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:S.languages.c}}}}),S.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 S.languages.c.boolean}},7110:function(Oe){"use strict";Oe.exports=J,J.displayName="cfscript",J.aliases=[];function J(S){S.languages.cfscript=S.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"}}),S.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 S.languages.cfscript["class-name"],S.languages.cfc=S.languages.cfscript}},73435:function(Oe,J,S){"use strict";var B=S(87071);Oe.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]+/}}})}},91372:function(Oe){"use strict";Oe.exports=J,J.displayName="cil",J.aliases=[];function J(S){S.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]+/}}},9720:function(Oe){"use strict";Oe.exports=J,J.displayName="clike",J.aliases=[];function J(S){S.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:/[{}[\];(),.:]/}}},63663:function(Oe){"use strict";Oe.exports=J,J.displayName="clojure",J.aliases=[];function J(S){S.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:/[{}\[\](),]/}}},92987:function(Oe){"use strict";Oe.exports=J,J.displayName="cmake",J.aliases=[];function J(S){S.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:/[()>}]|\$[<{]/}}},91657:function(Oe){"use strict";Oe.exports=J,J.displayName="cobol",J.aliases=[];function J(S){S.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:/[.:,()]/}}},34367:function(Oe){"use strict";Oe.exports=J,J.displayName="coffeescript",J.aliases=["coffee"];function J(S){(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})(S)}},35348:function(Oe){"use strict";Oe.exports=J,J.displayName="concurnas",J.aliases=["conc"];function J(S){S.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"}},S.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:S.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:S.languages.concurnas},string:/[\s\S]+/}}}),S.languages.conc=S.languages.concurnas}},26841:function(Oe){"use strict";Oe.exports=J,J.displayName="coq",J.aliases=[];function J(S){(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:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(S)}},87071:function(Oe,J,S){"use strict";var B=S(79440);Oe.exports=Y,Y.displayName="cpp",Y.aliases=[];function Y(s){s.register(B),function(w){var _=/\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 _.source});w.languages.cpp=w.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return _.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:_,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/}),w.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}}),w.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:w.languages.cpp}}}}),w.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),w.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:w.languages.extend("cpp",{})}}),w.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},w.languages.cpp["base-clause"])}(s)}},13652:function(Oe,J,S){"use strict";var B=S(75308);Oe.exports=Y,Y.displayName="crystal",Y.aliases=[];function Y(s){s.register(B),function(w){w.languages.crystal=w.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:[/->/,w.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),w.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:w.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:w.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)}},87648:function(Oe){"use strict";Oe.exports=J,J.displayName="csharp",J.aliases=["dotnet","cs"];function J(S){(function(B){function Y(_e,ne){return _e.replace(/<<(\d+)>>/g,function(ue,ce){return"(?:"+ne[+ce]+")"})}function s(_e,ne,ue){return RegExp(Y(_e,ne),ue||"")}function w(_e,ne){for(var ue=0;ue<ne;ue++)_e=_e.replace(/<<self>>/g,function(){return"(?:"+_e+")"});return _e.replace(/<<self>>/g,"[^\\s\\S]")}var _={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(_e){return"\\b(?:"+_e.trim().replace(/ /g,"|")+")\\b"}var p=u(_.typeDeclaration),y=RegExp(u(_.type+" "+_.typeDeclaration+" "+_.contextual+" "+_.other)),m=u(_.typeDeclaration+" "+_.contextual+" "+_.other),b=u(_.type+" "+_.typeDeclaration+" "+_.other),v=w(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),c=w(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,g=Y(/<<0>>(?:\s*<<1>>)?/.source,[h,v]),x=Y(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[m,g]),T=/\[\s*(?:,\s*)*\]/.source,I=Y(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[x,T]),R=Y(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[v,c,T]),N=Y(/\(<<0>>+(?:,<<0>>+)+\)/.source,[R]),k=Y(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[N,x,T]),L={keyword:y,punctuation:/[<>()?,.:[\]]/},H=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,M=/"(?:\\.|[^\\"\r\n])*"/.source,F=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;B.languages.csharp=B.languages.extend("clike",{string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:s(/(^|[^@$\\])<<0>>/.source,[M]),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,k]),lookbehind:!0,inside:L},{pattern:s(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:s(/(\b<<0>>\s+)<<1>>/.source,[p,g]),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,[I]),lookbehind:!0,inside:L},{pattern:s(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,b,h]),inside:L}],keyword:y,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,[k,x]),inside:L,alias:"class-name"},"constructor-invocation":{pattern:s(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),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,[p,g,h,k,y.source,c,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:s(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,c]),lookbehind:!0,greedy:!0,inside:B.languages.csharp},keyword:y,"class-name":{pattern:RegExp(k),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=M+"|"+H,U=Y(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[P]),G=w(Y(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[U]),2),Q=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ee=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,ee]),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 ae=/:[^}\r\n]+/.source,oe=w(Y(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[U]),2),he=Y(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[oe,ae]),le=w(Y(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[P]),2),be=Y(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[le,ae]);function pe(_e,ne){return{interpolation:{pattern:s(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[_e]),lookbehind:!0,inside:{"format-string":{pattern:s(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ne,ae]),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:pe(he,oe)},{pattern:s(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[be]),lookbehind:!0,greedy:!0,inside:pe(be,le)}],char:{pattern:RegExp(H),greedy:!0}}),B.languages.dotnet=B.languages.cs=B.languages.csharp})(S)}},10617:function(Oe,J,S){"use strict";var B=S(87648);Oe.exports=Y,Y.displayName="cshtml",Y.aliases=["razor"];function Y(s){s.register(B),function(w){var _=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,u=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function p(I,R){for(var N=0;N<R;N++)I=I.replace(/<self>/g,function(){return"(?:"+I+")"});return I.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+u+")").replace(/<comment>/g,"(?:"+_+")")}var y=p(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),m=p(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),b=p(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),v=p(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),c=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,h=/(?!\d)[^\s>\/=$<%]+/.source+c+/\s*\/?>/.source,g=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+c+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+p(/<\1/.source+c+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+h+")";w.languages.cshtml=w.languages.extend("markup",{});var x=w.languages.insertBefore("csharp","string",{html:{pattern:RegExp(g),greedy:!0,inside:w.languages.cshtml}},{csharp:w.languages.extend("csharp",{})}),T={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:x};w.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[b,/(?:code|functions)\s*/.source+b,/(?:for|foreach|lock|switch|using|while)\s*/.source+y+/\s*/.source+b,/do\s*/.source+b+/\s*while\s*/.source+y+/(?:\s*;)?/.source,/try\s*/.source+b+/\s*catch\s*/.source+y+/\s*/.source+b+/\s*finally\s*/.source+b,/if\s*/.source+y+/\s*/.source+b+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+y+")?"+/\s*/.source+b+")*"].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+"|"+y+")(?:"+/[?!]?\.\w+\b/.source+"|"+y+"|"+m+"|"+v+y+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:T}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),w.languages.razor=w.languages.cshtml}(s)}},5348:function(Oe){"use strict";Oe.exports=J,J.displayName="csp",J.aliases=[];function J(S){(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:/;/}})(S)}},71053:function(Oe){"use strict";Oe.exports=J,J.displayName="cssExtras",J.aliases=[];function J(S){(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 w={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},_={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:w,number:_,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:w,number:_})})(S)}},54212:function(Oe){"use strict";Oe.exports=J,J.displayName="css",J.aliases=[];function J(S){(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"))})(S)}},69820:function(Oe){"use strict";Oe.exports=J,J.displayName="csv",J.aliases=[];function J(S){S.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(Oe){"use strict";Oe.exports=J,J.displayName="cypher",J.aliases=[];function J(S){S.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:/[()[\]{},;.]/}}},51837:function(Oe){"use strict";Oe.exports=J,J.displayName="d",J.aliases=[];function J(S){S.languages.d=S.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|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),S.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),S.languages.insertBefore("d","keyword",{property:/\B@\w*/}),S.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"}})}},4182:function(Oe){"use strict";Oe.exports=J,J.displayName="dart",J.aliases=[];function J(S){(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,w={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":[w,{pattern:RegExp(s+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:w.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":w,keyword:Y,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(S)}},22117:function(Oe){"use strict";Oe.exports=J,J.displayName="dataweave",J.aliases=[];function J(S){(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/}})(S)}},95627:function(Oe){"use strict";Oe.exports=J,J.displayName="dax",J.aliases=[];function J(S){S.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:/[;\[\](){}`,.]/}}},34265:function(Oe){"use strict";Oe.exports=J,J.displayName="dhall",J.aliases=[];function J(S){S.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/},S.languages.dhall.string.inside.interpolation.inside.expression.inside=S.languages.dhall}},50618:function(Oe){"use strict";Oe.exports=J,J.displayName="diff",J.aliases=[];function J(S){(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 w=Y[s],_=[];/^\w+$/.test(s)||_.push(/\w+/.exec(s)[0]),s==="diff"&&_.push("bold"),B.languages.diff[s]={pattern:RegExp("^(?:["+w+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:_,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})})(S)}},32126:function(Oe,J,S){"use strict";var B=S(51478);Oe.exports=Y,Y.displayName="django",Y.aliases=["jinja2"];function Y(s){s.register(B),function(w){w.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 _=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,u=w.languages["markup-templating"];w.hooks.add("before-tokenize",function(p){u.buildPlaceholders(p,"django",_)}),w.hooks.add("after-tokenize",function(p){u.tokenizePlaceholders(p,"django")}),w.languages.jinja2=w.languages.django,w.hooks.add("before-tokenize",function(p){u.buildPlaceholders(p,"jinja2",_)}),w.hooks.add("after-tokenize",function(p){u.tokenizePlaceholders(p,"jinja2")})}(s)}},26737:function(Oe){"use strict";Oe.exports=J,J.displayName="dnsZoneFile",J.aliases=[];function J(S){S.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:/[()]/},S.languages["dns-zone"]=S.languages["dns-zone-file"]}},90134:function(Oe){"use strict";Oe.exports=J,J.displayName="docker",J.aliases=["dockerfile"];function J(S){(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}),w=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,_=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return w}),u={pattern:RegExp(w),greedy:!0},p={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function y(m,b){return m=m.replace(/<OPT>/g,function(){return _}).replace(/<SP>/g,function(){return s}),RegExp(m,b)}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:y(/(^(?: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:y(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:y(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:y(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:p,string:u,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:p},B.languages.dockerfile=B.languages.docker})(S)}},51348:function(Oe){"use strict";Oe.exports=J,J.displayName="dot",J.aliases=["gv"];function J(S){(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 w(_,u){return RegExp(_.replace(/<ID>/g,function(){return Y}),u)}B.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:w(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:s},"attr-value":{pattern:w(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:s},"attr-name":{pattern:w(/([\[;, \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:w(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:s},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},B.languages.gv=B.languages.dot})(S)}},60841:function(Oe){"use strict";Oe.exports=J,J.displayName="ebnf",J.aliases=[];function J(S){S.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:/[-=|*/!]/}}},42857:function(Oe){"use strict";Oe.exports=J,J.displayName="editorconfig",J.aliases=[];function J(S){S.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:/^=/}}}}},81269:function(Oe){"use strict";Oe.exports=J,J.displayName="eiffel",J.aliases=[];function J(S){S.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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},31134:function(Oe,J,S){"use strict";var B=S(51478);Oe.exports=Y,Y.displayName="ejs",Y.aliases=["eta"];function Y(s){s.register(B),function(w){w.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:w.languages.javascript}},w.hooks.add("before-tokenize",function(_){var u=/<%(?!%)[\s\S]+?%>/g;w.languages["markup-templating"].buildPlaceholders(_,"ejs",u)}),w.hooks.add("after-tokenize",function(_){w.languages["markup-templating"].tokenizePlaceholders(_,"ejs")}),w.languages.eta=w.languages.ejs}(s)}},83125:function(Oe){"use strict";Oe.exports=J,J.displayName="elixir",J.aliases=[];function J(S){S.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:/<<|>>|[.,%\[\]{}()]/},S.languages.elixir.string.forEach(function(B){B.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:S.languages.elixir}}}})}},9438:function(Oe){"use strict";Oe.exports=J,J.displayName="elm",J.aliases=[];function J(S){S.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:/[{}[\]|(),.:]/}}},27771:function(Oe,J,S){"use strict";var B=S(75308),Y=S(51478);Oe.exports=s,s.displayName="erb",s.aliases=[];function s(w){w.register(B),w.register(Y),function(_){_.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:_.languages.ruby}},_.hooks.add("before-tokenize",function(u){var p=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;_.languages["markup-templating"].buildPlaceholders(u,"erb",p)}),_.hooks.add("after-tokenize",function(u){_.languages["markup-templating"].tokenizePlaceholders(u,"erb")})}(w)}},86549:function(Oe){"use strict";Oe.exports=J,J.displayName="erlang",J.aliases=[];function J(S){S.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:/[()[\]{}:;,.#|]|<<|>>/}}},37079:function(Oe,J,S){"use strict";var B=S(33978),Y=S(51478);Oe.exports=s,s.displayName="etlua",s.aliases=[];function s(w){w.register(B),w.register(Y),function(_){_.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:_.languages.lua}},_.hooks.add("before-tokenize",function(u){var p=/<%[\s\S]+?%>/g;_.languages["markup-templating"].buildPlaceholders(u,"etlua",p)}),_.hooks.add("after-tokenize",function(u){_.languages["markup-templating"].tokenizePlaceholders(u,"etlua")})}(w)}},59250:function(Oe){"use strict";Oe.exports=J,J.displayName="excelFormula",J.aliases=[];function J(S){S.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:/[[\]();{}|]/},S.languages.xlsx=S.languages.xls=S.languages["excel-formula"]}},81226:function(Oe){"use strict";Oe.exports=J,J.displayName="factor",J.aliases=[];function J(S){(function(B){var Y={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},s={number:/\\[^\s']|%\w/},w={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}},_=function(m){return(m+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},u=function(m){return new RegExp("(^|\\s)(?:"+m.map(_).join("|")+")(?=\\s|$)")},p={"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(p).forEach(function(m){w[m].pattern=u(p[m])});var y=["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"];w.combinators.pattern=u(y),B.languages.factor=w})(S)}},65245:function(Oe){"use strict";Oe.exports=J,J.displayName="$false",J.aliases=[];function J(S){(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"}}})(S)}},25040:function(Oe){"use strict";Oe.exports=J,J.displayName="firestoreSecurityRules",J.aliases=[];function J(S){S.languages["firestore-security-rules"]=S.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete S.languages["firestore-security-rules"]["class-name"],S.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:/,/}}})}},40284:function(Oe){"use strict";Oe.exports=J,J.displayName="flow",J.aliases=[];function J(S){(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})})(S)}},39187:function(Oe){"use strict";Oe.exports=J,J.displayName="fortran",J.aliases=[];function J(S){S.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:/\(\/|\/\)|[(),;:&]/}}},34302:function(Oe){"use strict";Oe.exports=J,J.displayName="fsharp",J.aliases=[];function J(S){S.languages.fsharp=S.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}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),S.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"}}}}),S.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),S.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:S.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}})}},90515:function(Oe,J,S){"use strict";var B=S(51478);Oe.exports=Y,Y.displayName="ftl",Y.aliases=[];function Y(s){s.register(B),function(w){for(var _=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,u=0;u<2;u++)_=_.replace(/<expr>/g,function(){return _});_=_.replace(/<expr>/g,/[^\s\S]/.source);var p={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return _})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return _})),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:/[,;.:()[\]{}]/};p.string[1].inside.interpolation.inside.rest=p,w.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:p}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:p}}}},w.hooks.add("before-tokenize",function(y){var m=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return _}),"gi");w.languages["markup-templating"].buildPlaceholders(y,"ftl",m)}),w.hooks.add("after-tokenize",function(y){w.languages["markup-templating"].tokenizePlaceholders(y,"ftl")})}(s)}},33534:function(Oe){"use strict";Oe.exports=J,J.displayName="gap",J.aliases=[];function J(S){S.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:/[()[\]{},;.:]/},S.languages.gap.shell.inside.gap.inside=S.languages.gap}},9885:function(Oe){"use strict";Oe.exports=J,J.displayName="gcode",J.aliases=[];function J(S){S.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:/[:*]/}}},76364:function(Oe){"use strict";Oe.exports=J,J.displayName="gdscript",J.aliases=[];function J(S){S.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:/[.:,;()[\]{}]/}}},56452:function(Oe){"use strict";Oe.exports=J,J.displayName="gedcom",J.aliases=[];function J(S){S.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"}}}},8477:function(Oe){"use strict";Oe.exports=J,J.displayName="gherkin",J.aliases=[];function J(S){(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"}}})(S)}},58230:function(Oe){"use strict";Oe.exports=J,J.displayName="git",J.aliases=[];function J(S){S.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}}},66192:function(Oe,J,S){"use strict";var B=S(79440);Oe.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/})}},81084:function(Oe){"use strict";Oe.exports=J,J.displayName="gml",J.aliases=[];function J(S){S.languages.gamemakerlanguage=S.languages.gml=S.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/})}},50318:function(Oe){"use strict";Oe.exports=J,J.displayName="gn",J.aliases=["gni"];function J(S){S.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:/[(){}[\],.]/},S.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=S.languages.gn,S.languages.gni=S.languages.gn}},95769:function(Oe){"use strict";Oe.exports=J,J.displayName="goModule",J.aliases=[];function J(S){S.languages["go-mod"]=S.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:/[()[\],]/}}},14155:function(Oe){"use strict";Oe.exports=J,J.displayName="go",J.aliases=[];function J(S){S.languages.go=S.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/}),S.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete S.languages.go["class-name"]}},92823:function(Oe){"use strict";Oe.exports=J,J.displayName="graphql",J.aliases=[];function J(S){S.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:S.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+/},S.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"}),w=0;function _(T){return s[w+T]}function u(T,I){I=I||0;for(var R=0;R<T.length;R++){var N=_(R+I);if(!N||N.type!==T[R])return!1}return!0}function p(T,I){for(var R=1,N=w;N<s.length;N++){var k=s[N],L=k.content;if(k.type==="punctuation"&&typeof L=="string"){if(T.test(L))R++;else if(I.test(L)&&(R--,R===0))return N}}return-1}function y(T,I){var R=T.alias;R?Array.isArray(R)||(T.alias=R=[R]):T.alias=R=[],R.push(I)}for(;w<s.length;){var m=s[w++];if(m.type==="keyword"&&m.content==="mutation"){var b=[];if(u(["definition-mutation","punctuation"])&&_(1).content==="("){w+=2;var v=p(/^\($/,/^\)$/);if(v===-1)continue;for(;w<v;w++){var c=_(0);c.type==="variable"&&(y(c,"variable-input"),b.push(c.content))}w=v+1}if(u(["punctuation","property-query"])&&_(0).content==="{"&&(w++,y(_(0),"property-mutation"),b.length>0)){var h=p(/^\{$/,/^\}$/);if(h===-1)continue;for(var g=w;g<h;g++){var x=s[g];x.type==="variable"&&b.indexOf(x.content)>=0&&y(x,"variable-input")}}}}})}},63092:function(Oe){"use strict";Oe.exports=J,J.displayName="groovy",J.aliases=[];function J(S){S.languages.groovy=S.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:/\.+|[{}[\];(),:$]/}),S.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),S.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),S.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),S.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=S.highlight(B.content.value,{expression:{pattern:s,lookbehind:!0,inside:S.languages.groovy}}),B.classes.push(Y==="/"?"regex":"gstring")}}})}},21550:function(Oe,J,S){"use strict";var B=S(75308);Oe.exports=Y,Y.displayName="haml",Y.aliases=[];function Y(s){s.register(B),function(w){w.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:w.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:w.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:w.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:w.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:w.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:w.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:w.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var _="((?:^|\\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"],p={},y=0,m=u.length;y<m;y++){var b=u[y];b=typeof b=="string"?{filter:b,language:b}:b,w.languages[b.language]&&(p["filter-"+b.filter]={pattern:RegExp(_.replace("{{filter_name}}",function(){return b.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[b.language,"language-"+b.language],inside:w.languages[b.language]}}})}w.languages.insertBefore("haml","filter",p)}(s)}},29710:function(Oe,J,S){"use strict";var B=S(51478);Oe.exports=Y,Y.displayName="handlebars",Y.aliases=["hbs"];function Y(s){s.register(B),function(w){w.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]+/},w.hooks.add("before-tokenize",function(_){var u=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;w.languages["markup-templating"].buildPlaceholders(_,"handlebars",u)}),w.hooks.add("after-tokenize",function(_){w.languages["markup-templating"].tokenizePlaceholders(_,"handlebars")}),w.languages.hbs=w.languages.handlebars}(s)}},2050:function(Oe){"use strict";Oe.exports=J,J.displayName="haskell",J.aliases=["hs"];function J(S){S.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:/[{}[\];(),.:]/},S.languages.hs=S.languages.haskell}},67967:function(Oe){"use strict";Oe.exports=J,J.displayName="haxe",J.aliases=[];function J(S){S.languages.haxe=S.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}|[-+*/%!=&|^])=?|[?:~]/}),S.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:S.languages.haxe}}},string:/[\s\S]+/}}}),S.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:S.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),S.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},29138:function(Oe){"use strict";Oe.exports=J,J.displayName="hcl",J.aliases=[];function J(S){S.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:/[=\[\]{}]/}}},67915:function(Oe,J,S){"use strict";var B=S(79440);Oe.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/})}},54853:function(Oe){"use strict";Oe.exports=J,J.displayName="hoon",J.aliases=[];function J(S){S.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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},68330:function(Oe){"use strict";Oe.exports=J,J.displayName="hpkp",J.aliases=[];function J(S){S.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(Oe){"use strict";Oe.exports=J,J.displayName="hsts",J.aliases=[];function J(S){S.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(Oe){"use strict";Oe.exports=J,J.displayName="http",J.aliases=[];function J(S){(function(B){function Y(b){return RegExp("(^(?:"+b+"):[ ]*(?![ ]))[^]+","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,w={"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},_={"application/json":!0,"application/xml":!0};function u(b){var v=b.replace(/^[a-z]+\//,""),c="\\w+/(?:[\\w.-]+\\+)+"+v+"(?![+\\w.-])";return"(?:"+b+"|"+c+")"}var p;for(var y in w)if(w[y]){p=p||{};var m=_[y]?u(y):y;p[y.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+m+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:w[y]}}p&&B.languages.insertBefore("http","header",p)})(S)}},72252:function(Oe){"use strict";Oe.exports=J,J.displayName="ichigojam",J.aliases=[];function J(S){S.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:/[\[,;:()\]]/}}},78634:function(Oe){"use strict";Oe.exports=J,J.displayName="icon",J.aliases=[];function J(S){S.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:/[\[\](){},;]/}}},43583:function(Oe){"use strict";Oe.exports=J,J.displayName="icuMessageFormat",J.aliases=[];function J(S){(function(B){function Y(y,m){return m<=0?/[]/.source:y.replace(/<SELF>/g,function(){return Y(y,m-1)})}var s=/'[{}:=,](?:[^']|'')*'(?!')/,w={pattern:/''/,greedy:!0,alias:"operator"},_={pattern:s,greedy:!0,inside:{escape:w}},u=Y(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return s.source}),8),p={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":p,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":p,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:w,string:_},p.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"]})(S)}},23328:function(Oe,J,S){"use strict";var B=S(2050);Oe.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}},74494:function(Oe){"use strict";Oe.exports=J,J.displayName="iecst",J.aliases=[];function J(S){S.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:/[()[\].,;]/}}},46745:function(Oe){"use strict";Oe.exports=J,J.displayName="ignore",J.aliases=["gitignore","hgignore","npmignore"];function J(S){(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})(S)}},22152:function(Oe){"use strict";Oe.exports=J,J.displayName="inform7",J.aliases=[];function J(S){S.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:/[.,:;(){}]/},S.languages.inform7.string.inside.substitution.inside.rest=S.languages.inform7,S.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(Oe){"use strict";Oe.exports=J,J.displayName="ini",J.aliases=[];function J(S){S.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:/=/}}},26619:function(Oe){"use strict";Oe.exports=J,J.displayName="io",J.aliases=[];function J(S){S.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:/[{}[\];(),.:]/}}},53990:function(Oe){"use strict";Oe.exports=J,J.displayName="j",J.aliases=[];function J(S){S.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:/[()]/}}},7093:function(Oe){"use strict";Oe.exports=J,J.displayName="java",J.aliases=[];function J(S){(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,w={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":[w,{pattern:RegExp(s+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:w.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":w,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:/\./}}})})(S)}},4005:function(Oe,J,S){"use strict";var B=S(7093),Y=S(53510);Oe.exports=s,s.displayName="javadoc",s.aliases=[];function s(w){w.register(B),w.register(Y),function(_){var u=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,p=/#\s*\w+(?:\s*\([^()]*\))?/.source,y=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return p});_.languages.javadoc=_.languages.extend("javadoclike",{}),_.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+y+")"),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:_.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:_.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:_.languages.markup.tag,entity:_.languages.markup.entity,code:{pattern:/.+/,inside:_.languages.java,alias:"language-java"}}}}}],tag:_.languages.markup.tag,entity:_.languages.markup.entity}),_.languages.javadoclike.addSupport("java",_.languages.javadoc)}(w)}},53510:function(Oe){"use strict";Oe.exports=J,J.displayName="javadoclike",J.aliases=[];function J(S){(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(_,u){var p="doc-comment",y=B.languages[_];if(y){var m=y[p];if(!m){var b={};b[p]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},y=B.languages.insertBefore(_,"comment",b),m=y[p]}if(m instanceof RegExp&&(m=y[p]={pattern:m}),Array.isArray(m))for(var v=0,c=m.length;v<c;v++)m[v]instanceof RegExp&&(m[v]={pattern:m[v]}),u(m[v]);else u(m)}}function w(_,u){typeof _=="string"&&(_=[_]),_.forEach(function(p){s(p,function(y){y.inside||(y.inside={}),y.inside.rest=u})})}Object.defineProperty(Y,"addSupport",{value:w}),Y.addSupport(["java","javascript","php"],Y)})(S)}},88786:function(Oe){"use strict";Oe.exports=J,J.displayName="javascript",J.aliases=["js"];function J(S){S.languages.javascript=S.languages.extend("clike",{"class-name":[S.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}|\?\?=?|\?\.?|[~:]/}),S.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,S.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:S.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:S.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:S.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:S.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:S.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),S.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:S.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"}}),S.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),S.languages.markup&&(S.languages.markup.tag.addInlined("script","javascript"),S.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")),S.languages.js=S.languages.javascript}},24799:function(Oe){"use strict";Oe.exports=J,J.displayName="javastacktrace",J.aliases=[];function J(S){S.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/}}}}},97443:function(Oe){"use strict";Oe.exports=J,J.displayName="jexl",J.aliases=[];function J(S){S.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:/[{}[\](),.]/}}},80746:function(Oe){"use strict";Oe.exports=J,J.displayName="jolie",J.aliases=[];function J(S){S.languages.jolie=S.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/}),S.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]*:)/}})}},17015:function(Oe){"use strict";Oe.exports=J,J.displayName="jq",J.aliases=[];function J(S){(function(B){var Y=/\\\((?:[^()]|\([^()]*\))*\)/.source,s=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Y})),w={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Y),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},_=B.languages.jq={comment:/#.*/,property:{pattern:RegExp(s.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:w},string:{pattern:s,lookbehind:!0,greedy:!0,inside:w},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"}};w.interpolation.inside.content.inside=_})(S)}},89246:function(Oe){"use strict";Oe.exports=J,J.displayName="jsExtras",J.aliases=[];function J(S){(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(y,m){return RegExp(y.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),m)}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"],w=0;w<s.length;w++){var _=s[w],u=B.languages.javascript[_];B.util.type(u)==="RegExp"&&(u=B.languages.javascript[_]={pattern:u});var p=u.inside||{};u.inside=p,p["maybe-class-name"]=/^[A-Z][\s\S]*/}})(S)}},487:function(Oe){"use strict";Oe.exports=J,J.displayName="jsTemplates",J.aliases=[];function J(S){(function(B){var Y=B.languages.javascript["template-string"],s=Y.pattern.source,w=Y.inside.interpolation,_=w.inside["interpolation-punctuation"],u=w.pattern.source;function p(g,x){if(B.languages[g])return{pattern:RegExp("((?:"+x+")\\s*)"+s),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}B.languages.javascript["template-string"]=[p("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),p("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),p("svg",/\bsvg/.source),p("markdown",/\b(?:markdown|md)/.source),p("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),p("sql",/\bsql/.source),Y].filter(Boolean);function y(g,x){return"___"+x.toUpperCase()+"_"+g+"___"}function m(g,x,T){var I={code:g,grammar:x,language:T};return B.hooks.run("before-tokenize",I),I.tokens=B.tokenize(I.code,I.grammar),B.hooks.run("after-tokenize",I),I.tokens}function b(g){var x={};x["interpolation-punctuation"]=_;var T=B.tokenize(g,x);if(T.length===3){var I=[1,1];I.push.apply(I,m(T[1],B.languages.javascript,"javascript")),T.splice.apply(T,I)}return new B.Token("interpolation",T,w.alias,g)}function v(g,x,T){var I=B.tokenize(g,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),R=0,N={},k=I.map(function(F){if(typeof F=="string")return F;for(var P=F.content,U;g.indexOf(U=y(R++,T))!==-1;);return N[U]=P,U}).join(""),L=m(k,x,T),H=Object.keys(N);R=0;function M(F){for(var P=0;P<F.length;P++){if(R>=H.length)return;var U=F[P];if(typeof U=="string"||typeof U.content=="string"){var G=H[R],Q=typeof U=="string"?U:U.content,ee=Q.indexOf(G);if(ee!==-1){++R;var ae=Q.substring(0,ee),oe=b(N[G]),he=Q.substring(ee+G.length),le=[];if(ae&&le.push(ae),le.push(oe),he){var be=[he];M(be),le.push.apply(le,be)}typeof U=="string"?(F.splice.apply(F,[P,1].concat(le)),P+=le.length-1):U.content=le}}else{var pe=U.content;Array.isArray(pe)?M(pe):M([pe])}}}return M(L),new B.Token(T,L,"language-"+T,g)}var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};B.hooks.add("after-tokenize",function(g){if(!(g.language in c))return;function x(T){for(var I=0,R=T.length;I<R;I++){var N=T[I];if(typeof N!="string"){var k=N.content;if(!Array.isArray(k)){typeof k!="string"&&x([k]);continue}if(N.type==="template-string"){var L=k[1];if(k.length===3&&typeof L!="string"&&L.type==="embedded-code"){var H=h(L),M=L.alias,F=Array.isArray(M)?M[0]:M,P=B.languages[F];if(!P)continue;k[1]=v(H,P,F)}}else x(k)}}}x(g.tokens)});function h(g){return typeof g=="string"?g:Array.isArray(g)?g.map(h).join(""):h(g.content)}})(S)}},79539:function(Oe,J,S){"use strict";var B=S(53510),Y=S(92784);Oe.exports=s,s.displayName="jsdoc",s.aliases=[];function s(w){w.register(B),w.register(Y),function(_){var u=_.languages.javascript,p=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,y="(@(?:arg|argument|param|property)\\s+(?:"+p+"\\s+)?)";_.languages.jsdoc=_.languages.extend("javadoclike",{parameter:{pattern:RegExp(y+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),_.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(y+/\[(?:(?!\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 p})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+p),lookbehind:!0,inside:{string:u.string,number:u.number,boolean:u.boolean,keyword:_.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"}}}}),_.languages.javadoclike.addSupport("javascript",_.languages.jsdoc)}(w)}},15628:function(Oe){"use strict";Oe.exports=J,J.displayName="json",J.aliases=["webmanifest"];function J(S){S.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"}},S.languages.webmanifest=S.languages.json}},14320:function(Oe,J,S){"use strict";var B=S(15628);Oe.exports=Y,Y.displayName="json5",Y.aliases=[];function Y(s){s.register(B),function(w){var _=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;w.languages.json5=w.languages.extend("json",{property:[{pattern:RegExp(_.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:_,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(s)}},73222:function(Oe,J,S){"use strict";var B=S(15628);Oe.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*\()/})}},92486:function(Oe){"use strict";Oe.exports=J,J.displayName="jsstacktrace",J.aliases=[];function J(S){S.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:/:/}}}}}}},24103:function(Oe){"use strict";Oe.exports=J,J.displayName="jsx",J.aliases=[];function J(S){(function(B){var Y=B.util.clone(B.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,w=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,_=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(m,b){return m=m.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return w}).replace(/<SPREAD>/g,function(){return _}),RegExp(m,b)}_=u(_).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 p=function(m){return m?typeof m=="string"?m:typeof m.content=="string"?m.content:m.content.map(p).join(""):""},y=function(m){for(var b=[],v=0;v<m.length;v++){var c=m[v],h=!1;if(typeof c!="string"&&(c.type==="tag"&&c.content[0]&&c.content[0].type==="tag"?c.content[0].content[0].content==="</"?b.length>0&&b[b.length-1].tagName===p(c.content[0].content[1])&&b.pop():c.content[c.content.length-1].content==="/>"||b.push({tagName:p(c.content[0].content[1]),openedBraces:0}):b.length>0&&c.type==="punctuation"&&c.content==="{"?b[b.length-1].openedBraces++:b.length>0&&b[b.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?b[b.length-1].openedBraces--:h=!0),(h||typeof c=="string")&&b.length>0&&b[b.length-1].openedBraces===0){var g=p(c);v<m.length-1&&(typeof m[v+1]=="string"||m[v+1].type==="plain-text")&&(g+=p(m[v+1]),m.splice(v+1,1)),v>0&&(typeof m[v-1]=="string"||m[v-1].type==="plain-text")&&(g=p(m[v-1])+g,m.splice(v-1,1),v--),m[v]=new B.Token("plain-text",g,null,g)}c.content&&typeof c.content!="string"&&y(c.content)}};B.hooks.add("after-tokenize",function(m){m.language!=="jsx"&&m.language!=="tsx"||y(m.tokens)})})(S)}},40604:function(Oe){"use strict";Oe.exports=J,J.displayName="julia",J.aliases=[];function J(S){S.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|[πℯ]/}}},23109:function(Oe){"use strict";Oe.exports=J,J.displayName="keepalived",J.aliases=[];function J(S){S.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:/[\{\}]/}}},32082:function(Oe){"use strict";Oe.exports=J,J.displayName="keyman",J.aliases=[];function J(S){S.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:/[()=,]/}}},77674:function(Oe){"use strict";Oe.exports=J,J.displayName="kotlin",J.aliases=["kt","kts"];function J(S){(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})(S)}},37524:function(Oe){"use strict";Oe.exports=J,J.displayName="kumir",J.aliases=["kum"];function J(S){(function(B){var Y=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function s(w,_){return RegExp(w.replace(/<nonId>/g,Y),_)}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})(S)}},6658:function(Oe){"use strict";Oe.exports=J,J.displayName="kusto",J.aliases=[];function J(S){S.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:/[()\[\]{},;.:]/}}},24824:function(Oe){"use strict";Oe.exports=J,J.displayName="latex",J.aliases=["tex","context"];function J(S){(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})(S)}},22776:function(Oe,J,S){"use strict";var B=S(51478),Y=S(53852);Oe.exports=s,s.displayName="latte",s.aliases=[];function s(w){w.register(B),w.register(Y),function(_){_.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:_.languages.php}};var u=_.languages.extend("markup",{});_.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:_.languages.php}}}}}},u.tag),_.hooks.add("before-tokenize",function(p){if(p.language==="latte"){var y=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;_.languages["markup-templating"].buildPlaceholders(p,"latte",y),p.grammar=u}}),_.hooks.add("after-tokenize",function(p){_.languages["markup-templating"].tokenizePlaceholders(p,"latte")})}(w)}},89700:function(Oe){"use strict";Oe.exports=J,J.displayName="less",J.aliases=[];function J(S){S.languages.less=S.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:/[+\-*\/]/}),S.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(Oe,J,S){"use strict";var B=S(48780);Oe.exports=Y,Y.displayName="lilypond",Y.aliases=[];function Y(s){s.register(B),function(w){for(var _=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,u=5,p=0;p<u;p++)_=_.replace(/<expr>/g,function(){return _});_=_.replace(/<expr>/g,/[^\s\S]/.source);var y=w.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return _}),"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:w.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/};y["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=y,w.languages.ly=y}(s)}},39940:function(Oe,J,S){"use strict";var B=S(51478);Oe.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(w){var _=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,u=!1;s.languages["markup-templating"].buildPlaceholders(w,"liquid",_,function(p){var y=/^\{%-?\s*(\w+)/.exec(p);if(y){var m=y[1];if(m==="raw"&&!u)return u=!0,!0;if(m==="endraw")return u=!1,!0}return!u})}),s.hooks.add("after-tokenize",function(w){s.languages["markup-templating"].tokenizePlaceholders(w,"liquid")})}},34973:function(Oe){"use strict";Oe.exports=J,J.displayName="lisp",J.aliases=[];function J(S){(function(B){function Y(g){return RegExp(/(\()/.source+"(?:"+g+")"+/(?=[\s\)])/.source)}function s(g){return RegExp(/([\s([])/.source+"(?:"+g+")"+/(?=[\s)])/.source)}var w=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,_="&"+w,u="(\\()",p="(?=\\))",y="(?=\\s)",m=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,b={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+w+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+w),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+w),alias:"property"},splice:{pattern:RegExp(",@?"+w),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)"+y),lookbehind:!0},{pattern:RegExp(u+"(?:append|by|collect|concat|do|finally|for|in|return)"+y),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+"+w),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(w)}},defun:{pattern:RegExp(u+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+w+/\s+\(/.source+m+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+w),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(u+"lambda\\s+\\(\\s*(?:&?"+w+"(?:\\s+&?"+w+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(u+w),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},v={"lisp-marker":RegExp(_),varform:{pattern:RegExp(/\(/.source+w+/\s+(?=\S)/.source+m+/\)/.source),inside:b},argument:{pattern:RegExp(/(^|[\s(])/.source+w),lookbehind:!0,alias:"variable"},rest:b},c="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(u+m+p),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(w),alias:"variable"},punctuation:/[()]/}};b.lambda.inside.arguments=h,b.defun.inside.arguments=B.util.clone(h),b.defun.inside.arguments.inside.sublist=h,B.languages.lisp=b,B.languages.elisp=b,B.languages.emacs=b,B.languages["emacs-lisp"]=b})(S)}},98135:function(Oe){"use strict";Oe.exports=J,J.displayName="livescript",J.aliases=[];function J(S){S.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:/[(){}\[\]|.,:;`]/},S.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=S.languages.livescript}},36907:function(Oe){"use strict";Oe.exports=J,J.displayName="llvm",J.aliases=[];function J(S){(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:/[{}[\];(),.!*=<>]/}})(S)}},3567:function(Oe){"use strict";Oe.exports=J,J.displayName="log",J.aliases=[];function J(S){S.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:S.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:/[\[\].,]/}}},23763:function(Oe){"use strict";Oe.exports=J,J.displayName="lolcode",J.aliases=[];function J(S){S.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}|…|,|!/}}},33978:function(Oe){"use strict";Oe.exports=J,J.displayName="lua",J.aliases=[];function J(S){S.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:/[\[\](){},;]|\.+|:+/}}},40472:function(Oe){"use strict";Oe.exports=J,J.displayName="magma",J.aliases=[];function J(S){S.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:/[()[\]{}<>,;.:]/}}},44695:function(Oe){"use strict";Oe.exports=J,J.displayName="makefile",J.aliases=[];function J(S){S.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:/[:;(){}]/}}},53885:function(Oe){"use strict";Oe.exports=J,J.displayName="markdown",J.aliases=["md"];function J(S){(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 w=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,_=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return w}),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("^"+_+u+"(?:"+_+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+_+u+")(?:"+_+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(w),inside:B.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+_+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+_+"$"),inside:{"table-header":{pattern:RegExp(w),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 g=0,x=h.length;g<x;g++){var T=h[g];if(T.type!=="code"){c(T.content);continue}var I=T.content[1],R=T.content[3];if(I&&R&&I.type==="code-language"&&R.type==="code-block"&&typeof I.content=="string"){var N=I.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");N=(/[a-z][\w-]*/i.exec(N)||[""])[0].toLowerCase();var k="language-"+N;R.alias?typeof R.alias=="string"?R.alias=[R.alias,k]:R.alias.push(k):R.alias=[k]}}}c(v.tokens)}),B.hooks.add("wrap",function(v){if(v.type==="code-block"){for(var c="",h=0,g=v.classes.length;h<g;h++){var x=v.classes[h],T=/language-(.+)/.exec(x);if(T){c=T[1];break}}var I=B.languages[c];if(I)v.content=B.highlight(b(v.content.value),I,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 N=document.getElementById(R);N&&(N.innerHTML=B.highlight(N.textContent,B.languages[c],c))})}}});var p=RegExp(B.languages.markup.tag.pattern.source,"gi"),y={amp:"&",lt:"<",gt:">",quot:'"'},m=String.fromCodePoint||String.fromCharCode;function b(v){var c=v.replace(p,"");return c=c.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,g){if(g=g.toLowerCase(),g[0]==="#"){var x;return g[1]==="x"?x=parseInt(g.slice(2),16):x=Number(g.slice(1)),m(x)}else{var T=y[g];return T||h}}),c}B.languages.md=B.languages.markdown})(S)}},51478:function(Oe){"use strict";Oe.exports=J,J.displayName="markupTemplating",J.aliases=[];function J(S){(function(B){function Y(s,w){return"___"+s.toUpperCase()+w+"___"}Object.defineProperties(B.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,w,_,u){if(s.language===w){var p=s.tokenStack=[];s.code=s.code.replace(_,function(y){if(typeof u=="function"&&!u(y))return y;for(var m=p.length,b;s.code.indexOf(b=Y(w,m))!==-1;)++m;return p[m]=y,b}),s.grammar=B.languages.markup}}},tokenizePlaceholders:{value:function(s,w){if(s.language!==w||!s.tokenStack)return;s.grammar=B.languages[w];var _=0,u=Object.keys(s.tokenStack);function p(y){for(var m=0;m<y.length&&!(_>=u.length);m++){var b=y[m];if(typeof b=="string"||b.content&&typeof b.content=="string"){var v=u[_],c=s.tokenStack[v],h=typeof b=="string"?b:b.content,g=Y(w,v),x=h.indexOf(g);if(x>-1){++_;var T=h.substring(0,x),I=new B.Token(w,B.tokenize(c,s.grammar),"language-"+w,c),R=h.substring(x+g.length),N=[];T&&N.push.apply(N,p([T])),N.push(I),R&&N.push.apply(N,p([R])),typeof b=="string"?y.splice.apply(y,[m,1].concat(N)):b.content=N}}else b.content&&p(b.content)}return y}p(s.tokens)}}})})(S)}},70614:function(Oe){"use strict";Oe.exports=J,J.displayName="markup",J.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function J(S){S.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]},S.languages.markup.tag.inside["attr-value"].inside.entity=S.languages.markup.entity,S.languages.markup.doctype.inside["internal-subset"].inside=S.languages.markup,S.hooks.add("wrap",function(B){B.type==="entity"&&(B.attributes.title=B.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(S.languages.markup.tag,"addInlined",{value:function(Y,s){var w={};w["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:S.languages[s]},w.cdata=/^<!\[CDATA\[|\]\]>$/i;var _={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:w}};_["language-"+s]={pattern:/[\s\S]+/,inside:S.languages[s]};var u={};u[Y]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Y}),"i"),lookbehind:!0,greedy:!0,inside:_},S.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(S.languages.markup.tag,"addAttribute",{value:function(B,Y){S.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:S.languages[Y]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),S.languages.html=S.languages.markup,S.languages.mathml=S.languages.markup,S.languages.svg=S.languages.markup,S.languages.xml=S.languages.extend("markup",{}),S.languages.ssml=S.languages.xml,S.languages.atom=S.languages.xml,S.languages.rss=S.languages.xml}},16928:function(Oe){"use strict";Oe.exports=J,J.displayName="matlab",J.aliases=[];function J(S){S.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}|[.,;\[\](){}!]/}}},13586:function(Oe){"use strict";Oe.exports=J,J.displayName="maxscript",J.aliases=[];function J(S){(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}})(S)}},37164:function(Oe){"use strict";Oe.exports=J,J.displayName="mel",J.aliases=[];function J(S){S.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:/<<|>>|[.,:;?\[\](){}]/},S.languages.mel.code.inside.rest=S.languages.mel}},25153:function(Oe){"use strict";Oe.exports=J,J.displayName="mermaid",J.aliases=[];function J(S){S.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:/[(){};]/}}},33245:function(Oe){"use strict";Oe.exports=J,J.displayName="mizar",J.aliases=[];function J(S){S.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:/\(#|#\)|[,:;\[\](){}]/}}},32218:function(Oe){"use strict";Oe.exports=J,J.displayName="mongodb",J.aliases=[];function J(S){(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(_){return _.replace("$","\\$")});var w="(?:"+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(`^(['"])?`+w+"(?:\\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"}})})(S)}},65626:function(Oe){"use strict";Oe.exports=J,J.displayName="monkey",J.aliases=[];function J(S){S.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:/[.,:;()\[\]]/}}},60090:function(Oe){"use strict";Oe.exports=J,J.displayName="moonscript",J.aliases=["moon"];function J(S){S.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:/[.,()[\]{}\\]/},S.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=S.languages.moonscript,S.languages.moon=S.languages.moonscript}},40722:function(Oe){"use strict";Oe.exports=J,J.displayName="n1ql",J.aliases=[];function J(S){S.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:/[;[\](),.{}:]/}}},37783:function(Oe){"use strict";Oe.exports=J,J.displayName="n4js",J.aliases=["n4jsd"];function J(S){S.languages.n4js=S.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/}),S.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),S.languages.n4jsd=S.languages.n4js}},41224:function(Oe){"use strict";Oe.exports=J,J.displayName="nand2tetrisHdl",J.aliases=[];function J(S){S.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:/[{}[\];(),:]/}}},71365:function(Oe){"use strict";Oe.exports=J,J.displayName="naniscript",J.aliases=[];function J(S){(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 p=u.tokens;p.forEach(function(y){if(typeof y!="string"&&y.type==="generic-text"){var m=_(y);w(m)||(y.type="bad-line",y.content=m)}})});function w(u){for(var p="[]{}",y=[],m=0;m<u.length;m++){var b=u[m],v=p.indexOf(b);if(v!==-1){if(v%2===0)y.push(v+1);else if(y.pop()!==v)return!1}}return y.length===0}function _(u){return typeof u=="string"?u:Array.isArray(u)?u.map(_).join(""):_(u.content)}})(S)}},42846:function(Oe){"use strict";Oe.exports=J,J.displayName="nasm",J.aliases=[];function J(S){S.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:/[\[\]*+\-\/%<>=&|$!]/}}},32964:function(Oe){"use strict";Oe.exports=J,J.displayName="neon",J.aliases=[];function J(S){S.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:/[,:=[\]{}()-]/}}},78830:function(Oe){"use strict";Oe.exports=J,J.displayName="nevod",J.aliases=[];function J(S){S.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\-.]+/}}},88799:function(Oe){"use strict";Oe.exports=J,J.displayName="nginx",J.aliases=[];function J(S){(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:/[{};]/}})(S)}},66791:function(Oe){"use strict";Oe.exports=J,J.displayName="nim",J.aliases=[];function J(S){S.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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},41735:function(Oe){"use strict";Oe.exports=J,J.displayName="nix",J.aliases=[];function J(S){S.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:/[{}()[\].,:;]/},S.languages.nix.string.inside.interpolation.inside=S.languages.nix}},13490:function(Oe){"use strict";Oe.exports=J,J.displayName="nsis",J.aliases=[];function J(S){S.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}}}},7383:function(Oe,J,S){"use strict";var B=S(79440);Oe.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}},66894:function(Oe){"use strict";Oe.exports=J,J.displayName="ocaml",J.aliases=[];function J(S){S.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/}}},45779:function(Oe,J,S){"use strict";var B=S(79440);Oe.exports=Y,Y.displayName="opencl",Y.aliases=[];function Y(s){s.register(B),function(w){w.languages.opencl=w.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"}}),w.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 _={"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"}};w.languages.insertBefore("c","keyword",_),w.languages.cpp&&(_["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"},w.languages.insertBefore("cpp","keyword",_))}(s)}},27734:function(Oe){"use strict";Oe.exports=J,J.displayName="openqasm",J.aliases=["qasm"];function J(S){S.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:/[(){}\[\];,:.]/},S.languages.qasm=S.languages.openqasm}},91889:function(Oe){"use strict";Oe.exports=J,J.displayName="oz",J.aliases=[];function J(S){S.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:/[\[\](){}.:;?]/}}},55965:function(Oe){"use strict";Oe.exports=J,J.displayName="parigp",J.aliases=[];function J(S){S.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:/[\[\]{}().,:;|]/}}},37326:function(Oe){"use strict";Oe.exports=J,J.displayName="parser",J.aliases=[];function J(S){(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"])})(S)}},92949:function(Oe){"use strict";Oe.exports=J,J.displayName="pascal",J.aliases=["objectpascal"];function J(S){S.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:/\(\.|\.\)|[()\[\]:;,.]/},S.languages.pascal.asm.inside=S.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),S.languages.objectpascal=S.languages.pascal}},5681:function(Oe){"use strict";Oe.exports=J,J.displayName="pascaligo",J.aliases=[];function J(S){(function(B){var Y=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,s=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Y}),w=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:/\(\.|\.\)|[()\[\]:;,.{}]/},_=["comment","keyword","builtin","operator","punctuation"].reduce(function(u,p){return u[p]=w[p],u},{});w["class-name"].forEach(function(u){u.inside=_})})(S)}},70696:function(Oe){"use strict";Oe.exports=J,J.displayName="pcaxis",J.aliases=["px"];function J(S){S.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/},S.languages.px=S.languages.pcaxis}},35790:function(Oe){"use strict";Oe.exports=J,J.displayName="peoplecode",J.aliases=["pcode"];function J(S){S.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:/[:.;,()[\]]/},S.languages.pcode=S.languages.peoplecode}},25777:function(Oe){"use strict";Oe.exports=J,J.displayName="perl",J.aliases=[];function J(S){(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:/[{}[\];(),:]/}})(S)}},65889:function(Oe,J,S){"use strict";var B=S(53852);Oe.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:/::|\\/}}})}},53852:function(Oe,J,S){"use strict";var B=S(51478);Oe.exports=Y,Y.displayName="php",Y.aliases=[];function Y(s){s.register(B),function(w){var _=/\/\*[\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*\()/],p=/\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,y=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,m=/[{}\[\](),:;]/;w.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:_,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:p,operator:y,punctuation:m};var b={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:w.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:b}},{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:b}}];w.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:_,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:p,operator:y,punctuation:m}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),w.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var h=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;w.languages["markup-templating"].buildPlaceholders(c,"php",h)}}),w.hooks.add("after-tokenize",function(c){w.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(s)}},97719:function(Oe,J,S){"use strict";var B=S(53852),Y=S(53510);Oe.exports=s,s.displayName="phpdoc",s.aliases=[];function s(w){w.register(B),w.register(Y),function(_){var u=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;_.languages.phpdoc=_.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+u+"\\s+)?)\\$\\w+"),lookbehind:!0}}),_.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:/[|\\[\]()]/}}]}),_.languages.javadoclike.addSupport("php",_.languages.phpdoc)}(w)}},63839:function(Oe,J,S){"use strict";var B=S(69435);Oe.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"}})}},67623:function(Oe){"use strict";Oe.exports=J,J.displayName="powerquery",J.aliases=[];function J(S){S.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:/[,;\[\](){}]/},S.languages.pq=S.languages.powerquery,S.languages.mscript=S.languages.powerquery}},32530:function(Oe){"use strict";Oe.exports=J,J.displayName="powershell",J.aliases=[];function J(S){(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}})(S)}},8938:function(Oe){"use strict";Oe.exports=J,J.displayName="processing",J.aliases=[];function J(S){S.languages.processing=S.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),S.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"}})}},55259:function(Oe){"use strict";Oe.exports=J,J.displayName="prolog",J.aliases=[];function J(S){S.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:/[(){}\[\],]/}}},67411:function(Oe){"use strict";Oe.exports=J,J.displayName="promql",J.aliases=[];function J(S){(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"],w=["offset"],_=Y.concat(s,w);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(?:"+_.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:/[{};()`,.[\]]/}})(S)}},15375:function(Oe){"use strict";Oe.exports=J,J.displayName="properties",J.aliases=[];function J(S){S.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:/[=:]/}}},12093:function(Oe){"use strict";Oe.exports=J,J.displayName="protobuf",J.aliases=[];function J(S){(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}})})(S)}},83588:function(Oe){"use strict";Oe.exports=J,J.displayName="psl",J.aliases=[];function J(S){S.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:/[(){}\[\];,]/}}},94127:function(Oe){"use strict";Oe.exports=J,J.displayName="pug",J.aliases=[];function J(S){(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"],w={},_=0,u=s.length;_<u;_++){var p=s[_];p=typeof p=="string"?{filter:p,language:p}:p,B.languages[p.language]&&(w["filter-"+p.filter]={pattern:RegExp(Y.replace("<filter_name>",function(){return p.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[p.language,"language-"+p.language],inside:B.languages[p.language]}}})}B.languages.insertBefore("pug","filter",w)})(S)}},21294:function(Oe){"use strict";Oe.exports=J,J.displayName="puppet",J.aliases=[];function J(S){(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})(S)}},38709:function(Oe){"use strict";Oe.exports=J,J.displayName="pure",J.aliases=[];function J(S){(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(w){var _=w;if(typeof w!="string"&&(_=w.alias,w=w.lang),B.languages[_]){var u={};u["inline-lang-"+_]={pattern:RegExp(s.replace("<lang>",w.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:B.util.clone(B.languages.pure["inline-lang"].inside)},u["inline-lang-"+_].inside.rest=B.util.clone(B.languages[_]),B.languages.insertBefore("pure","inline-lang",u)}}),B.languages.c&&(B.languages.pure["inline-lang"].inside.rest=B.util.clone(B.languages.c))})(S)}},15008:function(Oe){"use strict";Oe.exports=J,J.displayName="purebasic",J.aliases=[];function J(S){S.languages.purebasic=S.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+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),S.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 S.languages.purebasic["class-name"],delete S.languages.purebasic.boolean,S.languages.pbfasm=S.languages.purebasic}},96549:function(Oe,J,S){"use strict";var B=S(2050);Oe.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}},5221:function(Oe){"use strict";Oe.exports=J,J.displayName="python",J.aliases=["py"];function J(S){S.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:/[{}[\];(),.:]/},S.languages.python["string-interpolation"].inside.interpolation.inside.rest=S.languages.python,S.languages.py=S.languages.python}},27447:function(Oe){"use strict";Oe.exports=J,J.displayName="q",J.aliases=[];function J(S){S.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:/[(){}\[\];.]/}}},73191:function(Oe){"use strict";Oe.exports=J,J.displayName="qml",J.aliases=[];function J(S){(function(B){for(var Y=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,s=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,w=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Y}).replace(/<comment>/g,function(){return s}),_=0;_<2;_++)w=w.replace(/<expr>/g,function(){return w});w=w.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 w}),"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 w}),"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:/[{}[\]:;,]/}})(S)}},75542:function(Oe){"use strict";Oe.exports=J,J.displayName="qore",J.aliases=[];function J(S){S.languages.qore=S.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/})}},50323:function(Oe){"use strict";Oe.exports=J,J.displayName="qsharp",J.aliases=["qs"];function J(S){(function(B){function Y(h,g){return h.replace(/<<(\d+)>>/g,function(x,T){return"(?:"+g[+T]+")"})}function s(h,g,x){return RegExp(Y(h,g),x||"")}function w(h,g){for(var x=0;x<g;x++)h=h.replace(/<<self>>/g,function(){return"(?:"+h+")"});return h.replace(/<<self>>/g,"[^\\s\\S]")}var _={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 p=RegExp(u(_.type+" "+_.other)),y=/\b[A-Za-z_]\w*\b/.source,m=Y(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[y]),b={keyword:p,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,[m]),lookbehind:!0,inside:b},{pattern:s(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[m]),lookbehind:!0,inside:b}],keyword:p,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=w(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]+/}}})})(S),S.languages.qs=S.languages.qsharp}},44298:function(Oe){"use strict";Oe.exports=J,J.displayName="r",J.aliases=[];function J(S){S.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:/[(){}\[\],;]/}}},9634:function(Oe,J,S){"use strict";var B=S(48780);Oe.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}},75266:function(Oe){"use strict";Oe.exports=J,J.displayName="reason",J.aliases=[];function J(S){S.languages.reason=S.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/}),S.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 S.languages.reason.function}},48139:function(Oe){"use strict";Oe.exports=J,J.displayName="regex",J.aliases=[];function J(S){(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]|.)/,w={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},_={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},u="(?:[^\\\\-]|"+s.source+")",p=RegExp(u+"-"+u),y={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:p,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Y,"char-set":_,escape:s}},"special-escape":Y,"char-set":w,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":y}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":y}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(S)}},97534:function(Oe){"use strict";Oe.exports=J,J.displayName="rego",J.aliases=[];function J(S){S.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:/[,;.\[\]{}()]/}}},90826:function(Oe){"use strict";Oe.exports=J,J.displayName="renpy",J.aliases=["rpy"];function J(S){S.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:/[{}[\];(),.:]/},S.languages.rpy=S.languages.renpy}},63919:function(Oe){"use strict";Oe.exports=J,J.displayName="rest",J.aliases=[];function J(S){S.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}}}},68862:function(Oe){"use strict";Oe.exports=J,J.displayName="rip",J.aliases=[];function J(S){S.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`'",.:;#\/\\()<>\[\]{}]*/}}},39523:function(Oe){"use strict";Oe.exports=J,J.displayName="roboconf",J.aliases=[];function J(S){S.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:/[{},.;:=]/}}},31207:function(Oe){"use strict";Oe.exports=J,J.displayName="robotframework",J.aliases=[];function J(S){(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 w(y,m){var b={};b["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var v in m)b[v]=m[v];return b.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},b.variable=s,b.comment=Y,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return y}),"im"),alias:"section",inside:b}}var _={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}},p={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:s}};B.languages.robotframework={settings:w("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:w("Variables"),"test-cases":w("Test Cases",{"test-name":u,documentation:_,property:p}),keywords:w("Keywords",{"keyword-name":u,documentation:_,property:p}),tasks:w("Tasks",{"task-name":u,documentation:_,property:p}),comment:Y},B.languages.robot=B.languages.robotframework})(S)}},75308:function(Oe){"use strict";Oe.exports=J,J.displayName="ruby",J.aliases=["rb"];function J(S){(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("|")+")",w=/(?:"(?:\\.|[^"\\\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+w),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+w+/(?=:(?!:))/.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})(S)}},45315:function(Oe){"use strict";Oe.exports=J,J.displayName="rust",J.aliases=[];function J(S){(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})(S)}},13794:function(Oe){"use strict";Oe.exports=J,J.displayName="sas",J.aliases=[];function J(S){(function(B){var Y=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,s=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,w={pattern:RegExp(Y+"[bx]"),alias:"number"},_={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"},p={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},y=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],m={pattern:RegExp(Y),greedy:!0},b=/[$%@.(){}\[\];,\\]/,v={pattern:/%?\b\w+(?=\()/,alias:"keyword"},c={function:v,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":_,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:s,"numeric-constant":w,punctuation:b,string:m},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},g={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"},I=/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}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return I}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:y,function:v,"arg-value":c["arg-value"],operator:c.operator,argument:c.arg,number:s,"numeric-constant":w,punctuation:b,string:m}},N={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":w,punctuation:b,string:m}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:y,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:N,"submit-statement":T,"global-statements":x,number:s,"numeric-constant":w,punctuation:b,string:m}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:y,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:N,"submit-statement":T,"global-statements":x,number:s,"numeric-constant":w,punctuation:b,string:m}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:y,"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:p,keyword:N,function:v,format:h,altformat:g,"global-statements":x,number:s,"numeric-constant":w,punctuation:b,string:m}},"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":_,"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":_,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:b}},"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:y,number:s,"numeric-constant":w}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:c},"cas-actions":R,comment:y,function:v,format:h,altformat:g,"numeric-constant":w,datetime:{pattern:RegExp(Y+"(?:dt?|t)"),alias:"number"},string:m,step:p,keyword:N,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:s,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:b}})(S)}},41299:function(Oe){"use strict";Oe.exports=J,J.displayName="sass",J.aliases=[];function J(S){(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}})})(S)}},98177:function(Oe,J,S){"use strict";var B=S(7093);Oe.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}},48780:function(Oe){"use strict";Oe.exports=J,J.displayName="scheme",J.aliases=[];function J(S){(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 w in s)s[w]=s[w].replace(/<[\w\s]+>/g,function(_){return"(?:"+s[_].trim()+")"});return s[w]}})(S)}},79793:function(Oe){"use strict";Oe.exports=J,J.displayName="scss",J.aliases=[];function J(S){S.languages.scss=S.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]+\}/}}}),S.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}]}),S.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),S.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}}),S.languages.scss.atrule.inside.rest=S.languages.scss}},52085:function(Oe,J,S){"use strict";var B=S(3058);Oe.exports=Y,Y.displayName="shellSession",Y.aliases=[];function Y(s){s.register(B),function(w){var _=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");w.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 _}),"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:w.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},w.languages["sh-session"]=w.languages.shellsession=w.languages["shell-session"]}(s)}},65411:function(Oe){"use strict";Oe.exports=J,J.displayName="smali",J.aliases=[];function J(S){S.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:/[{}(),;:]/}}},84750:function(Oe){"use strict";Oe.exports=J,J.displayName="smalltalk",J.aliases=[];function J(S){S.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:/[.;:?\[\](){}]/}}},88216:function(Oe,J,S){"use strict";var B=S(51478);Oe.exports=Y,Y.displayName="smarty",Y.aliases=[];function Y(s){s.register(B),function(w){w.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:w.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/]},w.languages.smarty["embedded-php"].inside.smarty.inside=w.languages.smarty,w.languages.smarty.string[0].inside.interpolation.inside.expression.inside=w.languages.smarty;var _=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,u=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return _.source}),"g");w.hooks.add("before-tokenize",function(p){var y="{literal}",m="{/literal}",b=!1;w.languages["markup-templating"].buildPlaceholders(p,"smarty",u,function(v){return v===m&&(b=!1),b?!1:(v===y&&(b=!0),!0)})}),w.hooks.add("after-tokenize",function(p){w.languages["markup-templating"].tokenizePlaceholders(p,"smarty")})}(s)}},66433:function(Oe){"use strict";Oe.exports=J,J.displayName="sml",J.aliases=["smlnj"];function J(S){(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})(S)}},34855:function(Oe){"use strict";Oe.exports=J,J.displayName="solidity",J.aliases=["sol"];function J(S){S.languages.solidity=S.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),S.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/}),S.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),S.languages.sol=S.languages.solidity}},12998:function(Oe){"use strict";Oe.exports=J,J.displayName="solutionFile",J.aliases=[];function J(S){(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"]})(S)}},10202:function(Oe,J,S){"use strict";var B=S(51478);Oe.exports=Y,Y.displayName="soy",Y.aliases=[];function Y(s){s.register(B),function(w){var _=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,u=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;w.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:_,greedy:!0},number:u,punctuation:/[\[\].?]/}},string:{pattern:_,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:/[{}()\[\]|.,:]/},w.hooks.add("before-tokenize",function(p){var y=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,m="{literal}",b="{/literal}",v=!1;w.languages["markup-templating"].buildPlaceholders(p,"soy",y,function(c){return c===b&&(v=!1),v?!1:(c===m&&(v=!0),!0)})}),w.hooks.add("after-tokenize",function(p){w.languages["markup-templating"].tokenizePlaceholders(p,"soy")})}(s)}},41186:function(Oe,J,S){"use strict";var B=S(58710);Oe.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}},68963:function(Oe){"use strict";Oe.exports=J,J.displayName="splunkSpl",J.aliases=[];function J(S){S.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:/[()[\],]/}}},5569:function(Oe){"use strict";Oe.exports=J,J.displayName="sqf",J.aliases=[];function J(S){S.languages.sqf=S.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}),S.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:S.languages.sqf.comment}}}),delete S.languages.sqf["class-name"]}},69435:function(Oe){"use strict";Oe.exports=J,J.displayName="sql",J.aliases=[];function J(S){S.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:/[;[\]()`,.]/}}},42766:function(Oe){"use strict";Oe.exports=J,J.displayName="squirrel",J.aliases=[];function J(S){S.languages.squirrel=S.languages.extend("clike",{comment:[S.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:/[(){}\[\],;.]/}),S.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),S.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(Oe){"use strict";Oe.exports=J,J.displayName="stan",J.aliases=[];function J(S){(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})(S)}},89032:function(Oe){"use strict";Oe.exports=J,J.displayName="stylus",J.aliases=[];function J(S){(function(B){var Y={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},w={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:/[{}()\[\];:,]/};w.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:w}},w.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:w}},B.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:w}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:w}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:w}},"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:w.interpolation}},rest:w}},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:w.interpolation,comment:w.comment,punctuation:/[{},]/}},func:w.func,string:w.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:w.interpolation,punctuation:/[{}()\[\];:.]/}})(S)}},40241:function(Oe){"use strict";Oe.exports=J,J.displayName="swift",J.aliases=[];function J(S){S.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:/[{}[\]();,.:\\]/},S.languages.swift["string-literal"].forEach(function(B){B.inside.interpolation.inside=S.languages.swift})}},24812:function(Oe){"use strict";Oe.exports=J,J.displayName="systemd",J.aliases=[];function J(S){(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:/=/}})(S)}},16747:function(Oe,J,S){"use strict";var B=S(73584),Y=S(87648);Oe.exports=s,s.displayName="t4Cs",s.aliases=[];function s(w){w.register(B),w.register(Y),w.languages.t4=w.languages["t4-cs"]=w.languages["t4-templating"].createT4("csharp")}},73584:function(Oe){"use strict";Oe.exports=J,J.displayName="t4Templating",J.aliases=[];function J(S){(function(B){function Y(w,_,u){return{pattern:RegExp("<#"+w+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+w+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:_,alias:u}}}}function s(w){var _=B.languages[w],u="language-"+w;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("=",_,u),"class-feature":Y("\\+",_,u),standard:Y("",_,u)}}}}B.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:s})})(S)}},79243:function(Oe,J,S){"use strict";var B=S(73584),Y=S(55686);Oe.exports=s,s.displayName="t4Vb",s.aliases=[];function s(w){w.register(B),w.register(Y),w.languages["t4-vb"]=w.languages["t4-templating"].createT4("vbnet")}},31788:function(Oe,J,S){"use strict";var B=S(14409);Oe.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"}}}},60871:function(Oe){"use strict";Oe.exports=J,J.displayName="tcl",J.aliases=[];function J(S){S.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:/[{}()\[\]]/}}},21023:function(Oe){"use strict";Oe.exports=J,J.displayName="textile",J.aliases=[];function J(S){(function(B){var Y=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,s=/\)|\((?![^|()\n]+\))/.source;function w(v,c){return RegExp(v.replace(/<MOD>/g,function(){return"(?:"+Y+")"}).replace(/<PAR>/g,function(){return"(?:"+s+")"}),c||"")}var _={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:w(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:w(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:_},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:w(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:w(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:_},punctuation:/^[*#]+/}},table:{pattern:w(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:w(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:_},punctuation:/\||^\./}},inline:{pattern:w(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:w(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:w(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:w(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:w(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:w(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:w(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:w(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:w(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:_},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:w(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:w(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:w(/(^")<MOD>+/.source),lookbehind:!0,inside:_},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:w(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:w(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:w(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:_},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:/[()]/}}}}}),p=u.phrase.inside,y={inline:p.inline,link:p.link,image:p.image,footnote:p.footnote,acronym:p.acronym,mark:p.mark};u.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var m=p.inline.inside;m.bold.inside=y,m.italic.inside=y,m.inserted.inside=y,m.deleted.inside=y,m.span.inside=y;var b=p.table.inside;b.inline=y.inline,b.link=y.link,b.image=y.image,b.footnote=y.footnote,b.acronym=y.acronym,b.mark=y.mark})(S)}},14693:function(Oe){"use strict";Oe.exports=J,J.displayName="toml",J.aliases=[];function J(S){(function(B){var Y=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function s(w){return w.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:/[.,=[\]{}]/}})(S)}},8743:function(Oe){"use strict";Oe.exports=J,J.displayName="tremor",J.aliases=[];function J(S){(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})(S)}},1689:function(Oe,J,S){"use strict";var B=S(24103),Y=S(92784);Oe.exports=s,s.displayName="tsx",s.aliases=[];function s(w){w.register(B),w.register(Y),function(_){var u=_.util.clone(_.languages.typescript);_.languages.tsx=_.languages.extend("jsx",u),delete _.languages.tsx.parameter,delete _.languages.tsx["literal-property"];var p=_.languages.tsx.tag;p.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+p.pattern.source+")",p.pattern.flags),p.lookbehind=!0}(w)}},69210:function(Oe,J,S){"use strict";var B=S(51478);Oe.exports=Y,Y.displayName="tt2",Y.aliases=[];function Y(s){s.register(B),function(w){w.languages.tt2=w.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:/[[\]{},()]/}),w.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),w.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),w.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 w.languages.tt2.string,w.hooks.add("before-tokenize",function(_){var u=/\[%[\s\S]+?%\]/g;w.languages["markup-templating"].buildPlaceholders(_,"tt2",u)}),w.hooks.add("after-tokenize",function(_){w.languages["markup-templating"].tokenizePlaceholders(_,"tt2")})}(s)}},58710:function(Oe){"use strict";Oe.exports=J,J.displayName="turtle",J.aliases=[];function J(S){S.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:/@/}}},S.languages.trig=S.languages.turtle}},60452:function(Oe,J,S){"use strict";var B=S(51478);Oe.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(w){if(w.language==="twig"){var _=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;s.languages["markup-templating"].buildPlaceholders(w,"twig",_)}}),s.hooks.add("after-tokenize",function(w){s.languages["markup-templating"].tokenizePlaceholders(w,"twig")})}},92784:function(Oe){"use strict";Oe.exports=J,J.displayName="typescript",J.aliases=["ts"];function J(S){(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})(S)}},36489:function(Oe){"use strict";Oe.exports=J,J.displayName="typoscript",J.aliases=["tsconfig"];function J(S){(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})(S)}},78380:function(Oe){"use strict";Oe.exports=J,J.displayName="unrealscript",J.aliases=["uc","uscript"];function J(S){S.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:/[()[\]{};,.]/},S.languages.uc=S.languages.uscript=S.languages.unrealscript}},10409:function(Oe){"use strict";Oe.exports=J,J.displayName="uorazor",J.aliases=[];function J(S){S.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:/[()\[\]{}:.,]/}}},6539:function(Oe){"use strict";Oe.exports=J,J.displayName="uri",J.aliases=["url"];function J(S){S.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":/\//}}},S.languages.url=S.languages.uri}},82028:function(Oe){"use strict";Oe.exports=J,J.displayName="v",J.aliases=[];function J(S){(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}}}})})(S)}},62282:function(Oe){"use strict";Oe.exports=J,J.displayName="vala",J.aliases=[];function J(S){S.languages.vala=S.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/}),S.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:S.languages.vala}},string:/[\s\S]+/}}}),S.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:S.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(Oe,J,S){"use strict";var B=S(51422);Oe.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:/[,;:(){}]/})}},70889:function(Oe){"use strict";Oe.exports=J,J.displayName="velocity",J.aliases=[];function J(S){(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})(S)}},37116:function(Oe){"use strict";Oe.exports=J,J.displayName="verilog",J.aliases=[];function J(S){S.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:/[[\];(),.:]/}}},66963:function(Oe){"use strict";Oe.exports=J,J.displayName="vhdl",J.aliases=[];function J(S){S.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:/[{}[\];(),.:]/}}},21078:function(Oe){"use strict";Oe.exports=J,J.displayName="vim",J.aliases=[];function J(S){S.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:/[{}[\](),;:]/}}},96198:function(Oe){"use strict";Oe.exports=J,J.displayName="visualBasic",J.aliases=[];function J(S){S.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:/[{}().,:?]/},S.languages.vb=S.languages["visual-basic"],S.languages.vba=S.languages["visual-basic"]}},17723:function(Oe){"use strict";Oe.exports=J,J.displayName="warpscript",J.aliases=[];function J(S){S.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/}}},67771:function(Oe){"use strict";Oe.exports=J,J.displayName="wasm",J.aliases=[];function J(S){S.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:/[()]/}}},30307:function(Oe){"use strict";Oe.exports=J,J.displayName="webIdl",J.aliases=[];function J(S){(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,w={};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:w},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+s),lookbehind:!0,inside:w},{pattern:RegExp("("+/\bcallback\s+/.source+Y+/\s*=\s*/.source+")"+s),lookbehind:!0,inside:w},{pattern:RegExp(/(\btypedef\b\s*)/.source+s),lookbehind:!0,inside:w},{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:w}],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 _ in B.languages["web-idl"])_!=="class-name"&&(w[_]=B.languages["web-idl"][_]);B.languages.webidl=B.languages["web-idl"]})(S)}},8921:function(Oe){"use strict";Oe.exports=J,J.displayName="wiki",J.aliases=[];function J(S){S.languages.wiki=S.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:S.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),S.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:S.languages.markup.tag.inside}}}})}},13429:function(Oe){"use strict";Oe.exports=J,J.displayName="wolfram",J.aliases=["mathematica","wl","nb"];function J(S){S.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:/[{}[\];(),.:]/},S.languages.mathematica=S.languages.wolfram,S.languages.wl=S.languages.wolfram,S.languages.nb=S.languages.wolfram}},65197:function(Oe){"use strict";Oe.exports=J,J.displayName="wren",J.aliases=[];function J(S){S.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:/[\[\](){}.,;]/},S.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:S.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(Oe){"use strict";Oe.exports=J,J.displayName="xeora",J.aliases=["xeoracube"];function J(S){(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})(S)}},35:function(Oe){"use strict";Oe.exports=J,J.displayName="xmlDoc",J.aliases=[];function J(S){(function(B){function Y(u,p){B.languages[u]&&B.languages.insertBefore(u,"comment",{"doc-comment":p})}var s=B.languages.markup.tag,w={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:s}},_={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:s}};Y("csharp",w),Y("fsharp",w),Y("vbnet",_)})(S)}},86095:function(Oe){"use strict";Oe.exports=J,J.displayName="xojo",J.aliases=[];function J(S){S.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:/[.,;:()]/}}},76998:function(Oe){"use strict";Oe.exports=J,J.displayName="xquery",J.aliases=[];function J(S){(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(w){return typeof w=="string"?w:typeof w.content=="string"?w.content:w.content.map(Y).join("")},s=function(w){for(var _=[],u=0;u<w.length;u++){var p=w[u],y=!1;if(typeof p!="string"&&(p.type==="tag"&&p.content[0]&&p.content[0].type==="tag"?p.content[0].content[0].content==="</"?_.length>0&&_[_.length-1].tagName===Y(p.content[0].content[1])&&_.pop():p.content[p.content.length-1].content==="/>"||_.push({tagName:Y(p.content[0].content[1]),openedBraces:0}):_.length>0&&p.type==="punctuation"&&p.content==="{"&&(!w[u+1]||w[u+1].type!=="punctuation"||w[u+1].content!=="{")&&(!w[u-1]||w[u-1].type!=="plain-text"||w[u-1].content!=="{")?_[_.length-1].openedBraces++:_.length>0&&_[_.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?_[_.length-1].openedBraces--:p.type!=="comment"&&(y=!0)),(y||typeof p=="string")&&_.length>0&&_[_.length-1].openedBraces===0){var m=Y(p);u<w.length-1&&(typeof w[u+1]=="string"||w[u+1].type==="plain-text")&&(m+=Y(w[u+1]),w.splice(u+1,1)),u>0&&(typeof w[u-1]=="string"||w[u-1].type==="plain-text")&&(m=Y(w[u-1])+m,w.splice(u-1,1),u--),/^\s+$/.test(m)?w[u]=m:w[u]=new B.Token("plain-text",m,null,m)}p.content&&typeof p.content!="string"&&s(p.content)}};B.hooks.add("after-tokenize",function(w){w.language==="xquery"&&s(w.tokens)})})(S)}},14409:function(Oe){"use strict";Oe.exports=J,J.displayName="yaml",J.aliases=["yml"];function J(S){(function(B){var Y=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,w="(?:"+s.source+"(?:[ ]+"+Y.source+")?|"+Y.source+"(?:[ ]+"+s.source+")?)",_=/(?:[^\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 p(y,m){m=(m||"").replace(/m/g,"")+"m";var b=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return w}).replace(/<<value>>/g,function(){return y});return RegExp(b,m)}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 w})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return w}).replace(/<<key>>/g,function(){return"(?:"+_+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\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:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(u),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?: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})(S)}},33460:function(Oe){"use strict";Oe.exports=J,J.displayName="yang",J.aliases=[];function J(S){S.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:/[{};:]/}}},28108:function(Oe){"use strict";Oe.exports=J,J.displayName="zig",J.aliases=[];function J(S){(function(B){function Y(m){return function(){return m}}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/,w="\\b(?!"+s.source+")(?!\\d)\\w+\\b",_=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,u=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Y(_)),p=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Y(w)),y="(?!\\s)(?:!?\\s*(?:"+u+"\\s*)*"+p+")+";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(y)).replace(/<ALIGN>/g,Y(_))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Y(y)).replace(/<ALIGN>/g,Y(_))),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(m){m.inside===null&&(m.inside=B.languages.zig)})})(S)}},92848:function(Oe,J){"use strict";var S;J.Q=w,S=_;var B="",Y=" ",s=/[ \t\n\r\f]+/g;function w(u){var p=String(u||B).trim();return p===B?[]:p.split(s)}function _(u){return u.join(Y).trim()}},7062:function(Oe,J,S){var B=S(19637),Y=S(97573),s=[S(96627)];Oe.exports=B.createStore(Y,s)},96627:function(Oe,J,S){Oe.exports=B;function B(){return S(42424),{}}},42424: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(Oe){return Oe<10?"0"+Oe:Oe}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(Oe){return rx_escapable.lastIndex=0,rx_escapable.test(Oe)?'"'+Oe.replace(rx_escapable,function(J){var S=meta[J];return typeof S=="string"?S:"\\u"+("0000"+J.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Oe+'"'}function str(Oe,J){var S,B,Y,s,w=gap,_,u=J[Oe];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(Oe)),typeof rep=="function"&&(u=rep.call(J,Oe,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,_=[],Object.prototype.toString.apply(u)==="[object Array]"){for(s=u.length,S=0;S<s;S+=1)_[S]=str(S,u)||"null";return Y=_.length===0?"[]":gap?`[
`+gap+_.join(`,
`+gap)+`
`+w+"]":"["+_.join(",")+"]",gap=w,Y}if(rep&&typeof rep=="object")for(s=rep.length,S=0;S<s;S+=1)typeof rep[S]=="string"&&(B=rep[S],Y=str(B,u),Y&&_.push(quote(B)+(gap?": ":":")+Y));else for(B in u)Object.prototype.hasOwnProperty.call(u,B)&&(Y=str(B,u),Y&&_.push(quote(B)+(gap?": ":":")+Y));return Y=_.length===0?"{}":gap?`{
`+gap+_.join(`,
`+gap)+`
`+w+"}":"{"+_.join(",")+"}",gap=w,Y}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Oe,J,S){var B;if(gap="",indent="",typeof S=="number")for(B=0;B<S;B+=1)indent+=" ";else typeof S=="string"&&(indent=S);if(rep=J,J&&typeof J!="function"&&(typeof J!="object"||typeof J.length!="number"))throw new Error("JSON.stringify");return str("",{"":Oe})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Oe,J){var S,B,Y=Oe[J];if(Y&&typeof Y=="object")for(S in Y)Object.prototype.hasOwnProperty.call(Y,S)&&(B=walk(Y,S),B!==void 0?Y[S]=B:delete Y[S]);return reviver.call(Oe,J,Y)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Oe){return"\\u"+("0000"+Oe.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")})}()},19637:function(Oe,J,S){var B=S(67039),Y=B.slice,s=B.pluck,w=B.each,_=B.bind,u=B.create,p=B.isList,y=B.isFunction,m=B.isObject;Oe.exports={createStore:c};var b={version:"2.0.12",enabled:!1,get:function(h,g){var x=this.storage.read(this._namespacePrefix+h);return this._deserialize(x,g)},set:function(h,g){return g===void 0?this.remove(h):(this.storage.write(this._namespacePrefix+h,this._serialize(g)),g)},remove:function(h){this.storage.remove(this._namespacePrefix+h)},each:function(h){var g=this;this.storage.each(function(x,T){h.call(g,g._deserialize(x),(T||"").replace(g._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 g=h.warn?h.warn:h.log;g.apply(h,arguments)}}function c(h,g,x){x||(x=""),h&&!p(h)&&(h=[h]),g&&!p(g)&&(g=[g]);var T=x?"__storejs_"+x+"_":"",I=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 N={_namespacePrefix:T,_namespaceRegexp:I,_testStorage:function(L){try{var H="__storejs__test__";L.write(H,H);var M=L.read(H)===H;return L.remove(H),M}catch(F){return!1}},_assignPluginFnProp:function(L,H){var M=this[H];this[H]=function(){var P=Y(arguments,0),U=this;function G(){if(M)return w(arguments,function(ee,ae){P[ae]=ee}),M.apply(U,P)}var Q=[G].concat(P);return L.apply(U,Q)}},_serialize:function(L){return JSON.stringify(L)},_deserialize:function(L,H){if(!L)return H;var M="";try{M=JSON.parse(L)}catch(F){M=L}return M!==void 0?M:H},_addStorage:function(L){this.enabled||this._testStorage(L)&&(this.storage=L,this.enabled=!0)},_addPlugin:function(L){var H=this;if(p(L)){w(L,function(P){H._addPlugin(P)});return}var M=s(this.plugins,function(P){return L===P});if(!M){if(this.plugins.push(L),!y(L))throw new Error("Plugins must be function values that return objects");var F=L.call(this);if(!m(F))throw new Error("Plugins must return an object of function properties");w(F,function(P,U){if(!y(P))throw new Error("Bad plugin property: "+U+" from plugin "+L.name+". Plugins should only return functions.");H._assignPluginFnProp(P,U)})}},addStorage:function(L){v("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(L)}},k=u(N,b,{plugins:[]});return k.raw={},w(k,function(L,H){y(L)&&(k.raw[H]=_(k,L))}),w(h,function(L){k._addStorage(L)}),w(g,function(L){k._addPlugin(L)}),k}},67039:function(Oe,J,S){var B=_(),Y=u(),s=p(),w=typeof window!="undefined"?window:S.g;Oe.exports={assign:B,create:Y,trim:s,bind:y,slice:m,each:b,map:v,pluck:c,isList:h,isFunction:g,isObject:x,Global:w};function _(){return Object.assign?Object.assign:function(I,R,N,k){for(var L=1;L<arguments.length;L++)b(Object(arguments[L]),function(H,M){I[M]=H});return I}}function u(){if(Object.create)return function(R,N,k,L){var H=m(arguments,1);return B.apply(this,[Object.create(R)].concat(H))};{let I=function(){};var T=I;return function(N,k,L,H){var M=m(arguments,1);return I.prototype=N,B.apply(this,[new I].concat(M))}}}function p(){return String.prototype.trim?function(I){return String.prototype.trim.call(I)}:function(I){return I.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function y(T,I){return function(){return I.apply(T,Array.prototype.slice.call(arguments,0))}}function m(T,I){return Array.prototype.slice.call(T,I||0)}function b(T,I){c(T,function(R,N){return I(R,N),!1})}function v(T,I){var R=h(T)?[]:{};return c(T,function(N,k){return R[k]=I(N,k),!1}),R}function c(T,I){if(h(T)){for(var R=0;R<T.length;R++)if(I(T[R],R))return T[R]}else for(var N in T)if(T.hasOwnProperty(N)&&I(T[N],N))return T[N]}function h(T){return T!=null&&typeof T!="function"&&typeof T.length=="number"}function g(T){return T&&{}.toString.call(T)==="[object Function]"}function x(T){return T&&{}.toString.call(T)==="[object Object]"}},97573:function(Oe,J,S){Oe.exports=[S(52496),S(16436),S(76673),S(35701),S(65578),S(65300)]},35701:function(Oe,J,S){var B=S(67039),Y=B.Global,s=B.trim;Oe.exports={name:"cookieStorage",read:_,write:p,each:u,remove:y,clearAll:m};var w=Y.document;function _(v){if(!v||!b(v))return null;var c="(?:^|.*;\\s*)"+escape(v).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(w.cookie.replace(new RegExp(c),"$1"))}function u(v){for(var c=w.cookie.split(/; ?/g),h=c.length-1;h>=0;h--)if(s(c[h])){var g=c[h].split("="),x=unescape(g[0]),T=unescape(g[1]);v(T,x)}}function p(v,c){v&&(w.cookie=escape(v)+"="+escape(c)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function y(v){!v||!b(v)||(w.cookie=escape(v)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function m(){u(function(v,c){y(c)})}function b(v){return new RegExp("(?:^|;\\s*)"+escape(v).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(w.cookie)}},52496:function(Oe,J,S){var B=S(67039),Y=B.Global;Oe.exports={name:"localStorage",read:w,write:_,each:u,remove:p,clearAll:y};function s(){return Y.localStorage}function w(m){return s().getItem(m)}function _(m,b){return s().setItem(m,b)}function u(m){for(var b=s().length-1;b>=0;b--){var v=s().key(b);m(w(v),v)}}function p(m){return s().removeItem(m)}function y(){return s().clear()}},65300:function(Oe){Oe.exports={name:"memoryStorage",read:S,write:B,each:Y,remove:s,clearAll:w};var J={};function S(_){return J[_]}function B(_,u){J[_]=u}function Y(_){for(var u in J)J.hasOwnProperty(u)&&_(J[u],u)}function s(_){delete J[_]}function w(_){J={}}},16436:function(Oe,J,S){var B=S(67039),Y=B.Global;Oe.exports={name:"oldFF-globalStorage",read:w,write:_,each:u,remove:p,clearAll:y};var s=Y.globalStorage;function w(m){return s[m]}function _(m,b){s[m]=b}function u(m){for(var b=s.length-1;b>=0;b--){var v=s.key(b);m(s[v],v)}}function p(m){return s.removeItem(m)}function y(){u(function(m,b){delete s[m]})}},76673:function(Oe,J,S){var B=S(67039),Y=B.Global;Oe.exports={name:"oldIE-userDataStorage",write:p,read:y,each:m,remove:b,clearAll:v};var s="storejs",w=Y.document,_=g(),u=(Y.navigator?Y.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function p(x,T){if(!u){var I=h(x);_(function(R){R.setAttribute(I,T),R.save(s)})}}function y(x){if(!u){var T=h(x),I=null;return _(function(R){I=R.getAttribute(T)}),I}}function m(x){_(function(T){for(var I=T.XMLDocument.documentElement.attributes,R=I.length-1;R>=0;R--){var N=I[R];x(T.getAttribute(N.name),N.name)}})}function b(x){var T=h(x);_(function(I){I.removeAttribute(T),I.save(s)})}function v(){_(function(x){var T=x.XMLDocument.documentElement.attributes;x.load(s);for(var I=T.length-1;I>=0;I--)x.removeAttribute(T[I].name);x.save(s)})}var c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function h(x){return x.replace(/^\d/,"___$&").replace(c,"___")}function g(){if(!w||!w.documentElement||!w.documentElement.addBehavior)return null;var x="script",T,I,R;try{I=new ActiveXObject("htmlfile"),I.open(),I.write("<"+x+">document.w=window</"+x+'><iframe src="/favicon.ico"></iframe>'),I.close(),T=I.w.frames[0].document,R=T.createElement("div")}catch(N){R=w.createElement("div"),T=w.body}return function(N){var k=[].slice.call(arguments,0);k.unshift(R),T.appendChild(R),R.addBehavior("#default#userData"),R.load(s),N.apply(this,k),T.removeChild(R)}}},65578:function(Oe,J,S){var B=S(67039),Y=B.Global;Oe.exports={name:"sessionStorage",read:w,write:_,each:u,remove:p,clearAll:y};function s(){return Y.sessionStorage}function w(m){return s().getItem(m)}function _(m,b){return s().setItem(m,b)}function u(m){for(var b=s().length-1;b>=0;b--){var v=s().key(b);m(w(v),v)}}function p(m){return s().removeItem(m)}function y(){return s().clear()}},6526:function(Oe,J,S){"use strict";var B=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}},Y=B(S(78846)),s=S(11160);function w(_,u){var p={};return!_||typeof _!="string"||(0,Y.default)(_,function(y,m){y&&m&&(p[(0,s.camelCase)(y,u)]=m)}),p}w.default=w,Oe.exports=w},11160:function(Oe,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.camelCase=void 0;var S=/^--[a-zA-Z0-9_-]+$/,B=/-([a-z])/g,Y=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,w=/^-(ms)-/,_=function(m){return!m||Y.test(m)||S.test(m)},u=function(m,b){return b.toUpperCase()},p=function(m,b){return"".concat(b,"-")},y=function(m,b){return b===void 0&&(b={}),_(m)?m:(m=m.toLowerCase(),b.reactCompat?m=m.replace(w,p):m=m.replace(s,p),m.replace(B,u))};J.camelCase=y},78846:function(Oe,J,S){"use strict";var B=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(J,"__esModule",{value:!0}),J.default=s;var Y=B(S(93193));function s(w,_){var u=null;if(!w||typeof w!="string")return u;var p=(0,Y.default)(w),y=typeof _=="function";return p.forEach(function(m){if(m.type==="declaration"){var b=m.property,v=m.value;y?_(b,v,m):v&&(u=u||{},u[b]=v)}}),u}},97270:function(Oe){Oe.exports=S;var J=Object.prototype.hasOwnProperty;function S(){for(var B={},Y=0;Y<arguments.length;Y++){var s=arguments[Y];for(var w in s)J.call(s,w)&&(B[w]=s[w])}return B}},34376:function(Oe){(function(J,S){if(1)Oe.exports=S();else var B,Y})(window,function(){return function(J){var S={};function B(Y){if(S[Y])return S[Y].exports;var s=S[Y]={i:Y,l:!1,exports:{}};return J[Y].call(s.exports,s,s.exports,B),s.l=!0,s.exports}return B.m=J,B.c=S,B.d=function(Y,s,w){B.o(Y,s)||Object.defineProperty(Y,s,{enumerable:!0,get:w})},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 w=Object.create(null);if(B.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:Y}),2&s&&typeof Y!="string")for(var _ in Y)B.d(w,_,function(u){return Y[u]}.bind(null,_));return w},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(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.forwardEvent=S.EventEmitter=void 0;var Y=function(){function s(){this._listeners=[],this._disposed=!1}return Object.defineProperty(s.prototype,"event",{get:function(){var w=this;return this._event||(this._event=function(_){return w._listeners.push(_),{dispose:function(){if(!w._disposed){for(var u=0;u<w._listeners.length;u++)if(w._listeners[u]===_)return void w._listeners.splice(u,1)}}}}),this._event},enumerable:!1,configurable:!0}),s.prototype.fire=function(w,_){for(var u=[],p=0;p<this._listeners.length;p++)u.push(this._listeners[p]);for(p=0;p<u.length;p++)u[p].call(void 0,w,_)},s.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},s}();S.EventEmitter=Y,S.forwardEvent=function(s,w){return s(function(_){return w.fire(_)})}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.IUnicodeService=S.IOptionsService=S.ILogService=S.IInstantiationService=S.IDirtyRowService=S.ICharsetService=S.ICoreService=S.ICoreMouseService=S.IBufferService=void 0;var Y=B(14);S.IBufferService=Y.createDecorator("BufferService"),S.ICoreMouseService=Y.createDecorator("CoreMouseService"),S.ICoreService=Y.createDecorator("CoreService"),S.ICharsetService=Y.createDecorator("CharsetService"),S.IDirtyRowService=Y.createDecorator("DirtyRowService"),S.IInstantiationService=Y.createDecorator("InstantiationService"),S.ILogService=Y.createDecorator("LogService"),S.IOptionsService=Y.createDecorator("OptionsService"),S.IUnicodeService=Y.createDecorator("UnicodeService")},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getDisposeArrayDisposable=S.disposeArray=S.Disposable=void 0;var Y=function(){function w(){this._disposables=[],this._isDisposed=!1}return w.prototype.dispose=function(){this._isDisposed=!0;for(var _=0,u=this._disposables;_<u.length;_++)u[_].dispose();this._disposables.length=0},w.prototype.register=function(_){return this._disposables.push(_),_},w.prototype.unregister=function(_){var u=this._disposables.indexOf(_);u!==-1&&this._disposables.splice(u,1)},w}();function s(w){for(var _=0,u=w;_<u.length;_++)u[_].dispose();w.length=0}S.Disposable=Y,S.disposeArray=s,S.getDisposeArrayDisposable=function(w){return{dispose:function(){return s(w)}}}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.WHITESPACE_CELL_CODE=S.WHITESPACE_CELL_WIDTH=S.WHITESPACE_CELL_CHAR=S.NULL_CELL_CODE=S.NULL_CELL_WIDTH=S.NULL_CELL_CHAR=S.CHAR_DATA_CODE_INDEX=S.CHAR_DATA_WIDTH_INDEX=S.CHAR_DATA_CHAR_INDEX=S.CHAR_DATA_ATTR_INDEX=S.DEFAULT_ATTR=S.DEFAULT_COLOR=void 0,S.DEFAULT_COLOR=256,S.DEFAULT_ATTR=256|S.DEFAULT_COLOR<<9,S.CHAR_DATA_ATTR_INDEX=0,S.CHAR_DATA_CHAR_INDEX=1,S.CHAR_DATA_WIDTH_INDEX=2,S.CHAR_DATA_CODE_INDEX=3,S.NULL_CELL_CHAR="",S.NULL_CELL_WIDTH=1,S.NULL_CELL_CODE=0,S.WHITESPACE_CELL_CHAR=" ",S.WHITESPACE_CELL_WIDTH=1,S.WHITESPACE_CELL_CODE=32},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(y,m){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var c in v)v.hasOwnProperty(c)&&(b[c]=v[c])})(y,m)},function(y,m){function b(){this.constructor=y}Y(y,m),y.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)});Object.defineProperty(S,"__esModule",{value:!0}),S.CellData=void 0;var w=B(8),_=B(3),u=B(6),p=function(y){function m(){var b=y!==null&&y.apply(this,arguments)||this;return b.content=0,b.fg=0,b.bg=0,b.extended=new u.ExtendedAttrs,b.combinedData="",b}return s(m,y),m.fromCharData=function(b){var v=new m;return v.setFromCharData(b),v},m.prototype.isCombined=function(){return 2097152&this.content},m.prototype.getWidth=function(){return this.content>>22},m.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?w.stringFromCodePoint(2097151&this.content):""},m.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},m.prototype.setFromCharData=function(b){this.fg=b[_.CHAR_DATA_ATTR_INDEX],this.bg=0;var v=!1;if(b[_.CHAR_DATA_CHAR_INDEX].length>2)v=!0;else if(b[_.CHAR_DATA_CHAR_INDEX].length===2){var c=b[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=c&&c<=56319){var h=b[_.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=h&&h<=57343?this.content=1024*(c-55296)+h-56320+65536|b[_.CHAR_DATA_WIDTH_INDEX]<<22:v=!0}else v=!0}else this.content=b[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|b[_.CHAR_DATA_WIDTH_INDEX]<<22;v&&(this.combinedData=b[_.CHAR_DATA_CHAR_INDEX],this.content=2097152|b[_.CHAR_DATA_WIDTH_INDEX]<<22)},m.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},m}(u.AttributeData);S.CellData=p},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.ISoundService=S.ISelectionService=S.IRenderService=S.IMouseService=S.ICoreBrowserService=S.ICharSizeService=void 0;var Y=B(14);S.ICharSizeService=Y.createDecorator("CharSizeService"),S.ICoreBrowserService=Y.createDecorator("CoreBrowserService"),S.IMouseService=Y.createDecorator("MouseService"),S.IRenderService=Y.createDecorator("RenderService"),S.ISelectionService=Y.createDecorator("SelectionService"),S.ISoundService=Y.createDecorator("SoundService")},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.ExtendedAttrs=S.AttributeData=void 0;var Y=function(){function w(){this.fg=0,this.bg=0,this.extended=new s}return w.toColorRGB=function(_){return[_>>>16&255,_>>>8&255,255&_]},w.fromColorRGB=function(_){return(255&_[0])<<16|(255&_[1])<<8|255&_[2]},w.prototype.clone=function(){var _=new w;return _.fg=this.fg,_.bg=this.bg,_.extended=this.extended.clone(),_},w.prototype.isInverse=function(){return 67108864&this.fg},w.prototype.isBold=function(){return 134217728&this.fg},w.prototype.isUnderline=function(){return 268435456&this.fg},w.prototype.isBlink=function(){return 536870912&this.fg},w.prototype.isInvisible=function(){return 1073741824&this.fg},w.prototype.isItalic=function(){return 67108864&this.bg},w.prototype.isDim=function(){return 134217728&this.bg},w.prototype.getFgColorMode=function(){return 50331648&this.fg},w.prototype.getBgColorMode=function(){return 50331648&this.bg},w.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},w.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},w.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},w.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},w.prototype.isFgDefault=function(){return(50331648&this.fg)==0},w.prototype.isBgDefault=function(){return(50331648&this.bg)==0},w.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},w.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},w.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},w.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},w.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},w.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()},w.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},w.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},w.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},w.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},w.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},w}();S.AttributeData=Y;var s=function(){function w(_,u){_===void 0&&(_=0),u===void 0&&(u=-1),this.underlineStyle=_,this.underlineColor=u}return w.prototype.clone=function(){return new w(this.underlineStyle,this.underlineColor)},w.prototype.isEmpty=function(){return this.underlineStyle===0},w}();S.ExtendedAttrs=s},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.addDisposableDomListener=void 0,S.addDisposableDomListener=function(Y,s,w,_){Y.addEventListener(s,w,_);var u=!1;return{dispose:function(){u||(u=!0,Y.removeEventListener(s,w,_))}}}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Utf8ToUtf32=S.StringToUtf32=S.utf32ToString=S.stringFromCodePoint=void 0,S.stringFromCodePoint=function(w){return w>65535?(w-=65536,String.fromCharCode(55296+(w>>10))+String.fromCharCode(w%1024+56320)):String.fromCharCode(w)},S.utf32ToString=function(w,_,u){_===void 0&&(_=0),u===void 0&&(u=w.length);for(var p="",y=_;y<u;++y){var m=w[y];m>65535?(m-=65536,p+=String.fromCharCode(55296+(m>>10))+String.fromCharCode(m%1024+56320)):p+=String.fromCharCode(m)}return p};var Y=function(){function w(){this._interim=0}return w.prototype.clear=function(){this._interim=0},w.prototype.decode=function(_,u){var p=_.length;if(!p)return 0;var y=0,m=0;this._interim&&(56320<=(c=_.charCodeAt(m++))&&c<=57343?u[y++]=1024*(this._interim-55296)+c-56320+65536:(u[y++]=this._interim,u[y++]=c),this._interim=0);for(var b=m;b<p;++b){var v=_.charCodeAt(b);if(55296<=v&&v<=56319){if(++b>=p)return this._interim=v,y;var c;56320<=(c=_.charCodeAt(b))&&c<=57343?u[y++]=1024*(v-55296)+c-56320+65536:(u[y++]=v,u[y++]=c)}else u[y++]=v}return y},w}();S.StringToUtf32=Y;var s=function(){function w(){this.interim=new Uint8Array(3)}return w.prototype.clear=function(){this.interim.fill(0)},w.prototype.decode=function(_,u){var p=_.length;if(!p)return 0;var y,m,b,v,c=0,h=0,g=0;if(this.interim[0]){var x=!1,T=this.interim[0];T&=(224&T)==192?31:(240&T)==224?15:7;for(var I=0,R=void 0;(R=63&this.interim[++I])&&I<4;)T<<=6,T|=R;for(var N=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,k=N-I;g<k;){if(g>=p)return 0;if((192&(R=_[g++]))!=128){g--,x=!0;break}this.interim[I++]=R,T<<=6,T|=63&R}x||(N===2?T<128?g--:u[c++]=T:N===3?T<2048||T>=55296&&T<=57343||(u[c++]=T):T<65536||T>1114111||(u[c++]=T)),this.interim.fill(0)}for(var L=p-4,H=g;H<p;){for(;!(!(H<L)||128&(y=_[H])||128&(m=_[H+1])||128&(b=_[H+2])||128&(v=_[H+3]));)u[c++]=y,u[c++]=m,u[c++]=b,u[c++]=v,H+=4;if((y=_[H++])<128)u[c++]=y;else if((224&y)==192){if(H>=p)return this.interim[0]=y,c;if((192&(m=_[H++]))!=128){H--;continue}if((h=(31&y)<<6|63&m)<128){H--;continue}u[c++]=h}else if((240&y)==224){if(H>=p)return this.interim[0]=y,c;if((192&(m=_[H++]))!=128){H--;continue}if(H>=p)return this.interim[0]=y,this.interim[1]=m,c;if((192&(b=_[H++]))!=128){H--;continue}if((h=(15&y)<<12|(63&m)<<6|63&b)<2048||h>=55296&&h<=57343)continue;u[c++]=h}else if((248&y)==240){if(H>=p)return this.interim[0]=y,c;if((192&(m=_[H++]))!=128){H--;continue}if(H>=p)return this.interim[0]=y,this.interim[1]=m,c;if((192&(b=_[H++]))!=128){H--;continue}if(H>=p)return this.interim[0]=y,this.interim[1]=m,this.interim[2]=b,c;if((192&(v=_[H++]))!=128){H--;continue}if((h=(7&y)<<18|(63&m)<<12|(63&b)<<6|63&v)<65536||h>1114111)continue;u[c++]=h}}return c},w}();S.Utf8ToUtf32=s},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CHAR_ATLAS_CELL_SPACING=S.DIM_OPACITY=S.INVERTED_DEFAULT_COLOR=void 0,S.INVERTED_DEFAULT_COLOR=257,S.DIM_OPACITY=.5,S.CHAR_ATLAS_CELL_SPACING=1},function(J,S,B){"use strict";var Y,s,w,_;function u(y){var m=y.toString(16);return m.length<2?"0"+m:m}function p(y,m){return y<m?(m+.05)/(y+.05):(y+.05)/(m+.05)}Object.defineProperty(S,"__esModule",{value:!0}),S.contrastRatio=S.toPaddedHex=S.rgba=S.rgb=S.css=S.color=S.channels=void 0,function(y){y.toCss=function(m,b,v,c){return c!==void 0?"#"+u(m)+u(b)+u(v)+u(c):"#"+u(m)+u(b)+u(v)},y.toRgba=function(m,b,v,c){return c===void 0&&(c=255),(m<<24|b<<16|v<<8|c)>>>0}}(Y=S.channels||(S.channels={})),(s=S.color||(S.color={})).blend=function(y,m){var b=(255&m.rgba)/255;if(b===1)return{css:m.css,rgba:m.rgba};var v=m.rgba>>24&255,c=m.rgba>>16&255,h=m.rgba>>8&255,g=y.rgba>>24&255,x=y.rgba>>16&255,T=y.rgba>>8&255,I=g+Math.round((v-g)*b),R=x+Math.round((c-x)*b),N=T+Math.round((h-T)*b);return{css:Y.toCss(I,R,N),rgba:Y.toRgba(I,R,N)}},s.isOpaque=function(y){return(255&y.rgba)==255},s.ensureContrastRatio=function(y,m,b){var v=_.ensureContrastRatio(y.rgba,m.rgba,b);if(v)return _.toColor(v>>24&255,v>>16&255,v>>8&255)},s.opaque=function(y){var m=(255|y.rgba)>>>0,b=_.toChannels(m),v=b[0],c=b[1],h=b[2];return{css:Y.toCss(v,c,h),rgba:m}},s.opacity=function(y,m){var b=Math.round(255*m),v=_.toChannels(y.rgba),c=v[0],h=v[1],g=v[2];return{css:Y.toCss(c,h,g,b),rgba:Y.toRgba(c,h,g,b)}},(S.css||(S.css={})).toColor=function(y){switch(y.length){case 7:return{css:y,rgba:(parseInt(y.slice(1),16)<<8|255)>>>0};case 9:return{css:y,rgba:parseInt(y.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(y){function m(b,v,c){var h=b/255,g=v/255,x=c/255;return .2126*(h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4))+.7152*(g<=.03928?g/12.92:Math.pow((g+.055)/1.055,2.4))+.0722*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))}y.relativeLuminance=function(b){return m(b>>16&255,b>>8&255,255&b)},y.relativeLuminance2=m}(w=S.rgb||(S.rgb={})),function(y){function m(v,c,h){for(var g=v>>24&255,x=v>>16&255,T=v>>8&255,I=c>>24&255,R=c>>16&255,N=c>>8&255,k=p(w.relativeLuminance2(I,N,R),w.relativeLuminance2(g,x,T));k<h&&(I>0||R>0||N>0);)I-=Math.max(0,Math.ceil(.1*I)),R-=Math.max(0,Math.ceil(.1*R)),N-=Math.max(0,Math.ceil(.1*N)),k=p(w.relativeLuminance2(I,N,R),w.relativeLuminance2(g,x,T));return(I<<24|R<<16|N<<8|255)>>>0}function b(v,c,h){for(var g=v>>24&255,x=v>>16&255,T=v>>8&255,I=c>>24&255,R=c>>16&255,N=c>>8&255,k=p(w.relativeLuminance2(I,N,R),w.relativeLuminance2(g,x,T));k<h&&(I<255||R<255||N<255);)I=Math.min(255,I+Math.ceil(.1*(255-I))),R=Math.min(255,R+Math.ceil(.1*(255-R))),N=Math.min(255,N+Math.ceil(.1*(255-N))),k=p(w.relativeLuminance2(I,N,R),w.relativeLuminance2(g,x,T));return(I<<24|R<<16|N<<8|255)>>>0}y.ensureContrastRatio=function(v,c,h){var g=w.relativeLuminance(v>>8),x=w.relativeLuminance(c>>8);if(p(g,x)<h)return x<g?m(v,c,h):b(v,c,h)},y.reduceLuminance=m,y.increaseLuminance=b,y.toChannels=function(v){return[v>>24&255,v>>16&255,v>>8&255,255&v]},y.toColor=function(v,c,h){return{css:Y.toCss(v,c,h),rgba:Y.toRgba(v,c,h)}}}(_=S.rgba||(S.rgba={})),S.toPaddedHex=u,S.contrastRatio=p},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.isLinux=S.isWindows=S.isIphone=S.isIpad=S.isMac=S.isSafari=S.isFirefox=void 0;var Y=typeof navigator=="undefined",s=Y?"node":navigator.userAgent,w=Y?"node":navigator.platform;function _(u,p){return u.indexOf(p)>=0}S.isFirefox=!!~s.indexOf("Firefox"),S.isSafari=/^((?!chrome|android).)*safari/i.test(s),S.isMac=_(["Macintosh","MacIntel","MacPPC","Mac68K"],w),S.isIpad=w==="iPad",S.isIphone=w==="iPhone",S.isWindows=_(["Windows","Win16","Win32","WinCE"],w),S.isLinux=w.indexOf("Linux")>=0},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.C1=S.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"}(S.C0||(S.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"}(S.C1||(S.C1={}))},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.BaseRenderLayer=void 0;var Y=B(3),s=B(9),w=B(25),_=B(6),u=B(28),p=B(10),y=B(17),m=function(){function b(v,c,h,g,x,T,I,R){this._container=v,this._alpha=g,this._colors=x,this._rendererId=T,this._bufferService=I,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 b.prototype.dispose=function(){var v;y.removeElementFromParent(this._canvas),(v=this._charAtlas)===null||v===void 0||v.dispose()},b.prototype._initCanvas=function(){this._ctx=u.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},b.prototype.onOptionsChanged=function(){},b.prototype.onBlur=function(){},b.prototype.onFocus=function(){},b.prototype.onCursorMove=function(){},b.prototype.onGridChanged=function(v,c){},b.prototype.onSelectionChanged=function(v,c,h){h===void 0&&(h=!1)},b.prototype.setColors=function(v){this._refreshCharAtlas(v)},b.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)}},b.prototype._refreshCharAtlas=function(v){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=w.acquireCharAtlas(this._optionsService.options,this._rendererId,v,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},b.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)},b.prototype._fillCells=function(v,c,h,g){this._ctx.fillRect(v*this._scaledCellWidth,c*this._scaledCellHeight,h*this._scaledCellWidth,g*this._scaledCellHeight)},b.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)},b.prototype._fillLeftLineAtCell=function(v,c,h){this._ctx.fillRect(v*this._scaledCellWidth,c*this._scaledCellHeight,window.devicePixelRatio*h,this._scaledCellHeight)},b.prototype._strokeRectAtCell=function(v,c,h,g){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,g*this._scaledCellHeight-window.devicePixelRatio)},b.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))},b.prototype._clearCells=function(v,c,h,g){this._alpha?this._ctx.clearRect(v*this._scaledCellWidth,c*this._scaledCellHeight,h*this._scaledCellWidth,g*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(v*this._scaledCellWidth,c*this._scaledCellHeight,h*this._scaledCellWidth,g*this._scaledCellHeight))},b.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)},b.prototype._drawChars=function(v,c,h){var g,x,T=this._getContrastColor(v);T||v.isFgRGB()||v.isBgRGB()?this._drawUncachedChars(v,c,h,T):(v.isInverse()?(g=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(),g=v.isFgDefault()?Y.DEFAULT_COLOR:v.getFgColor()),g+=this._optionsService.options.drawBoldTextInBrightColors&&v.isBold()&&g<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=g,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))},b.prototype._drawUncachedChars=function(v,c,h,g){if(this._ctx.save(),this._ctx.font=this._getFont(!!v.isBold(),!!v.isItalic()),this._ctx.textBaseline="middle",v.isInverse())if(g)this._ctx.fillStyle=g.css;else if(v.isBgDefault())this._ctx.fillStyle=p.color.opaque(this._colors.background).css;else if(v.isBgRGB())this._ctx.fillStyle="rgb("+_.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(g)this._ctx.fillStyle=g.css;else if(v.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(v.isFgRGB())this._ctx.fillStyle="rgb("+_.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()},b.prototype._clipRow=function(v){this._ctx.beginPath(),this._ctx.rect(0,v*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},b.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},b.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(),g=v.getFgColorMode(),x=v.getBgColor(),T=v.getBgColorMode(),I=!!v.isInverse(),R=!!v.isInverse();if(I){var N=h;h=x,x=N;var k=g;g=T,T=k}var L=this._resolveBackgroundRgba(T,x,I),H=this._resolveForegroundRgba(g,h,I,R),M=p.rgba.ensureContrastRatio(L,H,this._optionsService.options.minimumContrastRatio);if(M){var F={css:p.channels.toCss(M>>24&255,M>>16&255,M>>8&255),rgba:M};return this._colors.contrastCache.setColor(v.bg,v.fg,F),F}this._colors.contrastCache.setColor(v.bg,v.fg,null)}},b.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}},b.prototype._resolveForegroundRgba=function(v,c,h,g){switch(v){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&g&&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}},b}();S.BaseRenderLayer=m},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.createDecorator=S.getServiceDependencies=S.serviceRegistry=void 0;function Y(s,w,_){w.di$target===w?w.di$dependencies.push({id:s,index:_}):(w.di$dependencies=[{id:s,index:_}],w.di$target=w)}S.serviceRegistry=new Map,S.getServiceDependencies=function(s){return s.di$dependencies||[]},S.createDecorator=function(s){if(S.serviceRegistry.has(s))return S.serviceRegistry.get(s);var w=function(_,u,p){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Y(w,_,p)};return w.toString=function(){return s},S.serviceRegistry.set(s,w),w}},function(J,S,B){"use strict";function Y(s,w,_,u){if(_===void 0&&(_=0),u===void 0&&(u=s.length),_>=s.length)return s;_=(s.length+_)%s.length,u=u>=s.length?s.length:(s.length+u)%s.length;for(var p=_;p<u;++p)s[p]=w;return s}Object.defineProperty(S,"__esModule",{value:!0}),S.concat=S.fillFallback=S.fill=void 0,S.fill=function(s,w,_,u){return s.fill?s.fill(w,_,u):Y(s,w,_,u)},S.fillFallback=Y,S.concat=function(s,w){var _=new s.constructor(s.length+w.length);return _.set(s),_.set(w,s.length),_}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.BufferLine=S.DEFAULT_ATTR_DATA=void 0;var Y=B(8),s=B(3),w=B(4),_=B(6);S.DEFAULT_ATTR_DATA=Object.freeze(new _.AttributeData);var u=function(){function p(y,m,b){b===void 0&&(b=!1),this.isWrapped=b,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*y);for(var v=m||w.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]),c=0;c<y;++c)this.setCell(c,v);this.length=y}return p.prototype.get=function(y){var m=this._data[3*y+0],b=2097151&m;return[this._data[3*y+1],2097152&m?this._combined[y]:b?Y.stringFromCodePoint(b):"",m>>22,2097152&m?this._combined[y].charCodeAt(this._combined[y].length-1):b]},p.prototype.set=function(y,m){this._data[3*y+1]=m[s.CHAR_DATA_ATTR_INDEX],m[s.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[y]=m[1],this._data[3*y+0]=2097152|y|m[s.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*y+0]=m[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|m[s.CHAR_DATA_WIDTH_INDEX]<<22},p.prototype.getWidth=function(y){return this._data[3*y+0]>>22},p.prototype.hasWidth=function(y){return 12582912&this._data[3*y+0]},p.prototype.getFg=function(y){return this._data[3*y+1]},p.prototype.getBg=function(y){return this._data[3*y+2]},p.prototype.hasContent=function(y){return 4194303&this._data[3*y+0]},p.prototype.getCodePoint=function(y){var m=this._data[3*y+0];return 2097152&m?this._combined[y].charCodeAt(this._combined[y].length-1):2097151&m},p.prototype.isCombined=function(y){return 2097152&this._data[3*y+0]},p.prototype.getString=function(y){var m=this._data[3*y+0];return 2097152&m?this._combined[y]:2097151&m?Y.stringFromCodePoint(2097151&m):""},p.prototype.loadCell=function(y,m){var b=3*y;return m.content=this._data[b+0],m.fg=this._data[b+1],m.bg=this._data[b+2],2097152&m.content&&(m.combinedData=this._combined[y]),268435456&m.bg&&(m.extended=this._extendedAttrs[y]),m},p.prototype.setCell=function(y,m){2097152&m.content&&(this._combined[y]=m.combinedData),268435456&m.bg&&(this._extendedAttrs[y]=m.extended),this._data[3*y+0]=m.content,this._data[3*y+1]=m.fg,this._data[3*y+2]=m.bg},p.prototype.setCellFromCodePoint=function(y,m,b,v,c,h){268435456&c&&(this._extendedAttrs[y]=h),this._data[3*y+0]=m|b<<22,this._data[3*y+1]=v,this._data[3*y+2]=c},p.prototype.addCodepointToCell=function(y,m){var b=this._data[3*y+0];2097152&b?this._combined[y]+=Y.stringFromCodePoint(m):(2097151&b?(this._combined[y]=Y.stringFromCodePoint(2097151&b)+Y.stringFromCodePoint(m),b&=-2097152,b|=2097152):b=m|1<<22,this._data[3*y+0]=b)},p.prototype.insertCells=function(y,m,b,v){if((y%=this.length)&&this.getWidth(y-1)===2&&this.setCellFromCodePoint(y-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new _.ExtendedAttrs),m<this.length-y){for(var c=new w.CellData,h=this.length-y-m-1;h>=0;--h)this.setCell(y+m+h,this.loadCell(y+h,c));for(h=0;h<m;++h)this.setCell(y+h,b)}else for(h=y;h<this.length;++h)this.setCell(h,b);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 _.ExtendedAttrs)},p.prototype.deleteCells=function(y,m,b,v){if(y%=this.length,m<this.length-y){for(var c=new w.CellData,h=0;h<this.length-y-m;++h)this.setCell(y+h,this.loadCell(y+m+h,c));for(h=this.length-m;h<this.length;++h)this.setCell(h,b)}else for(h=y;h<this.length;++h)this.setCell(h,b);y&&this.getWidth(y-1)===2&&this.setCellFromCodePoint(y-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new _.ExtendedAttrs),this.getWidth(y)!==0||this.hasContent(y)||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 _.ExtendedAttrs)},p.prototype.replaceCells=function(y,m,b,v){for(y&&this.getWidth(y-1)===2&&this.setCellFromCodePoint(y-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new _.ExtendedAttrs),m<this.length&&this.getWidth(m-1)===2&&this.setCellFromCodePoint(m,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new _.ExtendedAttrs);y<m&&y<this.length;)this.setCell(y++,b)},p.prototype.resize=function(y,m){if(y!==this.length){if(y>this.length){var b=new Uint32Array(3*y);this.length&&(3*y<this._data.length?b.set(this._data.subarray(0,3*y)):b.set(this._data)),this._data=b;for(var v=this.length;v<y;++v)this.setCell(v,m)}else if(y){(b=new Uint32Array(3*y)).set(this._data.subarray(0,3*y)),this._data=b;var c=Object.keys(this._combined);for(v=0;v<c.length;v++){var h=parseInt(c[v],10);h>=y&&delete this._combined[h]}}else this._data=new Uint32Array(0),this._combined={};this.length=y}},p.prototype.fill=function(y){this._combined={},this._extendedAttrs={};for(var m=0;m<this.length;++m)this.setCell(m,y)},p.prototype.copyFrom=function(y){for(var m in this.length!==y.length?this._data=new Uint32Array(y._data):this._data.set(y._data),this.length=y.length,this._combined={},y._combined)this._combined[m]=y._combined[m];for(var m in this._extendedAttrs={},y._extendedAttrs)this._extendedAttrs[m]=y._extendedAttrs[m];this.isWrapped=y.isWrapped},p.prototype.clone=function(){var y=new p(0);for(var m in y._data=new Uint32Array(this._data),y.length=this.length,this._combined)y._combined[m]=this._combined[m];for(var m in this._extendedAttrs)y._extendedAttrs[m]=this._extendedAttrs[m];return y.isWrapped=this.isWrapped,y},p.prototype.getTrimmedLength=function(){for(var y=this.length-1;y>=0;--y)if(4194303&this._data[3*y+0])return y+(this._data[3*y+0]>>22);return 0},p.prototype.copyCellsFrom=function(y,m,b,v,c){var h=y._data;if(c)for(var g=v-1;g>=0;g--)for(var x=0;x<3;x++)this._data[3*(b+g)+x]=h[3*(m+g)+x];else for(g=0;g<v;g++)for(x=0;x<3;x++)this._data[3*(b+g)+x]=h[3*(m+g)+x];var T=Object.keys(y._combined);for(x=0;x<T.length;x++){var I=parseInt(T[x],10);I>=m&&(this._combined[I-m+b]=y._combined[I])}},p.prototype.translateToString=function(y,m,b){y===void 0&&(y=!1),m===void 0&&(m=0),b===void 0&&(b=this.length),y&&(b=Math.min(b,this.getTrimmedLength()));for(var v="";m<b;){var c=this._data[3*m+0],h=2097151&c;v+=2097152&c?this._combined[m]:h?Y.stringFromCodePoint(h):s.WHITESPACE_CELL_CHAR,m+=c>>22||1}return v},p}();S.BufferLine=u},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.removeElementFromParent=void 0,S.removeElementFromParent=function(){for(var Y,s=[],w=0;w<arguments.length;w++)s[w]=arguments[w];for(var _=0,u=s;_<u.length;_++){var p=u[_];(Y=p==null?void 0:p.parentElement)===null||Y===void 0||Y.removeChild(p)}}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.tooMuchOutput=S.promptLabel=void 0,S.promptLabel="Terminal input",S.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(H,M){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,P){F.__proto__=P}||function(F,P){for(var U in P)P.hasOwnProperty(U)&&(F[U]=P[U])})(H,M)},function(H,M){function F(){this.constructor=H}Y(H,M),H.prototype=M===null?Object.create(M):(F.prototype=M.prototype,new F)});Object.defineProperty(S,"__esModule",{value:!0}),S.InputHandler=S.WindowsOptionsReportType=void 0;var w,_=B(12),u=B(20),p=B(39),y=B(2),m=B(15),b=B(8),v=B(16),c=B(0),h=B(3),g=B(4),x=B(6),T=B(22),I=B(24),R={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function N(H,M){if(H>24)return M.setWinLines||!1;switch(H){case 1:return!!M.restoreWin;case 2:return!!M.minimizeWin;case 3:return!!M.setWinPosition;case 4:return!!M.setWinSizePixels;case 5:return!!M.raiseWin;case 6:return!!M.lowerWin;case 7:return!!M.refreshWin;case 8:return!!M.setWinSizeChars;case 9:return!!M.maximizeWin;case 10:return!!M.fullscreenWin;case 11:return!!M.getWinState;case 13:return!!M.getWinPosition;case 14:return!!M.getWinSizePixels;case 15:return!!M.getScreenSizePixels;case 16:return!!M.getCellSizePixels;case 18:return!!M.getWinSizeChars;case 19:return!!M.getScreenSizeChars;case 20:return!!M.getIconTitle;case 21:return!!M.getWinTitle;case 22:return!!M.pushTitle;case 23:return!!M.popTitle;case 24:return!!M.setWinLines}return!1}(function(H){H[H.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",H[H.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(w=S.WindowsOptionsReportType||(S.WindowsOptionsReportType={}));var k=function(){function H(M,F,P,U){this._bufferService=M,this._coreService=F,this._logService=P,this._optionsService=U,this._data=new Uint32Array(0)}return H.prototype.hook=function(M){this._data=new Uint32Array(0)},H.prototype.put=function(M,F,P){this._data=m.concat(this._data,M.subarray(F,P))},H.prototype.unhook=function(M){if(M){var F=b.utf32ToString(this._data);switch(this._data=new Uint32Array(0),F){case'"q':return this._coreService.triggerDataEvent(_.C0.ESC+'P1$r0"q'+_.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(_.C0.ESC+'P1$r61;1"p'+_.C0.ESC+"\\");case"r":var P=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(_.C0.ESC+"P1$r"+P+_.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(_.C0.ESC+"P1$r0m"+_.C0.ESC+"\\");case" q":var U={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return U-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(_.C0.ESC+"P1$r"+U+" q"+_.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",F),this._coreService.triggerDataEvent(_.C0.ESC+"P0$r"+_.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},H}(),L=function(H){function M(F,P,U,G,Q,ee,ae,oe,he){he===void 0&&(he=new p.EscapeSequenceParser);var le=H.call(this)||this;le._bufferService=F,le._charsetService=P,le._coreService=U,le._dirtyRowService=G,le._logService=Q,le._optionsService=ee,le._coreMouseService=ae,le._unicodeService=oe,le._parser=he,le._parseBuffer=new Uint32Array(4096),le._stringDecoder=new b.StringToUtf32,le._utf8Decoder=new b.Utf8ToUtf32,le._workCell=new g.CellData,le._windowTitle="",le._iconName="",le._windowTitleStack=[],le._iconNameStack=[],le._curAttrData=v.DEFAULT_ATTR_DATA.clone(),le._eraseAttrDataInternal=v.DEFAULT_ATTR_DATA.clone(),le._onRequestBell=new c.EventEmitter,le._onRequestRefreshRows=new c.EventEmitter,le._onRequestReset=new c.EventEmitter,le._onRequestScroll=new c.EventEmitter,le._onRequestSyncScrollBar=new c.EventEmitter,le._onRequestWindowsOptionsReport=new c.EventEmitter,le._onA11yChar=new c.EventEmitter,le._onA11yTab=new c.EventEmitter,le._onCursorMove=new c.EventEmitter,le._onLineFeed=new c.EventEmitter,le._onScroll=new c.EventEmitter,le._onTitleChange=new c.EventEmitter,le.register(le._parser),le._parser.setCsiHandlerFallback(function(ne,ue){le._logService.debug("Unknown CSI code: ",{identifier:le._parser.identToString(ne),params:ue.toArray()})}),le._parser.setEscHandlerFallback(function(ne){le._logService.debug("Unknown ESC code: ",{identifier:le._parser.identToString(ne)})}),le._parser.setExecuteHandlerFallback(function(ne){le._logService.debug("Unknown EXECUTE code: ",{code:ne})}),le._parser.setOscHandlerFallback(function(ne,ue,ce){le._logService.debug("Unknown OSC code: ",{identifier:ne,action:ue,data:ce})}),le._parser.setDcsHandlerFallback(function(ne,ue,ce){ue==="HOOK"&&(ce=ce.toArray()),le._logService.debug("Unknown DCS code: ",{identifier:le._parser.identToString(ne),action:ue,payload:ce})}),le._parser.setPrintHandler(function(ne,ue,ce){return le.print(ne,ue,ce)}),le._parser.setCsiHandler({final:"@"},function(ne){return le.insertChars(ne)}),le._parser.setCsiHandler({intermediates:" ",final:"@"},function(ne){return le.scrollLeft(ne)}),le._parser.setCsiHandler({final:"A"},function(ne){return le.cursorUp(ne)}),le._parser.setCsiHandler({intermediates:" ",final:"A"},function(ne){return le.scrollRight(ne)}),le._parser.setCsiHandler({final:"B"},function(ne){return le.cursorDown(ne)}),le._parser.setCsiHandler({final:"C"},function(ne){return le.cursorForward(ne)}),le._parser.setCsiHandler({final:"D"},function(ne){return le.cursorBackward(ne)}),le._parser.setCsiHandler({final:"E"},function(ne){return le.cursorNextLine(ne)}),le._parser.setCsiHandler({final:"F"},function(ne){return le.cursorPrecedingLine(ne)}),le._parser.setCsiHandler({final:"G"},function(ne){return le.cursorCharAbsolute(ne)}),le._parser.setCsiHandler({final:"H"},function(ne){return le.cursorPosition(ne)}),le._parser.setCsiHandler({final:"I"},function(ne){return le.cursorForwardTab(ne)}),le._parser.setCsiHandler({final:"J"},function(ne){return le.eraseInDisplay(ne)}),le._parser.setCsiHandler({prefix:"?",final:"J"},function(ne){return le.eraseInDisplay(ne)}),le._parser.setCsiHandler({final:"K"},function(ne){return le.eraseInLine(ne)}),le._parser.setCsiHandler({prefix:"?",final:"K"},function(ne){return le.eraseInLine(ne)}),le._parser.setCsiHandler({final:"L"},function(ne){return le.insertLines(ne)}),le._parser.setCsiHandler({final:"M"},function(ne){return le.deleteLines(ne)}),le._parser.setCsiHandler({final:"P"},function(ne){return le.deleteChars(ne)}),le._parser.setCsiHandler({final:"S"},function(ne){return le.scrollUp(ne)}),le._parser.setCsiHandler({final:"T"},function(ne){return le.scrollDown(ne)}),le._parser.setCsiHandler({final:"X"},function(ne){return le.eraseChars(ne)}),le._parser.setCsiHandler({final:"Z"},function(ne){return le.cursorBackwardTab(ne)}),le._parser.setCsiHandler({final:"`"},function(ne){return le.charPosAbsolute(ne)}),le._parser.setCsiHandler({final:"a"},function(ne){return le.hPositionRelative(ne)}),le._parser.setCsiHandler({final:"b"},function(ne){return le.repeatPrecedingCharacter(ne)}),le._parser.setCsiHandler({final:"c"},function(ne){return le.sendDeviceAttributesPrimary(ne)}),le._parser.setCsiHandler({prefix:">",final:"c"},function(ne){return le.sendDeviceAttributesSecondary(ne)}),le._parser.setCsiHandler({final:"d"},function(ne){return le.linePosAbsolute(ne)}),le._parser.setCsiHandler({final:"e"},function(ne){return le.vPositionRelative(ne)}),le._parser.setCsiHandler({final:"f"},function(ne){return le.hVPosition(ne)}),le._parser.setCsiHandler({final:"g"},function(ne){return le.tabClear(ne)}),le._parser.setCsiHandler({final:"h"},function(ne){return le.setMode(ne)}),le._parser.setCsiHandler({prefix:"?",final:"h"},function(ne){return le.setModePrivate(ne)}),le._parser.setCsiHandler({final:"l"},function(ne){return le.resetMode(ne)}),le._parser.setCsiHandler({prefix:"?",final:"l"},function(ne){return le.resetModePrivate(ne)}),le._parser.setCsiHandler({final:"m"},function(ne){return le.charAttributes(ne)}),le._parser.setCsiHandler({final:"n"},function(ne){return le.deviceStatus(ne)}),le._parser.setCsiHandler({prefix:"?",final:"n"},function(ne){return le.deviceStatusPrivate(ne)}),le._parser.setCsiHandler({intermediates:"!",final:"p"},function(ne){return le.softReset(ne)}),le._parser.setCsiHandler({intermediates:" ",final:"q"},function(ne){return le.setCursorStyle(ne)}),le._parser.setCsiHandler({final:"r"},function(ne){return le.setScrollRegion(ne)}),le._parser.setCsiHandler({final:"s"},function(ne){return le.saveCursor(ne)}),le._parser.setCsiHandler({final:"t"},function(ne){return le.windowOptions(ne)}),le._parser.setCsiHandler({final:"u"},function(ne){return le.restoreCursor(ne)}),le._parser.setCsiHandler({intermediates:"'",final:"}"},function(ne){return le.insertColumns(ne)}),le._parser.setCsiHandler({intermediates:"'",final:"~"},function(ne){return le.deleteColumns(ne)}),le._parser.setExecuteHandler(_.C0.BEL,function(){return le.bell()}),le._parser.setExecuteHandler(_.C0.LF,function(){return le.lineFeed()}),le._parser.setExecuteHandler(_.C0.VT,function(){return le.lineFeed()}),le._parser.setExecuteHandler(_.C0.FF,function(){return le.lineFeed()}),le._parser.setExecuteHandler(_.C0.CR,function(){return le.carriageReturn()}),le._parser.setExecuteHandler(_.C0.BS,function(){return le.backspace()}),le._parser.setExecuteHandler(_.C0.HT,function(){return le.tab()}),le._parser.setExecuteHandler(_.C0.SO,function(){return le.shiftOut()}),le._parser.setExecuteHandler(_.C0.SI,function(){return le.shiftIn()}),le._parser.setExecuteHandler(_.C1.IND,function(){return le.index()}),le._parser.setExecuteHandler(_.C1.NEL,function(){return le.nextLine()}),le._parser.setExecuteHandler(_.C1.HTS,function(){return le.tabSet()}),le._parser.setOscHandler(0,new T.OscHandler(function(ne){le.setTitle(ne),le.setIconName(ne)})),le._parser.setOscHandler(1,new T.OscHandler(function(ne){return le.setIconName(ne)})),le._parser.setOscHandler(2,new T.OscHandler(function(ne){return le.setTitle(ne)})),le._parser.setEscHandler({final:"7"},function(){return le.saveCursor()}),le._parser.setEscHandler({final:"8"},function(){return le.restoreCursor()}),le._parser.setEscHandler({final:"D"},function(){return le.index()}),le._parser.setEscHandler({final:"E"},function(){return le.nextLine()}),le._parser.setEscHandler({final:"H"},function(){return le.tabSet()}),le._parser.setEscHandler({final:"M"},function(){return le.reverseIndex()}),le._parser.setEscHandler({final:"="},function(){return le.keypadApplicationMode()}),le._parser.setEscHandler({final:">"},function(){return le.keypadNumericMode()}),le._parser.setEscHandler({final:"c"},function(){return le.fullReset()}),le._parser.setEscHandler({final:"n"},function(){return le.setgLevel(2)}),le._parser.setEscHandler({final:"o"},function(){return le.setgLevel(3)}),le._parser.setEscHandler({final:"|"},function(){return le.setgLevel(3)}),le._parser.setEscHandler({final:"}"},function(){return le.setgLevel(2)}),le._parser.setEscHandler({final:"~"},function(){return le.setgLevel(1)}),le._parser.setEscHandler({intermediates:"%",final:"@"},function(){return le.selectDefaultCharset()}),le._parser.setEscHandler({intermediates:"%",final:"G"},function(){return le.selectDefaultCharset()});var be=function(ne){pe._parser.setEscHandler({intermediates:"(",final:ne},function(){return le.selectCharset("("+ne)}),pe._parser.setEscHandler({intermediates:")",final:ne},function(){return le.selectCharset(")"+ne)}),pe._parser.setEscHandler({intermediates:"*",final:ne},function(){return le.selectCharset("*"+ne)}),pe._parser.setEscHandler({intermediates:"+",final:ne},function(){return le.selectCharset("+"+ne)}),pe._parser.setEscHandler({intermediates:"-",final:ne},function(){return le.selectCharset("-"+ne)}),pe._parser.setEscHandler({intermediates:".",final:ne},function(){return le.selectCharset("."+ne)}),pe._parser.setEscHandler({intermediates:"/",final:ne},function(){return le.selectCharset("/"+ne)})},pe=this;for(var _e in u.CHARSETS)be(_e);return le._parser.setEscHandler({intermediates:"#",final:"8"},function(){return le.screenAlignmentPattern()}),le._parser.setErrorHandler(function(ne){return le._logService.error("Parsing error: ",ne),ne}),le._parser.setDcsHandler({intermediates:"$",final:"q"},new k(le._bufferService,le._coreService,le._logService,le._optionsService)),le}return s(M,H),Object.defineProperty(M.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),M.prototype.dispose=function(){H.prototype.dispose.call(this)},M.prototype.parse=function(F){var P=this._bufferService.buffer,U=P.x,G=P.y;if(this._logService.debug("parsing data",F),this._parseBuffer.length<F.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(F.length,131072))),this._dirtyRowService.clearRange(),F.length>131072)for(var Q=0;Q<F.length;Q+=131072){var ee=Q+131072<F.length?Q+131072:F.length,ae=typeof F=="string"?this._stringDecoder.decode(F.substring(Q,ee),this._parseBuffer):this._utf8Decoder.decode(F.subarray(Q,ee),this._parseBuffer);this._parser.parse(this._parseBuffer,ae)}else ae=typeof F=="string"?this._stringDecoder.decode(F,this._parseBuffer):this._utf8Decoder.decode(F,this._parseBuffer),this._parser.parse(this._parseBuffer,ae);(P=this._bufferService.buffer).x===U&&P.y===G||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},M.prototype.print=function(F,P,U){var G,Q,ee=this._bufferService.buffer,ae=this._charsetService.charset,oe=this._optionsService.options.screenReaderMode,he=this._bufferService.cols,le=this._coreService.decPrivateModes.wraparound,be=this._coreService.modes.insertMode,pe=this._curAttrData,_e=ee.lines.get(ee.ybase+ee.y);this._dirtyRowService.markDirty(ee.y),ee.x&&U-P>0&&_e.getWidth(ee.x-1)===2&&_e.setCellFromCodePoint(ee.x-1,0,1,pe.fg,pe.bg,pe.extended);for(var ne=P;ne<U;++ne){if(G=F[ne],Q=this._unicodeService.wcwidth(G),G<127&&ae){var ue=ae[String.fromCharCode(G)];ue&&(G=ue.charCodeAt(0))}if(oe&&this._onA11yChar.fire(b.stringFromCodePoint(G)),Q||!ee.x){if(ee.x+Q-1>=he){if(le){for(;ee.x<he;)_e.setCellFromCodePoint(ee.x++,0,1,pe.fg,pe.bg,pe.extended);ee.x=0,ee.y++,ee.y===ee.scrollBottom+1?(ee.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(ee.y>=this._bufferService.rows&&(ee.y=this._bufferService.rows-1),ee.lines.get(ee.ybase+ee.y).isWrapped=!0),_e=ee.lines.get(ee.ybase+ee.y)}else if(ee.x=he-1,Q===2)continue}if(be&&(_e.insertCells(ee.x,Q,ee.getNullCell(pe),pe),_e.getWidth(he-1)===2&&_e.setCellFromCodePoint(he-1,h.NULL_CELL_CODE,h.NULL_CELL_WIDTH,pe.fg,pe.bg,pe.extended)),_e.setCellFromCodePoint(ee.x++,G,Q,pe.fg,pe.bg,pe.extended),Q>0)for(;--Q;)_e.setCellFromCodePoint(ee.x++,0,0,pe.fg,pe.bg,pe.extended)}else _e.getWidth(ee.x-1)?_e.addCodepointToCell(ee.x-1,G):_e.addCodepointToCell(ee.x-2,G)}U-P>0&&(_e.loadCell(ee.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),ee.x<he&&U-P>0&&_e.getWidth(ee.x)===0&&!_e.hasContent(ee.x)&&_e.setCellFromCodePoint(ee.x,0,1,pe.fg,pe.bg,pe.extended),this._dirtyRowService.markDirty(ee.y)},M.prototype.addCsiHandler=function(F,P){var U=this;return F.final!=="t"||F.prefix||F.intermediates?this._parser.addCsiHandler(F,P):this._parser.addCsiHandler(F,function(G){return!N(G.params[0],U._optionsService.options.windowOptions)||P(G)})},M.prototype.addDcsHandler=function(F,P){return this._parser.addDcsHandler(F,new I.DcsHandler(P))},M.prototype.addEscHandler=function(F,P){return this._parser.addEscHandler(F,P)},M.prototype.addOscHandler=function(F,P){return this._parser.addOscHandler(F,new T.OscHandler(P))},M.prototype.bell=function(){this._onRequestBell.fire()},M.prototype.lineFeed=function(){var F=this._bufferService.buffer;this._dirtyRowService.markDirty(F.y),this._optionsService.options.convertEol&&(F.x=0),F.y++,F.y===F.scrollBottom+1?(F.y--,this._onRequestScroll.fire(this._eraseAttrData())):F.y>=this._bufferService.rows&&(F.y=this._bufferService.rows-1),F.x>=this._bufferService.cols&&F.x--,this._dirtyRowService.markDirty(F.y),this._onLineFeed.fire()},M.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},M.prototype.backspace=function(){var F,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&&(!((F=P.lines.get(P.ybase+P.y))===null||F===void 0)&&F.isWrapped)){P.lines.get(P.ybase+P.y).isWrapped=!1,P.y--,P.x=this._bufferService.cols-1;var U=P.lines.get(P.ybase+P.y);U.hasWidth(P.x)&&!U.hasContent(P.x)&&P.x--}this._restrictCursor()},M.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var F=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-F)}},M.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},M.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},M.prototype._restrictCursor=function(F){F===void 0&&(F=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(F,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)},M.prototype._setCursor=function(F,P){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=F,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+P):(this._bufferService.buffer.x=F,this._bufferService.buffer.y=P),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},M.prototype._moveCursor=function(F,P){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+F,this._bufferService.buffer.y+P)},M.prototype.cursorUp=function(F){var P=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;P>=0?this._moveCursor(0,-Math.min(P,F.params[0]||1)):this._moveCursor(0,-(F.params[0]||1))},M.prototype.cursorDown=function(F){var P=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;P>=0?this._moveCursor(0,Math.min(P,F.params[0]||1)):this._moveCursor(0,F.params[0]||1)},M.prototype.cursorForward=function(F){this._moveCursor(F.params[0]||1,0)},M.prototype.cursorBackward=function(F){this._moveCursor(-(F.params[0]||1),0)},M.prototype.cursorNextLine=function(F){this.cursorDown(F),this._bufferService.buffer.x=0},M.prototype.cursorPrecedingLine=function(F){this.cursorUp(F),this._bufferService.buffer.x=0},M.prototype.cursorCharAbsolute=function(F){this._setCursor((F.params[0]||1)-1,this._bufferService.buffer.y)},M.prototype.cursorPosition=function(F){this._setCursor(F.length>=2?(F.params[1]||1)-1:0,(F.params[0]||1)-1)},M.prototype.charPosAbsolute=function(F){this._setCursor((F.params[0]||1)-1,this._bufferService.buffer.y)},M.prototype.hPositionRelative=function(F){this._moveCursor(F.params[0]||1,0)},M.prototype.linePosAbsolute=function(F){this._setCursor(this._bufferService.buffer.x,(F.params[0]||1)-1)},M.prototype.vPositionRelative=function(F){this._moveCursor(0,F.params[0]||1)},M.prototype.hVPosition=function(F){this.cursorPosition(F)},M.prototype.tabClear=function(F){var P=F.params[0];P===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:P===3&&(this._bufferService.buffer.tabs={})},M.prototype.cursorForwardTab=function(F){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var P=F.params[0]||1;P--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},M.prototype.cursorBackwardTab=function(F){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var P=F.params[0]||1,U=this._bufferService.buffer;P--;)U.x=U.prevStop()},M.prototype._eraseInBufferLine=function(F,P,U,G){G===void 0&&(G=!1);var Q=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+F);Q.replaceCells(P,U,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),G&&(Q.isWrapped=!1)},M.prototype._resetBufferLine=function(F){var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+F);P.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),P.isWrapped=!1},M.prototype.eraseInDisplay=function(F){var P;switch(this._restrictCursor(),F.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 U=this._bufferService.buffer.lines.length-this._bufferService.rows;U>0&&(this._bufferService.buffer.lines.trimStart(U),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-U,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-U,0),this._onScroll.fire(0))}},M.prototype.eraseInLine=function(F){switch(this._restrictCursor(),F.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)},M.prototype.insertLines=function(F){this._restrictCursor();var P=F.params[0]||1,U=this._bufferService.buffer;if(!(U.y>U.scrollBottom||U.y<U.scrollTop)){for(var G=U.ybase+U.y,Q=this._bufferService.rows-1-U.scrollBottom,ee=this._bufferService.rows-1+U.ybase-Q+1;P--;)U.lines.splice(ee-1,1),U.lines.splice(G,0,U.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(U.y,U.scrollBottom),U.x=0}},M.prototype.deleteLines=function(F){this._restrictCursor();var P=F.params[0]||1,U=this._bufferService.buffer;if(!(U.y>U.scrollBottom||U.y<U.scrollTop)){var G,Q=U.ybase+U.y;for(G=this._bufferService.rows-1-U.scrollBottom,G=this._bufferService.rows-1+U.ybase-G;P--;)U.lines.splice(Q,1),U.lines.splice(G,0,U.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(U.y,U.scrollBottom),U.x=0}},M.prototype.insertChars=function(F){this._restrictCursor();var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);P&&(P.insertCells(this._bufferService.buffer.x,F.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},M.prototype.deleteChars=function(F){this._restrictCursor();var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);P&&(P.deleteCells(this._bufferService.buffer.x,F.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},M.prototype.scrollUp=function(F){for(var P=F.params[0]||1,U=this._bufferService.buffer;P--;)U.lines.splice(U.ybase+U.scrollTop,1),U.lines.splice(U.ybase+U.scrollBottom,0,U.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(U.scrollTop,U.scrollBottom)},M.prototype.scrollDown=function(F){for(var P=F.params[0]||1,U=this._bufferService.buffer;P--;)U.lines.splice(U.ybase+U.scrollBottom,1),U.lines.splice(U.ybase+U.scrollTop,0,U.getBlankLine(v.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(U.scrollTop,U.scrollBottom)},M.prototype.scrollLeft=function(F){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var U=F.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var Q=P.lines.get(P.ybase+G);Q.deleteCells(0,U,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Q.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},M.prototype.scrollRight=function(F){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var U=F.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var Q=P.lines.get(P.ybase+G);Q.insertCells(0,U,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Q.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},M.prototype.insertColumns=function(F){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var U=F.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var Q=this._bufferService.buffer.lines.get(P.ybase+G);Q.insertCells(P.x,U,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Q.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},M.prototype.deleteColumns=function(F){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var U=F.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var Q=P.lines.get(P.ybase+G);Q.deleteCells(P.x,U,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Q.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},M.prototype.eraseChars=function(F){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+(F.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},M.prototype.repeatPrecedingCharacter=function(F){if(this._parser.precedingCodepoint){for(var P=F.params[0]||1,U=new Uint32Array(P),G=0;G<P;++G)U[G]=this._parser.precedingCodepoint;this.print(U,0,U.length)}},M.prototype.sendDeviceAttributesPrimary=function(F){F.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(_.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(_.C0.ESC+"[?6c"))},M.prototype.sendDeviceAttributesSecondary=function(F){F.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(_.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(_.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(F.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(_.C0.ESC+"[>83;40003;0c"))},M.prototype._is=function(F){return(this._optionsService.options.termName+"").indexOf(F)===0},M.prototype.setMode=function(F){for(var P=0;P<F.length;P++)switch(F.params[P]){case 4:this._coreService.modes.insertMode=!0}},M.prototype.setModePrivate=function(F){for(var P=0;P<F.length;P++)switch(F.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}},M.prototype.resetMode=function(F){for(var P=0;P<F.length;P++)switch(F.params[P]){case 4:this._coreService.modes.insertMode=!1}},M.prototype.resetModePrivate=function(F){for(var P=0;P<F.length;P++)switch(F.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(),F.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}},M.prototype._updateAttrColor=function(F,P,U,G,Q){return P===2?(F|=50331648,F&=-16777216,F|=x.AttributeData.fromColorRGB([U,G,Q])):P===5&&(F&=-50331904,F|=33554432|255&U),F},M.prototype._extractColor=function(F,P,U){var G=[0,0,-1,0,0,0],Q=0,ee=0;do{if(G[ee+Q]=F.params[P+ee],F.hasSubParams(P+ee)){var ae=F.getSubParams(P+ee),oe=0;do G[1]===5&&(Q=1),G[ee+oe+1+Q]=ae[oe];while(++oe<ae.length&&oe+ee+1+Q<G.length);break}if(G[1]===5&&ee+Q>=2||G[1]===2&&ee+Q>=5)break;G[1]&&(Q=1)}while(++ee+P<F.length&&ee+Q<G.length);for(oe=2;oe<G.length;++oe)G[oe]===-1&&(G[oe]=0);switch(G[0]){case 38:U.fg=this._updateAttrColor(U.fg,G[1],G[3],G[4],G[5]);break;case 48:U.bg=this._updateAttrColor(U.bg,G[1],G[3],G[4],G[5]);break;case 58:U.extended=U.extended.clone(),U.extended.underlineColor=this._updateAttrColor(U.extended.underlineColor,G[1],G[3],G[4],G[5])}return ee},M.prototype._processUnderline=function(F,P){P.extended=P.extended.clone(),(!~F||F>5)&&(F=1),P.extended.underlineStyle=F,P.fg|=268435456,F===0&&(P.fg&=-268435457),P.updateExtended()},M.prototype.charAttributes=function(F){if(F.length===1&&F.params[0]===0)return this._curAttrData.fg=v.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=v.DEFAULT_ATTR_DATA.bg);for(var P,U=F.length,G=this._curAttrData,Q=0;Q<U;Q++)(P=F.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(F.hasSubParams(Q)?F.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(F,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)},M.prototype.deviceStatus=function(F){switch(F.params[0]){case 5:this._coreService.triggerDataEvent(_.C0.ESC+"[0n");break;case 6:var P=this._bufferService.buffer.y+1,U=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(_.C0.ESC+"["+P+";"+U+"R")}},M.prototype.deviceStatusPrivate=function(F){switch(F.params[0]){case 6:var P=this._bufferService.buffer.y+1,U=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(_.C0.ESC+"[?"+P+";"+U+"R")}},M.prototype.softReset=function(F){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},M.prototype.setCursorStyle=function(F){var P=F.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 U=P%2==1;this._optionsService.options.cursorBlink=U},M.prototype.setScrollRegion=function(F){var P,U=F.params[0]||1;(F.length<2||(P=F.params[1])>this._bufferService.rows||P===0)&&(P=this._bufferService.rows),P>U&&(this._bufferService.buffer.scrollTop=U-1,this._bufferService.buffer.scrollBottom=P-1,this._setCursor(0,0))},M.prototype.windowOptions=function(F){if(N(F.params[0],this._optionsService.options.windowOptions)){var P=F.length>1?F.params[1]:0;switch(F.params[0]){case 14:P!==2&&this._onRequestWindowsOptionsReport.fire(w.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(w.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(_.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())}}},M.prototype.saveCursor=function(F){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},M.prototype.restoreCursor=function(F){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()},M.prototype.setTitle=function(F){this._windowTitle=F,this._onTitleChange.fire(F)},M.prototype.setIconName=function(F){this._iconName=F},M.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},M.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},M.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},M.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,u.DEFAULT_CHARSET)},M.prototype.selectCharset=function(F){F.length===2?F[0]!=="/"&&this._charsetService.setgCharset(R[F[0]],u.CHARSETS[F[1]]||u.DEFAULT_CHARSET):this.selectDefaultCharset()},M.prototype.index=function(){this._restrictCursor();var F=this._bufferService.buffer;this._bufferService.buffer.y++,F.y===F.scrollBottom+1?(F.y--,this._onRequestScroll.fire(this._eraseAttrData())):F.y>=this._bufferService.rows&&(F.y=this._bufferService.rows-1),this._restrictCursor()},M.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},M.prototype.reverseIndex=function(){this._restrictCursor();var F=this._bufferService.buffer;if(F.y===F.scrollTop){var P=F.scrollBottom-F.scrollTop;F.lines.shiftElements(F.ybase+F.y,P,1),F.lines.set(F.ybase+F.y,F.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(F.scrollTop,F.scrollBottom)}else F.y--,this._restrictCursor()},M.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},M.prototype.reset=function(){this._curAttrData=v.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=v.DEFAULT_ATTR_DATA.clone()},M.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},M.prototype.setgLevel=function(F){this._charsetService.setgLevel(F)},M.prototype.screenAlignmentPattern=function(){var F=new g.CellData;F.content=1<<22|69,F.fg=this._curAttrData.fg,F.bg=this._curAttrData.bg;var P=this._bufferService.buffer;this._setCursor(0,0);for(var U=0;U<this._bufferService.rows;++U){var G=P.ybase+P.y+U,Q=P.lines.get(G);Q&&(Q.fill(F),Q.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},M}(y.Disposable);S.InputHandler=L},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.DEFAULT_CHARSET=S.CHARSETS=void 0,S.CHARSETS={},S.DEFAULT_CHARSET=S.CHARSETS.B,S.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"},S.CHARSETS.A={"#":"\xA3"},S.CHARSETS.B=void 0,S.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},S.CHARSETS.C=S.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},S.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},S.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},S.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},S.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},S.CHARSETS.E=S.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},S.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},S.CHARSETS.H=S.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},S.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Params=void 0;var Y=function(){function s(w,_){if(w===void 0&&(w=32),_===void 0&&(_=32),this.maxLength=w,this.maxSubParamsLength=_,_>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(w),this.length=0,this._subParams=new Int32Array(_),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(w),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return s.fromArray=function(w){var _=new s;if(!w.length)return _;for(var u=w[0]instanceof Array?1:0;u<w.length;++u){var p=w[u];if(p instanceof Array)for(var y=0;y<p.length;++y)_.addSubParam(p[y]);else _.addParam(p)}return _},s.prototype.clone=function(){var w=new s(this.maxLength,this.maxSubParamsLength);return w.params.set(this.params),w.length=this.length,w._subParams.set(this._subParams),w._subParamsLength=this._subParamsLength,w._subParamsIdx.set(this._subParamsIdx),w._rejectDigits=this._rejectDigits,w._rejectSubDigits=this._rejectSubDigits,w._digitIsSub=this._digitIsSub,w},s.prototype.toArray=function(){for(var w=[],_=0;_<this.length;++_){w.push(this.params[_]);var u=this._subParamsIdx[_]>>8,p=255&this._subParamsIdx[_];p-u>0&&w.push(Array.prototype.slice.call(this._subParams,u,p))}return w},s.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},s.prototype.addParam=function(w){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(w<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=w>2147483647?2147483647:w}},s.prototype.addSubParam=function(w){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(w<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=w>2147483647?2147483647:w,this._subParamsIdx[this.length-1]++}},s.prototype.hasSubParams=function(w){return(255&this._subParamsIdx[w])-(this._subParamsIdx[w]>>8)>0},s.prototype.getSubParams=function(w){var _=this._subParamsIdx[w]>>8,u=255&this._subParamsIdx[w];return u-_>0?this._subParams.subarray(_,u):null},s.prototype.getSubParamsAll=function(){for(var w={},_=0;_<this.length;++_){var u=this._subParamsIdx[_]>>8,p=255&this._subParamsIdx[_];p-u>0&&(w[_]=this._subParams.slice(u,p))}return w},s.prototype.addDigit=function(w){var _;if(!(this._rejectDigits||!(_=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var u=this._digitIsSub?this._subParams:this.params,p=u[_-1];u[_-1]=~p?Math.min(10*p+w,2147483647):w}},s}();S.Params=Y},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.OscHandler=S.OscParser=void 0;var Y=B(23),s=B(8),w=function(){function u(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return u.prototype.addHandler=function(p,y){this._handlers[p]===void 0&&(this._handlers[p]=[]);var m=this._handlers[p];return m.push(y),{dispose:function(){var b=m.indexOf(y);b!==-1&&m.splice(b,1)}}},u.prototype.setHandler=function(p,y){this._handlers[p]=[y]},u.prototype.clearHandler=function(p){this._handlers[p]&&delete this._handlers[p]},u.prototype.setHandlerFallback=function(p){this._handlerFb=p},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 p=this._handlers[this._id];if(p)for(var y=p.length-1;y>=0;y--)p[y].start();else this._handlerFb(this._id,"START")},u.prototype._put=function(p,y,m){var b=this._handlers[this._id];if(b)for(var v=b.length-1;v>=0;v--)b[v].put(p,y,m);else this._handlerFb(this._id,"PUT",s.utf32ToString(p,y,m))},u.prototype._end=function(p){var y=this._handlers[this._id];if(y){for(var m=y.length-1;m>=0&&y[m].end(p)===!1;m--);for(m--;m>=0;m--)y[m].end(!1)}else this._handlerFb(this._id,"END",p)},u.prototype.start=function(){this.reset(),this._id=-1,this._state=1},u.prototype.put=function(p,y,m){if(this._state!==3){if(this._state===1)for(;y<m;){var b=p[y++];if(b===59){this._state=2,this._start();break}if(b<48||57<b)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+b-48}this._state===2&&m-y>0&&this._put(p,y,m)}},u.prototype.end=function(p){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(p)),this._id=-1,this._state=0)},u}();S.OscParser=w;var _=function(){function u(p){this._handler=p,this._data="",this._hitLimit=!1}return u.prototype.start=function(){this._data="",this._hitLimit=!1},u.prototype.put=function(p,y,m){this._hitLimit||(this._data+=s.utf32ToString(p,y,m),this._data.length>Y.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},u.prototype.end=function(p){var y;return this._hitLimit?y=!1:p&&(y=this._handler(this._data)),this._data="",this._hitLimit=!1,y},u}();S.OscHandler=_},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.PAYLOAD_LIMIT=void 0,S.PAYLOAD_LIMIT=1e7},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.DcsHandler=S.DcsParser=void 0;var Y=B(8),s=B(21),w=B(23),_=[],u=function(){function y(){this._handlers=Object.create(null),this._active=_,this._ident=0,this._handlerFb=function(){}}return y.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},y.prototype.addHandler=function(m,b){this._handlers[m]===void 0&&(this._handlers[m]=[]);var v=this._handlers[m];return v.push(b),{dispose:function(){var c=v.indexOf(b);c!==-1&&v.splice(c,1)}}},y.prototype.setHandler=function(m,b){this._handlers[m]=[b]},y.prototype.clearHandler=function(m){this._handlers[m]&&delete this._handlers[m]},y.prototype.setHandlerFallback=function(m){this._handlerFb=m},y.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=_,this._ident=0},y.prototype.hook=function(m,b){if(this.reset(),this._ident=m,this._active=this._handlers[m]||_,this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].hook(b);else this._handlerFb(this._ident,"HOOK",b)},y.prototype.put=function(m,b,v){if(this._active.length)for(var c=this._active.length-1;c>=0;c--)this._active[c].put(m,b,v);else this._handlerFb(this._ident,"PUT",Y.utf32ToString(m,b,v))},y.prototype.unhook=function(m){if(this._active.length){for(var b=this._active.length-1;b>=0&&this._active[b].unhook(m)===!1;b--);for(b--;b>=0;b--)this._active[b].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",m);this._active=_,this._ident=0},y}();S.DcsParser=u;var p=function(){function y(m){this._handler=m,this._data="",this._hitLimit=!1}return y.prototype.hook=function(m){this._params=m.clone(),this._data="",this._hitLimit=!1},y.prototype.put=function(m,b,v){this._hitLimit||(this._data+=Y.utf32ToString(m,b,v),this._data.length>w.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},y.prototype.unhook=function(m){var b;return this._hitLimit?b=!1:m&&(b=this._handler(this._data,this._params||new s.Params)),this._params=void 0,this._data="",this._hitLimit=!1,b},y}();S.DcsHandler=p},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.removeTerminalFromCache=S.acquireCharAtlas=void 0;var Y=B(26),s=B(43),w=[];S.acquireCharAtlas=function(_,u,p,y,m){for(var b=Y.generateConfig(y,m,_,p),v=0;v<w.length;v++){var c=(h=w[v]).ownedBy.indexOf(u);if(c>=0){if(Y.configEquals(h.config,b))return h.atlas;h.ownedBy.length===1?(h.atlas.dispose(),w.splice(v,1)):h.ownedBy.splice(c,1);break}}for(v=0;v<w.length;v++){var h=w[v];if(Y.configEquals(h.config,b))return h.ownedBy.push(u),h.atlas}var g={atlas:new s.DynamicCharAtlas(document,b),config:b,ownedBy:[u]};return w.push(g),g.atlas},S.removeTerminalFromCache=function(_){for(var u=0;u<w.length;u++){var p=w[u].ownedBy.indexOf(_);if(p!==-1){w[u].ownedBy.length===1?(w[u].atlas.dispose(),w.splice(u,1)):w[u].ownedBy.splice(p,1);break}}}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.is256Color=S.configEquals=S.generateConfig=void 0;var Y=B(3);S.generateConfig=function(s,w,_,u){var p={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:w,fontFamily:_.fontFamily,fontSize:_.fontSize,fontWeight:_.fontWeight,fontWeightBold:_.fontWeightBold,allowTransparency:_.allowTransparency,colors:p}},S.configEquals=function(s,w){for(var _=0;_<s.colors.ansi.length;_++)if(s.colors.ansi[_].rgba!==w.colors.ansi[_].rgba)return!1;return s.devicePixelRatio===w.devicePixelRatio&&s.fontFamily===w.fontFamily&&s.fontSize===w.fontSize&&s.fontWeight===w.fontWeight&&s.fontWeightBold===w.fontWeightBold&&s.allowTransparency===w.allowTransparency&&s.scaledCharWidth===w.scaledCharWidth&&s.scaledCharHeight===w.scaledCharHeight&&s.colors.foreground===w.colors.foreground&&s.colors.background===w.colors.background},S.is256Color=function(s){return s<Y.DEFAULT_COLOR}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.ColorManager=S.DEFAULT_ANSI_COLORS=void 0;var Y=B(10),s=B(45),w=Y.css.toColor("#ffffff"),_=Y.css.toColor("#000000"),u=Y.css.toColor("#ffffff"),p=Y.css.toColor("#000000"),y={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};S.DEFAULT_ANSI_COLORS=function(){for(var b=[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],g=v[c/6%6|0],x=v[c%6];b.push({css:Y.channels.toCss(h,g,x),rgba:Y.channels.toRgba(h,g,x)})}for(c=0;c<24;c++){var T=8+10*c;b.push({css:Y.channels.toCss(T,T,T),rgba:Y.channels.toRgba(T,T,T)})}return b}();var m=function(){function b(v,c){this.allowTransparency=c;var h=v.createElement("canvas");h.width=1,h.height=1;var g=h.getContext("2d");if(!g)throw new Error("Could not get rendering context");this._ctx=g,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new s.ColorContrastCache,this.colors={foreground:w,background:_,cursor:u,cursorAccent:p,selectionTransparent:y,selectionOpaque:Y.color.blend(_,y),ansi:S.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return b.prototype.onOptionsChange=function(v){v==="minimumContrastRatio"&&this._contrastCache.clear()},b.prototype.setTheme=function(v){v===void 0&&(v={}),this.colors.foreground=this._parseColor(v.foreground,w),this.colors.background=this._parseColor(v.background,_),this.colors.cursor=this._parseColor(v.cursor,u,!0),this.colors.cursorAccent=this._parseColor(v.cursorAccent,p,!0),this.colors.selectionTransparent=this._parseColor(v.selection,y,!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,S.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(v.red,S.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(v.green,S.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(v.yellow,S.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(v.blue,S.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(v.magenta,S.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(v.cyan,S.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(v.white,S.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(v.brightBlack,S.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(v.brightRed,S.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(v.brightGreen,S.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(v.brightYellow,S.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(v.brightBlue,S.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(v.brightMagenta,S.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(v.brightCyan,S.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(v.brightWhite,S.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},b.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 g=this._ctx.getImageData(0,0,1,1).data;if(g[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],I=x[1],R=x[2],N=x[3],k=Math.round(255*N);return{rgba:Y.channels.toRgba(T,I,R,k),css:v}}return{css:this._ctx.fillStyle,rgba:Y.channels.toRgba(g[0],g[1],g[2],g[3])}},b}();S.ColorManager=m},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.throwIfFalsy=void 0,S.throwIfFalsy=function(Y){if(!Y)throw new Error("value must not be falsy");return Y}},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(m,b){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])})(m,b)},function(m,b){function v(){this.constructor=m}Y(m,b),m.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)});Object.defineProperty(S,"__esModule",{value:!0}),S.CharacterJoinerRegistry=S.JoinedCellData=void 0;var w=B(6),_=B(3),u=B(4),p=function(m){function b(v,c,h){var g=m.call(this)||this;return g.content=0,g.combinedData="",g.fg=v.fg,g.bg=v.bg,g.combinedData=c,g._width=h,g}return s(b,m),b.prototype.isCombined=function(){return 2097152},b.prototype.getWidth=function(){return this._width},b.prototype.getChars=function(){return this.combinedData},b.prototype.getCode=function(){return 2097151},b.prototype.setFromCharData=function(v){throw new Error("not implemented")},b.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},b}(w.AttributeData);S.JoinedCellData=p;var y=function(){function m(b){this._bufferService=b,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new u.CellData}return m.prototype.registerCharacterJoiner=function(b){var v={id:this._nextCharacterJoinerId++,handler:b};return this._characterJoiners.push(v),v.id},m.prototype.deregisterCharacterJoiner=function(b){for(var v=0;v<this._characterJoiners.length;v++)if(this._characterJoiners[v].id===b)return this._characterJoiners.splice(v,1),!0;return!1},m.prototype.getJoinedCharacters=function(b){if(this._characterJoiners.length===0)return[];var v=this._bufferService.buffer.lines.get(b);if(!v||v.length===0)return[];for(var c=[],h=v.translateToString(!0),g=0,x=0,T=0,I=v.getFg(0),R=v.getBg(0),N=0;N<v.getTrimmedLength();N++)if(v.loadCell(N,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==I||this._workCell.bg!==R){if(N-g>1)for(var k=this._getJoinedRanges(h,T,x,v,g),L=0;L<k.length;L++)c.push(k[L]);g=N,T=x,I=this._workCell.fg,R=this._workCell.bg}x+=this._workCell.getChars().length||_.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-g>1)for(k=this._getJoinedRanges(h,T,x,v,g),L=0;L<k.length;L++)c.push(k[L]);return c},m.prototype._getJoinedRanges=function(b,v,c,h,g){for(var x=b.substring(v,c),T=this._characterJoiners[0].handler(x),I=1;I<this._characterJoiners.length;I++)for(var R=this._characterJoiners[I].handler(x),N=0;N<R.length;N++)m._mergeRanges(T,R[N]);return this._stringRangesToCellRanges(T,h,g),T},m.prototype._stringRangesToCellRanges=function(b,v,c){var h=0,g=!1,x=0,T=b[h];if(T){for(var I=c;I<this._bufferService.cols;I++){var R=v.getWidth(I),N=v.getString(I).length||_.WHITESPACE_CELL_CHAR.length;if(R!==0){if(!g&&T[0]<=x&&(T[0]=I,g=!0),T[1]<=x){if(T[1]=I,!(T=b[++h]))break;T[0]<=x?(T[0]=I,g=!0):g=!1}x+=N}}T&&(T[1]=this._bufferService.cols)}},m._mergeRanges=function(b,v){for(var c=!1,h=0;h<b.length;h++){var g=b[h];if(c){if(v[1]<=g[0])return b[h-1][1]=v[1],b;if(v[1]<=g[1])return b[h-1][1]=Math.max(v[1],g[1]),b.splice(h,1),b;b.splice(h,1),h--}else{if(v[1]<=g[0])return b.splice(h,0,v),b;if(v[1]<=g[1])return g[0]=Math.min(v[0],g[0]),b;v[0]<g[1]&&(g[0]=Math.min(v[0],g[0]),c=!0)}}return c?b[b.length-1][1]=v[1]:b.push(v),b},m}();S.CharacterJoinerRegistry=y},function(J,S,B){"use strict";function Y(s,w){var _=w.getBoundingClientRect();return[s.clientX-_.left,s.clientY-_.top]}Object.defineProperty(S,"__esModule",{value:!0}),S.getRawByteCoords=S.getCoords=S.getCoordsRelativeToElement=void 0,S.getCoordsRelativeToElement=Y,S.getCoords=function(s,w,_,u,p,y,m,b){if(p){var v=Y(s,w);if(v)return v[0]=Math.ceil((v[0]+(b?y/2:0))/y),v[1]=Math.ceil(v[1]/m),v[0]=Math.min(Math.max(v[0],1),_+(b?1:0)),v[1]=Math.min(Math.max(v[1],1),u),v}},S.getRawByteCoords=function(s){if(s)return{x:s[0]+32,y:s[1]+32}}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.RenderDebouncer=void 0;var Y=function(){function s(w){this._renderCallback=w}return s.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},s.prototype.refresh=function(w,_,u){var p=this;this._rowCount=u,w=w!==void 0?w:0,_=_!==void 0?_:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,w):w,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,_):_,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return p._innerRefresh()}))},s.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var w=Math.max(this._rowStart,0),_=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(w,_)}},s}();S.RenderDebouncer=Y},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(_,u){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var m in y)y.hasOwnProperty(m)&&(p[m]=y[m])})(_,u)},function(_,u){function p(){this.constructor=_}Y(_,u),_.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)});Object.defineProperty(S,"__esModule",{value:!0}),S.ScreenDprMonitor=void 0;var w=function(_){function u(){var p=_!==null&&_.apply(this,arguments)||this;return p._currentDevicePixelRatio=window.devicePixelRatio,p}return s(u,_),u.prototype.setListener=function(p){var y=this;this._listener&&this.clearListener(),this._listener=p,this._outerListener=function(){y._listener&&(y._listener(window.devicePixelRatio,y._currentDevicePixelRatio),y._updateDpr())},this._updateDpr()},u.prototype.dispose=function(){_.prototype.dispose.call(this),this.clearListener()},u.prototype._updateDpr=function(){var p;this._outerListener&&((p=this._resolutionMediaMatchList)===null||p===void 0||p.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);S.ScreenDprMonitor=w},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.clone=void 0,S.clone=function Y(s,w){if(w===void 0&&(w=5),typeof s!="object")return s;var _=Array.isArray(s)?[]:{};for(var u in s)_[u]=w<=1?s[u]:s[u]?Y(s[u],w-1):s[u];return _}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Terminal=void 0;var Y=B(4),s=B(35),w=B(18),_=B(0),u=B(83),p=function(){function h(g){this._core=new s.Terminal(g),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 m(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(g,x){this._verifyIntegers(g,x),this._core.resize(g,x)},h.prototype.open=function(g){this._core.open(g)},h.prototype.attachCustomKeyEventHandler=function(g){this._core.attachCustomKeyEventHandler(g)},h.prototype.registerLinkMatcher=function(g,x,T){return this._checkProposedApi(),this._core.registerLinkMatcher(g,x,T)},h.prototype.deregisterLinkMatcher=function(g){this._checkProposedApi(),this._core.deregisterLinkMatcher(g)},h.prototype.registerLinkProvider=function(g){return this._checkProposedApi(),this._core.registerLinkProvider(g)},h.prototype.registerCharacterJoiner=function(g){return this._checkProposedApi(),this._core.registerCharacterJoiner(g)},h.prototype.deregisterCharacterJoiner=function(g){this._checkProposedApi(),this._core.deregisterCharacterJoiner(g)},h.prototype.registerMarker=function(g){return this._checkProposedApi(),this._verifyIntegers(g),this._core.addMarker(g)},h.prototype.addMarker=function(g){return this.registerMarker(g)},h.prototype.hasSelection=function(){return this._core.hasSelection()},h.prototype.select=function(g,x,T){this._verifyIntegers(g,x,T),this._core.select(g,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(g,x){this._verifyIntegers(g,x),this._core.selectLines(g,x)},h.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},h.prototype.scrollLines=function(g){this._verifyIntegers(g),this._core.scrollLines(g)},h.prototype.scrollPages=function(g){this._verifyIntegers(g),this._core.scrollPages(g)},h.prototype.scrollToTop=function(){this._core.scrollToTop()},h.prototype.scrollToBottom=function(){this._core.scrollToBottom()},h.prototype.scrollToLine=function(g){this._verifyIntegers(g),this._core.scrollToLine(g)},h.prototype.clear=function(){this._core.clear()},h.prototype.write=function(g,x){this._core.write(g,x)},h.prototype.writeUtf8=function(g,x){this._core.write(g,x)},h.prototype.writeln=function(g,x){this._core.write(g),this._core.write(`\r
`,x)},h.prototype.paste=function(g){this._core.paste(g)},h.prototype.getOption=function(g){return this._core.optionsService.getOption(g)},h.prototype.setOption=function(g,x){this._core.optionsService.setOption(g,x)},h.prototype.refresh=function(g,x){this._verifyIntegers(g,x),this._core.refresh(g,x)},h.prototype.reset=function(){this._core.reset()},h.prototype.loadAddon=function(g){return this._addonManager.loadAddon(this,g)},Object.defineProperty(h,"strings",{get:function(){return w},enumerable:!1,configurable:!0}),h.prototype._verifyIntegers=function(){for(var g=[],x=0;x<arguments.length;x++)g[x]=arguments[x];for(var T=0,I=g;T<I.length;T++){var R=I[T];if(R===1/0||isNaN(R)||R%1!=0)throw new Error("This API only accepts integers")}},h}();S.Terminal=p;var y=function(){function h(g,x){this._buffer=g,this.type=x}return h.prototype.init=function(g){return this._buffer=g,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(g){var x=this._buffer.lines.get(g);if(x)return new b(x)},h.prototype.getNullCell=function(){return new Y.CellData},h}(),m=function(){function h(g){var x=this;this._buffers=g,this._onBufferChange=new _.EventEmitter,this._normal=new y(this._buffers.normal,"normal"),this._alternate=new y(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}(),b=function(){function h(g){this._line=g}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(g,x){if(!(g<0||g>=this._line.length))return x?(this._line.loadCell(g,x),x):this._line.loadCell(g,new Y.CellData)},h.prototype.translateToString=function(g,x,T){return this._line.translateToString(g,x,T)},h}(),v=function(){function h(g){this._core=g}return h.prototype.registerCsiHandler=function(g,x){return this._core.addCsiHandler(g,function(T){return x(T.toArray())})},h.prototype.addCsiHandler=function(g,x){return this.registerCsiHandler(g,x)},h.prototype.registerDcsHandler=function(g,x){return this._core.addDcsHandler(g,function(T,I){return x(T,I.toArray())})},h.prototype.addDcsHandler=function(g,x){return this.registerDcsHandler(g,x)},h.prototype.registerEscHandler=function(g,x){return this._core.addEscHandler(g,x)},h.prototype.addEscHandler=function(g,x){return this.registerEscHandler(g,x)},h.prototype.registerOscHandler=function(g,x){return this._core.addOscHandler(g,x)},h.prototype.addOscHandler=function(g,x){return this.registerOscHandler(g,x)},h}(),c=function(){function h(g){this._core=g}return h.prototype.register=function(g){this._core.unicodeService.register(g)},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(g){this._core.unicodeService.activeVersion=g},enumerable:!1,configurable:!0}),h}()},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(he,le){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,pe){be.__proto__=pe}||function(be,pe){for(var _e in pe)pe.hasOwnProperty(_e)&&(be[_e]=pe[_e])})(he,le)},function(he,le){function be(){this.constructor=he}Y(he,le),he.prototype=le===null?Object.create(le):(be.prototype=le.prototype,new be)});Object.defineProperty(S,"__esModule",{value:!0}),S.Terminal=void 0;var w=B(36),_=B(37),u=B(38),p=B(12),y=B(19),m=B(40),b=B(50),v=B(51),c=B(11),h=B(7),g=B(18),x=B(54),T=B(55),I=B(56),R=B(57),N=B(59),k=B(0),L=B(16),H=B(27),M=B(60),F=B(5),P=B(61),U=B(62),G=B(63),Q=B(64),ee=B(65),ae=typeof window!="undefined"?window.document:null,oe=function(he){function le(be){be===void 0&&(be={});var pe=he.call(this,be)||this;return pe.browser=c,pe._keyDownHandled=!1,pe._onCursorMove=new k.EventEmitter,pe._onKey=new k.EventEmitter,pe._onRender=new k.EventEmitter,pe._onSelectionChange=new k.EventEmitter,pe._onTitleChange=new k.EventEmitter,pe._onFocus=new k.EventEmitter,pe._onBlur=new k.EventEmitter,pe._onA11yCharEmitter=new k.EventEmitter,pe._onA11yTabEmitter=new k.EventEmitter,pe._setup(),pe.linkifier=pe._instantiationService.createInstance(b.Linkifier),pe.linkifier2=pe.register(pe._instantiationService.createInstance(G.Linkifier2)),pe.register(pe._inputHandler.onRequestBell(function(){return pe.bell()})),pe.register(pe._inputHandler.onRequestRefreshRows(function(_e,ne){return pe.refresh(_e,ne)})),pe.register(pe._inputHandler.onRequestReset(function(){return pe.reset()})),pe.register(pe._inputHandler.onRequestScroll(function(_e,ne){return pe.scroll(_e,ne||void 0)})),pe.register(pe._inputHandler.onRequestWindowsOptionsReport(function(_e){return pe._reportWindowsOptions(_e)})),pe.register(k.forwardEvent(pe._inputHandler.onCursorMove,pe._onCursorMove)),pe.register(k.forwardEvent(pe._inputHandler.onTitleChange,pe._onTitleChange)),pe.register(k.forwardEvent(pe._inputHandler.onA11yChar,pe._onA11yCharEmitter)),pe.register(k.forwardEvent(pe._inputHandler.onA11yTab,pe._onA11yTabEmitter)),pe.register(pe._bufferService.onResize(function(_e){return pe._afterResize(_e.cols,_e.rows)})),pe}return s(le,he),Object.defineProperty(le.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),le.prototype.dispose=function(){var be,pe,_e;this._isDisposed||(he.prototype.dispose.call(this),(be=this._renderService)===null||be===void 0||be.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(_e=(pe=this.element)===null||pe===void 0?void 0:pe.parentNode)===null||_e===void 0||_e.removeChild(this.element))},le.prototype._setup=function(){he.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(le.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),le.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},le.prototype._updateOptions=function(be){var pe,_e,ne,ue;switch(he.prototype._updateOptions.call(this,be),be){case"fontFamily":case"fontSize":(pe=this._renderService)===null||pe===void 0||pe.clear(),(_e=this._charSizeService)===null||_e===void 0||_e.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":(ne=this.viewport)===null||ne===void 0||ne.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new I.AccessibilityManager(this,this._renderService)):((ue=this._accessibilityManager)===null||ue===void 0||ue.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},le.prototype._onTextAreaFocus=function(be){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(p.C0.ESC+"[I"),this.updateCursorStyle(be),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},le.prototype.blur=function(){var be;return(be=this.textarea)===null||be===void 0?void 0:be.blur()},le.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(p.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},le.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var be=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),pe=this._bufferService.buffer.y*be,_e=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=_e+"px",this.textarea.style.top=pe+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=be+"px",this.textarea.style.lineHeight=be+"px",this.textarea.style.zIndex="-5"}},le.prototype._initGlobal=function(){var be=this;this._bindKeys(),this.register(h.addDisposableDomListener(this.element,"copy",function(_e){be.hasSelection()&&u.copyHandler(_e,be._selectionService)}));var pe=function(_e){return u.handlePasteEvent(_e,be.textarea,be._coreService)};this.register(h.addDisposableDomListener(this.textarea,"paste",pe)),this.register(h.addDisposableDomListener(this.element,"paste",pe)),c.isFirefox?this.register(h.addDisposableDomListener(this.element,"mousedown",function(_e){_e.button===2&&u.rightClickHandler(_e,be.textarea,be.screenElement,be._selectionService,be.options.rightClickSelectsWord)})):this.register(h.addDisposableDomListener(this.element,"contextmenu",function(_e){u.rightClickHandler(_e,be.textarea,be.screenElement,be._selectionService,be.options.rightClickSelectsWord)})),c.isLinux&&this.register(h.addDisposableDomListener(this.element,"auxclick",function(_e){_e.button===1&&u.moveTextAreaUnderMouseCursor(_e,be.textarea,be.screenElement)}))},le.prototype._bindKeys=function(){var be=this;this.register(h.addDisposableDomListener(this.textarea,"keyup",function(pe){return be._keyUp(pe)},!0)),this.register(h.addDisposableDomListener(this.textarea,"keydown",function(pe){return be._keyDown(pe)},!0)),this.register(h.addDisposableDomListener(this.textarea,"keypress",function(pe){return be._keyPress(pe)},!0)),this.register(h.addDisposableDomListener(this.textarea,"compositionstart",function(){return be._compositionHelper.compositionstart()})),this.register(h.addDisposableDomListener(this.textarea,"compositionupdate",function(pe){return be._compositionHelper.compositionupdate(pe)})),this.register(h.addDisposableDomListener(this.textarea,"compositionend",function(){return be._compositionHelper.compositionend()})),this.register(this.onRender(function(){return be._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(pe){return be._queueLinkification(pe.start,pe.end)}))},le.prototype.open=function(be){var pe=this;if(!be)throw new Error("Terminal requires a parent element.");ae.body.contains(be)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=be.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"),be.appendChild(this.element);var _e=ae.createDocumentFragment();this._viewportElement=ae.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),_e.appendChild(this._viewportElement),this._viewportScrollArea=ae.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ae.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ae.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),_e.appendChild(this.screenElement),this.textarea=ae.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",g.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(ce){return pe._onTextAreaFocus(ce)})),this.register(h.addDisposableDomListener(this.textarea,"blur",function(){return pe._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var ne=this._instantiationService.createInstance(Q.CoreBrowserService,this.textarea);this._instantiationService.setService(F.ICoreBrowserService,ne),this._charSizeService=this._instantiationService.createInstance(P.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(F.ICharSizeService,this._charSizeService),this._compositionView=ae.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(w.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(_e),this._theme=this.options.theme||this._theme,this._colorManager=new H.ColorManager(ae,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(ce){return pe._colorManager.onOptionsChange(ce)})),this._colorManager.setTheme(this._theme);var ue=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(M.RenderService,ue,this.rows,this.screenElement)),this._instantiationService.setService(F.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(ce){return pe._onRender.fire(ce)})),this.onResize(function(ce){return pe._renderService.resize(ce.cols,ce.rows)}),this._soundService=this._instantiationService.createInstance(x.SoundService),this._instantiationService.setService(F.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(U.MouseService),this._instantiationService.setService(F.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(_.Viewport,function(ce,Re){return pe.scrollLines(ce,Re)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return pe.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){pe._renderService.onCursorMove(),pe._syncTextArea()})),this.register(this.onResize(function(){return pe._renderService.onResize(pe.cols,pe.rows)})),this.register(this.onBlur(function(){return pe._renderService.onBlur()})),this.register(this.onFocus(function(){return pe._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return pe.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(v.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(F.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(ce){return pe.scrollLines(ce.amount,ce.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return pe._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(ce){return pe._renderService.onSelectionChanged(ce.start,ce.end,ce.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(ce){pe.textarea.value=ce,pe.textarea.focus(),pe.textarea.select()})),this.register(this.onScroll(function(){pe.viewport.syncScrollArea(),pe._selectionService.refresh()})),this.register(h.addDisposableDomListener(this._viewportElement,"scroll",function(){return pe._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(T.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return pe._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(ce){return pe._selectionService.onMouseDown(ce)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new I.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},le.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(m.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+'"')}},le.prototype._setTheme=function(be){var pe,_e,ne;this._theme=be,(pe=this._colorManager)===null||pe===void 0||pe.setTheme(be),(_e=this._renderService)===null||_e===void 0||_e.setColors(this._colorManager.colors),(ne=this.viewport)===null||ne===void 0||ne.onThemeChange(this._colorManager.colors)},le.prototype.bindMouse=function(){var be=this,pe=this,_e=this.element;function ne(De){var Me,We,je=pe._mouseService.getRawByteCoords(De,pe.screenElement,pe.cols,pe.rows);if(!je)return!1;switch(De.overrideType||De.type){case"mousemove":We=32,De.buttons===void 0?(Me=3,De.button!==void 0&&(Me=De.button<3?De.button:3)):Me=1&De.buttons?0:4&De.buttons?1:2&De.buttons?2:3;break;case"mouseup":We=0,Me=De.button<3?De.button:3;break;case"mousedown":We=1,Me=De.button<3?De.button:3;break;case"wheel":De.deltaY!==0&&(We=De.deltaY<0?0:1),Me=4;break;default:return!1}return!(We===void 0||Me===void 0||Me>4)&&pe._coreMouseService.triggerMouseEvent({col:je.x-33,row:je.y-33,button:Me,action:We,ctrl:De.ctrlKey,alt:De.altKey,shift:De.shiftKey})}var ue={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ce=function(De){return ne(De),De.buttons||(be._document.removeEventListener("mouseup",ue.mouseup),ue.mousedrag&&be._document.removeEventListener("mousemove",ue.mousedrag)),be.cancel(De)},Re=function(De){return ne(De),De.preventDefault(),be.cancel(De)},ke=function(De){De.buttons&&ne(De)},Ne=function(De){De.buttons||ne(De)};this.register(this._coreMouseService.onProtocolChange(function(De){De?(be.optionsService.options.logLevel==="debug"&&be._logService.debug("Binding to mouse events:",be._coreMouseService.explainEvents(De)),be.element.classList.add("enable-mouse-events"),be._selectionService.disable()):(be._logService.debug("Unbinding from mouse events."),be.element.classList.remove("enable-mouse-events"),be._selectionService.enable()),8&De?ue.mousemove||(_e.addEventListener("mousemove",Ne),ue.mousemove=Ne):(_e.removeEventListener("mousemove",ue.mousemove),ue.mousemove=null),16&De?ue.wheel||(_e.addEventListener("wheel",Re,{passive:!1}),ue.wheel=Re):(_e.removeEventListener("wheel",ue.wheel),ue.wheel=null),2&De?ue.mouseup||(ue.mouseup=ce):(be._document.removeEventListener("mouseup",ue.mouseup),ue.mouseup=null),4&De?ue.mousedrag||(ue.mousedrag=ke):(be._document.removeEventListener("mousemove",ue.mousedrag),ue.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(h.addDisposableDomListener(_e,"mousedown",function(De){if(De.preventDefault(),be.focus(),be._coreMouseService.areMouseEventsActive&&!be._selectionService.shouldForceSelection(De))return ne(De),ue.mouseup&&be._document.addEventListener("mouseup",ue.mouseup),ue.mousedrag&&be._document.addEventListener("mousemove",ue.mousedrag),be.cancel(De)})),this.register(h.addDisposableDomListener(_e,"wheel",function(De){if(!ue.wheel){if(!be.buffer.hasScrollback){var Me=be.viewport.getLinesScrolled(De);if(Me===0)return;for(var We=p.C0.ESC+(be._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(De.deltaY<0?"A":"B"),je="",et=0;et<Math.abs(Me);et++)je+=We;be._coreService.triggerDataEvent(je,!0)}}},{passive:!0})),this.register(h.addDisposableDomListener(_e,"wheel",function(De){if(!ue.wheel)return be.viewport.onWheel(De)?void 0:be.cancel(De)},{passive:!1})),this.register(h.addDisposableDomListener(_e,"touchstart",function(De){if(!be._coreMouseService.areMouseEventsActive)return be.viewport.onTouchStart(De),be.cancel(De)},{passive:!0})),this.register(h.addDisposableDomListener(_e,"touchmove",function(De){if(!be._coreMouseService.areMouseEventsActive)return be.viewport.onTouchMove(De)?void 0:be.cancel(De)},{passive:!1}))},le.prototype.refresh=function(be,pe){var _e;(_e=this._renderService)===null||_e===void 0||_e.refreshRows(be,pe)},le.prototype._queueLinkification=function(be,pe){var _e;(_e=this.linkifier)===null||_e===void 0||_e.linkifyRows(be,pe)},le.prototype.updateCursorStyle=function(be){this._selectionService&&this._selectionService.shouldColumnSelect(be)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},le.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},le.prototype.scrollLines=function(be,pe){he.prototype.scrollLines.call(this,be,pe),this.refresh(0,this.rows-1)},le.prototype.paste=function(be){u.paste(be,this.textarea,this._coreService)},le.prototype.attachCustomKeyEventHandler=function(be){this._customKeyEventHandler=be},le.prototype.registerLinkMatcher=function(be,pe,_e){var ne=this.linkifier.registerLinkMatcher(be,pe,_e);return this.refresh(0,this.rows-1),ne},le.prototype.deregisterLinkMatcher=function(be){this.linkifier.deregisterLinkMatcher(be)&&this.refresh(0,this.rows-1)},le.prototype.registerLinkProvider=function(be){return this.linkifier2.registerLinkProvider(be)},le.prototype.registerCharacterJoiner=function(be){var pe=this._renderService.registerCharacterJoiner(be);return this.refresh(0,this.rows-1),pe},le.prototype.deregisterCharacterJoiner=function(be){this._renderService.deregisterCharacterJoiner(be)&&this.refresh(0,this.rows-1)},Object.defineProperty(le.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),le.prototype.addMarker=function(be){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+be)},le.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},le.prototype.select=function(be,pe,_e){this._selectionService.setSelection(be,pe,_e)},le.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},le.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]}},le.prototype.clearSelection=function(){var be;(be=this._selectionService)===null||be===void 0||be.clearSelection()},le.prototype.selectAll=function(){var be;(be=this._selectionService)===null||be===void 0||be.selectAll()},le.prototype.selectLines=function(be,pe){var _e;(_e=this._selectionService)===null||_e===void 0||_e.selectLines(be,pe)},le.prototype._keyDown=function(be){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(be)===!1)return!1;if(!this._compositionHelper.keydown(be))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var pe=N.evaluateKeyboardEvent(be,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(be),pe.type===3||pe.type===2){var _e=this.rows-1;return this.scrollLines(pe.type===2?-_e:_e),this.cancel(be,!0)}return pe.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,be)||(pe.cancel&&this.cancel(be,!0),!pe.key||(pe.key!==p.C0.ETX&&pe.key!==p.C0.CR||(this.textarea.value=""),this._onKey.fire({key:pe.key,domEvent:be}),this._showCursor(),this._coreService.triggerDataEvent(pe.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(be,!0)))},le.prototype._isThirdLevelShift=function(be,pe){var _e=be.isMac&&!this.options.macOptionIsMeta&&pe.altKey&&!pe.ctrlKey&&!pe.metaKey||be.isWindows&&pe.altKey&&pe.ctrlKey&&!pe.metaKey;return pe.type==="keypress"?_e:_e&&(!pe.keyCode||pe.keyCode>47)},le.prototype._keyUp=function(be){this._customKeyEventHandler&&this._customKeyEventHandler(be)===!1||(function(pe){return pe.keyCode===16||pe.keyCode===17||pe.keyCode===18}(be)||this.focus(),this.updateCursorStyle(be))},le.prototype._keyPress=function(be){var pe;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(be)===!1)return!1;if(this.cancel(be),be.charCode)pe=be.charCode;else if(be.which===null||be.which===void 0)pe=be.keyCode;else{if(be.which===0||be.charCode===0)return!1;pe=be.which}return!(!pe||(be.altKey||be.ctrlKey||be.metaKey)&&!this._isThirdLevelShift(this.browser,be))&&(pe=String.fromCharCode(pe),this._onKey.fire({key:pe,domEvent:be}),this._showCursor(),this._coreService.triggerDataEvent(pe,!0),!0)},le.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},le.prototype.resize=function(be,pe){be!==this.cols||pe!==this.rows?he.prototype.resize.call(this,be,pe):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},le.prototype._afterResize=function(be,pe){var _e,ne;(_e=this._charSizeService)===null||_e===void 0||_e.measure(),(ne=this.viewport)===null||ne===void 0||ne.syncScrollArea(!0)},le.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 be=1;be<this.rows;be++)this.buffer.lines.push(this.buffer.getBlankLine(L.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},le.prototype.reset=function(){var be,pe;this.options.rows=this.rows,this.options.cols=this.cols;var _e=this._customKeyEventHandler;this._setup(),he.prototype.reset.call(this),(be=this._selectionService)===null||be===void 0||be.reset(),this._customKeyEventHandler=_e,this.refresh(0,this.rows-1),(pe=this.viewport)===null||pe===void 0||pe.syncScrollArea()},le.prototype._reportWindowsOptions=function(be){if(this._renderService)switch(be){case y.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var pe=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),_e=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(p.C0.ESC+"[4;"+_e+";"+pe+"t");break;case y.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var ne=this._renderService.dimensions.scaledCellWidth.toFixed(0),ue=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(p.C0.ESC+"[6;"+ue+";"+ne+"t")}},le.prototype.cancel=function(be,pe){if(this.options.cancelEvents||pe)return be.preventDefault(),be.stopPropagation(),!1},le.prototype._visualBell=function(){return!1},le.prototype._soundBell=function(){return this.options.bellStyle==="sound"},le}(ee.CoreTerminal);S.Terminal=oe},function(J,S,B){"use strict";var Y=this&&this.__decorate||function(p,y,m,b){var v,c=arguments.length,h=c<3?y:b===null?b=Object.getOwnPropertyDescriptor(y,m):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,y,m,b);else for(var g=p.length-1;g>=0;g--)(v=p[g])&&(h=(c<3?v(h):c>3?v(y,m,h):v(y,m))||h);return c>3&&h&&Object.defineProperty(y,m,h),h},s=this&&this.__param||function(p,y){return function(m,b){y(m,b,p)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CompositionHelper=void 0;var w=B(5),_=B(1),u=function(){function p(y,m,b,v,c,h){this._textarea=y,this._compositionView=m,this._bufferService=b,this._optionsService=v,this._charSizeService=c,this._coreService=h,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(p.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),p.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},p.prototype.compositionupdate=function(y){var m=this;this._compositionView.textContent=y.data,this.updateCompositionElements(),setTimeout(function(){m._compositionPosition.end=m._textarea.value.length},0)},p.prototype.compositionend=function(){this._finalizeComposition(!0)},p.prototype.keydown=function(y){if(this._isComposing||this._isSendingComposition){if(y.keyCode===229||y.keyCode===16||y.keyCode===17||y.keyCode===18)return!1;this._finalizeComposition(!1)}return y.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},p.prototype._finalizeComposition=function(y){var m=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,y){var b={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(m._isSendingComposition){m._isSendingComposition=!1;var c=void 0;c=m._isComposing?m._textarea.value.substring(b.start,b.end):m._textarea.value.substring(b.start),m._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)}},p.prototype._handleAnyTextareaChanges=function(){var y=this,m=this._textarea.value;setTimeout(function(){if(!y._isComposing){var b=y._textarea.value.replace(m,"");b.length>0&&y._coreService.triggerDataEvent(b,!0)}},0)},p.prototype.updateCompositionElements=function(y){var m=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var b=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),v=this._bufferService.buffer.y*b,c=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=c+"px",this._compositionView.style.top=v+"px",this._compositionView.style.height=b+"px",this._compositionView.style.lineHeight=b+"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"}y||setTimeout(function(){return m.updateCompositionElements(!0)},0)}},p=Y([s(2,_.IBufferService),s(3,_.IOptionsService),s(4,w.ICharSizeService),s(5,_.ICoreService)],p)}();S.CompositionHelper=u},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[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)}),w=this&&this.__decorate||function(v,c,h,g){var x,T=arguments.length,I=T<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,g);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(I=(T<3?x(I):T>3?x(c,h,I):x(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},_=this&&this.__param||function(v,c){return function(h,g){c(h,g,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Viewport=void 0;var u=B(2),p=B(7),y=B(5),m=B(1),b=function(v){function c(h,g,x,T,I,R,N){var k=v.call(this)||this;return k._scrollLines=h,k._viewportElement=g,k._scrollArea=x,k._bufferService=T,k._optionsService=I,k._charSizeService=R,k._renderService=N,k.scrollBarWidth=0,k._currentRowHeight=0,k._lastRecordedBufferLength=0,k._lastRecordedViewportHeight=0,k._lastRecordedBufferHeight=0,k._lastTouchY=0,k._lastScrollTop=0,k._wheelPartialScroll=0,k._refreshAnimationFrame=null,k._ignoreNextScrollEvent=!1,k.scrollBarWidth=k._viewportElement.offsetWidth-k._scrollArea.offsetWidth||15,k.register(p.addDisposableDomListener(k._viewportElement,"scroll",k._onScroll.bind(k))),setTimeout(function(){return k.syncScrollArea()},0),k}return s(c,v),c.prototype.onThemeChange=function(h){this._viewportElement.style.backgroundColor=h.background.css},c.prototype._refresh=function(h){var g=this;if(h)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return g._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 g=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==g&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=g),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 g=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===g&&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 g=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(g,!0)}},c.prototype._bubbleScroll=function(h,g){var x=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(g<0&&this._viewportElement.scrollTop!==0||g>0&&x<this._lastRecordedBufferHeight)||(h.cancelable&&h.preventDefault(),!1)},c.prototype.onWheel=function(h){var g=this._getPixelsScrolled(h);return g!==0&&(this._viewportElement.scrollTop+=g,this._bubbleScroll(h,g))},c.prototype._getPixelsScrolled=function(h){if(h.deltaY===0)return 0;var g=this._applyScrollModifier(h.deltaY,h);return h.deltaMode===WheelEvent.DOM_DELTA_LINE?g*=this._currentRowHeight:h.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(g*=this._currentRowHeight*this._bufferService.rows),g},c.prototype.getLinesScrolled=function(h){if(h.deltaY===0)return 0;var g=this._applyScrollModifier(h.deltaY,h);return h.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(g/=this._currentRowHeight+0,this._wheelPartialScroll+=g,g=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):h.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(g*=this._bufferService.rows),g},c.prototype._applyScrollModifier=function(h,g){var x=this._optionsService.options.fastScrollModifier;return x==="alt"&&g.altKey||x==="ctrl"&&g.ctrlKey||x==="shift"&&g.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 g=this._lastTouchY-h.touches[0].pageY;return this._lastTouchY=h.touches[0].pageY,g!==0&&(this._viewportElement.scrollTop+=g,this._bubbleScroll(h,g))},c=w([_(3,m.IBufferService),_(4,m.IOptionsService),_(5,y.ICharSizeService),_(6,y.IRenderService)],c)}(u.Disposable);S.Viewport=b},function(J,S,B){"use strict";function Y(u){return u.replace(/\r?\n/g,"\r")}function s(u,p){return p?"\x1B[200~"+u+"\x1B[201~":u}function w(u,p,y){u=s(u=Y(u),y.decPrivateModes.bracketedPasteMode),y.triggerDataEvent(u,!0),p.value=""}function _(u,p,y){var m=y.getBoundingClientRect(),b=u.clientX-m.left-10,v=u.clientY-m.top-10;p.style.width="20px",p.style.height="20px",p.style.left=b+"px",p.style.top=v+"px",p.style.zIndex="1000",p.focus()}Object.defineProperty(S,"__esModule",{value:!0}),S.rightClickHandler=S.moveTextAreaUnderMouseCursor=S.paste=S.handlePasteEvent=S.copyHandler=S.bracketTextForPaste=S.prepareTextForTerminal=void 0,S.prepareTextForTerminal=Y,S.bracketTextForPaste=s,S.copyHandler=function(u,p){u.clipboardData&&u.clipboardData.setData("text/plain",p.selectionText),u.preventDefault()},S.handlePasteEvent=function(u,p,y){u.stopPropagation(),u.clipboardData&&w(u.clipboardData.getData("text/plain"),p,y)},S.paste=w,S.moveTextAreaUnderMouseCursor=_,S.rightClickHandler=function(u,p,y,m,b){_(u,p,y),b&&!m.isClickInSelection(u)&&m.selectWordAtCursor(u),p.value=m.selectionText,p.select()}},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[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(S,"__esModule",{value:!0}),S.EscapeSequenceParser=S.VT500_TRANSITION_TABLE=S.TransitionTable=void 0;var w=B(2),_=B(15),u=B(21),p=B(22),y=B(24),m=function(){function v(c){this.table=new Uint8Array(c)}return v.prototype.setDefault=function(c,h){_.fill(this.table,c<<4|h)},v.prototype.add=function(c,h,g,x){this.table[h<<8|c]=g<<4|x},v.prototype.addMany=function(c,h,g,x){for(var T=0;T<c.length;T++)this.table[h<<8|c[T]]=g<<4|x},v}();S.TransitionTable=m,S.VT500_TRANSITION_TABLE=function(){var v=new m(4095),c=Array.apply(null,Array(256)).map(function(R,N){return N}),h=function(R,N){return c.slice(R,N)},g=h(32,127),x=h(0,24);x.push(25),x.push.apply(x,h(28,32));var T,I=h(0,14);for(T in v.setDefault(1,0),v.addMany(g,0,2,0),I)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(g,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(g,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(g,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 b=function(v){function c(h){h===void 0&&(h=S.VT500_TRANSITION_TABLE);var g=v.call(this)||this;return g._transitions=h,g.initialState=0,g.currentState=g.initialState,g._params=new u.Params,g._params.addParam(0),g._collect=0,g.precedingCodepoint=0,g._printHandlerFb=function(x,T,I){},g._executeHandlerFb=function(x){},g._csiHandlerFb=function(x,T){},g._escHandlerFb=function(x){},g._errorHandlerFb=function(x){return x},g._printHandler=g._printHandlerFb,g._executeHandlers=Object.create(null),g._csiHandlers=Object.create(null),g._escHandlers=Object.create(null),g._oscParser=new p.OscParser,g._dcsParser=new y.DcsParser,g._errorHandler=g._errorHandlerFb,g.setEscHandler({final:"\\"},function(){}),g}return s(c,v),c.prototype._identifier=function(h,g){g===void 0&&(g=[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 I=h.intermediates.charCodeAt(T);if(32>I||I>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");x<<=8,x|=I}}if(h.final.length!==1)throw new Error("final must be a single byte");var R=h.final.charCodeAt(0);if(g[0]>R||R>g[1])throw new Error("final must be in range "+g[0]+" .. "+g[1]);return x<<=8,x|=R},c.prototype.identToString=function(h){for(var g=[];h;)g.push(String.fromCharCode(255&h)),h>>=8;return g.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,g){var x=this._identifier(h,[48,126]);this._escHandlers[x]===void 0&&(this._escHandlers[x]=[]);var T=this._escHandlers[x];return T.push(g),{dispose:function(){var I=T.indexOf(g);I!==-1&&T.splice(I,1)}}},c.prototype.setEscHandler=function(h,g){this._escHandlers[this._identifier(h,[48,126])]=[g]},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,g){this._executeHandlers[h.charCodeAt(0)]=g},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,g){var x=this._identifier(h);this._csiHandlers[x]===void 0&&(this._csiHandlers[x]=[]);var T=this._csiHandlers[x];return T.push(g),{dispose:function(){var I=T.indexOf(g);I!==-1&&T.splice(I,1)}}},c.prototype.setCsiHandler=function(h,g){this._csiHandlers[this._identifier(h)]=[g]},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,g){return this._dcsParser.addHandler(this._identifier(h),g)},c.prototype.setDcsHandler=function(h,g){this._dcsParser.setHandler(this._identifier(h),g)},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,g){return this._oscParser.addHandler(h,g)},c.prototype.setOscHandler=function(h,g){this._oscParser.setHandler(h,g)},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,g){for(var x=0,T=0,I=this.currentState,R=this._oscParser,N=this._dcsParser,k=this._collect,L=this._params,H=this._transitions.table,M=0;M<g;++M){switch((T=H[I<<8|((x=h[M])<160?x:160)])>>4){case 2:for(var F=M+1;;++F){if(F>=g||(x=h[F])<32||x>126&&x<160){this._printHandler(h,M,F),M=F-1;break}if(++F>=g||(x=h[F])<32||x>126&&x<160){this._printHandler(h,M,F),M=F-1;break}if(++F>=g||(x=h[F])<32||x>126&&x<160){this._printHandler(h,M,F),M=F-1;break}if(++F>=g||(x=h[F])<32||x>126&&x<160){this._printHandler(h,M,F),M=F-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:M,code:x,currentState:I,collect:k,params:L,abort:!1}).abort)return;break;case 7:for(var P=this._csiHandlers[k<<8|x],U=P?P.length-1:-1;U>=0&&P[U](L)===!1;U--);U<0&&this._csiHandlerFb(k<<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(++M<g&&(x=h[M])>47&&x<60);M--;break;case 9:k<<=8,k|=x;break;case 10:for(var G=this._escHandlers[k<<8|x],Q=G?G.length-1:-1;Q>=0&&G[Q]()===!1;Q--);Q<0&&this._escHandlerFb(k<<8|x),this.precedingCodepoint=0;break;case 11:L.reset(),L.addParam(0),k=0;break;case 12:N.hook(k<<8|x,L);break;case 13:for(var ee=M+1;;++ee)if(ee>=g||(x=h[ee])===24||x===26||x===27||x>127&&x<160){N.put(h,M,ee),M=ee-1;break}break;case 14:N.unhook(x!==24&&x!==26),x===27&&(T|=1),L.reset(),L.addParam(0),k=0,this.precedingCodepoint=0;break;case 4:R.start();break;case 5:for(var ae=M+1;;ae++)if(ae>=g||(x=h[ae])<32||x>127&&x<=159){R.put(h,M,ae),M=ae-1;break}break;case 6:R.end(x!==24&&x!==26),x===27&&(T|=1),L.reset(),L.addParam(0),k=0,this.precedingCodepoint=0}I=15&T}this._collect=k,this.currentState=I},c}(w.Disposable);S.EscapeSequenceParser=b},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(R,N){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,L){k.__proto__=L}||function(k,L){for(var H in L)L.hasOwnProperty(H)&&(k[H]=L[H])})(R,N)},function(R,N){function k(){this.constructor=R}Y(R,N),R.prototype=N===null?Object.create(N):(k.prototype=N.prototype,new k)}),w=this&&this.__decorate||function(R,N,k,L){var H,M=arguments.length,F=M<3?N:L===null?L=Object.getOwnPropertyDescriptor(N,k):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(R,N,k,L);else for(var P=R.length-1;P>=0;P--)(H=R[P])&&(F=(M<3?H(F):M>3?H(N,k,F):H(N,k))||F);return M>3&&F&&Object.defineProperty(N,k,F),F},_=this&&this.__param||function(R,N){return function(k,L){N(k,L,R)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Renderer=void 0;var u=B(41),p=B(47),y=B(48),m=B(49),b=B(29),v=B(2),c=B(5),h=B(1),g=B(25),x=B(0),T=1,I=function(R){function N(k,L,H,M,F,P,U,G,Q){var ee=R.call(this)||this;ee._colors=k,ee._screenElement=L,ee._bufferService=F,ee._charSizeService=P,ee._optionsService=U,ee._id=T++,ee._onRequestRedraw=new x.EventEmitter;var ae=ee._optionsService.options.allowTransparency;return ee._characterJoinerRegistry=new b.CharacterJoinerRegistry(ee._bufferService),ee._renderLayers=[new u.TextRenderLayer(ee._screenElement,0,ee._colors,ee._characterJoinerRegistry,ae,ee._id,ee._bufferService,U),new p.SelectionRenderLayer(ee._screenElement,1,ee._colors,ee._id,ee._bufferService,U),new m.LinkRenderLayer(ee._screenElement,2,ee._colors,ee._id,H,M,ee._bufferService,U),new y.CursorRenderLayer(ee._screenElement,3,ee._colors,ee._id,ee._onRequestRedraw,ee._bufferService,U,G,Q)],ee.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},ee._devicePixelRatio=window.devicePixelRatio,ee._updateDimensions(),ee.onOptionsChanged(),ee}return s(N,R),Object.defineProperty(N.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),N.prototype.dispose=function(){for(var k=0,L=this._renderLayers;k<L.length;k++)L[k].dispose();R.prototype.dispose.call(this),g.removeTerminalFromCache(this._id)},N.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},N.prototype.setColors=function(k){this._colors=k;for(var L=0,H=this._renderLayers;L<H.length;L++){var M=H[L];M.setColors(this._colors),M.reset()}},N.prototype.onResize=function(k,L){this._updateDimensions();for(var H=0,M=this._renderLayers;H<M.length;H++)M[H].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},N.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},N.prototype.onBlur=function(){this._runOperation(function(k){return k.onBlur()})},N.prototype.onFocus=function(){this._runOperation(function(k){return k.onFocus()})},N.prototype.onSelectionChanged=function(k,L,H){H===void 0&&(H=!1),this._runOperation(function(M){return M.onSelectionChanged(k,L,H)})},N.prototype.onCursorMove=function(){this._runOperation(function(k){return k.onCursorMove()})},N.prototype.onOptionsChanged=function(){this._runOperation(function(k){return k.onOptionsChanged()})},N.prototype.clear=function(){this._runOperation(function(k){return k.reset()})},N.prototype._runOperation=function(k){for(var L=0,H=this._renderLayers;L<H.length;L++)k(H[L])},N.prototype.renderRows=function(k,L){for(var H=0,M=this._renderLayers;H<M.length;H++)M[H].onGridChanged(k,L)},N.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)},N.prototype.registerCharacterJoiner=function(k){return this._characterJoinerRegistry.registerCharacterJoiner(k)},N.prototype.deregisterCharacterJoiner=function(k){return this._characterJoinerRegistry.deregisterCharacterJoiner(k)},N=w([_(4,h.IBufferService),_(5,c.ICharSizeService),_(6,h.IOptionsService),_(7,h.ICoreService),_(8,c.ICoreBrowserService)],N)}(v.Disposable);S.Renderer=I},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[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(S,"__esModule",{value:!0}),S.TextRenderLayer=void 0;var w=B(42),_=B(13),u=B(6),p=B(3),y=B(29),m=B(4),b=function(v){function c(h,g,x,T,I,R,N,k){var L=v.call(this,h,"text",g,I,x,R,N,k)||this;return L._characterWidth=0,L._characterFont="",L._characterOverlapCache={},L._workCell=new m.CellData,L._state=new w.GridCache,L._characterJoinerRegistry=T,L}return s(c,v),c.prototype.resize=function(h){v.prototype.resize.call(this,h);var g=this._getFont(!1,!1);this._characterWidth===h.scaledCharWidth&&this._characterFont===g||(this._characterWidth=h.scaledCharWidth,this._characterFont=g,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,g,x,T){for(var I=h;I<=g;I++)for(var R=I+this._bufferService.buffer.ydisp,N=this._bufferService.buffer.lines.get(R),k=x?x.getJoinedCharacters(R):[],L=0;L<this._bufferService.cols;L++){N.loadCell(L,this._workCell);var H=this._workCell,M=!1,F=L;if(H.getWidth()!==0){if(k.length>0&&L===k[0][0]){M=!0;var P=k.shift();H=new y.JoinedCellData(this._workCell,N.translateToString(!0,P[0],P[1]),P[1]-P[0]),F=P[1]-1}!M&&this._isOverlapping(H)&&F<N.length-1&&N.getCodePoint(F+1)===p.NULL_CELL_CODE&&(H.content&=-12582913,H.content|=2<<22),T(H,L,I),L=F}}},c.prototype._drawBackground=function(h,g){var x=this,T=this._ctx,I=this._bufferService.cols,R=0,N=0,k=null;T.save(),this._forEachCell(h,g,null,function(L,H,M){var F=null;L.isInverse()?F=L.isFgDefault()?x._colors.foreground.css:L.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(L.getFgColor()).join(",")+")":x._colors.ansi[L.getFgColor()].css:L.isBgRGB()?F="rgb("+u.AttributeData.toColorRGB(L.getBgColor()).join(",")+")":L.isBgPalette()&&(F=x._colors.ansi[L.getBgColor()].css),k===null&&(R=H,N=M),M!==N?(T.fillStyle=k||"",x._fillCells(R,N,I-R,1),R=H,N=M):k!==F&&(T.fillStyle=k||"",x._fillCells(R,N,H-R,1),R=H,N=M),k=F}),k!==null&&(T.fillStyle=k,this._fillCells(R,N,I-R,1)),T.restore()},c.prototype._drawForeground=function(h,g){var x=this;this._forEachCell(h,g,this._characterJoinerRegistry,function(T,I,R){if(!T.isInvisible()&&(x._drawChars(T,I,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 N=T.getBgColor();x._optionsService.options.drawBoldTextInBrightColors&&T.isBold()&&N<8&&(N+=8),x._ctx.fillStyle=x._colors.ansi[N].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 k=T.getFgColor();x._optionsService.options.drawBoldTextInBrightColors&&T.isBold()&&k<8&&(k+=8),x._ctx.fillStyle=x._colors.ansi[k].css}x._fillBottomLineAtCells(I,R,T.getWidth()),x._ctx.restore()}})},c.prototype.onGridChanged=function(h,g){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,h,this._bufferService.cols,g-h+1),this._drawBackground(h,g),this._drawForeground(h,g))},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 g=h.getChars();if(this._characterOverlapCache.hasOwnProperty(g))return this._characterOverlapCache[g];this._ctx.save(),this._ctx.font=this._characterFont;var x=Math.floor(this._ctx.measureText(g).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[g]=x,x},c}(_.BaseRenderLayer);S.TextRenderLayer=b},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.GridCache=void 0;var Y=function(){function s(){this.cache=[]}return s.prototype.resize=function(w,_){for(var u=0;u<w;u++){this.cache.length<=u&&this.cache.push([]);for(var p=this.cache[u].length;p<_;p++)this.cache[u].push(void 0);this.cache[u].length=_}this.cache.length=w},s.prototype.clear=function(){for(var w=0;w<this.cache.length;w++)for(var _=0;_<this.cache[w].length;_++)this.cache[w][_]=void 0},s}();S.GridCache=Y},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(x,T){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,R){I.__proto__=R}||function(I,R){for(var N in R)R.hasOwnProperty(N)&&(I[N]=R[N])})(x,T)},function(x,T){function I(){this.constructor=x}Y(x,T),x.prototype=T===null?Object.create(T):(I.prototype=T.prototype,new I)});Object.defineProperty(S,"__esModule",{value:!0}),S.NoneCharAtlas=S.DynamicCharAtlas=S.getGlyphCacheKey=void 0;var w=B(9),_=B(44),u=B(27),p=B(46),y=B(11),m=B(28),b=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)}S.getGlyphCacheKey=c;var h=function(x){function T(I,R){var N=x.call(this)||this;N._config=R,N._drawToCacheCount=0,N._glyphsWaitingOnBitmap=[],N._bitmapCommitTimeout=null,N._bitmap=null,N._cacheCanvas=I.createElement("canvas"),N._cacheCanvas.width=1024,N._cacheCanvas.height=1024,N._cacheCtx=m.throwIfFalsy(N._cacheCanvas.getContext("2d",{alpha:!0}));var k=I.createElement("canvas");k.width=N._config.scaledCharWidth,k.height=N._config.scaledCharHeight,N._tmpCtx=m.throwIfFalsy(k.getContext("2d",{alpha:N._config.allowTransparency})),N._width=Math.floor(1024/N._config.scaledCharWidth),N._height=Math.floor(1024/N._config.scaledCharHeight);var L=N._width*N._height;return N._cacheMap=new p.LRUMap(L),N._cacheMap.prealloc(L),N}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(I,R,N,k){if(R.code===32)return!0;if(!this._canCache(R))return!1;var L=c(R),H=this._cacheMap.get(L);if(H!=null)return this._drawFromCache(I,H,N,k),!0;if(this._drawToCacheCount<100){var M=void 0;M=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var F=this._drawToCache(R,M);return this._cacheMap.set(L,F),this._drawFromCache(I,F,N,k),!0}return!1},T.prototype._canCache=function(I){return I.code<256},T.prototype._toCoordinateX=function(I){return I%this._width*this._config.scaledCharWidth},T.prototype._toCoordinateY=function(I){return Math.floor(I/this._width)*this._config.scaledCharHeight},T.prototype._drawFromCache=function(I,R,N,k){if(!R.isEmpty){var L=this._toCoordinateX(R.index),H=this._toCoordinateY(R.index);I.drawImage(R.inBitmap?this._bitmap:this._cacheCanvas,L,H,this._config.scaledCharWidth,this._config.scaledCharHeight,N,k,this._config.scaledCharWidth,this._config.scaledCharHeight)}},T.prototype._getColorFromAnsiIndex=function(I){return I<this._config.colors.ansi.length?this._config.colors.ansi[I]:u.DEFAULT_ANSI_COLORS[I]},T.prototype._getBackgroundColor=function(I){return this._config.allowTransparency?v:I.bg===w.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:I.bg<256?this._getColorFromAnsiIndex(I.bg):this._config.colors.background},T.prototype._getForegroundColor=function(I){return I.fg===w.INVERTED_DEFAULT_COLOR?b.color.opaque(this._config.colors.background):I.fg<256?this._getColorFromAnsiIndex(I.fg):this._config.colors.foreground},T.prototype._drawToCache=function(I,R){this._drawToCacheCount++,this._tmpCtx.save();var N=this._getBackgroundColor(I);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=N.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var k=I.bold?this._config.fontWeightBold:this._config.fontWeight,L=I.italic?"italic":"";this._tmpCtx.font=L+" "+k+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(I).css,I.dim&&(this._tmpCtx.globalAlpha=w.DIM_OPACITY),this._tmpCtx.fillText(I.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var H=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),M=!1;this._config.allowTransparency||(M=function(G,Q){for(var ee=!0,ae=Q.rgba>>>24,oe=Q.rgba>>>16&255,he=Q.rgba>>>8&255,le=0;le<G.data.length;le+=4)G.data[le]===ae&&G.data[le+1]===oe&&G.data[le+2]===he?G.data[le+3]=0:ee=!1;return ee}(H,N));var F=this._toCoordinateX(R),P=this._toCoordinateY(R);this._cacheCtx.putImageData(H,F,P);var U={index:R,isEmpty:M,inBitmap:!1};return this._addGlyphToBitmap(U),U},T.prototype._addGlyphToBitmap=function(I){var R=this;!("createImageBitmap"in window)||y.isFirefox||y.isSafari||(this._glyphsWaitingOnBitmap.push(I),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return R._generateBitmap()},100)))},T.prototype._generateBitmap=function(){var I=this,R=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(N){I._bitmap=N;for(var k=0;k<R.length;k++)R[k].inBitmap=!0}),this._bitmapCommitTimeout=null},T}(_.BaseCharAtlas);S.DynamicCharAtlas=h;var g=function(x){function T(I,R){return x.call(this)||this}return s(T,x),T.prototype.draw=function(I,R,N,k){return!1},T}(_.BaseCharAtlas);S.NoneCharAtlas=g},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.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}();S.BaseCharAtlas=Y},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.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(w,_,u){this._rgba[w]||(this._rgba[w]={}),this._rgba[w][_]=u},s.prototype.getCss=function(w,_){return this._rgba[w]?this._rgba[w][_]:void 0},s.prototype.setColor=function(w,_,u){this._color[w]||(this._color[w]={}),this._color[w][_]=u},s.prototype.getColor=function(w,_){return this._color[w]?this._color[w][_]:void 0},s}();S.ColorContrastCache=Y},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.LRUMap=void 0;var Y=function(){function s(w){this.capacity=w,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return s.prototype._unlinkNode=function(w){var _=w.prev,u=w.next;w===this._head&&(this._head=u),w===this._tail&&(this._tail=_),_!==null&&(_.next=u),u!==null&&(u.prev=_)},s.prototype._appendNode=function(w){var _=this._tail;_!==null&&(_.next=w),w.prev=_,w.next=null,this._tail=w,this._head===null&&(this._head=w)},s.prototype.prealloc=function(w){for(var _=this._nodePool,u=0;u<w;u++)_.push({prev:null,next:null,key:null,value:null})},s.prototype.get=function(w){var _=this._map[w];return _!==void 0?(this._unlinkNode(_),this._appendNode(_),_.value):null},s.prototype.peekValue=function(w){var _=this._map[w];return _!==void 0?_.value:null},s.prototype.peek=function(){var w=this._head;return w===null?null:w.value},s.prototype.set=function(w,_){var u=this._map[w];if(u!==void 0)u=this._map[w],this._unlinkNode(u),u.value=_;else if(this.size>=this.capacity)u=this._head,this._unlinkNode(u),delete this._map[u.key],u.key=w,u.value=_,this._map[w]=u;else{var p=this._nodePool;p.length>0?((u=p.pop()).key=w,u.value=_):u={prev:null,next:null,key:w,value:_},this._map[w]=u,this.size++}this._appendNode(u)},s}();S.LRUMap=Y},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(_,u){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var m in y)y.hasOwnProperty(m)&&(p[m]=y[m])})(_,u)},function(_,u){function p(){this.constructor=_}Y(_,u),_.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)});Object.defineProperty(S,"__esModule",{value:!0}),S.SelectionRenderLayer=void 0;var w=function(_){function u(p,y,m,b,v,c){var h=_.call(this,p,"selection",y,!0,m,b,v,c)||this;return h._clearState(),h}return s(u,_),u.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},u.prototype.resize=function(p){_.prototype.resize.call(this,p),this._clearState()},u.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},u.prototype.onSelectionChanged=function(p,y,m){if(this._didStateChange(p,y,m,this._bufferService.buffer.ydisp))if(this._clearAll(),p&&y){var b=p[1]-this._bufferService.buffer.ydisp,v=y[1]-this._bufferService.buffer.ydisp,c=Math.max(b,0),h=Math.min(v,this._bufferService.rows-1);if(!(c>=this._bufferService.rows||h<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,m){var g=p[0],x=y[0]-g,T=h-c+1;this._fillCells(g,c,x,T)}else{g=b===c?p[0]:0;var I=c===h?y[0]:this._bufferService.cols;this._fillCells(g,c,I-g,1);var R=Math.max(h-c-1,0);if(this._fillCells(0,c+1,this._bufferService.cols,R),c!==h){var N=v===h?y[0]:this._bufferService.cols;this._fillCells(0,h,N,1)}}this._state.start=[p[0],p[1]],this._state.end=[y[0],y[1]],this._state.columnSelectMode=m,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},u.prototype._didStateChange=function(p,y,m,b){return!this._areCoordinatesEqual(p,this._state.start)||!this._areCoordinatesEqual(y,this._state.end)||m!==this._state.columnSelectMode||b!==this._state.ydisp},u.prototype._areCoordinatesEqual=function(p,y){return!(!p||!y)&&p[0]===y[0]&&p[1]===y[1]},u}(B(13).BaseRenderLayer);S.SelectionRenderLayer=w},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(y,m){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var c in v)v.hasOwnProperty(c)&&(b[c]=v[c])})(y,m)},function(y,m){function b(){this.constructor=y}Y(y,m),y.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)});Object.defineProperty(S,"__esModule",{value:!0}),S.CursorRenderLayer=void 0;var w=B(13),_=B(4),u=function(y){function m(b,v,c,h,g,x,T,I,R){var N=y.call(this,b,"cursor",v,!0,c,h,x,T)||this;return N._onRequestRedraw=g,N._coreService=I,N._coreBrowserService=R,N._cell=new _.CellData,N._state={x:0,y:0,isFocused:!1,style:"",width:0},N._cursorRenderers={bar:N._renderBarCursor.bind(N),block:N._renderBlockCursor.bind(N),underline:N._renderUnderlineCursor.bind(N)},N}return s(m,y),m.prototype.resize=function(b){y.prototype.resize.call(this,b),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},m.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},m.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},m.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},m.prototype.onOptionsChanged=function(){var b,v=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new p(this._coreBrowserService.isFocused,function(){v._render(!0)})):((b=this._cursorBlinkStateManager)===null||b===void 0||b.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},m.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},m.prototype.onGridChanged=function(b,v){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},m.prototype._render=function(b){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 g=this._optionsService.options.cursorStyle;return g&&g!=="block"?this._cursorRenderers[g](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=g,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()},m.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})},m.prototype._renderBarCursor=function(b,v,c){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(b,v,this._optionsService.options.cursorWidth),this._ctx.restore()},m.prototype._renderBlockCursor=function(b,v,c){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(b,v,c.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(c,b,v),this._ctx.restore()},m.prototype._renderUnderlineCursor=function(b,v,c){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(b,v),this._ctx.restore()},m.prototype._renderBlurCursor=function(b,v,c){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(b,v,c.getWidth(),1),this._ctx.restore()},m}(w.BaseRenderLayer);S.CursorRenderLayer=u;var p=function(){function y(m,b){this._renderCallback=b,this.isCursorVisible=!0,m&&this._restartInterval()}return Object.defineProperty(y.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),y.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)},y.prototype.restartBlinkAnimation=function(){var m=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){m._renderCallback(),m._animationFrame=void 0})))},y.prototype._restartInterval=function(m){var b=this;m===void 0&&(m=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(b._animationTimeRestarted){var v=600-(Date.now()-b._animationTimeRestarted);if(b._animationTimeRestarted=void 0,v>0)return void b._restartInterval(v)}b.isCursorVisible=!1,b._animationFrame=window.requestAnimationFrame(function(){b._renderCallback(),b._animationFrame=void 0}),b._blinkInterval=window.setInterval(function(){if(b._animationTimeRestarted){var c=600-(Date.now()-b._animationTimeRestarted);return b._animationTimeRestarted=void 0,void b._restartInterval(c)}b.isCursorVisible=!b.isCursorVisible,b._animationFrame=window.requestAnimationFrame(function(){b._renderCallback(),b._animationFrame=void 0})},600)},m)},y.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)},y.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},y}()},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(y,m){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var c in v)v.hasOwnProperty(c)&&(b[c]=v[c])})(y,m)},function(y,m){function b(){this.constructor=y}Y(y,m),y.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)});Object.defineProperty(S,"__esModule",{value:!0}),S.LinkRenderLayer=void 0;var w=B(13),_=B(9),u=B(26),p=function(y){function m(b,v,c,h,g,x,T,I){var R=y.call(this,b,"link",v,!0,c,h,T,I)||this;return g.onShowLinkUnderline(function(N){return R._onShowLinkUnderline(N)}),g.onHideLinkUnderline(function(N){return R._onHideLinkUnderline(N)}),x.onShowLinkUnderline(function(N){return R._onShowLinkUnderline(N)}),x.onHideLinkUnderline(function(N){return R._onHideLinkUnderline(N)}),R}return s(m,y),m.prototype.resize=function(b){y.prototype.resize.call(this,b),this._state=void 0},m.prototype.reset=function(){this._clearCurrentLink()},m.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var b=this._state.y2-this._state.y1-1;b>0&&this._clearCells(0,this._state.y1+1,this._state.cols,b),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},m.prototype._onShowLinkUnderline=function(b){if(b.fg===_.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:b.fg&&u.is256Color(b.fg)?this._ctx.fillStyle=this._colors.ansi[b.fg].css:this._ctx.fillStyle=this._colors.foreground.css,b.y1===b.y2)this._fillBottomLineAtCells(b.x1,b.y1,b.x2-b.x1);else{this._fillBottomLineAtCells(b.x1,b.y1,b.cols-b.x1);for(var v=b.y1+1;v<b.y2;v++)this._fillBottomLineAtCells(0,v,b.cols);this._fillBottomLineAtCells(0,b.y2,b.x2)}this._state=b},m.prototype._onHideLinkUnderline=function(b){this._clearCurrentLink()},m}(w.BaseRenderLayer);S.LinkRenderLayer=p},function(J,S,B){"use strict";var Y=this&&this.__decorate||function(y,m,b,v){var c,h=arguments.length,g=h<3?m:v===null?v=Object.getOwnPropertyDescriptor(m,b):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(y,m,b,v);else for(var x=y.length-1;x>=0;x--)(c=y[x])&&(g=(h<3?c(g):h>3?c(m,b,g):c(m,b))||g);return h>3&&g&&Object.defineProperty(m,b,g),g},s=this&&this.__param||function(y,m){return function(b,v){m(b,v,y)}};Object.defineProperty(S,"__esModule",{value:!0}),S.MouseZone=S.Linkifier=void 0;var w=B(0),_=B(1),u=function(){function y(m,b,v){this._bufferService=m,this._logService=b,this._unicodeService=v,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new w.EventEmitter,this._onHideLinkUnderline=new w.EventEmitter,this._onLinkTooltip=new w.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(y.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),y.prototype.attachToDom=function(m,b){this._element=m,this._mouseZoneManager=b},y.prototype.linkifyRows=function(m,b){var v=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=m,this._rowsToLinkify.end=b):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,m),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,b)),this._mouseZoneManager.clearAll(m,b),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return v._linkifyRows()},y._timeBeforeLatency))},y.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var m=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var b=m.ydisp+this._rowsToLinkify.start;if(!(b>=m.lines.length)){for(var v=m.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,c=Math.ceil(2e3/this._bufferService.cols),h=this._bufferService.buffer.iterator(!1,b,v,c,c);h.hasNext();)for(var g=h.next(),x=0;x<this._linkMatchers.length;x++)this._doLinkifyRow(g.range.first,g.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")},y.prototype.registerLinkMatcher=function(m,b,v){if(v===void 0&&(v={}),!b)throw new Error("handler must be defined");var c={id:this._nextLinkMatcherId++,regex:m,handler:b,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},y.prototype._addLinkMatcherToList=function(m){if(this._linkMatchers.length!==0){for(var b=this._linkMatchers.length-1;b>=0;b--)if(m.priority<=this._linkMatchers[b].priority)return void this._linkMatchers.splice(b+1,0,m);this._linkMatchers.splice(0,0,m)}else this._linkMatchers.push(m)},y.prototype.deregisterLinkMatcher=function(m){for(var b=0;b<this._linkMatchers.length;b++)if(this._linkMatchers[b].id===m)return this._linkMatchers.splice(b,1),!0;return!1},y.prototype._doLinkifyRow=function(m,b,v){for(var c,h=this,g=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 I._logService.debug("match found without corresponding matchIndex",c,v),"break";if(x=b.indexOf(R,x+1),g.lastIndex=x+R.length,x<0)return"break";var N=I._bufferService.buffer.stringIndexToBufferIndex(m,x);if(N[0]<0)return"break";var k=I._bufferService.buffer.lines.get(N[0]);if(!k)return"break";var L=k.getFg(N[1]),H=L?L>>9&511:void 0;v.validationCallback?v.validationCallback(R,function(M){h._rowsTimeoutId||M&&h._addLink(N[1],N[0]-h._bufferService.buffer.ydisp,R,v,H)}):I._addLink(N[1],N[0]-I._bufferService.buffer.ydisp,R,v,H)},I=this;(c=g.exec(b))!==null&&T()!=="break";);},y.prototype._addLink=function(m,b,v,c,h){var g=this;if(this._mouseZoneManager&&this._element){var x=this._unicodeService.getStringCellWidth(v),T=m%this._bufferService.cols,I=b+Math.floor(m/this._bufferService.cols),R=(T+x)%this._bufferService.cols,N=I+Math.floor((T+x)/this._bufferService.cols);R===0&&(R=this._bufferService.cols,N--),this._mouseZoneManager.add(new p(T+1,I+1,R+1,N+1,function(k){if(c.handler)return c.handler(k,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(){g._onShowLinkUnderline.fire(g._createLinkHoverEvent(T,I,R,N,h)),g._element.classList.add("xterm-cursor-pointer")},function(k){g._onLinkTooltip.fire(g._createLinkHoverEvent(T,I,R,N,h)),c.hoverTooltipCallback&&c.hoverTooltipCallback(k,v,{start:{x:T,y:I},end:{x:R,y:N}})},function(){g._onHideLinkUnderline.fire(g._createLinkHoverEvent(T,I,R,N,h)),g._element.classList.remove("xterm-cursor-pointer"),c.hoverLeaveCallback&&c.hoverLeaveCallback()},function(k){return!c.willLinkActivate||c.willLinkActivate(k,v)}))}},y.prototype._createLinkHoverEvent=function(m,b,v,c,h){return{x1:m,y1:b,x2:v,y2:c,cols:this._bufferService.cols,fg:h}},y._timeBeforeLatency=200,y=Y([s(0,_.IBufferService),s(1,_.ILogService),s(2,_.IUnicodeService)],y)}();S.Linkifier=u;var p=function(y,m,b,v,c,h,g,x,T){this.x1=y,this.y1=m,this.x2=b,this.y2=v,this.clickCallback=c,this.hoverCallback=h,this.tooltipCallback=g,this.leaveCallback=x,this.willLinkActivate=T};S.MouseZone=p},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(R,N){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,L){k.__proto__=L}||function(k,L){for(var H in L)L.hasOwnProperty(H)&&(k[H]=L[H])})(R,N)},function(R,N){function k(){this.constructor=R}Y(R,N),R.prototype=N===null?Object.create(N):(k.prototype=N.prototype,new k)}),w=this&&this.__decorate||function(R,N,k,L){var H,M=arguments.length,F=M<3?N:L===null?L=Object.getOwnPropertyDescriptor(N,k):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(R,N,k,L);else for(var P=R.length-1;P>=0;P--)(H=R[P])&&(F=(M<3?H(F):M>3?H(N,k,F):H(N,k))||F);return M>3&&F&&Object.defineProperty(N,k,F),F},_=this&&this.__param||function(R,N){return function(k,L){N(k,L,R)}};Object.defineProperty(S,"__esModule",{value:!0}),S.SelectionService=void 0;var u=B(11),p=B(52),y=B(4),m=B(0),b=B(5),v=B(1),c=B(30),h=B(53),g=B(2),x="\xA0",T=new RegExp(x,"g"),I=function(R){function N(k,L,H,M,F,P,U){var G=R.call(this)||this;return G._element=k,G._screenElement=L,G._bufferService=H,G._coreService=M,G._mouseService=F,G._optionsService=P,G._renderService=U,G._dragScrollAmount=0,G._enabled=!0,G._workCell=new y.CellData,G._mouseDownTimeStamp=0,G._onLinuxMouseSelection=G.register(new m.EventEmitter),G._onRedrawRequest=G.register(new m.EventEmitter),G._onSelectionChange=G.register(new m.EventEmitter),G._onRequestScrollLines=G.register(new m.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 p.SelectionModel(G._bufferService),G._activeSelectionMode=0,G}return s(N,R),Object.defineProperty(N.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),N.prototype.dispose=function(){this._removeMouseDownListeners()},N.prototype.reset=function(){this.clearSelection()},N.prototype.disable=function(){this.clearSelection(),this._enabled=!1},N.prototype.enable=function(){this._enabled=!0},Object.defineProperty(N.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"hasSelection",{get:function(){var k=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!(!k||!L)&&(k[0]!==L[0]||k[1]!==L[1])},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"selectionText",{get:function(){var k=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;if(!k||!L)return"";var H=this._bufferService.buffer,M=[];if(this._activeSelectionMode===3){if(k[0]===L[0])return"";for(var F=k[1];F<=L[1];F++){var P=H.translateBufferLineToString(F,!0,k[0],L[0]);M.push(P)}}else{var U=k[1]===L[1]?L[0]:void 0;for(M.push(H.translateBufferLineToString(k[1],!0,k[0],U)),F=k[1]+1;F<=L[1]-1;F++){var G=H.lines.get(F);P=H.translateBufferLineToString(F,!0),G&&G.isWrapped?M[M.length-1]+=P:M.push(P)}k[1]!==L[1]&&(G=H.lines.get(L[1]),P=H.translateBufferLineToString(L[1],!0,0,L[0]),G&&G.isWrapped?M[M.length-1]+=P:M.push(P))}return M.map(function(Q){return Q.replace(T," ")}).join(u.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),N.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},N.prototype.refresh=function(k){var L=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return L._refresh()})),u.isLinux&&k&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},N.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},N.prototype.isClickInSelection=function(k){var L=this._getMouseBufferCoords(k),H=this._model.finalSelectionStart,M=this._model.finalSelectionEnd;return!!(H&&M&&L)&&this._areCoordsInSelection(L,H,M)},N.prototype._areCoordsInSelection=function(k,L,H){return k[1]>L[1]&&k[1]<H[1]||L[1]===H[1]&&k[1]===L[1]&&k[0]>=L[0]&&k[0]<H[0]||L[1]<H[1]&&k[1]===H[1]&&k[0]<H[0]||L[1]<H[1]&&k[1]===L[1]&&k[0]>=L[0]},N.prototype.selectWordAtCursor=function(k){var L=this._getMouseBufferCoords(k);L&&(this._selectWordAt(L,!1),this._model.selectionEnd=void 0,this.refresh(!0))},N.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},N.prototype.selectLines=function(k,L){this._model.clearSelection(),k=Math.max(k,0),L=Math.min(L,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,k],this._model.selectionEnd=[this._bufferService.cols,L],this.refresh(),this._onSelectionChange.fire()},N.prototype._onTrim=function(k){this._model.onTrim(k)&&this.refresh()},N.prototype._getMouseBufferCoords=function(k){var L=this._mouseService.getCoords(k,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(L)return L[0]--,L[1]--,L[1]+=this._bufferService.buffer.ydisp,L},N.prototype._getMouseEventScrollAmount=function(k){var L=c.getCoordsRelativeToElement(k,this._screenElement)[1],H=this._renderService.dimensions.canvasHeight;return L>=0&&L<=H?0:(L>H&&(L-=H),L=Math.min(Math.max(L,-50),50),(L/=50)/Math.abs(L)+Math.round(14*L))},N.prototype.shouldForceSelection=function(k){return u.isMac?k.altKey&&this._optionsService.options.macOptionClickForcesSelection:k.shiftKey},N.prototype.onMouseDown=function(k){if(this._mouseDownTimeStamp=k.timeStamp,(k.button!==2||!this.hasSelection)&&k.button===0){if(!this._enabled){if(!this.shouldForceSelection(k))return;k.stopPropagation()}k.preventDefault(),this._dragScrollAmount=0,this._enabled&&k.shiftKey?this._onIncrementalClick(k):k.detail===1?this._onSingleClick(k):k.detail===2?this._onDoubleClick(k):k.detail===3&&this._onTripleClick(k),this._addMouseDownListeners(),this.refresh(!0)}},N.prototype._addMouseDownListeners=function(){var k=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return k._dragScroll()},50)},N.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},N.prototype._onIncrementalClick=function(k){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(k))},N.prototype._onSingleClick=function(k){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(k)?3:0,this._model.selectionStart=this._getMouseBufferCoords(k),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]++}},N.prototype._onDoubleClick=function(k){var L=this._getMouseBufferCoords(k);L&&(this._activeSelectionMode=1,this._selectWordAt(L,!0))},N.prototype._onTripleClick=function(k){var L=this._getMouseBufferCoords(k);L&&(this._activeSelectionMode=2,this._selectLineAt(L[1]))},N.prototype.shouldColumnSelect=function(k){return k.altKey&&!(u.isMac&&this._optionsService.options.macOptionClickForcesSelection)},N.prototype._onMouseMove=function(k){if(k.stopImmediatePropagation(),this._model.selectionStart){var L=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(k),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(k),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var H=this._bufferService.buffer;if(this._model.selectionEnd[1]<H.lines.length){var M=H.lines.get(this._model.selectionEnd[1]);M&&M.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)}},N.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var k=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(k.ydisp+this._bufferService.rows,k.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=k.ydisp),this.refresh()}},N.prototype._onMouseUp=function(k){var L=k.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&L<500&&k.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var H=this._mouseService.getCoords(k,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(H&&H[0]!==void 0&&H[1]!==void 0){var M=h.moveToCellSequence(H[0]-1,H[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(M,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},N.prototype._onBufferActivate=function(k){var L=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=k.activeBuffer.lines.onTrim(function(H){return L._onTrim(H)})},N.prototype._convertViewportColToCharacterIndex=function(k,L){for(var H=L[0],M=0;L[0]>=M;M++){var F=k.loadCell(M,this._workCell).getChars().length;this._workCell.getWidth()===0?H--:F>1&&L[0]!==M&&(H+=F-1)}return H},N.prototype.setSelection=function(k,L,H){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[k,L],this._model.selectionStartLength=H,this.refresh()},N.prototype._getWordAt=function(k,L,H,M){if(H===void 0&&(H=!0),M===void 0&&(M=!0),!(k[0]>=this._bufferService.cols)){var F=this._bufferService.buffer,P=F.lines.get(k[1]);if(P){var U=F.translateBufferLineToString(k[1],!1),G=this._convertViewportColToCharacterIndex(P,k),Q=G,ee=k[0]-G,ae=0,oe=0,he=0,le=0;if(U.charAt(G)===" "){for(;G>0&&U.charAt(G-1)===" ";)G--;for(;Q<U.length&&U.charAt(Q+1)===" ";)Q++}else{var be=k[0],pe=k[0];P.getWidth(be)===0&&(ae++,be--),P.getWidth(pe)===2&&(oe++,pe++);var _e=P.getString(pe).length;for(_e>1&&(le+=_e-1,Q+=_e-1);be>0&&G>0&&!this._isCharWordSeparator(P.loadCell(be-1,this._workCell));){P.loadCell(be-1,this._workCell);var ne=this._workCell.getChars().length;this._workCell.getWidth()===0?(ae++,be--):ne>1&&(he+=ne-1,G-=ne-1),G--,be--}for(;pe<P.length&&Q+1<U.length&&!this._isCharWordSeparator(P.loadCell(pe+1,this._workCell));){P.loadCell(pe+1,this._workCell);var ue=this._workCell.getChars().length;this._workCell.getWidth()===2?(oe++,pe++):ue>1&&(le+=ue-1,Q+=ue-1),Q++,pe++}}Q++;var ce=G+ee-ae+he,Re=Math.min(this._bufferService.cols,Q-G+ae+oe-he-le);if(L||U.slice(G,Q).trim()!==""){if(H&&ce===0&&P.getCodePoint(0)!==32){var ke=F.lines.get(k[1]-1);if(ke&&P.isWrapped&&ke.getCodePoint(this._bufferService.cols-1)!==32){var Ne=this._getWordAt([this._bufferService.cols-1,k[1]-1],!1,!0,!1);if(Ne){var De=this._bufferService.cols-Ne.start;ce-=De,Re+=De}}}if(M&&ce+Re===this._bufferService.cols&&P.getCodePoint(this._bufferService.cols-1)!==32){var Me=F.lines.get(k[1]+1);if(Me&&Me.isWrapped&&Me.getCodePoint(0)!==32){var We=this._getWordAt([0,k[1]+1],!1,!1,!0);We&&(Re+=We.length)}}return{start:ce,length:Re}}}}},N.prototype._selectWordAt=function(k,L){var H=this._getWordAt(k,L);if(H){for(;H.start<0;)H.start+=this._bufferService.cols,k[1]--;this._model.selectionStart=[H.start,k[1]],this._model.selectionStartLength=H.length}},N.prototype._selectToWordAt=function(k){var L=this._getWordAt(k,!0);if(L){for(var H=k[1];L.start<0;)L.start+=this._bufferService.cols,H--;if(!this._model.areSelectionValuesReversed())for(;L.start+L.length>this._bufferService.cols;)L.length-=this._bufferService.cols,H++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?L.start:L.start+L.length,H]}},N.prototype._isCharWordSeparator=function(k){return k.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(k.getChars())>=0},N.prototype._selectLineAt=function(k){var L=this._bufferService.buffer.getWrappedRangeForLine(k);this._model.selectionStart=[0,L.first],this._model.selectionEnd=[this._bufferService.cols,L.last],this._model.selectionStartLength=0},N=w([_(2,v.IBufferService),_(3,v.ICoreService),_(4,b.IMouseService),_(5,v.IOptionsService),_(6,b.IRenderService)],N)}(g.Disposable);S.SelectionService=I},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.SelectionModel=void 0;var Y=function(){function s(w){this._bufferService=w,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 w=this.selectionStart[0]+this.selectionStartLength;return w>this._bufferService.cols?[w%this._bufferService.cols,this.selectionStart[1]+Math.floor(w/this._bufferService.cols)]:[w,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 w=this.selectionStart,_=this.selectionEnd;return!(!w||!_)&&(w[1]>_[1]||w[1]===_[1]&&w[0]>_[0])},s.prototype.onTrim=function(w){return this.selectionStart&&(this.selectionStart[1]-=w),this.selectionEnd&&(this.selectionEnd[1]-=w),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},s}();S.SelectionModel=Y},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.moveToCellSequence=void 0;var Y=B(12);function s(m,b,v,c){var h=m-w(v,m),g=b-w(v,b);return y(Math.abs(h-g)-function(x,T,I){for(var R=0,N=x-w(I,x),k=T-w(I,T),L=0;L<Math.abs(N-k);L++){var H=_(x,T)==="A"?-1:1,M=I.buffer.lines.get(N+H*L);M&&M.isWrapped&&R++}return R}(m,b,v),p(_(m,b),c))}function w(m,b){for(var v=0,c=m.buffer.lines.get(b),h=c&&c.isWrapped;h&&b>=0&&b<m.rows;)v++,h=(c=m.buffer.lines.get(--b))&&c.isWrapped;return v}function _(m,b){return m>b?"A":"B"}function u(m,b,v,c,h,g){for(var x=m,T=b,I="";x!==v||T!==c;)x+=h?1:-1,h&&x>g.cols-1?(I+=g.buffer.translateBufferLineToString(T,!1,m,x),x=0,m=0,T++):!h&&x<0&&(I+=g.buffer.translateBufferLineToString(T,!1,0,m+1),m=x=g.cols-1,T--);return I+g.buffer.translateBufferLineToString(T,!1,m,x)}function p(m,b){var v=b?"O":"[";return Y.C0.ESC+v+m}function y(m,b){m=Math.floor(m);for(var v="",c=0;c<m;c++)v+=b;return v}S.moveToCellSequence=function(m,b,v,c){var h,g=v.buffer.x,x=v.buffer.y;if(!v.buffer.hasScrollback)return function(I,R,N,k,L,H){return s(R,k,L,H).length===0?"":y(u(I,R,I,R-w(L,R),!1,L).length,p("D",H))}(g,x,0,b,v,c)+s(x,b,v,c)+function(I,R,N,k,L,H){var M;M=s(R,k,L,H).length>0?k-w(L,k):R;var F=k,P=function(U,G,Q,ee,ae,oe){var he;return he=s(Q,ee,ae,oe).length>0?ee-w(ae,ee):G,U<Q&&he<=ee||U>=Q&&he<ee?"C":"D"}(I,R,N,k,L,H);return y(u(I,M,N,F,P==="C",L).length,p(P,H))}(g,x,m,b,v,c);if(x===b)return h=g>m?"D":"C",y(Math.abs(g-m),p(h,c));h=x>b?"D":"C";var T=Math.abs(x-b);return y(function(I,R){return R.cols-I}(x>b?m:g,v)+(T-1)*v.cols+1+((x>b?g:m)-1),p(h,c))}},function(J,S,B){"use strict";var Y=this&&this.__decorate||function(u,p,y,m){var b,v=arguments.length,c=v<3?p:m===null?m=Object.getOwnPropertyDescriptor(p,y):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(u,p,y,m);else for(var h=u.length-1;h>=0;h--)(b=u[h])&&(c=(v<3?b(c):v>3?b(p,y,c):b(p,y))||c);return v>3&&c&&Object.defineProperty(p,y,c),c},s=this&&this.__param||function(u,p){return function(y,m){p(y,m,u)}};Object.defineProperty(S,"__esModule",{value:!0}),S.SoundService=void 0;var w=B(1),_=function(){function u(p){this._optionsService=p}return Object.defineProperty(u,"audioContext",{get:function(){if(!u._audioContext){var p=window.AudioContext||window.webkitAudioContext;if(!p)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;u._audioContext=new p}return u._audioContext},enumerable:!1,configurable:!0}),u.prototype.playBellSound=function(){var p=u.audioContext;if(p){var y=p.createBufferSource();p.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(m){y.buffer=m,y.connect(p.destination),y.start(0)})}},u.prototype._base64ToArrayBuffer=function(p){for(var y=window.atob(p),m=y.length,b=new Uint8Array(m),v=0;v<m;v++)b[v]=y.charCodeAt(v);return b.buffer},u.prototype._removeMimeType=function(p){return p.split(",")[1]},u=Y([s(0,w.IOptionsService)],u)}();S.SoundService=_},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[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)}),w=this&&this.__decorate||function(v,c,h,g){var x,T=arguments.length,I=T<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,g);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(I=(T<3?x(I):T>3?x(c,h,I):x(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},_=this&&this.__param||function(v,c){return function(h,g){c(h,g,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.MouseZoneManager=void 0;var u=B(2),p=B(7),y=B(5),m=B(1),b=function(v){function c(h,g,x,T,I,R){var N=v.call(this)||this;return N._element=h,N._screenElement=g,N._bufferService=x,N._mouseService=T,N._selectionService=I,N._optionsService=R,N._zones=[],N._areZonesActive=!1,N._lastHoverCoords=[void 0,void 0],N._initialSelectionLength=0,N.register(p.addDisposableDomListener(N._element,"mousedown",function(k){return N._onMouseDown(k)})),N._mouseMoveListener=function(k){return N._onMouseMove(k)},N._mouseLeaveListener=function(k){return N._onMouseLeave(k)},N._clickListener=function(k){return N._onClick(k)},N}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,g){if(this._zones.length!==0){h&&g||(h=0,g=this._bufferService.rows-1);for(var x=0;x<this._zones.length;x++){var T=this._zones[x];(T.y1>h&&T.y1<=g+1||T.y2>h&&T.y2<=g+1||T.y1<h&&T.y2>g+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 g=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 g._onTooltip(h)},this._optionsService.options.linkTooltipHoverDuration)))},c.prototype._onTooltip=function(h){this._tooltipTimeout=void 0;var g=this._findZoneEventAt(h);g&&g.tooltipCallback&&g.tooltipCallback(h)},c.prototype._onMouseDown=function(h){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var g=this._findZoneEventAt(h);g!=null&&g.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 g=this._findZoneEventAt(h),x=this._getSelectionLength();g&&x===this._initialSelectionLength&&(g.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 g=this._mouseService.getCoords(h,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(g)for(var x=g[0],T=g[1],I=0;I<this._zones.length;I++){var R=this._zones[I];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=w([_(2,m.IBufferService),_(3,y.IMouseService),_(4,y.ISelectionService),_(5,m.IOptionsService)],c)}(u.Disposable);S.MouseZoneManager=b},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(c,h){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var T in x)x.hasOwnProperty(T)&&(g[T]=x[T])})(c,h)},function(c,h){function g(){this.constructor=c}Y(c,h),c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(S,"__esModule",{value:!0}),S.AccessibilityManager=void 0;var w=B(18),_=B(11),u=B(31),p=B(7),y=B(2),m=B(32),b=B(17),v=function(c){function h(g,x){var T=c.call(this)||this;T._terminal=g,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 I=0;I<T._terminal.rows;I++)T._rowElements[I]=T._createAccessibilityTreeNode(),T._rowContainer.appendChild(T._rowElements[I]);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 m.ScreenDprMonitor,T.register(T._screenDprMonitor),T._screenDprMonitor.setListener(function(){return T._refreshRowsDimensions()}),T.register(p.addDisposableDomListener(window,"resize",function(){return T._refreshRowsDimensions()})),T}return s(h,c),h.prototype.dispose=function(){c.prototype.dispose.call(this),b.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},h.prototype._onBoundaryFocus=function(g,x){var T=g.target,I=this._rowElements[x===0?1:this._rowElements.length-2];if(T.getAttribute("aria-posinset")!==(x===0?"1":""+this._terminal.buffer.lines.length)&&g.relatedTarget===I){var R,N;if(x===0?(R=T,N=this._rowElements.pop(),this._rowContainer.removeChild(N)):(R=this._rowElements.shift(),N=T,this._rowContainer.removeChild(R)),R.removeEventListener("focus",this._topBoundaryFocusListener),N.removeEventListener("focus",this._bottomBoundaryFocusListener),x===0){var k=this._createAccessibilityTreeNode();this._rowElements.unshift(k),this._rowContainer.insertAdjacentElement("afterbegin",k)}else k=this._createAccessibilityTreeNode(),this._rowElements.push(k),this._rowContainer.appendChild(k);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(),g.preventDefault(),g.stopImmediatePropagation()}},h.prototype._onResize=function(g){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>g;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},h.prototype._createAccessibilityTreeNode=function(){var g=document.createElement("div");return g.setAttribute("role","listitem"),g.tabIndex=-1,this._refreshRowDimensions(g),g},h.prototype._onTab=function(g){for(var x=0;x<g;x++)this._onChar(" ")},h.prototype._onChar=function(g){var x=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==g&&(this._charsToAnnounce+=g):this._charsToAnnounce+=g,g===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=w.tooMuchOutput)),_.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,_.isMac&&b.removeElementFromParent(this._liveRegion)},h.prototype._onKey=function(g){this._clearLiveRegion(),this._charsToConsume.push(g)},h.prototype._refreshRows=function(g,x){this._renderRowsDebouncer.refresh(g,x,this._terminal.rows)},h.prototype._renderRows=function(g,x){for(var T=this._terminal.buffer,I=T.lines.length.toString(),R=g;R<=x;R++){var N=T.translateBufferLineToString(T.ydisp+R,!0),k=(T.ydisp+R+1).toString(),L=this._rowElements[R];L&&(N.length===0?L.innerHTML="&nbsp;":L.textContent=N,L.setAttribute("aria-posinset",k),L.setAttribute("aria-setsize",I))}this._announceCharacters()},h.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var g=0;g<this._terminal.rows;g++)this._refreshRowDimensions(this._rowElements[g])}},h.prototype._refreshRowDimensions=function(g){g.style.height=this._renderService.dimensions.actualCellHeight+"px"},h.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},h}(y.Disposable);S.AccessibilityManager=v},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(T,I){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,N){R.__proto__=N}||function(R,N){for(var k in N)N.hasOwnProperty(k)&&(R[k]=N[k])})(T,I)},function(T,I){function R(){this.constructor=T}Y(T,I),T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}),w=this&&this.__decorate||function(T,I,R,N){var k,L=arguments.length,H=L<3?I:N===null?N=Object.getOwnPropertyDescriptor(I,R):N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(T,I,R,N);else for(var M=T.length-1;M>=0;M--)(k=T[M])&&(H=(L<3?k(H):L>3?k(I,R,H):k(I,R))||H);return L>3&&H&&Object.defineProperty(I,R,H),H},_=this&&this.__param||function(T,I){return function(R,N){I(R,N,T)}};Object.defineProperty(S,"__esModule",{value:!0}),S.DomRenderer=void 0;var u=B(58),p=B(9),y=B(2),m=B(5),b=B(1),v=B(0),c=B(10),h=B(17),g=1,x=function(T){function I(R,N,k,L,H,M,F,P,U){var G=T.call(this)||this;return G._colors=R,G._element=N,G._screenElement=k,G._viewportElement=L,G._linkifier=H,G._linkifier2=M,G._charSizeService=F,G._optionsService=P,G._bufferService=U,G._terminalClass=g++,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(I,T),Object.defineProperty(I.prototype,"onRequestRedraw",{get:function(){return new v.EventEmitter().event},enumerable:!1,configurable:!0}),I.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)},I.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,N=this._rowElements;R<N.length;R++){var k=N[R];k.style.width=this.dimensions.canvasWidth+"px",k.style.height=this.dimensions.actualCellHeight+"px",k.style.lineHeight=this.dimensions.actualCellHeight+"px",k.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"},I.prototype.setColors=function(R){this._colors=R,this._injectCss()},I.prototype._injectCss=function(){var R=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var N=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";N+=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;}",N+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",N+="@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+"; }}",N+=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;}",N+=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(k,L){N+=R._terminalSelector+" .xterm-fg-"+L+" { color: "+k.css+"; }"+R._terminalSelector+" .xterm-bg-"+L+" { background-color: "+k.css+"; }"}),N+=this._terminalSelector+" .xterm-fg-"+p.INVERTED_DEFAULT_COLOR+" { color: "+c.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+p.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=N},I.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},I.prototype._refreshRowElements=function(R,N){for(var k=this._rowElements.length;k<=N;k++){var L=document.createElement("div");this._rowContainer.appendChild(L),this._rowElements.push(L)}for(;this._rowElements.length>N;)this._rowContainer.removeChild(this._rowElements.pop())},I.prototype.onResize=function(R,N){this._refreshRowElements(R,N),this._updateDimensions()},I.prototype.onCharSizeChanged=function(){this._updateDimensions()},I.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},I.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},I.prototype.onSelectionChanged=function(R,N,k){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(R&&N){var L=R[1]-this._bufferService.buffer.ydisp,H=N[1]-this._bufferService.buffer.ydisp,M=Math.max(L,0),F=Math.min(H,this._bufferService.rows-1);if(!(M>=this._bufferService.rows||F<0)){var P=document.createDocumentFragment();if(k)P.appendChild(this._createSelectionElement(M,R[0],N[0],F-M+1));else{var U=L===M?R[0]:0,G=M===F?N[0]:this._bufferService.cols;P.appendChild(this._createSelectionElement(M,U,G));var Q=F-M-1;if(P.appendChild(this._createSelectionElement(M+1,0,this._bufferService.cols,Q)),M!==F){var ee=H===F?N[0]:this._bufferService.cols;P.appendChild(this._createSelectionElement(F,0,ee))}}this._selectionContainer.appendChild(P)}}},I.prototype._createSelectionElement=function(R,N,k,L){L===void 0&&(L=1);var H=document.createElement("div");return H.style.height=L*this.dimensions.actualCellHeight+"px",H.style.top=R*this.dimensions.actualCellHeight+"px",H.style.left=N*this.dimensions.actualCellWidth+"px",H.style.width=this.dimensions.actualCellWidth*(k-N)+"px",H},I.prototype.onCursorMove=function(){},I.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},I.prototype.clear=function(){for(var R=0,N=this._rowElements;R<N.length;R++)N[R].innerHTML=""},I.prototype.renderRows=function(R,N){for(var k=this._bufferService.buffer.ybase+this._bufferService.buffer.y,L=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),H=this._optionsService.options.cursorBlink,M=R;M<=N;M++){var F=this._rowElements[M];F.innerHTML="";var P=M+this._bufferService.buffer.ydisp,U=this._bufferService.buffer.lines.get(P),G=this._optionsService.options.cursorStyle;F.appendChild(this._rowFactory.createRow(U,P===k,G,L,H,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(I.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),I.prototype.registerCharacterJoiner=function(R){return-1},I.prototype.deregisterCharacterJoiner=function(R){return!1},I.prototype._onLinkHover=function(R){this._setCellUnderline(R.x1,R.x2,R.y1,R.y2,R.cols,!0)},I.prototype._onLinkLeave=function(R){this._setCellUnderline(R.x1,R.x2,R.y1,R.y2,R.cols,!1)},I.prototype._setCellUnderline=function(R,N,k,L,H,M){for(;R!==N||k!==L;){var F=this._rowElements[k];if(!F)return;var P=F.children[R];P&&(P.style.textDecoration=M?"underline":"none"),++R>=H&&(R=0,k++)}},I=w([_(6,m.ICharSizeService),_(7,b.IOptionsService),_(8,b.IBufferService)],I)}(y.Disposable);S.DomRenderer=x},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.DomRendererRowFactory=S.CURSOR_STYLE_UNDERLINE_CLASS=S.CURSOR_STYLE_BAR_CLASS=S.CURSOR_STYLE_BLOCK_CLASS=S.CURSOR_BLINK_CLASS=S.CURSOR_CLASS=S.UNDERLINE_CLASS=S.ITALIC_CLASS=S.DIM_CLASS=S.BOLD_CLASS=void 0;var Y=B(9),s=B(3),w=B(4),_=B(10);S.BOLD_CLASS="xterm-bold",S.DIM_CLASS="xterm-dim",S.ITALIC_CLASS="xterm-italic",S.UNDERLINE_CLASS="xterm-underline",S.CURSOR_CLASS="xterm-cursor",S.CURSOR_BLINK_CLASS="xterm-cursor-blink",S.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",S.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",S.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var u=function(){function y(m,b,v){this._document=m,this._optionsService=b,this._colors=v,this._workCell=new w.CellData}return y.prototype.setColors=function(m){this._colors=m},y.prototype.createRow=function(m,b,v,c,h,g,x){for(var T=this._document.createDocumentFragment(),I=0,R=Math.min(m.length,x)-1;R>=0;R--)if(m.loadCell(R,this._workCell).getCode()!==s.NULL_CELL_CODE||b&&R===c){I=R+1;break}for(R=0;R<I;R++){m.loadCell(R,this._workCell);var N=this._workCell.getWidth();if(N!==0){var k=this._document.createElement("span");if(N>1&&(k.style.width=g*N+"px"),b&&R===c)switch(k.classList.add(S.CURSOR_CLASS),h&&k.classList.add(S.CURSOR_BLINK_CLASS),v){case"bar":k.classList.add(S.CURSOR_STYLE_BAR_CLASS);break;case"underline":k.classList.add(S.CURSOR_STYLE_UNDERLINE_CLASS);break;default:k.classList.add(S.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&k.classList.add(S.BOLD_CLASS),this._workCell.isItalic()&&k.classList.add(S.ITALIC_CLASS),this._workCell.isDim()&&k.classList.add(S.DIM_CLASS),this._workCell.isUnderline()&&k.classList.add(S.UNDERLINE_CLASS),this._workCell.isInvisible()?k.textContent=s.WHITESPACE_CELL_CHAR:k.textContent=this._workCell.getChars()||s.WHITESPACE_CELL_CHAR;var L=this._workCell.getFgColor(),H=this._workCell.getFgColorMode(),M=this._workCell.getBgColor(),F=this._workCell.getBgColorMode(),P=!!this._workCell.isInverse();if(P){var U=L;L=M,M=U;var G=H;H=F,F=G}switch(H){case 16777216:case 33554432:this._workCell.isBold()&&L<8&&this._optionsService.options.drawBoldTextInBrightColors&&(L+=8),this._applyMinimumContrast(k,this._colors.background,this._colors.ansi[L])||k.classList.add("xterm-fg-"+L);break;case 50331648:var Q=_.rgba.toColor(L>>16&255,L>>8&255,255&L);this._applyMinimumContrast(k,this._colors.background,Q)||this._addStyle(k,"color:#"+p(L.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(k,this._colors.background,this._colors.foreground)||P&&k.classList.add("xterm-fg-"+Y.INVERTED_DEFAULT_COLOR)}switch(F){case 16777216:case 33554432:k.classList.add("xterm-bg-"+M);break;case 50331648:this._addStyle(k,"background-color:#"+p(M.toString(16),"0",6));break;case 0:default:P&&k.classList.add("xterm-bg-"+Y.INVERTED_DEFAULT_COLOR)}T.appendChild(k)}}return T},y.prototype._applyMinimumContrast=function(m,b,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=_.color.ensureContrastRatio(b,v,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,c!=null?c:null)),!!c&&(this._addStyle(m,"color:"+c.css),!0)},y.prototype._addStyle=function(m,b){m.setAttribute("style",""+(m.getAttribute("style")||"")+b+";")},y}();function p(y,m,b){for(;y.length<b;)y=m+y;return y}S.DomRendererRowFactory=u},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.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:["'",'"']};S.evaluateKeyboardEvent=function(w,_,u,p){var y={type:0,cancel:!1,key:void 0},m=(w.shiftKey?1:0)|(w.altKey?2:0)|(w.ctrlKey?4:0)|(w.metaKey?8:0);switch(w.keyCode){case 0:w.key==="UIKeyInputUpArrow"?y.key=_?Y.C0.ESC+"OA":Y.C0.ESC+"[A":w.key==="UIKeyInputLeftArrow"?y.key=_?Y.C0.ESC+"OD":Y.C0.ESC+"[D":w.key==="UIKeyInputRightArrow"?y.key=_?Y.C0.ESC+"OC":Y.C0.ESC+"[C":w.key==="UIKeyInputDownArrow"&&(y.key=_?Y.C0.ESC+"OB":Y.C0.ESC+"[B");break;case 8:if(w.shiftKey){y.key=Y.C0.BS;break}if(w.altKey){y.key=Y.C0.ESC+Y.C0.DEL;break}y.key=Y.C0.DEL;break;case 9:if(w.shiftKey){y.key=Y.C0.ESC+"[Z";break}y.key=Y.C0.HT,y.cancel=!0;break;case 13:y.key=w.altKey?Y.C0.ESC+Y.C0.CR:Y.C0.CR,y.cancel=!0;break;case 27:y.key=Y.C0.ESC,w.altKey&&(y.key=Y.C0.ESC+Y.C0.ESC),y.cancel=!0;break;case 37:if(w.metaKey)break;m?(y.key=Y.C0.ESC+"[1;"+(m+1)+"D",y.key===Y.C0.ESC+"[1;3D"&&(y.key=Y.C0.ESC+(u?"b":"[1;5D"))):y.key=_?Y.C0.ESC+"OD":Y.C0.ESC+"[D";break;case 39:if(w.metaKey)break;m?(y.key=Y.C0.ESC+"[1;"+(m+1)+"C",y.key===Y.C0.ESC+"[1;3C"&&(y.key=Y.C0.ESC+(u?"f":"[1;5C"))):y.key=_?Y.C0.ESC+"OC":Y.C0.ESC+"[C";break;case 38:if(w.metaKey)break;m?(y.key=Y.C0.ESC+"[1;"+(m+1)+"A",u||y.key!==Y.C0.ESC+"[1;3A"||(y.key=Y.C0.ESC+"[1;5A")):y.key=_?Y.C0.ESC+"OA":Y.C0.ESC+"[A";break;case 40:if(w.metaKey)break;m?(y.key=Y.C0.ESC+"[1;"+(m+1)+"B",u||y.key!==Y.C0.ESC+"[1;3B"||(y.key=Y.C0.ESC+"[1;5B")):y.key=_?Y.C0.ESC+"OB":Y.C0.ESC+"[B";break;case 45:w.shiftKey||w.ctrlKey||(y.key=Y.C0.ESC+"[2~");break;case 46:y.key=m?Y.C0.ESC+"[3;"+(m+1)+"~":Y.C0.ESC+"[3~";break;case 36:y.key=m?Y.C0.ESC+"[1;"+(m+1)+"H":_?Y.C0.ESC+"OH":Y.C0.ESC+"[H";break;case 35:y.key=m?Y.C0.ESC+"[1;"+(m+1)+"F":_?Y.C0.ESC+"OF":Y.C0.ESC+"[F";break;case 33:w.shiftKey?y.type=2:y.key=Y.C0.ESC+"[5~";break;case 34:w.shiftKey?y.type=3:y.key=Y.C0.ESC+"[6~";break;case 112:y.key=m?Y.C0.ESC+"[1;"+(m+1)+"P":Y.C0.ESC+"OP";break;case 113:y.key=m?Y.C0.ESC+"[1;"+(m+1)+"Q":Y.C0.ESC+"OQ";break;case 114:y.key=m?Y.C0.ESC+"[1;"+(m+1)+"R":Y.C0.ESC+"OR";break;case 115:y.key=m?Y.C0.ESC+"[1;"+(m+1)+"S":Y.C0.ESC+"OS";break;case 116:y.key=m?Y.C0.ESC+"[15;"+(m+1)+"~":Y.C0.ESC+"[15~";break;case 117:y.key=m?Y.C0.ESC+"[17;"+(m+1)+"~":Y.C0.ESC+"[17~";break;case 118:y.key=m?Y.C0.ESC+"[18;"+(m+1)+"~":Y.C0.ESC+"[18~";break;case 119:y.key=m?Y.C0.ESC+"[19;"+(m+1)+"~":Y.C0.ESC+"[19~";break;case 120:y.key=m?Y.C0.ESC+"[20;"+(m+1)+"~":Y.C0.ESC+"[20~";break;case 121:y.key=m?Y.C0.ESC+"[21;"+(m+1)+"~":Y.C0.ESC+"[21~";break;case 122:y.key=m?Y.C0.ESC+"[23;"+(m+1)+"~":Y.C0.ESC+"[23~";break;case 123:y.key=m?Y.C0.ESC+"[24;"+(m+1)+"~":Y.C0.ESC+"[24~";break;default:if(!w.ctrlKey||w.shiftKey||w.altKey||w.metaKey)if(u&&!p||!w.altKey||w.metaKey)u&&!w.altKey&&!w.ctrlKey&&w.metaKey?w.keyCode===65&&(y.type=1):w.key&&!w.ctrlKey&&!w.altKey&&!w.metaKey&&w.keyCode>=48&&w.key.length===1?y.key=w.key:w.key&&w.ctrlKey&&w.key==="_"&&(y.key=Y.C0.US);else{var b=s[w.keyCode],v=b&&b[w.shiftKey?1:0];if(v)y.key=Y.C0.ESC+v;else if(w.keyCode>=65&&w.keyCode<=90){var c=w.ctrlKey?w.keyCode-64:w.keyCode+32;y.key=Y.C0.ESC+String.fromCharCode(c)}}else w.keyCode>=65&&w.keyCode<=90?y.key=String.fromCharCode(w.keyCode-64):w.keyCode===32?y.key=Y.C0.NUL:w.keyCode>=51&&w.keyCode<=55?y.key=String.fromCharCode(w.keyCode-51+27):w.keyCode===56?y.key=Y.C0.DEL:w.keyCode===219?y.key=Y.C0.ESC:w.keyCode===220?y.key=Y.C0.FS:w.keyCode===221&&(y.key=Y.C0.GS)}return y}},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(g,x){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,I){T.__proto__=I}||function(T,I){for(var R in I)I.hasOwnProperty(R)&&(T[R]=I[R])})(g,x)},function(g,x){function T(){this.constructor=g}Y(g,x),g.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)}),w=this&&this.__decorate||function(g,x,T,I){var R,N=arguments.length,k=N<3?x:I===null?I=Object.getOwnPropertyDescriptor(x,T):I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(g,x,T,I);else for(var L=g.length-1;L>=0;L--)(R=g[L])&&(k=(N<3?R(k):N>3?R(x,T,k):R(x,T))||k);return N>3&&k&&Object.defineProperty(x,T,k),k},_=this&&this.__param||function(g,x){return function(T,I){x(T,I,g)}};Object.defineProperty(S,"__esModule",{value:!0}),S.RenderService=void 0;var u=B(31),p=B(0),y=B(2),m=B(32),b=B(7),v=B(1),c=B(5),h=function(g){function x(T,I,R,N,k,L){var H=g.call(this)||this;if(H._renderer=T,H._rowCount=I,H._isPaused=!1,H._needsFullRefresh=!1,H._isNextRenderRedrawOnly=!0,H._needsSelectionRefresh=!1,H._canvasWidth=0,H._canvasHeight=0,H._selectionState={start:void 0,end:void 0,columnSelectMode:!1},H._onDimensionsChange=new p.EventEmitter,H._onRender=new p.EventEmitter,H._onRefreshRequest=new p.EventEmitter,H.register({dispose:function(){return H._renderer.dispose()}}),H._renderDebouncer=new u.RenderDebouncer(function(F,P){return H._renderRows(F,P)}),H.register(H._renderDebouncer),H._screenDprMonitor=new m.ScreenDprMonitor,H._screenDprMonitor.setListener(function(){return H.onDevicePixelRatioChange()}),H.register(H._screenDprMonitor),H.register(L.onResize(function(F){return H._fullRefresh()})),H.register(N.onOptionChange(function(){return H._renderer.onOptionsChanged()})),H.register(k.onCharSizeChange(function(){return H.onCharSizeChanged()})),H._renderer.onRequestRedraw(function(F){return H.refreshRows(F.start,F.end,!0)}),H.register(b.addDisposableDomListener(window,"resize",function(){return H.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var M=new IntersectionObserver(function(F){return H._onIntersectionChange(F[F.length-1])},{threshold:0});M.observe(R),H.register({dispose:function(){return M.disconnect()}})}return H}return s(x,g),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,I,R){R===void 0&&(R=!1),this._isPaused?this._needsFullRefresh=!0:(R||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(T,I,this._rowCount))},x.prototype._renderRows=function(T,I){this._renderer.renderRows(T,I),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:I}),this._isNextRenderRedrawOnly=!0},x.prototype.resize=function(T,I){this._rowCount=I,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(){g.prototype.dispose.call(this)},x.prototype.setRenderer=function(T){var I=this;this._renderer.dispose(),this._renderer=T,this._renderer.onRequestRedraw(function(R){return I.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,I){this._renderer.onResize(T,I),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,I,R){this._selectionState.start=T,this._selectionState.end=I,this._selectionState.columnSelectMode=R,this._renderer.onSelectionChanged(T,I,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=w([_(3,v.IOptionsService),_(4,c.ICharSizeService),_(5,v.IBufferService)],x)}(y.Disposable);S.RenderService=h},function(J,S,B){"use strict";var Y=this&&this.__decorate||function(y,m,b,v){var c,h=arguments.length,g=h<3?m:v===null?v=Object.getOwnPropertyDescriptor(m,b):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(y,m,b,v);else for(var x=y.length-1;x>=0;x--)(c=y[x])&&(g=(h<3?c(g):h>3?c(m,b,g):c(m,b))||g);return h>3&&g&&Object.defineProperty(m,b,g),g},s=this&&this.__param||function(y,m){return function(b,v){m(b,v,y)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CharSizeService=void 0;var w=B(1),_=B(0),u=function(){function y(m,b,v){this._optionsService=v,this.width=0,this.height=0,this._onCharSizeChange=new _.EventEmitter,this._measureStrategy=new p(m,b,this._optionsService)}return Object.defineProperty(y.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),y.prototype.measure=function(){var m=this._measureStrategy.measure();m.width===this.width&&m.height===this.height||(this.width=m.width,this.height=m.height,this._onCharSizeChange.fire())},y=Y([s(2,w.IOptionsService)],y)}();S.CharSizeService=u;var p=function(){function y(m,b,v){this._document=m,this._parentElement=b,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 y.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var m=this._measureElement.getBoundingClientRect();return m.width!==0&&m.height!==0&&(this._result.width=m.width,this._result.height=Math.ceil(m.height)),this._result},y}()},function(J,S,B){"use strict";var Y=this&&this.__decorate||function(p,y,m,b){var v,c=arguments.length,h=c<3?y:b===null?b=Object.getOwnPropertyDescriptor(y,m):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,y,m,b);else for(var g=p.length-1;g>=0;g--)(v=p[g])&&(h=(c<3?v(h):c>3?v(y,m,h):v(y,m))||h);return c>3&&h&&Object.defineProperty(y,m,h),h},s=this&&this.__param||function(p,y){return function(m,b){y(m,b,p)}};Object.defineProperty(S,"__esModule",{value:!0}),S.MouseService=void 0;var w=B(5),_=B(30),u=function(){function p(y,m){this._renderService=y,this._charSizeService=m}return p.prototype.getCoords=function(y,m,b,v,c){return _.getCoords(y,m,b,v,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,c)},p.prototype.getRawByteCoords=function(y,m,b,v){var c=this.getCoords(y,m,b,v);return _.getRawByteCoords(c)},p=Y([s(0,w.IRenderService),s(1,w.ICharSizeService)],p)}();S.MouseService=u},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[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)}),w=this&&this.__decorate||function(v,c,h,g){var x,T=arguments.length,I=T<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,g);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(I=(T<3?x(I):T>3?x(c,h,I):x(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},_=this&&this.__param||function(v,c){return function(h,g){c(h,g,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Linkifier2=void 0;var u=B(1),p=B(0),y=B(2),m=B(7),b=function(v){function c(h){var g=v.call(this)||this;return g._bufferService=h,g._linkProviders=[],g._linkCacheDisposables=[],g._isMouseOut=!0,g._activeLine=-1,g._onShowLinkUnderline=g.register(new p.EventEmitter),g._onHideLinkUnderline=g.register(new p.EventEmitter),g.register(y.getDisposeArrayDisposable(g._linkCacheDisposables)),g}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 g=this;return this._linkProviders.push(h),{dispose:function(){var x=g._linkProviders.indexOf(h);x!==-1&&g._linkProviders.splice(x,1)}}},c.prototype.attachToDom=function(h,g,x){var T=this;this._element=h,this._mouseService=g,this._renderService=x,this.register(m.addDisposableDomListener(this._element,"mouseleave",function(){T._isMouseOut=!0,T._clearCurrentLink()})),this.register(m.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(m.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},c.prototype._onMouseMove=function(h){if(this._lastMouseEvent=h,this._element&&this._mouseService){var g=this._positionFromMouseEvent(h,this._element,this._mouseService);if(g){this._isMouseOut=!1;for(var x=h.composedPath(),T=0;T<x.length;T++){var I=x[T];if(I.classList.contains("xterm"))break;if(I.classList.contains("xterm-hover"))return}this._lastBufferCell&&g.x===this._lastBufferCell.x&&g.y===this._lastBufferCell.y||(this._onHover(g),this._lastBufferCell=g)}}},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,g){var x=this;this._activeProviderReplies&&g||(this._activeProviderReplies=new Map,this._activeLine=h.y);var T=!1;this._linkProviders.forEach(function(I,R){var N;g?!((N=x._activeProviderReplies)===null||N===void 0)&&N.get(R)&&(T=x._checkLinkProviderResult(R,h,T)):I.provideLinks(h.y,function(k){var L,H;if(!x._isMouseOut){var M=k==null?void 0:k.map(function(F){return{link:F}});(L=x._activeProviderReplies)===null||L===void 0||L.set(R,M),T=x._checkLinkProviderResult(R,h,T),((H=x._activeProviderReplies)===null||H===void 0?void 0:H.size)===x._linkProviders.length&&x._removeIntersectingLinks(h.y,x._activeProviderReplies)}})})},c.prototype._removeIntersectingLinks=function(h,g){for(var x=new Set,T=0;T<g.size;T++){var I=g.get(T);if(I)for(var R=0;R<I.length;R++)for(var N=I[R],k=N.link.range.start.y<h?0:N.link.range.start.x,L=N.link.range.end.y>h?this._bufferService.cols:N.link.range.end.x,H=k;H<=L;H++){if(x.has(H)){I.splice(R--,1);break}x.add(H)}}},c.prototype._checkLinkProviderResult=function(h,g,x){var T,I=this;if(!this._activeProviderReplies)return x;for(var R=this._activeProviderReplies.get(h),N=!1,k=0;k<h;k++)this._activeProviderReplies.has(k)&&!this._activeProviderReplies.get(k)||(N=!0);if(!N&&R){var L=R.find(function(M){return I._linkAtPosition(M.link,g)});L&&(x=!0,this._handleNewLink(L))}if(this._activeProviderReplies.size===this._linkProviders.length&&!x)for(k=0;k<this._activeProviderReplies.size;k++){var H=(T=this._activeProviderReplies.get(k))===null||T===void 0?void 0:T.find(function(M){return I._linkAtPosition(M.link,g)});if(H){x=!0,this._handleNewLink(H);break}}return x},c.prototype._onClick=function(h){if(this._element&&this._mouseService&&this._currentLink){var g=this._positionFromMouseEvent(h,this._element,this._mouseService);g&&this._linkAtPosition(this._currentLink.link,g)&&this._currentLink.link.activate(h,this._currentLink.link.text)}},c.prototype._clearCurrentLink=function(h,g){this._element&&this._currentLink&&this._lastMouseEvent&&(!h||!g||this._currentLink.link.range.start.y>=h&&this._currentLink.link.range.end.y<=g)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,y.disposeArray(this._linkCacheDisposables))},c.prototype._handleNewLink=function(h){var g=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,I;return(I=(T=g._currentLink)===null||T===void 0?void 0:T.state)===null||I===void 0?void 0:I.decorations.pointerCursor},set:function(T){var I,R;!((I=g._currentLink)===null||I===void 0)&&I.state&&g._currentLink.state.decorations.pointerCursor!==T&&(g._currentLink.state.decorations.pointerCursor=T,g._currentLink.state.isHovered&&((R=g._element)===null||R===void 0||R.classList.toggle("xterm-cursor-pointer",T)))}},underline:{get:function(){var T,I;return(I=(T=g._currentLink)===null||T===void 0?void 0:T.state)===null||I===void 0?void 0:I.decorations.underline},set:function(T){var I,R,N;!((I=g._currentLink)===null||I===void 0)&&I.state&&((N=(R=g._currentLink)===null||R===void 0?void 0:R.state)===null||N===void 0?void 0:N.decorations.underline)!==T&&(g._currentLink.state.decorations.underline=T,g._currentLink.state.isHovered&&g._fireUnderlineEvent(h.link,T))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(T){var I=T.start===0?0:T.start+1+g._bufferService.buffer.ydisp;g._clearCurrentLink(I,T.end+1+g._bufferService.buffer.ydisp)})))}},c.prototype._linkHover=function(h,g,x){var T;!((T=this._currentLink)===null||T===void 0)&&T.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(g,!0),this._currentLink.state.decorations.pointerCursor&&h.classList.add("xterm-cursor-pointer")),g.hover&&g.hover(x,g.text)},c.prototype._fireUnderlineEvent=function(h,g){var x=h.range,T=this._bufferService.buffer.ydisp,I=this._createLinkUnderlineEvent(x.start.x-1,x.start.y-T-1,x.end.x,x.end.y-T-1,void 0);(g?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(I)},c.prototype._linkLeave=function(h,g,x){var T;!((T=this._currentLink)===null||T===void 0)&&T.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(g,!1),this._currentLink.state.decorations.pointerCursor&&h.classList.remove("xterm-cursor-pointer")),g.leave&&g.leave(x,g.text)},c.prototype._linkAtPosition=function(h,g){var x=h.range.start.y===h.range.end.y,T=h.range.start.y<g.y,I=h.range.end.y>g.y;return(x&&h.range.start.x<=g.x&&h.range.end.x>=g.x||T&&h.range.end.x>=g.x||I&&h.range.start.x<=g.x||T&&I)&&h.range.start.y<=g.y&&h.range.end.y>=g.y},c.prototype._positionFromMouseEvent=function(h,g,x){var T=x.getCoords(h,g,this._bufferService.cols,this._bufferService.rows);if(T)return{x:T[0],y:T[1]+this._bufferService.buffer.ydisp}},c.prototype._createLinkUnderlineEvent=function(h,g,x,T,I){return{x1:h,y1:g,x2:x,y2:T,cols:this._bufferService.cols,fg:I}},c=w([_(0,u.IBufferService)],c)}(y.Disposable);S.Linkifier2=b},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CoreBrowserService=void 0;var Y=function(){function s(w){this._textarea=w}return Object.defineProperty(s.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),s}();S.CoreBrowserService=Y},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(k,L){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,M){H.__proto__=M}||function(H,M){for(var F in M)M.hasOwnProperty(F)&&(H[F]=M[F])})(k,L)},function(k,L){function H(){this.constructor=k}Y(k,L),k.prototype=L===null?Object.create(L):(H.prototype=L.prototype,new H)});Object.defineProperty(S,"__esModule",{value:!0}),S.CoreTerminal=void 0;var w=B(2),_=B(1),u=B(66),p=B(67),y=B(68),m=B(74),b=B(75),v=B(0),c=B(76),h=B(77),g=B(78),x=B(80),T=B(81),I=B(19),R=B(82),N=function(k){function L(H){var M=k.call(this)||this;return M._onBinary=new v.EventEmitter,M._onData=new v.EventEmitter,M._onLineFeed=new v.EventEmitter,M._onResize=new v.EventEmitter,M._onScroll=new v.EventEmitter,M._instantiationService=new u.InstantiationService,M.optionsService=new m.OptionsService(H),M._instantiationService.setService(_.IOptionsService,M.optionsService),M._bufferService=M.register(M._instantiationService.createInstance(y.BufferService)),M._instantiationService.setService(_.IBufferService,M._bufferService),M._logService=M._instantiationService.createInstance(p.LogService),M._instantiationService.setService(_.ILogService,M._logService),M._coreService=M.register(M._instantiationService.createInstance(b.CoreService,function(){return M.scrollToBottom()})),M._instantiationService.setService(_.ICoreService,M._coreService),M._coreMouseService=M._instantiationService.createInstance(c.CoreMouseService),M._instantiationService.setService(_.ICoreMouseService,M._coreMouseService),M._dirtyRowService=M._instantiationService.createInstance(h.DirtyRowService),M._instantiationService.setService(_.IDirtyRowService,M._dirtyRowService),M.unicodeService=M._instantiationService.createInstance(g.UnicodeService),M._instantiationService.setService(_.IUnicodeService,M.unicodeService),M._charsetService=M._instantiationService.createInstance(x.CharsetService),M._instantiationService.setService(_.ICharsetService,M._charsetService),M._inputHandler=new I.InputHandler(M._bufferService,M._charsetService,M._coreService,M._dirtyRowService,M._logService,M.optionsService,M._coreMouseService,M.unicodeService),M.register(v.forwardEvent(M._inputHandler.onLineFeed,M._onLineFeed)),M.register(M._inputHandler),M.register(v.forwardEvent(M._bufferService.onResize,M._onResize)),M.register(v.forwardEvent(M._coreService.onData,M._onData)),M.register(v.forwardEvent(M._coreService.onBinary,M._onBinary)),M.register(M.optionsService.onOptionChange(function(F){return M._updateOptions(F)})),M._writeBuffer=new R.WriteBuffer(function(F){return M._inputHandler.parse(F)}),M}return s(L,k),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 H;this._isDisposed||(k.prototype.dispose.call(this),(H=this._windowsMode)===null||H===void 0||H.dispose(),this._windowsMode=void 0)},L.prototype.write=function(H,M){this._writeBuffer.write(H,M)},L.prototype.writeSync=function(H){this._writeBuffer.writeSync(H)},L.prototype.resize=function(H,M){isNaN(H)||isNaN(M)||(H=Math.max(H,y.MINIMUM_COLS),M=Math.max(M,y.MINIMUM_ROWS),this._bufferService.resize(H,M))},L.prototype.scroll=function(H,M){M===void 0&&(M=!1);var F,P=this._bufferService.buffer;(F=this._cachedBlankLine)&&F.length===this.cols&&F.getFg(0)===H.fg&&F.getBg(0)===H.bg||(F=P.getBlankLine(H,M),this._cachedBlankLine=F),F.isWrapped=M;var U=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(F):P.lines.push(F.clone()):P.lines.splice(G+1,0,F.clone()),Q?this._bufferService.isUserScrolling&&(P.ydisp=Math.max(P.ydisp-1,0)):(P.ybase++,this._bufferService.isUserScrolling||P.ydisp++)}else{var ee=G-U+1;P.lines.shiftElements(U+1,ee-1,-1),P.lines.set(G,F.clone())}this._bufferService.isUserScrolling||(P.ydisp=P.ybase),this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom),this._onScroll.fire(P.ydisp)},L.prototype.scrollLines=function(H,M){var F=this._bufferService.buffer;if(H<0){if(F.ydisp===0)return;this._bufferService.isUserScrolling=!0}else H+F.ydisp>=F.ybase&&(this._bufferService.isUserScrolling=!1);var P=F.ydisp;F.ydisp=Math.max(Math.min(F.ydisp+H,F.ybase),0),P!==F.ydisp&&(M||this._onScroll.fire(F.ydisp))},L.prototype.scrollPages=function(H){this.scrollLines(H*(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(H){var M=H-this._bufferService.buffer.ydisp;M!==0&&this.scrollLines(M)},L.prototype.addEscHandler=function(H,M){return this._inputHandler.addEscHandler(H,M)},L.prototype.addDcsHandler=function(H,M){return this._inputHandler.addDcsHandler(H,M)},L.prototype.addCsiHandler=function(H,M){return this._inputHandler.addCsiHandler(H,M)},L.prototype.addOscHandler=function(H,M){return this._inputHandler.addOscHandler(H,M)},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(H){var M;switch(H){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((M=this._windowsMode)===null||M===void 0||M.dispose(),this._windowsMode=void 0)}},L.prototype._enableWindowsMode=function(){var H=this;if(!this._windowsMode){var M=[];M.push(this.onLineFeed(T.updateWindowsModeWrappedState.bind(null,this._bufferService))),M.push(this.addCsiHandler({final:"H"},function(){return T.updateWindowsModeWrappedState(H._bufferService),!1})),this._windowsMode={dispose:function(){for(var F=0,P=M;F<P.length;F++)P[F].dispose()}}}},L}(w.Disposable);S.CoreTerminal=N},function(J,S,B){"use strict";var Y=this&&this.__spreadArrays||function(){for(var p=0,y=0,m=arguments.length;y<m;y++)p+=arguments[y].length;var b=Array(p),v=0;for(y=0;y<m;y++)for(var c=arguments[y],h=0,g=c.length;h<g;h++,v++)b[v]=c[h];return b};Object.defineProperty(S,"__esModule",{value:!0}),S.InstantiationService=S.ServiceCollection=void 0;var s=B(1),w=B(14),_=function(){function p(){for(var y=[],m=0;m<arguments.length;m++)y[m]=arguments[m];this._entries=new Map;for(var b=0,v=y;b<v.length;b++){var c=v[b],h=c[0],g=c[1];this.set(h,g)}}return p.prototype.set=function(y,m){var b=this._entries.get(y);return this._entries.set(y,m),b},p.prototype.forEach=function(y){this._entries.forEach(function(m,b){return y(b,m)})},p.prototype.has=function(y){return this._entries.has(y)},p.prototype.get=function(y){return this._entries.get(y)},p}();S.ServiceCollection=_;var u=function(){function p(){this._services=new _,this._services.set(s.IInstantiationService,this)}return p.prototype.setService=function(y,m){this._services.set(y,m)},p.prototype.getService=function(y){return this._services.get(y)},p.prototype.createInstance=function(y){for(var m=[],b=1;b<arguments.length;b++)m[b-1]=arguments[b];for(var v=w.getServiceDependencies(y).sort(function(R,N){return R.index-N.index}),c=[],h=0,g=v;h<g.length;h++){var x=g[h],T=this._services.get(x.id);if(!T)throw new Error("[createInstance] "+y.name+" depends on UNKNOWN service "+x.id+".");c.push(T)}var I=v.length>0?v[0].index:m.length;if(m.length!==I)throw new Error("[createInstance] First service dependency of "+y.name+" at position "+(I+1)+" conflicts with "+m.length+" static arguments");return new(y.bind.apply(y,Y([void 0],Y(m,c))))},p}();S.InstantiationService=u},function(J,S,B){"use strict";var Y=this&&this.__decorate||function(m,b,v,c){var h,g=arguments.length,x=g<3?b:c===null?c=Object.getOwnPropertyDescriptor(b,v):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(m,b,v,c);else for(var T=m.length-1;T>=0;T--)(h=m[T])&&(x=(g<3?h(x):g>3?h(b,v,x):h(b,v))||x);return g>3&&x&&Object.defineProperty(b,v,x),x},s=this&&this.__param||function(m,b){return function(v,c){b(v,c,m)}},w=this&&this.__spreadArrays||function(){for(var m=0,b=0,v=arguments.length;b<v;b++)m+=arguments[b].length;var c=Array(m),h=0;for(b=0;b<v;b++)for(var g=arguments[b],x=0,T=g.length;x<T;x++,h++)c[h]=g[x];return c};Object.defineProperty(S,"__esModule",{value:!0}),S.LogService=S.LogLevel=void 0;var _,u=B(1);(function(m){m[m.DEBUG=0]="DEBUG",m[m.INFO=1]="INFO",m[m.WARN=2]="WARN",m[m.ERROR=3]="ERROR",m[m.OFF=4]="OFF"})(_=S.LogLevel||(S.LogLevel={}));var p={debug:_.DEBUG,info:_.INFO,warn:_.WARN,error:_.ERROR,off:_.OFF},y=function(){function m(b){var v=this;this._optionsService=b,this._updateLogLevel(),this._optionsService.onOptionChange(function(c){c==="logLevel"&&v._updateLogLevel()})}return m.prototype._updateLogLevel=function(){this._logLevel=p[this._optionsService.options.logLevel]},m.prototype._evalLazyOptionalParams=function(b){for(var v=0;v<b.length;v++)typeof b[v]=="function"&&(b[v]=b[v]())},m.prototype._log=function(b,v,c){this._evalLazyOptionalParams(c),b.call.apply(b,w([console,"xterm.js: "+v],c))},m.prototype.debug=function(b){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=_.DEBUG&&this._log(console.log,b,v)},m.prototype.info=function(b){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=_.INFO&&this._log(console.info,b,v)},m.prototype.warn=function(b){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=_.WARN&&this._log(console.warn,b,v)},m.prototype.error=function(b){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=_.ERROR&&this._log(console.error,b,v)},m=Y([s(0,u.IOptionsService)],m)}();S.LogService=y},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[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)}),w=this&&this.__decorate||function(v,c,h,g){var x,T=arguments.length,I=T<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,g);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(I=(T<3?x(I):T>3?x(c,h,I):x(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},_=this&&this.__param||function(v,c){return function(h,g){c(h,g,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.BufferService=S.MINIMUM_ROWS=S.MINIMUM_COLS=void 0;var u=B(1),p=B(69),y=B(0),m=B(2);S.MINIMUM_COLS=2,S.MINIMUM_ROWS=1;var b=function(v){function c(h){var g=v.call(this)||this;return g._optionsService=h,g.isUserScrolling=!1,g._onResize=new y.EventEmitter,g.cols=Math.max(h.options.cols,S.MINIMUM_COLS),g.rows=Math.max(h.options.rows,S.MINIMUM_ROWS),g.buffers=new p.BufferSet(h,g),g}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,g){this.cols=h,this.rows=g,this.buffers.resize(h,g),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:h,rows:g})},c.prototype.reset=function(){this.buffers.dispose(),this.buffers=new p.BufferSet(this._optionsService,this),this.isUserScrolling=!1},c=w([_(0,u.IOptionsService)],c)}(m.Disposable);S.BufferService=b},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(p,y){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,b){m.__proto__=b}||function(m,b){for(var v in b)b.hasOwnProperty(v)&&(m[v]=b[v])})(p,y)},function(p,y){function m(){this.constructor=p}Y(p,y),p.prototype=y===null?Object.create(y):(m.prototype=y.prototype,new m)});Object.defineProperty(S,"__esModule",{value:!0}),S.BufferSet=void 0;var w=B(70),_=B(0),u=function(p){function y(m,b){var v=p.call(this)||this;return v._onBufferActivate=v.register(new _.EventEmitter),v._normal=new w.Buffer(!0,m,b),v._normal.fillViewportRows(),v._alt=new w.Buffer(!1,m,b),v._activeBuffer=v._normal,v.setupTabStops(),v}return s(y,p),Object.defineProperty(y.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),y.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}))},y.prototype.activateAltBuffer=function(m){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(m),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}))},y.prototype.resize=function(m,b){this._normal.resize(m,b),this._alt.resize(m,b)},y.prototype.setupTabStops=function(m){this._normal.setupTabStops(m),this._alt.setupTabStops(m)},y}(B(2).Disposable);S.BufferSet=u},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.BufferStringIterator=S.Buffer=S.MAX_BUFFER_SIZE=void 0;var Y=B(71),s=B(16),w=B(4),_=B(3),u=B(72),p=B(73),y=B(20),m=B(6);S.MAX_BUFFER_SIZE=4294967295;var b=function(){function c(h,g,x){this._hasScrollback=h,this._optionsService=g,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=y.DEFAULT_CHARSET,this.markers=[],this._nullCell=w.CellData.fromCharData([0,_.NULL_CELL_CHAR,_.NULL_CELL_WIDTH,_.NULL_CELL_CODE]),this._whitespaceCell=w.CellData.fromCharData([0,_.WHITESPACE_CELL_CHAR,_.WHITESPACE_CELL_WIDTH,_.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 m.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 m.ExtendedAttrs),this._whitespaceCell},c.prototype.getBlankLine=function(h,g){return new s.BufferLine(this._bufferService.cols,this.getNullCell(h),g)},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 g=h+this._optionsService.options.scrollback;return g>S.MAX_BUFFER_SIZE?S.MAX_BUFFER_SIZE:g},c.prototype.fillViewportRows=function(h){if(this.lines.length===0){h===void 0&&(h=s.DEFAULT_ATTR_DATA);for(var g=this._rows;g--;)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,g){var x=this.getNullCell(s.DEFAULT_ATTR_DATA),T=this._getCorrectBufferLength(g);if(T>this.lines.maxLength&&(this.lines.maxLength=T),this.lines.length>0){if(this._cols<h)for(var I=0;I<this.lines.length;I++)this.lines.get(I).resize(h,x);var R=0;if(this._rows<g)for(var N=this._rows;N<g;N++)this.lines.length<g+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(N=this._rows;N>g;N--)this.lines.length>g+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(T<this.lines.maxLength){var k=this.lines.length-T;k>0&&(this.lines.trimStart(k),this.ybase=Math.max(this.ybase-k,0),this.ydisp=Math.max(this.ydisp-k,0),this.savedY=Math.max(this.savedY-k,0)),this.lines.maxLength=T}this.x=Math.min(this.x,h-1),this.y=Math.min(this.y,g-1),R&&(this.y+=R),this.savedX=Math.min(this.savedX,h-1),this.scrollTop=0}if(this.scrollBottom=g-1,this._isReflowEnabled&&(this._reflow(h,g),this._cols>h))for(I=0;I<this.lines.length;I++)this.lines.get(I).resize(h,x);this._cols=h,this._rows=g},Object.defineProperty(c.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),c.prototype._reflow=function(h,g){this._cols!==h&&(h>this._cols?this._reflowLarger(h,g):this._reflowSmaller(h,g))},c.prototype._reflowLarger=function(h,g){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,g,T.countRemoved)}},c.prototype._reflowLargerAdjustViewport=function(h,g,x){for(var T=this.getNullCell(s.DEFAULT_ATTR_DATA),I=x;I-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<g&&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,g){for(var x=this.getNullCell(s.DEFAULT_ATTR_DATA),T=[],I=0,R=this.lines.length-1;R>=0;R--){var N=this.lines.get(R);if(!(!N||!N.isWrapped&&N.getTrimmedLength()<=h)){for(var k=[N];N.isWrapped&&R>0;)N=this.lines.get(--R),k.unshift(N);var L=this.ybase+this.y;if(!(L>=R&&L<R+k.length)){var H=k[k.length-1].getTrimmedLength(),M=u.reflowSmallerGetNewLineLengths(k,this._cols,h),F=M.length-k.length,P=void 0;P=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+F):Math.max(0,this.lines.length-this.lines.maxLength+F);for(var U=[],G=0;G<F;G++){var Q=this.getBlankLine(s.DEFAULT_ATTR_DATA,!0);U.push(Q)}U.length>0&&(T.push({start:R+k.length+I,newLines:U}),I+=U.length),k.push.apply(k,U);var ee=M.length-1,ae=M[ee];ae===0&&(ae=M[--ee]);for(var oe=k.length-F-1,he=H;oe>=0;){var le=Math.min(he,ae);if(k[ee].copyCellsFrom(k[oe],he-le,ae-le,le,!0),(ae-=le)===0&&(ae=M[--ee]),(he-=le)===0){oe--;var be=Math.max(oe,0);he=u.getWrappedLineTrimmedLength(k,be,this._cols)}}for(G=0;G<k.length;G++)M[G]<h&&k[G].setCell(M[G],x);for(var pe=F-P;pe-- >0;)this.ybase===0?this.y<g-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+I)-g&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+F,this.ybase+g-1)}}}if(T.length>0){var _e=[],ne=[];for(G=0;G<this.lines.length;G++)ne.push(this.lines.get(G));var ue=this.lines.length,ce=ue-1,Re=0,ke=T[Re];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+I);var Ne=0;for(G=Math.min(this.lines.maxLength-1,ue+I-1);G>=0;G--)if(ke&&ke.start>ce+Ne){for(var De=ke.newLines.length-1;De>=0;De--)this.lines.set(G--,ke.newLines[De]);G++,_e.push({index:ce+1,amount:ke.newLines.length}),Ne+=ke.newLines.length,ke=T[++Re]}else this.lines.set(G,ne[ce--]);var Me=0;for(G=_e.length-1;G>=0;G--)_e[G].index+=Me,this.lines.onInsertEmitter.fire(_e[G]),Me+=_e[G].amount;var We=Math.max(0,ue+I-this.lines.maxLength);We>0&&this.lines.onTrimEmitter.fire(We)}},c.prototype.stringIndexToBufferIndex=function(h,g,x){for(x===void 0&&(x=!1);g;){var T=this.lines.get(h);if(!T)return[-1,-1];for(var I=x?T.getTrimmedLength():T.length,R=0;R<I;++R)if(T.get(R)[_.CHAR_DATA_WIDTH_INDEX]&&(g-=T.get(R)[_.CHAR_DATA_CHAR_INDEX].length||1),g<0)return[h,R];h++}return[h,0]},c.prototype.translateBufferLineToString=function(h,g,x,T){x===void 0&&(x=0);var I=this.lines.get(h);return I?I.translateToString(g,x,T):""},c.prototype.getWrappedRangeForLine=function(h){for(var g=h,x=h;g>0&&this.lines.get(g).isWrapped;)g--;for(;x+1<this.lines.length&&this.lines.get(x+1).isWrapped;)x++;return{first:g,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 g=this,x=new p.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 g._removeMarker(x)})),x},c.prototype._removeMarker=function(h){this.markers.splice(this.markers.indexOf(h),1)},c.prototype.iterator=function(h,g,x,T,I){return new v(this,h,g,x,T,I)},c}();S.Buffer=b;var v=function(){function c(h,g,x,T,I,R){x===void 0&&(x=0),T===void 0&&(T=h.lines.length),I===void 0&&(I=0),R===void 0&&(R=0),this._buffer=h,this._trimRight=g,this._startIndex=x,this._endIndex=T,this._startOverscan=I,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 g="",x=h.first;x<=h.last;++x)g+=this._buffer.translateBufferLineToString(x,this._trimRight);return this._current=h.last+1,{range:h,content:g}},c}();S.BufferStringIterator=v},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CircularList=void 0;var Y=B(0),s=function(){function w(_){this._maxLength=_,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(w.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"maxLength",{get:function(){return this._maxLength},set:function(_){if(this._maxLength!==_){for(var u=new Array(_),p=0;p<Math.min(_,this.length);p++)u[p]=this._array[this._getCyclicIndex(p)];this._array=u,this._maxLength=_,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"length",{get:function(){return this._length},set:function(_){if(_>this._length)for(var u=this._length;u<_;u++)this._array[u]=void 0;this._length=_},enumerable:!1,configurable:!0}),w.prototype.get=function(_){return this._array[this._getCyclicIndex(_)]},w.prototype.set=function(_,u){this._array[this._getCyclicIndex(_)]=u},w.prototype.push=function(_){this._array[this._getCyclicIndex(this._length)]=_,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},w.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(w.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),w.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},w.prototype.splice=function(_,u){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];if(u){for(var m=_;m<this._length-u;m++)this._array[this._getCyclicIndex(m)]=this._array[this._getCyclicIndex(m+u)];this._length-=u}for(m=this._length-1;m>=_;m--)this._array[this._getCyclicIndex(m+p.length)]=this._array[this._getCyclicIndex(m)];for(m=0;m<p.length;m++)this._array[this._getCyclicIndex(_+m)]=p[m];if(this._length+p.length>this._maxLength){var b=this._length+p.length-this._maxLength;this._startIndex+=b,this._length=this._maxLength,this.onTrimEmitter.fire(b)}else this._length+=p.length},w.prototype.trimStart=function(_){_>this._length&&(_=this._length),this._startIndex+=_,this._length-=_,this.onTrimEmitter.fire(_)},w.prototype.shiftElements=function(_,u,p){if(!(u<=0)){if(_<0||_>=this._length)throw new Error("start argument out of range");if(_+p<0)throw new Error("Cannot shift elements in list beyond index 0");if(p>0){for(var y=u-1;y>=0;y--)this.set(_+y+p,this.get(_+y));var m=_+u+p-this._length;if(m>0)for(this._length+=m;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(y=0;y<u;y++)this.set(_+y+p,this.get(_+y))}},w.prototype._getCyclicIndex=function(_){return(this._startIndex+_)%this._maxLength},w}();S.CircularList=s},function(J,S,B){"use strict";function Y(s,w,_){if(w===s.length-1)return s[w].getTrimmedLength();var u=!s[w].hasContent(_-1)&&s[w].getWidth(_-1)===1,p=s[w+1].getWidth(0)===2;return u&&p?_-1:_}Object.defineProperty(S,"__esModule",{value:!0}),S.getWrappedLineTrimmedLength=S.reflowSmallerGetNewLineLengths=S.reflowLargerApplyNewLayout=S.reflowLargerCreateNewLayout=S.reflowLargerGetLinesToRemove=void 0,S.reflowLargerGetLinesToRemove=function(s,w,_,u,p){for(var y=[],m=0;m<s.length-1;m++){var b=m,v=s.get(++b);if(v.isWrapped){for(var c=[s.get(m)];b<s.length&&v.isWrapped;)c.push(v),v=s.get(++b);if(u>=m&&u<b)m+=c.length-1;else{for(var h=0,g=Y(c,h,w),x=1,T=0;x<c.length;){var I=Y(c,x,w),R=I-T,N=_-g,k=Math.min(R,N);c[h].copyCellsFrom(c[x],T,g,k,!1),(g+=k)===_&&(h++,g=0),(T+=k)===I&&(x++,T=0),g===0&&h!==0&&c[h-1].getWidth(_-1)===2&&(c[h].copyCellsFrom(c[h-1],_-1,g++,1,!1),c[h-1].setCell(_-1,p))}c[h].replaceCells(g,_,p);for(var L=0,H=c.length-1;H>0&&(H>h||c[H].getTrimmedLength()===0);H--)L++;L>0&&(y.push(m+c.length-L),y.push(L)),m+=c.length-1}}}return y},S.reflowLargerCreateNewLayout=function(s,w){for(var _=[],u=0,p=w[u],y=0,m=0;m<s.length;m++)if(p===m){var b=w[++u];s.onDeleteEmitter.fire({index:m-y,amount:b}),m+=b-1,y+=b,p=w[++u]}else _.push(m);return{layout:_,countRemoved:y}},S.reflowLargerApplyNewLayout=function(s,w){for(var _=[],u=0;u<w.length;u++)_.push(s.get(w[u]));for(u=0;u<_.length;u++)s.set(u,_[u]);s.length=w.length},S.reflowSmallerGetNewLineLengths=function(s,w,_){for(var u=[],p=s.map(function(g,x){return Y(s,x,w)}).reduce(function(g,x){return g+x}),y=0,m=0,b=0;b<p;){if(p-b<_){u.push(p-b);break}y+=_;var v=Y(s,m,w);y>v&&(y-=v,m++);var c=s[m].getWidth(y-1)===2;c&&y--;var h=c?_-1:_;u.push(h),b+=h}return u},S.getWrappedLineTrimmedLength=Y},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(u,p){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,m){y.__proto__=m}||function(y,m){for(var b in m)m.hasOwnProperty(b)&&(y[b]=m[b])})(u,p)},function(u,p){function y(){this.constructor=u}Y(u,p),u.prototype=p===null?Object.create(p):(y.prototype=p.prototype,new y)});Object.defineProperty(S,"__esModule",{value:!0}),S.Marker=void 0;var w=B(0),_=function(u){function p(y){var m=u.call(this)||this;return m.line=y,m._id=p._nextId++,m.isDisposed=!1,m._onDispose=new w.EventEmitter,m}return s(p,u),Object.defineProperty(p.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),p.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},p._nextId=1,p}(B(2).Disposable);S.Marker=_},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.OptionsService=S.DEFAULT_OPTIONS=S.DEFAULT_BELL_SOUND=void 0;var Y=B(0),s=B(11),w=B(33);S.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",S.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:S.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 _=["cols","rows"],u=function(){function p(y){this._onOptionChange=new Y.EventEmitter,this.options=w.clone(S.DEFAULT_OPTIONS);for(var m=0,b=Object.keys(y);m<b.length;m++){var v=b[m];if(v in this.options){var c=y[v];this.options[v]=c}}}return Object.defineProperty(p.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),p.prototype.setOption=function(y,m){if(!(y in S.DEFAULT_OPTIONS))throw new Error('No option with key "'+y+'"');if(_.indexOf(y)!==-1)throw new Error('Option "'+y+'" can only be set in the constructor');this.options[y]!==m&&(m=this._sanitizeAndValidateOption(y,m),this.options[y]!==m&&(this.options[y]=m,this._onOptionChange.fire(y)))},p.prototype._sanitizeAndValidateOption=function(y,m){switch(y){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":m||(m=S.DEFAULT_OPTIONS[y]);break;case"cursorWidth":m=Math.floor(m);case"lineHeight":case"tabStopWidth":if(m<1)throw new Error(y+" cannot be less than 1, value: "+m);break;case"minimumContrastRatio":m=Math.max(1,Math.min(21,Math.round(10*m)/10));break;case"scrollback":if((m=Math.min(m,4294967295))<0)throw new Error(y+" cannot be less than 0, value: "+m);break;case"fastScrollSensitivity":case"scrollSensitivity":if(m<=0)throw new Error(y+" cannot be less than or equal to 0, value: "+m)}return m},p.prototype.getOption=function(y){if(!(y in S.DEFAULT_OPTIONS))throw new Error('No option with key "'+y+'"');return this.options[y]},p}();S.OptionsService=u},function(J,S,B){"use strict";var Y,s=this&&this.__extends||(Y=function(h,g){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var I in T)T.hasOwnProperty(I)&&(x[I]=T[I])})(h,g)},function(h,g){function x(){this.constructor=h}Y(h,g),h.prototype=g===null?Object.create(g):(x.prototype=g.prototype,new x)}),w=this&&this.__decorate||function(h,g,x,T){var I,R=arguments.length,N=R<3?g:T===null?T=Object.getOwnPropertyDescriptor(g,x):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(h,g,x,T);else for(var k=h.length-1;k>=0;k--)(I=h[k])&&(N=(R<3?I(N):R>3?I(g,x,N):I(g,x))||N);return R>3&&N&&Object.defineProperty(g,x,N),N},_=this&&this.__param||function(h,g){return function(x,T){g(x,T,h)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CoreService=void 0;var u=B(1),p=B(0),y=B(33),m=B(2),b=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 g(x,T,I,R){var N=h.call(this)||this;return N._bufferService=T,N._logService=I,N._optionsService=R,N.isCursorInitialized=!1,N.isCursorHidden=!1,N._onData=N.register(new p.EventEmitter),N._onUserInput=N.register(new p.EventEmitter),N._onBinary=N.register(new p.EventEmitter),N._scrollToBottom=x,N.register({dispose:function(){return N._scrollToBottom=void 0}}),N.modes=y.clone(b),N.decPrivateModes=y.clone(v),N}return s(g,h),Object.defineProperty(g.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),g.prototype.reset=function(){this.modes=y.clone(b),this.decPrivateModes=y.clone(v)},g.prototype.triggerDataEvent=function(x,T){if(T===void 0&&(T=!1),!this._optionsService.options.disableStdin){var I=this._bufferService.buffer;I.ybase!==I.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)}},g.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))},g=w([_(1,u.IBufferService),_(2,u.ILogService),_(3,u.IOptionsService)],g)}(m.Disposable);S.CoreService=c},function(J,S,B){"use strict";var Y=this&&this.__decorate||function(v,c,h,g){var x,T=arguments.length,I=T<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(v,c,h,g);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(I=(T<3?x(I):T>3?x(c,h,I):x(c,h))||I);return T>3&&I&&Object.defineProperty(c,h,I),I},s=this&&this.__param||function(v,c){return function(h,g){c(h,g,v)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CoreMouseService=void 0;var w=B(1),_=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 p(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 y=String.fromCharCode,m={DEFAULT:function(v){var c=[p(v,!1)+32,v.col+32,v.row+32];return c[0]>255||c[1]>255||c[2]>255?"":"\x1B[M"+y(c[0])+y(c[1])+y(c[2])},SGR:function(v){var c=v.action===0&&v.button!==4?"m":"M";return"\x1B[<"+p(v,!0)+";"+v.col+";"+v.row+c}},b=function(){function v(c,h){this._bufferService=c,this._coreService=h,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new _.EventEmitter,this._lastEvent=null;for(var g=0,x=Object.keys(u);g<x.length;g++){var T=x[g];this.addProtocol(T,u[T])}for(var I=0,R=Object.keys(m);I<R.length;I++){var N=R[I];this.addEncoding(N,m[N])}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,w.IBufferService),s(1,w.ICoreService)],v)}();S.CoreMouseService=b},function(J,S,B){"use strict";var Y=this&&this.__decorate||function(u,p,y,m){var b,v=arguments.length,c=v<3?p:m===null?m=Object.getOwnPropertyDescriptor(p,y):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(u,p,y,m);else for(var h=u.length-1;h>=0;h--)(b=u[h])&&(c=(v<3?b(c):v>3?b(p,y,c):b(p,y))||c);return v>3&&c&&Object.defineProperty(p,y,c),c},s=this&&this.__param||function(u,p){return function(y,m){p(y,m,u)}};Object.defineProperty(S,"__esModule",{value:!0}),S.DirtyRowService=void 0;var w=B(1),_=function(){function u(p){this._bufferService=p,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(p){p<this._start?this._start=p:p>this._end&&(this._end=p)},u.prototype.markRangeDirty=function(p,y){if(p>y){var m=p;p=y,y=m}p<this._start&&(this._start=p),y>this._end&&(this._end=y)},u.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},u=Y([s(0,w.IBufferService)],u)}();S.DirtyRowService=_},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.UnicodeService=void 0;var Y=B(0),s=B(79),w=function(){function _(){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(_.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(_.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}),_.prototype.register=function(u){this._providers[u.version]=u},_.prototype.wcwidth=function(u){return this._activeProvider.wcwidth(u)},_.prototype.getStringCellWidth=function(u){for(var p=0,y=u.length,m=0;m<y;++m){var b=u.charCodeAt(m);if(55296<=b&&b<=56319){if(++m>=y)return p+this.wcwidth(b);var v=u.charCodeAt(m);56320<=v&&v<=57343?b=1024*(b-55296)+v-56320+65536:p+=this.wcwidth(v)}p+=this.wcwidth(b)}return p},_}();S.UnicodeService=w},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.UnicodeV6=void 0;var Y,s=B(15),w=[[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]],_=[[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 p(){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 y=0;y<w.length;++y)s.fill(Y,0,w[y][0],w[y][1]+1)}}return p.prototype.wcwidth=function(y){return y<32?0:y<127?1:y<65536?Y[y]:function(m,b){var v,c=0,h=b.length-1;if(m<b[0][0]||m>b[h][1])return!1;for(;h>=c;)if(m>b[v=c+h>>1][1])c=v+1;else{if(!(m<b[v][0]))return!0;h=v-1}return!1}(y,_)?0:y>=131072&&y<=196605||y>=196608&&y<=262141?2:1},p}();S.UnicodeV6=u},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.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(w){this.glevel=w,this.charset=this._charsets[w]},s.prototype.setgCharset=function(w,_){this._charsets[w]=_,this.glevel===w&&(this.charset=_)},s}();S.CharsetService=Y},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.updateWindowsModeWrappedState=void 0;var Y=B(3);S.updateWindowsModeWrappedState=function(s){var w=s.buffer.lines.get(s.buffer.ybase+s.buffer.y-1),_=w==null?void 0:w.get(s.cols-1),u=s.buffer.lines.get(s.buffer.ybase+s.buffer.y);u&&_&&(u.isWrapped=_[Y.CHAR_DATA_CODE_INDEX]!==Y.NULL_CELL_CODE&&_[Y.CHAR_DATA_CODE_INDEX]!==Y.WHITESPACE_CELL_CODE)}},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.WriteBuffer=void 0;var Y=function(){function s(w){this._action=w,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return s.prototype.writeSync=function(w){if(this._writeBuffer.length){for(var _=this._bufferOffset;_<this._writeBuffer.length;++_){var u=this._writeBuffer[_],p=this._callbacks[_];this._action(u),p&&p()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(w)},s.prototype.write=function(w,_){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+=w.length,this._writeBuffer.push(w),this._callbacks.push(_)},s.prototype._innerWrite=function(){for(var w=this,_=Date.now();this._writeBuffer.length>this._bufferOffset;){var u=this._writeBuffer[this._bufferOffset],p=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(u),this._pendingData-=u.length,p&&p(),Date.now()-_>=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 w._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},s}();S.WriteBuffer=Y},function(J,S,B){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.AddonManager=void 0;var Y=function(){function s(){this._addons=[]}return s.prototype.dispose=function(){for(var w=this._addons.length-1;w>=0;w--)this._addons[w].instance.dispose()},s.prototype.loadAddon=function(w,_){var u=this,p={instance:_,dispose:_.dispose,isDisposed:!1};this._addons.push(p),_.dispose=function(){return u._wrappedAddonDispose(p)},_.activate(w)},s.prototype._wrappedAddonDispose=function(w){if(!w.isDisposed){for(var _=-1,u=0;u<this._addons.length;u++)if(this._addons[u]===w){_=u;break}if(_===-1)throw new Error("Could not dispose an addon that has not been loaded");w.isDisposed=!0,w.dispose.apply(w.instance),this._addons.splice(_,1)}},s}();S.AddonManager=Y}])})},90302:function(Oe,J,S){"use strict";S.d(J,{ZP:function(){return L}});const B=-1,Y=0,s=1,w=2,_=3,u=4,p=5,y=6,m=7,b=8,v=typeof self=="object"?self:globalThis,c=(H,M)=>{const F=(U,G)=>(H.set(G,U),U),P=U=>{if(H.has(U))return H.get(U);const[G,Q]=M[U];switch(G){case Y:case B:return F(Q,U);case s:{const ee=F([],U);for(const ae of Q)ee.push(P(ae));return ee}case w:{const ee=F({},U);for(const[ae,oe]of Q)ee[P(ae)]=P(oe);return ee}case _:return F(new Date(Q),U);case u:{const{source:ee,flags:ae}=Q;return F(new RegExp(ee,ae),U)}case p:{const ee=F(new Map,U);for(const[ae,oe]of Q)ee.set(P(ae),P(oe));return ee}case y:{const ee=F(new Set,U);for(const ae of Q)ee.add(P(ae));return ee}case m:{const{name:ee,message:ae}=Q;return F(new v[ee](ae),U)}case b:return F(BigInt(Q),U);case"BigInt":return F(Object(BigInt(Q)),U);case"ArrayBuffer":return F(new Uint8Array(Q).buffer,Q);case"DataView":{const{buffer:ee}=new Uint8Array(Q);return F(new DataView(ee),Q)}}return F(new v[G](Q),U)};return P},h=H=>c(new Map,H)(0),g="",{toString:x}={},{keys:T}=Object,I=H=>{const M=typeof H;if(M!=="object"||!H)return[Y,M];const F=x.call(H).slice(8,-1);switch(F){case"Array":return[s,g];case"Object":return[w,g];case"Date":return[_,g];case"RegExp":return[u,g];case"Map":return[p,g];case"Set":return[y,g];case"DataView":return[s,F]}return F.includes("Array")?[s,F]:F.includes("Error")?[m,F]:[w,F]},R=([H,M])=>H===Y&&(M==="function"||M==="symbol"),N=(H,M,F,P)=>{const U=(Q,ee)=>{const ae=P.push(Q)-1;return F.set(ee,ae),ae},G=Q=>{if(F.has(Q))return F.get(Q);let[ee,ae]=I(Q);switch(ee){case Y:{let he=Q;switch(ae){case"bigint":ee=b,he=Q.toString();break;case"function":case"symbol":if(H)throw new TypeError("unable to serialize "+ae);he=null;break;case"undefined":return U([B],Q)}return U([ee,he],Q)}case s:{if(ae){let be=Q;return ae==="DataView"?be=new Uint8Array(Q.buffer):ae==="ArrayBuffer"&&(be=new Uint8Array(Q)),U([ae,[...be]],Q)}const he=[],le=U([ee,he],Q);for(const be of Q)he.push(G(be));return le}case w:{if(ae)switch(ae){case"BigInt":return U([ae,Q.toString()],Q);case"Boolean":case"Number":case"String":return U([ae,Q.valueOf()],Q)}if(M&&"toJSON"in Q)return G(Q.toJSON());const he=[],le=U([ee,he],Q);for(const be of T(Q))(H||!R(I(Q[be])))&&he.push([G(be),G(Q[be])]);return le}case _:return U([ee,Q.toISOString()],Q);case u:{const{source:he,flags:le}=Q;return U([ee,{source:he,flags:le}],Q)}case p:{const he=[],le=U([ee,he],Q);for(const[be,pe]of Q)(H||!(R(I(be))||R(I(pe))))&&he.push([G(be),G(pe)]);return le}case y:{const he=[],le=U([ee,he],Q);for(const be of Q)(H||!R(I(be)))&&he.push(G(be));return le}}const{message:oe}=Q;return U([ee,{name:ae,message:oe}],Q)};return G},k=(H,{json:M,lossy:F}={})=>{const P=[];return N(!(M||F),!!M,new Map,P)(H),P};var L=typeof structuredClone=="function"?(H,M)=>M&&("json"in M||"lossy"in M)?h(k(H,M)):structuredClone(H):(H,M)=>h(k(H,M))},11630:function(Oe,J,S){"use strict";S.d(J,{P:function(){return Y},Q:function(){return B}});function B(s){const w=[],_=String(s||"");let u=_.indexOf(","),p=0,y=!1;for(;!y;){u===-1&&(u=_.length,y=!0);const m=_.slice(p,u).trim();(m||!y)&&w.push(m),p=u+1,u=_.indexOf(",",p)}return w}function Y(s,w){const _=w||{};return(s[s.length-1]===""?[...s,""]:s).join((_.padRight?" ":"")+","+(_.padLeft===!1?"":" ")).trim()}},87342:function(Oe,J,S){"use strict";S.d(J,{ok:function(){return s},t1:function(){return w}});function B(_){return _}function Y(){}function s(){}function w(){}},40797:function(Oe,J,S){"use strict";S.d(J,{N:function(){return h}});var B=S(81994),Y=S(43309);function s(x,T){return w(x,T||{})||{type:"root",children:[]}}function w(x,T){const I=_(x,T);return I&&T.afterTransform&&T.afterTransform(x,I),I}function _(x,T){switch(x.nodeType){case 1:return b(x,T);case 3:return y(x);case 8:return m(x);case 9:return u(x,T);case 10:return p();case 11:return u(x,T);default:return}}function u(x,T){return{type:"root",children:v(x,T)}}function p(){return{type:"doctype"}}function y(x){return{type:"text",value:x.nodeValue||""}}function m(x){return{type:"comment",value:x.nodeValue||""}}function b(x,T){const I=x.namespaceURI,R=I===Y.t.svg?B.s:B.h,N=I===Y.t.html?x.tagName.toLowerCase():x.tagName,k=I===Y.t.html&&N==="template"?x.content:x,L=x.getAttributeNames(),H={};let M=-1;for(;++M<L.length;)H[L[M]]=x.getAttribute(L[M])||"";return R(N,H,v(k,T))}function v(x,T){const I=x.childNodes,R=[];let N=-1;for(;++N<I.length;){const k=w(I[N],T);k!==void 0&&R.push(k)}return R}const c=new DOMParser;function h(x,T){const I=T!=null&&T.fragment?g(x):c.parseFromString(x,"text/html");return s(I)}function g(x){const T=document.createElement("template");return T.innerHTML=x,T.content}},91378:function(Oe,J,S){"use strict";S.d(J,{l:function(){return R}});var B=S(10502);const Y=function(Q,ee,ae){const oe=(0,B.O)(ae);if(!Q||!Q.type||!Q.children)throw new Error("Expected parent node");if(typeof ee=="number"){if(ee<0||ee===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(ee=Q.children.indexOf(ee),ee<0)throw new Error("Expected child node or index");for(;++ee<Q.children.length;)if(oe(Q.children[ee],ee,Q))return Q.children[ee]},s=function(Q,ee,ae,oe,he){const le=w(ee);if(ae!=null&&(typeof ae!="number"||ae<0||ae===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(oe!=null&&(!oe.type||!oe.children))throw new Error("Expected valid `parent`");if(ae==null!=(oe==null))throw new Error("Expected both `index` and `parent`");return m(Q)?le.call(he,Q,ae,oe):!1},w=function(Q){if(Q==null)return y;if(typeof Q=="string")return u(Q);if(typeof Q=="object")return _(Q);if(typeof Q=="function")return p(Q);throw new Error("Expected function, string, or array as `test`")};function _(Q){const ee=[];let ae=-1;for(;++ae<Q.length;)ee[ae]=w(Q[ae]);return p(oe);function oe(...he){let le=-1;for(;++le<ee.length;)if(ee[le].apply(this,he))return!0;return!1}}function u(Q){return p(ee);function ee(ae){return ae.tagName===Q}}function p(Q){return ee;function ee(ae,oe,he){return!!(m(ae)&&Q.call(this,ae,typeof oe=="number"?oe:void 0,he||void 0))}}function y(Q){return!!(Q&&typeof Q=="object"&&"type"in Q&&Q.type==="element"&&"tagName"in Q&&typeof Q.tagName=="string")}function m(Q){return Q!==null&&typeof Q=="object"&&"type"in Q&&"tagName"in Q}const b=/\n/g,v=/[\t ]+/g,c=w("br"),h=w(U),g=w("p"),x=w("tr"),T=w(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",P,G]),I=w(["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,ee){const ae=ee||{},oe="children"in Q?Q.children:[],he=I(Q),le=F(Q,{whitespace:ae.whitespace||"normal",breakBefore:!1,breakAfter:!1}),be=[];(Q.type==="text"||Q.type==="comment")&&be.push(...L(Q,{whitespace:le,breakBefore:!0,breakAfter:!0}));let pe=-1;for(;++pe<oe.length;)be.push(...N(oe[pe],Q,{whitespace:le,breakBefore:pe?void 0:he,breakAfter:pe<oe.length-1?c(oe[pe+1]):he}));const _e=[];let ne;for(pe=-1;++pe<be.length;){const ue=be[pe];typeof ue=="number"?ne!==void 0&&ue>ne&&(ne=ue):ue&&(ne!==void 0&&ne>-1&&_e.push(`
`.repeat(ne)||" "),ne=-1,_e.push(ue))}return _e.join("")}function N(Q,ee,ae){return Q.type==="element"?k(Q,ee,ae):Q.type==="text"?ae.whitespace==="normal"?L(Q,ae):H(Q):[]}function k(Q,ee,ae){const oe=F(Q,ae),he=Q.children||[];let le=-1,be=[];if(T(Q))return be;let pe,_e;for(c(Q)||x(Q)&&Y(ee,Q,x)?_e=`
`:g(Q)?(pe=2,_e=2):I(Q)&&(pe=1,_e=1);++le<he.length;)be=be.concat(N(he[le],Q,{whitespace:oe,breakBefore:le?void 0:pe,breakAfter:le<he.length-1?c(he[le+1]):_e}));return h(Q)&&Y(ee,Q,h)&&be.push(" "),pe&&be.unshift(pe),_e&&be.push(_e),be}function L(Q,ee){const ae=String(Q.value),oe=[],he=[];let le=0;for(;le<=ae.length;){b.lastIndex=le;const _e=b.exec(ae),ne=_e&&"index"in _e?_e.index:ae.length;oe.push(M(ae.slice(le,ne).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),le===0?ee.breakBefore:!0,ne===ae.length?ee.breakAfter:!0)),le=ne+1}let be=-1,pe;for(;++be<oe.length;)oe[be].charCodeAt(oe[be].length-1)===8203||be<oe.length-1&&oe[be+1].charCodeAt(0)===8203?(he.push(oe[be]),pe=void 0):oe[be]?(typeof pe=="number"&&he.push(pe),he.push(oe[be]),pe=0):(be===0||be===oe.length-1)&&he.push(0);return he}function H(Q){return[String(Q.value)]}function M(Q,ee,ae){const oe=[];let he=0,le;for(;he<Q.length;){v.lastIndex=he;const be=v.exec(Q);le=be?be.index:Q.length,!he&&!le&&be&&!ee&&oe.push(""),he!==le&&oe.push(Q.slice(he,le)),he=be?le+be[0].length:le}return he!==le&&!ae&&oe.push(""),oe.join(" ")}function F(Q,ee){if(Q.type==="element"){const ae=Q.properties||{};switch(Q.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return ae.wrap?"pre-wrap":"pre";case"td":case"th":return ae.noWrap?"nowrap":ee.whitespace;case"textarea":return"pre-wrap";default:}}return ee.whitespace}function P(Q){return!!(Q.properties||{}).hidden}function U(Q){return Q.tagName==="td"||Q.tagName==="th"}function G(Q){return Q.tagName==="dialog"&&!(Q.properties||{}).open}},81994:function(Oe,J,S){"use strict";S.d(J,{h:function(){return T},s:function(){return I}});var B=S(14470),Y=S(11630);const s=/[#.]/g;function w(R,N){const k=R||"",L={};let H=0,M,F;for(;H<k.length;){s.lastIndex=H;const P=s.exec(k),U=k.slice(H,P?P.index:k.length);U&&(M?M==="#"?L.id=U:Array.isArray(L.className)?L.className.push(U):L.className=[U]:F=U,H+=U.length),P&&(M=P[0],H++)}return{type:"element",tagName:F||N||"div",properties:L,children:[]}}var _=S(86825),u=S(13830),p=S(71523);function y(R,N,k){const L=k?g(k):void 0;function H(M,F,...P){let U;if(M==null){U={type:"root",children:[]};const G=F;P.unshift(G)}else{U=w(M,N);const G=U.tagName.toLowerCase(),Q=L?L.get(G):void 0;if(U.tagName=Q||G,m(F))P.unshift(F);else for(const[ee,ae]of Object.entries(F))b(R,U.properties,ee,ae)}for(const G of P)v(U.children,G);return U.type==="element"&&U.tagName==="template"&&(U.content={type:"root",children:U.children},U.children=[]),U}return H}function m(R){if(R===null||typeof R!="object"||Array.isArray(R))return!0;if(typeof R.type!="string")return!1;const N=R,k=Object.keys(R);for(const L of k){const H=N[L];if(H&&typeof H=="object"){if(!Array.isArray(H))return!0;const M=H;for(const F of M)if(typeof F!="number"&&typeof F!="string")return!0}}return!!("children"in R&&Array.isArray(R.children))}function b(R,N,k,L){const H=(0,_.s)(R,k);let M;if(L!=null){if(typeof L=="number"){if(Number.isNaN(L))return;M=L}else typeof L=="boolean"?M=L:typeof L=="string"?H.spaceSeparated?M=(0,p.Q)(L):H.commaSeparated?M=(0,Y.Q)(L):H.commaOrSpaceSeparated?M=(0,p.Q)((0,Y.Q)(L).join(" ")):M=c(H,H.property,L):Array.isArray(L)?M=[...L]:M=H.property==="style"?h(L):String(L);if(Array.isArray(M)){const F=[];for(const P of M)F.push(c(H,H.property,P));M=F}H.property==="className"&&Array.isArray(N.className)&&(M=N.className.concat(M)),N[H.property]=M}}function v(R,N){if(N!=null)if(typeof N=="number"||typeof N=="string")R.push({type:"text",value:String(N)});else if(Array.isArray(N))for(const k of N)v(R,k);else if(typeof N=="object"&&"type"in N)N.type==="root"?v(R,N.children):R.push(N);else throw new Error("Expected node, nodes, or string, got `"+N+"`")}function c(R,N,k){if(typeof k=="string"){if(R.number&&k&&!Number.isNaN(Number(k)))return Number(k);if((R.boolean||R.overloadedBoolean)&&(k===""||(0,u.F)(k)===(0,u.F)(N)))return!0}return k}function h(R){const N=[];for(const[k,L]of Object.entries(R))N.push([k,L].join(": "));return N.join("; ")}function g(R){const N=new Map;for(const k of R)N.set(k.toLowerCase(),k);return N}const x=["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"],T=y(B.dy,"div"),I=y(B.YP,"g",x)},26735:function(Oe,J,S){"use strict";S.d(J,{f:function(){return Y}});var B=S(80722);function Y(s,w,_,u){const p=u?u-1:Number.POSITIVE_INFINITY;let y=0;return m;function m(v){return(0,B.xz)(v)?(s.enter(_),b(v)):w(v)}function b(v){return(0,B.xz)(v)&&y++<p?(s.consume(v),b):(s.exit(_),w(v))}}},80722:function(Oe,J,S){"use strict";S.d(J,{AF:function(){return u},Av:function(){return w},B8:function(){return c},Ch:function(){return y},H$:function(){return Y},Xh:function(){return v},jv:function(){return B},n9:function(){return s},pY:function(){return _},sR:function(){return p},xz:function(){return b},z3:function(){return m}});const B=h(/[A-Za-z]/),Y=h(/[\dA-Za-z]/),s=h(/[#-'*+\--9=?A-Z^-~]/);function w(g){return g!==null&&(g<32||g===127)}const _=h(/\d/),u=h(/[\dA-Fa-f]/),p=h(/[!-/:-@[-`{-~]/);function y(g){return g!==null&&g<-2}function m(g){return g!==null&&(g<0||g===32)}function b(g){return g===-2||g===-1||g===32}const v=h(new RegExp("\\p{P}|\\p{S}","u")),c=h(/\s/);function h(g){return x;function x(T){return T!==null&&T>-1&&g.test(String.fromCharCode(T))}}},14470:function(Oe,J,S){"use strict";S.d(J,{dy:function(){return x},YP:function(){return T}});class B{constructor(R,N,k){this.normal=N,this.property=R,k&&(this.space=k)}}B.prototype.normal={},B.prototype.property={},B.prototype.space=void 0;function Y(I,R){const N={},k={};for(const L of I)Object.assign(N,L.property),Object.assign(k,L.normal);return new B(N,k,R)}var s=S(13830),w=S(53538);function _(I){const R={},N={};for(const[k,L]of Object.entries(I.properties)){const H=new w.I(k,I.transform(I.attributes||{},k),L,I.space);I.mustUseProperty&&I.mustUseProperty.includes(k)&&(H.mustUseProperty=!0),R[k]=H,N[(0,s.F)(k)]=k,N[(0,s.F)(H.attribute)]=k}return new B(R,N,I.space)}var u=S(71337);const p=_({properties:{ariaActiveDescendant:null,ariaAtomic:u.booleanish,ariaAutoComplete:null,ariaBusy:u.booleanish,ariaChecked:u.booleanish,ariaColCount:u.number,ariaColIndex:u.number,ariaColSpan:u.number,ariaControls:u.spaceSeparated,ariaCurrent:null,ariaDescribedBy:u.spaceSeparated,ariaDetails:null,ariaDisabled:u.booleanish,ariaDropEffect:u.spaceSeparated,ariaErrorMessage:null,ariaExpanded:u.booleanish,ariaFlowTo:u.spaceSeparated,ariaGrabbed:u.booleanish,ariaHasPopup:null,ariaHidden:u.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u.spaceSeparated,ariaLevel:u.number,ariaLive:null,ariaModal:u.booleanish,ariaMultiLine:u.booleanish,ariaMultiSelectable:u.booleanish,ariaOrientation:null,ariaOwns:u.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:u.number,ariaPressed:u.booleanish,ariaReadOnly:u.booleanish,ariaRelevant:null,ariaRequired:u.booleanish,ariaRoleDescription:u.spaceSeparated,ariaRowCount:u.number,ariaRowIndex:u.number,ariaRowSpan:u.number,ariaSelected:u.booleanish,ariaSetSize:u.number,ariaSort:null,ariaValueMax:u.number,ariaValueMin:u.number,ariaValueNow:u.number,ariaValueText:null,role:null},transform(I,R){return R==="role"?R:"aria-"+R.slice(4).toLowerCase()}});function y(I,R){return R in I?I[R]:R}function m(I,R){return y(I,R.toLowerCase())}const b=_({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:u.commaSeparated,acceptCharset:u.spaceSeparated,accessKey:u.spaceSeparated,action:null,allow:null,allowFullScreen:u.boolean,allowPaymentRequest:u.boolean,allowUserMedia:u.boolean,alt:null,as:null,async:u.boolean,autoCapitalize:null,autoComplete:u.spaceSeparated,autoFocus:u.boolean,autoPlay:u.boolean,blocking:u.spaceSeparated,capture:null,charSet:null,checked:u.boolean,cite:null,className:u.spaceSeparated,cols:u.number,colSpan:null,content:null,contentEditable:u.booleanish,controls:u.boolean,controlsList:u.spaceSeparated,coords:u.number|u.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:u.boolean,defer:u.boolean,dir:null,dirName:null,disabled:u.boolean,download:u.overloadedBoolean,draggable:u.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:u.boolean,formTarget:null,headers:u.spaceSeparated,height:u.number,hidden:u.overloadedBoolean,high:u.number,href:null,hrefLang:null,htmlFor:u.spaceSeparated,httpEquiv:u.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:u.boolean,inputMode:null,integrity:null,is:null,isMap:u.boolean,itemId:null,itemProp:u.spaceSeparated,itemRef:u.spaceSeparated,itemScope:u.boolean,itemType:u.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:u.boolean,low:u.number,manifest:null,max:null,maxLength:u.number,media:null,method:null,min:null,minLength:u.number,multiple:u.boolean,muted:u.boolean,name:null,nonce:null,noModule:u.boolean,noValidate:u.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:u.boolean,optimum:u.number,pattern:null,ping:u.spaceSeparated,placeholder:null,playsInline:u.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:u.boolean,referrerPolicy:null,rel:u.spaceSeparated,required:u.boolean,reversed:u.boolean,rows:u.number,rowSpan:u.number,sandbox:u.spaceSeparated,scope:null,scoped:u.boolean,seamless:u.boolean,selected:u.boolean,shadowRootClonable:u.boolean,shadowRootDelegatesFocus:u.boolean,shadowRootMode:null,shape:null,size:u.number,sizes:null,slot:null,span:u.number,spellCheck:u.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:u.number,step:null,style:null,tabIndex:u.number,target:null,title:null,translate:null,type:null,typeMustMatch:u.boolean,useMap:null,value:u.booleanish,width:u.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:u.spaceSeparated,axis:null,background:null,bgColor:null,border:u.number,borderColor:null,bottomMargin:u.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:u.boolean,declare:u.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:u.number,leftMargin:u.number,link:null,longDesc:null,lowSrc:null,marginHeight:u.number,marginWidth:u.number,noResize:u.boolean,noHref:u.boolean,noShade:u.boolean,noWrap:u.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:u.number,rules:null,scheme:null,scrolling:u.booleanish,standby:null,summary:null,text:null,topMargin:u.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:u.boolean,disableRemotePlayback:u.boolean,prefix:null,property:null,results:u.number,security:null,unselectable:null},space:"html",transform:m}),v=_({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"},properties:{about:u.commaOrSpaceSeparated,accentHeight:u.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:u.number,amplitude:u.number,arabicForm:null,ascent:u.number,attributeName:null,attributeType:null,azimuth:u.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:u.number,by:null,calcMode:null,capHeight:u.number,className:u.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:u.number,diffuseConstant:u.number,direction:null,display:null,dur:null,divisor:u.number,dominantBaseline:null,download:u.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:u.number,enableBackground:null,end:null,event:null,exponent:u.number,externalResourcesRequired:null,fill:null,fillOpacity:u.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:u.commaSeparated,g2:u.commaSeparated,glyphName:u.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:u.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:u.number,horizOriginX:u.number,horizOriginY:u.number,id:null,ideographic:u.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:u.number,k:u.number,k1:u.number,k2:u.number,k3:u.number,k4:u.number,kernelMatrix:u.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:u.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:u.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:u.number,overlineThickness:u.number,paintOrder:null,panose1:null,path:null,pathLength:u.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:u.number,pointsAtY:u.number,pointsAtZ:u.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:u.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:u.commaOrSpaceSeparated,rev:u.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:u.commaOrSpaceSeparated,requiredFeatures:u.commaOrSpaceSeparated,requiredFonts:u.commaOrSpaceSeparated,requiredFormats:u.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:u.number,specularExponent:u.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:u.number,strikethroughThickness:u.number,string:null,stroke:null,strokeDashArray:u.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:u.number,strokeOpacity:u.number,strokeWidth:null,style:null,surfaceScale:u.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:u.commaOrSpaceSeparated,tabIndex:u.number,tableValues:null,target:null,targetX:u.number,targetY:u.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:u.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:u.number,underlineThickness:u.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:u.number,values:null,vAlphabetic:u.number,vMathematical:u.number,vectorEffect:null,vHanging:u.number,vIdeographic:u.number,version:null,vertAdvY:u.number,vertOriginX:u.number,vertOriginY:u.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:u.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:y}),c=_({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(I,R){return"xlink:"+R.slice(5).toLowerCase()}}),h=_({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:m}),g=_({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(I,R){return"xml:"+R.slice(3).toLowerCase()}}),x=Y([p,b,c,h,g],"html"),T=Y([p,v,c,h,g],"svg")},86825:function(Oe,J,S){"use strict";S.d(J,{s:function(){return p}});var B=S(53538),Y=S(25629),s=S(13830);const w=/[A-Z]/g,_=/-[a-z]/g,u=/^data[-\w.:]+$/i;function p(b,v){const c=(0,s.F)(v);let h=v,g=Y.k;if(c in b.normal)return b.property[b.normal[c]];if(c.length>4&&c.slice(0,4)==="data"&&u.test(v)){if(v.charAt(4)==="-"){const x=v.slice(5).replace(_,m);h="data"+x.charAt(0).toUpperCase()+x.slice(1)}else{const x=v.slice(4);if(!_.test(x)){let T=x.replace(w,y);T.charAt(0)!=="-"&&(T="-"+T),v="data"+T}}g=B.I}return new g(h,v)}function y(b){return"-"+b.toLowerCase()}function m(b){return b.charAt(1).toUpperCase()}},13830:function(Oe,J,S){"use strict";S.d(J,{F:function(){return B}});function B(Y){return Y.toLowerCase()}},53538:function(Oe,J,S){"use strict";S.d(J,{I:function(){return w}});var B=S(25629),Y=S(71337);const s=Object.keys(Y);class w extends B.k{constructor(p,y,m,b){let v=-1;if(super(p,y),_(this,"space",b),typeof m=="number")for(;++v<s.length;){const c=s[v];_(this,s[v],(m&Y[c])===Y[c])}}}w.prototype.defined=!0;function _(u,p,y){y&&(u[p]=y)}},25629:function(Oe,J,S){"use strict";S.d(J,{k:function(){return B}});class B{constructor(s,w){this.attribute=w,this.property=s}}B.prototype.attribute="",B.prototype.booleanish=!1,B.prototype.boolean=!1,B.prototype.commaOrSpaceSeparated=!1,B.prototype.commaSeparated=!1,B.prototype.defined=!1,B.prototype.mustUseProperty=!1,B.prototype.number=!1,B.prototype.overloadedBoolean=!1,B.prototype.property="",B.prototype.spaceSeparated=!1,B.prototype.space=void 0},71337:function(Oe,J,S){"use strict";S.r(J),S.d(J,{boolean:function(){return Y},booleanish:function(){return s},commaOrSpaceSeparated:function(){return y},commaSeparated:function(){return p},number:function(){return _},overloadedBoolean:function(){return w},spaceSeparated:function(){return u}});let B=0;const Y=m(),s=m(),w=m(),_=m(),u=m(),p=m(),y=m();function m(){return o0(2,++B)}},72460:function(Oe,J,S){"use strict";S.d(J,{UG:function(){return ks}});var B={};S.r(B),S.d(B,{attentionMarkers:function(){return vo},contentInitial:function(){return _s},disable:function(){return Ko},document:function(){return Ki},flow:function(){return Da},flowInitial:function(){return fs},insideSpan:function(){return mo},string:function(){return Rs},text:function(){return sr}});var Y=S(87342),s=S(11630);const w=/[$_\p{ID_Start}]/u,_=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,u=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,p=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,y=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,m={};function b(te){return te?w.test(String.fromCodePoint(te)):!1}function v(te,Ee){const Ue=(Ee||m).jsx?u:_;return te?Ue.test(String.fromCodePoint(te)):!1}function c(te,Ee){return((Ee||m).jsx?y:p).test(te)}const h=/[ \t\n\f\r]/g;function g(te){return typeof te=="object"?te.type==="text"?x(te.value):!1:x(te)}function x(te){return te.replace(h,"")===""}var T=S(14470),I=S(86825);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 N=S(71523),k=S(6526),L=S(17970);function H(te){return!te||typeof te!="object"?"":"position"in te||"type"in te?F(te.position):"start"in te||"end"in te?F(te):"line"in te||"column"in te?M(te):""}function M(te){return P(te&&te.line)+":"+P(te&&te.column)}function F(te){return M(te&&te.start)+"-"+M(te&&te.end)}function P(te){return te&&typeof te=="number"?te:1}class U extends Error{constructor(Ee,Le,Ue){super(),typeof Le=="string"&&(Ue=Le,Le=void 0);let Je="",qe={},ft=!1;if(Le&&("line"in Le&&"column"in Le?qe={place:Le}:"start"in Le&&"end"in Le?qe={place:Le}:"type"in Le?qe={ancestors:[Le],place:Le.position}:qe=Ii({},Le)),typeof Ee=="string"?Je=Ee:!qe.cause&&Ee&&(ft=!0,Je=Ee.message,qe.cause=Ee),!qe.ruleId&&!qe.source&&typeof Ue=="string"){const Ht=Ue.indexOf(":");Ht===-1?qe.ruleId=Ue:(qe.source=Ue.slice(0,Ht),qe.ruleId=Ue.slice(Ht+1))}if(!qe.place&&qe.ancestors&&qe.ancestors){const Ht=qe.ancestors[qe.ancestors.length-1];Ht&&(qe.place=Ht.position)}const yt=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=yt?yt.column:void 0,this.fatal=void 0,this.file,this.message=Je,this.line=yt?yt.line:void 0,this.name=H(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=ft&&qe.cause&&typeof qe.cause.stack=="string"?qe.cause.stack:"",this.actual,this.expected,this.note,this.url}}U.prototype.file="",U.prototype.name="",U.prototype.reason="",U.prototype.message="",U.prototype.stack="",U.prototype.column=void 0,U.prototype.line=void 0,U.prototype.ancestors=void 0,U.prototype.cause=void 0,U.prototype.fatal=void 0,U.prototype.place=void 0,U.prototype.ruleId=void 0,U.prototype.source=void 0;const G={}.hasOwnProperty,Q=new Map,ee=/[A-Z]/g,ae=new Set(["table","tbody","thead","tfoot","tr"]),oe=new Set(["td","th"]),he="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function le(te,Ee){if(!Ee||Ee.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const Le=Ee.filePath||void 0;let Ue;if(Ee.development){if(typeof Ee.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");Ue=Me(Le,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");Ue=De(Le,Ee.jsx,Ee.jsxs)}const Je={Fragment:Ee.Fragment,ancestors:[],components:Ee.components||{},create:Ue,elementAttributeNameCase:Ee.elementAttributeNameCase||"react",evaluater:Ee.createEvaluater?Ee.createEvaluater():void 0,filePath:Le,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=be(Je,te,void 0);return qe&&typeof qe!="string"?qe:Je.create(te,Je.Fragment,{children:qe||void 0},void 0)}function be(te,Ee,Le){if(Ee.type==="element")return pe(te,Ee,Le);if(Ee.type==="mdxFlowExpression"||Ee.type==="mdxTextExpression")return _e(te,Ee);if(Ee.type==="mdxJsxFlowElement"||Ee.type==="mdxJsxTextElement")return ue(te,Ee,Le);if(Ee.type==="mdxjsEsm")return ne(te,Ee);if(Ee.type==="root")return ce(te,Ee,Le);if(Ee.type==="text")return Re(te,Ee)}function pe(te,Ee,Le){const Ue=te.schema;let Je=Ue;Ee.tagName.toLowerCase()==="svg"&&Ue.space==="html"&&(Je=T.YP,te.schema=Je),te.ancestors.push(Ee);const qe=xe(te,Ee.tagName,!1),ft=We(te,Ee);let yt=et(te,Ee);return ae.has(Ee.tagName)&&(yt=yt.filter(function(Ht){return typeof Ht=="string"?!g(Ht):!0})),ke(te,ft,qe,Ee),Ne(ft,yt),te.ancestors.pop(),te.schema=Ue,te.create(Ee,qe,ft,Le)}function _e(te,Ee){if(Ee.data&&Ee.data.estree&&te.evaluater){const Ue=Ee.data.estree.body[0];return(0,Y.ok)(Ue.type==="ExpressionStatement"),te.evaluater.evaluateExpression(Ue.expression)}fe(te,Ee.position)}function ne(te,Ee){if(Ee.data&&Ee.data.estree&&te.evaluater)return te.evaluater.evaluateProgram(Ee.data.estree);fe(te,Ee.position)}function ue(te,Ee,Le){const Ue=te.schema;let Je=Ue;Ee.name==="svg"&&Ue.space==="html"&&(Je=T.YP,te.schema=Je),te.ancestors.push(Ee);const qe=Ee.name===null?te.Fragment:xe(te,Ee.name,!0),ft=je(te,Ee),yt=et(te,Ee);return ke(te,ft,qe,Ee),Ne(ft,yt),te.ancestors.pop(),te.schema=Ue,te.create(Ee,qe,ft,Le)}function ce(te,Ee,Le){const Ue={};return Ne(Ue,et(te,Ee)),te.create(Ee,te.Fragment,Ue,Le)}function Re(te,Ee){return Ee.value}function ke(te,Ee,Le,Ue){typeof Le!="string"&&Le!==te.Fragment&&te.passNode&&(Ee.node=Ue)}function Ne(te,Ee){if(Ee.length>0){const Le=Ee.length>1?Ee:Ee[0];Le&&(te.children=Le)}}function De(te,Ee,Le){return Ue;function Ue(Je,qe,ft,yt){const Kt=Array.isArray(ft.children)?Le:Ee;return yt?Kt(qe,ft,yt):Kt(qe,ft)}}function Me(te,Ee){return Le;function Le(Ue,Je,qe,ft){const yt=Array.isArray(qe.children),Ht=(0,L.Pk)(Ue);return Ee(Je,qe,ft,yt,{columnNumber:Ht?Ht.column-1:void 0,fileName:te,lineNumber:Ht?Ht.line:void 0},void 0)}}function We(te,Ee){const Le={};let Ue,Je;for(Je in Ee.properties)if(Je!=="children"&&G.call(Ee.properties,Je)){const qe=it(te,Je,Ee.properties[Je]);if(qe){const[ft,yt]=qe;te.tableCellAlignToStyle&&ft==="align"&&typeof yt=="string"&&oe.has(Ee.tagName)?Ue=yt:Le[ft]=yt}}if(Ue){const qe=Le.style||(Le.style={});qe[te.stylePropertyNameCase==="css"?"text-align":"textAlign"]=Ue}return Le}function je(te,Ee){const Le={};for(const Ue of Ee.attributes)if(Ue.type==="mdxJsxExpressionAttribute")if(Ue.data&&Ue.data.estree&&te.evaluater){const qe=Ue.data.estree.body[0];(0,Y.ok)(qe.type==="ExpressionStatement");const ft=qe.expression;(0,Y.ok)(ft.type==="ObjectExpression");const yt=ft.properties[0];(0,Y.ok)(yt.type==="SpreadElement"),Object.assign(Le,te.evaluater.evaluateExpression(yt.argument))}else fe(te,Ee.position);else{const Je=Ue.name;let qe;if(Ue.value&&typeof Ue.value=="object")if(Ue.value.data&&Ue.value.data.estree&&te.evaluater){const yt=Ue.value.data.estree.body[0];(0,Y.ok)(yt.type==="ExpressionStatement"),qe=te.evaluater.evaluateExpression(yt.expression)}else fe(te,Ee.position);else qe=Ue.value===null?!0:Ue.value;Le[Je]=qe}return Le}function et(te,Ee){const Le=[];let Ue=-1;const Je=te.passKeys?new Map:Q;for(;++Ue<Ee.children.length;){const qe=Ee.children[Ue];let ft;if(te.passKeys){const Ht=qe.type==="element"?qe.tagName:qe.type==="mdxJsxFlowElement"||qe.type==="mdxJsxTextElement"?qe.name:void 0;if(Ht){const Kt=Je.get(Ht)||0;ft=Ht+"-"+Kt,Je.set(Ht,Kt+1)}}const yt=be(te,qe,ft);yt!==void 0&&Le.push(yt)}return Le}function it(te,Ee,Le){const Ue=(0,I.s)(te.schema,Ee);if(!(Le==null||typeof Le=="number"&&Number.isNaN(Le))){if(Array.isArray(Le)&&(Le=Ue.commaSeparated?(0,s.P)(Le):(0,N.P)(Le)),Ue.property==="style"){let Je=typeof Le=="object"?Le:ze(te,String(Le));return te.stylePropertyNameCase==="css"&&(Je=W(Je)),["style",Je]}return[te.elementAttributeNameCase==="react"&&Ue.space?R[Ue.property]||Ue.property:Ue.attribute,Le]}}function ze(te,Ee){try{return k(Ee,{reactCompat:!0})}catch(Le){if(te.ignoreInvalidStyle)return{};const Ue=Le,Je=new U("Cannot parse `style` attribute",{ancestors:te.ancestors,cause:Ue,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw Je.file=te.filePath||void 0,Je.url=he+"#cannot-parse-style-attribute",Je}}function xe(te,Ee,Le){let Ue;if(!Le)Ue={type:"Literal",value:Ee};else if(Ee.includes(".")){const Je=Ee.split(".");let qe=-1,ft;for(;++qe<Je.length;){const yt=c(Je[qe])?{type:"Identifier",name:Je[qe]}:{type:"Literal",value:Je[qe]};ft=ft?{type:"MemberExpression",object:ft,property:yt,computed:!!(qe&&yt.type==="Literal"),optional:!1}:yt}(0,Y.ok)(ft,"always a result"),Ue=ft}else Ue=c(Ee)&&!/^[a-z]/.test(Ee)?{type:"Identifier",name:Ee}:{type:"Literal",value:Ee};if(Ue.type==="Literal"){const Je=Ue.value;return G.call(te.components,Je)?te.components[Je]:Je}if(te.evaluater)return te.evaluater.evaluateExpression(Ue);fe(te)}function fe(te,Ee){const Le=new U("Cannot handle MDX estrees without `createEvaluater`",{ancestors:te.ancestors,place:Ee,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Le.file=te.filePath||void 0,Le.url=he+"#cannot-handle-mdx-estrees-without-createevaluater",Le}function W(te){const Ee={};let Le;for(Le in te)G.call(te,Le)&&(Ee[Z(Le)]=te[Le]);return Ee}function Z(te){let Ee=te.replace(ee,me);return Ee.slice(0,3)==="ms-"&&(Ee="-"+Ee),Ee}function me(te){return"-"+te.toLowerCase()}const Ce={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 re=S(37712),ie=S(59301);const de={};function Ae(te,Ee){const Le=Ee||de,Ue=typeof Le.includeImageAlt=="boolean"?Le.includeImageAlt:!0,Je=typeof Le.includeHtml=="boolean"?Le.includeHtml:!0;return Be(te,Ue,Je)}function Be(te,Ee,Le){if(st(te)){if("value"in te)return te.type==="html"&&!Le?"":te.value;if(Ee&&"alt"in te&&te.alt)return te.alt;if("children"in te)return He(te.children,Ee,Le)}return Array.isArray(te)?He(te,Ee,Le):""}function He(te,Ee,Le){const Ue=[];let Je=-1;for(;++Je<te.length;)Ue[Je]=Be(te[Je],Ee,Le);return Ue.join("")}function st(te){return!!(te&&typeof te=="object")}function Qe(te,Ee,Le,Ue){const Je=te.length;let qe=0,ft;if(Ee<0?Ee=-Ee>Je?0:Je+Ee:Ee=Ee>Je?Je:Ee,Le=Le>0?Le:0,Ue.length<1e4)ft=Array.from(Ue),ft.unshift(Ee,Le),te.splice(...ft);else for(Le&&te.splice(Ee,Le);qe<Ue.length;)ft=Ue.slice(qe,qe+1e4),ft.unshift(Ee,0),te.splice(...ft),qe+=1e4,Ee+=1e4}function pt(te,Ee){return te.length>0?(Qe(te,te.length,0,Ee),te):Ee}class It{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,Le){const Ue=Le==null?Number.POSITIVE_INFINITY:Le;return Ue<this.left.length?this.left.slice(Ee,Ue):Ee>this.left.length?this.right.slice(this.right.length-Ue+this.left.length,this.right.length-Ee+this.left.length).reverse():this.left.slice(Ee).concat(this.right.slice(this.right.length-Ue+this.left.length).reverse())}splice(Ee,Le,Ue){const Je=Le||0;this.setCursor(Math.trunc(Ee));const qe=this.right.splice(this.right.length-Je,Number.POSITIVE_INFINITY);return Ue&&gt(this.left,Ue),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),gt(this.left,Ee)}unshift(Ee){this.setCursor(0),this.right.push(Ee)}unshiftMany(Ee){this.setCursor(0),gt(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 Le=this.left.splice(Ee,Number.POSITIVE_INFINITY);gt(this.right,Le.reverse())}else{const Le=this.right.splice(this.left.length+this.right.length-Ee,Number.POSITIVE_INFINITY);gt(this.left,Le.reverse())}}}function gt(te,Ee){let Le=0;if(Ee.length<1e4)te.push(...Ee);else for(;Le<Ee.length;)te.push(...Ee.slice(Le,Le+1e4)),Le+=1e4}function rt(te){const Ee={};let Le=-1,Ue,Je,qe,ft,yt,Ht,Kt;const Lt=new It(te);for(;++Le<Lt.length;){for(;Le in Ee;)Le=Ee[Le];if(Ue=Lt.get(Le),Le&&Ue[1].type==="chunkFlow"&&Lt.get(Le-1)[1].type==="listItemPrefix"&&(Ht=Ue[1]._tokenizer.events,qe=0,qe<Ht.length&&Ht[qe][1].type==="lineEndingBlank"&&(qe+=2),qe<Ht.length&&Ht[qe][1].type==="content"))for(;++qe<Ht.length&&Ht[qe][1].type!=="content";)Ht[qe][1].type==="chunkText"&&(Ht[qe][1]._isInFirstContentOfListItem=!0,qe++);if(Ue[0]==="enter")Ue[1].contentType&&(Object.assign(Ee,ut(Lt,Le)),Le=Ee[Le],Kt=!0);else if(Ue[1]._container){for(qe=Le,Je=void 0;qe--;)if(ft=Lt.get(qe),ft[1].type==="lineEnding"||ft[1].type==="lineEndingBlank")ft[0]==="enter"&&(Je&&(Lt.get(Je)[1].type="lineEndingBlank"),ft[1].type="lineEnding",Je=qe);else if(!(ft[1].type==="linePrefix"||ft[1].type==="listItemIndent"))break;Je&&(Ue[1].end=Ii({},Lt.get(Je)[1].start),yt=Lt.slice(Je,Le),yt.unshift(Ue),Lt.splice(Je,Le-Je+1,yt))}}return Qe(te,0,Number.POSITIVE_INFINITY,Lt.slice(0)),!Kt}function ut(te,Ee){const Le=te.get(Ee)[1],Ue=te.get(Ee)[2];let Je=Ee-1;const qe=[];let ft=Le._tokenizer;ft||(ft=Ue.parser[Le.contentType](Le.start),Le._contentTypeTextTrailing&&(ft._contentTypeTextTrailing=!0));const yt=ft.events,Ht=[],Kt={};let Lt,sn,nn=-1,Dt=Le,jr=0,hi=0;const Ni=[hi];for(;Dt;){for(;te.get(++Je)[1]!==Dt;);qe.push(Je),Dt._tokenizer||(Lt=Ue.sliceStream(Dt),Dt.next||Lt.push(null),sn&&ft.defineSkip(Dt.start),Dt._isInFirstContentOfListItem&&(ft._gfmTasklistFirstContentOfListItem=!0),ft.write(Lt),Dt._isInFirstContentOfListItem&&(ft._gfmTasklistFirstContentOfListItem=void 0)),sn=Dt,Dt=Dt.next}for(Dt=Le;++nn<yt.length;)yt[nn][0]==="exit"&&yt[nn-1][0]==="enter"&&yt[nn][1].type===yt[nn-1][1].type&&yt[nn][1].start.line!==yt[nn][1].end.line&&(hi=nn+1,Ni.push(hi),Dt._tokenizer=void 0,Dt.previous=void 0,Dt=Dt.next);for(ft.events=[],Dt?(Dt._tokenizer=void 0,Dt.previous=void 0):Ni.pop(),nn=Ni.length;nn--;){const pr=yt.slice(Ni[nn],Ni[nn+1]),Gr=qe.pop();Ht.push([Gr,Gr+pr.length-1]),te.splice(Gr,2,pr)}for(Ht.reverse(),nn=-1;++nn<Ht.length;)Kt[jr+Ht[nn][0]]=jr+Ht[nn][1],jr+=Ht[nn][1]-Ht[nn][0]-1;return Kt}function At(te){for(;!rt(te););return te}const bt={}.hasOwnProperty;function Tt(te){const Ee={};let Le=-1;for(;++Le<te.length;)Mt(Ee,te[Le]);return Ee}function Mt(te,Ee){let Le;for(Le in Ee){const Je=(bt.call(te,Le)?te[Le]:void 0)||(te[Le]={}),qe=Ee[Le];let ft;if(qe)for(ft in qe){bt.call(Je,ft)||(Je[ft]=[]);const yt=qe[ft];Ot(Je[ft],Array.isArray(yt)?yt:yt?[yt]:[])}}}function Ot(te,Ee){let Le=-1;const Ue=[];for(;++Le<Ee.length;)(Ee[Le].add==="after"?te:Ue).push(Ee[Le]);Qe(te,0,0,Ue)}function $e(te){const Ee={};let Le=-1;for(;++Le<te.length;)$t(Ee,te[Le]);return Ee}function $t(te,Ee){let Le;for(Le in Ee){const Je=(bt.call(te,Le)?te[Le]:void 0)||(te[Le]={}),qe=Ee[Le];let ft;if(qe)for(ft in qe)Je[ft]=qe[ft]}}var gn=S(26735),Et=S(80722);const Mn={tokenize:qn};function qn(te){const Ee=te.attempt(this.parser.constructs.contentInitial,Ue,Je);let Le;return Ee;function Ue(yt){if(yt===null){te.consume(yt);return}return te.enter("lineEnding"),te.consume(yt),te.exit("lineEnding"),(0,gn.f)(te,Ee,"linePrefix")}function Je(yt){return te.enter("paragraph"),qe(yt)}function qe(yt){const Ht=te.enter("chunkText",{contentType:"text",previous:Le});return Le&&(Le.next=Ht),Le=Ht,ft(yt)}function ft(yt){if(yt===null){te.exit("chunkText"),te.exit("paragraph"),te.consume(yt);return}return(0,Et.Ch)(yt)?(te.consume(yt),te.exit("chunkText"),qe):(te.consume(yt),ft)}}const Zn={tokenize:yr},Bt={tokenize:vr};function yr(te){const Ee=this,Le=[];let Ue=0,Je,qe,ft;return yt;function yt(qr){if(Ue<Le.length){const Ro=Le[Ue];return Ee.containerState=Ro[1],te.attempt(Ro[0].continuation,Ht,Kt)(qr)}return Kt(qr)}function Ht(qr){if(Ue++,Ee.containerState._closeFlow){Ee.containerState._closeFlow=void 0,Je&&Gr();const Ro=Ee.events.length;let Io=Ro,Qn;for(;Io--;)if(Ee.events[Io][0]==="exit"&&Ee.events[Io][1].type==="chunkFlow"){Qn=Ee.events[Io][1].end;break}pr(Ue);let Mo=Ro;for(;Mo<Ee.events.length;)Ee.events[Mo][1].end=Ii({},Qn),Mo++;return Qe(Ee.events,Io+1,0,Ee.events.slice(Ro)),Ee.events.length=Mo,Kt(qr)}return yt(qr)}function Kt(qr){if(Ue===Le.length){if(!Je)return nn(qr);if(Je.currentConstruct&&Je.currentConstruct.concrete)return jr(qr);Ee.interrupt=!!(Je.currentConstruct&&!Je._gfmTableDynamicInterruptHack)}return Ee.containerState={},te.check(Bt,Lt,sn)(qr)}function Lt(qr){return Je&&Gr(),pr(Ue),nn(qr)}function sn(qr){return Ee.parser.lazy[Ee.now().line]=Ue!==Le.length,ft=Ee.now().offset,jr(qr)}function nn(qr){return Ee.containerState={},te.attempt(Bt,Dt,jr)(qr)}function Dt(qr){return Ue++,Le.push([Ee.currentConstruct,Ee.containerState]),nn(qr)}function jr(qr){if(qr===null){Je&&Gr(),pr(0),te.consume(qr);return}return Je=Je||Ee.parser.flow(Ee.now()),te.enter("chunkFlow",{_tokenizer:Je,contentType:"flow",previous:qe}),hi(qr)}function hi(qr){if(qr===null){Ni(te.exit("chunkFlow"),!0),pr(0),te.consume(qr);return}return(0,Et.Ch)(qr)?(te.consume(qr),Ni(te.exit("chunkFlow")),Ue=0,Ee.interrupt=void 0,yt):(te.consume(qr),hi)}function Ni(qr,Ro){const Io=Ee.sliceStream(qr);if(Ro&&Io.push(null),qr.previous=qe,qe&&(qe.next=qr),qe=qr,Je.defineSkip(qr.start),Je.write(Io),Ee.parser.lazy[qr.start.line]){let Qn=Je.events.length;for(;Qn--;)if(Je.events[Qn][1].start.offset<ft&&(!Je.events[Qn][1].end||Je.events[Qn][1].end.offset>ft))return;const Mo=Ee.events.length;let os=Mo,wo,Br;for(;os--;)if(Ee.events[os][0]==="exit"&&Ee.events[os][1].type==="chunkFlow"){if(wo){Br=Ee.events[os][1].end;break}wo=!0}for(pr(Ue),Qn=Mo;Qn<Ee.events.length;)Ee.events[Qn][1].end=Ii({},Br),Qn++;Qe(Ee.events,os+1,0,Ee.events.slice(Mo)),Ee.events.length=Qn}}function pr(qr){let Ro=Le.length;for(;Ro-- >qr;){const Io=Le[Ro];Ee.containerState=Io[1],Io[0].exit.call(Ee,te)}Le.length=qr}function Gr(){Je.write([null]),qe=void 0,Je=void 0,Ee.containerState._closeFlow=void 0}}function vr(te,Ee,Le){return(0,gn.f)(te,te.attempt(this.parser.constructs.document,Ee,Le),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Un={partial:!0,tokenize:Wn};function Wn(te,Ee,Le){return Ue;function Ue(qe){return(0,Et.xz)(qe)?(0,gn.f)(te,Je,"linePrefix")(qe):Je(qe)}function Je(qe){return qe===null||(0,Et.Ch)(qe)?Ee(qe):Le(qe)}}const wr={resolve:Fn,tokenize:wn},ye={partial:!0,tokenize:Jn};function Fn(te){return rt(te),te}function wn(te,Ee){let Le;return Ue;function Ue(yt){return te.enter("content"),Le=te.enter("chunkContent",{contentType:"content"}),Je(yt)}function Je(yt){return yt===null?qe(yt):(0,Et.Ch)(yt)?te.check(ye,ft,qe)(yt):(te.consume(yt),Je)}function qe(yt){return te.exit("chunkContent"),te.exit("content"),Ee(yt)}function ft(yt){return te.consume(yt),te.exit("chunkContent"),Le.next=te.enter("chunkContent",{contentType:"content",previous:Le}),Le=Le.next,Je}}function Jn(te,Ee,Le){const Ue=this;return Je;function Je(ft){return te.exit("chunkContent"),te.enter("lineEnding"),te.consume(ft),te.exit("lineEnding"),(0,gn.f)(te,qe,"linePrefix")}function qe(ft){if(ft===null||(0,Et.Ch)(ft))return Le(ft);const yt=Ue.events[Ue.events.length-1];return!Ue.parser.constructs.disable.null.includes("codeIndented")&&yt&&yt[1].type==="linePrefix"&&yt[2].sliceSerialize(yt[1],!0).length>=4?Ee(ft):te.interrupt(Ue.parser.constructs.flow,Le,Ee)(ft)}}const Ir={tokenize:Wr};function Wr(te){const Ee=this,Le=te.attempt(Un,Ue,te.attempt(this.parser.constructs.flowInitial,Je,(0,gn.f)(te,te.attempt(this.parser.constructs.flow,Je,te.attempt(wr,Je)),"linePrefix")));return Le;function Ue(qe){if(qe===null){te.consume(qe);return}return te.enter("lineEndingBlank"),te.consume(qe),te.exit("lineEndingBlank"),Ee.currentConstruct=void 0,Le}function Je(qe){if(qe===null){te.consume(qe);return}return te.enter("lineEnding"),te.consume(qe),te.exit("lineEnding"),Ee.currentConstruct=void 0,Le}}const cr={resolveAll:Kn()},ro=oi("string"),Kr=oi("text");function oi(te){return{resolveAll:Kn(te==="text"?Dn:void 0),tokenize:Ee};function Ee(Le){const Ue=this,Je=this.parser.constructs[te],qe=Le.attempt(Je,ft,yt);return ft;function ft(Lt){return Kt(Lt)?qe(Lt):yt(Lt)}function yt(Lt){if(Lt===null){Le.consume(Lt);return}return Le.enter("data"),Le.consume(Lt),Ht}function Ht(Lt){return Kt(Lt)?(Le.exit("data"),qe(Lt)):(Le.consume(Lt),Ht)}function Kt(Lt){if(Lt===null)return!0;const sn=Je[Lt];let nn=-1;if(sn)for(;++nn<sn.length;){const Dt=sn[nn];if(!Dt.previous||Dt.previous.call(Ue,Ue.previous))return!0}return!1}}}function Kn(te){return Ee;function Ee(Le,Ue){let Je=-1,qe;for(;++Je<=Le.length;)qe===void 0?Le[Je]&&Le[Je][1].type==="data"&&(qe=Je,Je++):(!Le[Je]||Le[Je][1].type!=="data")&&(Je!==qe+2&&(Le[qe][1].end=Le[Je-1][1].end,Le.splice(qe+2,Je-qe-2),Je=qe+2),qe=void 0);return te?te(Le,Ue):Le}}function Dn(te,Ee){let Le=0;for(;++Le<=te.length;)if((Le===te.length||te[Le][1].type==="lineEnding")&&te[Le-1][1].type==="data"){const Ue=te[Le-1][1],Je=Ee.sliceStream(Ue);let qe=Je.length,ft=-1,yt=0,Ht;for(;qe--;){const Kt=Je[qe];if(typeof Kt=="string"){for(ft=Kt.length;Kt.charCodeAt(ft-1)===32;)yt++,ft--;if(ft)break;ft=-1}else if(Kt===-2)Ht=!0,yt++;else if(Kt!==-1){qe++;break}}if(Ee._contentTypeTextTrailing&&Le===te.length&&(yt=0),yt){const Kt={type:Le===te.length||Ht||yt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:qe?ft:Ue.start._bufferIndex+ft,_index:Ue.start._index+qe,line:Ue.end.line,column:Ue.end.column-yt,offset:Ue.end.offset-yt},end:Ii({},Ue.end)};Ue.end=Ii({},Kt.start),Ue.start.offset===Ue.end.offset?Object.assign(Ue,Kt):(te.splice(Le,0,["enter",Kt,Ee],["exit",Kt,Ee]),Le+=2)}Le++}return te}const li={name:"thematicBreak",tokenize:Nr};function Nr(te,Ee,Le){let Ue=0,Je;return qe;function qe(Kt){return te.enter("thematicBreak"),ft(Kt)}function ft(Kt){return Je=Kt,yt(Kt)}function yt(Kt){return Kt===Je?(te.enter("thematicBreakSequence"),Ht(Kt)):Ue>=3&&(Kt===null||(0,Et.Ch)(Kt))?(te.exit("thematicBreak"),Ee(Kt)):Le(Kt)}function Ht(Kt){return Kt===Je?(te.consume(Kt),Ue++,Ht):(te.exit("thematicBreakSequence"),(0,Et.xz)(Kt)?(0,gn.f)(te,yt,"whitespace")(Kt):yt(Kt))}}const Yr={continuation:{tokenize:Ci},exit:nt,name:"list",tokenize:Mr},mn={partial:!0,tokenize:vt},zn={partial:!0,tokenize:vi};function Mr(te,Ee,Le){const Ue=this,Je=Ue.events[Ue.events.length-1];let qe=Je&&Je[1].type==="linePrefix"?Je[2].sliceSerialize(Je[1],!0).length:0,ft=0;return yt;function yt(Dt){const jr=Ue.containerState.type||(Dt===42||Dt===43||Dt===45?"listUnordered":"listOrdered");if(jr==="listUnordered"?!Ue.containerState.marker||Dt===Ue.containerState.marker:(0,Et.pY)(Dt)){if(Ue.containerState.type||(Ue.containerState.type=jr,te.enter(jr,{_container:!0})),jr==="listUnordered")return te.enter("listItemPrefix"),Dt===42||Dt===45?te.check(li,Le,Kt)(Dt):Kt(Dt);if(!Ue.interrupt||Dt===49)return te.enter("listItemPrefix"),te.enter("listItemValue"),Ht(Dt)}return Le(Dt)}function Ht(Dt){return(0,Et.pY)(Dt)&&++ft<10?(te.consume(Dt),Ht):(!Ue.interrupt||ft<2)&&(Ue.containerState.marker?Dt===Ue.containerState.marker:Dt===41||Dt===46)?(te.exit("listItemValue"),Kt(Dt)):Le(Dt)}function Kt(Dt){return te.enter("listItemMarker"),te.consume(Dt),te.exit("listItemMarker"),Ue.containerState.marker=Ue.containerState.marker||Dt,te.check(Un,Ue.interrupt?Le:Lt,te.attempt(mn,nn,sn))}function Lt(Dt){return Ue.containerState.initialBlankLine=!0,qe++,nn(Dt)}function sn(Dt){return(0,Et.xz)(Dt)?(te.enter("listItemPrefixWhitespace"),te.consume(Dt),te.exit("listItemPrefixWhitespace"),nn):Le(Dt)}function nn(Dt){return Ue.containerState.size=qe+Ue.sliceSerialize(te.exit("listItemPrefix"),!0).length,Ee(Dt)}}function Ci(te,Ee,Le){const Ue=this;return Ue.containerState._closeFlow=void 0,te.check(Un,Je,qe);function Je(yt){return Ue.containerState.furtherBlankLines=Ue.containerState.furtherBlankLines||Ue.containerState.initialBlankLine,(0,gn.f)(te,Ee,"listItemIndent",Ue.containerState.size+1)(yt)}function qe(yt){return Ue.containerState.furtherBlankLines||!(0,Et.xz)(yt)?(Ue.containerState.furtherBlankLines=void 0,Ue.containerState.initialBlankLine=void 0,ft(yt)):(Ue.containerState.furtherBlankLines=void 0,Ue.containerState.initialBlankLine=void 0,te.attempt(zn,Ee,ft)(yt))}function ft(yt){return Ue.containerState._closeFlow=!0,Ue.interrupt=void 0,(0,gn.f)(te,te.attempt(Yr,Ee,Le),"linePrefix",Ue.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(yt)}}function vi(te,Ee,Le){const Ue=this;return(0,gn.f)(te,Je,"listItemIndent",Ue.containerState.size+1);function Je(qe){const ft=Ue.events[Ue.events.length-1];return ft&&ft[1].type==="listItemIndent"&&ft[2].sliceSerialize(ft[1],!0).length===Ue.containerState.size?Ee(qe):Le(qe)}}function nt(te){te.exit(this.containerState.type)}function vt(te,Ee,Le){const Ue=this;return(0,gn.f)(te,Je,"listItemPrefixWhitespace",Ue.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Je(qe){const ft=Ue.events[Ue.events.length-1];return!(0,Et.xz)(qe)&&ft&&ft[1].type==="listItemPrefixWhitespace"?Ee(qe):Le(qe)}}const hn={continuation:{tokenize:dt},exit:on,name:"blockQuote",tokenize:yn};function yn(te,Ee,Le){const Ue=this;return Je;function Je(ft){if(ft===62){const yt=Ue.containerState;return yt.open||(te.enter("blockQuote",{_container:!0}),yt.open=!0),te.enter("blockQuotePrefix"),te.enter("blockQuoteMarker"),te.consume(ft),te.exit("blockQuoteMarker"),qe}return Le(ft)}function qe(ft){return(0,Et.xz)(ft)?(te.enter("blockQuotePrefixWhitespace"),te.consume(ft),te.exit("blockQuotePrefixWhitespace"),te.exit("blockQuotePrefix"),Ee):(te.exit("blockQuotePrefix"),Ee(ft))}}function dt(te,Ee,Le){const Ue=this;return Je;function Je(ft){return(0,Et.xz)(ft)?(0,gn.f)(te,qe,"linePrefix",Ue.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ft):qe(ft)}function qe(ft){return te.attempt(hn,Ee,Le)(ft)}}function on(te){te.exit("blockQuote")}function kn(te,Ee,Le,Ue,Je,qe,ft,yt,Ht){const Kt=Ht||Number.POSITIVE_INFINITY;let Lt=0;return sn;function sn(pr){return pr===60?(te.enter(Ue),te.enter(Je),te.enter(qe),te.consume(pr),te.exit(qe),nn):pr===null||pr===32||pr===41||(0,Et.Av)(pr)?Le(pr):(te.enter(Ue),te.enter(ft),te.enter(yt),te.enter("chunkString",{contentType:"string"}),hi(pr))}function nn(pr){return pr===62?(te.enter(qe),te.consume(pr),te.exit(qe),te.exit(Je),te.exit(Ue),Ee):(te.enter(yt),te.enter("chunkString",{contentType:"string"}),Dt(pr))}function Dt(pr){return pr===62?(te.exit("chunkString"),te.exit(yt),nn(pr)):pr===null||pr===60||(0,Et.Ch)(pr)?Le(pr):(te.consume(pr),pr===92?jr:Dt)}function jr(pr){return pr===60||pr===62||pr===92?(te.consume(pr),Dt):Dt(pr)}function hi(pr){return!Lt&&(pr===null||pr===41||(0,Et.z3)(pr))?(te.exit("chunkString"),te.exit(yt),te.exit(ft),te.exit(Ue),Ee(pr)):Lt<Kt&&pr===40?(te.consume(pr),Lt++,hi):pr===41?(te.consume(pr),Lt--,hi):pr===null||pr===32||pr===40||(0,Et.Av)(pr)?Le(pr):(te.consume(pr),pr===92?Ni:hi)}function Ni(pr){return pr===40||pr===41||pr===92?(te.consume(pr),hi):hi(pr)}}function _t(te,Ee,Le,Ue,Je,qe){const ft=this;let yt=0,Ht;return Kt;function Kt(Dt){return te.enter(Ue),te.enter(Je),te.consume(Dt),te.exit(Je),te.enter(qe),Lt}function Lt(Dt){return yt>999||Dt===null||Dt===91||Dt===93&&!Ht||Dt===94&&!yt&&"_hiddenFootnoteSupport"in ft.parser.constructs?Le(Dt):Dt===93?(te.exit(qe),te.enter(Je),te.consume(Dt),te.exit(Je),te.exit(Ue),Ee):(0,Et.Ch)(Dt)?(te.enter("lineEnding"),te.consume(Dt),te.exit("lineEnding"),Lt):(te.enter("chunkString",{contentType:"string"}),sn(Dt))}function sn(Dt){return Dt===null||Dt===91||Dt===93||(0,Et.Ch)(Dt)||yt++>999?(te.exit("chunkString"),Lt(Dt)):(te.consume(Dt),Ht||(Ht=!(0,Et.xz)(Dt)),Dt===92?nn:sn)}function nn(Dt){return Dt===91||Dt===92||Dt===93?(te.consume(Dt),yt++,sn):sn(Dt)}}function we(te,Ee,Le,Ue,Je,qe){let ft;return yt;function yt(nn){return nn===34||nn===39||nn===40?(te.enter(Ue),te.enter(Je),te.consume(nn),te.exit(Je),ft=nn===40?41:nn,Ht):Le(nn)}function Ht(nn){return nn===ft?(te.enter(Je),te.consume(nn),te.exit(Je),te.exit(Ue),Ee):(te.enter(qe),Kt(nn))}function Kt(nn){return nn===ft?(te.exit(qe),Ht(ft)):nn===null?Le(nn):(0,Et.Ch)(nn)?(te.enter("lineEnding"),te.consume(nn),te.exit("lineEnding"),(0,gn.f)(te,Kt,"linePrefix")):(te.enter("chunkString",{contentType:"string"}),Lt(nn))}function Lt(nn){return nn===ft||nn===null||(0,Et.Ch)(nn)?(te.exit("chunkString"),Kt(nn)):(te.consume(nn),nn===92?sn:Lt)}function sn(nn){return nn===ft||nn===92?(te.consume(nn),Lt):Lt(nn)}}function An(te,Ee){let Le;return Ue;function Ue(Je){return(0,Et.Ch)(Je)?(te.enter("lineEnding"),te.consume(Je),te.exit("lineEnding"),Le=!0,Ue):(0,Et.xz)(Je)?(0,gn.f)(te,Ue,Le?"linePrefix":"lineSuffix")(Je):Ee(Je)}}function Nn(te){return te.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ft={name:"definition",tokenize:Xn},hr={partial:!0,tokenize:or};function Xn(te,Ee,Le){const Ue=this;let Je;return qe;function qe(Dt){return te.enter("definition"),ft(Dt)}function ft(Dt){return _t.call(Ue,te,yt,Le,"definitionLabel","definitionLabelMarker","definitionLabelString")(Dt)}function yt(Dt){return Je=Nn(Ue.sliceSerialize(Ue.events[Ue.events.length-1][1]).slice(1,-1)),Dt===58?(te.enter("definitionMarker"),te.consume(Dt),te.exit("definitionMarker"),Ht):Le(Dt)}function Ht(Dt){return(0,Et.z3)(Dt)?An(te,Kt)(Dt):Kt(Dt)}function Kt(Dt){return kn(te,Lt,Le,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Dt)}function Lt(Dt){return te.attempt(hr,sn,sn)(Dt)}function sn(Dt){return(0,Et.xz)(Dt)?(0,gn.f)(te,nn,"whitespace")(Dt):nn(Dt)}function nn(Dt){return Dt===null||(0,Et.Ch)(Dt)?(te.exit("definition"),Ue.parser.defined.push(Je),Ee(Dt)):Le(Dt)}}function or(te,Ee,Le){return Ue;function Ue(yt){return(0,Et.z3)(yt)?An(te,Je)(yt):Le(yt)}function Je(yt){return we(te,qe,Le,"definitionTitle","definitionTitleMarker","definitionTitleString")(yt)}function qe(yt){return(0,Et.xz)(yt)?(0,gn.f)(te,ft,"whitespace")(yt):ft(yt)}function ft(yt){return yt===null||(0,Et.Ch)(yt)?Ee(yt):Le(yt)}}const Tn={name:"codeIndented",tokenize:fr},mt={partial:!0,tokenize:Li};function fr(te,Ee,Le){const Ue=this;return Je;function Je(Kt){return te.enter("codeIndented"),(0,gn.f)(te,qe,"linePrefix",5)(Kt)}function qe(Kt){const Lt=Ue.events[Ue.events.length-1];return Lt&&Lt[1].type==="linePrefix"&&Lt[2].sliceSerialize(Lt[1],!0).length>=4?ft(Kt):Le(Kt)}function ft(Kt){return Kt===null?Ht(Kt):(0,Et.Ch)(Kt)?te.attempt(mt,ft,Ht)(Kt):(te.enter("codeFlowValue"),yt(Kt))}function yt(Kt){return Kt===null||(0,Et.Ch)(Kt)?(te.exit("codeFlowValue"),ft(Kt)):(te.consume(Kt),yt)}function Ht(Kt){return te.exit("codeIndented"),Ee(Kt)}}function Li(te,Ee,Le){const Ue=this;return Je;function Je(ft){return Ue.parser.lazy[Ue.now().line]?Le(ft):(0,Et.Ch)(ft)?(te.enter("lineEnding"),te.consume(ft),te.exit("lineEnding"),Je):(0,gn.f)(te,qe,"linePrefix",5)(ft)}function qe(ft){const yt=Ue.events[Ue.events.length-1];return yt&&yt[1].type==="linePrefix"&&yt[2].sliceSerialize(yt[1],!0).length>=4?Ee(ft):(0,Et.Ch)(ft)?Je(ft):Le(ft)}}const Ut={name:"headingAtx",resolve:wi,tokenize:Mi};function wi(te,Ee){let Le=te.length-2,Ue=3,Je,qe;return te[Ue][1].type==="whitespace"&&(Ue+=2),Le-2>Ue&&te[Le][1].type==="whitespace"&&(Le-=2),te[Le][1].type==="atxHeadingSequence"&&(Ue===Le-1||Le-4>Ue&&te[Le-2][1].type==="whitespace")&&(Le-=Ue+1===Le?2:4),Le>Ue&&(Je={type:"atxHeadingText",start:te[Ue][1].start,end:te[Le][1].end},qe={type:"chunkText",start:te[Ue][1].start,end:te[Le][1].end,contentType:"text"},Qe(te,Ue,Le-Ue+1,[["enter",Je,Ee],["enter",qe,Ee],["exit",qe,Ee],["exit",Je,Ee]])),te}function Mi(te,Ee,Le){let Ue=0;return Je;function Je(Lt){return te.enter("atxHeading"),qe(Lt)}function qe(Lt){return te.enter("atxHeadingSequence"),ft(Lt)}function ft(Lt){return Lt===35&&Ue++<6?(te.consume(Lt),ft):Lt===null||(0,Et.z3)(Lt)?(te.exit("atxHeadingSequence"),yt(Lt)):Le(Lt)}function yt(Lt){return Lt===35?(te.enter("atxHeadingSequence"),Ht(Lt)):Lt===null||(0,Et.Ch)(Lt)?(te.exit("atxHeading"),Ee(Lt)):(0,Et.xz)(Lt)?(0,gn.f)(te,yt,"whitespace")(Lt):(te.enter("atxHeadingText"),Kt(Lt))}function Ht(Lt){return Lt===35?(te.consume(Lt),Ht):(te.exit("atxHeadingSequence"),yt(Lt))}function Kt(Lt){return Lt===null||Lt===35||(0,Et.z3)(Lt)?(te.exit("atxHeadingText"),yt(Lt)):(te.consume(Lt),Kt)}}const Or={name:"setextUnderline",resolveTo:Di,tokenize:ii};function Di(te,Ee){let Le=te.length,Ue,Je,qe;for(;Le--;)if(te[Le][0]==="enter"){if(te[Le][1].type==="content"){Ue=Le;break}te[Le][1].type==="paragraph"&&(Je=Le)}else te[Le][1].type==="content"&&te.splice(Le,1),!qe&&te[Le][1].type==="definition"&&(qe=Le);const ft={type:"setextHeading",start:Ii({},te[Ue][1].start),end:Ii({},te[te.length-1][1].end)};return te[Je][1].type="setextHeadingText",qe?(te.splice(Je,0,["enter",ft,Ee]),te.splice(qe+1,0,["exit",te[Ue][1],Ee]),te[Ue][1].end=Ii({},te[qe][1].end)):te[Ue][1]=ft,te.push(["exit",ft,Ee]),te}function ii(te,Ee,Le){const Ue=this;let Je;return qe;function qe(Kt){let Lt=Ue.events.length,sn;for(;Lt--;)if(Ue.events[Lt][1].type!=="lineEnding"&&Ue.events[Lt][1].type!=="linePrefix"&&Ue.events[Lt][1].type!=="content"){sn=Ue.events[Lt][1].type==="paragraph";break}return!Ue.parser.lazy[Ue.now().line]&&(Ue.interrupt||sn)?(te.enter("setextHeadingLine"),Je=Kt,ft(Kt)):Le(Kt)}function ft(Kt){return te.enter("setextHeadingLineSequence"),yt(Kt)}function yt(Kt){return Kt===Je?(te.consume(Kt),yt):(te.exit("setextHeadingLineSequence"),(0,Et.xz)(Kt)?(0,gn.f)(te,Ht,"lineSuffix")(Kt):Ht(Kt))}function Ht(Kt){return Kt===null||(0,Et.Ch)(Kt)?(te.exit("setextHeadingLine"),Ee(Kt)):Le(Kt)}}const ui=["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"],$r=["pre","script","style","textarea"],ti={concrete:!0,name:"htmlFlow",resolveTo:di,tokenize:Wt},si={partial:!0,tokenize:Dr},Gt={partial:!0,tokenize:Yn};function di(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 Wt(te,Ee,Le){const Ue=this;let Je,qe,ft,yt,Ht;return Kt;function Kt(tn){return Lt(tn)}function Lt(tn){return te.enter("htmlFlow"),te.enter("htmlFlowData"),te.consume(tn),sn}function sn(tn){return tn===33?(te.consume(tn),nn):tn===47?(te.consume(tn),qe=!0,hi):tn===63?(te.consume(tn),Je=3,Ue.interrupt?Ee:Jt):(0,Et.jv)(tn)?(te.consume(tn),ft=String.fromCharCode(tn),Ni):Le(tn)}function nn(tn){return tn===45?(te.consume(tn),Je=2,Dt):tn===91?(te.consume(tn),Je=5,yt=0,jr):(0,Et.jv)(tn)?(te.consume(tn),Je=4,Ue.interrupt?Ee:Jt):Le(tn)}function Dt(tn){return tn===45?(te.consume(tn),Ue.interrupt?Ee:Jt):Le(tn)}function jr(tn){const Qs="CDATA[";return tn===Qs.charCodeAt(yt++)?(te.consume(tn),yt===Qs.length?Ue.interrupt?Ee:Ho:jr):Le(tn)}function hi(tn){return(0,Et.jv)(tn)?(te.consume(tn),ft=String.fromCharCode(tn),Ni):Le(tn)}function Ni(tn){if(tn===null||tn===47||tn===62||(0,Et.z3)(tn)){const Qs=tn===47,ul=ft.toLowerCase();return!Qs&&!qe&&$r.includes(ul)?(Je=1,Ue.interrupt?Ee(tn):Ho(tn)):ui.includes(ft.toLowerCase())?(Je=6,Qs?(te.consume(tn),pr):Ue.interrupt?Ee(tn):Ho(tn)):(Je=7,Ue.interrupt&&!Ue.parser.lazy[Ue.now().line]?Le(tn):qe?Gr(tn):qr(tn))}return tn===45||(0,Et.H$)(tn)?(te.consume(tn),ft+=String.fromCharCode(tn),Ni):Le(tn)}function pr(tn){return tn===62?(te.consume(tn),Ue.interrupt?Ee:Ho):Le(tn)}function Gr(tn){return(0,Et.xz)(tn)?(te.consume(tn),Gr):Br(tn)}function qr(tn){return tn===47?(te.consume(tn),Br):tn===58||tn===95||(0,Et.jv)(tn)?(te.consume(tn),Ro):(0,Et.xz)(tn)?(te.consume(tn),qr):Br(tn)}function Ro(tn){return tn===45||tn===46||tn===58||tn===95||(0,Et.H$)(tn)?(te.consume(tn),Ro):Io(tn)}function Io(tn){return tn===61?(te.consume(tn),Qn):(0,Et.xz)(tn)?(te.consume(tn),Io):qr(tn)}function Qn(tn){return tn===null||tn===60||tn===61||tn===62||tn===96?Le(tn):tn===34||tn===39?(te.consume(tn),Ht=tn,Mo):(0,Et.xz)(tn)?(te.consume(tn),Qn):os(tn)}function Mo(tn){return tn===Ht?(te.consume(tn),Ht=null,wo):tn===null||(0,Et.Ch)(tn)?Le(tn):(te.consume(tn),Mo)}function os(tn){return tn===null||tn===34||tn===39||tn===47||tn===60||tn===61||tn===62||tn===96||(0,Et.z3)(tn)?Io(tn):(te.consume(tn),os)}function wo(tn){return tn===47||tn===62||(0,Et.xz)(tn)?qr(tn):Le(tn)}function Br(tn){return tn===62?(te.consume(tn),ua):Le(tn)}function ua(tn){return tn===null||(0,Et.Ch)(tn)?Ho(tn):(0,Et.xz)(tn)?(te.consume(tn),ua):Le(tn)}function Ho(tn){return tn===45&&Je===2?(te.consume(tn),Qo):tn===60&&Je===1?(te.consume(tn),Us):tn===62&&Je===4?(te.consume(tn),ca):tn===63&&Je===3?(te.consume(tn),Jt):tn===93&&Je===5?(te.consume(tn),Ua):(0,Et.Ch)(tn)&&(Je===6||Je===7)?(te.exit("htmlFlowData"),te.check(si,Xa,Ei)(tn)):tn===null||(0,Et.Ch)(tn)?(te.exit("htmlFlowData"),Ei(tn)):(te.consume(tn),Ho)}function Ei(tn){return te.check(Gt,bi,Xa)(tn)}function bi(tn){return te.enter("lineEnding"),te.consume(tn),te.exit("lineEnding"),ao}function ao(tn){return tn===null||(0,Et.Ch)(tn)?Ei(tn):(te.enter("htmlFlowData"),Ho(tn))}function Qo(tn){return tn===45?(te.consume(tn),Jt):Ho(tn)}function Us(tn){return tn===47?(te.consume(tn),ft="",Js):Ho(tn)}function Js(tn){if(tn===62){const Qs=ft.toLowerCase();return $r.includes(Qs)?(te.consume(tn),ca):Ho(tn)}return(0,Et.jv)(tn)&&ft.length<8?(te.consume(tn),ft+=String.fromCharCode(tn),Js):Ho(tn)}function Ua(tn){return tn===93?(te.consume(tn),Jt):Ho(tn)}function Jt(tn){return tn===62?(te.consume(tn),ca):tn===45&&Je===2?(te.consume(tn),Jt):Ho(tn)}function ca(tn){return tn===null||(0,Et.Ch)(tn)?(te.exit("htmlFlowData"),Xa(tn)):(te.consume(tn),ca)}function Xa(tn){return te.exit("htmlFlow"),Ee(tn)}}function Yn(te,Ee,Le){const Ue=this;return Je;function Je(ft){return(0,Et.Ch)(ft)?(te.enter("lineEnding"),te.consume(ft),te.exit("lineEnding"),qe):Le(ft)}function qe(ft){return Ue.parser.lazy[Ue.now().line]?Le(ft):Ee(ft)}}function Dr(te,Ee,Le){return Ue;function Ue(Je){return te.enter("lineEnding"),te.consume(Je),te.exit("lineEnding"),te.attempt(Un,Ee,Le)}}const br={partial:!0,tokenize:Tr},mi={concrete:!0,name:"codeFenced",tokenize:Hr};function Hr(te,Ee,Le){const Ue=this,Je={partial:!0,tokenize:Io};let qe=0,ft=0,yt;return Ht;function Ht(Qn){return Kt(Qn)}function Kt(Qn){const Mo=Ue.events[Ue.events.length-1];return qe=Mo&&Mo[1].type==="linePrefix"?Mo[2].sliceSerialize(Mo[1],!0).length:0,yt=Qn,te.enter("codeFenced"),te.enter("codeFencedFence"),te.enter("codeFencedFenceSequence"),Lt(Qn)}function Lt(Qn){return Qn===yt?(ft++,te.consume(Qn),Lt):ft<3?Le(Qn):(te.exit("codeFencedFenceSequence"),(0,Et.xz)(Qn)?(0,gn.f)(te,sn,"whitespace")(Qn):sn(Qn))}function sn(Qn){return Qn===null||(0,Et.Ch)(Qn)?(te.exit("codeFencedFence"),Ue.interrupt?Ee(Qn):te.check(br,hi,Ro)(Qn)):(te.enter("codeFencedFenceInfo"),te.enter("chunkString",{contentType:"string"}),nn(Qn))}function nn(Qn){return Qn===null||(0,Et.Ch)(Qn)?(te.exit("chunkString"),te.exit("codeFencedFenceInfo"),sn(Qn)):(0,Et.xz)(Qn)?(te.exit("chunkString"),te.exit("codeFencedFenceInfo"),(0,gn.f)(te,Dt,"whitespace")(Qn)):Qn===96&&Qn===yt?Le(Qn):(te.consume(Qn),nn)}function Dt(Qn){return Qn===null||(0,Et.Ch)(Qn)?sn(Qn):(te.enter("codeFencedFenceMeta"),te.enter("chunkString",{contentType:"string"}),jr(Qn))}function jr(Qn){return Qn===null||(0,Et.Ch)(Qn)?(te.exit("chunkString"),te.exit("codeFencedFenceMeta"),sn(Qn)):Qn===96&&Qn===yt?Le(Qn):(te.consume(Qn),jr)}function hi(Qn){return te.attempt(Je,Ro,Ni)(Qn)}function Ni(Qn){return te.enter("lineEnding"),te.consume(Qn),te.exit("lineEnding"),pr}function pr(Qn){return qe>0&&(0,Et.xz)(Qn)?(0,gn.f)(te,Gr,"linePrefix",qe+1)(Qn):Gr(Qn)}function Gr(Qn){return Qn===null||(0,Et.Ch)(Qn)?te.check(br,hi,Ro)(Qn):(te.enter("codeFlowValue"),qr(Qn))}function qr(Qn){return Qn===null||(0,Et.Ch)(Qn)?(te.exit("codeFlowValue"),Gr(Qn)):(te.consume(Qn),qr)}function Ro(Qn){return te.exit("codeFenced"),Ee(Qn)}function Io(Qn,Mo,os){let wo=0;return Br;function Br(ao){return Qn.enter("lineEnding"),Qn.consume(ao),Qn.exit("lineEnding"),ua}function ua(ao){return Qn.enter("codeFencedFence"),(0,Et.xz)(ao)?(0,gn.f)(Qn,Ho,"linePrefix",Ue.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ao):Ho(ao)}function Ho(ao){return ao===yt?(Qn.enter("codeFencedFenceSequence"),Ei(ao)):os(ao)}function Ei(ao){return ao===yt?(wo++,Qn.consume(ao),Ei):wo>=ft?(Qn.exit("codeFencedFenceSequence"),(0,Et.xz)(ao)?(0,gn.f)(Qn,bi,"whitespace")(ao):bi(ao)):os(ao)}function bi(ao){return ao===null||(0,Et.Ch)(ao)?(Qn.exit("codeFencedFence"),Mo(ao)):os(ao)}}}function Tr(te,Ee,Le){const Ue=this;return Je;function Je(ft){return ft===null?Le(ft):(te.enter("lineEnding"),te.consume(ft),te.exit("lineEnding"),qe)}function qe(ft){return Ue.parser.lazy[Ue.now().line]?Le(ft):Ee(ft)}}const Gi=document.createElement("i");function kt(te){const Ee="&"+te+";";Gi.innerHTML=Ee;const Le=Gi.textContent;return Le.charCodeAt(Le.length-1)===59&&te!=="semi"||Le===Ee?!1:Le}const Xt={name:"characterReference",tokenize:wt};function wt(te,Ee,Le){const Ue=this;let Je=0,qe,ft;return yt;function yt(sn){return te.enter("characterReference"),te.enter("characterReferenceMarker"),te.consume(sn),te.exit("characterReferenceMarker"),Ht}function Ht(sn){return sn===35?(te.enter("characterReferenceMarkerNumeric"),te.consume(sn),te.exit("characterReferenceMarkerNumeric"),Kt):(te.enter("characterReferenceValue"),qe=31,ft=Et.H$,Lt(sn))}function Kt(sn){return sn===88||sn===120?(te.enter("characterReferenceMarkerHexadecimal"),te.consume(sn),te.exit("characterReferenceMarkerHexadecimal"),te.enter("characterReferenceValue"),qe=6,ft=Et.AF,Lt):(te.enter("characterReferenceValue"),qe=7,ft=Et.pY,Lt(sn))}function Lt(sn){if(sn===59&&Je){const nn=te.exit("characterReferenceValue");return ft===Et.H$&&!kt(Ue.sliceSerialize(nn))?Le(sn):(te.enter("characterReferenceMarker"),te.consume(sn),te.exit("characterReferenceMarker"),te.exit("characterReference"),Ee)}return ft(sn)&&Je++<qe?(te.consume(sn),Lt):Le(sn)}}const Pe={name:"characterEscape",tokenize:an};function an(te,Ee,Le){return Ue;function Ue(qe){return te.enter("characterEscape"),te.enter("escapeMarker"),te.consume(qe),te.exit("escapeMarker"),Je}function Je(qe){return(0,Et.sR)(qe)?(te.enter("characterEscapeValue"),te.consume(qe),te.exit("characterEscapeValue"),te.exit("characterEscape"),Ee):Le(qe)}}const vn={name:"lineEnding",tokenize:Bn};function Bn(te,Ee){return Le;function Le(Ue){return te.enter("lineEnding"),te.consume(Ue),te.exit("lineEnding"),(0,gn.f)(te,Ee,"linePrefix")}}function On(te,Ee,Le){const Ue=[];let Je=-1;for(;++Je<te.length;){const qe=te[Je].resolveAll;qe&&!Ue.includes(qe)&&(Ee=qe(Ee,Le),Ue.push(qe))}return Ee}const En={name:"labelEnd",resolveAll:rn,resolveTo:pn,tokenize:jn},Vt={tokenize:dr},cn={tokenize:lr},dn={tokenize:un};function rn(te){let Ee=-1;const Le=[];for(;++Ee<te.length;){const Ue=te[Ee][1];if(Le.push(te[Ee]),Ue.type==="labelImage"||Ue.type==="labelLink"||Ue.type==="labelEnd"){const Je=Ue.type==="labelImage"?4:2;Ue.type="data",Ee+=Je}}return te.length!==Le.length&&Qe(te,0,te.length,Le),te}function pn(te,Ee){let Le=te.length,Ue=0,Je,qe,ft,yt;for(;Le--;)if(Je=te[Le][1],qe){if(Je.type==="link"||Je.type==="labelLink"&&Je._inactive)break;te[Le][0]==="enter"&&Je.type==="labelLink"&&(Je._inactive=!0)}else if(ft){if(te[Le][0]==="enter"&&(Je.type==="labelImage"||Je.type==="labelLink")&&!Je._balanced&&(qe=Le,Je.type!=="labelLink")){Ue=2;break}}else Je.type==="labelEnd"&&(ft=Le);const Ht={type:te[qe][1].type==="labelLink"?"link":"image",start:Ii({},te[qe][1].start),end:Ii({},te[te.length-1][1].end)},Kt={type:"label",start:Ii({},te[qe][1].start),end:Ii({},te[ft][1].end)},Lt={type:"labelText",start:Ii({},te[qe+Ue+2][1].end),end:Ii({},te[ft-2][1].start)};return yt=[["enter",Ht,Ee],["enter",Kt,Ee]],yt=pt(yt,te.slice(qe+1,qe+Ue+3)),yt=pt(yt,[["enter",Lt,Ee]]),yt=pt(yt,On(Ee.parser.constructs.insideSpan.null,te.slice(qe+Ue+4,ft-3),Ee)),yt=pt(yt,[["exit",Lt,Ee],te[ft-2],te[ft-1],["exit",Kt,Ee]]),yt=pt(yt,te.slice(ft+1)),yt=pt(yt,[["exit",Ht,Ee]]),Qe(te,qe,te.length,yt),te}function jn(te,Ee,Le){const Ue=this;let Je=Ue.events.length,qe,ft;for(;Je--;)if((Ue.events[Je][1].type==="labelImage"||Ue.events[Je][1].type==="labelLink")&&!Ue.events[Je][1]._balanced){qe=Ue.events[Je][1];break}return yt;function yt(nn){return qe?qe._inactive?sn(nn):(ft=Ue.parser.defined.includes(Nn(Ue.sliceSerialize({start:qe.end,end:Ue.now()}))),te.enter("labelEnd"),te.enter("labelMarker"),te.consume(nn),te.exit("labelMarker"),te.exit("labelEnd"),Ht):Le(nn)}function Ht(nn){return nn===40?te.attempt(Vt,Lt,ft?Lt:sn)(nn):nn===91?te.attempt(cn,Lt,ft?Kt:sn)(nn):ft?Lt(nn):sn(nn)}function Kt(nn){return te.attempt(dn,Lt,sn)(nn)}function Lt(nn){return Ee(nn)}function sn(nn){return qe._balanced=!0,Le(nn)}}function dr(te,Ee,Le){return Ue;function Ue(sn){return te.enter("resource"),te.enter("resourceMarker"),te.consume(sn),te.exit("resourceMarker"),Je}function Je(sn){return(0,Et.z3)(sn)?An(te,qe)(sn):qe(sn)}function qe(sn){return sn===41?Lt(sn):kn(te,ft,yt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(sn)}function ft(sn){return(0,Et.z3)(sn)?An(te,Ht)(sn):Lt(sn)}function yt(sn){return Le(sn)}function Ht(sn){return sn===34||sn===39||sn===40?we(te,Kt,Le,"resourceTitle","resourceTitleMarker","resourceTitleString")(sn):Lt(sn)}function Kt(sn){return(0,Et.z3)(sn)?An(te,Lt)(sn):Lt(sn)}function Lt(sn){return sn===41?(te.enter("resourceMarker"),te.consume(sn),te.exit("resourceMarker"),te.exit("resource"),Ee):Le(sn)}}function lr(te,Ee,Le){const Ue=this;return Je;function Je(yt){return _t.call(Ue,te,qe,ft,"reference","referenceMarker","referenceString")(yt)}function qe(yt){return Ue.parser.defined.includes(Nn(Ue.sliceSerialize(Ue.events[Ue.events.length-1][1]).slice(1,-1)))?Ee(yt):Le(yt)}function ft(yt){return Le(yt)}}function un(te,Ee,Le){return Ue;function Ue(qe){return te.enter("reference"),te.enter("referenceMarker"),te.consume(qe),te.exit("referenceMarker"),Je}function Je(qe){return qe===93?(te.enter("referenceMarker"),te.consume(qe),te.exit("referenceMarker"),te.exit("reference"),Ee):Le(qe)}}const zr={name:"labelStartImage",resolveAll:En.resolveAll,tokenize:_r};function _r(te,Ee,Le){const Ue=this;return Je;function Je(yt){return te.enter("labelImage"),te.enter("labelImageMarker"),te.consume(yt),te.exit("labelImageMarker"),qe}function qe(yt){return yt===91?(te.enter("labelMarker"),te.consume(yt),te.exit("labelMarker"),te.exit("labelImage"),ft):Le(yt)}function ft(yt){return yt===94&&"_hiddenFootnoteSupport"in Ue.parser.constructs?Le(yt):Ee(yt)}}function ci(te){if(te===null||(0,Et.z3)(te)||(0,Et.B8)(te))return 1;if((0,Et.Xh)(te))return 2}const Cr={name:"attention",resolveAll:Zi,tokenize:ji};function Zi(te,Ee){let Le=-1,Ue,Je,qe,ft,yt,Ht,Kt,Lt;for(;++Le<te.length;)if(te[Le][0]==="enter"&&te[Le][1].type==="attentionSequence"&&te[Le][1]._close){for(Ue=Le;Ue--;)if(te[Ue][0]==="exit"&&te[Ue][1].type==="attentionSequence"&&te[Ue][1]._open&&Ee.sliceSerialize(te[Ue][1]).charCodeAt(0)===Ee.sliceSerialize(te[Le][1]).charCodeAt(0)){if((te[Ue][1]._close||te[Le][1]._open)&&(te[Le][1].end.offset-te[Le][1].start.offset)%3&&!((te[Ue][1].end.offset-te[Ue][1].start.offset+te[Le][1].end.offset-te[Le][1].start.offset)%3))continue;Ht=te[Ue][1].end.offset-te[Ue][1].start.offset>1&&te[Le][1].end.offset-te[Le][1].start.offset>1?2:1;const sn=Ii({},te[Ue][1].end),nn=Ii({},te[Le][1].start);Pi(sn,-Ht),Pi(nn,Ht),ft={type:Ht>1?"strongSequence":"emphasisSequence",start:sn,end:Ii({},te[Ue][1].end)},yt={type:Ht>1?"strongSequence":"emphasisSequence",start:Ii({},te[Le][1].start),end:nn},qe={type:Ht>1?"strongText":"emphasisText",start:Ii({},te[Ue][1].end),end:Ii({},te[Le][1].start)},Je={type:Ht>1?"strong":"emphasis",start:Ii({},ft.start),end:Ii({},yt.end)},te[Ue][1].end=Ii({},ft.start),te[Le][1].start=Ii({},yt.end),Kt=[],te[Ue][1].end.offset-te[Ue][1].start.offset&&(Kt=pt(Kt,[["enter",te[Ue][1],Ee],["exit",te[Ue][1],Ee]])),Kt=pt(Kt,[["enter",Je,Ee],["enter",ft,Ee],["exit",ft,Ee],["enter",qe,Ee]]),Kt=pt(Kt,On(Ee.parser.constructs.insideSpan.null,te.slice(Ue+1,Le),Ee)),Kt=pt(Kt,[["exit",qe,Ee],["enter",yt,Ee],["exit",yt,Ee],["exit",Je,Ee]]),te[Le][1].end.offset-te[Le][1].start.offset?(Lt=2,Kt=pt(Kt,[["enter",te[Le][1],Ee],["exit",te[Le][1],Ee]])):Lt=0,Qe(te,Ue-1,Le-Ue+3,Kt),Le=Ue+Kt.length-Lt-2;break}}for(Le=-1;++Le<te.length;)te[Le][1].type==="attentionSequence"&&(te[Le][1].type="data");return te}function ji(te,Ee){const Le=this.parser.constructs.attentionMarkers.null,Ue=this.previous,Je=ci(Ue);let qe;return ft;function ft(Ht){return qe=Ht,te.enter("attentionSequence"),yt(Ht)}function yt(Ht){if(Ht===qe)return te.consume(Ht),yt;const Kt=te.exit("attentionSequence"),Lt=ci(Ht),sn=!Lt||Lt===2&&Je||Le.includes(Ht),nn=!Je||Je===2&&Lt||Le.includes(Ue);return Kt._open=!!(qe===42?sn:sn&&(Je||!nn)),Kt._close=!!(qe===42?nn:nn&&(Lt||!sn)),Ee(Ht)}}function Pi(te,Ee){te.column+=Ee,te.offset+=Ee,te._bufferIndex+=Ee}const Ti={name:"autolink",tokenize:Fi};function Fi(te,Ee,Le){let Ue=0;return Je;function Je(Dt){return te.enter("autolink"),te.enter("autolinkMarker"),te.consume(Dt),te.exit("autolinkMarker"),te.enter("autolinkProtocol"),qe}function qe(Dt){return(0,Et.jv)(Dt)?(te.consume(Dt),ft):Dt===64?Le(Dt):Kt(Dt)}function ft(Dt){return Dt===43||Dt===45||Dt===46||(0,Et.H$)(Dt)?(Ue=1,yt(Dt)):Kt(Dt)}function yt(Dt){return Dt===58?(te.consume(Dt),Ue=0,Ht):(Dt===43||Dt===45||Dt===46||(0,Et.H$)(Dt))&&Ue++<32?(te.consume(Dt),yt):(Ue=0,Kt(Dt))}function Ht(Dt){return Dt===62?(te.exit("autolinkProtocol"),te.enter("autolinkMarker"),te.consume(Dt),te.exit("autolinkMarker"),te.exit("autolink"),Ee):Dt===null||Dt===32||Dt===60||(0,Et.Av)(Dt)?Le(Dt):(te.consume(Dt),Ht)}function Kt(Dt){return Dt===64?(te.consume(Dt),Lt):(0,Et.n9)(Dt)?(te.consume(Dt),Kt):Le(Dt)}function Lt(Dt){return(0,Et.H$)(Dt)?sn(Dt):Le(Dt)}function sn(Dt){return Dt===46?(te.consume(Dt),Ue=0,Lt):Dt===62?(te.exit("autolinkProtocol").type="autolinkEmail",te.enter("autolinkMarker"),te.consume(Dt),te.exit("autolinkMarker"),te.exit("autolink"),Ee):nn(Dt)}function nn(Dt){if((Dt===45||(0,Et.H$)(Dt))&&Ue++<63){const jr=Dt===45?nn:sn;return te.consume(Dt),jr}return Le(Dt)}}const Ji={name:"htmlText",tokenize:Ct};function Ct(te,Ee,Le){const Ue=this;let Je,qe,ft;return yt;function yt(Jt){return te.enter("htmlText"),te.enter("htmlTextData"),te.consume(Jt),Ht}function Ht(Jt){return Jt===33?(te.consume(Jt),Kt):Jt===47?(te.consume(Jt),Io):Jt===63?(te.consume(Jt),qr):(0,Et.jv)(Jt)?(te.consume(Jt),os):Le(Jt)}function Kt(Jt){return Jt===45?(te.consume(Jt),Lt):Jt===91?(te.consume(Jt),qe=0,jr):(0,Et.jv)(Jt)?(te.consume(Jt),Gr):Le(Jt)}function Lt(Jt){return Jt===45?(te.consume(Jt),Dt):Le(Jt)}function sn(Jt){return Jt===null?Le(Jt):Jt===45?(te.consume(Jt),nn):(0,Et.Ch)(Jt)?(ft=sn,Us(Jt)):(te.consume(Jt),sn)}function nn(Jt){return Jt===45?(te.consume(Jt),Dt):sn(Jt)}function Dt(Jt){return Jt===62?Qo(Jt):Jt===45?nn(Jt):sn(Jt)}function jr(Jt){const ca="CDATA[";return Jt===ca.charCodeAt(qe++)?(te.consume(Jt),qe===ca.length?hi:jr):Le(Jt)}function hi(Jt){return Jt===null?Le(Jt):Jt===93?(te.consume(Jt),Ni):(0,Et.Ch)(Jt)?(ft=hi,Us(Jt)):(te.consume(Jt),hi)}function Ni(Jt){return Jt===93?(te.consume(Jt),pr):hi(Jt)}function pr(Jt){return Jt===62?Qo(Jt):Jt===93?(te.consume(Jt),pr):hi(Jt)}function Gr(Jt){return Jt===null||Jt===62?Qo(Jt):(0,Et.Ch)(Jt)?(ft=Gr,Us(Jt)):(te.consume(Jt),Gr)}function qr(Jt){return Jt===null?Le(Jt):Jt===63?(te.consume(Jt),Ro):(0,Et.Ch)(Jt)?(ft=qr,Us(Jt)):(te.consume(Jt),qr)}function Ro(Jt){return Jt===62?Qo(Jt):qr(Jt)}function Io(Jt){return(0,Et.jv)(Jt)?(te.consume(Jt),Qn):Le(Jt)}function Qn(Jt){return Jt===45||(0,Et.H$)(Jt)?(te.consume(Jt),Qn):Mo(Jt)}function Mo(Jt){return(0,Et.Ch)(Jt)?(ft=Mo,Us(Jt)):(0,Et.xz)(Jt)?(te.consume(Jt),Mo):Qo(Jt)}function os(Jt){return Jt===45||(0,Et.H$)(Jt)?(te.consume(Jt),os):Jt===47||Jt===62||(0,Et.z3)(Jt)?wo(Jt):Le(Jt)}function wo(Jt){return Jt===47?(te.consume(Jt),Qo):Jt===58||Jt===95||(0,Et.jv)(Jt)?(te.consume(Jt),Br):(0,Et.Ch)(Jt)?(ft=wo,Us(Jt)):(0,Et.xz)(Jt)?(te.consume(Jt),wo):Qo(Jt)}function Br(Jt){return Jt===45||Jt===46||Jt===58||Jt===95||(0,Et.H$)(Jt)?(te.consume(Jt),Br):ua(Jt)}function ua(Jt){return Jt===61?(te.consume(Jt),Ho):(0,Et.Ch)(Jt)?(ft=ua,Us(Jt)):(0,Et.xz)(Jt)?(te.consume(Jt),ua):wo(Jt)}function Ho(Jt){return Jt===null||Jt===60||Jt===61||Jt===62||Jt===96?Le(Jt):Jt===34||Jt===39?(te.consume(Jt),Je=Jt,Ei):(0,Et.Ch)(Jt)?(ft=Ho,Us(Jt)):(0,Et.xz)(Jt)?(te.consume(Jt),Ho):(te.consume(Jt),bi)}function Ei(Jt){return Jt===Je?(te.consume(Jt),Je=void 0,ao):Jt===null?Le(Jt):(0,Et.Ch)(Jt)?(ft=Ei,Us(Jt)):(te.consume(Jt),Ei)}function bi(Jt){return Jt===null||Jt===34||Jt===39||Jt===60||Jt===61||Jt===96?Le(Jt):Jt===47||Jt===62||(0,Et.z3)(Jt)?wo(Jt):(te.consume(Jt),bi)}function ao(Jt){return Jt===47||Jt===62||(0,Et.z3)(Jt)?wo(Jt):Le(Jt)}function Qo(Jt){return Jt===62?(te.consume(Jt),te.exit("htmlTextData"),te.exit("htmlText"),Ee):Le(Jt)}function Us(Jt){return te.exit("htmlTextData"),te.enter("lineEnding"),te.consume(Jt),te.exit("lineEnding"),Js}function Js(Jt){return(0,Et.xz)(Jt)?(0,gn.f)(te,Ua,"linePrefix",Ue.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Jt):Ua(Jt)}function Ua(Jt){return te.enter("htmlTextData"),ft(Jt)}}const ai={name:"labelStartLink",resolveAll:En.resolveAll,tokenize:Qr};function Qr(te,Ee,Le){const Ue=this;return Je;function Je(ft){return te.enter("labelLink"),te.enter("labelMarker"),te.consume(ft),te.exit("labelMarker"),te.exit("labelLink"),qe}function qe(ft){return ft===94&&"_hiddenFootnoteSupport"in Ue.parser.constructs?Le(ft):Ee(ft)}}const Sr={name:"hardBreakEscape",tokenize:Pr};function Pr(te,Ee,Le){return Ue;function Ue(qe){return te.enter("hardBreakEscape"),te.consume(qe),Je}function Je(qe){return(0,Et.Ch)(qe)?(te.exit("hardBreakEscape"),Ee(qe)):Le(qe)}}const ri={name:"codeText",previous:Nt,resolve:_i,tokenize:Rr};function _i(te){let Ee=te.length-4,Le=3,Ue,Je;if((te[Le][1].type==="lineEnding"||te[Le][1].type==="space")&&(te[Ee][1].type==="lineEnding"||te[Ee][1].type==="space")){for(Ue=Le;++Ue<Ee;)if(te[Ue][1].type==="codeTextData"){te[Le][1].type="codeTextPadding",te[Ee][1].type="codeTextPadding",Le+=2,Ee-=2;break}}for(Ue=Le-1,Ee++;++Ue<=Ee;)Je===void 0?Ue!==Ee&&te[Ue][1].type!=="lineEnding"&&(Je=Ue):(Ue===Ee||te[Ue][1].type==="lineEnding")&&(te[Je][1].type="codeTextData",Ue!==Je+2&&(te[Je][1].end=te[Ue-1][1].end,te.splice(Je+2,Ue-Je-2),Ee-=Ue-Je-2,Ue=Je+2),Je=void 0);return te}function Nt(te){return te!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Rr(te,Ee,Le){const Ue=this;let Je=0,qe,ft;return yt;function yt(nn){return te.enter("codeText"),te.enter("codeTextSequence"),Ht(nn)}function Ht(nn){return nn===96?(te.consume(nn),Je++,Ht):(te.exit("codeTextSequence"),Kt(nn))}function Kt(nn){return nn===null?Le(nn):nn===32?(te.enter("space"),te.consume(nn),te.exit("space"),Kt):nn===96?(ft=te.enter("codeTextSequence"),qe=0,sn(nn)):(0,Et.Ch)(nn)?(te.enter("lineEnding"),te.consume(nn),te.exit("lineEnding"),Kt):(te.enter("codeTextData"),Lt(nn))}function Lt(nn){return nn===null||nn===32||nn===96||(0,Et.Ch)(nn)?(te.exit("codeTextData"),Kt(nn)):(te.consume(nn),Lt)}function sn(nn){return nn===96?(te.consume(nn),qe++,sn):qe===Je?(te.exit("codeTextSequence"),te.exit("codeText"),Ee(nn)):(ft.type="codeTextData",Lt(nn))}}const Ki={42:Yr,43:Yr,45:Yr,48:Yr,49:Yr,50:Yr,51:Yr,52:Yr,53:Yr,54:Yr,55:Yr,56:Yr,57:Yr,62:hn},_s={91:Ft},fs={[-2]:Tn,[-1]:Tn,32:Tn},Da={35:Ut,42:li,45:[Or,li],60:ti,61:Or,95:li,96:mi,126:mi},Rs={38:Xt,92:Pe},sr={[-5]:vn,[-4]:vn,[-3]:vn,33:zr,38:Xt,42:Cr,60:[Ti,Ji],91:ai,92:[Sr,Pe],93:En,95:Cr,96:ri},mo={null:[Cr,cr]},vo={null:[42,95]},Ko={null:[]};function yo(te,Ee,Le){let Ue={_bufferIndex:-1,_index:0,line:Le&&Le.line||1,column:Le&&Le.column||1,offset:Le&&Le.offset||0};const Je={},qe=[];let ft=[],yt=[],Ht=!0;const Kt={attempt:wo(Mo),check:wo(os),consume:Ro,enter:Io,exit:Qn,interrupt:wo(os,{interrupt:!0})},Lt={code:null,containerState:{},defineSkip:pr,events:[],now:Ni,parser:te,previous:null,sliceSerialize:jr,sliceStream:hi,write:Dt};let sn=Ee.tokenize.call(Lt,Kt),nn;return Ee.resolveAll&&qe.push(Ee),Lt;function Dt(Ei){return ft=pt(ft,Ei),Gr(),ft[ft.length-1]!==null?[]:(Br(Ee,0),Lt.events=On(qe,Lt.events,Lt),Lt.events)}function jr(Ei,bi){return Cn(hi(Ei),bi)}function hi(Ei){return Ao(ft,Ei)}function Ni(){const{_bufferIndex:Ei,_index:bi,line:ao,column:Qo,offset:Us}=Ue;return{_bufferIndex:Ei,_index:bi,line:ao,column:Qo,offset:Us}}function pr(Ei){Je[Ei.line]=Ei.column,Ho()}function Gr(){let Ei;for(;Ue._index<ft.length;){const bi=ft[Ue._index];if(typeof bi=="string")for(Ei=Ue._index,Ue._bufferIndex<0&&(Ue._bufferIndex=0);Ue._index===Ei&&Ue._bufferIndex<bi.length;)qr(bi.charCodeAt(Ue._bufferIndex));else qr(bi)}}function qr(Ei){Ht=void 0,nn=Ei,sn=sn(Ei)}function Ro(Ei){(0,Et.Ch)(Ei)?(Ue.line++,Ue.column=1,Ue.offset+=Ei===-3?2:1,Ho()):Ei!==-1&&(Ue.column++,Ue.offset++),Ue._bufferIndex<0?Ue._index++:(Ue._bufferIndex++,Ue._bufferIndex===ft[Ue._index].length&&(Ue._bufferIndex=-1,Ue._index++)),Lt.previous=Ei,Ht=!0}function Io(Ei,bi){const ao=bi||{};return ao.type=Ei,ao.start=Ni(),Lt.events.push(["enter",ao,Lt]),yt.push(ao),ao}function Qn(Ei){const bi=yt.pop();return bi.end=Ni(),Lt.events.push(["exit",bi,Lt]),bi}function Mo(Ei,bi){Br(Ei,bi.from)}function os(Ei,bi){bi.restore()}function wo(Ei,bi){return ao;function ao(Qo,Us,Js){let Ua,Jt,ca,Xa;return Array.isArray(Qo)?Qs(Qo):"tokenize"in Qo?Qs([Qo]):tn(Qo);function tn(qo){return Za;function Za(Vs){const Fl=Vs!==null&&qo[Vs],tu=Vs!==null&&qo.null,Ec=[...Array.isArray(Fl)?Fl:Fl?[Fl]:[],...Array.isArray(tu)?tu:tu?[tu]:[]];return Qs(Ec)(Vs)}}function Qs(qo){return Ua=qo,Jt=0,qo.length===0?Js:ul(qo[Jt])}function ul(qo){return Za;function Za(Vs){return Xa=ua(),ca=qo,qo.partial||(Lt.currentConstruct=qo),qo.name&&Lt.parser.constructs.disable.null.includes(qo.name)?Ds(Vs):qo.tokenize.call(bi?Object.assign(Object.create(Lt),bi):Lt,Kt,wl,Ds)(Vs)}}function wl(qo){return Ht=!0,Ei(ca,Xa),Us}function Ds(qo){return Ht=!0,Xa.restore(),++Jt<Ua.length?ul(Ua[Jt]):Js}}}function Br(Ei,bi){Ei.resolveAll&&!qe.includes(Ei)&&qe.push(Ei),Ei.resolve&&Qe(Lt.events,bi,Lt.events.length-bi,Ei.resolve(Lt.events.slice(bi),Lt)),Ei.resolveTo&&(Lt.events=Ei.resolveTo(Lt.events,Lt))}function ua(){const Ei=Ni(),bi=Lt.previous,ao=Lt.currentConstruct,Qo=Lt.events.length,Us=Array.from(yt);return{from:Qo,restore:Js};function Js(){Ue=Ei,Lt.previous=bi,Lt.currentConstruct=ao,Lt.events.length=Qo,yt=Us,Ho()}}function Ho(){Ue.line in Je&&Ue.column<2&&(Ue.column=Je[Ue.line],Ue.offset+=Je[Ue.line]-1)}}function Ao(te,Ee){const Le=Ee.start._index,Ue=Ee.start._bufferIndex,Je=Ee.end._index,qe=Ee.end._bufferIndex;let ft;if(Le===Je)ft=[te[Le].slice(Ue,qe)];else{if(ft=te.slice(Le,Je),Ue>-1){const yt=ft[0];typeof yt=="string"?ft[0]=yt.slice(Ue):ft.shift()}qe>0&&ft.push(te[Je].slice(0,qe))}return ft}function Cn(te,Ee){let Le=-1;const Ue=[];let Je;for(;++Le<te.length;){const qe=te[Le];let ft;if(typeof qe=="string")ft=qe;else switch(qe){case-5:{ft="\r";break}case-4:{ft=`
`;break}case-3:{ft=`\r
`;break}case-2:{ft=Ee?" ":" ";break}case-1:{if(!Ee&&Je)continue;ft=" ";break}default:ft=String.fromCharCode(qe)}Je=qe===-2,Ue.push(ft)}return Ue.join("")}function nr(te){const Ue={constructs:Tt([B,...(te||{}).extensions||[]]),content:Je(Mn),defined:[],document:Je(Zn),flow:Je(Ir),lazy:{},string:Je(ro),text:Je(Kr)};return Ue;function Je(qe){return ft;function ft(yt){return yo(Ue,qe,yt)}}}const xr=/[\0\t\n\r]/g;function Xr(){let te=1,Ee="",Le=!0,Ue;return Je;function Je(qe,ft,yt){const Ht=[];let Kt,Lt,sn,nn,Dt;for(qe=Ee+(typeof qe=="string"?qe.toString():new TextDecoder(ft||void 0).decode(qe)),sn=0,Ee="",Le&&(qe.charCodeAt(0)===65279&&sn++,Le=void 0);sn<qe.length;){if(xr.lastIndex=sn,Kt=xr.exec(qe),nn=Kt&&Kt.index!==void 0?Kt.index:qe.length,Dt=qe.charCodeAt(nn),!Kt){Ee=qe.slice(sn);break}if(Dt===10&&sn===nn&&Ue)Ht.push(-3),Ue=void 0;else switch(Ue&&(Ht.push(-5),Ue=void 0),sn<nn&&(Ht.push(qe.slice(sn,nn)),te+=nn-sn),Dt){case 0:{Ht.push(65533),te++;break}case 9:{for(Lt=Math.ceil(te/4)*4,Ht.push(-2);te++<Lt;)Ht.push(-1);break}case 10:{Ht.push(-4),te=1;break}default:Ue=!0,te=1}sn=nn+1}return yt&&(Ue&&Ht.push(-5),Ee&&Ht.push(Ee),Ht.push(null)),Ht}}function Jr(te,Ee){const Le=Number.parseInt(te,Ee);return Le<9||Le===11||Le>13&&Le<32||Le>126&&Le<160||Le>55295&&Le<57344||Le>64975&&Le<65008||(Le&65535)===65535||(Le&65535)===65534||Le>1114111?"\uFFFD":String.fromCodePoint(Le)}const Yi=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ir(te){return te.replace(Yi,es)}function es(te,Ee,Le){if(Ee)return Ee;if(Le.charCodeAt(0)===35){const Je=Le.charCodeAt(1),qe=Je===120||Je===88;return Jr(Le.slice(qe?2:1),qe?16:10)}return kt(Le)||te}const Co={}.hasOwnProperty;function xo(te,Ee,Le){return typeof Ee!="string"&&(Le=Ee,Ee=void 0),ni(Le)(At(nr(Le).document().write(Xr()(te,Ee,!0))))}function ni(te){const Ee={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:qe(Ie),autolinkProtocol:wo,autolinkEmail:wo,atxHeading:qe(vu),blockQuote:qe(Vs),characterEscape:wo,characterReference:wo,codeFenced:qe(Fl),codeFencedFenceInfo:ft,codeFencedFenceMeta:ft,codeIndented:qe(Fl,ft),codeText:qe(tu,ft),codeTextData:wo,data:wo,codeFlowValue:wo,definition:qe(Ec),definitionDestinationString:ft,definitionLabelString:ft,definitionTitleString:ft,emphasis:qe(cl),hardBreakEscape:qe(Xc),hardBreakTrailing:qe(Xc),htmlFlow:qe(A,ft),htmlFlowData:wo,htmlText:qe(A,ft),htmlTextData:wo,image:qe(z),label:ft,link:qe(Ie),listItem:qe(zt),listItemValue:nn,listOrdered:qe(ct,sn),listUnordered:qe(ct),paragraph:qe(xn),reference:tn,referenceString:ft,resourceDestinationString:ft,resourceTitleString:ft,setextHeading:qe(vu),strong:qe(Hn),thematicBreak:qe(Si)},exit:{atxHeading:Ht(),atxHeadingSequence:Io,autolink:Ht(),autolinkEmail:Za,autolinkProtocol:qo,blockQuote:Ht(),characterEscapeValue:Br,characterReferenceMarkerHexadecimal:ul,characterReferenceMarkerNumeric:ul,characterReferenceValue:wl,characterReference:Ds,codeFenced:Ht(Ni),codeFencedFence:hi,codeFencedFenceInfo:Dt,codeFencedFenceMeta:jr,codeFlowValue:Br,codeIndented:Ht(pr),codeText:Ht(ao),codeTextData:Br,data:Br,definition:Ht(),definitionDestinationString:Ro,definitionLabelString:Gr,definitionTitleString:qr,emphasis:Ht(),hardBreakEscape:Ht(Ho),hardBreakTrailing:Ht(Ho),htmlFlow:Ht(Ei),htmlFlowData:Br,htmlText:Ht(bi),htmlTextData:Br,image:Ht(Us),label:Ua,labelText:Js,lineEnding:ua,link:Ht(Qo),listItem:Ht(),listOrdered:Ht(),listUnordered:Ht(),paragraph:Ht(),referenceString:Qs,resourceDestinationString:Jt,resourceTitleString:ca,resource:Xa,setextHeading:Ht(os),setextHeadingLineSequence:Mo,setextHeadingText:Qn,strong:Ht(),thematicBreak:Ht()}};xs(Ee,(te||{}).mdastExtensions||[]);const Le={};return Ue;function Ue(bn){let ar={type:"root",children:[]};const Ri={stack:[ar],tokenStack:[],config:Ee,enter:yt,exit:Kt,buffer:ft,resume:Lt,data:Le},co=[];let Uo=-1;for(;++Uo<bn.length;)if(bn[Uo][1].type==="listOrdered"||bn[Uo][1].type==="listUnordered")if(bn[Uo][0]==="enter")co.push(Uo);else{const El=co.pop();Uo=Je(bn,El,Uo)}for(Uo=-1;++Uo<bn.length;){const El=Ee[bn[Uo][0]];Co.call(El,bn[Uo][1].type)&&El[bn[Uo][1].type].call(Object.assign({sliceSerialize:bn[Uo][2].sliceSerialize},Ri),bn[Uo][1])}if(Ri.tokenStack.length>0){const El=Ri.tokenStack[Ri.tokenStack.length-1];(El[1]||ds).call(Ri,void 0,El[0])}for(ar.position={start:Qi(bn.length>0?bn[0][1].start:{line:1,column:1,offset:0}),end:Qi(bn.length>0?bn[bn.length-2][1].end:{line:1,column:1,offset:0})},Uo=-1;++Uo<Ee.transforms.length;)ar=Ee.transforms[Uo](ar)||ar;return ar}function Je(bn,ar,Ri){let co=ar-1,Uo=-1,El=!1,Bl,yu,nu,Aa;for(;++co<=Ri;){const hl=bn[co];switch(hl[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{hl[0]==="enter"?Uo++:Uo--,Aa=void 0;break}case"lineEndingBlank":{hl[0]==="enter"&&(Bl&&!Aa&&!Uo&&!nu&&(nu=co),Aa=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Aa=void 0}if(!Uo&&hl[0]==="enter"&&hl[1].type==="listItemPrefix"||Uo===-1&&hl[0]==="exit"&&(hl[1].type==="listUnordered"||hl[1].type==="listOrdered")){if(Bl){let Hu=co;for(yu=void 0;Hu--;){const Ja=bn[Hu];if(Ja[1].type==="lineEnding"||Ja[1].type==="lineEndingBlank"){if(Ja[0]==="exit")continue;yu&&(bn[yu][1].type="lineEndingBlank",El=!0),Ja[1].type="lineEnding",yu=Hu}else if(!(Ja[1].type==="linePrefix"||Ja[1].type==="blockQuotePrefix"||Ja[1].type==="blockQuotePrefixWhitespace"||Ja[1].type==="blockQuoteMarker"||Ja[1].type==="listItemIndent"))break}nu&&(!yu||nu<yu)&&(Bl._spread=!0),Bl.end=Object.assign({},yu?bn[yu][1].start:hl[1].end),bn.splice(yu||co,0,["exit",Bl,hl[2]]),co++,Ri++}if(hl[1].type==="listItemPrefix"){const Hu={type:"listItem",_spread:!1,start:Object.assign({},hl[1].start),end:void 0};Bl=Hu,bn.splice(co,0,["enter",Hu,hl[2]]),co++,Ri++,nu=void 0,Aa=!0}}}return bn[ar][1]._spread=El,Ri}function qe(bn,ar){return Ri;function Ri(co){yt.call(this,bn(co),co),ar&&ar.call(this,co)}}function ft(){this.stack.push({type:"fragment",children:[]})}function yt(bn,ar,Ri){this.stack[this.stack.length-1].children.push(bn),this.stack.push(bn),this.tokenStack.push([ar,Ri||void 0]),bn.position={start:Qi(ar.start),end:void 0}}function Ht(bn){return ar;function ar(Ri){bn&&bn.call(this,Ri),Kt.call(this,Ri)}}function Kt(bn,ar){const Ri=this.stack.pop(),co=this.tokenStack.pop();if(co)co[0].type!==bn.type&&(ar?ar.call(this,bn,co[0]):(co[1]||ds).call(this,bn,co[0]));else throw new Error("Cannot close `"+bn.type+"` ("+H({start:bn.start,end:bn.end})+"): it\u2019s not open");Ri.position.end=Qi(bn.end)}function Lt(){return Ae(this.stack.pop())}function sn(){this.data.expectingFirstListItemValue=!0}function nn(bn){if(this.data.expectingFirstListItemValue){const ar=this.stack[this.stack.length-2];ar.start=Number.parseInt(this.sliceSerialize(bn),10),this.data.expectingFirstListItemValue=void 0}}function Dt(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.lang=bn}function jr(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.meta=bn}function hi(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Ni(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.value=bn.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function pr(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.value=bn.replace(/(\r?\n|\r)$/g,"")}function Gr(bn){const ar=this.resume(),Ri=this.stack[this.stack.length-1];Ri.label=ar,Ri.identifier=Nn(this.sliceSerialize(bn)).toLowerCase()}function qr(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.title=bn}function Ro(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.url=bn}function Io(bn){const ar=this.stack[this.stack.length-1];if(!ar.depth){const Ri=this.sliceSerialize(bn).length;ar.depth=Ri}}function Qn(){this.data.setextHeadingSlurpLineEnding=!0}function Mo(bn){const ar=this.stack[this.stack.length-1];ar.depth=this.sliceSerialize(bn).codePointAt(0)===61?1:2}function os(){this.data.setextHeadingSlurpLineEnding=void 0}function wo(bn){const Ri=this.stack[this.stack.length-1].children;let co=Ri[Ri.length-1];(!co||co.type!=="text")&&(co=Vr(),co.position={start:Qi(bn.start),end:void 0},Ri.push(co)),this.stack.push(co)}function Br(bn){const ar=this.stack.pop();ar.value+=this.sliceSerialize(bn),ar.position.end=Qi(bn.end)}function ua(bn){const ar=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ri=ar.children[ar.children.length-1];Ri.position.end=Qi(bn.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Ee.canContainEols.includes(ar.type)&&(wo.call(this,bn),Br.call(this,bn))}function Ho(){this.data.atHardBreak=!0}function Ei(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.value=bn}function bi(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.value=bn}function ao(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.value=bn}function Qo(){const bn=this.stack[this.stack.length-1];if(this.data.inReference){const ar=this.data.referenceType||"shortcut";bn.type+="Reference",bn.referenceType=ar,delete bn.url,delete bn.title}else delete bn.identifier,delete bn.label;this.data.referenceType=void 0}function Us(){const bn=this.stack[this.stack.length-1];if(this.data.inReference){const ar=this.data.referenceType||"shortcut";bn.type+="Reference",bn.referenceType=ar,delete bn.url,delete bn.title}else delete bn.identifier,delete bn.label;this.data.referenceType=void 0}function Js(bn){const ar=this.sliceSerialize(bn),Ri=this.stack[this.stack.length-2];Ri.label=ir(ar),Ri.identifier=Nn(ar).toLowerCase()}function Ua(){const bn=this.stack[this.stack.length-1],ar=this.resume(),Ri=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ri.type==="link"){const co=bn.children;Ri.children=co}else Ri.alt=ar}function Jt(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.url=bn}function ca(){const bn=this.resume(),ar=this.stack[this.stack.length-1];ar.title=bn}function Xa(){this.data.inReference=void 0}function tn(){this.data.referenceType="collapsed"}function Qs(bn){const ar=this.resume(),Ri=this.stack[this.stack.length-1];Ri.label=ar,Ri.identifier=Nn(this.sliceSerialize(bn)).toLowerCase(),this.data.referenceType="full"}function ul(bn){this.data.characterReferenceType=bn.type}function wl(bn){const ar=this.sliceSerialize(bn),Ri=this.data.characterReferenceType;let co;Ri?(co=Jr(ar,Ri==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):co=kt(ar);const Uo=this.stack[this.stack.length-1];Uo.value+=co}function Ds(bn){const ar=this.stack.pop();ar.position.end=Qi(bn.end)}function qo(bn){Br.call(this,bn);const ar=this.stack[this.stack.length-1];ar.url=this.sliceSerialize(bn)}function Za(bn){Br.call(this,bn);const ar=this.stack[this.stack.length-1];ar.url="mailto:"+this.sliceSerialize(bn)}function Vs(){return{type:"blockquote",children:[]}}function Fl(){return{type:"code",lang:null,meta:null,value:""}}function tu(){return{type:"inlineCode",value:""}}function Ec(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function cl(){return{type:"emphasis",children:[]}}function vu(){return{type:"heading",depth:0,children:[]}}function Xc(){return{type:"break"}}function A(){return{type:"html",value:""}}function z(){return{type:"image",title:null,url:"",alt:null}}function Ie(){return{type:"link",title:null,url:"",children:[]}}function ct(bn){return{type:"list",ordered:bn.type==="listOrdered",start:null,spread:bn._spread,children:[]}}function zt(bn){return{type:"listItem",spread:bn._spread,checked:null,children:[]}}function xn(){return{type:"paragraph",children:[]}}function Hn(){return{type:"strong",children:[]}}function Vr(){return{type:"text",value:""}}function Si(){return{type:"thematicBreak"}}}function Qi(te){return{line:te.line,column:te.column,offset:te.offset}}function xs(te,Ee){let Le=-1;for(;++Le<Ee.length;){const Ue=Ee[Le];Array.isArray(Ue)?xs(te,Ue):io(te,Ue)}}function io(te,Ee){let Le;for(Le in Ee)if(Co.call(Ee,Le))switch(Le){case"canContainEols":{const Ue=Ee[Le];Ue&&te[Le].push(...Ue);break}case"transforms":{const Ue=Ee[Le];Ue&&te[Le].push(...Ue);break}case"enter":case"exit":{const Ue=Ee[Le];Ue&&Object.assign(te[Le],Ue);break}}}function ds(te,Ee){throw te?new Error("Cannot close `"+te.type+"` ("+H({start:te.start,end:te.end})+"): a different token (`"+Ee.type+"`, "+H({start:Ee.start,end:Ee.end})+") is open"):new Error("Cannot close document, a token (`"+Ee.type+"`, "+H({start:Ee.start,end:Ee.end})+") is still open")}function Hs(te){const Ee=this;Ee.parser=Le;function Le(Ue){return xo(Ue,Th(Ii(Ii({},Ee.data("settings")),te),{extensions:Ee.data("micromarkExtensions")||[],mdastExtensions:Ee.data("fromMarkdownExtensions")||[]}))}}var Is=S(90302);function Lo(te,Ee){const Le=encode(Pa(te||""));if(!Ee)return Le;const Ue=Le.indexOf(":"),Je=Le.indexOf("?"),qe=Le.indexOf("#"),ft=Le.indexOf("/");return Ue<0||ft>-1&&Ue>ft||Je>-1&&Ue>Je||qe>-1&&Ue>qe||Ee.test(Le.slice(0,Ue))?Le:""}function Pa(te){const Ee=[];let Le=-1,Ue=0,Je=0;for(;++Le<te.length;){const qe=te.charCodeAt(Le);let ft="";if(qe===37&&(0,Et.H$)(te.charCodeAt(Le+1))&&(0,Et.H$)(te.charCodeAt(Le+2)))Je=2;else if(qe<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(qe))||(ft=String.fromCharCode(qe));else if(qe>55295&&qe<57344){const yt=te.charCodeAt(Le+1);qe<56320&&yt>56319&&yt<57344?(ft=String.fromCharCode(qe,yt),Je=1):ft="\uFFFD"}else ft=String.fromCharCode(qe);ft&&(Ee.push(te.slice(Ue,Le),encodeURIComponent(ft)),Ue=Le+Je+1,ft=""),Je&&(Le+=Je,Je=0)}return Ee.join("")+te.slice(Ue)}function $l(te,Ee){const Le=[{type:"text",value:"\u21A9"}];return Ee>1&&Le.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Ee)}]}),Le}function zs(te,Ee){return"Back to reference "+(te+1)+(Ee>1?"-"+Ee:"")}function oa(te){const Ee=typeof te.options.clobberPrefix=="string"?te.options.clobberPrefix:"user-content-",Le=te.options.footnoteBackContent||$l,Ue=te.options.footnoteBackLabel||zs,Je=te.options.footnoteLabel||"Footnotes",qe=te.options.footnoteLabelTagName||"h2",ft=te.options.footnoteLabelProperties||{className:["sr-only"]},yt=[];let Ht=-1;for(;++Ht<te.footnoteOrder.length;){const Kt=te.footnoteById.get(te.footnoteOrder[Ht]);if(!Kt)continue;const Lt=te.all(Kt),sn=String(Kt.identifier).toUpperCase(),nn=Pa(sn.toLowerCase());let Dt=0;const jr=[],hi=te.footnoteCounts.get(sn);for(;hi!==void 0&&++Dt<=hi;){jr.length>0&&jr.push({type:"text",value:" "});let Gr=typeof Le=="string"?Le:Le(Ht,Dt);typeof Gr=="string"&&(Gr={type:"text",value:Gr}),jr.push({type:"element",tagName:"a",properties:{href:"#"+Ee+"fnref-"+nn+(Dt>1?"-"+Dt:""),dataFootnoteBackref:"",ariaLabel:typeof Ue=="string"?Ue:Ue(Ht,Dt),className:["data-footnote-backref"]},children:Array.isArray(Gr)?Gr:[Gr]})}const Ni=Lt[Lt.length-1];if(Ni&&Ni.type==="element"&&Ni.tagName==="p"){const Gr=Ni.children[Ni.children.length-1];Gr&&Gr.type==="text"?Gr.value+=" ":Ni.children.push({type:"text",value:" "}),Ni.children.push(...jr)}else Lt.push(...jr);const pr={type:"element",tagName:"li",properties:{id:Ee+"fn-"+nn},children:te.wrap(Lt,!0)};te.patch(Kt,pr),yt.push(pr)}if(yt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:qe,properties:Th(Ii({},(0,Is.ZP)(ft)),{id:"footnote-label"}),children:[{type:"text",value:Je}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:te.wrap(yt,!0)},{type:"text",value:`
`}]}}var Gs=S(10528);function ol(te,Ee){const Le={type:"element",tagName:"blockquote",properties:{},children:te.wrap(te.all(Ee),!0)};return te.patch(Ee,Le),te.applyData(Ee,Le)}function du(te,Ee){const Le={type:"element",tagName:"br",properties:{},children:[]};return te.patch(Ee,Le),[te.applyData(Ee,Le),{type:"text",value:`
`}]}function pu(te,Ee){const Le=Ee.value?Ee.value+`
`:"",Ue={};Ee.lang&&(Ue.className=["language-"+Ee.lang]);let Je={type:"element",tagName:"code",properties:Ue,children:[{type:"text",value:Le}]};return Ee.meta&&(Je.data={meta:Ee.meta}),te.patch(Ee,Je),Je=te.applyData(Ee,Je),Je={type:"element",tagName:"pre",properties:{},children:[Je]},te.patch(Ee,Je),Je}function Bo(te,Ee){const Le={type:"element",tagName:"del",properties:{},children:te.all(Ee)};return te.patch(Ee,Le),te.applyData(Ee,Le)}function Xl(te,Ee){const Le={type:"element",tagName:"em",properties:{},children:te.all(Ee)};return te.patch(Ee,Le),te.applyData(Ee,Le)}function gu(te,Ee){const Le=typeof te.options.clobberPrefix=="string"?te.options.clobberPrefix:"user-content-",Ue=String(Ee.identifier).toUpperCase(),Je=Pa(Ue.toLowerCase()),qe=te.footnoteOrder.indexOf(Ue);let ft,yt=te.footnoteCounts.get(Ue);yt===void 0?(yt=0,te.footnoteOrder.push(Ue),ft=te.footnoteOrder.length):ft=qe+1,yt+=1,te.footnoteCounts.set(Ue,yt);const Ht={type:"element",tagName:"a",properties:{href:"#"+Le+"fn-"+Je,id:Le+"fnref-"+Je+(yt>1?"-"+yt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(ft)}]};te.patch(Ee,Ht);const Kt={type:"element",tagName:"sup",properties:{},children:[Ht]};return te.patch(Ee,Kt),te.applyData(Ee,Kt)}function bl(te,Ee){const Le={type:"element",tagName:"h"+Ee.depth,properties:{},children:te.all(Ee)};return te.patch(Ee,Le),te.applyData(Ee,Le)}function Dl(te,Ee){if(te.options.allowDangerousHtml){const Le={type:"raw",value:Ee.value};return te.patch(Ee,Le),te.applyData(Ee,Le)}}function ps(te,Ee){const Le=Ee.referenceType;let Ue="]";if(Le==="collapsed"?Ue+="[]":Le==="full"&&(Ue+="["+(Ee.label||Ee.identifier)+"]"),Ee.type==="imageReference")return[{type:"text",value:"!["+Ee.alt+Ue}];const Je=te.all(Ee),qe=Je[0];qe&&qe.type==="text"?qe.value="["+qe.value:Je.unshift({type:"text",value:"["});const ft=Je[Je.length-1];return ft&&ft.type==="text"?ft.value+=Ue:Je.push({type:"text",value:Ue}),Je}function As(te,Ee){const Le=String(Ee.identifier).toUpperCase(),Ue=te.definitionById.get(Le);if(!Ue)return ps(te,Ee);const Je={src:Pa(Ue.url||""),alt:Ee.alt};Ue.title!==null&&Ue.title!==void 0&&(Je.title=Ue.title);const qe={type:"element",tagName:"img",properties:Je,children:[]};return te.patch(Ee,qe),te.applyData(Ee,qe)}function Zo(te,Ee){const Le={src:Pa(Ee.url)};Ee.alt!==null&&Ee.alt!==void 0&&(Le.alt=Ee.alt),Ee.title!==null&&Ee.title!==void 0&&(Le.title=Ee.title);const Ue={type:"element",tagName:"img",properties:Le,children:[]};return te.patch(Ee,Ue),te.applyData(Ee,Ue)}function us(te,Ee){const Le={type:"text",value:Ee.value.replace(/\r?\n|\r/g," ")};te.patch(Ee,Le);const Ue={type:"element",tagName:"code",properties:{},children:[Le]};return te.patch(Ee,Ue),te.applyData(Ee,Ue)}function Sl(te,Ee){const Le=String(Ee.identifier).toUpperCase(),Ue=te.definitionById.get(Le);if(!Ue)return ps(te,Ee);const Je={href:Pa(Ue.url||"")};Ue.title!==null&&Ue.title!==void 0&&(Je.title=Ue.title);const qe={type:"element",tagName:"a",properties:Je,children:te.all(Ee)};return te.patch(Ee,qe),te.applyData(Ee,qe)}function Os(te,Ee){const Le={href:Pa(Ee.url)};Ee.title!==null&&Ee.title!==void 0&&(Le.title=Ee.title);const Ue={type:"element",tagName:"a",properties:Le,children:te.all(Ee)};return te.patch(Ee,Ue),te.applyData(Ee,Ue)}function so(te,Ee,Le){const Ue=te.all(Ee),Je=Le?qi(Le):Oi(Ee),qe={},ft=[];if(typeof Ee.checked=="boolean"){const Lt=Ue[0];let sn;Lt&&Lt.type==="element"&&Lt.tagName==="p"?sn=Lt:(sn={type:"element",tagName:"p",properties:{},children:[]},Ue.unshift(sn)),sn.children.length>0&&sn.children.unshift({type:"text",value:" "}),sn.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Ee.checked,disabled:!0},children:[]}),qe.className=["task-list-item"]}let yt=-1;for(;++yt<Ue.length;){const Lt=Ue[yt];(Je||yt!==0||Lt.type!=="element"||Lt.tagName!=="p")&&ft.push({type:"text",value:`
`}),Lt.type==="element"&&Lt.tagName==="p"&&!Je?ft.push(...Lt.children):ft.push(Lt)}const Ht=Ue[Ue.length-1];Ht&&(Je||Ht.type!=="element"||Ht.tagName!=="p")&&ft.push({type:"text",value:`
`});const Kt={type:"element",tagName:"li",properties:qe,children:ft};return te.patch(Ee,Kt),te.applyData(Ee,Kt)}function qi(te){let Ee=!1;if(te.type==="list"){Ee=te.spread||!1;const Le=te.children;let Ue=-1;for(;!Ee&&++Ue<Le.length;)Ee=Oi(Le[Ue])}return Ee}function Oi(te){const Ee=te.spread;return Ee==null?te.children.length>1:Ee}function Yo(te,Ee){const Le={},Ue=te.all(Ee);let Je=-1;for(typeof Ee.start=="number"&&Ee.start!==1&&(Le.start=Ee.start);++Je<Ue.length;){const ft=Ue[Je];if(ft.type==="element"&&ft.tagName==="li"&&ft.properties&&Array.isArray(ft.properties.className)&&ft.properties.className.includes("task-list-item")){Le.className=["contains-task-list"];break}}const qe={type:"element",tagName:Ee.ordered?"ol":"ul",properties:Le,children:te.wrap(Ue,!0)};return te.patch(Ee,qe),te.applyData(Ee,qe)}function Vn(te,Ee){const Le={type:"element",tagName:"p",properties:{},children:te.all(Ee)};return te.patch(Ee,Le),te.applyData(Ee,Le)}function ts(te,Ee){const Le={type:"root",children:te.wrap(te.all(Ee))};return te.patch(Ee,Le),te.applyData(Ee,Le)}function lt(te,Ee){const Le={type:"element",tagName:"strong",properties:{},children:te.all(Ee)};return te.patch(Ee,Le),te.applyData(Ee,Le)}function Qt(te,Ee){const Le=te.all(Ee),Ue=Le.shift(),Je=[];if(Ue){const ft={type:"element",tagName:"thead",properties:{},children:te.wrap([Ue],!0)};te.patch(Ee.children[0],ft),Je.push(ft)}if(Le.length>0){const ft={type:"element",tagName:"tbody",properties:{},children:te.wrap(Le,!0)},yt=(0,L.Pk)(Ee.children[1]),Ht=(0,L.rb)(Ee.children[Ee.children.length-1]);yt&&Ht&&(ft.position={start:yt,end:Ht}),Je.push(ft)}const qe={type:"element",tagName:"table",properties:{},children:te.wrap(Je,!0)};return te.patch(Ee,qe),te.applyData(Ee,qe)}function wa(te,Ee,Le){const Ue=Le?Le.children:void 0,qe=(Ue?Ue.indexOf(Ee):1)===0?"th":"td",ft=Le&&Le.type==="table"?Le.align:void 0,yt=ft?ft.length:Ee.children.length;let Ht=-1;const Kt=[];for(;++Ht<yt;){const sn=Ee.children[Ht],nn={},Dt=ft?ft[Ht]:void 0;Dt&&(nn.align=Dt);let jr={type:"element",tagName:qe,properties:nn,children:[]};sn&&(jr.children=te.all(sn),te.patch(sn,jr),jr=te.applyData(sn,jr)),Kt.push(jr)}const Lt={type:"element",tagName:"tr",properties:{},children:te.wrap(Kt,!0)};return te.patch(Ee,Lt),te.applyData(Ee,Lt)}function sl(te,Ee){const Le={type:"element",tagName:"td",properties:{},children:te.all(Ee)};return te.patch(Ee,Le),te.applyData(Ee,Le)}const jo=9,ns=32;function sa(te){const Ee=String(te),Le=/\r?\n|\r/g;let Ue=Le.exec(Ee),Je=0;const qe=[];for(;Ue;)qe.push(Ea(Ee.slice(Je,Ue.index),Je>0,!0),Ue[0]),Je=Ue.index+Ue[0].length,Ue=Le.exec(Ee);return qe.push(Ea(Ee.slice(Je),Je>0,!1)),qe.join("")}function Ea(te,Ee,Le){let Ue=0,Je=te.length;if(Ee){let qe=te.codePointAt(Ue);for(;qe===jo||qe===ns;)Ue++,qe=te.codePointAt(Ue)}if(Le){let qe=te.codePointAt(Je-1);for(;qe===jo||qe===ns;)Je--,qe=te.codePointAt(Je-1)}return Je>Ue?te.slice(Ue,Je):""}function Zl(te,Ee){const Le={type:"text",value:sa(String(Ee.value))};return te.patch(Ee,Le),te.applyData(Ee,Le)}function To(te,Ee){const Le={type:"element",tagName:"hr",properties:{},children:[]};return te.patch(Ee,Le),te.applyData(Ee,Le)}const Fr={blockquote:ol,break:du,code:pu,delete:Bo,emphasis:Xl,footnoteReference:gu,heading:bl,html:Dl,imageReference:As,image:Zo,inlineCode:us,linkReference:Sl,link:Os,listItem:so,list:Yo,paragraph:Vn,root:ts,strong:lt,table:Qt,tableCell:sl,tableRow:wa,text:Zl,thematicBreak:To,toml:gs,yaml:gs,definition:gs,footnoteDefinition:gs};function gs(){}const Bs={}.hasOwnProperty,$i={};function yi(te,Ee){const Le=Ee||$i,Ue=new Map,Je=new Map,qe=new Map,ft=Ii(Ii({},Fr),Le.handlers),yt={all:Kt,applyData:Ws,definitionById:Ue,footnoteById:Je,footnoteCounts:qe,footnoteOrder:[],handlers:ft,one:Ht,options:Le,patch:ko,wrap:Zs};return(0,Gs.Vn)(te,function(Lt){if(Lt.type==="definition"||Lt.type==="footnoteDefinition"){const sn=Lt.type==="definition"?Ue:Je,nn=String(Lt.identifier).toUpperCase();sn.has(nn)||sn.set(nn,Lt)}}),yt;function Ht(Lt,sn){const nn=Lt.type,Dt=yt.handlers[nn];if(Bs.call(yt.handlers,nn)&&Dt)return Dt(yt,Lt,sn);if(yt.options.passThrough&&yt.options.passThrough.includes(nn)){if("children"in Lt){const hi=Lt,{children:Ni}=hi,pr=s0(hi,["children"]),Gr=(0,Is.ZP)(pr);return Gr.children=yt.all(Lt),Gr}return(0,Is.ZP)(Lt)}return(yt.options.unknownHandler||go)(yt,Lt,sn)}function Kt(Lt){const sn=[];if("children"in Lt){const nn=Lt.children;let Dt=-1;for(;++Dt<nn.length;){const jr=yt.one(nn[Dt],Lt);if(jr){if(Dt&&nn[Dt-1].type==="break"&&(!Array.isArray(jr)&&jr.type==="text"&&(jr.value=rs(jr.value)),!Array.isArray(jr)&&jr.type==="element")){const hi=jr.children[0];hi&&hi.type==="text"&&(hi.value=rs(hi.value))}Array.isArray(jr)?sn.push(...jr):sn.push(jr)}}}return sn}}function ko(te,Ee){te.position&&(Ee.position=(0,L.FK)(te))}function Ws(te,Ee){let Le=Ee;if(te&&te.data){const Ue=te.data.hName,Je=te.data.hChildren,qe=te.data.hProperties;if(typeof Ue=="string")if(Le.type==="element")Le.tagName=Ue;else{const ft="children"in Le?Le.children:[Le];Le={type:"element",tagName:Ue,properties:{},children:ft}}Le.type==="element"&&qe&&Object.assign(Le.properties,(0,Is.ZP)(qe)),"children"in Le&&Le.children&&Je!==null&&Je!==void 0&&(Le.children=Je)}return Le}function go(te,Ee){const Le=Ee.data||{},Ue="value"in Ee&&!(Bs.call(Le,"hProperties")||Bs.call(Le,"hChildren"))?{type:"text",value:Ee.value}:{type:"element",tagName:"div",properties:{},children:te.all(Ee)};return te.patch(Ee,Ue),te.applyData(Ee,Ue)}function Zs(te,Ee){const Le=[];let Ue=-1;for(Ee&&Le.push({type:"text",value:`
`});++Ue<te.length;)Ue&&Le.push({type:"text",value:`
`}),Le.push(te[Ue]);return Ee&&te.length>0&&Le.push({type:"text",value:`
`}),Le}function rs(te){let Ee=0,Le=te.charCodeAt(Ee);for(;Le===9||Le===32;)Ee++,Le=te.charCodeAt(Ee);return te.slice(Ee)}function xl(te,Ee){const Le=yi(te,Ee),Ue=Le.one(te,void 0),Je=oa(Le),qe=Array.isArray(Ue)?{type:"root",children:Ue}:Ue||{type:"root",children:[]};return Je&&((0,Y.ok)("children"in qe),qe.children.push({type:"text",value:`
`},Je)),qe}function eo(te,Ee){return te&&"run"in te?function(Le,Ue){return a0(this,null,function*(){const Je=xl(Le,Ii({file:Ue},Ee));yield te.run(Je,Ue)})}:function(Le,Ue){return xl(Le,Ii({file:Ue},te||Ee))}}function ms(te){if(te)throw te}var Ui=S(58847);function uo(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 po(){const te=[],Ee={run:Le,use:Ue};return Ee;function Le(...Je){let qe=-1;const ft=Je.pop();if(typeof ft!="function")throw new TypeError("Expected function as last argument, not "+ft);yt(null,...Je);function yt(Ht,...Kt){const Lt=te[++qe];let sn=-1;if(Ht){ft(Ht);return}for(;++sn<Je.length;)(Kt[sn]===null||Kt[sn]===void 0)&&(Kt[sn]=Je[sn]);Je=Kt,Lt?_o(Lt,yt)(...Kt):ft(null,...Kt)}}function Ue(Je){if(typeof Je!="function")throw new TypeError("Expected `middelware` to be a function, not "+Je);return te.push(Je),Ee}}function _o(te,Ee){let Le;return Ue;function Ue(...ft){const yt=te.length>ft.length;let Ht;yt&&ft.push(Je);try{Ht=te.apply(this,ft)}catch(Kt){const Lt=Kt;if(yt&&Le)throw Lt;return Je(Lt)}yt||(Ht&&Ht.then&&typeof Ht.then=="function"?Ht.then(qe,Je):Ht instanceof Error?Je(Ht):qe(Ht))}function Je(ft,...yt){Le||(Le=!0,Ee(ft,...yt))}function qe(ft){Je(null,ft)}}const Ai={basename:Jl,dirname:Ar,extname:oc,join:Bi,sep:"/"};function Jl(te,Ee){if(Ee!==void 0&&typeof Ee!="string")throw new TypeError('"ext" argument must be a string');al(te);let Le=0,Ue=-1,Je=te.length,qe;if(Ee===void 0||Ee.length===0||Ee.length>te.length){for(;Je--;)if(te.codePointAt(Je)===47){if(qe){Le=Je+1;break}}else Ue<0&&(qe=!0,Ue=Je+1);return Ue<0?"":te.slice(Le,Ue)}if(Ee===te)return"";let ft=-1,yt=Ee.length-1;for(;Je--;)if(te.codePointAt(Je)===47){if(qe){Le=Je+1;break}}else ft<0&&(qe=!0,ft=Je+1),yt>-1&&(te.codePointAt(Je)===Ee.codePointAt(yt--)?yt<0&&(Ue=Je):(yt=-1,Ue=ft));return Le===Ue?Ue=ft:Ue<0&&(Ue=te.length),te.slice(Le,Ue)}function Ar(te){if(al(te),te.length===0)return".";let Ee=-1,Le=te.length,Ue;for(;--Le;)if(te.codePointAt(Le)===47){if(Ue){Ee=Le;break}}else Ue||(Ue=!0);return Ee<0?te.codePointAt(0)===47?"/":".":Ee===1&&te.codePointAt(0)===47?"//":te.slice(0,Ee)}function oc(te){al(te);let Ee=te.length,Le=-1,Ue=0,Je=-1,qe=0,ft;for(;Ee--;){const yt=te.codePointAt(Ee);if(yt===47){if(ft){Ue=Ee+1;break}continue}Le<0&&(ft=!0,Le=Ee+1),yt===46?Je<0?Je=Ee:qe!==1&&(qe=1):Je>-1&&(qe=-1)}return Je<0||Le<0||qe===0||qe===1&&Je===Le-1&&Je===Ue+1?"":te.slice(Je,Le)}function Bi(...te){let Ee=-1,Le;for(;++Ee<te.length;)al(te[Ee]),te[Ee]&&(Le=Le===void 0?te[Ee]:Le+"/"+te[Ee]);return Le===void 0?".":ju(Le)}function ju(te){al(te);const Ee=te.codePointAt(0)===47;let Le=Pl(te,!Ee);return Le.length===0&&!Ee&&(Le="."),Le.length>0&&te.codePointAt(te.length-1)===47&&(Le+="/"),Ee?"/"+Le:Le}function Pl(te,Ee){let Le="",Ue=0,Je=-1,qe=0,ft=-1,yt,Ht;for(;++ft<=te.length;){if(ft<te.length)yt=te.codePointAt(ft);else{if(yt===47)break;yt=47}if(yt===47){if(!(Je===ft-1||qe===1))if(Je!==ft-1&&qe===2){if(Le.length<2||Ue!==2||Le.codePointAt(Le.length-1)!==46||Le.codePointAt(Le.length-2)!==46){if(Le.length>2){if(Ht=Le.lastIndexOf("/"),Ht!==Le.length-1){Ht<0?(Le="",Ue=0):(Le=Le.slice(0,Ht),Ue=Le.length-1-Le.lastIndexOf("/")),Je=ft,qe=0;continue}}else if(Le.length>0){Le="",Ue=0,Je=ft,qe=0;continue}}Ee&&(Le=Le.length>0?Le+"/..":"..",Ue=2)}else Le.length>0?Le+="/"+te.slice(Je+1,ft):Le=te.slice(Je+1,ft),Ue=ft-Je-1;Je=ft,qe=0}else yt===46&&qe>-1?qe++:qe=-1}return Le}function al(te){if(typeof te!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(te))}const Uu={cwd:Nu};function Nu(){return"/"}function Fa(te){return!!(te!==null&&typeof te=="object"&&"href"in te&&te.href&&"protocol"in te&&te.protocol&&te.auth===void 0)}function Ba(te){if(typeof te=="string")te=new URL(te);else if(!Fa(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 Hi(te)}function Hi(te){if(te.hostname!==""){const Ue=new TypeError('File URL host must be "localhost" or empty on darwin');throw Ue.code="ERR_INVALID_FILE_URL_HOST",Ue}const Ee=te.pathname;let Le=-1;for(;++Le<Ee.length;)if(Ee.codePointAt(Le)===37&&Ee.codePointAt(Le+1)===50){const Ue=Ee.codePointAt(Le+2);if(Ue===70||Ue===102){const Je=new TypeError("File URL path must not include encoded / characters");throw Je.code="ERR_INVALID_FILE_URL_PATH",Je}}return decodeURIComponent(Ee)}const Ls=["history","path","basename","stem","extname","dirname"];class Ql{constructor(Ee){let Le;Ee?Fa(Ee)?Le={path:Ee}:typeof Ee=="string"||ki(Ee)?Le={value:Ee}:Le=Ee:Le={},this.cwd="cwd"in Le?"":Uu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let Ue=-1;for(;++Ue<Ls.length;){const qe=Ls[Ue];qe in Le&&Le[qe]!==void 0&&Le[qe]!==null&&(this[qe]=qe==="history"?[...Le[qe]]:Le[qe])}let Je;for(Je in Le)Ls.includes(Je)||(this[Je]=Le[Je])}get basename(){return typeof this.path=="string"?Ai.basename(this.path):void 0}set basename(Ee){ll(Ee,"basename"),ja(Ee,"basename"),this.path=Ai.join(this.dirname||"",Ee)}get dirname(){return typeof this.path=="string"?Ai.dirname(this.path):void 0}set dirname(Ee){Ya(this.basename,"dirname"),this.path=Ai.join(Ee||"",this.basename)}get extname(){return typeof this.path=="string"?Ai.extname(this.path):void 0}set extname(Ee){if(ja(Ee,"extname"),Ya(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=Ai.join(this.dirname,this.stem+(Ee||""))}get path(){return this.history[this.history.length-1]}set path(Ee){Fa(Ee)&&(Ee=Ba(Ee)),ll(Ee,"path"),this.path!==Ee&&this.history.push(Ee)}get stem(){return typeof this.path=="string"?Ai.basename(this.path,this.extname):void 0}set stem(Ee){ll(Ee,"stem"),ja(Ee,"stem"),this.path=Ai.join(this.dirname||"",Ee+(this.extname||""))}fail(Ee,Le,Ue){const Je=this.message(Ee,Le,Ue);throw Je.fatal=!0,Je}info(Ee,Le,Ue){const Je=this.message(Ee,Le,Ue);return Je.fatal=void 0,Je}message(Ee,Le,Ue){const Je=new U(Ee,Le,Ue);return this.path&&(Je.name=this.path+":"+Je.name,Je.file=this.path),Je.fatal=!1,this.messages.push(Je),Je}toString(Ee){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Ee||void 0).decode(this.value)}}function ja(te,Ee){if(te&&te.includes(Ai.sep))throw new Error("`"+Ee+"` cannot be a path: did not expect `"+Ai.sep+"`")}function ll(te,Ee){if(!te)throw new Error("`"+Ee+"` cannot be empty")}function Ya(te,Ee){if(!te)throw new Error("Setting `"+Ee+"` requires `path` to be set too")}function ki(te){return!!(te&&typeof te=="object"&&"byteLength"in te&&"byteOffset"in te)}const to=function(te){const Ue=this.constructor.prototype,Je=Ue[te],qe=function(){return Je.apply(qe,arguments)};return Object.setPrototypeOf(qe,Ue),qe},No={}.hasOwnProperty;class vs extends to{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=po()}copy(){const Ee=new vs;let Le=-1;for(;++Le<this.attachers.length;){const Ue=this.attachers[Le];Ee.use(...Ue)}return Ee.data(Ui(!0,{},this.namespace)),Ee}data(Ee,Le){return typeof Ee=="string"?arguments.length===2?(_a("data",this.frozen),this.namespace[Ee]=Le,this):No.call(this.namespace,Ee)&&this.namespace[Ee]||void 0:Ee?(_a("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[Le,...Ue]=this.attachers[this.freezeIndex];if(Ue[0]===!1)continue;Ue[0]===!0&&(Ue[0]=void 0);const Je=Le.call(Ee,...Ue);typeof Je=="function"&&this.transformers.use(Je)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Ee){this.freeze();const Le=Sc(Ee),Ue=this.parser||this.Parser;return Ca("parse",Ue),Ue(String(Le),Le)}process(Ee,Le){const Ue=this;return this.freeze(),Ca("process",this.parser||this.Parser),Ta("process",this.compiler||this.Compiler),Le?Je(void 0,Le):new Promise(Je);function Je(qe,ft){const yt=Sc(Ee),Ht=Ue.parse(yt);Ue.run(Ht,yt,function(Lt,sn,nn){if(Lt||!sn||!nn)return Kt(Lt);const Dt=sn,jr=Ue.stringify(Dt,nn);Ah(jr)?nn.value=jr:nn.result=jr,Kt(Lt,nn)});function Kt(Lt,sn){Lt||!sn?ft(Lt):qe?qe(sn):((0,Y.ok)(Le,"`done` is defined if `resolve` is not"),Le(void 0,sn))}}}processSync(Ee){let Le=!1,Ue;return this.freeze(),Ca("processSync",this.parser||this.Parser),Ta("processSync",this.compiler||this.Compiler),this.process(Ee,Je),$a("processSync","process",Le),(0,Y.ok)(Ue,"we either bailed on an error or have a tree"),Ue;function Je(qe,ft){Le=!0,ms(qe),Ue=ft}}run(Ee,Le,Ue){aa(Ee),this.freeze();const Je=this.transformers;return!Ue&&typeof Le=="function"&&(Ue=Le,Le=void 0),Ue?qe(void 0,Ue):new Promise(qe);function qe(ft,yt){(0,Y.ok)(typeof Le!="function","`file` can\u2019t be a `done` anymore, we checked");const Ht=Sc(Le);Je.run(Ee,Ht,Kt);function Kt(Lt,sn,nn){const Dt=sn||Ee;Lt?yt(Lt):ft?ft(Dt):((0,Y.ok)(Ue,"`done` is defined if `resolve` is not"),Ue(void 0,Dt,nn))}}}runSync(Ee,Le){let Ue=!1,Je;return this.run(Ee,Le,qe),$a("runSync","run",Ue),(0,Y.ok)(Je,"we either bailed on an error or have a tree"),Je;function qe(ft,yt){ms(ft),Je=yt,Ue=!0}}stringify(Ee,Le){this.freeze();const Ue=Sc(Le),Je=this.compiler||this.Compiler;return Ta("stringify",Je),aa(Ee),Je(Ee,Ue)}use(Ee,...Le){const Ue=this.attachers,Je=this.namespace;if(_a("use",this.frozen),Ee!=null)if(typeof Ee=="function")Ht(Ee,Le);else if(typeof Ee=="object")Array.isArray(Ee)?yt(Ee):ft(Ee);else throw new TypeError("Expected usable value, not `"+Ee+"`");return this;function qe(Kt){if(typeof Kt=="function")Ht(Kt,[]);else if(typeof Kt=="object")if(Array.isArray(Kt)){const[Lt,...sn]=Kt;Ht(Lt,sn)}else ft(Kt);else throw new TypeError("Expected usable value, not `"+Kt+"`")}function ft(Kt){if(!("plugins"in Kt)&&!("settings"in Kt))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");yt(Kt.plugins),Kt.settings&&(Je.settings=Ui(!0,Je.settings,Kt.settings))}function yt(Kt){let Lt=-1;if(Kt!=null)if(Array.isArray(Kt))for(;++Lt<Kt.length;){const sn=Kt[Lt];qe(sn)}else throw new TypeError("Expected a list of plugins, not `"+Kt+"`")}function Ht(Kt,Lt){let sn=-1,nn=-1;for(;++sn<Ue.length;)if(Ue[sn][0]===Kt){nn=sn;break}if(nn===-1)Ue.push([Kt,...Lt]);else if(Lt.length>0){let[Dt,...jr]=Lt;const hi=Ue[nn][1];uo(hi)&&uo(Dt)&&(Dt=Ui(!0,hi,Dt)),Ue[nn]=[Kt,Dt,...jr]}}}}const is=new vs().freeze();function Ca(te,Ee){if(typeof Ee!="function")throw new TypeError("Cannot `"+te+"` without `parser`")}function Ta(te,Ee){if(typeof Ee!="function")throw new TypeError("Cannot `"+te+"` without `compiler`")}function _a(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 aa(te){if(!uo(te)||typeof te.type!="string")throw new TypeError("Expected node, got `"+te+"`")}function $a(te,Ee,Le){if(!Le)throw new Error("`"+te+"` finished async. Use `"+Ee+"` instead")}function Sc(te){return _h(te)?te:new Ql(te)}function _h(te){return!!(te&&typeof te=="object"&&"message"in te&&"messages"in te)}function Ah(te){return typeof te=="string"||kh(te)}function kh(te){return!!(te&&typeof te=="object"&&"byteLength"in te&&"byteOffset"in te)}const Jo="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ql=[],ho={allowDangerousHtml:!0},ws=/^(https?|ircs?|mailto|xmpp)$/i,Ms=[{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 ks(te){const Ee=eu(te),Le=xc(te);return wc(Ee.runSync(Ee.parse(Le),Le),te)}function mu(te){return a0(this,null,function*(){const Ee=eu(te),Le=xc(te),Ue=yield Ee.run(Ee.parse(Le),Le);return wc(Ue,te)})}function js(te){const Ee=eu(te),[Le,Ue]=useState(void 0),[Je,qe]=useState(void 0);if(useEffect(function(){const ft=xc(te);Ee.run(Ee.parse(ft),ft,function(yt,Ht){Ue(yt),qe(Ht)})},[te.children,te.rehypePlugins,te.remarkPlugins,te.remarkRehypeOptions]),Le)throw Le;return Je?wc(Je,te):createElement(Fragment)}function eu(te){const Ee=te.rehypePlugins||ql,Le=te.remarkPlugins||ql,Ue=te.remarkRehypeOptions?Ii(Ii({},te.remarkRehypeOptions),ho):ho;return is().use(Hs).use(Le).use(eo,Ue).use(Ee)}function xc(te){const Ee=te.children||"",Le=new Ql;return typeof Ee=="string"?Le.value=Ee:(0,Y.t1)("Unexpected value `"+Ee+"` for `children` prop, expected `string`"),Le}function wc(te,Ee){const Le=Ee.allowedElements,Ue=Ee.allowElement,Je=Ee.components,qe=Ee.disallowedElements,ft=Ee.skipHtml,yt=Ee.unwrapDisallowed,Ht=Ee.urlTransform||la;for(const Lt of Ms)Object.hasOwn(Ee,Lt.from)&&(0,Y.t1)("Unexpected `"+Lt.from+"` prop, "+(Lt.to?"use `"+Lt.to+"` instead":"remove it")+" (see <"+Jo+"#"+Lt.id+"> for more info)");return Le&&qe&&(0,Y.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),Ee.className&&(te={type:"element",tagName:"div",properties:{className:Ee.className},children:te.type==="root"?te.children:[te]}),(0,Gs.Vn)(te,Kt),le(te,{Fragment:re.Fragment,components:Je,ignoreInvalidStyle:!0,jsx:re.jsx,jsxs:re.jsxs,passKeys:!0,passNode:!0});function Kt(Lt,sn,nn){if(Lt.type==="raw"&&nn&&typeof sn=="number")return ft?nn.children.splice(sn,1):nn.children[sn]={type:"text",value:Lt.value},sn;if(Lt.type==="element"){let Dt;for(Dt in Ce)if(Object.hasOwn(Ce,Dt)&&Object.hasOwn(Lt.properties,Dt)){const jr=Lt.properties[Dt],hi=Ce[Dt];(hi===null||hi.includes(Lt.tagName))&&(Lt.properties[Dt]=Ht(String(jr||""),Dt,Lt))}}if(Lt.type==="element"){let Dt=Le?!Le.includes(Lt.tagName):qe?qe.includes(Lt.tagName):!1;if(!Dt&&Ue&&typeof sn=="number"&&(Dt=!Ue(Lt,sn,nn)),Dt&&nn&&typeof sn=="number")return yt&&Lt.children?nn.children.splice(sn,1,...Lt.children):nn.children.splice(sn,1),sn}}}function la(te){const Ee=te.indexOf(":"),Le=te.indexOf("?"),Ue=te.indexOf("#"),Je=te.indexOf("/");return Ee===-1||Je!==-1&&Ee>Je||Le!==-1&&Ee>Le||Ue!==-1&&Ee>Ue||ws.test(te.slice(0,Ee))?te:""}},3977:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return Xc}});var B={};S.r(B),S.d(B,{boolean:function(){return U},booleanish:function(){return G},commaOrSpaceSeparated:function(){return he},commaSeparated:function(){return oe},number:function(){return ee},overloadedBoolean:function(){return Q},spaceSeparated:function(){return ae}});var Y=S(90302),s=S(87342),w=S(81994),_=S(14470),u=S(86825);function p(A){const z=String(A),Ie=[];return{toOffset:zt,toPoint:ct};function ct(xn){if(typeof xn=="number"&&xn>-1&&xn<=z.length){let Hn=0;for(;;){let Vr=Ie[Hn];if(Vr===void 0){const Si=y(z,Ie[Hn-1]);Vr=Si===-1?z.length+1:Si+1,Ie[Hn]=Vr}if(Vr>xn)return{line:Hn+1,column:xn-(Hn>0?Ie[Hn-1]:0)+1,offset:xn};Hn++}}}function zt(xn){if(xn&&typeof xn.line=="number"&&typeof xn.column=="number"&&!Number.isNaN(xn.line)&&!Number.isNaN(xn.column)){for(;Ie.length<xn.line;){const Vr=Ie[Ie.length-1],Si=y(z,Vr),bn=Si===-1?z.length+1:Si+1;if(Vr===bn)break;Ie.push(bn)}const Hn=(xn.line>1?Ie[xn.line-2]:0)+xn.column-1;if(Hn<Ie[xn.line-1])return Hn}}}function y(A,z){const Ie=A.indexOf("\r",z),ct=A.indexOf(`
`,z);return ct===-1?Ie:Ie===-1||Ie+1===ct?ct:Ie<ct?Ie:ct}var m=S(43309);const b={}.hasOwnProperty,v=Object.prototype;function c(A,z){const Ie=z||{};return h({file:Ie.file||void 0,location:!1,schema:Ie.space==="svg"?_.YP:_.dy,verbose:Ie.verbose||!1},A)}function h(A,z){let Ie;switch(z.nodeName){case"#comment":{const ct=z;return Ie={type:"comment",value:ct.data},T(A,ct,Ie),Ie}case"#document":case"#document-fragment":{const ct=z,zt="mode"in ct?ct.mode==="quirks"||ct.mode==="limited-quirks":!1;if(Ie={type:"root",children:g(A,z.childNodes),data:{quirksMode:zt}},A.file&&A.location){const xn=String(A.file),Hn=p(xn),Vr=Hn.toPoint(0),Si=Hn.toPoint(xn.length);(0,s.ok)(Vr,"expected `start`"),(0,s.ok)(Si,"expected `end`"),Ie.position={start:Vr,end:Si}}return Ie}case"#documentType":{const ct=z;return Ie={type:"doctype"},T(A,ct,Ie),Ie}case"#text":{const ct=z;return Ie={type:"text",value:ct.value},T(A,ct,Ie),Ie}default:return Ie=x(A,z),Ie}}function g(A,z){let Ie=-1;const ct=[];for(;++Ie<z.length;){const zt=h(A,z[Ie]);ct.push(zt)}return ct}function x(A,z){const Ie=A.schema;A.schema=z.namespaceURI===m.t.svg?_.YP:_.dy;let ct=-1;const zt={};for(;++ct<z.attrs.length;){const Vr=z.attrs[ct],Si=(Vr.prefix?Vr.prefix+":":"")+Vr.name;b.call(v,Si)||(zt[Si]=Vr.value)}const Hn=(A.schema.space==="svg"?w.s:w.h)(z.tagName,zt,g(A,z.childNodes));if(T(A,z,Hn),Hn.tagName==="template"){const Vr=z,Si=Vr.sourceCodeLocation,bn=Si&&Si.startTag&&R(Si.startTag),ar=Si&&Si.endTag&&R(Si.endTag),Ri=h(A,Vr.content);bn&&ar&&A.file&&(Ri.position={start:bn.end,end:ar.start}),Hn.content=Ri}return A.schema=Ie,Hn}function T(A,z,Ie){if("sourceCodeLocation"in z&&z.sourceCodeLocation&&A.file){const ct=I(A,Ie,z.sourceCodeLocation);ct&&(A.location=!0,Ie.position=ct)}}function I(A,z,Ie){const ct=R(Ie);if(z.type==="element"){const zt=z.children[z.children.length-1];if(ct&&!Ie.endTag&&zt&&zt.position&&zt.position.end&&(ct.end=Object.assign({},zt.position.end)),A.verbose){const xn={};let Hn;if(Ie.attrs)for(Hn in Ie.attrs)b.call(Ie.attrs,Hn)&&(xn[(0,u.s)(A.schema,Hn).property]=R(Ie.attrs[Hn]));(0,s.ok)(Ie.startTag,"a start tag should exist");const Vr=R(Ie.startTag),Si=Ie.endTag?R(Ie.endTag):void 0,bn={opening:Vr};Si&&(bn.closing=Si),bn.properties=xn,z.data={position:bn}}}return ct}function R(A){const z=N({line:A.startLine,column:A.startCol,offset:A.startOffset}),Ie=N({line:A.endLine,column:A.endCol,offset:A.endOffset});return z||Ie?{start:z,end:Ie}:void 0}function N(A){return A.line&&A.column?A:void 0}var k=S(11630);class L{constructor(z,Ie,ct){this.property=z,this.normal=Ie,ct&&(this.space=ct)}}L.prototype.property={},L.prototype.normal={},L.prototype.space=null;function H(A,z){const Ie={},ct={};let zt=-1;for(;++zt<A.length;)Object.assign(Ie,A[zt].property),Object.assign(ct,A[zt].normal);return new L(Ie,ct,z)}function M(A){return A.toLowerCase()}class F{constructor(z,Ie){this.property=z,this.attribute=Ie}}F.prototype.space=null,F.prototype.boolean=!1,F.prototype.booleanish=!1,F.prototype.overloadedBoolean=!1,F.prototype.number=!1,F.prototype.commaSeparated=!1,F.prototype.spaceSeparated=!1,F.prototype.commaOrSpaceSeparated=!1,F.prototype.mustUseProperty=!1,F.prototype.defined=!1;let P=0;const U=le(),G=le(),Q=le(),ee=le(),ae=le(),oe=le(),he=le();function le(){return o0(2,++P)}const be=Object.keys(B);class pe extends F{constructor(z,Ie,ct,zt){let xn=-1;if(super(z,Ie),_e(this,"space",zt),typeof ct=="number")for(;++xn<be.length;){const Hn=be[xn];_e(this,be[xn],(ct&B[Hn])===B[Hn])}}}pe.prototype.defined=!0;function _e(A,z,Ie){Ie&&(A[z]=Ie)}const ne={}.hasOwnProperty;function ue(A){const z={},Ie={};let ct;for(ct in A.properties)if(ne.call(A.properties,ct)){const zt=A.properties[ct],xn=new pe(ct,A.transform(A.attributes||{},ct),zt,A.space);A.mustUseProperty&&A.mustUseProperty.includes(ct)&&(xn.mustUseProperty=!0),z[ct]=xn,Ie[M(ct)]=ct,Ie[M(xn.attribute)]=ct}return new L(z,Ie,A.space)}const ce=ue({space:"xlink",transform(A,z){return"xlink:"+z.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Re=ue({space:"xml",transform(A,z){return"xml:"+z.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ke(A,z){return z in A?A[z]:z}function Ne(A,z){return ke(A,z.toLowerCase())}const De=ue({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ne,properties:{xmlns:null,xmlnsXLink:null}}),Me=ue({transform(A,z){return z==="role"?z:"aria-"+z.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:G,ariaAutoComplete:null,ariaBusy:G,ariaChecked:G,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:ae,ariaCurrent:null,ariaDescribedBy:ae,ariaDetails:null,ariaDisabled:G,ariaDropEffect:ae,ariaErrorMessage:null,ariaExpanded:G,ariaFlowTo:ae,ariaGrabbed:G,ariaHasPopup:null,ariaHidden:G,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ae,ariaLevel:ee,ariaLive:null,ariaModal:G,ariaMultiLine:G,ariaMultiSelectable:G,ariaOrientation:null,ariaOwns:ae,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:G,ariaReadOnly:G,ariaRelevant:null,ariaRequired:G,ariaRoleDescription:ae,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:G,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null}}),We=ue({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ne,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:oe,acceptCharset:ae,accessKey:ae,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:ae,autoFocus:U,autoPlay:U,blocking:ae,capture:null,charSet:null,checked:U,cite:null,className:ae,cols:ee,colSpan:null,content:null,contentEditable:G,controls:U,controlsList:ae,coords:ee|oe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:Q,draggable:G,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:ae,height:ee,hidden:U,high:ee,href:null,hrefLang:null,htmlFor:ae,httpEquiv:ae,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:ae,itemRef:ae,itemScope:U,itemType:ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,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:U,optimum:ee,pattern:null,ping:ae,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:ae,required:U,reversed:U,rows:ee,rowSpan:ee,sandbox:ae,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:G,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:G,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ae,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:G,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:ee,security:null,unselectable:null}}),je=ue({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:ke,properties:{about:he,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:ae,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:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,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:oe,g2:oe,glyphName:oe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:he,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,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:ee,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:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:he,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:he,rev:he,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:he,requiredFeatures:he,requiredFonts:he,requiredFormats:he,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:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:he,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:he,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:he,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),et=H([Re,ce,De,Me,We],"html"),it=H([Re,ce,De,Me,je],"svg"),ze=/^data[-\w.:]+$/i,xe=/-[a-z]/g,fe=/[A-Z]/g;function W(A,z){const Ie=M(z);let ct=z,zt=F;if(Ie in A.normal)return A.property[A.normal[Ie]];if(Ie.length>4&&Ie.slice(0,4)==="data"&&ze.test(z)){if(z.charAt(4)==="-"){const xn=z.slice(5).replace(xe,me);ct="data"+xn.charAt(0).toUpperCase()+xn.slice(1)}else{const xn=z.slice(4);if(!xe.test(xn)){let Hn=xn.replace(fe,Z);Hn.charAt(0)!=="-"&&(Hn="-"+Hn),z="data"+Hn}}zt=pe}return new zt(ct,z)}function Z(A){return"-"+A.toLowerCase()}function me(A){return A.charAt(1).toUpperCase()}var Ce=S(71523);const re={}.hasOwnProperty;function ie(A,z){const Ie=z||{};function ct(zt,...xn){let Hn=ct.invalid;const Vr=ct.handlers;if(zt&&re.call(zt,A)){const Si=String(zt[A]);Hn=re.call(Vr,Si)?Vr[Si]:ct.unknown}if(Hn)return Hn.call(this,zt,...xn)}return ct.handlers=Ie.handlers||{},ct.invalid=Ie.invalid,ct.unknown=Ie.unknown,ct}const de={},Ae={}.hasOwnProperty,Be=ie("type",{handlers:{root:st,element:rt,text:It,comment:gt,doctype:pt}});function He(A,z){const ct=(z||de).space;return Be(A,ct==="svg"?it:et)}function st(A,z){const Ie={nodeName:"#document",mode:(A.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return Ie.childNodes=At(A.children,Ie,z),bt(A,Ie),Ie}function Qe(A,z){const Ie={nodeName:"#document-fragment",childNodes:[]};return Ie.childNodes=At(A.children,Ie,z),bt(A,Ie),Ie}function pt(A){const z={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return bt(A,z),z}function It(A){const z={nodeName:"#text",value:A.value,parentNode:null};return bt(A,z),z}function gt(A){const z={nodeName:"#comment",data:A.value,parentNode:null};return bt(A,z),z}function rt(A,z){const Ie=z;let ct=Ie;A.type==="element"&&A.tagName.toLowerCase()==="svg"&&Ie.space==="html"&&(ct=it);const zt=[];let xn;if(A.properties){for(xn in A.properties)if(xn!=="children"&&Ae.call(A.properties,xn)){const Si=ut(ct,xn,A.properties[xn]);Si&&zt.push(Si)}}const Hn=ct.space;(0,s.ok)(Hn);const Vr={nodeName:A.tagName,tagName:A.tagName,attrs:zt,namespaceURI:m.t[Hn],childNodes:[],parentNode:null};return Vr.childNodes=At(A.children,Vr,ct),bt(A,Vr),A.tagName==="template"&&A.content&&(Vr.content=Qe(A.content,ct)),Vr}function ut(A,z,Ie){const ct=W(A,z);if(Ie===!1||Ie===null||Ie===void 0||typeof Ie=="number"&&Number.isNaN(Ie)||!Ie&&ct.boolean)return;Array.isArray(Ie)&&(Ie=ct.commaSeparated?(0,k.P)(Ie):(0,Ce.P)(Ie));const zt={name:ct.attribute,value:Ie===!0?"":String(Ie)};if(ct.space&&ct.space!=="html"&&ct.space!=="svg"){const xn=zt.name.indexOf(":");xn<0?zt.prefix="":(zt.name=zt.name.slice(xn+1),zt.prefix=ct.attribute.slice(0,xn)),zt.namespace=m.t[ct.space]}return zt}function At(A,z,Ie){let ct=-1;const zt=[];if(A)for(;++ct<A.length;){const xn=Be(A[ct],Ie);xn.parentNode=z,zt.push(xn)}return zt}function bt(A,z){const Ie=A.position;Ie&&Ie.start&&Ie.end&&((0,s.ok)(typeof Ie.start.offset=="number"),(0,s.ok)(typeof Ie.end.offset=="number"),z.sourceCodeLocation={startLine:Ie.start.line,startCol:Ie.start.column,startOffset:Ie.start.offset,endLine:Ie.end.line,endCol:Ie.end.column,endOffset:Ie.end.offset})}const Tt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Mt=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]),Ot="\uFFFD";var $e;(function(A){A[A.EOF=-1]="EOF",A[A.NULL=0]="NULL",A[A.TABULATION=9]="TABULATION",A[A.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",A[A.LINE_FEED=10]="LINE_FEED",A[A.FORM_FEED=12]="FORM_FEED",A[A.SPACE=32]="SPACE",A[A.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",A[A.QUOTATION_MARK=34]="QUOTATION_MARK",A[A.AMPERSAND=38]="AMPERSAND",A[A.APOSTROPHE=39]="APOSTROPHE",A[A.HYPHEN_MINUS=45]="HYPHEN_MINUS",A[A.SOLIDUS=47]="SOLIDUS",A[A.DIGIT_0=48]="DIGIT_0",A[A.DIGIT_9=57]="DIGIT_9",A[A.SEMICOLON=59]="SEMICOLON",A[A.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",A[A.EQUALS_SIGN=61]="EQUALS_SIGN",A[A.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",A[A.QUESTION_MARK=63]="QUESTION_MARK",A[A.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",A[A.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",A[A.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",A[A.GRAVE_ACCENT=96]="GRAVE_ACCENT",A[A.LATIN_SMALL_A=97]="LATIN_SMALL_A",A[A.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})($e||($e={}));const $t={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function gn(A){return A>=55296&&A<=57343}function Et(A){return A>=56320&&A<=57343}function Mn(A,z){return(A-55296)*1024+9216+z}function qn(A){return A!==32&&A!==10&&A!==13&&A!==9&&A!==12&&A>=1&&A<=31||A>=127&&A<=159}function Zn(A){return A>=64976&&A<=65007||Mt.has(A)}var Bt;(function(A){A.controlCharacterInInputStream="control-character-in-input-stream",A.noncharacterInInputStream="noncharacter-in-input-stream",A.surrogateInInputStream="surrogate-in-input-stream",A.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",A.endTagWithAttributes="end-tag-with-attributes",A.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",A.unexpectedSolidusInTag="unexpected-solidus-in-tag",A.unexpectedNullCharacter="unexpected-null-character",A.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",A.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",A.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",A.missingEndTagName="missing-end-tag-name",A.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",A.unknownNamedCharacterReference="unknown-named-character-reference",A.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",A.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",A.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",A.eofBeforeTagName="eof-before-tag-name",A.eofInTag="eof-in-tag",A.missingAttributeValue="missing-attribute-value",A.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",A.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",A.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",A.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",A.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",A.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",A.missingDoctypePublicIdentifier="missing-doctype-public-identifier",A.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",A.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",A.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",A.cdataInHtmlContent="cdata-in-html-content",A.incorrectlyOpenedComment="incorrectly-opened-comment",A.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",A.eofInDoctype="eof-in-doctype",A.nestedComment="nested-comment",A.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",A.eofInComment="eof-in-comment",A.incorrectlyClosedComment="incorrectly-closed-comment",A.eofInCdata="eof-in-cdata",A.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",A.nullCharacterReference="null-character-reference",A.surrogateCharacterReference="surrogate-character-reference",A.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",A.controlCharacterReference="control-character-reference",A.noncharacterCharacterReference="noncharacter-character-reference",A.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",A.missingDoctypeName="missing-doctype-name",A.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",A.duplicateAttribute="duplicate-attribute",A.nonConformingDoctype="non-conforming-doctype",A.missingDoctype="missing-doctype",A.misplacedDoctype="misplaced-doctype",A.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",A.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",A.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",A.openElementsLeftAfterEof="open-elements-left-after-eof",A.abandonedHeadElementChild="abandoned-head-element-child",A.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",A.nestedNoscriptInHead="nested-noscript-in-head",A.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Bt||(Bt={}));const yr=65536;class vr{constructor(z){this.handler=z,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=yr,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(z,Ie){const{line:ct,col:zt,offset:xn}=this,Hn=zt+Ie,Vr=xn+Ie;return{code:z,startLine:ct,endLine:ct,startCol:Hn,endCol:Hn,startOffset:Vr,endOffset:Vr}}_err(z){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(z,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(z){if(this.pos!==this.html.length-1){const Ie=this.html.charCodeAt(this.pos+1);if(Et(Ie))return this.pos++,this._addGap(),Mn(z,Ie)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$e.EOF;return this._err(Bt.surrogateInInputStream),z}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(z,Ie){this.html.length>0?this.html+=z:this.html=z,this.endOfChunkHit=!1,this.lastChunkWritten=Ie}insertHtmlAtCurrentPos(z){this.html=this.html.substring(0,this.pos+1)+z+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(z,Ie){if(this.pos+z.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(Ie)return this.html.startsWith(z,this.pos);for(let ct=0;ct<z.length;ct++)if((this.html.charCodeAt(this.pos+ct)|32)!==z.charCodeAt(ct))return!1;return!0}peek(z){const Ie=this.pos+z;if(Ie>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$e.EOF;const ct=this.html.charCodeAt(Ie);return ct===$e.CARRIAGE_RETURN?$e.LINE_FEED:ct}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,$e.EOF;let z=this.html.charCodeAt(this.pos);return z===$e.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$e.LINE_FEED):z===$e.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,gn(z)&&(z=this._processSurrogate(z)),this.handler.onParseError===null||z>31&&z<127||z===$e.LINE_FEED||z===$e.CARRIAGE_RETURN||z>159&&z<64976||this._checkForProblematicCharacters(z),z)}_checkForProblematicCharacters(z){qn(z)?this._err(Bt.controlCharacterInInputStream):Zn(z)&&this._err(Bt.noncharacterInInputStream)}retreat(z){for(this.pos-=z;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Un;(function(A){A[A.CHARACTER=0]="CHARACTER",A[A.NULL_CHARACTER=1]="NULL_CHARACTER",A[A.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",A[A.START_TAG=3]="START_TAG",A[A.END_TAG=4]="END_TAG",A[A.COMMENT=5]="COMMENT",A[A.DOCTYPE=6]="DOCTYPE",A[A.EOF=7]="EOF",A[A.HIBERNATION=8]="HIBERNATION"})(Un||(Un={}));function Wn(A,z){for(let Ie=A.attrs.length-1;Ie>=0;Ie--)if(A.attrs[Ie].name===z)return A.attrs[Ie].value;return null}const wr=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(A=>A.charCodeAt(0))),ye=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(A=>A.charCodeAt(0)));var Fn;const wn=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]]),Jn=(Fn=String.fromCodePoint)!==null&&Fn!==void 0?Fn:function(A){let z="";return A>65535&&(A-=65536,z+=String.fromCharCode(A>>>10&1023|55296),A=56320|A&1023),z+=String.fromCharCode(A),z};function Ir(A){var z;return A>=55296&&A<=57343||A>1114111?65533:(z=wn.get(A))!==null&&z!==void 0?z:A}function Wr(A){return Jn(Ir(A))}var cr;(function(A){A[A.NUM=35]="NUM",A[A.SEMI=59]="SEMI",A[A.EQUALS=61]="EQUALS",A[A.ZERO=48]="ZERO",A[A.NINE=57]="NINE",A[A.LOWER_A=97]="LOWER_A",A[A.LOWER_F=102]="LOWER_F",A[A.LOWER_X=120]="LOWER_X",A[A.LOWER_Z=122]="LOWER_Z",A[A.UPPER_A=65]="UPPER_A",A[A.UPPER_F=70]="UPPER_F",A[A.UPPER_Z=90]="UPPER_Z"})(cr||(cr={}));const ro=32;var Kr;(function(A){A[A.VALUE_LENGTH=49152]="VALUE_LENGTH",A[A.BRANCH_LENGTH=16256]="BRANCH_LENGTH",A[A.JUMP_TABLE=127]="JUMP_TABLE"})(Kr||(Kr={}));function oi(A){return A>=cr.ZERO&&A<=cr.NINE}function Kn(A){return A>=cr.UPPER_A&&A<=cr.UPPER_F||A>=cr.LOWER_A&&A<=cr.LOWER_F}function Dn(A){return A>=cr.UPPER_A&&A<=cr.UPPER_Z||A>=cr.LOWER_A&&A<=cr.LOWER_Z||oi(A)}function li(A){return A===cr.EQUALS||Dn(A)}var Nr;(function(A){A[A.EntityStart=0]="EntityStart",A[A.NumericStart=1]="NumericStart",A[A.NumericDecimal=2]="NumericDecimal",A[A.NumericHex=3]="NumericHex",A[A.NamedEntity=4]="NamedEntity"})(Nr||(Nr={}));var Yr;(function(A){A[A.Legacy=0]="Legacy",A[A.Strict=1]="Strict",A[A.Attribute=2]="Attribute"})(Yr||(Yr={}));class mn{constructor(z,Ie,ct){this.decodeTree=z,this.emitCodePoint=Ie,this.errors=ct,this.state=Nr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Yr.Strict}startEntity(z){this.decodeMode=z,this.state=Nr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(z,Ie){switch(this.state){case Nr.EntityStart:return z.charCodeAt(Ie)===cr.NUM?(this.state=Nr.NumericStart,this.consumed+=1,this.stateNumericStart(z,Ie+1)):(this.state=Nr.NamedEntity,this.stateNamedEntity(z,Ie));case Nr.NumericStart:return this.stateNumericStart(z,Ie);case Nr.NumericDecimal:return this.stateNumericDecimal(z,Ie);case Nr.NumericHex:return this.stateNumericHex(z,Ie);case Nr.NamedEntity:return this.stateNamedEntity(z,Ie)}}stateNumericStart(z,Ie){return Ie>=z.length?-1:(z.charCodeAt(Ie)|ro)===cr.LOWER_X?(this.state=Nr.NumericHex,this.consumed+=1,this.stateNumericHex(z,Ie+1)):(this.state=Nr.NumericDecimal,this.stateNumericDecimal(z,Ie))}addToNumericResult(z,Ie,ct,zt){if(Ie!==ct){const xn=ct-Ie;this.result=this.result*Math.pow(zt,xn)+Number.parseInt(z.substr(Ie,xn),zt),this.consumed+=xn}}stateNumericHex(z,Ie){const ct=Ie;for(;Ie<z.length;){const zt=z.charCodeAt(Ie);if(oi(zt)||Kn(zt))Ie+=1;else return this.addToNumericResult(z,ct,Ie,16),this.emitNumericEntity(zt,3)}return this.addToNumericResult(z,ct,Ie,16),-1}stateNumericDecimal(z,Ie){const ct=Ie;for(;Ie<z.length;){const zt=z.charCodeAt(Ie);if(oi(zt))Ie+=1;else return this.addToNumericResult(z,ct,Ie,10),this.emitNumericEntity(zt,2)}return this.addToNumericResult(z,ct,Ie,10),-1}emitNumericEntity(z,Ie){var ct;if(this.consumed<=Ie)return(ct=this.errors)===null||ct===void 0||ct.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(z===cr.SEMI)this.consumed+=1;else if(this.decodeMode===Yr.Strict)return 0;return this.emitCodePoint(Ir(this.result),this.consumed),this.errors&&(z!==cr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(z,Ie){const{decodeTree:ct}=this;let zt=ct[this.treeIndex],xn=(zt&Kr.VALUE_LENGTH)>>14;for(;Ie<z.length;Ie++,this.excess++){const Hn=z.charCodeAt(Ie);if(this.treeIndex=Mr(ct,zt,this.treeIndex+Math.max(1,xn),Hn),this.treeIndex<0)return this.result===0||this.decodeMode===Yr.Attribute&&(xn===0||li(Hn))?0:this.emitNotTerminatedNamedEntity();if(zt=ct[this.treeIndex],xn=(zt&Kr.VALUE_LENGTH)>>14,xn!==0){if(Hn===cr.SEMI)return this.emitNamedEntityData(this.treeIndex,xn,this.consumed+this.excess);this.decodeMode!==Yr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var z;const{result:Ie,decodeTree:ct}=this,zt=(ct[Ie]&Kr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Ie,zt,this.consumed),(z=this.errors)===null||z===void 0||z.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(z,Ie,ct){const{decodeTree:zt}=this;return this.emitCodePoint(Ie===1?zt[z]&~Kr.VALUE_LENGTH:zt[z+1],ct),Ie===3&&this.emitCodePoint(zt[z+2],ct),ct}end(){var z;switch(this.state){case Nr.NamedEntity:return this.result!==0&&(this.decodeMode!==Yr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Nr.NumericDecimal:return this.emitNumericEntity(0,2);case Nr.NumericHex:return this.emitNumericEntity(0,3);case Nr.NumericStart:return(z=this.errors)===null||z===void 0||z.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Nr.EntityStart:return 0}}}function zn(A){let z="";const Ie=new mn(A,ct=>z+=fromCodePoint(ct));return function(zt,xn){let Hn=0,Vr=0;for(;(Vr=zt.indexOf("&",Vr))>=0;){z+=zt.slice(Hn,Vr),Ie.startEntity(xn);const bn=Ie.write(zt,Vr+1);if(bn<0){Hn=Vr+Ie.end();break}Hn=Vr+bn,Vr=bn===0?Hn+1:Hn}const Si=z+zt.slice(Hn);return z="",Si}}function Mr(A,z,Ie,ct){const zt=(z&Kr.BRANCH_LENGTH)>>7,xn=z&Kr.JUMP_TABLE;if(zt===0)return xn!==0&&ct===xn?Ie:-1;if(xn){const Si=ct-xn;return Si<0||Si>=zt?-1:A[Ie+Si]-1}let Hn=Ie,Vr=Hn+zt-1;for(;Hn<=Vr;){const Si=Hn+Vr>>>1,bn=A[Si];if(bn<ct)Hn=Si+1;else if(bn>ct)Vr=Si-1;else return A[Si+zt]}return-1}const Ci=null,vi=null;function nt(A,z=Yr.Legacy){return Ci(A,z)}function vt(A){return Ci(A,Yr.Attribute)}function hn(A){return Ci(A,Yr.Strict)}function yn(A){return vi(A,Yr.Strict)}var dt;(function(A){A.HTML="http://www.w3.org/1999/xhtml",A.MATHML="http://www.w3.org/1998/Math/MathML",A.SVG="http://www.w3.org/2000/svg",A.XLINK="http://www.w3.org/1999/xlink",A.XML="http://www.w3.org/XML/1998/namespace",A.XMLNS="http://www.w3.org/2000/xmlns/"})(dt||(dt={}));var on;(function(A){A.TYPE="type",A.ACTION="action",A.ENCODING="encoding",A.PROMPT="prompt",A.NAME="name",A.COLOR="color",A.FACE="face",A.SIZE="size"})(on||(on={}));var kn;(function(A){A.NO_QUIRKS="no-quirks",A.QUIRKS="quirks",A.LIMITED_QUIRKS="limited-quirks"})(kn||(kn={}));var _t;(function(A){A.A="a",A.ADDRESS="address",A.ANNOTATION_XML="annotation-xml",A.APPLET="applet",A.AREA="area",A.ARTICLE="article",A.ASIDE="aside",A.B="b",A.BASE="base",A.BASEFONT="basefont",A.BGSOUND="bgsound",A.BIG="big",A.BLOCKQUOTE="blockquote",A.BODY="body",A.BR="br",A.BUTTON="button",A.CAPTION="caption",A.CENTER="center",A.CODE="code",A.COL="col",A.COLGROUP="colgroup",A.DD="dd",A.DESC="desc",A.DETAILS="details",A.DIALOG="dialog",A.DIR="dir",A.DIV="div",A.DL="dl",A.DT="dt",A.EM="em",A.EMBED="embed",A.FIELDSET="fieldset",A.FIGCAPTION="figcaption",A.FIGURE="figure",A.FONT="font",A.FOOTER="footer",A.FOREIGN_OBJECT="foreignObject",A.FORM="form",A.FRAME="frame",A.FRAMESET="frameset",A.H1="h1",A.H2="h2",A.H3="h3",A.H4="h4",A.H5="h5",A.H6="h6",A.HEAD="head",A.HEADER="header",A.HGROUP="hgroup",A.HR="hr",A.HTML="html",A.I="i",A.IMG="img",A.IMAGE="image",A.INPUT="input",A.IFRAME="iframe",A.KEYGEN="keygen",A.LABEL="label",A.LI="li",A.LINK="link",A.LISTING="listing",A.MAIN="main",A.MALIGNMARK="malignmark",A.MARQUEE="marquee",A.MATH="math",A.MENU="menu",A.META="meta",A.MGLYPH="mglyph",A.MI="mi",A.MO="mo",A.MN="mn",A.MS="ms",A.MTEXT="mtext",A.NAV="nav",A.NOBR="nobr",A.NOFRAMES="noframes",A.NOEMBED="noembed",A.NOSCRIPT="noscript",A.OBJECT="object",A.OL="ol",A.OPTGROUP="optgroup",A.OPTION="option",A.P="p",A.PARAM="param",A.PLAINTEXT="plaintext",A.PRE="pre",A.RB="rb",A.RP="rp",A.RT="rt",A.RTC="rtc",A.RUBY="ruby",A.S="s",A.SCRIPT="script",A.SEARCH="search",A.SECTION="section",A.SELECT="select",A.SOURCE="source",A.SMALL="small",A.SPAN="span",A.STRIKE="strike",A.STRONG="strong",A.STYLE="style",A.SUB="sub",A.SUMMARY="summary",A.SUP="sup",A.TABLE="table",A.TBODY="tbody",A.TEMPLATE="template",A.TEXTAREA="textarea",A.TFOOT="tfoot",A.TD="td",A.TH="th",A.THEAD="thead",A.TITLE="title",A.TR="tr",A.TRACK="track",A.TT="tt",A.U="u",A.UL="ul",A.SVG="svg",A.VAR="var",A.WBR="wbr",A.XMP="xmp"})(_t||(_t={}));var we;(function(A){A[A.UNKNOWN=0]="UNKNOWN",A[A.A=1]="A",A[A.ADDRESS=2]="ADDRESS",A[A.ANNOTATION_XML=3]="ANNOTATION_XML",A[A.APPLET=4]="APPLET",A[A.AREA=5]="AREA",A[A.ARTICLE=6]="ARTICLE",A[A.ASIDE=7]="ASIDE",A[A.B=8]="B",A[A.BASE=9]="BASE",A[A.BASEFONT=10]="BASEFONT",A[A.BGSOUND=11]="BGSOUND",A[A.BIG=12]="BIG",A[A.BLOCKQUOTE=13]="BLOCKQUOTE",A[A.BODY=14]="BODY",A[A.BR=15]="BR",A[A.BUTTON=16]="BUTTON",A[A.CAPTION=17]="CAPTION",A[A.CENTER=18]="CENTER",A[A.CODE=19]="CODE",A[A.COL=20]="COL",A[A.COLGROUP=21]="COLGROUP",A[A.DD=22]="DD",A[A.DESC=23]="DESC",A[A.DETAILS=24]="DETAILS",A[A.DIALOG=25]="DIALOG",A[A.DIR=26]="DIR",A[A.DIV=27]="DIV",A[A.DL=28]="DL",A[A.DT=29]="DT",A[A.EM=30]="EM",A[A.EMBED=31]="EMBED",A[A.FIELDSET=32]="FIELDSET",A[A.FIGCAPTION=33]="FIGCAPTION",A[A.FIGURE=34]="FIGURE",A[A.FONT=35]="FONT",A[A.FOOTER=36]="FOOTER",A[A.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",A[A.FORM=38]="FORM",A[A.FRAME=39]="FRAME",A[A.FRAMESET=40]="FRAMESET",A[A.H1=41]="H1",A[A.H2=42]="H2",A[A.H3=43]="H3",A[A.H4=44]="H4",A[A.H5=45]="H5",A[A.H6=46]="H6",A[A.HEAD=47]="HEAD",A[A.HEADER=48]="HEADER",A[A.HGROUP=49]="HGROUP",A[A.HR=50]="HR",A[A.HTML=51]="HTML",A[A.I=52]="I",A[A.IMG=53]="IMG",A[A.IMAGE=54]="IMAGE",A[A.INPUT=55]="INPUT",A[A.IFRAME=56]="IFRAME",A[A.KEYGEN=57]="KEYGEN",A[A.LABEL=58]="LABEL",A[A.LI=59]="LI",A[A.LINK=60]="LINK",A[A.LISTING=61]="LISTING",A[A.MAIN=62]="MAIN",A[A.MALIGNMARK=63]="MALIGNMARK",A[A.MARQUEE=64]="MARQUEE",A[A.MATH=65]="MATH",A[A.MENU=66]="MENU",A[A.META=67]="META",A[A.MGLYPH=68]="MGLYPH",A[A.MI=69]="MI",A[A.MO=70]="MO",A[A.MN=71]="MN",A[A.MS=72]="MS",A[A.MTEXT=73]="MTEXT",A[A.NAV=74]="NAV",A[A.NOBR=75]="NOBR",A[A.NOFRAMES=76]="NOFRAMES",A[A.NOEMBED=77]="NOEMBED",A[A.NOSCRIPT=78]="NOSCRIPT",A[A.OBJECT=79]="OBJECT",A[A.OL=80]="OL",A[A.OPTGROUP=81]="OPTGROUP",A[A.OPTION=82]="OPTION",A[A.P=83]="P",A[A.PARAM=84]="PARAM",A[A.PLAINTEXT=85]="PLAINTEXT",A[A.PRE=86]="PRE",A[A.RB=87]="RB",A[A.RP=88]="RP",A[A.RT=89]="RT",A[A.RTC=90]="RTC",A[A.RUBY=91]="RUBY",A[A.S=92]="S",A[A.SCRIPT=93]="SCRIPT",A[A.SEARCH=94]="SEARCH",A[A.SECTION=95]="SECTION",A[A.SELECT=96]="SELECT",A[A.SOURCE=97]="SOURCE",A[A.SMALL=98]="SMALL",A[A.SPAN=99]="SPAN",A[A.STRIKE=100]="STRIKE",A[A.STRONG=101]="STRONG",A[A.STYLE=102]="STYLE",A[A.SUB=103]="SUB",A[A.SUMMARY=104]="SUMMARY",A[A.SUP=105]="SUP",A[A.TABLE=106]="TABLE",A[A.TBODY=107]="TBODY",A[A.TEMPLATE=108]="TEMPLATE",A[A.TEXTAREA=109]="TEXTAREA",A[A.TFOOT=110]="TFOOT",A[A.TD=111]="TD",A[A.TH=112]="TH",A[A.THEAD=113]="THEAD",A[A.TITLE=114]="TITLE",A[A.TR=115]="TR",A[A.TRACK=116]="TRACK",A[A.TT=117]="TT",A[A.U=118]="U",A[A.UL=119]="UL",A[A.SVG=120]="SVG",A[A.VAR=121]="VAR",A[A.WBR=122]="WBR",A[A.XMP=123]="XMP"})(we||(we={}));const An=new Map([[_t.A,we.A],[_t.ADDRESS,we.ADDRESS],[_t.ANNOTATION_XML,we.ANNOTATION_XML],[_t.APPLET,we.APPLET],[_t.AREA,we.AREA],[_t.ARTICLE,we.ARTICLE],[_t.ASIDE,we.ASIDE],[_t.B,we.B],[_t.BASE,we.BASE],[_t.BASEFONT,we.BASEFONT],[_t.BGSOUND,we.BGSOUND],[_t.BIG,we.BIG],[_t.BLOCKQUOTE,we.BLOCKQUOTE],[_t.BODY,we.BODY],[_t.BR,we.BR],[_t.BUTTON,we.BUTTON],[_t.CAPTION,we.CAPTION],[_t.CENTER,we.CENTER],[_t.CODE,we.CODE],[_t.COL,we.COL],[_t.COLGROUP,we.COLGROUP],[_t.DD,we.DD],[_t.DESC,we.DESC],[_t.DETAILS,we.DETAILS],[_t.DIALOG,we.DIALOG],[_t.DIR,we.DIR],[_t.DIV,we.DIV],[_t.DL,we.DL],[_t.DT,we.DT],[_t.EM,we.EM],[_t.EMBED,we.EMBED],[_t.FIELDSET,we.FIELDSET],[_t.FIGCAPTION,we.FIGCAPTION],[_t.FIGURE,we.FIGURE],[_t.FONT,we.FONT],[_t.FOOTER,we.FOOTER],[_t.FOREIGN_OBJECT,we.FOREIGN_OBJECT],[_t.FORM,we.FORM],[_t.FRAME,we.FRAME],[_t.FRAMESET,we.FRAMESET],[_t.H1,we.H1],[_t.H2,we.H2],[_t.H3,we.H3],[_t.H4,we.H4],[_t.H5,we.H5],[_t.H6,we.H6],[_t.HEAD,we.HEAD],[_t.HEADER,we.HEADER],[_t.HGROUP,we.HGROUP],[_t.HR,we.HR],[_t.HTML,we.HTML],[_t.I,we.I],[_t.IMG,we.IMG],[_t.IMAGE,we.IMAGE],[_t.INPUT,we.INPUT],[_t.IFRAME,we.IFRAME],[_t.KEYGEN,we.KEYGEN],[_t.LABEL,we.LABEL],[_t.LI,we.LI],[_t.LINK,we.LINK],[_t.LISTING,we.LISTING],[_t.MAIN,we.MAIN],[_t.MALIGNMARK,we.MALIGNMARK],[_t.MARQUEE,we.MARQUEE],[_t.MATH,we.MATH],[_t.MENU,we.MENU],[_t.META,we.META],[_t.MGLYPH,we.MGLYPH],[_t.MI,we.MI],[_t.MO,we.MO],[_t.MN,we.MN],[_t.MS,we.MS],[_t.MTEXT,we.MTEXT],[_t.NAV,we.NAV],[_t.NOBR,we.NOBR],[_t.NOFRAMES,we.NOFRAMES],[_t.NOEMBED,we.NOEMBED],[_t.NOSCRIPT,we.NOSCRIPT],[_t.OBJECT,we.OBJECT],[_t.OL,we.OL],[_t.OPTGROUP,we.OPTGROUP],[_t.OPTION,we.OPTION],[_t.P,we.P],[_t.PARAM,we.PARAM],[_t.PLAINTEXT,we.PLAINTEXT],[_t.PRE,we.PRE],[_t.RB,we.RB],[_t.RP,we.RP],[_t.RT,we.RT],[_t.RTC,we.RTC],[_t.RUBY,we.RUBY],[_t.S,we.S],[_t.SCRIPT,we.SCRIPT],[_t.SEARCH,we.SEARCH],[_t.SECTION,we.SECTION],[_t.SELECT,we.SELECT],[_t.SOURCE,we.SOURCE],[_t.SMALL,we.SMALL],[_t.SPAN,we.SPAN],[_t.STRIKE,we.STRIKE],[_t.STRONG,we.STRONG],[_t.STYLE,we.STYLE],[_t.SUB,we.SUB],[_t.SUMMARY,we.SUMMARY],[_t.SUP,we.SUP],[_t.TABLE,we.TABLE],[_t.TBODY,we.TBODY],[_t.TEMPLATE,we.TEMPLATE],[_t.TEXTAREA,we.TEXTAREA],[_t.TFOOT,we.TFOOT],[_t.TD,we.TD],[_t.TH,we.TH],[_t.THEAD,we.THEAD],[_t.TITLE,we.TITLE],[_t.TR,we.TR],[_t.TRACK,we.TRACK],[_t.TT,we.TT],[_t.U,we.U],[_t.UL,we.UL],[_t.SVG,we.SVG],[_t.VAR,we.VAR],[_t.WBR,we.WBR],[_t.XMP,we.XMP]]);function Nn(A){var z;return(z=An.get(A))!==null&&z!==void 0?z:we.UNKNOWN}const Ft=we,hr={[dt.HTML]:new Set([Ft.ADDRESS,Ft.APPLET,Ft.AREA,Ft.ARTICLE,Ft.ASIDE,Ft.BASE,Ft.BASEFONT,Ft.BGSOUND,Ft.BLOCKQUOTE,Ft.BODY,Ft.BR,Ft.BUTTON,Ft.CAPTION,Ft.CENTER,Ft.COL,Ft.COLGROUP,Ft.DD,Ft.DETAILS,Ft.DIR,Ft.DIV,Ft.DL,Ft.DT,Ft.EMBED,Ft.FIELDSET,Ft.FIGCAPTION,Ft.FIGURE,Ft.FOOTER,Ft.FORM,Ft.FRAME,Ft.FRAMESET,Ft.H1,Ft.H2,Ft.H3,Ft.H4,Ft.H5,Ft.H6,Ft.HEAD,Ft.HEADER,Ft.HGROUP,Ft.HR,Ft.HTML,Ft.IFRAME,Ft.IMG,Ft.INPUT,Ft.LI,Ft.LINK,Ft.LISTING,Ft.MAIN,Ft.MARQUEE,Ft.MENU,Ft.META,Ft.NAV,Ft.NOEMBED,Ft.NOFRAMES,Ft.NOSCRIPT,Ft.OBJECT,Ft.OL,Ft.P,Ft.PARAM,Ft.PLAINTEXT,Ft.PRE,Ft.SCRIPT,Ft.SECTION,Ft.SELECT,Ft.SOURCE,Ft.STYLE,Ft.SUMMARY,Ft.TABLE,Ft.TBODY,Ft.TD,Ft.TEMPLATE,Ft.TEXTAREA,Ft.TFOOT,Ft.TH,Ft.THEAD,Ft.TITLE,Ft.TR,Ft.TRACK,Ft.UL,Ft.WBR,Ft.XMP]),[dt.MATHML]:new Set([Ft.MI,Ft.MO,Ft.MN,Ft.MS,Ft.MTEXT,Ft.ANNOTATION_XML]),[dt.SVG]:new Set([Ft.TITLE,Ft.FOREIGN_OBJECT,Ft.DESC]),[dt.XLINK]:new Set,[dt.XML]:new Set,[dt.XMLNS]:new Set},Xn=new Set([Ft.H1,Ft.H2,Ft.H3,Ft.H4,Ft.H5,Ft.H6]),or=new Set([_t.STYLE,_t.SCRIPT,_t.XMP,_t.IFRAME,_t.NOEMBED,_t.NOFRAMES,_t.PLAINTEXT]);function Tn(A,z){return or.has(A)||z&&A===_t.NOSCRIPT}var mt;(function(A){A[A.DATA=0]="DATA",A[A.RCDATA=1]="RCDATA",A[A.RAWTEXT=2]="RAWTEXT",A[A.SCRIPT_DATA=3]="SCRIPT_DATA",A[A.PLAINTEXT=4]="PLAINTEXT",A[A.TAG_OPEN=5]="TAG_OPEN",A[A.END_TAG_OPEN=6]="END_TAG_OPEN",A[A.TAG_NAME=7]="TAG_NAME",A[A.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",A[A.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",A[A.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",A[A.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",A[A.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",A[A.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",A[A.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",A[A.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",A[A.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",A[A.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",A[A.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",A[A.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",A[A.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",A[A.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",A[A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",A[A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",A[A.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",A[A.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",A[A.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",A[A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",A[A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",A[A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",A[A.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",A[A.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",A[A.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",A[A.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",A[A.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",A[A.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",A[A.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",A[A.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",A[A.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",A[A.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",A[A.BOGUS_COMMENT=40]="BOGUS_COMMENT",A[A.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",A[A.COMMENT_START=42]="COMMENT_START",A[A.COMMENT_START_DASH=43]="COMMENT_START_DASH",A[A.COMMENT=44]="COMMENT",A[A.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",A[A.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",A[A.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",A[A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",A[A.COMMENT_END_DASH=49]="COMMENT_END_DASH",A[A.COMMENT_END=50]="COMMENT_END",A[A.COMMENT_END_BANG=51]="COMMENT_END_BANG",A[A.DOCTYPE=52]="DOCTYPE",A[A.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",A[A.DOCTYPE_NAME=54]="DOCTYPE_NAME",A[A.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",A[A.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",A[A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",A[A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",A[A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",A[A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",A[A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",A[A.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",A[A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",A[A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",A[A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",A[A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",A[A.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",A[A.CDATA_SECTION=68]="CDATA_SECTION",A[A.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",A[A.CDATA_SECTION_END=70]="CDATA_SECTION_END",A[A.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",A[A.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(mt||(mt={}));const fr={DATA:mt.DATA,RCDATA:mt.RCDATA,RAWTEXT:mt.RAWTEXT,SCRIPT_DATA:mt.SCRIPT_DATA,PLAINTEXT:mt.PLAINTEXT,CDATA_SECTION:mt.CDATA_SECTION};function Li(A){return A>=$e.DIGIT_0&&A<=$e.DIGIT_9}function Ut(A){return A>=$e.LATIN_CAPITAL_A&&A<=$e.LATIN_CAPITAL_Z}function wi(A){return A>=$e.LATIN_SMALL_A&&A<=$e.LATIN_SMALL_Z}function Mi(A){return wi(A)||Ut(A)}function Or(A){return Mi(A)||Li(A)}function Di(A){return A+32}function ii(A){return A===$e.SPACE||A===$e.LINE_FEED||A===$e.TABULATION||A===$e.FORM_FEED}function ui(A){return ii(A)||A===$e.SOLIDUS||A===$e.GREATER_THAN_SIGN}function $r(A){return A===$e.NULL?Bt.nullCharacterReference:A>1114111?Bt.characterReferenceOutsideUnicodeRange:gn(A)?Bt.surrogateCharacterReference:Zn(A)?Bt.noncharacterCharacterReference:qn(A)||A===$e.CARRIAGE_RETURN?Bt.controlCharacterReference:null}class ti{constructor(z,Ie){this.options=z,this.handler=Ie,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=mt.DATA,this.returnState=mt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new vr(Ie),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new mn(wr,(ct,zt)=>{this.preprocessor.pos=this.entityStartPos+zt-1,this._flushCodePointConsumedAsCharacterReference(ct)},Ie.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Bt.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:ct=>{this._err(Bt.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+ct)},validateNumericCharacterReference:ct=>{const zt=$r(ct);zt&&this._err(zt,1)}}:void 0)}_err(z,Ie=0){var ct,zt;(zt=(ct=this.handler).onParseError)===null||zt===void 0||zt.call(ct,this.preprocessor.getError(z,Ie))}getCurrentLocation(z){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-z,startOffset:this.preprocessor.offset-z,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const z=this._consume();this._ensureHibernation()||this._callState(z)}this.inLoop=!1}}pause(){this.paused=!0}resume(z){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||z==null||z())}write(z,Ie,ct){this.active=!0,this.preprocessor.write(z,Ie),this._runParsingLoop(),this.paused||ct==null||ct()}insertHtmlAtCurrentPos(z){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(z),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(z){this.consumedAfterSnapshot+=z;for(let Ie=0;Ie<z;Ie++)this.preprocessor.advance()}_consumeSequenceIfMatch(z,Ie){return this.preprocessor.startsWith(z,Ie)?(this._advanceBy(z.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Un.START_TAG,tagName:"",tagID:we.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Un.END_TAG,tagName:"",tagID:we.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(z){this.currentToken={type:Un.COMMENT,data:"",location:this.getCurrentLocation(z)}}_createDoctypeToken(z){this.currentToken={type:Un.DOCTYPE,name:z,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(z,Ie){this.currentCharacterToken={type:z,chars:Ie,location:this.currentLocation}}_createAttr(z){this.currentAttr={name:z,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var z,Ie;const ct=this.currentToken;if(Wn(ct,this.currentAttr.name)===null){if(ct.attrs.push(this.currentAttr),ct.location&&this.currentLocation){const zt=(z=(Ie=ct.location).attrs)!==null&&z!==void 0?z:Ie.attrs=Object.create(null);zt[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Bt.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(z){this._emitCurrentCharacterToken(z.location),this.currentToken=null,z.location&&(z.location.endLine=this.preprocessor.line,z.location.endCol=this.preprocessor.col+1,z.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const z=this.currentToken;this.prepareToken(z),z.tagID=Nn(z.tagName),z.type===Un.START_TAG?(this.lastStartTagName=z.tagName,this.handler.onStartTag(z)):(z.attrs.length>0&&this._err(Bt.endTagWithAttributes),z.selfClosing&&this._err(Bt.endTagWithTrailingSolidus),this.handler.onEndTag(z)),this.preprocessor.dropParsedChunk()}emitCurrentComment(z){this.prepareToken(z),this.handler.onComment(z),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(z){this.prepareToken(z),this.handler.onDoctype(z),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(z){if(this.currentCharacterToken){switch(z&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=z.startLine,this.currentCharacterToken.location.endCol=z.startCol,this.currentCharacterToken.location.endOffset=z.startOffset),this.currentCharacterToken.type){case Un.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Un.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Un.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const z=this.getCurrentLocation(0);z&&(z.endLine=z.startLine,z.endCol=z.startCol,z.endOffset=z.startOffset),this._emitCurrentCharacterToken(z),this.handler.onEof({type:Un.EOF,location:z}),this.active=!1}_appendCharToCurrentCharacterToken(z,Ie){if(this.currentCharacterToken)if(this.currentCharacterToken.type===z){this.currentCharacterToken.chars+=Ie;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(z,Ie)}_emitCodePoint(z){const Ie=ii(z)?Un.WHITESPACE_CHARACTER:z===$e.NULL?Un.NULL_CHARACTER:Un.CHARACTER;this._appendCharToCurrentCharacterToken(Ie,String.fromCodePoint(z))}_emitChars(z){this._appendCharToCurrentCharacterToken(Un.CHARACTER,z)}_startCharacterReference(){this.returnState=this.state,this.state=mt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Yr.Attribute:Yr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===mt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===mt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===mt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(z){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(z):this._emitCodePoint(z)}_callState(z){switch(this.state){case mt.DATA:{this._stateData(z);break}case mt.RCDATA:{this._stateRcdata(z);break}case mt.RAWTEXT:{this._stateRawtext(z);break}case mt.SCRIPT_DATA:{this._stateScriptData(z);break}case mt.PLAINTEXT:{this._statePlaintext(z);break}case mt.TAG_OPEN:{this._stateTagOpen(z);break}case mt.END_TAG_OPEN:{this._stateEndTagOpen(z);break}case mt.TAG_NAME:{this._stateTagName(z);break}case mt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(z);break}case mt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(z);break}case mt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(z);break}case mt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(z);break}case mt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(z);break}case mt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(z);break}case mt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(z);break}case mt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(z);break}case mt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(z);break}case mt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(z);break}case mt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(z);break}case mt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(z);break}case mt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(z);break}case mt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(z);break}case mt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(z);break}case mt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(z);break}case mt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(z);break}case mt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(z);break}case mt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(z);break}case mt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(z);break}case mt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(z);break}case mt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(z);break}case mt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(z);break}case mt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(z);break}case mt.ATTRIBUTE_NAME:{this._stateAttributeName(z);break}case mt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(z);break}case mt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(z);break}case mt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(z);break}case mt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(z);break}case mt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(z);break}case mt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(z);break}case mt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(z);break}case mt.BOGUS_COMMENT:{this._stateBogusComment(z);break}case mt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(z);break}case mt.COMMENT_START:{this._stateCommentStart(z);break}case mt.COMMENT_START_DASH:{this._stateCommentStartDash(z);break}case mt.COMMENT:{this._stateComment(z);break}case mt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(z);break}case mt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(z);break}case mt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(z);break}case mt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(z);break}case mt.COMMENT_END_DASH:{this._stateCommentEndDash(z);break}case mt.COMMENT_END:{this._stateCommentEnd(z);break}case mt.COMMENT_END_BANG:{this._stateCommentEndBang(z);break}case mt.DOCTYPE:{this._stateDoctype(z);break}case mt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(z);break}case mt.DOCTYPE_NAME:{this._stateDoctypeName(z);break}case mt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(z);break}case mt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(z);break}case mt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(z);break}case mt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(z);break}case mt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(z);break}case mt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(z);break}case mt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(z);break}case mt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(z);break}case mt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(z);break}case mt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(z);break}case mt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(z);break}case mt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(z);break}case mt.BOGUS_DOCTYPE:{this._stateBogusDoctype(z);break}case mt.CDATA_SECTION:{this._stateCdataSection(z);break}case mt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(z);break}case mt.CDATA_SECTION_END:{this._stateCdataSectionEnd(z);break}case mt.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case mt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(z);break}default:throw new Error("Unknown state")}}_stateData(z){switch(z){case $e.LESS_THAN_SIGN:{this.state=mt.TAG_OPEN;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this._emitCodePoint(z);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(z)}}_stateRcdata(z){switch(z){case $e.AMPERSAND:{this._startCharacterReference();break}case $e.LESS_THAN_SIGN:{this.state=mt.RCDATA_LESS_THAN_SIGN;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this._emitChars(Ot);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(z)}}_stateRawtext(z){switch(z){case $e.LESS_THAN_SIGN:{this.state=mt.RAWTEXT_LESS_THAN_SIGN;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this._emitChars(Ot);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(z)}}_stateScriptData(z){switch(z){case $e.LESS_THAN_SIGN:{this.state=mt.SCRIPT_DATA_LESS_THAN_SIGN;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this._emitChars(Ot);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(z)}}_statePlaintext(z){switch(z){case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this._emitChars(Ot);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(z)}}_stateTagOpen(z){if(Mi(z))this._createStartTagToken(),this.state=mt.TAG_NAME,this._stateTagName(z);else switch(z){case $e.EXCLAMATION_MARK:{this.state=mt.MARKUP_DECLARATION_OPEN;break}case $e.SOLIDUS:{this.state=mt.END_TAG_OPEN;break}case $e.QUESTION_MARK:{this._err(Bt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=mt.BOGUS_COMMENT,this._stateBogusComment(z);break}case $e.EOF:{this._err(Bt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Bt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=mt.DATA,this._stateData(z)}}_stateEndTagOpen(z){if(Mi(z))this._createEndTagToken(),this.state=mt.TAG_NAME,this._stateTagName(z);else switch(z){case $e.GREATER_THAN_SIGN:{this._err(Bt.missingEndTagName),this.state=mt.DATA;break}case $e.EOF:{this._err(Bt.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Bt.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=mt.BOGUS_COMMENT,this._stateBogusComment(z)}}_stateTagName(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=mt.BEFORE_ATTRIBUTE_NAME;break}case $e.SOLIDUS:{this.state=mt.SELF_CLOSING_START_TAG;break}case $e.GREATER_THAN_SIGN:{this.state=mt.DATA,this.emitCurrentTagToken();break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),Ie.tagName+=Ot;break}case $e.EOF:{this._err(Bt.eofInTag),this._emitEOFToken();break}default:Ie.tagName+=String.fromCodePoint(Ut(z)?Di(z):z)}}_stateRcdataLessThanSign(z){z===$e.SOLIDUS?this.state=mt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=mt.RCDATA,this._stateRcdata(z))}_stateRcdataEndTagOpen(z){Mi(z)?(this.state=mt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(z)):(this._emitChars("</"),this.state=mt.RCDATA,this._stateRcdata(z))}handleSpecialEndTag(z){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const Ie=this.currentToken;switch(Ie.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=mt.BEFORE_ATTRIBUTE_NAME,!1;case $e.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=mt.SELF_CLOSING_START_TAG,!1;case $e.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=mt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(z){this.handleSpecialEndTag(z)&&(this._emitChars("</"),this.state=mt.RCDATA,this._stateRcdata(z))}_stateRawtextLessThanSign(z){z===$e.SOLIDUS?this.state=mt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=mt.RAWTEXT,this._stateRawtext(z))}_stateRawtextEndTagOpen(z){Mi(z)?(this.state=mt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(z)):(this._emitChars("</"),this.state=mt.RAWTEXT,this._stateRawtext(z))}_stateRawtextEndTagName(z){this.handleSpecialEndTag(z)&&(this._emitChars("</"),this.state=mt.RAWTEXT,this._stateRawtext(z))}_stateScriptDataLessThanSign(z){switch(z){case $e.SOLIDUS:{this.state=mt.SCRIPT_DATA_END_TAG_OPEN;break}case $e.EXCLAMATION_MARK:{this.state=mt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=mt.SCRIPT_DATA,this._stateScriptData(z)}}_stateScriptDataEndTagOpen(z){Mi(z)?(this.state=mt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(z)):(this._emitChars("</"),this.state=mt.SCRIPT_DATA,this._stateScriptData(z))}_stateScriptDataEndTagName(z){this.handleSpecialEndTag(z)&&(this._emitChars("</"),this.state=mt.SCRIPT_DATA,this._stateScriptData(z))}_stateScriptDataEscapeStart(z){z===$e.HYPHEN_MINUS?(this.state=mt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=mt.SCRIPT_DATA,this._stateScriptData(z))}_stateScriptDataEscapeStartDash(z){z===$e.HYPHEN_MINUS?(this.state=mt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=mt.SCRIPT_DATA,this._stateScriptData(z))}_stateScriptDataEscaped(z){switch(z){case $e.HYPHEN_MINUS:{this.state=mt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=mt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this._emitChars(Ot);break}case $e.EOF:{this._err(Bt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(z)}}_stateScriptDataEscapedDash(z){switch(z){case $e.HYPHEN_MINUS:{this.state=mt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=mt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this.state=mt.SCRIPT_DATA_ESCAPED,this._emitChars(Ot);break}case $e.EOF:{this._err(Bt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=mt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(z)}}_stateScriptDataEscapedDashDash(z){switch(z){case $e.HYPHEN_MINUS:{this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=mt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $e.GREATER_THAN_SIGN:{this.state=mt.SCRIPT_DATA,this._emitChars(">");break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this.state=mt.SCRIPT_DATA_ESCAPED,this._emitChars(Ot);break}case $e.EOF:{this._err(Bt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=mt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(z)}}_stateScriptDataEscapedLessThanSign(z){z===$e.SOLIDUS?this.state=mt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mi(z)?(this._emitChars("<"),this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(z)):(this._emitChars("<"),this.state=mt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(z))}_stateScriptDataEscapedEndTagOpen(z){Mi(z)?(this.state=mt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(z)):(this._emitChars("</"),this.state=mt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(z))}_stateScriptDataEscapedEndTagName(z){this.handleSpecialEndTag(z)&&(this._emitChars("</"),this.state=mt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(z))}_stateScriptDataDoubleEscapeStart(z){if(this.preprocessor.startsWith($t.SCRIPT,!1)&&ui(this.preprocessor.peek($t.SCRIPT.length))){this._emitCodePoint(z);for(let Ie=0;Ie<$t.SCRIPT.length;Ie++)this._emitCodePoint(this._consume());this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=mt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(z))}_stateScriptDataDoubleEscaped(z){switch(z){case $e.HYPHEN_MINUS:{this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this._emitChars(Ot);break}case $e.EOF:{this._err(Bt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(z)}}_stateScriptDataDoubleEscapedDash(z){switch(z){case $e.HYPHEN_MINUS:{this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ot);break}case $e.EOF:{this._err(Bt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(z)}}_stateScriptDataDoubleEscapedDashDash(z){switch(z){case $e.HYPHEN_MINUS:{this._emitChars("-");break}case $e.LESS_THAN_SIGN:{this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $e.GREATER_THAN_SIGN:{this.state=mt.SCRIPT_DATA,this._emitChars(">");break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ot);break}case $e.EOF:{this._err(Bt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(z)}}_stateScriptDataDoubleEscapedLessThanSign(z){z===$e.SOLIDUS?(this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(z))}_stateScriptDataDoubleEscapeEnd(z){if(this.preprocessor.startsWith($t.SCRIPT,!1)&&ui(this.preprocessor.peek($t.SCRIPT.length))){this._emitCodePoint(z);for(let Ie=0;Ie<$t.SCRIPT.length;Ie++)this._emitCodePoint(this._consume());this.state=mt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=mt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(z))}_stateBeforeAttributeName(z){switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.SOLIDUS:case $e.GREATER_THAN_SIGN:case $e.EOF:{this.state=mt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(z);break}case $e.EQUALS_SIGN:{this._err(Bt.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=mt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=mt.ATTRIBUTE_NAME,this._stateAttributeName(z)}}_stateAttributeName(z){switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:case $e.SOLIDUS:case $e.GREATER_THAN_SIGN:case $e.EOF:{this._leaveAttrName(),this.state=mt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(z);break}case $e.EQUALS_SIGN:{this._leaveAttrName(),this.state=mt.BEFORE_ATTRIBUTE_VALUE;break}case $e.QUOTATION_MARK:case $e.APOSTROPHE:case $e.LESS_THAN_SIGN:{this._err(Bt.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(z);break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this.currentAttr.name+=Ot;break}default:this.currentAttr.name+=String.fromCodePoint(Ut(z)?Di(z):z)}}_stateAfterAttributeName(z){switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.SOLIDUS:{this.state=mt.SELF_CLOSING_START_TAG;break}case $e.EQUALS_SIGN:{this.state=mt.BEFORE_ATTRIBUTE_VALUE;break}case $e.GREATER_THAN_SIGN:{this.state=mt.DATA,this.emitCurrentTagToken();break}case $e.EOF:{this._err(Bt.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=mt.ATTRIBUTE_NAME,this._stateAttributeName(z)}}_stateBeforeAttributeValue(z){switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.QUOTATION_MARK:{this.state=mt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{this.state=mt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.missingAttributeValue),this.state=mt.DATA,this.emitCurrentTagToken();break}default:this.state=mt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(z)}}_stateAttributeValueDoubleQuoted(z){switch(z){case $e.QUOTATION_MARK:{this.state=mt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this.currentAttr.value+=Ot;break}case $e.EOF:{this._err(Bt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(z)}}_stateAttributeValueSingleQuoted(z){switch(z){case $e.APOSTROPHE:{this.state=mt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this.currentAttr.value+=Ot;break}case $e.EOF:{this._err(Bt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(z)}}_stateAttributeValueUnquoted(z){switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this._leaveAttrValue(),this.state=mt.BEFORE_ATTRIBUTE_NAME;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=mt.DATA,this.emitCurrentTagToken();break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this.currentAttr.value+=Ot;break}case $e.QUOTATION_MARK:case $e.APOSTROPHE:case $e.LESS_THAN_SIGN:case $e.EQUALS_SIGN:case $e.GRAVE_ACCENT:{this._err(Bt.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(z);break}case $e.EOF:{this._err(Bt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(z)}}_stateAfterAttributeValueQuoted(z){switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this._leaveAttrValue(),this.state=mt.BEFORE_ATTRIBUTE_NAME;break}case $e.SOLIDUS:{this._leaveAttrValue(),this.state=mt.SELF_CLOSING_START_TAG;break}case $e.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=mt.DATA,this.emitCurrentTagToken();break}case $e.EOF:{this._err(Bt.eofInTag),this._emitEOFToken();break}default:this._err(Bt.missingWhitespaceBetweenAttributes),this.state=mt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(z)}}_stateSelfClosingStartTag(z){switch(z){case $e.GREATER_THAN_SIGN:{const Ie=this.currentToken;Ie.selfClosing=!0,this.state=mt.DATA,this.emitCurrentTagToken();break}case $e.EOF:{this._err(Bt.eofInTag),this._emitEOFToken();break}default:this._err(Bt.unexpectedSolidusInTag),this.state=mt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(z)}}_stateBogusComment(z){const Ie=this.currentToken;switch(z){case $e.GREATER_THAN_SIGN:{this.state=mt.DATA,this.emitCurrentComment(Ie);break}case $e.EOF:{this.emitCurrentComment(Ie),this._emitEOFToken();break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),Ie.data+=Ot;break}default:Ie.data+=String.fromCodePoint(z)}}_stateMarkupDeclarationOpen(z){this._consumeSequenceIfMatch($t.DASH_DASH,!0)?(this._createCommentToken($t.DASH_DASH.length+1),this.state=mt.COMMENT_START):this._consumeSequenceIfMatch($t.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation($t.DOCTYPE.length+1),this.state=mt.DOCTYPE):this._consumeSequenceIfMatch($t.CDATA_START,!0)?this.inForeignNode?this.state=mt.CDATA_SECTION:(this._err(Bt.cdataInHtmlContent),this._createCommentToken($t.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=mt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Bt.incorrectlyOpenedComment),this._createCommentToken(2),this.state=mt.BOGUS_COMMENT,this._stateBogusComment(z))}_stateCommentStart(z){switch(z){case $e.HYPHEN_MINUS:{this.state=mt.COMMENT_START_DASH;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.abruptClosingOfEmptyComment),this.state=mt.DATA;const Ie=this.currentToken;this.emitCurrentComment(Ie);break}default:this.state=mt.COMMENT,this._stateComment(z)}}_stateCommentStartDash(z){const Ie=this.currentToken;switch(z){case $e.HYPHEN_MINUS:{this.state=mt.COMMENT_END;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.abruptClosingOfEmptyComment),this.state=mt.DATA,this.emitCurrentComment(Ie);break}case $e.EOF:{this._err(Bt.eofInComment),this.emitCurrentComment(Ie),this._emitEOFToken();break}default:Ie.data+="-",this.state=mt.COMMENT,this._stateComment(z)}}_stateComment(z){const Ie=this.currentToken;switch(z){case $e.HYPHEN_MINUS:{this.state=mt.COMMENT_END_DASH;break}case $e.LESS_THAN_SIGN:{Ie.data+="<",this.state=mt.COMMENT_LESS_THAN_SIGN;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),Ie.data+=Ot;break}case $e.EOF:{this._err(Bt.eofInComment),this.emitCurrentComment(Ie),this._emitEOFToken();break}default:Ie.data+=String.fromCodePoint(z)}}_stateCommentLessThanSign(z){const Ie=this.currentToken;switch(z){case $e.EXCLAMATION_MARK:{Ie.data+="!",this.state=mt.COMMENT_LESS_THAN_SIGN_BANG;break}case $e.LESS_THAN_SIGN:{Ie.data+="<";break}default:this.state=mt.COMMENT,this._stateComment(z)}}_stateCommentLessThanSignBang(z){z===$e.HYPHEN_MINUS?this.state=mt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=mt.COMMENT,this._stateComment(z))}_stateCommentLessThanSignBangDash(z){z===$e.HYPHEN_MINUS?this.state=mt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=mt.COMMENT_END_DASH,this._stateCommentEndDash(z))}_stateCommentLessThanSignBangDashDash(z){z!==$e.GREATER_THAN_SIGN&&z!==$e.EOF&&this._err(Bt.nestedComment),this.state=mt.COMMENT_END,this._stateCommentEnd(z)}_stateCommentEndDash(z){const Ie=this.currentToken;switch(z){case $e.HYPHEN_MINUS:{this.state=mt.COMMENT_END;break}case $e.EOF:{this._err(Bt.eofInComment),this.emitCurrentComment(Ie),this._emitEOFToken();break}default:Ie.data+="-",this.state=mt.COMMENT,this._stateComment(z)}}_stateCommentEnd(z){const Ie=this.currentToken;switch(z){case $e.GREATER_THAN_SIGN:{this.state=mt.DATA,this.emitCurrentComment(Ie);break}case $e.EXCLAMATION_MARK:{this.state=mt.COMMENT_END_BANG;break}case $e.HYPHEN_MINUS:{Ie.data+="-";break}case $e.EOF:{this._err(Bt.eofInComment),this.emitCurrentComment(Ie),this._emitEOFToken();break}default:Ie.data+="--",this.state=mt.COMMENT,this._stateComment(z)}}_stateCommentEndBang(z){const Ie=this.currentToken;switch(z){case $e.HYPHEN_MINUS:{Ie.data+="--!",this.state=mt.COMMENT_END_DASH;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.incorrectlyClosedComment),this.state=mt.DATA,this.emitCurrentComment(Ie);break}case $e.EOF:{this._err(Bt.eofInComment),this.emitCurrentComment(Ie),this._emitEOFToken();break}default:Ie.data+="--!",this.state=mt.COMMENT,this._stateComment(z)}}_stateDoctype(z){switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=mt.BEFORE_DOCTYPE_NAME;break}case $e.GREATER_THAN_SIGN:{this.state=mt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(z);break}case $e.EOF:{this._err(Bt.eofInDoctype),this._createDoctypeToken(null);const Ie=this.currentToken;Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._err(Bt.missingWhitespaceBeforeDoctypeName),this.state=mt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(z)}}_stateBeforeDoctypeName(z){if(Ut(z))this._createDoctypeToken(String.fromCharCode(Di(z))),this.state=mt.DOCTYPE_NAME;else switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.NULL:{this._err(Bt.unexpectedNullCharacter),this._createDoctypeToken(Ot),this.state=mt.DOCTYPE_NAME;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.missingDoctypeName),this._createDoctypeToken(null);const Ie=this.currentToken;Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this.state=mt.DATA;break}case $e.EOF:{this._err(Bt.eofInDoctype),this._createDoctypeToken(null);const Ie=this.currentToken;Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(z)),this.state=mt.DOCTYPE_NAME}}_stateDoctypeName(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=mt.AFTER_DOCTYPE_NAME;break}case $e.GREATER_THAN_SIGN:{this.state=mt.DATA,this.emitCurrentDoctype(Ie);break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),Ie.name+=Ot;break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:Ie.name+=String.fromCodePoint(Ut(z)?Di(z):z)}}_stateAfterDoctypeName(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.GREATER_THAN_SIGN:{this.state=mt.DATA,this.emitCurrentDoctype(Ie);break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._consumeSequenceIfMatch($t.PUBLIC,!1)?this.state=mt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch($t.SYSTEM,!1)?this.state=mt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Bt.invalidCharacterSequenceAfterDoctypeName),Ie.forceQuirks=!0,this.state=mt.BOGUS_DOCTYPE,this._stateBogusDoctype(z))}}_stateAfterDoctypePublicKeyword(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=mt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case $e.QUOTATION_MARK:{this._err(Bt.missingWhitespaceAfterDoctypePublicKeyword),Ie.publicId="",this.state=mt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{this._err(Bt.missingWhitespaceAfterDoctypePublicKeyword),Ie.publicId="",this.state=mt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.missingDoctypePublicIdentifier),Ie.forceQuirks=!0,this.state=mt.DATA,this.emitCurrentDoctype(Ie);break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._err(Bt.missingQuoteBeforeDoctypePublicIdentifier),Ie.forceQuirks=!0,this.state=mt.BOGUS_DOCTYPE,this._stateBogusDoctype(z)}}_stateBeforeDoctypePublicIdentifier(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.QUOTATION_MARK:{Ie.publicId="",this.state=mt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{Ie.publicId="",this.state=mt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.missingDoctypePublicIdentifier),Ie.forceQuirks=!0,this.state=mt.DATA,this.emitCurrentDoctype(Ie);break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._err(Bt.missingQuoteBeforeDoctypePublicIdentifier),Ie.forceQuirks=!0,this.state=mt.BOGUS_DOCTYPE,this._stateBogusDoctype(z)}}_stateDoctypePublicIdentifierDoubleQuoted(z){const Ie=this.currentToken;switch(z){case $e.QUOTATION_MARK:{this.state=mt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),Ie.publicId+=Ot;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.abruptDoctypePublicIdentifier),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this.state=mt.DATA;break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:Ie.publicId+=String.fromCodePoint(z)}}_stateDoctypePublicIdentifierSingleQuoted(z){const Ie=this.currentToken;switch(z){case $e.APOSTROPHE:{this.state=mt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),Ie.publicId+=Ot;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.abruptDoctypePublicIdentifier),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this.state=mt.DATA;break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:Ie.publicId+=String.fromCodePoint(z)}}_stateAfterDoctypePublicIdentifier(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=mt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case $e.GREATER_THAN_SIGN:{this.state=mt.DATA,this.emitCurrentDoctype(Ie);break}case $e.QUOTATION_MARK:{this._err(Bt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ie.systemId="",this.state=mt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{this._err(Bt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ie.systemId="",this.state=mt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._err(Bt.missingQuoteBeforeDoctypeSystemIdentifier),Ie.forceQuirks=!0,this.state=mt.BOGUS_DOCTYPE,this._stateBogusDoctype(z)}}_stateBetweenDoctypePublicAndSystemIdentifiers(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ie),this.state=mt.DATA;break}case $e.QUOTATION_MARK:{Ie.systemId="",this.state=mt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{Ie.systemId="",this.state=mt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._err(Bt.missingQuoteBeforeDoctypeSystemIdentifier),Ie.forceQuirks=!0,this.state=mt.BOGUS_DOCTYPE,this._stateBogusDoctype(z)}}_stateAfterDoctypeSystemKeyword(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:{this.state=mt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case $e.QUOTATION_MARK:{this._err(Bt.missingWhitespaceAfterDoctypeSystemKeyword),Ie.systemId="",this.state=mt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{this._err(Bt.missingWhitespaceAfterDoctypeSystemKeyword),Ie.systemId="",this.state=mt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.missingDoctypeSystemIdentifier),Ie.forceQuirks=!0,this.state=mt.DATA,this.emitCurrentDoctype(Ie);break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._err(Bt.missingQuoteBeforeDoctypeSystemIdentifier),Ie.forceQuirks=!0,this.state=mt.BOGUS_DOCTYPE,this._stateBogusDoctype(z)}}_stateBeforeDoctypeSystemIdentifier(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.QUOTATION_MARK:{Ie.systemId="",this.state=mt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $e.APOSTROPHE:{Ie.systemId="",this.state=mt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.missingDoctypeSystemIdentifier),Ie.forceQuirks=!0,this.state=mt.DATA,this.emitCurrentDoctype(Ie);break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._err(Bt.missingQuoteBeforeDoctypeSystemIdentifier),Ie.forceQuirks=!0,this.state=mt.BOGUS_DOCTYPE,this._stateBogusDoctype(z)}}_stateDoctypeSystemIdentifierDoubleQuoted(z){const Ie=this.currentToken;switch(z){case $e.QUOTATION_MARK:{this.state=mt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),Ie.systemId+=Ot;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.abruptDoctypeSystemIdentifier),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this.state=mt.DATA;break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:Ie.systemId+=String.fromCodePoint(z)}}_stateDoctypeSystemIdentifierSingleQuoted(z){const Ie=this.currentToken;switch(z){case $e.APOSTROPHE:{this.state=mt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter),Ie.systemId+=Ot;break}case $e.GREATER_THAN_SIGN:{this._err(Bt.abruptDoctypeSystemIdentifier),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this.state=mt.DATA;break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:Ie.systemId+=String.fromCodePoint(z)}}_stateAfterDoctypeSystemIdentifier(z){const Ie=this.currentToken;switch(z){case $e.SPACE:case $e.LINE_FEED:case $e.TABULATION:case $e.FORM_FEED:break;case $e.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ie),this.state=mt.DATA;break}case $e.EOF:{this._err(Bt.eofInDoctype),Ie.forceQuirks=!0,this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:this._err(Bt.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=mt.BOGUS_DOCTYPE,this._stateBogusDoctype(z)}}_stateBogusDoctype(z){const Ie=this.currentToken;switch(z){case $e.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ie),this.state=mt.DATA;break}case $e.NULL:{this._err(Bt.unexpectedNullCharacter);break}case $e.EOF:{this.emitCurrentDoctype(Ie),this._emitEOFToken();break}default:}}_stateCdataSection(z){switch(z){case $e.RIGHT_SQUARE_BRACKET:{this.state=mt.CDATA_SECTION_BRACKET;break}case $e.EOF:{this._err(Bt.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(z)}}_stateCdataSectionBracket(z){z===$e.RIGHT_SQUARE_BRACKET?this.state=mt.CDATA_SECTION_END:(this._emitChars("]"),this.state=mt.CDATA_SECTION,this._stateCdataSection(z))}_stateCdataSectionEnd(z){switch(z){case $e.GREATER_THAN_SIGN:{this.state=mt.DATA;break}case $e.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=mt.CDATA_SECTION,this._stateCdataSection(z)}}_stateCharacterReference(){let z=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(z<0)if(this.preprocessor.lastChunkWritten)z=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}z===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference($e.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Or(this.preprocessor.peek(1))?mt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(z){Or(z)?this._flushCodePointConsumedAsCharacterReference(z):(z===$e.SEMICOLON&&this._err(Bt.unknownNamedCharacterReference),this.state=this.returnState,this._callState(z))}}const si=new Set([we.DD,we.DT,we.LI,we.OPTGROUP,we.OPTION,we.P,we.RB,we.RP,we.RT,we.RTC]),Gt=new Set([...si,we.CAPTION,we.COLGROUP,we.TBODY,we.TD,we.TFOOT,we.TH,we.THEAD,we.TR]),di=new Set([we.APPLET,we.CAPTION,we.HTML,we.MARQUEE,we.OBJECT,we.TABLE,we.TD,we.TEMPLATE,we.TH]),Wt=new Set([...di,we.OL,we.UL]),Yn=new Set([...di,we.BUTTON]),Dr=new Set([we.ANNOTATION_XML,we.MI,we.MN,we.MO,we.MS,we.MTEXT]),br=new Set([we.DESC,we.FOREIGN_OBJECT,we.TITLE]),mi=new Set([we.TR,we.TEMPLATE,we.HTML]),Hr=new Set([we.TBODY,we.TFOOT,we.THEAD,we.TEMPLATE,we.HTML]),Tr=new Set([we.TABLE,we.TEMPLATE,we.HTML]),Gi=new Set([we.TD,we.TH]);class kt{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(z,Ie,ct){this.treeAdapter=Ie,this.handler=ct,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=we.UNKNOWN,this.current=z}_indexOf(z){return this.items.lastIndexOf(z,this.stackTop)}_isInTemplate(){return this.currentTagId===we.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===dt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(z,Ie){this.stackTop++,this.items[this.stackTop]=z,this.current=z,this.tagIDs[this.stackTop]=Ie,this.currentTagId=Ie,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(z,Ie,!0)}pop(){const z=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(z,!0)}replace(z,Ie){const ct=this._indexOf(z);this.items[ct]=Ie,ct===this.stackTop&&(this.current=Ie)}insertAfter(z,Ie,ct){const zt=this._indexOf(z)+1;this.items.splice(zt,0,Ie),this.tagIDs.splice(zt,0,ct),this.stackTop++,zt===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,zt===this.stackTop)}popUntilTagNamePopped(z){let Ie=this.stackTop+1;do Ie=this.tagIDs.lastIndexOf(z,Ie-1);while(Ie>0&&this.treeAdapter.getNamespaceURI(this.items[Ie])!==dt.HTML);this.shortenToLength(Math.max(Ie,0))}shortenToLength(z){for(;this.stackTop>=z;){const Ie=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(Ie,this.stackTop<z)}}popUntilElementPopped(z){const Ie=this._indexOf(z);this.shortenToLength(Math.max(Ie,0))}popUntilPopped(z,Ie){const ct=this._indexOfTagNames(z,Ie);this.shortenToLength(Math.max(ct,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xn,dt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Gi,dt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(z,Ie){for(let ct=this.stackTop;ct>=0;ct--)if(z.has(this.tagIDs[ct])&&this.treeAdapter.getNamespaceURI(this.items[ct])===Ie)return ct;return-1}clearBackTo(z,Ie){const ct=this._indexOfTagNames(z,Ie);this.shortenToLength(ct+1)}clearBackToTableContext(){this.clearBackTo(Tr,dt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Hr,dt.HTML)}clearBackToTableRowContext(){this.clearBackTo(mi,dt.HTML)}remove(z){const Ie=this._indexOf(z);Ie>=0&&(Ie===this.stackTop?this.pop():(this.items.splice(Ie,1),this.tagIDs.splice(Ie,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(z,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===we.BODY?this.items[1]:null}contains(z){return this._indexOf(z)>-1}getCommonAncestor(z){const Ie=this._indexOf(z)-1;return Ie>=0?this.items[Ie]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===we.HTML}hasInDynamicScope(z,Ie){for(let ct=this.stackTop;ct>=0;ct--){const zt=this.tagIDs[ct];switch(this.treeAdapter.getNamespaceURI(this.items[ct])){case dt.HTML:{if(zt===z)return!0;if(Ie.has(zt))return!1;break}case dt.SVG:{if(br.has(zt))return!1;break}case dt.MATHML:{if(Dr.has(zt))return!1;break}}}return!0}hasInScope(z){return this.hasInDynamicScope(z,di)}hasInListItemScope(z){return this.hasInDynamicScope(z,Wt)}hasInButtonScope(z){return this.hasInDynamicScope(z,Yn)}hasNumberedHeaderInScope(){for(let z=this.stackTop;z>=0;z--){const Ie=this.tagIDs[z];switch(this.treeAdapter.getNamespaceURI(this.items[z])){case dt.HTML:{if(Xn.has(Ie))return!0;if(di.has(Ie))return!1;break}case dt.SVG:{if(br.has(Ie))return!1;break}case dt.MATHML:{if(Dr.has(Ie))return!1;break}}}return!0}hasInTableScope(z){for(let Ie=this.stackTop;Ie>=0;Ie--)if(this.treeAdapter.getNamespaceURI(this.items[Ie])===dt.HTML)switch(this.tagIDs[Ie]){case z:return!0;case we.TABLE:case we.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let z=this.stackTop;z>=0;z--)if(this.treeAdapter.getNamespaceURI(this.items[z])===dt.HTML)switch(this.tagIDs[z]){case we.TBODY:case we.THEAD:case we.TFOOT:return!0;case we.TABLE:case we.HTML:return!1}return!0}hasInSelectScope(z){for(let Ie=this.stackTop;Ie>=0;Ie--)if(this.treeAdapter.getNamespaceURI(this.items[Ie])===dt.HTML)switch(this.tagIDs[Ie]){case z:return!0;case we.OPTION:case we.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&si.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Gt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(z){for(;this.currentTagId!==void 0&&this.currentTagId!==z&&Gt.has(this.currentTagId);)this.pop()}}const Xt=3;var wt;(function(A){A[A.Marker=0]="Marker",A[A.Element=1]="Element"})(wt||(wt={}));const Pe={type:wt.Marker};class an{constructor(z){this.treeAdapter=z,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(z,Ie){const ct=[],zt=Ie.length,xn=this.treeAdapter.getTagName(z),Hn=this.treeAdapter.getNamespaceURI(z);for(let Vr=0;Vr<this.entries.length;Vr++){const Si=this.entries[Vr];if(Si.type===wt.Marker)break;const{element:bn}=Si;if(this.treeAdapter.getTagName(bn)===xn&&this.treeAdapter.getNamespaceURI(bn)===Hn){const ar=this.treeAdapter.getAttrList(bn);ar.length===zt&&ct.push({idx:Vr,attrs:ar})}}return ct}_ensureNoahArkCondition(z){if(this.entries.length<Xt)return;const Ie=this.treeAdapter.getAttrList(z),ct=this._getNoahArkConditionCandidates(z,Ie);if(ct.length<Xt)return;const zt=new Map(Ie.map(Hn=>[Hn.name,Hn.value]));let xn=0;for(let Hn=0;Hn<ct.length;Hn++){const Vr=ct[Hn];Vr.attrs.every(Si=>zt.get(Si.name)===Si.value)&&(xn+=1,xn>=Xt&&this.entries.splice(Vr.idx,1))}}insertMarker(){this.entries.unshift(Pe)}pushElement(z,Ie){this._ensureNoahArkCondition(z),this.entries.unshift({type:wt.Element,element:z,token:Ie})}insertElementAfterBookmark(z,Ie){const ct=this.entries.indexOf(this.bookmark);this.entries.splice(ct,0,{type:wt.Element,element:z,token:Ie})}removeEntry(z){const Ie=this.entries.indexOf(z);Ie!==-1&&this.entries.splice(Ie,1)}clearToLastMarker(){const z=this.entries.indexOf(Pe);z===-1?this.entries.length=0:this.entries.splice(0,z+1)}getElementEntryInScopeWithTagName(z){const Ie=this.entries.find(ct=>ct.type===wt.Marker||this.treeAdapter.getTagName(ct.element)===z);return Ie&&Ie.type===wt.Element?Ie:null}getElementEntry(z){return this.entries.find(Ie=>Ie.type===wt.Element&&Ie.element===z)}}const vn={createDocument(){return{nodeName:"#document",mode:kn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(A,z,Ie){return{nodeName:A,tagName:A,attrs:Ie,namespaceURI:z,childNodes:[],parentNode:null}},createCommentNode(A){return{nodeName:"#comment",data:A,parentNode:null}},createTextNode(A){return{nodeName:"#text",value:A,parentNode:null}},appendChild(A,z){A.childNodes.push(z),z.parentNode=A},insertBefore(A,z,Ie){const ct=A.childNodes.indexOf(Ie);A.childNodes.splice(ct,0,z),z.parentNode=A},setTemplateContent(A,z){A.content=z},getTemplateContent(A){return A.content},setDocumentType(A,z,Ie,ct){const zt=A.childNodes.find(xn=>xn.nodeName==="#documentType");if(zt)zt.name=z,zt.publicId=Ie,zt.systemId=ct;else{const xn={nodeName:"#documentType",name:z,publicId:Ie,systemId:ct,parentNode:null};vn.appendChild(A,xn)}},setDocumentMode(A,z){A.mode=z},getDocumentMode(A){return A.mode},detachNode(A){if(A.parentNode){const z=A.parentNode.childNodes.indexOf(A);A.parentNode.childNodes.splice(z,1),A.parentNode=null}},insertText(A,z){if(A.childNodes.length>0){const Ie=A.childNodes[A.childNodes.length-1];if(vn.isTextNode(Ie)){Ie.value+=z;return}}vn.appendChild(A,vn.createTextNode(z))},insertTextBefore(A,z,Ie){const ct=A.childNodes[A.childNodes.indexOf(Ie)-1];ct&&vn.isTextNode(ct)?ct.value+=z:vn.insertBefore(A,vn.createTextNode(z),Ie)},adoptAttributes(A,z){const Ie=new Set(A.attrs.map(ct=>ct.name));for(let ct=0;ct<z.length;ct++)Ie.has(z[ct].name)||A.attrs.push(z[ct])},getFirstChild(A){return A.childNodes[0]},getChildNodes(A){return A.childNodes},getParentNode(A){return A.parentNode},getAttrList(A){return A.attrs},getTagName(A){return A.tagName},getNamespaceURI(A){return A.namespaceURI},getTextNodeContent(A){return A.value},getCommentNodeContent(A){return A.data},getDocumentTypeNodeName(A){return A.name},getDocumentTypeNodePublicId(A){return A.publicId},getDocumentTypeNodeSystemId(A){return A.systemId},isTextNode(A){return A.nodeName==="#text"},isCommentNode(A){return A.nodeName==="#comment"},isDocumentTypeNode(A){return A.nodeName==="#documentType"},isElementNode(A){return Object.prototype.hasOwnProperty.call(A,"tagName")},setNodeSourceCodeLocation(A,z){A.sourceCodeLocation=z},getNodeSourceCodeLocation(A){return A.sourceCodeLocation},updateNodeSourceCodeLocation(A,z){A.sourceCodeLocation=Ii(Ii({},A.sourceCodeLocation),z)}},Bn="html",On="about:legacy-compat",En="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Vt=["+//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//"],cn=[...Vt,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],dn=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),rn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],pn=[...rn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function jn(A,z){return z.some(Ie=>A.startsWith(Ie))}function dr(A){return A.name===Bn&&A.publicId===null&&(A.systemId===null||A.systemId===On)}function lr(A){if(A.name!==Bn)return kn.QUIRKS;const{systemId:z}=A;if(z&&z.toLowerCase()===En)return kn.QUIRKS;let{publicId:Ie}=A;if(Ie!==null){if(Ie=Ie.toLowerCase(),dn.has(Ie))return kn.QUIRKS;let ct=z===null?cn:Vt;if(jn(Ie,ct))return kn.QUIRKS;if(ct=z===null?rn:pn,jn(Ie,ct))return kn.LIMITED_QUIRKS}return kn.NO_QUIRKS}const un={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},zr="definitionurl",_r="definitionURL",ci=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(A=>[A.toLowerCase(),A])),Cr=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:dt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:dt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:dt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:dt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:dt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:dt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:dt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:dt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:dt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:dt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:dt.XMLNS}]]),Zi=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(A=>[A.toLowerCase(),A])),ji=new Set([we.B,we.BIG,we.BLOCKQUOTE,we.BODY,we.BR,we.CENTER,we.CODE,we.DD,we.DIV,we.DL,we.DT,we.EM,we.EMBED,we.H1,we.H2,we.H3,we.H4,we.H5,we.H6,we.HEAD,we.HR,we.I,we.IMG,we.LI,we.LISTING,we.MENU,we.META,we.NOBR,we.OL,we.P,we.PRE,we.RUBY,we.S,we.SMALL,we.SPAN,we.STRONG,we.STRIKE,we.SUB,we.SUP,we.TABLE,we.TT,we.U,we.UL,we.VAR]);function Pi(A){const z=A.tagID;return z===we.FONT&&A.attrs.some(({name:ct})=>ct===on.COLOR||ct===on.SIZE||ct===on.FACE)||ji.has(z)}function Ti(A){for(let z=0;z<A.attrs.length;z++)if(A.attrs[z].name===zr){A.attrs[z].name=_r;break}}function Fi(A){for(let z=0;z<A.attrs.length;z++){const Ie=ci.get(A.attrs[z].name);Ie!=null&&(A.attrs[z].name=Ie)}}function Ji(A){for(let z=0;z<A.attrs.length;z++){const Ie=Cr.get(A.attrs[z].name);Ie&&(A.attrs[z].prefix=Ie.prefix,A.attrs[z].name=Ie.name,A.attrs[z].namespace=Ie.namespace)}}function Ct(A){const z=Zi.get(A.tagName);z!=null&&(A.tagName=z,A.tagID=Nn(A.tagName))}function ai(A,z){return z===dt.MATHML&&(A===we.MI||A===we.MO||A===we.MN||A===we.MS||A===we.MTEXT)}function Qr(A,z,Ie){if(z===dt.MATHML&&A===we.ANNOTATION_XML){for(let ct=0;ct<Ie.length;ct++)if(Ie[ct].name===on.ENCODING){const zt=Ie[ct].value.toLowerCase();return zt===un.TEXT_HTML||zt===un.APPLICATION_XML}}return z===dt.SVG&&(A===we.FOREIGN_OBJECT||A===we.DESC||A===we.TITLE)}function Sr(A,z,Ie,ct){return(!ct||ct===dt.HTML)&&Qr(A,z,Ie)||(!ct||ct===dt.MATHML)&&ai(A,z)}const Pr="hidden",ri=8,_i=3;var Nt;(function(A){A[A.INITIAL=0]="INITIAL",A[A.BEFORE_HTML=1]="BEFORE_HTML",A[A.BEFORE_HEAD=2]="BEFORE_HEAD",A[A.IN_HEAD=3]="IN_HEAD",A[A.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",A[A.AFTER_HEAD=5]="AFTER_HEAD",A[A.IN_BODY=6]="IN_BODY",A[A.TEXT=7]="TEXT",A[A.IN_TABLE=8]="IN_TABLE",A[A.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",A[A.IN_CAPTION=10]="IN_CAPTION",A[A.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",A[A.IN_TABLE_BODY=12]="IN_TABLE_BODY",A[A.IN_ROW=13]="IN_ROW",A[A.IN_CELL=14]="IN_CELL",A[A.IN_SELECT=15]="IN_SELECT",A[A.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",A[A.IN_TEMPLATE=17]="IN_TEMPLATE",A[A.AFTER_BODY=18]="AFTER_BODY",A[A.IN_FRAMESET=19]="IN_FRAMESET",A[A.AFTER_FRAMESET=20]="AFTER_FRAMESET",A[A.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",A[A.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Nt||(Nt={}));const Rr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ki=new Set([we.TABLE,we.TBODY,we.TFOOT,we.THEAD,we.TR]),_s={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:vn,onParseError:null};class fs{constructor(z,Ie,ct=null,zt=null){this.fragmentContext=ct,this.scriptHandler=zt,this.currentToken=null,this.stopped=!1,this.insertionMode=Nt.INITIAL,this.originalInsertionMode=Nt.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=Ii(Ii({},_s),z),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=Ie!=null?Ie:this.treeAdapter.createDocument(),this.tokenizer=new ti(this.options,this),this.activeFormattingElements=new an(this.treeAdapter),this.fragmentContextID=ct?Nn(this.treeAdapter.getTagName(ct)):we.UNKNOWN,this._setContextModes(ct!=null?ct:this.document,this.fragmentContextID),this.openElements=new kt(this.document,this.treeAdapter,this)}static parse(z,Ie){const ct=new this(Ie);return ct.tokenizer.write(z,!0),ct.document}static getFragmentParser(z,Ie){const ct=Ii(Ii({},_s),Ie);z!=null||(z=ct.treeAdapter.createElement(_t.TEMPLATE,dt.HTML,[]));const zt=ct.treeAdapter.createElement("documentmock",dt.HTML,[]),xn=new this(ct,zt,z);return xn.fragmentContextID===we.TEMPLATE&&xn.tmplInsertionModeStack.unshift(Nt.IN_TEMPLATE),xn._initTokenizerForFragmentParsing(),xn._insertFakeRootElement(),xn._resetInsertionMode(),xn._findFormInFragmentContext(),xn}getFragment(){const z=this.treeAdapter.getFirstChild(this.document),Ie=this.treeAdapter.createDocumentFragment();return this._adoptNodes(z,Ie),Ie}_err(z,Ie,ct){var zt;if(!this.onParseError)return;const xn=(zt=z.location)!==null&&zt!==void 0?zt:Rr,Hn={code:Ie,startLine:xn.startLine,startCol:xn.startCol,startOffset:xn.startOffset,endLine:ct?xn.startLine:xn.endLine,endCol:ct?xn.startCol:xn.endCol,endOffset:ct?xn.startOffset:xn.endOffset};this.onParseError(Hn)}onItemPush(z,Ie,ct){var zt,xn;(xn=(zt=this.treeAdapter).onItemPush)===null||xn===void 0||xn.call(zt,z),ct&&this.openElements.stackTop>0&&this._setContextModes(z,Ie)}onItemPop(z,Ie){var ct,zt;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(z,this.currentToken),(zt=(ct=this.treeAdapter).onItemPop)===null||zt===void 0||zt.call(ct,z,this.openElements.current),Ie){let xn,Hn;this.openElements.stackTop===0&&this.fragmentContext?(xn=this.fragmentContext,Hn=this.fragmentContextID):{current:xn,currentTagId:Hn}=this.openElements,this._setContextModes(xn,Hn)}}_setContextModes(z,Ie){const ct=z===this.document||z&&this.treeAdapter.getNamespaceURI(z)===dt.HTML;this.currentNotInHTML=!ct,this.tokenizer.inForeignNode=!ct&&z!==void 0&&Ie!==void 0&&!this._isIntegrationPoint(Ie,z)}_switchToTextParsing(z,Ie){this._insertElement(z,dt.HTML),this.tokenizer.state=Ie,this.originalInsertionMode=this.insertionMode,this.insertionMode=Nt.TEXT}switchToPlaintextParsing(){this.insertionMode=Nt.TEXT,this.originalInsertionMode=Nt.IN_BODY,this.tokenizer.state=fr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let z=this.fragmentContext;for(;z;){if(this.treeAdapter.getTagName(z)===_t.FORM){this.formElement=z;break}z=this.treeAdapter.getParentNode(z)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==dt.HTML))switch(this.fragmentContextID){case we.TITLE:case we.TEXTAREA:{this.tokenizer.state=fr.RCDATA;break}case we.STYLE:case we.XMP:case we.IFRAME:case we.NOEMBED:case we.NOFRAMES:case we.NOSCRIPT:{this.tokenizer.state=fr.RAWTEXT;break}case we.SCRIPT:{this.tokenizer.state=fr.SCRIPT_DATA;break}case we.PLAINTEXT:{this.tokenizer.state=fr.PLAINTEXT;break}default:}}_setDocumentType(z){const Ie=z.name||"",ct=z.publicId||"",zt=z.systemId||"";if(this.treeAdapter.setDocumentType(this.document,Ie,ct,zt),z.location){const Hn=this.treeAdapter.getChildNodes(this.document).find(Vr=>this.treeAdapter.isDocumentTypeNode(Vr));Hn&&this.treeAdapter.setNodeSourceCodeLocation(Hn,z.location)}}_attachElementToTree(z,Ie){if(this.options.sourceCodeLocationInfo){const ct=Ie&&Th(Ii({},Ie),{startTag:Ie});this.treeAdapter.setNodeSourceCodeLocation(z,ct)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(z);else{const ct=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(ct!=null?ct:this.document,z)}}_appendElement(z,Ie){const ct=this.treeAdapter.createElement(z.tagName,Ie,z.attrs);this._attachElementToTree(ct,z.location)}_insertElement(z,Ie){const ct=this.treeAdapter.createElement(z.tagName,Ie,z.attrs);this._attachElementToTree(ct,z.location),this.openElements.push(ct,z.tagID)}_insertFakeElement(z,Ie){const ct=this.treeAdapter.createElement(z,dt.HTML,[]);this._attachElementToTree(ct,null),this.openElements.push(ct,Ie)}_insertTemplate(z){const Ie=this.treeAdapter.createElement(z.tagName,dt.HTML,z.attrs),ct=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Ie,ct),this._attachElementToTree(Ie,z.location),this.openElements.push(Ie,z.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(ct,null)}_insertFakeRootElement(){const z=this.treeAdapter.createElement(_t.HTML,dt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(z,null),this.treeAdapter.appendChild(this.openElements.current,z),this.openElements.push(z,we.HTML)}_appendCommentNode(z,Ie){const ct=this.treeAdapter.createCommentNode(z.data);this.treeAdapter.appendChild(Ie,ct),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(ct,z.location)}_insertCharacters(z){let Ie,ct;if(this._shouldFosterParentOnInsertion()?({parent:Ie,beforeElement:ct}=this._findFosterParentingLocation(),ct?this.treeAdapter.insertTextBefore(Ie,z.chars,ct):this.treeAdapter.insertText(Ie,z.chars)):(Ie=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(Ie,z.chars)),!z.location)return;const zt=this.treeAdapter.getChildNodes(Ie),xn=ct?zt.lastIndexOf(ct):zt.length,Hn=zt[xn-1];if(this.treeAdapter.getNodeSourceCodeLocation(Hn)){const{endLine:Si,endCol:bn,endOffset:ar}=z.location;this.treeAdapter.updateNodeSourceCodeLocation(Hn,{endLine:Si,endCol:bn,endOffset:ar})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Hn,z.location)}_adoptNodes(z,Ie){for(let ct=this.treeAdapter.getFirstChild(z);ct;ct=this.treeAdapter.getFirstChild(z))this.treeAdapter.detachNode(ct),this.treeAdapter.appendChild(Ie,ct)}_setEndLocation(z,Ie){if(this.treeAdapter.getNodeSourceCodeLocation(z)&&Ie.location){const ct=Ie.location,zt=this.treeAdapter.getTagName(z),xn=Ie.type===Un.END_TAG&&zt===Ie.tagName?{endTag:Ii({},ct),endLine:ct.endLine,endCol:ct.endCol,endOffset:ct.endOffset}:{endLine:ct.startLine,endCol:ct.startCol,endOffset:ct.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(z,xn)}}shouldProcessStartTagTokenInForeignContent(z){if(!this.currentNotInHTML)return!1;let Ie,ct;return this.openElements.stackTop===0&&this.fragmentContext?(Ie=this.fragmentContext,ct=this.fragmentContextID):{current:Ie,currentTagId:ct}=this.openElements,z.tagID===we.SVG&&this.treeAdapter.getTagName(Ie)===_t.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(Ie)===dt.MATHML?!1:this.tokenizer.inForeignNode||(z.tagID===we.MGLYPH||z.tagID===we.MALIGNMARK)&&ct!==void 0&&!this._isIntegrationPoint(ct,Ie,dt.HTML)}_processToken(z){switch(z.type){case Un.CHARACTER:{this.onCharacter(z);break}case Un.NULL_CHARACTER:{this.onNullCharacter(z);break}case Un.COMMENT:{this.onComment(z);break}case Un.DOCTYPE:{this.onDoctype(z);break}case Un.START_TAG:{this._processStartTag(z);break}case Un.END_TAG:{this.onEndTag(z);break}case Un.EOF:{this.onEof(z);break}case Un.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(z);break}}}_isIntegrationPoint(z,Ie,ct){const zt=this.treeAdapter.getNamespaceURI(Ie),xn=this.treeAdapter.getAttrList(Ie);return Sr(z,zt,xn,ct)}_reconstructActiveFormattingElements(){const z=this.activeFormattingElements.entries.length;if(z){const Ie=this.activeFormattingElements.entries.findIndex(zt=>zt.type===wt.Marker||this.openElements.contains(zt.element)),ct=Ie===-1?z-1:Ie-1;for(let zt=ct;zt>=0;zt--){const xn=this.activeFormattingElements.entries[zt];this._insertElement(xn.token,this.treeAdapter.getNamespaceURI(xn.element)),xn.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Nt.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(we.P),this.openElements.popUntilTagNamePopped(we.P)}_resetInsertionMode(){for(let z=this.openElements.stackTop;z>=0;z--)switch(z===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[z]){case we.TR:{this.insertionMode=Nt.IN_ROW;return}case we.TBODY:case we.THEAD:case we.TFOOT:{this.insertionMode=Nt.IN_TABLE_BODY;return}case we.CAPTION:{this.insertionMode=Nt.IN_CAPTION;return}case we.COLGROUP:{this.insertionMode=Nt.IN_COLUMN_GROUP;return}case we.TABLE:{this.insertionMode=Nt.IN_TABLE;return}case we.BODY:{this.insertionMode=Nt.IN_BODY;return}case we.FRAMESET:{this.insertionMode=Nt.IN_FRAMESET;return}case we.SELECT:{this._resetInsertionModeForSelect(z);return}case we.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case we.HTML:{this.insertionMode=this.headElement?Nt.AFTER_HEAD:Nt.BEFORE_HEAD;return}case we.TD:case we.TH:{if(z>0){this.insertionMode=Nt.IN_CELL;return}break}case we.HEAD:{if(z>0){this.insertionMode=Nt.IN_HEAD;return}break}}this.insertionMode=Nt.IN_BODY}_resetInsertionModeForSelect(z){if(z>0)for(let Ie=z-1;Ie>0;Ie--){const ct=this.openElements.tagIDs[Ie];if(ct===we.TEMPLATE)break;if(ct===we.TABLE){this.insertionMode=Nt.IN_SELECT_IN_TABLE;return}}this.insertionMode=Nt.IN_SELECT}_isElementCausesFosterParenting(z){return Ki.has(z)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let z=this.openElements.stackTop;z>=0;z--){const Ie=this.openElements.items[z];switch(this.openElements.tagIDs[z]){case we.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(Ie)===dt.HTML)return{parent:this.treeAdapter.getTemplateContent(Ie),beforeElement:null};break}case we.TABLE:{const ct=this.treeAdapter.getParentNode(Ie);return ct?{parent:ct,beforeElement:Ie}:{parent:this.openElements.items[z-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(z){const Ie=this._findFosterParentingLocation();Ie.beforeElement?this.treeAdapter.insertBefore(Ie.parent,z,Ie.beforeElement):this.treeAdapter.appendChild(Ie.parent,z)}_isSpecialElement(z,Ie){const ct=this.treeAdapter.getNamespaceURI(z);return hr[ct].has(Ie)}onCharacter(z){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ue(this,z);return}switch(this.insertionMode){case Nt.INITIAL:{Jr(this,z);break}case Nt.BEFORE_HTML:{es(this,z);break}case Nt.BEFORE_HEAD:{ni(this,z);break}case Nt.IN_HEAD:{ds(this,z);break}case Nt.IN_HEAD_NO_SCRIPT:{Lo(this,z);break}case Nt.AFTER_HEAD:{zs(this,z);break}case Nt.IN_BODY:case Nt.IN_CAPTION:case Nt.IN_CELL:case Nt.IN_TEMPLATE:{ol(this,z);break}case Nt.TEXT:case Nt.IN_SELECT:case Nt.IN_SELECT_IN_TABLE:{this._insertCharacters(z);break}case Nt.IN_TABLE:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:{Ar(this,z);break}case Nt.IN_TABLE_TEXT:{ja(this,z);break}case Nt.IN_COLUMN_GROUP:{is(this,z);break}case Nt.AFTER_BODY:{mu(this,z);break}case Nt.AFTER_AFTER_BODY:{te(this,z);break}default:}}onNullCharacter(z){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Le(this,z);return}switch(this.insertionMode){case Nt.INITIAL:{Jr(this,z);break}case Nt.BEFORE_HTML:{es(this,z);break}case Nt.BEFORE_HEAD:{ni(this,z);break}case Nt.IN_HEAD:{ds(this,z);break}case Nt.IN_HEAD_NO_SCRIPT:{Lo(this,z);break}case Nt.AFTER_HEAD:{zs(this,z);break}case Nt.TEXT:{this._insertCharacters(z);break}case Nt.IN_TABLE:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:{Ar(this,z);break}case Nt.IN_COLUMN_GROUP:{is(this,z);break}case Nt.AFTER_BODY:{mu(this,z);break}case Nt.AFTER_AFTER_BODY:{te(this,z);break}default:}}onComment(z){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ao(this,z);return}switch(this.insertionMode){case Nt.INITIAL:case Nt.BEFORE_HTML:case Nt.BEFORE_HEAD:case Nt.IN_HEAD:case Nt.IN_HEAD_NO_SCRIPT:case Nt.AFTER_HEAD:case Nt.IN_BODY:case Nt.IN_TABLE:case Nt.IN_CAPTION:case Nt.IN_COLUMN_GROUP:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:case Nt.IN_CELL:case Nt.IN_SELECT:case Nt.IN_SELECT_IN_TABLE:case Nt.IN_TEMPLATE:case Nt.IN_FRAMESET:case Nt.AFTER_FRAMESET:{Ao(this,z);break}case Nt.IN_TABLE_TEXT:{ll(this,z);break}case Nt.AFTER_BODY:{Cn(this,z);break}case Nt.AFTER_AFTER_BODY:case Nt.AFTER_AFTER_FRAMESET:{nr(this,z);break}default:}}onDoctype(z){switch(this.skipNextNewLine=!1,this.insertionMode){case Nt.INITIAL:{Xr(this,z);break}case Nt.BEFORE_HEAD:case Nt.IN_HEAD:case Nt.IN_HEAD_NO_SCRIPT:case Nt.AFTER_HEAD:{this._err(z,Bt.misplacedDoctype);break}case Nt.IN_TABLE_TEXT:{ll(this,z);break}default:}}onStartTag(z){this.skipNextNewLine=!1,this.currentToken=z,this._processStartTag(z),z.selfClosing&&!z.ackSelfClosing&&this._err(z,Bt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(z){this.shouldProcessStartTagTokenInForeignContent(z)?qe(this,z):this._startTagOutsideForeignContent(z)}_startTagOutsideForeignContent(z){switch(this.insertionMode){case Nt.INITIAL:{Jr(this,z);break}case Nt.BEFORE_HTML:{Yi(this,z);break}case Nt.BEFORE_HEAD:{Co(this,z);break}case Nt.IN_HEAD:{Qi(this,z);break}case Nt.IN_HEAD_NO_SCRIPT:{Hs(this,z);break}case Nt.AFTER_HEAD:{Pa(this,z);break}case Nt.IN_BODY:{$i(this,z);break}case Nt.IN_TABLE:{Ba(this,z);break}case Nt.IN_TABLE_TEXT:{ll(this,z);break}case Nt.IN_CAPTION:{ki(this,z);break}case Nt.IN_COLUMN_GROUP:{No(this,z);break}case Nt.IN_TABLE_BODY:{Ca(this,z);break}case Nt.IN_ROW:{_a(this,z);break}case Nt.IN_CELL:{$a(this,z);break}case Nt.IN_SELECT:{_h(this,z);break}case Nt.IN_SELECT_IN_TABLE:{kh(this,z);break}case Nt.IN_TEMPLATE:{ql(this,z);break}case Nt.AFTER_BODY:{Ms(this,z);break}case Nt.IN_FRAMESET:{js(this,z);break}case Nt.AFTER_FRAMESET:{xc(this,z);break}case Nt.AFTER_AFTER_BODY:{la(this,z);break}case Nt.AFTER_AFTER_FRAMESET:{Ee(this,z);break}default:}}onEndTag(z){this.skipNextNewLine=!1,this.currentToken=z,this.currentNotInHTML?ft(this,z):this._endTagOutsideForeignContent(z)}_endTagOutsideForeignContent(z){switch(this.insertionMode){case Nt.INITIAL:{Jr(this,z);break}case Nt.BEFORE_HTML:{ir(this,z);break}case Nt.BEFORE_HEAD:{xo(this,z);break}case Nt.IN_HEAD:{xs(this,z);break}case Nt.IN_HEAD_NO_SCRIPT:{Is(this,z);break}case Nt.AFTER_HEAD:{$l(this,z);break}case Nt.IN_BODY:{po(this,z);break}case Nt.TEXT:{Ai(this,z);break}case Nt.IN_TABLE:{Hi(this,z);break}case Nt.IN_TABLE_TEXT:{ll(this,z);break}case Nt.IN_CAPTION:{to(this,z);break}case Nt.IN_COLUMN_GROUP:{vs(this,z);break}case Nt.IN_TABLE_BODY:{Ta(this,z);break}case Nt.IN_ROW:{aa(this,z);break}case Nt.IN_CELL:{Sc(this,z);break}case Nt.IN_SELECT:{Ah(this,z);break}case Nt.IN_SELECT_IN_TABLE:{Jo(this,z);break}case Nt.IN_TEMPLATE:{ho(this,z);break}case Nt.AFTER_BODY:{ks(this,z);break}case Nt.IN_FRAMESET:{eu(this,z);break}case Nt.AFTER_FRAMESET:{wc(this,z);break}case Nt.AFTER_AFTER_BODY:{te(this,z);break}default:}}onEof(z){switch(this.insertionMode){case Nt.INITIAL:{Jr(this,z);break}case Nt.BEFORE_HTML:{es(this,z);break}case Nt.BEFORE_HEAD:{ni(this,z);break}case Nt.IN_HEAD:{ds(this,z);break}case Nt.IN_HEAD_NO_SCRIPT:{Lo(this,z);break}case Nt.AFTER_HEAD:{zs(this,z);break}case Nt.IN_BODY:case Nt.IN_TABLE:case Nt.IN_CAPTION:case Nt.IN_COLUMN_GROUP:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:case Nt.IN_CELL:case Nt.IN_SELECT:case Nt.IN_SELECT_IN_TABLE:{_o(this,z);break}case Nt.TEXT:{Jl(this,z);break}case Nt.IN_TABLE_TEXT:{ll(this,z);break}case Nt.IN_TEMPLATE:{ws(this,z);break}case Nt.AFTER_BODY:case Nt.IN_FRAMESET:case Nt.AFTER_FRAMESET:case Nt.AFTER_AFTER_BODY:case Nt.AFTER_AFTER_FRAMESET:{xr(this,z);break}default:}}onWhitespaceCharacter(z){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,z.chars.charCodeAt(0)===$e.LINE_FEED)){if(z.chars.length===1)return;z.chars=z.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(z);return}switch(this.insertionMode){case Nt.IN_HEAD:case Nt.IN_HEAD_NO_SCRIPT:case Nt.AFTER_HEAD:case Nt.TEXT:case Nt.IN_COLUMN_GROUP:case Nt.IN_SELECT:case Nt.IN_SELECT_IN_TABLE:case Nt.IN_FRAMESET:case Nt.AFTER_FRAMESET:{this._insertCharacters(z);break}case Nt.IN_BODY:case Nt.IN_CAPTION:case Nt.IN_CELL:case Nt.IN_TEMPLATE:case Nt.AFTER_BODY:case Nt.AFTER_AFTER_BODY:case Nt.AFTER_AFTER_FRAMESET:{Gs(this,z);break}case Nt.IN_TABLE:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:{Ar(this,z);break}case Nt.IN_TABLE_TEXT:{Ql(this,z);break}default:}}}function Da(A,z){let Ie=A.activeFormattingElements.getElementEntryInScopeWithTagName(z.tagName);return Ie?A.openElements.contains(Ie.element)?A.openElements.hasInScope(z.tagID)||(Ie=null):(A.activeFormattingElements.removeEntry(Ie),Ie=null):uo(A,z),Ie}function Rs(A,z){let Ie=null,ct=A.openElements.stackTop;for(;ct>=0;ct--){const zt=A.openElements.items[ct];if(zt===z.element)break;A._isSpecialElement(zt,A.openElements.tagIDs[ct])&&(Ie=zt)}return Ie||(A.openElements.shortenToLength(Math.max(ct,0)),A.activeFormattingElements.removeEntry(z)),Ie}function sr(A,z,Ie){let ct=z,zt=A.openElements.getCommonAncestor(z);for(let xn=0,Hn=zt;Hn!==Ie;xn++,Hn=zt){zt=A.openElements.getCommonAncestor(Hn);const Vr=A.activeFormattingElements.getElementEntry(Hn),Si=Vr&&xn>=_i;!Vr||Si?(Si&&A.activeFormattingElements.removeEntry(Vr),A.openElements.remove(Hn)):(Hn=mo(A,Vr),ct===z&&(A.activeFormattingElements.bookmark=Vr),A.treeAdapter.detachNode(ct),A.treeAdapter.appendChild(Hn,ct),ct=Hn)}return ct}function mo(A,z){const Ie=A.treeAdapter.getNamespaceURI(z.element),ct=A.treeAdapter.createElement(z.token.tagName,Ie,z.token.attrs);return A.openElements.replace(z.element,ct),z.element=ct,ct}function vo(A,z,Ie){const ct=A.treeAdapter.getTagName(z),zt=Nn(ct);if(A._isElementCausesFosterParenting(zt))A._fosterParentElement(Ie);else{const xn=A.treeAdapter.getNamespaceURI(z);zt===we.TEMPLATE&&xn===dt.HTML&&(z=A.treeAdapter.getTemplateContent(z)),A.treeAdapter.appendChild(z,Ie)}}function Ko(A,z,Ie){const ct=A.treeAdapter.getNamespaceURI(Ie.element),{token:zt}=Ie,xn=A.treeAdapter.createElement(zt.tagName,ct,zt.attrs);A._adoptNodes(z,xn),A.treeAdapter.appendChild(z,xn),A.activeFormattingElements.insertElementAfterBookmark(xn,zt),A.activeFormattingElements.removeEntry(Ie),A.openElements.remove(Ie.element),A.openElements.insertAfter(z,xn,zt.tagID)}function yo(A,z){for(let Ie=0;Ie<ri;Ie++){const ct=Da(A,z);if(!ct)break;const zt=Rs(A,ct);if(!zt)break;A.activeFormattingElements.bookmark=ct;const xn=sr(A,zt,ct.element),Hn=A.openElements.getCommonAncestor(ct.element);A.treeAdapter.detachNode(xn),Hn&&vo(A,Hn,xn),Ko(A,zt,ct)}}function Ao(A,z){A._appendCommentNode(z,A.openElements.currentTmplContentOrNode)}function Cn(A,z){A._appendCommentNode(z,A.openElements.items[0])}function nr(A,z){A._appendCommentNode(z,A.document)}function xr(A,z){if(A.stopped=!0,z.location){const Ie=A.fragmentContext?0:2;for(let ct=A.openElements.stackTop;ct>=Ie;ct--)A._setEndLocation(A.openElements.items[ct],z);if(!A.fragmentContext&&A.openElements.stackTop>=0){const ct=A.openElements.items[0],zt=A.treeAdapter.getNodeSourceCodeLocation(ct);if(zt&&!zt.endTag&&(A._setEndLocation(ct,z),A.openElements.stackTop>=1)){const xn=A.openElements.items[1],Hn=A.treeAdapter.getNodeSourceCodeLocation(xn);Hn&&!Hn.endTag&&A._setEndLocation(xn,z)}}}}function Xr(A,z){A._setDocumentType(z);const Ie=z.forceQuirks?kn.QUIRKS:lr(z);dr(z)||A._err(z,Bt.nonConformingDoctype),A.treeAdapter.setDocumentMode(A.document,Ie),A.insertionMode=Nt.BEFORE_HTML}function Jr(A,z){A._err(z,Bt.missingDoctype,!0),A.treeAdapter.setDocumentMode(A.document,kn.QUIRKS),A.insertionMode=Nt.BEFORE_HTML,A._processToken(z)}function Yi(A,z){z.tagID===we.HTML?(A._insertElement(z,dt.HTML),A.insertionMode=Nt.BEFORE_HEAD):es(A,z)}function ir(A,z){const Ie=z.tagID;(Ie===we.HTML||Ie===we.HEAD||Ie===we.BODY||Ie===we.BR)&&es(A,z)}function es(A,z){A._insertFakeRootElement(),A.insertionMode=Nt.BEFORE_HEAD,A._processToken(z)}function Co(A,z){switch(z.tagID){case we.HTML:{$i(A,z);break}case we.HEAD:{A._insertElement(z,dt.HTML),A.headElement=A.openElements.current,A.insertionMode=Nt.IN_HEAD;break}default:ni(A,z)}}function xo(A,z){const Ie=z.tagID;Ie===we.HEAD||Ie===we.BODY||Ie===we.HTML||Ie===we.BR?ni(A,z):A._err(z,Bt.endTagWithoutMatchingOpenElement)}function ni(A,z){A._insertFakeElement(_t.HEAD,we.HEAD),A.headElement=A.openElements.current,A.insertionMode=Nt.IN_HEAD,A._processToken(z)}function Qi(A,z){switch(z.tagID){case we.HTML:{$i(A,z);break}case we.BASE:case we.BASEFONT:case we.BGSOUND:case we.LINK:case we.META:{A._appendElement(z,dt.HTML),z.ackSelfClosing=!0;break}case we.TITLE:{A._switchToTextParsing(z,fr.RCDATA);break}case we.NOSCRIPT:{A.options.scriptingEnabled?A._switchToTextParsing(z,fr.RAWTEXT):(A._insertElement(z,dt.HTML),A.insertionMode=Nt.IN_HEAD_NO_SCRIPT);break}case we.NOFRAMES:case we.STYLE:{A._switchToTextParsing(z,fr.RAWTEXT);break}case we.SCRIPT:{A._switchToTextParsing(z,fr.SCRIPT_DATA);break}case we.TEMPLATE:{A._insertTemplate(z),A.activeFormattingElements.insertMarker(),A.framesetOk=!1,A.insertionMode=Nt.IN_TEMPLATE,A.tmplInsertionModeStack.unshift(Nt.IN_TEMPLATE);break}case we.HEAD:{A._err(z,Bt.misplacedStartTagForHeadElement);break}default:ds(A,z)}}function xs(A,z){switch(z.tagID){case we.HEAD:{A.openElements.pop(),A.insertionMode=Nt.AFTER_HEAD;break}case we.BODY:case we.BR:case we.HTML:{ds(A,z);break}case we.TEMPLATE:{io(A,z);break}default:A._err(z,Bt.endTagWithoutMatchingOpenElement)}}function io(A,z){A.openElements.tmplCount>0?(A.openElements.generateImpliedEndTagsThoroughly(),A.openElements.currentTagId!==we.TEMPLATE&&A._err(z,Bt.closingOfElementWithOpenChildElements),A.openElements.popUntilTagNamePopped(we.TEMPLATE),A.activeFormattingElements.clearToLastMarker(),A.tmplInsertionModeStack.shift(),A._resetInsertionMode()):A._err(z,Bt.endTagWithoutMatchingOpenElement)}function ds(A,z){A.openElements.pop(),A.insertionMode=Nt.AFTER_HEAD,A._processToken(z)}function Hs(A,z){switch(z.tagID){case we.HTML:{$i(A,z);break}case we.BASEFONT:case we.BGSOUND:case we.HEAD:case we.LINK:case we.META:case we.NOFRAMES:case we.STYLE:{Qi(A,z);break}case we.NOSCRIPT:{A._err(z,Bt.nestedNoscriptInHead);break}default:Lo(A,z)}}function Is(A,z){switch(z.tagID){case we.NOSCRIPT:{A.openElements.pop(),A.insertionMode=Nt.IN_HEAD;break}case we.BR:{Lo(A,z);break}default:A._err(z,Bt.endTagWithoutMatchingOpenElement)}}function Lo(A,z){const Ie=z.type===Un.EOF?Bt.openElementsLeftAfterEof:Bt.disallowedContentInNoscriptInHead;A._err(z,Ie),A.openElements.pop(),A.insertionMode=Nt.IN_HEAD,A._processToken(z)}function Pa(A,z){switch(z.tagID){case we.HTML:{$i(A,z);break}case we.BODY:{A._insertElement(z,dt.HTML),A.framesetOk=!1,A.insertionMode=Nt.IN_BODY;break}case we.FRAMESET:{A._insertElement(z,dt.HTML),A.insertionMode=Nt.IN_FRAMESET;break}case we.BASE:case we.BASEFONT:case we.BGSOUND:case we.LINK:case we.META:case we.NOFRAMES:case we.SCRIPT:case we.STYLE:case we.TEMPLATE:case we.TITLE:{A._err(z,Bt.abandonedHeadElementChild),A.openElements.push(A.headElement,we.HEAD),Qi(A,z),A.openElements.remove(A.headElement);break}case we.HEAD:{A._err(z,Bt.misplacedStartTagForHeadElement);break}default:zs(A,z)}}function $l(A,z){switch(z.tagID){case we.BODY:case we.HTML:case we.BR:{zs(A,z);break}case we.TEMPLATE:{io(A,z);break}default:A._err(z,Bt.endTagWithoutMatchingOpenElement)}}function zs(A,z){A._insertFakeElement(_t.BODY,we.BODY),A.insertionMode=Nt.IN_BODY,oa(A,z)}function oa(A,z){switch(z.type){case Un.CHARACTER:{ol(A,z);break}case Un.WHITESPACE_CHARACTER:{Gs(A,z);break}case Un.COMMENT:{Ao(A,z);break}case Un.START_TAG:{$i(A,z);break}case Un.END_TAG:{po(A,z);break}case Un.EOF:{_o(A,z);break}default:}}function Gs(A,z){A._reconstructActiveFormattingElements(),A._insertCharacters(z)}function ol(A,z){A._reconstructActiveFormattingElements(),A._insertCharacters(z),A.framesetOk=!1}function du(A,z){A.openElements.tmplCount===0&&A.treeAdapter.adoptAttributes(A.openElements.items[0],z.attrs)}function pu(A,z){const Ie=A.openElements.tryPeekProperlyNestedBodyElement();Ie&&A.openElements.tmplCount===0&&(A.framesetOk=!1,A.treeAdapter.adoptAttributes(Ie,z.attrs))}function Bo(A,z){const Ie=A.openElements.tryPeekProperlyNestedBodyElement();A.framesetOk&&Ie&&(A.treeAdapter.detachNode(Ie),A.openElements.popAllUpToHtmlElement(),A._insertElement(z,dt.HTML),A.insertionMode=Nt.IN_FRAMESET)}function Xl(A,z){A.openElements.hasInButtonScope(we.P)&&A._closePElement(),A._insertElement(z,dt.HTML)}function gu(A,z){A.openElements.hasInButtonScope(we.P)&&A._closePElement(),A.openElements.currentTagId!==void 0&&Xn.has(A.openElements.currentTagId)&&A.openElements.pop(),A._insertElement(z,dt.HTML)}function bl(A,z){A.openElements.hasInButtonScope(we.P)&&A._closePElement(),A._insertElement(z,dt.HTML),A.skipNextNewLine=!0,A.framesetOk=!1}function Dl(A,z){const Ie=A.openElements.tmplCount>0;(!A.formElement||Ie)&&(A.openElements.hasInButtonScope(we.P)&&A._closePElement(),A._insertElement(z,dt.HTML),Ie||(A.formElement=A.openElements.current))}function ps(A,z){A.framesetOk=!1;const Ie=z.tagID;for(let ct=A.openElements.stackTop;ct>=0;ct--){const zt=A.openElements.tagIDs[ct];if(Ie===we.LI&&zt===we.LI||(Ie===we.DD||Ie===we.DT)&&(zt===we.DD||zt===we.DT)){A.openElements.generateImpliedEndTagsWithExclusion(zt),A.openElements.popUntilTagNamePopped(zt);break}if(zt!==we.ADDRESS&&zt!==we.DIV&&zt!==we.P&&A._isSpecialElement(A.openElements.items[ct],zt))break}A.openElements.hasInButtonScope(we.P)&&A._closePElement(),A._insertElement(z,dt.HTML)}function As(A,z){A.openElements.hasInButtonScope(we.P)&&A._closePElement(),A._insertElement(z,dt.HTML),A.tokenizer.state=fr.PLAINTEXT}function Zo(A,z){A.openElements.hasInScope(we.BUTTON)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(we.BUTTON)),A._reconstructActiveFormattingElements(),A._insertElement(z,dt.HTML),A.framesetOk=!1}function us(A,z){const Ie=A.activeFormattingElements.getElementEntryInScopeWithTagName(_t.A);Ie&&(yo(A,z),A.openElements.remove(Ie.element),A.activeFormattingElements.removeEntry(Ie)),A._reconstructActiveFormattingElements(),A._insertElement(z,dt.HTML),A.activeFormattingElements.pushElement(A.openElements.current,z)}function Sl(A,z){A._reconstructActiveFormattingElements(),A._insertElement(z,dt.HTML),A.activeFormattingElements.pushElement(A.openElements.current,z)}function Os(A,z){A._reconstructActiveFormattingElements(),A.openElements.hasInScope(we.NOBR)&&(yo(A,z),A._reconstructActiveFormattingElements()),A._insertElement(z,dt.HTML),A.activeFormattingElements.pushElement(A.openElements.current,z)}function so(A,z){A._reconstructActiveFormattingElements(),A._insertElement(z,dt.HTML),A.activeFormattingElements.insertMarker(),A.framesetOk=!1}function qi(A,z){A.treeAdapter.getDocumentMode(A.document)!==kn.QUIRKS&&A.openElements.hasInButtonScope(we.P)&&A._closePElement(),A._insertElement(z,dt.HTML),A.framesetOk=!1,A.insertionMode=Nt.IN_TABLE}function Oi(A,z){A._reconstructActiveFormattingElements(),A._appendElement(z,dt.HTML),A.framesetOk=!1,z.ackSelfClosing=!0}function Yo(A){const z=Wn(A,on.TYPE);return z!=null&&z.toLowerCase()===Pr}function Vn(A,z){A._reconstructActiveFormattingElements(),A._appendElement(z,dt.HTML),Yo(z)||(A.framesetOk=!1),z.ackSelfClosing=!0}function ts(A,z){A._appendElement(z,dt.HTML),z.ackSelfClosing=!0}function lt(A,z){A.openElements.hasInButtonScope(we.P)&&A._closePElement(),A._appendElement(z,dt.HTML),A.framesetOk=!1,z.ackSelfClosing=!0}function Qt(A,z){z.tagName=_t.IMG,z.tagID=we.IMG,Oi(A,z)}function wa(A,z){A._insertElement(z,dt.HTML),A.skipNextNewLine=!0,A.tokenizer.state=fr.RCDATA,A.originalInsertionMode=A.insertionMode,A.framesetOk=!1,A.insertionMode=Nt.TEXT}function sl(A,z){A.openElements.hasInButtonScope(we.P)&&A._closePElement(),A._reconstructActiveFormattingElements(),A.framesetOk=!1,A._switchToTextParsing(z,fr.RAWTEXT)}function jo(A,z){A.framesetOk=!1,A._switchToTextParsing(z,fr.RAWTEXT)}function ns(A,z){A._switchToTextParsing(z,fr.RAWTEXT)}function sa(A,z){A._reconstructActiveFormattingElements(),A._insertElement(z,dt.HTML),A.framesetOk=!1,A.insertionMode=A.insertionMode===Nt.IN_TABLE||A.insertionMode===Nt.IN_CAPTION||A.insertionMode===Nt.IN_TABLE_BODY||A.insertionMode===Nt.IN_ROW||A.insertionMode===Nt.IN_CELL?Nt.IN_SELECT_IN_TABLE:Nt.IN_SELECT}function Ea(A,z){A.openElements.currentTagId===we.OPTION&&A.openElements.pop(),A._reconstructActiveFormattingElements(),A._insertElement(z,dt.HTML)}function Zl(A,z){A.openElements.hasInScope(we.RUBY)&&A.openElements.generateImpliedEndTags(),A._insertElement(z,dt.HTML)}function To(A,z){A.openElements.hasInScope(we.RUBY)&&A.openElements.generateImpliedEndTagsWithExclusion(we.RTC),A._insertElement(z,dt.HTML)}function Fr(A,z){A._reconstructActiveFormattingElements(),Ti(z),Ji(z),z.selfClosing?A._appendElement(z,dt.MATHML):A._insertElement(z,dt.MATHML),z.ackSelfClosing=!0}function gs(A,z){A._reconstructActiveFormattingElements(),Fi(z),Ji(z),z.selfClosing?A._appendElement(z,dt.SVG):A._insertElement(z,dt.SVG),z.ackSelfClosing=!0}function Bs(A,z){A._reconstructActiveFormattingElements(),A._insertElement(z,dt.HTML)}function $i(A,z){switch(z.tagID){case we.I:case we.S:case we.B:case we.U:case we.EM:case we.TT:case we.BIG:case we.CODE:case we.FONT:case we.SMALL:case we.STRIKE:case we.STRONG:{Sl(A,z);break}case we.A:{us(A,z);break}case we.H1:case we.H2:case we.H3:case we.H4:case we.H5:case we.H6:{gu(A,z);break}case we.P:case we.DL:case we.OL:case we.UL:case we.DIV:case we.DIR:case we.NAV:case we.MAIN:case we.MENU:case we.ASIDE:case we.CENTER:case we.FIGURE:case we.FOOTER:case we.HEADER:case we.HGROUP:case we.DIALOG:case we.DETAILS:case we.ADDRESS:case we.ARTICLE:case we.SEARCH:case we.SECTION:case we.SUMMARY:case we.FIELDSET:case we.BLOCKQUOTE:case we.FIGCAPTION:{Xl(A,z);break}case we.LI:case we.DD:case we.DT:{ps(A,z);break}case we.BR:case we.IMG:case we.WBR:case we.AREA:case we.EMBED:case we.KEYGEN:{Oi(A,z);break}case we.HR:{lt(A,z);break}case we.RB:case we.RTC:{Zl(A,z);break}case we.RT:case we.RP:{To(A,z);break}case we.PRE:case we.LISTING:{bl(A,z);break}case we.XMP:{sl(A,z);break}case we.SVG:{gs(A,z);break}case we.HTML:{du(A,z);break}case we.BASE:case we.LINK:case we.META:case we.STYLE:case we.TITLE:case we.SCRIPT:case we.BGSOUND:case we.BASEFONT:case we.TEMPLATE:{Qi(A,z);break}case we.BODY:{pu(A,z);break}case we.FORM:{Dl(A,z);break}case we.NOBR:{Os(A,z);break}case we.MATH:{Fr(A,z);break}case we.TABLE:{qi(A,z);break}case we.INPUT:{Vn(A,z);break}case we.PARAM:case we.TRACK:case we.SOURCE:{ts(A,z);break}case we.IMAGE:{Qt(A,z);break}case we.BUTTON:{Zo(A,z);break}case we.APPLET:case we.OBJECT:case we.MARQUEE:{so(A,z);break}case we.IFRAME:{jo(A,z);break}case we.SELECT:{sa(A,z);break}case we.OPTION:case we.OPTGROUP:{Ea(A,z);break}case we.NOEMBED:case we.NOFRAMES:{ns(A,z);break}case we.FRAMESET:{Bo(A,z);break}case we.TEXTAREA:{wa(A,z);break}case we.NOSCRIPT:{A.options.scriptingEnabled?ns(A,z):Bs(A,z);break}case we.PLAINTEXT:{As(A,z);break}case we.COL:case we.TH:case we.TD:case we.TR:case we.HEAD:case we.FRAME:case we.TBODY:case we.TFOOT:case we.THEAD:case we.CAPTION:case we.COLGROUP:break;default:Bs(A,z)}}function yi(A,z){if(A.openElements.hasInScope(we.BODY)&&(A.insertionMode=Nt.AFTER_BODY,A.options.sourceCodeLocationInfo)){const Ie=A.openElements.tryPeekProperlyNestedBodyElement();Ie&&A._setEndLocation(Ie,z)}}function ko(A,z){A.openElements.hasInScope(we.BODY)&&(A.insertionMode=Nt.AFTER_BODY,ks(A,z))}function Ws(A,z){const Ie=z.tagID;A.openElements.hasInScope(Ie)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(Ie))}function go(A){const z=A.openElements.tmplCount>0,{formElement:Ie}=A;z||(A.formElement=null),(Ie||z)&&A.openElements.hasInScope(we.FORM)&&(A.openElements.generateImpliedEndTags(),z?A.openElements.popUntilTagNamePopped(we.FORM):Ie&&A.openElements.remove(Ie))}function Zs(A){A.openElements.hasInButtonScope(we.P)||A._insertFakeElement(_t.P,we.P),A._closePElement()}function rs(A){A.openElements.hasInListItemScope(we.LI)&&(A.openElements.generateImpliedEndTagsWithExclusion(we.LI),A.openElements.popUntilTagNamePopped(we.LI))}function xl(A,z){const Ie=z.tagID;A.openElements.hasInScope(Ie)&&(A.openElements.generateImpliedEndTagsWithExclusion(Ie),A.openElements.popUntilTagNamePopped(Ie))}function eo(A){A.openElements.hasNumberedHeaderInScope()&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilNumberedHeaderPopped())}function ms(A,z){const Ie=z.tagID;A.openElements.hasInScope(Ie)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(Ie),A.activeFormattingElements.clearToLastMarker())}function Ui(A){A._reconstructActiveFormattingElements(),A._insertFakeElement(_t.BR,we.BR),A.openElements.pop(),A.framesetOk=!1}function uo(A,z){const Ie=z.tagName,ct=z.tagID;for(let zt=A.openElements.stackTop;zt>0;zt--){const xn=A.openElements.items[zt],Hn=A.openElements.tagIDs[zt];if(ct===Hn&&(ct!==we.UNKNOWN||A.treeAdapter.getTagName(xn)===Ie)){A.openElements.generateImpliedEndTagsWithExclusion(ct),A.openElements.stackTop>=zt&&A.openElements.shortenToLength(zt);break}if(A._isSpecialElement(xn,Hn))break}}function po(A,z){switch(z.tagID){case we.A:case we.B:case we.I:case we.S:case we.U:case we.EM:case we.TT:case we.BIG:case we.CODE:case we.FONT:case we.NOBR:case we.SMALL:case we.STRIKE:case we.STRONG:{yo(A,z);break}case we.P:{Zs(A);break}case we.DL:case we.UL:case we.OL:case we.DIR:case we.DIV:case we.NAV:case we.PRE:case we.MAIN:case we.MENU:case we.ASIDE:case we.BUTTON:case we.CENTER:case we.FIGURE:case we.FOOTER:case we.HEADER:case we.HGROUP:case we.DIALOG:case we.ADDRESS:case we.ARTICLE:case we.DETAILS:case we.SEARCH:case we.SECTION:case we.SUMMARY:case we.LISTING:case we.FIELDSET:case we.BLOCKQUOTE:case we.FIGCAPTION:{Ws(A,z);break}case we.LI:{rs(A);break}case we.DD:case we.DT:{xl(A,z);break}case we.H1:case we.H2:case we.H3:case we.H4:case we.H5:case we.H6:{eo(A);break}case we.BR:{Ui(A);break}case we.BODY:{yi(A,z);break}case we.HTML:{ko(A,z);break}case we.FORM:{go(A);break}case we.APPLET:case we.OBJECT:case we.MARQUEE:{ms(A,z);break}case we.TEMPLATE:{io(A,z);break}default:uo(A,z)}}function _o(A,z){A.tmplInsertionModeStack.length>0?ws(A,z):xr(A,z)}function Ai(A,z){var Ie;z.tagID===we.SCRIPT&&((Ie=A.scriptHandler)===null||Ie===void 0||Ie.call(A,A.openElements.current)),A.openElements.pop(),A.insertionMode=A.originalInsertionMode}function Jl(A,z){A._err(z,Bt.eofInElementThatCanContainOnlyText),A.openElements.pop(),A.insertionMode=A.originalInsertionMode,A.onEof(z)}function Ar(A,z){if(A.openElements.currentTagId!==void 0&&Ki.has(A.openElements.currentTagId))switch(A.pendingCharacterTokens.length=0,A.hasNonWhitespacePendingCharacterToken=!1,A.originalInsertionMode=A.insertionMode,A.insertionMode=Nt.IN_TABLE_TEXT,z.type){case Un.CHARACTER:{ja(A,z);break}case Un.WHITESPACE_CHARACTER:{Ql(A,z);break}}else Ls(A,z)}function oc(A,z){A.openElements.clearBackToTableContext(),A.activeFormattingElements.insertMarker(),A._insertElement(z,dt.HTML),A.insertionMode=Nt.IN_CAPTION}function Bi(A,z){A.openElements.clearBackToTableContext(),A._insertElement(z,dt.HTML),A.insertionMode=Nt.IN_COLUMN_GROUP}function ju(A,z){A.openElements.clearBackToTableContext(),A._insertFakeElement(_t.COLGROUP,we.COLGROUP),A.insertionMode=Nt.IN_COLUMN_GROUP,No(A,z)}function Pl(A,z){A.openElements.clearBackToTableContext(),A._insertElement(z,dt.HTML),A.insertionMode=Nt.IN_TABLE_BODY}function al(A,z){A.openElements.clearBackToTableContext(),A._insertFakeElement(_t.TBODY,we.TBODY),A.insertionMode=Nt.IN_TABLE_BODY,Ca(A,z)}function Uu(A,z){A.openElements.hasInTableScope(we.TABLE)&&(A.openElements.popUntilTagNamePopped(we.TABLE),A._resetInsertionMode(),A._processStartTag(z))}function Nu(A,z){Yo(z)?A._appendElement(z,dt.HTML):Ls(A,z),z.ackSelfClosing=!0}function Fa(A,z){!A.formElement&&A.openElements.tmplCount===0&&(A._insertElement(z,dt.HTML),A.formElement=A.openElements.current,A.openElements.pop())}function Ba(A,z){switch(z.tagID){case we.TD:case we.TH:case we.TR:{al(A,z);break}case we.STYLE:case we.SCRIPT:case we.TEMPLATE:{Qi(A,z);break}case we.COL:{ju(A,z);break}case we.FORM:{Fa(A,z);break}case we.TABLE:{Uu(A,z);break}case we.TBODY:case we.TFOOT:case we.THEAD:{Pl(A,z);break}case we.INPUT:{Nu(A,z);break}case we.CAPTION:{oc(A,z);break}case we.COLGROUP:{Bi(A,z);break}default:Ls(A,z)}}function Hi(A,z){switch(z.tagID){case we.TABLE:{A.openElements.hasInTableScope(we.TABLE)&&(A.openElements.popUntilTagNamePopped(we.TABLE),A._resetInsertionMode());break}case we.TEMPLATE:{io(A,z);break}case we.BODY:case we.CAPTION:case we.COL:case we.COLGROUP:case we.HTML:case we.TBODY:case we.TD:case we.TFOOT:case we.TH:case we.THEAD:case we.TR:break;default:Ls(A,z)}}function Ls(A,z){const Ie=A.fosterParentingEnabled;A.fosterParentingEnabled=!0,oa(A,z),A.fosterParentingEnabled=Ie}function Ql(A,z){A.pendingCharacterTokens.push(z)}function ja(A,z){A.pendingCharacterTokens.push(z),A.hasNonWhitespacePendingCharacterToken=!0}function ll(A,z){let Ie=0;if(A.hasNonWhitespacePendingCharacterToken)for(;Ie<A.pendingCharacterTokens.length;Ie++)Ls(A,A.pendingCharacterTokens[Ie]);else for(;Ie<A.pendingCharacterTokens.length;Ie++)A._insertCharacters(A.pendingCharacterTokens[Ie]);A.insertionMode=A.originalInsertionMode,A._processToken(z)}const Ya=new Set([we.CAPTION,we.COL,we.COLGROUP,we.TBODY,we.TD,we.TFOOT,we.TH,we.THEAD,we.TR]);function ki(A,z){const Ie=z.tagID;Ya.has(Ie)?A.openElements.hasInTableScope(we.CAPTION)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(we.CAPTION),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=Nt.IN_TABLE,Ba(A,z)):$i(A,z)}function to(A,z){const Ie=z.tagID;switch(Ie){case we.CAPTION:case we.TABLE:{A.openElements.hasInTableScope(we.CAPTION)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(we.CAPTION),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=Nt.IN_TABLE,Ie===we.TABLE&&Hi(A,z));break}case we.BODY:case we.COL:case we.COLGROUP:case we.HTML:case we.TBODY:case we.TD:case we.TFOOT:case we.TH:case we.THEAD:case we.TR:break;default:po(A,z)}}function No(A,z){switch(z.tagID){case we.HTML:{$i(A,z);break}case we.COL:{A._appendElement(z,dt.HTML),z.ackSelfClosing=!0;break}case we.TEMPLATE:{Qi(A,z);break}default:is(A,z)}}function vs(A,z){switch(z.tagID){case we.COLGROUP:{A.openElements.currentTagId===we.COLGROUP&&(A.openElements.pop(),A.insertionMode=Nt.IN_TABLE);break}case we.TEMPLATE:{io(A,z);break}case we.COL:break;default:is(A,z)}}function is(A,z){A.openElements.currentTagId===we.COLGROUP&&(A.openElements.pop(),A.insertionMode=Nt.IN_TABLE,A._processToken(z))}function Ca(A,z){switch(z.tagID){case we.TR:{A.openElements.clearBackToTableBodyContext(),A._insertElement(z,dt.HTML),A.insertionMode=Nt.IN_ROW;break}case we.TH:case we.TD:{A.openElements.clearBackToTableBodyContext(),A._insertFakeElement(_t.TR,we.TR),A.insertionMode=Nt.IN_ROW,_a(A,z);break}case we.CAPTION:case we.COL:case we.COLGROUP:case we.TBODY:case we.TFOOT:case we.THEAD:{A.openElements.hasTableBodyContextInTableScope()&&(A.openElements.clearBackToTableBodyContext(),A.openElements.pop(),A.insertionMode=Nt.IN_TABLE,Ba(A,z));break}default:Ba(A,z)}}function Ta(A,z){const Ie=z.tagID;switch(z.tagID){case we.TBODY:case we.TFOOT:case we.THEAD:{A.openElements.hasInTableScope(Ie)&&(A.openElements.clearBackToTableBodyContext(),A.openElements.pop(),A.insertionMode=Nt.IN_TABLE);break}case we.TABLE:{A.openElements.hasTableBodyContextInTableScope()&&(A.openElements.clearBackToTableBodyContext(),A.openElements.pop(),A.insertionMode=Nt.IN_TABLE,Hi(A,z));break}case we.BODY:case we.CAPTION:case we.COL:case we.COLGROUP:case we.HTML:case we.TD:case we.TH:case we.TR:break;default:Hi(A,z)}}function _a(A,z){switch(z.tagID){case we.TH:case we.TD:{A.openElements.clearBackToTableRowContext(),A._insertElement(z,dt.HTML),A.insertionMode=Nt.IN_CELL,A.activeFormattingElements.insertMarker();break}case we.CAPTION:case we.COL:case we.COLGROUP:case we.TBODY:case we.TFOOT:case we.THEAD:case we.TR:{A.openElements.hasInTableScope(we.TR)&&(A.openElements.clearBackToTableRowContext(),A.openElements.pop(),A.insertionMode=Nt.IN_TABLE_BODY,Ca(A,z));break}default:Ba(A,z)}}function aa(A,z){switch(z.tagID){case we.TR:{A.openElements.hasInTableScope(we.TR)&&(A.openElements.clearBackToTableRowContext(),A.openElements.pop(),A.insertionMode=Nt.IN_TABLE_BODY);break}case we.TABLE:{A.openElements.hasInTableScope(we.TR)&&(A.openElements.clearBackToTableRowContext(),A.openElements.pop(),A.insertionMode=Nt.IN_TABLE_BODY,Ta(A,z));break}case we.TBODY:case we.TFOOT:case we.THEAD:{(A.openElements.hasInTableScope(z.tagID)||A.openElements.hasInTableScope(we.TR))&&(A.openElements.clearBackToTableRowContext(),A.openElements.pop(),A.insertionMode=Nt.IN_TABLE_BODY,Ta(A,z));break}case we.BODY:case we.CAPTION:case we.COL:case we.COLGROUP:case we.HTML:case we.TD:case we.TH:break;default:Hi(A,z)}}function $a(A,z){const Ie=z.tagID;Ya.has(Ie)?(A.openElements.hasInTableScope(we.TD)||A.openElements.hasInTableScope(we.TH))&&(A._closeTableCell(),_a(A,z)):$i(A,z)}function Sc(A,z){const Ie=z.tagID;switch(Ie){case we.TD:case we.TH:{A.openElements.hasInTableScope(Ie)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(Ie),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=Nt.IN_ROW);break}case we.TABLE:case we.TBODY:case we.TFOOT:case we.THEAD:case we.TR:{A.openElements.hasInTableScope(Ie)&&(A._closeTableCell(),aa(A,z));break}case we.BODY:case we.CAPTION:case we.COL:case we.COLGROUP:case we.HTML:break;default:po(A,z)}}function _h(A,z){switch(z.tagID){case we.HTML:{$i(A,z);break}case we.OPTION:{A.openElements.currentTagId===we.OPTION&&A.openElements.pop(),A._insertElement(z,dt.HTML);break}case we.OPTGROUP:{A.openElements.currentTagId===we.OPTION&&A.openElements.pop(),A.openElements.currentTagId===we.OPTGROUP&&A.openElements.pop(),A._insertElement(z,dt.HTML);break}case we.HR:{A.openElements.currentTagId===we.OPTION&&A.openElements.pop(),A.openElements.currentTagId===we.OPTGROUP&&A.openElements.pop(),A._appendElement(z,dt.HTML),z.ackSelfClosing=!0;break}case we.INPUT:case we.KEYGEN:case we.TEXTAREA:case we.SELECT:{A.openElements.hasInSelectScope(we.SELECT)&&(A.openElements.popUntilTagNamePopped(we.SELECT),A._resetInsertionMode(),z.tagID!==we.SELECT&&A._processStartTag(z));break}case we.SCRIPT:case we.TEMPLATE:{Qi(A,z);break}default:}}function Ah(A,z){switch(z.tagID){case we.OPTGROUP:{A.openElements.stackTop>0&&A.openElements.currentTagId===we.OPTION&&A.openElements.tagIDs[A.openElements.stackTop-1]===we.OPTGROUP&&A.openElements.pop(),A.openElements.currentTagId===we.OPTGROUP&&A.openElements.pop();break}case we.OPTION:{A.openElements.currentTagId===we.OPTION&&A.openElements.pop();break}case we.SELECT:{A.openElements.hasInSelectScope(we.SELECT)&&(A.openElements.popUntilTagNamePopped(we.SELECT),A._resetInsertionMode());break}case we.TEMPLATE:{io(A,z);break}default:}}function kh(A,z){const Ie=z.tagID;Ie===we.CAPTION||Ie===we.TABLE||Ie===we.TBODY||Ie===we.TFOOT||Ie===we.THEAD||Ie===we.TR||Ie===we.TD||Ie===we.TH?(A.openElements.popUntilTagNamePopped(we.SELECT),A._resetInsertionMode(),A._processStartTag(z)):_h(A,z)}function Jo(A,z){const Ie=z.tagID;Ie===we.CAPTION||Ie===we.TABLE||Ie===we.TBODY||Ie===we.TFOOT||Ie===we.THEAD||Ie===we.TR||Ie===we.TD||Ie===we.TH?A.openElements.hasInTableScope(Ie)&&(A.openElements.popUntilTagNamePopped(we.SELECT),A._resetInsertionMode(),A.onEndTag(z)):Ah(A,z)}function ql(A,z){switch(z.tagID){case we.BASE:case we.BASEFONT:case we.BGSOUND:case we.LINK:case we.META:case we.NOFRAMES:case we.SCRIPT:case we.STYLE:case we.TEMPLATE:case we.TITLE:{Qi(A,z);break}case we.CAPTION:case we.COLGROUP:case we.TBODY:case we.TFOOT:case we.THEAD:{A.tmplInsertionModeStack[0]=Nt.IN_TABLE,A.insertionMode=Nt.IN_TABLE,Ba(A,z);break}case we.COL:{A.tmplInsertionModeStack[0]=Nt.IN_COLUMN_GROUP,A.insertionMode=Nt.IN_COLUMN_GROUP,No(A,z);break}case we.TR:{A.tmplInsertionModeStack[0]=Nt.IN_TABLE_BODY,A.insertionMode=Nt.IN_TABLE_BODY,Ca(A,z);break}case we.TD:case we.TH:{A.tmplInsertionModeStack[0]=Nt.IN_ROW,A.insertionMode=Nt.IN_ROW,_a(A,z);break}default:A.tmplInsertionModeStack[0]=Nt.IN_BODY,A.insertionMode=Nt.IN_BODY,$i(A,z)}}function ho(A,z){z.tagID===we.TEMPLATE&&io(A,z)}function ws(A,z){A.openElements.tmplCount>0?(A.openElements.popUntilTagNamePopped(we.TEMPLATE),A.activeFormattingElements.clearToLastMarker(),A.tmplInsertionModeStack.shift(),A._resetInsertionMode(),A.onEof(z)):xr(A,z)}function Ms(A,z){z.tagID===we.HTML?$i(A,z):mu(A,z)}function ks(A,z){var Ie;if(z.tagID===we.HTML){if(A.fragmentContext||(A.insertionMode=Nt.AFTER_AFTER_BODY),A.options.sourceCodeLocationInfo&&A.openElements.tagIDs[0]===we.HTML){A._setEndLocation(A.openElements.items[0],z);const ct=A.openElements.items[1];ct&&!(!((Ie=A.treeAdapter.getNodeSourceCodeLocation(ct))===null||Ie===void 0)&&Ie.endTag)&&A._setEndLocation(ct,z)}}else mu(A,z)}function mu(A,z){A.insertionMode=Nt.IN_BODY,oa(A,z)}function js(A,z){switch(z.tagID){case we.HTML:{$i(A,z);break}case we.FRAMESET:{A._insertElement(z,dt.HTML);break}case we.FRAME:{A._appendElement(z,dt.HTML),z.ackSelfClosing=!0;break}case we.NOFRAMES:{Qi(A,z);break}default:}}function eu(A,z){z.tagID===we.FRAMESET&&!A.openElements.isRootHtmlElementCurrent()&&(A.openElements.pop(),!A.fragmentContext&&A.openElements.currentTagId!==we.FRAMESET&&(A.insertionMode=Nt.AFTER_FRAMESET))}function xc(A,z){switch(z.tagID){case we.HTML:{$i(A,z);break}case we.NOFRAMES:{Qi(A,z);break}default:}}function wc(A,z){z.tagID===we.HTML&&(A.insertionMode=Nt.AFTER_AFTER_FRAMESET)}function la(A,z){z.tagID===we.HTML?$i(A,z):te(A,z)}function te(A,z){A.insertionMode=Nt.IN_BODY,oa(A,z)}function Ee(A,z){switch(z.tagID){case we.HTML:{$i(A,z);break}case we.NOFRAMES:{Qi(A,z);break}default:}}function Le(A,z){z.chars=Ot,A._insertCharacters(z)}function Ue(A,z){A._insertCharacters(z),A.framesetOk=!1}function Je(A){for(;A.treeAdapter.getNamespaceURI(A.openElements.current)!==dt.HTML&&A.openElements.currentTagId!==void 0&&!A._isIntegrationPoint(A.openElements.currentTagId,A.openElements.current);)A.openElements.pop()}function qe(A,z){if(Pi(z))Je(A),A._startTagOutsideForeignContent(z);else{const Ie=A._getAdjustedCurrentElement(),ct=A.treeAdapter.getNamespaceURI(Ie);ct===dt.MATHML?Ti(z):ct===dt.SVG&&(Ct(z),Fi(z)),Ji(z),z.selfClosing?A._appendElement(z,ct):A._insertElement(z,ct),z.ackSelfClosing=!0}}function ft(A,z){if(z.tagID===we.P||z.tagID===we.BR){Je(A),A._endTagOutsideForeignContent(z);return}for(let Ie=A.openElements.stackTop;Ie>0;Ie--){const ct=A.openElements.items[Ie];if(A.treeAdapter.getNamespaceURI(ct)===dt.HTML){A._endTagOutsideForeignContent(z);break}const zt=A.treeAdapter.getTagName(ct);if(zt.toLowerCase()===z.tagName){z.tagName=zt,A.openElements.shortenToLength(Ie);break}}}const yt=/["$&'<>\u0080-\uFFFF]/g,Ht=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Kt=String.prototype.codePointAt==null?(A,z)=>(A.charCodeAt(z)&64512)===55296?(A.charCodeAt(z)-55296)*1024+A.charCodeAt(z+1)-56320+65536:A.charCodeAt(z):(A,z)=>A.codePointAt(z);function Lt(A){let z="",Ie=0,ct;for(;(ct=yt.exec(A))!==null;){const{index:zt}=ct,xn=A.charCodeAt(zt),Hn=Ht.get(xn);Hn===void 0?(z+=`${A.substring(Ie,zt)}&#x${Kt(A,zt).toString(16)};`,Ie=yt.lastIndex+=+((xn&64512)===55296)):(z+=A.substring(Ie,zt)+Hn,Ie=zt+1)}return z+A.substr(Ie)}const sn=null;function nn(A,z){return function(ct){let zt,xn=0,Hn="";for(;zt=A.exec(ct);)xn!==zt.index&&(Hn+=ct.substring(xn,zt.index)),Hn+=z.get(zt[0].charCodeAt(0)),xn=zt.index+1;return Hn+ct.substring(xn)}}const Dt=null,jr=nn(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),hi=nn(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),Ni=new Set([_t.AREA,_t.BASE,_t.BASEFONT,_t.BGSOUND,_t.BR,_t.COL,_t.EMBED,_t.FRAME,_t.HR,_t.IMG,_t.INPUT,_t.KEYGEN,_t.LINK,_t.META,_t.PARAM,_t.SOURCE,_t.TRACK,_t.WBR]);function pr(A,z){return z.treeAdapter.isElementNode(A)&&z.treeAdapter.getNamespaceURI(A)===NS.HTML&&Ni.has(z.treeAdapter.getTagName(A))}const Gr={treeAdapter:vn,scriptingEnabled:!0};function qr(A,z){const Ie=Ii(Ii({},Gr),z);return pr(A,Ie)?"":Io(A,Ie)}function Ro(A,z){const Ie=Ii(Ii({},Gr),z);return Qn(A,Ie)}function Io(A,z){let Ie="";const ct=z.treeAdapter.isElementNode(A)&&z.treeAdapter.getTagName(A)===$.TEMPLATE&&z.treeAdapter.getNamespaceURI(A)===NS.HTML?z.treeAdapter.getTemplateContent(A):A,zt=z.treeAdapter.getChildNodes(ct);if(zt)for(const xn of zt)Ie+=Qn(xn,z);return Ie}function Qn(A,z){return z.treeAdapter.isElementNode(A)?Mo(A,z):z.treeAdapter.isTextNode(A)?wo(A,z):z.treeAdapter.isCommentNode(A)?Br(A,z):z.treeAdapter.isDocumentTypeNode(A)?ua(A,z):""}function Mo(A,z){const Ie=z.treeAdapter.getTagName(A);return`<${Ie}${os(A,z)}>${pr(A,z)?"":`${Io(A,z)}</${Ie}>`}`}function os(A,{treeAdapter:z}){let Ie="";for(const ct of z.getAttrList(A)){if(Ie+=" ",ct.namespace)switch(ct.namespace){case NS.XML:{Ie+=`xml:${ct.name}`;break}case NS.XMLNS:{ct.name!=="xmlns"&&(Ie+="xmlns:"),Ie+=ct.name;break}case NS.XLINK:{Ie+=`xlink:${ct.name}`;break}default:Ie+=`${ct.prefix}:${ct.name}`}else Ie+=ct.name;Ie+=`="${escapeAttribute(ct.value)}"`}return Ie}function wo(A,z){const{treeAdapter:Ie}=z,ct=Ie.getTextNodeContent(A),zt=Ie.getParentNode(A),xn=zt&&Ie.isElementNode(zt)&&Ie.getTagName(zt);return xn&&Ie.getNamespaceURI(zt)===NS.HTML&&hasUnescapedText(xn,z.scriptingEnabled)?ct:escapeText(ct)}function Br(A,{treeAdapter:z}){return`<!--${z.getCommentNodeContent(A)}-->`}function ua(A,{treeAdapter:z}){return`<!DOCTYPE ${z.getDocumentTypeNodeName(A)}>`}function Ho(A,z){return Parser.parse(A,z)}function Ei(A,z,Ie){typeof A=="string"&&(Ie=z,z=A,A=null);const ct=Parser.getFragmentParser(A,Ie);return ct.tokenizer.write(z,!0),ct.getFragment()}var bi=S(17970),ao=S(10528);const Qo=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Us=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Js={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ua(A,z){const Ie=Ec(A),ct=ie("type",{handlers:{root:ca,element:Xa,text:tn,comment:wl,doctype:Qs,raw:Ds},unknown:qo}),zt={parser:Ie?new fs(Js):fs.getFragmentParser(void 0,Js),handle(Vr){ct(Vr,zt)},stitches:!1,options:z||{}};ct(A,zt),Za(zt,(0,bi.Pk)());const xn=Ie?zt.parser.document:zt.parser.getFragment(),Hn=c(xn,{file:zt.options.file});return zt.stitches&&(0,ao.Vn)(Hn,"comment",function(Vr,Si,bn){const ar=Vr;if(ar.value.stitch&&bn&&Si!==void 0){const Ri=bn.children;return Ri[Si]=ar.value.stitch,Si}}),Hn.type==="root"&&Hn.children.length===1&&Hn.children[0].type===A.type?Hn.children[0]:Hn}function Jt(A,z){let Ie=-1;if(A)for(;++Ie<A.length;)z.handle(A[Ie])}function ca(A,z){Jt(A.children,z)}function Xa(A,z){Fl(A,z),Jt(A.children,z),tu(A,z)}function tn(A,z){z.parser.tokenizer.state>4&&(z.parser.tokenizer.state=0);const Ie={type:Un.CHARACTER,chars:A.value,location:cl(A)};Za(z,(0,bi.Pk)(A)),z.parser.currentToken=Ie,z.parser._processToken(z.parser.currentToken)}function Qs(A,z){const Ie={type:Un.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:cl(A)};Za(z,(0,bi.Pk)(A)),z.parser.currentToken=Ie,z.parser._processToken(z.parser.currentToken)}function ul(A,z){z.stitches=!0;const Ie=vu(A);if("children"in A&&"children"in Ie){const ct=Ua({type:"root",children:A.children},z.options);Ie.children=ct.children}wl({type:"comment",value:{stitch:Ie}},z)}function wl(A,z){const Ie=A.value,ct={type:Un.COMMENT,data:Ie,location:cl(A)};Za(z,(0,bi.Pk)(A)),z.parser.currentToken=ct,z.parser._processToken(z.parser.currentToken)}function Ds(A,z){if(z.parser.tokenizer.preprocessor.html="",z.parser.tokenizer.preprocessor.pos=-1,z.parser.tokenizer.preprocessor.lastGapPos=-2,z.parser.tokenizer.preprocessor.gapStack=[],z.parser.tokenizer.preprocessor.skipNextNewLine=!1,z.parser.tokenizer.preprocessor.lastChunkWritten=!1,z.parser.tokenizer.preprocessor.endOfChunkHit=!1,z.parser.tokenizer.preprocessor.isEol=!1,Vs(z,(0,bi.Pk)(A)),z.parser.tokenizer.write(z.options.tagfilter?A.value.replace(Qo,"&lt;$1$2"):A.value,!1),z.parser.tokenizer._runParsingLoop(),z.parser.tokenizer.state===72||z.parser.tokenizer.state===78){z.parser.tokenizer.preprocessor.lastChunkWritten=!0;const Ie=z.parser.tokenizer._consume();z.parser.tokenizer._callState(Ie)}}function qo(A,z){const Ie=A;if(z.options.passThrough&&z.options.passThrough.includes(Ie.type))ul(Ie,z);else{let ct="";throw Us.has(Ie.type)&&(ct=". 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 `"+Ie.type+"` node"+ct)}}function Za(A,z){Vs(A,z);const Ie=A.parser.tokenizer.currentCharacterToken;Ie&&Ie.location&&(Ie.location.endLine=A.parser.tokenizer.preprocessor.line,Ie.location.endCol=A.parser.tokenizer.preprocessor.col+1,Ie.location.endOffset=A.parser.tokenizer.preprocessor.offset+1,A.parser.currentToken=Ie,A.parser._processToken(A.parser.currentToken)),A.parser.tokenizer.paused=!1,A.parser.tokenizer.inLoop=!1,A.parser.tokenizer.active=!1,A.parser.tokenizer.returnState=fr.DATA,A.parser.tokenizer.charRefCode=-1,A.parser.tokenizer.consumedAfterSnapshot=-1,A.parser.tokenizer.currentLocation=null,A.parser.tokenizer.currentCharacterToken=null,A.parser.tokenizer.currentToken=null,A.parser.tokenizer.currentAttr={name:"",value:""}}function Vs(A,z){if(z&&z.offset!==void 0){const Ie={startLine:z.line,startCol:z.column,startOffset:z.offset,endLine:-1,endCol:-1,endOffset:-1};A.parser.tokenizer.preprocessor.lineStartPos=-z.column+1,A.parser.tokenizer.preprocessor.droppedBufferSize=z.offset,A.parser.tokenizer.preprocessor.line=z.line,A.parser.tokenizer.currentLocation=Ie}}function Fl(A,z){const Ie=A.tagName.toLowerCase();if(z.parser.tokenizer.state===fr.PLAINTEXT)return;Za(z,(0,bi.Pk)(A));const ct=z.parser.openElements.current;let zt="namespaceURI"in ct?ct.namespaceURI:m.t.html;zt===m.t.html&&Ie==="svg"&&(zt=m.t.svg);const xn=He(Th(Ii({},A),{children:[]}),{space:zt===m.t.svg?"svg":"html"}),Hn={type:Un.START_TAG,tagName:Ie,tagID:Nn(Ie),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in xn?xn.attrs:[],location:cl(A)};z.parser.currentToken=Hn,z.parser._processToken(z.parser.currentToken),z.parser.tokenizer.lastStartTagName=Ie}function tu(A,z){const Ie=A.tagName.toLowerCase();if(!z.parser.tokenizer.inForeignNode&&Tt.includes(Ie)||z.parser.tokenizer.state===fr.PLAINTEXT)return;Za(z,(0,bi.rb)(A));const ct={type:Un.END_TAG,tagName:Ie,tagID:Nn(Ie),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:cl(A)};z.parser.currentToken=ct,z.parser._processToken(z.parser.currentToken),Ie===z.parser.tokenizer.lastStartTagName&&(z.parser.tokenizer.state===fr.RCDATA||z.parser.tokenizer.state===fr.RAWTEXT||z.parser.tokenizer.state===fr.SCRIPT_DATA)&&(z.parser.tokenizer.state=fr.DATA)}function Ec(A){const z=A.type==="root"?A.children[0]:A;return!!(z&&(z.type==="doctype"||z.type==="element"&&z.tagName.toLowerCase()==="html"))}function cl(A){const z=(0,bi.Pk)(A)||{line:void 0,column:void 0,offset:void 0},Ie=(0,bi.rb)(A)||{line:void 0,column:void 0,offset:void 0};return{startLine:z.line,startCol:z.column,startOffset:z.offset,endLine:Ie.line,endCol:Ie.column,endOffset:Ie.offset}}function vu(A){return"children"in A?(0,Y.ZP)(Th(Ii({},A),{children:[]})):(0,Y.ZP)(A)}function Xc(A){return function(z,Ie){return Ua(z,Th(Ii({},A),{file:Ie}))}}},10787:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return b}});function B(v){if(typeof v!="string")throw new TypeError("Expected a string");return v.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Y=S(2348),s=S(10502);function w(v,c,h){const g=h||{},x=(0,s.O)(g.ignore||[]),T=_(c);let I=-1;for(;++I<T.length;)(0,Y.S4)(v,"text",R);function R(k,L){let H=-1,M;for(;++H<L.length;){const F=L[H],P=M?M.children:void 0;if(x(F,P?P.indexOf(F):void 0,M))return;M=F}if(M)return N(k,L)}function N(k,L){const H=L[L.length-1],M=T[I][0],F=T[I][1];let P=0;const G=H.children.indexOf(k);let Q=!1,ee=[];M.lastIndex=0;let ae=M.exec(k.value);for(;ae;){const oe=ae.index,he={index:ae.index,input:ae.input,stack:[...L,k]};let le=F(...ae,he);if(typeof le=="string"&&(le=le.length>0?{type:"text",value:le}:void 0),le===!1?M.lastIndex=oe+1:(P!==oe&&ee.push({type:"text",value:k.value.slice(P,oe)}),Array.isArray(le)?ee.push(...le):le&&ee.push(le),P=oe+ae[0].length,Q=!0),!M.global)break;ae=M.exec(k.value)}return Q?(P<k.value.length&&ee.push({type:"text",value:k.value.slice(P)}),H.children.splice(G,1,...ee)):ee=[k],G+ee.length}}function _(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 g=-1;for(;++g<h.length;){const x=h[g];c.push([u(x[0]),p(x[1])])}return c}function u(v){return typeof v=="string"?new RegExp(B(v),"g"):v}function p(v){return typeof v=="function"?v:function(){return v}}function y(v){w(v,[/\r?\n|\r/g,m])}function m(){return{type:"break"}}function b(){return function(v){y(v)}}},30084:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return T}});var B=S(87342);function Y(I,R){const N=String(I);let k=N.indexOf(R),L=k,H=0,M=0;if(typeof R!="string")throw new TypeError("Expected substring");for(;k!==-1;)k===L?++H>M&&(M=H):H=1,L=k+R.length,k=N.indexOf(R,L);return M}function s(){return{enter:{mathFlow:I,mathFlowFenceMeta:R,mathText:H},exit:{mathFlow:L,mathFlowFence:k,mathFlowFenceMeta:N,mathFlowValue:F,mathText:M,mathTextData:F}};function I(P){const U={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[U]}},P)}function R(){this.buffer()}function N(){const P=this.resume(),U=this.stack[this.stack.length-1];(0,B.ok)(U.type==="math"),U.meta=P}function k(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function L(P){const U=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=U;const Q=G.data.hChildren[0];(0,B.ok)(Q.type==="element"),(0,B.ok)(Q.tagName==="code"),Q.children.push({type:"text",value:U}),this.data.mathFlowInside=void 0}function H(P){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},P),this.buffer()}function M(P){const U=this.resume(),G=this.stack[this.stack.length-1];(0,B.ok)(G.type==="inlineMath"),this.exit(P),G.value=U,G.data.hChildren.push({type:"text",value:U})}function F(P){this.config.enter.data.call(this,P),this.config.exit.data.call(this,P)}}function w(I){let R=(I||{}).singleDollarTextMath;return R==null&&(R=!0),k.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:N,inlineMath:k}};function N(H,M,F,P){const U=H.value||"",G=F.createTracker(P),Q="$".repeat(Math.max(Y(U,"$")+1,2)),ee=F.enter("mathFlow");let ae=G.move(Q);if(H.meta){const oe=F.enter("mathFlowMeta");ae+=G.move(F.safe(H.meta,Ii({after:`
`,before:ae,encode:["$"]},G.current()))),oe()}return ae+=G.move(`
`),U&&(ae+=G.move(U+`
`)),ae+=G.move(Q),ee(),ae}function k(H,M,F){let P=H.value||"",U=1;for(R||U++;new RegExp("(^|[^$])"+"\\$".repeat(U)+"([^$]|$)").test(P);)U++;const G="$".repeat(U);/[^ \r\n]/.test(P)&&(/^[ \r\n]/.test(P)&&/[ \r\n]$/.test(P)||/^\$|\$$/.test(P))&&(P=" "+P+" ");let Q=-1;for(;++Q<F.unsafe.length;){const ee=F.unsafe[Q];if(!ee.atBreak)continue;const ae=F.compilePattern(ee);let oe;for(;oe=ae.exec(P);){let he=oe.index;P.codePointAt(he)===10&&P.codePointAt(he-1)===13&&he--,P=P.slice(0,he)+" "+P.slice(oe.index+1)}}return G+P+G}function L(){return"$"}}var _=S(26735),u=S(80722);const p={tokenize:m,concrete:!0,name:"mathFlow"},y={tokenize:b,partial:!0};function m(I,R,N){const k=this,L=k.events[k.events.length-1],H=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0;let M=0;return F;function F(pe){return I.enter("mathFlow"),I.enter("mathFlowFence"),I.enter("mathFlowFenceSequence"),P(pe)}function P(pe){return pe===36?(I.consume(pe),M++,P):M<2?N(pe):(I.exit("mathFlowFenceSequence"),(0,_.f)(I,U,"whitespace")(pe))}function U(pe){return pe===null||(0,u.Ch)(pe)?Q(pe):(I.enter("mathFlowFenceMeta"),I.enter("chunkString",{contentType:"string"}),G(pe))}function G(pe){return pe===null||(0,u.Ch)(pe)?(I.exit("chunkString"),I.exit("mathFlowFenceMeta"),Q(pe)):pe===36?N(pe):(I.consume(pe),G)}function Q(pe){return I.exit("mathFlowFence"),k.interrupt?R(pe):I.attempt(y,ee,le)(pe)}function ee(pe){return I.attempt({tokenize:be,partial:!0},le,ae)(pe)}function ae(pe){return(H?(0,_.f)(I,oe,"linePrefix",H+1):oe)(pe)}function oe(pe){return pe===null?le(pe):(0,u.Ch)(pe)?I.attempt(y,ee,le)(pe):(I.enter("mathFlowValue"),he(pe))}function he(pe){return pe===null||(0,u.Ch)(pe)?(I.exit("mathFlowValue"),oe(pe)):(I.consume(pe),he)}function le(pe){return I.exit("mathFlow"),R(pe)}function be(pe,_e,ne){let ue=0;return(0,_.f)(pe,ce,"linePrefix",k.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ce(Ne){return pe.enter("mathFlowFence"),pe.enter("mathFlowFenceSequence"),Re(Ne)}function Re(Ne){return Ne===36?(ue++,pe.consume(Ne),Re):ue<M?ne(Ne):(pe.exit("mathFlowFenceSequence"),(0,_.f)(pe,ke,"whitespace")(Ne))}function ke(Ne){return Ne===null||(0,u.Ch)(Ne)?(pe.exit("mathFlowFence"),_e(Ne)):ne(Ne)}}}function b(I,R,N){const k=this;return L;function L(M){return M===null?R(M):(I.enter("lineEnding"),I.consume(M),I.exit("lineEnding"),H)}function H(M){return k.parser.lazy[k.now().line]?N(M):R(M)}}function v(I){let N=(I||{}).singleDollarTextMath;return N==null&&(N=!0),{tokenize:k,resolve:c,previous:h,name:"mathText"};function k(L,H,M){const F=this;let P=0,U,G;return Q;function Q(le){return L.enter("mathText"),L.enter("mathTextSequence"),ee(le)}function ee(le){return le===36?(L.consume(le),P++,ee):P<2&&!N?M(le):(L.exit("mathTextSequence"),ae(le))}function ae(le){return le===null?M(le):le===36?(G=L.enter("mathTextSequence"),U=0,he(le)):le===32?(L.enter("space"),L.consume(le),L.exit("space"),ae):(0,u.Ch)(le)?(L.enter("lineEnding"),L.consume(le),L.exit("lineEnding"),ae):(L.enter("mathTextData"),oe(le))}function oe(le){return le===null||le===32||le===36||(0,u.Ch)(le)?(L.exit("mathTextData"),ae(le)):(L.consume(le),oe)}function he(le){return le===36?(L.consume(le),U++,he):U===P?(L.exit("mathTextSequence"),L.exit("mathText"),H(le)):(G.type="mathTextData",oe(le))}}}function c(I){let R=I.length-4,N=3,k,L;if((I[N][1].type==="lineEnding"||I[N][1].type==="space")&&(I[R][1].type==="lineEnding"||I[R][1].type==="space")){for(k=N;++k<R;)if(I[k][1].type==="mathTextData"){I[R][1].type="mathTextPadding",I[N][1].type="mathTextPadding",N+=2,R-=2;break}}for(k=N-1,R++;++k<=R;)L===void 0?k!==R&&I[k][1].type!=="lineEnding"&&(L=k):(k===R||I[k][1].type==="lineEnding")&&(I[L][1].type="mathTextData",k!==L+2&&(I[L][1].end=I[k-1][1].end,I.splice(L+2,k-L-2),R-=k-L-2,k=L+2),L=void 0);return I}function h(I){return I!==36||this.events[this.events.length-1][1].type==="characterEscape"}function g(I){return{flow:{36:p},text:{36:v(I)}}}const x={};function T(I){const R=this,N=I||x,k=R.data(),L=k.micromarkExtensions||(k.micromarkExtensions=[]),H=k.fromMarkdownExtensions||(k.fromMarkdownExtensions=[]),M=k.toMarkdownExtensions||(k.toMarkdownExtensions=[]);L.push(g(N)),H.push(s()),M.push(w(N))}},16722:function(Oe,J,S){"use strict";S.d(J,{Z:function(){return y}});const B=m=>typeof m=="object"&&m!=null&&m.nodeType===1,Y=(m,b)=>(!b||m!=="hidden")&&m!=="visible"&&m!=="clip",s=(m,b)=>{if(m.clientHeight<m.scrollHeight||m.clientWidth<m.scrollWidth){const v=getComputedStyle(m,null);return Y(v.overflowY,b)||Y(v.overflowX,b)||(c=>{const h=(g=>{if(!g.ownerDocument||!g.ownerDocument.defaultView)return null;try{return g.ownerDocument.defaultView.frameElement}catch(x){return null}})(c);return!!h&&(h.clientHeight<c.scrollHeight||h.clientWidth<c.scrollWidth)})(m)}return!1},w=(m,b,v,c,h,g,x,T)=>g<m&&x>b||g>m&&x<b?0:g<=m&&T<=v||x>=b&&T>=v?g-m-c:x>b&&T<v||g<m&&T>v?x-b+h:0,_=m=>{const b=m.parentElement;return b==null?m.getRootNode().host||null:b},u=(m,b)=>{var v,c,h,g;if(typeof document=="undefined")return[];const{scrollMode:x,block:T,inline:I,boundary:R,skipOverflowHiddenElements:N}=b,k=typeof R=="function"?R:ke=>ke!==R;if(!B(m))throw new TypeError("Invalid target");const L=document.scrollingElement||document.documentElement,H=[];let M=m;for(;B(M)&&k(M);){if(M=_(M),M===L){H.push(M);break}M!=null&&M===document.body&&s(M)&&!s(document.documentElement)||M!=null&&s(M,N)&&H.push(M)}const F=(c=(v=window.visualViewport)==null?void 0:v.width)!=null?c:innerWidth,P=(g=(h=window.visualViewport)==null?void 0:h.height)!=null?g:innerHeight,{scrollX:U,scrollY:G}=window,{height:Q,width:ee,top:ae,right:oe,bottom:he,left:le}=m.getBoundingClientRect(),{top:be,right:pe,bottom:_e,left:ne}=(ke=>{const Ne=window.getComputedStyle(ke);return{top:parseFloat(Ne.scrollMarginTop)||0,right:parseFloat(Ne.scrollMarginRight)||0,bottom:parseFloat(Ne.scrollMarginBottom)||0,left:parseFloat(Ne.scrollMarginLeft)||0}})(m);let ue=T==="start"||T==="nearest"?ae-be:T==="end"?he+_e:ae+Q/2-be+_e,ce=I==="center"?le+ee/2-ne+pe:I==="end"?oe+pe:le-ne;const Re=[];for(let ke=0;ke<H.length;ke++){const Ne=H[ke],{height:De,width:Me,top:We,right:je,bottom:et,left:it}=Ne.getBoundingClientRect();if(x==="if-needed"&&ae>=0&&le>=0&&he<=P&&oe<=F&&(Ne===L&&!s(Ne)||ae>=We&&he<=et&&le>=it&&oe<=je))return Re;const ze=getComputedStyle(Ne),xe=parseInt(ze.borderLeftWidth,10),fe=parseInt(ze.borderTopWidth,10),W=parseInt(ze.borderRightWidth,10),Z=parseInt(ze.borderBottomWidth,10);let me=0,Ce=0;const re="offsetWidth"in Ne?Ne.offsetWidth-Ne.clientWidth-xe-W:0,ie="offsetHeight"in Ne?Ne.offsetHeight-Ne.clientHeight-fe-Z:0,de="offsetWidth"in Ne?Ne.offsetWidth===0?0:Me/Ne.offsetWidth:0,Ae="offsetHeight"in Ne?Ne.offsetHeight===0?0:De/Ne.offsetHeight:0;if(L===Ne)me=T==="start"?ue:T==="end"?ue-P:T==="nearest"?w(G,G+P,P,fe,Z,G+ue,G+ue+Q,Q):ue-P/2,Ce=I==="start"?ce:I==="center"?ce-F/2:I==="end"?ce-F:w(U,U+F,F,xe,W,U+ce,U+ce+ee,ee),me=Math.max(0,me+G),Ce=Math.max(0,Ce+U);else{me=T==="start"?ue-We-fe:T==="end"?ue-et+Z+ie:T==="nearest"?w(We,et,De,fe,Z+ie,ue,ue+Q,Q):ue-(We+De/2)+ie/2,Ce=I==="start"?ce-it-xe:I==="center"?ce-(it+Me/2)+re/2:I==="end"?ce-je+W+re:w(it,je,Me,xe,W+re,ce,ce+ee,ee);const{scrollLeft:Be,scrollTop:He}=Ne;me=Ae===0?0:Math.max(0,Math.min(He+me/Ae,Ne.scrollHeight-De/Ae+ie)),Ce=de===0?0:Math.max(0,Math.min(Be+Ce/de,Ne.scrollWidth-Me/de+re)),ue+=He-me,ce+=Be-Ce}Re.push({el:Ne,top:me,left:Ce})}return Re},p=m=>m===!1?{block:"end",inline:"nearest"}:(b=>b===Object(b)&&Object.keys(b).length!==0)(m)?m:{block:"start",inline:"nearest"};function y(m,b){if(!m.isConnected||!(h=>{let g=h;for(;g&&g.parentNode;){if(g.parentNode===document)return!0;g=g.parentNode instanceof ShadowRoot?g.parentNode.host:g.parentNode}return!1})(m))return;const v=(h=>{const g=window.getComputedStyle(h);return{top:parseFloat(g.scrollMarginTop)||0,right:parseFloat(g.scrollMarginRight)||0,bottom:parseFloat(g.scrollMarginBottom)||0,left:parseFloat(g.scrollMarginLeft)||0}})(m);if((h=>typeof h=="object"&&typeof h.behavior=="function")(b))return b.behavior(u(m,b));const c=typeof b=="boolean"||b==null?void 0:b.behavior;for(const{el:h,top:g,left:x}of u(m,p(b))){const T=g-v.top+v.bottom,I=x-v.left+v.right;h.scroll({top:T,left:I,behavior:c})}}},71523:function(Oe,J,S){"use strict";S.d(J,{P:function(){return Y},Q:function(){return B}});function B(s){const w=String(s||"").trim();return w?w.split(/[ \t\n\r\f]+/g):[]}function Y(s){return s.join(" ").trim()}},10502:function(Oe,J,S){"use strict";S.d(J,{O:function(){return Y}});const B=function(m,b,v,c,h){const g=Y(b);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 y(m)?g.call(h,m,v,c):!1},Y=function(m){if(m==null)return p;if(typeof m=="function")return u(m);if(typeof m=="object")return Array.isArray(m)?s(m):w(m);if(typeof m=="string")return _(m);throw new Error("Expected function, string, or object as test")};function s(m){const b=[];let v=-1;for(;++v<m.length;)b[v]=Y(m[v]);return u(c);function c(...h){let g=-1;for(;++g<b.length;)if(b[g].apply(this,h))return!0;return!1}}function w(m){const b=m;return u(v);function v(c){const h=c;let g;for(g in m)if(h[g]!==b[g])return!1;return!0}}function _(m){return u(b);function b(v){return v&&v.type===m}}function u(m){return b;function b(v,c,h){return!!(y(v)&&m.call(this,v,typeof c=="number"?c:void 0,h||void 0))}}function p(){return!0}function y(m){return m!==null&&typeof m=="object"&&"type"in m}},17970:function(Oe,J,S){"use strict";S.d(J,{FK:function(){return w},Pk:function(){return Y},rb:function(){return B}});const B=s("end"),Y=s("start");function s(_){return u;function u(p){const y=p&&p.position&&p.position[_]||{};if(typeof y.line=="number"&&y.line>0&&typeof y.column=="number"&&y.column>0)return{line:y.line,column:y.column,offset:typeof y.offset=="number"&&y.offset>-1?y.offset:void 0}}}function w(_){const u=Y(_),p=B(_);if(u&&p)return{start:u,end:p}}},2348:function(Oe,J,S){"use strict";S.d(J,{AM:function(){return u},S4:function(){return p}});var B=S(10502);function Y(m){return m}const s=[],w=!0,_=!1,u="skip";function p(m,b,v,c){let h;typeof b=="function"&&typeof v!="function"?(c=v,v=b):h=b;const g=(0,B.O)(h),x=c?-1:1;T(m,void 0,[])();function T(I,R,N){const k=I&&typeof I=="object"?I:{};if(typeof k.type=="string"){const H=typeof k.tagName=="string"?k.tagName:typeof k.name=="string"?k.name:void 0;Object.defineProperty(L,"name",{value:"node ("+(I.type+(H?"<"+H+">":""))+")"})}return L;function L(){let H=s,M,F,P;if((!b||g(I,R,N[N.length-1]||void 0))&&(H=y(v(I,N)),H[0]===_))return H;if("children"in I&&I.children){const U=I;if(U.children&&H[0]!==u)for(F=(c?U.children.length:-1)+x,P=N.concat(U);F>-1&&F<U.children.length;){const G=U.children[F];if(M=T(G,F,P)(),M[0]===_)return M;F=typeof M[1]=="number"?M[1]:F+x}}return H}}}function y(m){return Array.isArray(m)?m:typeof m=="number"?[w,m]:m==null?s:[m]}},10528:function(Oe,J,S){"use strict";S.d(J,{Vn:function(){return Y}});var B=S(2348);function Y(s,w,_,u){let p,y,m;typeof w=="function"&&typeof _!="function"?(y=void 0,m=w,p=_):(y=w,m=_,p=u),(0,B.S4)(s,y,b,p);function b(v,c){const h=c[c.length-1],g=h?h.children.indexOf(v):void 0;return m(v,g,h)}}},43309:function(Oe,J,S){"use strict";S.d(J,{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/"}},47854:function(Oe){"use strict";Oe.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"}')},80501:function(Oe){"use strict";Oe.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"}')}}]);
}());