|
|
!(function(){var fb=Object.defineProperty,pb=Object.defineProperties;var gb=Object.getOwnPropertyDescriptors;var l0=Object.getOwnPropertySymbols;var N1=Object.prototype.hasOwnProperty,A1=Object.prototype.propertyIsEnumerable;var ny=Math.pow,k1=(j,S,p)=>S in j?fb(j,S,{enumerable:!0,configurable:!0,writable:!0,value:p}):j[S]=p,to=(j,S)=>{for(var p in S||(S={}))N1.call(S,p)&&k1(j,p,S[p]);if(l0)for(var p of l0(S))A1.call(S,p)&&k1(j,p,S[p]);return j},Md=(j,S)=>pb(j,gb(S));var I1=(j,S)=>{var p={};for(var E in j)N1.call(j,E)&&S.indexOf(E)<0&&(p[E]=j[E]);if(j!=null&&l0)for(var E of l0(j))S.indexOf(E)<0&&A1.call(j,E)&&(p[E]=j[E]);return p};var iy=(j,S,p)=>new Promise((E,I)=>{var D=C=>{try{V(p.next(C))}catch(Z){I(Z)}},P=C=>{try{V(p.throw(C))}catch(Z){I(Z)}},V=C=>C.done?E(C.value):Promise.resolve(C.value).then(D,P);V((p=p.apply(j,S)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[9865],{66543:function(){"use strict"},59598:function(){"use strict"},99498:function(j,S,p){(function(E){E(p(89780))})(function(E){E.defineOption("placeholder","",function(lt,J,Y){var Mt=Y&&Y!=E.Init;if(J&&!Mt)lt.on("blur",V),lt.on("change",C),lt.on("swapDoc",C),E.on(lt.getInputField(),"compositionupdate",lt.state.placeholderCompose=function(){P(lt)}),C(lt);else if(!J&&Mt){lt.off("blur",V),lt.off("change",C),lt.off("swapDoc",C),E.off(lt.getInputField(),"compositionupdate",lt.state.placeholderCompose),I(lt);var ct=lt.getWrapperElement();ct.className=ct.className.replace(" CodeMirror-empty","")}J&&!lt.hasFocus()&&V(lt)});function I(lt){lt.state.placeholder&&(lt.state.placeholder.parentNode.removeChild(lt.state.placeholder),lt.state.placeholder=null)}function D(lt){I(lt);var J=lt.state.placeholder=document.createElement("pre");J.style.cssText="height: 0; overflow: visible",J.style.direction=lt.getOption("direction"),J.className="CodeMirror-placeholder CodeMirror-line-like";var Y=lt.getOption("placeholder");typeof Y=="string"&&(Y=document.createTextNode(Y)),J.appendChild(Y),lt.display.lineSpace.insertBefore(J,lt.display.lineSpace.firstChild)}function P(lt){setTimeout(function(){var J=!1,Y=lt.getInputField();Y.nodeName=="TEXTAREA"?J=!Y.value:lt.lineCount()==1&&(J=!/[^\u200b]/.test(Y.querySelector(".CodeMirror-line").textContent)),J?D(lt):I(lt)},20)}function V(lt){Z(lt)&&D(lt)}function C(lt){var J=lt.getWrapperElement(),Y=Z(lt);J.className=J.className.replace(" CodeMirror-empty","")+(Y?" CodeMirror-empty":""),Y?D(lt):I(lt)}function Z(lt){return lt.lineCount()===1&<.getLine(0)===""}})},25717:function(j,S,p){(function(E){E(p(89780))})(function(E){var I={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},D=E.Pos;E.defineOption("autoCloseBrackets",!1,function(_t,Ct,xt){xt&&xt!=E.Init&&(_t.removeKeyMap(V),_t.state.closeBrackets=null),Ct&&(C(P(Ct,"pairs")),_t.state.closeBrackets=Ct,_t.addKeyMap(V))});function P(_t,Ct){return Ct=="pairs"&&typeof _t=="string"?_t:typeof _t=="object"&&_t[Ct]!=null?_t[Ct]:I[Ct]}var V={Backspace:J,Enter:Y};function C(_t){for(var Ct=0;Ct<_t.length;Ct++){var xt=_t.charAt(Ct),St="'"+xt+"'";V[St]||(V[St]=Z(xt))}}C(I.pairs+"`");function Z(_t){return function(Ct){return ct(Ct,_t)}}function lt(_t){var Ct=_t.state.closeBrackets;if(!Ct||Ct.override)return Ct;var xt=_t.getModeAt(_t.getCursor());return xt.closeBrackets||Ct}function J(_t){var Ct=lt(_t);if(!Ct||_t.getOption("disableInput"))return E.Pass;for(var xt=P(Ct,"pairs"),St=_t.listSelections(),ft=0;ft<St.length;ft++){if(!St[ft].empty())return E.Pass;var vt=$t(_t,St[ft].head);if(!vt||xt.indexOf(vt)%2!=0)return E.Pass}for(var ft=St.length-1;ft>=0;ft--){var ot=St[ft].head;_t.replaceRange("",D(ot.line,ot.ch-1),D(ot.line,ot.ch+1),"+delete")}}function Y(_t){var Ct=lt(_t),xt=Ct&&P(Ct,"explode");if(!xt||_t.getOption("disableInput"))return E.Pass;for(var St=_t.listSelections(),ft=0;ft<St.length;ft++){if(!St[ft].empty())return E.Pass;var vt=$t(_t,St[ft].head);if(!vt||xt.indexOf(vt)%2!=0)return E.Pass}_t.operation(function(){var ot=_t.lineSeparator()||`
|
|
|
`;_t.replaceSelection(ot+ot,null),_t.execCommand("goCharLeft"),St=_t.listSelections();for(var st=0;st<St.length;st++){var q=St[st].head.line;_t.indentLine(q,null,!0),_t.indentLine(q+1,null,!0)}})}function Mt(_t){var Ct=E.cmpPos(_t.anchor,_t.head)>0;return{anchor:new D(_t.anchor.line,_t.anchor.ch+(Ct?-1:1)),head:new D(_t.head.line,_t.head.ch+(Ct?1:-1))}}function ct(_t,Ct){var xt=lt(_t);if(!xt||_t.getOption("disableInput"))return E.Pass;var St=P(xt,"pairs"),ft=St.indexOf(Ct);if(ft==-1)return E.Pass;for(var vt=P(xt,"closeBefore"),ot=P(xt,"triples"),st=St.charAt(ft+1)==Ct,q=_t.listSelections(),wt=ft%2==0,Bt,pt=0;pt<q.length;pt++){var Ht=q[pt],At=Ht.head,gt,Pt=_t.getRange(At,D(At.line,At.ch+1));if(wt&&!Ht.empty())gt="surround";else if((st||!wt)&&Pt==Ct)st&&Ft(_t,At)?gt="both":ot.indexOf(Ct)>=0&&_t.getRange(At,D(At.line,At.ch+3))==Ct+Ct+Ct?gt="skipThree":gt="skip";else if(st&&At.ch>1&&ot.indexOf(Ct)>=0&&_t.getRange(D(At.line,At.ch-2),At)==Ct+Ct){if(At.ch>2&&/\bstring/.test(_t.getTokenTypeAt(D(At.line,At.ch-2))))return E.Pass;gt="addFour"}else if(st){var kt=At.ch==0?" ":_t.getRange(D(At.line,At.ch-1),At);if(!E.isWordChar(Pt)&&kt!=Ct&&!E.isWordChar(kt))gt="both";else return E.Pass}else if(wt&&(Pt.length===0||/\s/.test(Pt)||vt.indexOf(Pt)>-1))gt="both";else return E.Pass;if(!Bt)Bt=gt;else if(Bt!=gt)return E.Pass}var Gt=ft%2?St.charAt(ft-1):Ct,ue=ft%2?Ct:St.charAt(ft+1);_t.operation(function(){if(Bt=="skip")_t.execCommand("goCharRight");else if(Bt=="skipThree")for(var le=0;le<3;le++)_t.execCommand("goCharRight");else if(Bt=="surround"){for(var re=_t.getSelections(),le=0;le<re.length;le++)re[le]=Gt+re[le]+ue;_t.replaceSelections(re,"around"),re=_t.listSelections().slice();for(var le=0;le<re.length;le++)re[le]=Mt(re[le]);_t.setSelections(re)}else Bt=="both"?(_t.replaceSelection(Gt+ue,null),_t.triggerElectric(Gt+ue),_t.execCommand("goCharLeft")):Bt=="addFour"&&(_t.replaceSelection(Gt+Gt+Gt+Gt,"before"),_t.execCommand("goCharRight"))})}function $t(_t,Ct){var xt=_t.getRange(D(Ct.line,Ct.ch-1),D(Ct.line,Ct.ch+1));return xt.length==2?xt:null}function Ft(_t,Ct){var xt=_t.getTokenAt(D(Ct.line,Ct.ch+1));return/\bstring/.test(xt.type)&&xt.start==Ct.ch&&(Ct.ch==0||!/\bstring/.test(_t.getTokenTypeAt(Ct)))}})},6313:function(j,S,p){(function(E){E(p(89780),p(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(J,Y,Mt){if(Mt!=E.Init&&Mt&&J.removeKeyMap("autoCloseTags"),!!Y){var ct={name:"autoCloseTags"};(typeof Y!="object"||Y.whenClosing!==!1)&&(ct["'/'"]=function($t){return C($t)}),(typeof Y!="object"||Y.whenOpening!==!1)&&(ct["'>'"]=function($t){return P($t)}),J.addKeyMap(ct)}});var I=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],D=["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 P(J){if(J.getOption("disableInput"))return E.Pass;for(var Y=J.listSelections(),Mt=[],ct=J.getOption("autoCloseTags"),$t=0;$t<Y.length;$t++){if(!Y[$t].empty())return E.Pass;var Ft=Y[$t].head,_t=J.getTokenAt(Ft),Ct=E.innerMode(J.getMode(),_t.state),xt=Ct.state,St=Ct.mode.xmlCurrentTag&&Ct.mode.xmlCurrentTag(xt),ft=St&&St.name;if(!ft)return E.Pass;var vt=Ct.mode.configuration=="html",ot=typeof ct=="object"&&ct.dontCloseTags||vt&&I,st=typeof ct=="object"&&ct.indentTags||vt&&D;_t.end>Ft.ch&&(ft=ft.slice(0,ft.length-_t.end+Ft.ch));var q=ft.toLowerCase();if(!ft||_t.type=="string"&&(_t.end!=Ft.ch||!/[\"\']/.test(_t.string.charAt(_t.string.length-1))||_t.string.length==1)||_t.type=="tag"&&St.close||_t.string.indexOf("/")==Ft.ch-_t.start-1||ot&&Z(ot,q)>-1||lt(J,Ct.mode.xmlCurrentContext&&Ct.mode.xmlCurrentContext(xt)||[],ft,Ft,!0))return E.Pass;var wt=typeof ct=="object"&&ct.emptyTags;if(wt&&Z(wt,ft)>-1){Mt[$t]={text:"/>",newPos:E.Pos(Ft.line,Ft.ch+2)};continue}var Bt=st&&Z(st,q)>-1;Mt[$t]={indent:Bt,text:">"+(Bt?`
|
|
|
|
|
|
`:"")+"</"+ft+">",newPos:Bt?E.Pos(Ft.line+1,0):E.Pos(Ft.line,Ft.ch+1)}}for(var pt=typeof ct=="object"&&ct.dontIndentOnAutoClose,$t=Y.length-1;$t>=0;$t--){var Ht=Mt[$t];J.replaceRange(Ht.text,Y[$t].head,Y[$t].anchor,"+insert");var At=J.listSelections().slice(0);At[$t]={head:Ht.newPos,anchor:Ht.newPos},J.setSelections(At),!pt&&Ht.indent&&(J.indentLine(Ht.newPos.line,null,!0),J.indentLine(Ht.newPos.line+1,null,!0))}}function V(J,Y){for(var Mt=J.listSelections(),ct=[],$t=Y?"/":"</",Ft=J.getOption("autoCloseTags"),_t=typeof Ft=="object"&&Ft.dontIndentOnSlash,Ct=0;Ct<Mt.length;Ct++){if(!Mt[Ct].empty())return E.Pass;var xt=Mt[Ct].head,St=J.getTokenAt(xt),ft=E.innerMode(J.getMode(),St.state),vt=ft.state;if(Y&&(St.type=="string"||St.string.charAt(0)!="<"||St.start!=xt.ch-1))return E.Pass;var ot,st=ft.mode.name!="xml"&&J.getMode().name=="htmlmixed";if(st&&ft.mode.name=="javascript")ot=$t+"script";else if(st&&ft.mode.name=="css")ot=$t+"style";else{var q=ft.mode.xmlCurrentContext&&ft.mode.xmlCurrentContext(vt);if(!q||q.length&<(J,q,q[q.length-1],xt))return E.Pass;ot=$t+q[q.length-1]}J.getLine(xt.line).charAt(St.end)!=">"&&(ot+=">"),ct[Ct]=ot}if(J.replaceSelections(ct),Mt=J.listSelections(),!_t)for(var Ct=0;Ct<Mt.length;Ct++)(Ct==Mt.length-1||Mt[Ct].head.line<Mt[Ct+1].head.line)&&J.indentLine(Mt[Ct].head.line)}function C(J){return J.getOption("disableInput")?E.Pass:V(J,!0)}E.commands.closeTag=function(J){return V(J)};function Z(J,Y){if(J.indexOf)return J.indexOf(Y);for(var Mt=0,ct=J.length;Mt<ct;++Mt)if(J[Mt]==Y)return Mt;return-1}function lt(J,Y,Mt,ct,$t){if(!E.scanForClosingTag)return!1;var Ft=Math.min(J.lastLine()+1,ct.line+500),_t=E.scanForClosingTag(J,ct,null,Ft);if(!_t||_t.tag!=Mt)return!1;for(var Ct=$t?1:0,xt=Y.length-1;xt>=0&&Y[xt]==Mt;xt--)++Ct;ct=_t.to;for(var xt=1;xt<Ct;xt++){var St=E.scanForClosingTag(J,ct,null,Ft);if(!St||St.tag!=Mt)return!1;ct=St.to}return!0}})},32855:function(j,S,p){(function(E){E(p(89780))})(function(E){"use strict";var I=E.Pos;function D(xt,St){return xt.line-St.line||xt.ch-St.ch}var P="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",V=P+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",C=new RegExp("<(/?)(["+P+"]["+V+"]*)","g");function Z(xt,St,ft,vt){this.line=St,this.ch=ft,this.cm=xt,this.text=xt.getLine(St),this.min=vt?Math.max(vt.from,xt.firstLine()):xt.firstLine(),this.max=vt?Math.min(vt.to-1,xt.lastLine()):xt.lastLine()}function lt(xt,St){var ft=xt.cm.getTokenTypeAt(I(xt.line,St));return ft&&/\btag\b/.test(ft)}function J(xt){if(!(xt.line>=xt.max))return xt.ch=0,xt.text=xt.cm.getLine(++xt.line),!0}function Y(xt){if(!(xt.line<=xt.min))return xt.text=xt.cm.getLine(--xt.line),xt.ch=xt.text.length,!0}function Mt(xt){for(;;){var St=xt.text.indexOf(">",xt.ch);if(St==-1){if(J(xt))continue;return}if(!lt(xt,St+1)){xt.ch=St+1;continue}var ft=xt.text.lastIndexOf("/",St),vt=ft>-1&&!/\S/.test(xt.text.slice(ft+1,St));return xt.ch=St+1,vt?"selfClose":"regular"}}function ct(xt){for(;;){var St=xt.ch?xt.text.lastIndexOf("<",xt.ch-1):-1;if(St==-1){if(Y(xt))continue;return}if(!lt(xt,St+1)){xt.ch=St;continue}C.lastIndex=St,xt.ch=St;var ft=C.exec(xt.text);if(ft&&ft.index==St)return ft}}function $t(xt){for(;;){C.lastIndex=xt.ch;var St=C.exec(xt.text);if(!St){if(J(xt))continue;return}if(!lt(xt,St.index+1)){xt.ch=St.index+1;continue}return xt.ch=St.index+St[0].length,St}}function Ft(xt){for(;;){var St=xt.ch?xt.text.lastIndexOf(">",xt.ch-1):-1;if(St==-1){if(Y(xt))continue;return}if(!lt(xt,St+1)){xt.ch=St;continue}var ft=xt.text.lastIndexOf("/",St),vt=ft>-1&&!/\S/.test(xt.text.slice(ft+1,St));return xt.ch=St+1,vt?"selfClose":"regular"}}function _t(xt,St){for(var ft=[];;){var vt=$t(xt),ot,st=xt.line,q=xt.ch-(vt?vt[0].length:0);if(!vt||!(ot=Mt(xt)))return;if(ot!="selfClose")if(vt[1]){for(var wt=ft.length-1;wt>=0;--wt)if(ft[wt]==vt[2]){ft.length=wt;break}if(wt<0&&(!St||St==vt[2]))return{tag:vt[2],from:I(st,q),to:I(xt.line,xt.ch)}}else ft.push(vt[2])}}function Ct(xt,St){for(var ft=[];;){var vt=Ft(xt);if(!vt)return;if(vt=="selfClose"){ct(xt);continue}var ot=xt.line,st=xt.ch,q=ct(xt);if(!q)return;if(q[1])ft.push(q[2]);else{for(var wt=ft.length-1;wt>=0;--wt)if(ft[wt]==q[2]){ft.length=wt;break}if(wt<0&&(!St||St==q[2]))return{tag:q[2],from:I(xt.line,xt.ch),to:I(ot,st)}}}}E.registerHelper("fold","xml",function(xt,St){for(var ft=new Z(xt,St.line,0);;){var vt=$t(ft);if(!vt||ft.line!=St.line)return;var ot=Mt(ft);if(!ot)return;if(!vt[1]&&ot!="selfClose"){var st=I(ft.line,ft.ch),q=_t(ft,vt[2]);return q&&D(q.from,st)>0?{from:st,to:q.from}:null}}}),E.findMatchingTag=function(xt,St,ft){var vt=new Z(xt,St.line,St.ch,ft);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var ot=Mt(vt),st=ot&&I(vt.line,vt.ch),q=ot&&ct(vt);if(!(!ot||!q||D(vt,St)>0)){var wt={from:I(vt.line,vt.ch),to:st,tag:q[2]};return ot=="selfClose"?{open:wt,close:null,at:"open"}:q[1]?{open:Ct(vt,q[2]),close:wt,at:"close"}:(vt=new Z(xt,st.line,st.ch,ft),{open:wt,close:_t(vt,q[2]),at:"open"})}}},E.findEnclosingTag=function(xt,St,ft,vt){for(var ot=new Z(xt,St.line,St.ch,ft);;){var st=Ct(ot,vt);if(!st)break;var q=new Z(xt,St.line,St.ch,ft),wt=_t(q,st.tag);if(wt)return{open:st,close:wt}}},E.scanForClosingTag=function(xt,St,ft,vt){var ot=new Z(xt,St.line,St.ch,vt?{from:0,to:vt}:null);return _t(ot,ft)}})},89780:function(j){(function(S,p){j.exports=p()})(this,function(){"use strict";var S=navigator.userAgent,p=navigator.platform,E=/gecko\/\d/i.test(S),I=/MSIE \d/.test(S),D=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(S),P=/Edge\/(\d+)/.exec(S),V=I||D||P,C=V&&(I?document.documentMode||6:+(P||D)[1]),Z=!P&&/WebKit\//.test(S),lt=Z&&/Qt\/\d+\.\d+/.test(S),J=!P&&/Chrome\//.test(S),Y=/Opera\//.test(S),Mt=/Apple Computer/.test(navigator.vendor),ct=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(S),$t=/PhantomJS/.test(S),Ft=!P&&/AppleWebKit/.test(S)&&/Mobile\/\w+/.test(S),_t=/Android/.test(S),Ct=Ft||_t||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(S),xt=Ft||/Mac/.test(p),St=/\bCrOS\b/.test(S),ft=/win/i.test(p),vt=Y&&S.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(Y=!1,Z=!0);var ot=xt&&(lt||Y&&(vt==null||vt<12.11)),st=E||V&&C>=9;function q(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var wt=function(a,c){var v=a.className,m=q(c).exec(v);if(m){var x=v.slice(m.index+m[0].length);a.className=v.slice(0,m.index)+(x?m[1]+x:"")}};function Bt(a){for(var c=a.childNodes.length;c>0;--c)a.removeChild(a.firstChild);return a}function pt(a,c){return Bt(a).appendChild(c)}function Ht(a,c,v,m){var x=document.createElement(a);if(v&&(x.className=v),m&&(x.style.cssText=m),typeof c=="string")x.appendChild(document.createTextNode(c));else if(c)for(var L=0;L<c.length;++L)x.appendChild(c[L]);return x}function At(a,c,v,m){var x=Ht(a,c,v,m);return x.setAttribute("role","presentation"),x}var gt;document.createRange?gt=function(a,c,v,m){var x=document.createRange();return x.setEnd(m||a,v),x.setStart(a,c),x}:gt=function(a,c,v){var m=document.body.createTextRange();try{m.moveToElementText(a.parentNode)}catch(x){return m}return m.collapse(!0),m.moveEnd("character",v),m.moveStart("character",c),m};function Pt(a,c){if(c.nodeType==3&&(c=c.parentNode),a.contains)return a.contains(c);do if(c.nodeType==11&&(c=c.host),c==a)return!0;while(c=c.parentNode)}function kt(){var a;try{a=document.activeElement}catch(c){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Gt(a,c){var v=a.className;q(c).test(v)||(a.className+=(v?" ":"")+c)}function ue(a,c){for(var v=a.split(" "),m=0;m<v.length;m++)v[m]&&!q(v[m]).test(c)&&(c+=" "+v[m]);return c}var le=function(a){a.select()};Ft?le=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:V&&(le=function(a){try{a.select()}catch(c){}});function re(a){var c=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,c)}}function pe(a,c,v){c||(c={});for(var m in a)a.hasOwnProperty(m)&&(v!==!1||!c.hasOwnProperty(m))&&(c[m]=a[m]);return c}function Dt(a,c,v,m,x){c==null&&(c=a.search(/[^\s\u00a0]/),c==-1&&(c=a.length));for(var L=m||0,G=x||0;;){var it=a.indexOf(" ",L);if(it<0||it>=c)return G+(c-L);G+=it-L,G+=v-G%v,L=it+1}}var rt=function(){this.id=null,this.f=null,this.time=0,this.handler=re(this.onTimeout,this)};rt.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},rt.prototype.set=function(a,c){this.f=c;var v=+new Date+a;(!this.id||v<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=v)};function Q(a,c){for(var v=0;v<a.length;++v)if(a[v]==c)return v;return-1}var ie=50,ce={toString:function(){return"CodeMirror.Pass"}},oe={scroll:!1},pn={origin:"*mouse"},Ze={origin:"+move"};function Nn(a,c,v){for(var m=0,x=0;;){var L=a.indexOf(" ",m);L==-1&&(L=a.length);var G=L-m;if(L==a.length||x+G>=c)return m+Math.min(G,c-x);if(x+=L-m,x+=v-x%v,m=L+1,x>=c)return m}}var me=[""];function on(a){for(;me.length<=a;)me.push(un(me)+" ");return me[a]}function un(a){return a[a.length-1]}function Ln(a,c){for(var v=[],m=0;m<a.length;m++)v[m]=c(a[m],m);return v}function Dn(a,c,v){for(var m=0,x=v(c);m<a.length&&v(a[m])<=x;)m++;a.splice(m,0,c)}function K(){}function O(a,c){var v;return Object.create?v=Object.create(a):(K.prototype=a,v=new K),c&&pe(c,v),v}var k=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function H(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||k.test(a))}function tt(a,c){return c?c.source.indexOf("\\w")>-1&&H(a)?!0:c.test(a):H(a)}function _(a){for(var c in a)if(a.hasOwnProperty(c)&&a[c])return!1;return!0}var at=/[\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 se(a){return a.charCodeAt(0)>=768&&at.test(a)}function Ve(a,c,v){for(;(v<0?c>0:c<a.length)&&se(a.charAt(c));)c+=v;return c}function Ke(a,c,v){for(var m=c>v?-1:1;;){if(c==v)return c;var x=(c+v)/2,L=m<0?Math.ceil(x):Math.floor(x);if(L==c)return a(L)?c:v;a(L)?v=L:c=L+m}}function qt(a,c,v,m){if(!a)return m(c,v,"ltr",0);for(var x=!1,L=0;L<a.length;++L){var G=a[L];(G.from<v&&G.to>c||c==v&&G.to==c)&&(m(Math.max(G.from,c),Math.min(G.to,v),G.level==1?"rtl":"ltr",L),x=!0)}x||m(c,v,"ltr")}var he=null;function de(a,c,v){var m;he=null;for(var x=0;x<a.length;++x){var L=a[x];if(L.from<c&&L.to>c)return x;L.to==c&&(L.from!=L.to&&v=="before"?m=x:he=x),L.from==c&&(L.from!=L.to&&v!="before"?m=x:he=x)}return m!=null?m:he}var Fe=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",c="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function v(Tt){return Tt<=247?a.charAt(Tt):1424<=Tt&&Tt<=1524?"R":1536<=Tt&&Tt<=1785?c.charAt(Tt-1536):1774<=Tt&&Tt<=2220?"r":8192<=Tt&&Tt<=8203?"w":Tt==8204?"b":"L"}var m=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,x=/[stwN]/,L=/[LRr]/,G=/[Lb1n]/,it=/[1n]/;function et(Tt,ne,Rt){this.level=Tt,this.from=ne,this.to=Rt}return function(Tt,ne){var Rt=ne=="ltr"?"L":"R";if(Tt.length==0||ne=="ltr"&&!m.test(Tt))return!1;for(var Ae=Tt.length,ye=[],Tn=0;Tn<Ae;++Tn)ye.push(v(Tt.charCodeAt(Tn)));for(var In=0,Un=Rt;In<Ae;++In){var ti=ye[In];ti=="m"?ye[In]=Un:Un=ti}for(var ki=0,fi=Rt;ki<Ae;++ki){var _i=ye[ki];_i=="1"&&fi=="r"?ye[ki]="n":L.test(_i)&&(fi=_i,_i=="r"&&(ye[ki]="R"))}for(var yr=1,di=ye[0];yr<Ae-1;++yr){var qr=ye[yr];qr=="+"&&di=="1"&&ye[yr+1]=="1"?ye[yr]="1":qr==","&&di==ye[yr+1]&&(di=="1"||di=="n")&&(ye[yr]=di),di=qr}for(var rs=0;rs<Ae;++rs){var Js=ye[rs];if(Js==",")ye[rs]="N";else if(Js=="%"){var vs=void 0;for(vs=rs+1;vs<Ae&&ye[vs]=="%";++vs);for(var cl=rs&&ye[rs-1]=="!"||vs<Ae&&ye[vs]=="1"?"1":"N",Ba=rs;Ba<vs;++Ba)ye[Ba]=cl;rs=vs-1}}for(var Ws=0,Tl=Rt;Ws<Ae;++Ws){var ka=ye[Ws];Tl=="L"&&ka=="1"?ye[Ws]="L":L.test(ka)&&(Tl=ka)}for(var Ys=0;Ys<Ae;++Ys)if(x.test(ye[Ys])){var yo=void 0;for(yo=Ys+1;yo<Ae&&x.test(ye[yo]);++yo);for(var Es=(Ys?ye[Ys-1]:Rt)=="L",la=(yo<Ae?ye[yo]:Rt)=="L",Na=Es==la?Es?"L":"R":Rt,mu=Ys;mu<yo;++mu)ye[mu]=Na;Ys=yo-1}for(var ys=[],eu,Ns=0;Ns<Ae;)if(G.test(ye[Ns])){var ud=Ns;for(++Ns;Ns<Ae&&G.test(ye[Ns]);++Ns);ys.push(new et(0,ud,Ns))}else{var Fl=Ns,wl=ys.length,hl=ne=="rtl"?1:0;for(++Ns;Ns<Ae&&ye[Ns]!="L";++Ns);for(var zo=Fl;zo<Ns;)if(it.test(ye[zo])){Fl<zo&&(ys.splice(wl,0,new et(1,Fl,zo)),wl+=hl);var ua=zo;for(++zo;zo<Ns&&it.test(ye[zo]);++zo);ys.splice(wl,0,new et(2,ua,zo)),wl+=hl,Fl=zo}else++zo;Fl<Ns&&ys.splice(wl,0,new et(1,Fl,Ns))}return ne=="ltr"&&(ys[0].level==1&&(eu=Tt.match(/^\s+/))&&(ys[0].from=eu[0].length,ys.unshift(new et(0,0,eu[0].length))),un(ys).level==1&&(eu=Tt.match(/\s+$/))&&(un(ys).to-=eu[0].length,ys.push(new et(0,Ae-eu[0].length,Ae)))),ne=="rtl"?ys.reverse():ys}}();function $e(a,c){var v=a.order;return v==null&&(v=a.order=Fe(a.text,c)),v}var Ee=[],zt=function(a,c,v){if(a.addEventListener)a.addEventListener(c,v,!1);else if(a.attachEvent)a.attachEvent("on"+c,v);else{var m=a._handlers||(a._handlers={});m[c]=(m[c]||Ee).concat(v)}};function Be(a,c){return a._handlers&&a._handlers[c]||Ee}function Ge(a,c,v){if(a.removeEventListener)a.removeEventListener(c,v,!1);else if(a.detachEvent)a.detachEvent("on"+c,v);else{var m=a._handlers,x=m&&m[c];if(x){var L=Q(x,v);L>-1&&(m[c]=x.slice(0,L).concat(x.slice(L+1)))}}}function Ie(a,c){var v=Be(a,c);if(v.length)for(var m=Array.prototype.slice.call(arguments,2),x=0;x<v.length;++x)v[x].apply(null,m)}function ze(a,c,v){return typeof c=="string"&&(c={type:c,preventDefault:function(){this.defaultPrevented=!0}}),Ie(a,v||c.type,a,c),Jt(c)||c.codemirrorIgnore}function Cn(a){var c=a._handlers&&a._handlers.cursorActivity;if(c)for(var v=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),m=0;m<c.length;++m)Q(v,c[m])==-1&&v.push(c[m])}function je(a,c){return Be(a,c).length>0}function bt(a){a.prototype.on=function(c,v){zt(this,c,v)},a.prototype.off=function(c,v){Ge(this,c,v)}}function hn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Sn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Jt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Hn(a){hn(a),Sn(a)}function ri(a){return a.target||a.srcElement}function Qn(a){var c=a.which;return c==null&&(a.button&1?c=1:a.button&2?c=3:a.button&4&&(c=2)),xt&&a.ctrlKey&&c==1&&(c=3),c}var we=function(){if(V&&C<9)return!1;var a=Ht("div");return"draggable"in a||"dragDrop"in a}(),wi;function xi(a){if(wi==null){var c=Ht("span","\u200B");pt(a,Ht("span",[c,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(wi=c.offsetWidth<=1&&c.offsetHeight>2&&!(V&&C<8))}var v=wi?Ht("span","\u200B"):Ht("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return v.setAttribute("cm-text",""),v}var Bn;function Kn(a){if(Bn!=null)return Bn;var c=pt(a,document.createTextNode("A\u062EA")),v=gt(c,0,1).getBoundingClientRect(),m=gt(c,1,2).getBoundingClientRect();return Bt(a),!v||v.left==v.right?!1:Bn=m.right-v.right<3}var Ei=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var c=0,v=[],m=a.length;c<=m;){var x=a.indexOf(`
|
|
|
`,c);x==-1&&(x=a.length);var L=a.slice(c,a.charAt(x-1)=="\r"?x-1:x),G=L.indexOf("\r");G!=-1?(v.push(L.slice(0,G)),c+=G+1):(v.push(L),c=x+1)}return v}:function(a){return a.split(/\r\n?|\n/)},A=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(c){return!1}}:function(a){var c;try{c=a.ownerDocument.selection.createRange()}catch(v){}return!c||c.parentElement()!=a?!1:c.compareEndPoints("StartToEnd",c)!=0},Pn=function(){var a=Ht("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),gn=null;function $n(a){if(gn!=null)return gn;var c=pt(a,Ht("span","x")),v=c.getBoundingClientRect(),m=gt(c,0,1).getBoundingClientRect();return gn=Math.abs(v.left-m.left)>1}var Fi={},Ki={};function pi(a,c){arguments.length>2&&(c.dependencies=Array.prototype.slice.call(arguments,2)),Fi[a]=c}function so(a,c){Ki[a]=c}function Zi(a){if(typeof a=="string"&&Ki.hasOwnProperty(a))a=Ki[a];else if(a&&typeof a.name=="string"&&Ki.hasOwnProperty(a.name)){var c=Ki[a.name];typeof c=="string"&&(c={name:c}),a=O(c,a),a.name=c.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Zi("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Zi("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function or(a,c){c=Zi(c);var v=Fi[c.name];if(!v)return or(a,"text/plain");var m=v(a,c);if(Yn.hasOwnProperty(c.name)){var x=Yn[c.name];for(var L in x)x.hasOwnProperty(L)&&(m.hasOwnProperty(L)&&(m["_"+L]=m[L]),m[L]=x[L])}if(m.name=c.name,c.helperType&&(m.helperType=c.helperType),c.modeProps)for(var G in c.modeProps)m[G]=c.modeProps[G];return m}var Yn={};function Mn(a,c){var v=Yn.hasOwnProperty(a)?Yn[a]:Yn[a]={};pe(c,v)}function fr(a,c){if(c===!0)return c;if(a.copyState)return a.copyState(c);var v={};for(var m in c){var x=c[m];x instanceof Array&&(x=x.concat([])),v[m]=x}return v}function Li(a,c){for(var v;a.innerMode&&(v=a.innerMode(c),!(!v||v.mode==a));)c=v.state,a=v.mode;return v||{mode:a,state:c}}function Xi(a,c,v){return a.startState?a.startState(c,v):!0}var sn=function(a,c,v){this.pos=this.start=0,this.string=a,this.tabSize=c||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=v};sn.prototype.eol=function(){return this.pos>=this.string.length},sn.prototype.sol=function(){return this.pos==this.lineStart},sn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sn.prototype.eat=function(a){var c=this.string.charAt(this.pos),v;if(typeof a=="string"?v=c==a:v=c&&(a.test?a.test(c):a(c)),v)return++this.pos,c},sn.prototype.eatWhile=function(a){for(var c=this.pos;this.eat(a););return this.pos>c},sn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},sn.prototype.skipToEnd=function(){this.pos=this.string.length},sn.prototype.skipTo=function(a){var c=this.string.indexOf(a,this.pos);if(c>-1)return this.pos=c,!0},sn.prototype.backUp=function(a){this.pos-=a},sn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Dt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Dt(this.string,this.lineStart,this.tabSize):0)},sn.prototype.indentation=function(){return Dt(this.string,null,this.tabSize)-(this.lineStart?Dt(this.string,this.lineStart,this.tabSize):0)},sn.prototype.match=function(a,c,v){if(typeof a=="string"){var m=function(G){return v?G.toLowerCase():G},x=this.string.substr(this.pos,a.length);if(m(x)==m(a))return c!==!1&&(this.pos+=a.length),!0}else{var L=this.string.slice(this.pos).match(a);return L&&L.index>0?null:(L&&c!==!1&&(this.pos+=L[0].length),L)}},sn.prototype.current=function(){return this.string.slice(this.start,this.pos)},sn.prototype.hideFirstChars=function(a,c){this.lineStart+=a;try{return c()}finally{this.lineStart-=a}},sn.prototype.lookAhead=function(a){var c=this.lineOracle;return c&&c.lookAhead(a)},sn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function zn(a,c){if(c-=a.first,c<0||c>=a.size)throw new Error("There is no line "+(c+a.first)+" in the document.");for(var v=a;!v.lines;)for(var m=0;;++m){var x=v.children[m],L=x.chunkSize();if(c<L){v=x;break}c-=L}return v.lines[c]}function Wi(a,c,v){var m=[],x=c.line;return a.iter(c.line,v.line+1,function(L){var G=L.text;x==v.line&&(G=G.slice(0,v.ch)),x==c.line&&(G=G.slice(c.ch)),m.push(G),++x}),m}function Ur(a,c,v){var m=[];return a.iter(c,v,function(x){m.push(x.text)}),m}function Nr(a,c){var v=c-a.height;if(v)for(var m=a;m;m=m.parent)m.height+=v}function Et(a){if(a.parent==null)return null;for(var c=a.parent,v=Q(c.lines,a),m=c.parent;m;c=m,m=m.parent)for(var x=0;m.children[x]!=c;++x)v+=m.children[x].chunkSize();return v+c.first}function Wt(a,c){var v=a.first;t:do{for(var m=0;m<a.children.length;++m){var x=a.children[m],L=x.height;if(c<L){a=x;continue t}c-=L,v+=x.chunkSize()}return v}while(!a.lines);for(var G=0;G<a.lines.length;++G){var it=a.lines[G],et=it.height;if(c<et)break;c-=et}return v+G}function rn(a,c){return c>=a.first&&c<a.first+a.size}function cn(a,c){return String(a.lineNumberFormatter(c+a.firstLineNumber))}function Ut(a,c,v){if(v===void 0&&(v=null),!(this instanceof Ut))return new Ut(a,c,v);this.line=a,this.ch=c,this.sticky=v}function Ye(a,c){return a.line-c.line||a.ch-c.ch}function kn(a,c){return a.sticky==c.sticky&&Ye(a,c)==0}function te(a){return Ut(a.line,a.ch)}function R(a,c){return Ye(a,c)<0?c:a}function bn(a,c){return Ye(a,c)<0?a:c}function En(a,c){return Math.max(a.first,Math.min(c,a.first+a.size-1))}function ve(a,c){if(c.line<a.first)return Ut(a.first,0);var v=a.first+a.size-1;return c.line>v?Ut(v,zn(a,v).text.length):li(c,zn(a,c.line).text.length)}function li(a,c){var v=a.ch;return v==null||v>c?Ut(a.line,c):v<0?Ut(a.line,0):a}function Wn(a,c){for(var v=[],m=0;m<c.length;m++)v[m]=ve(a,c[m]);return v}var ni=function(a,c){this.state=a,this.lookAhead=c},yn=function(a,c,v,m){this.state=c,this.doc=a,this.line=v,this.maxLookAhead=m||0,this.baseTokens=null,this.baseTokenPos=1};yn.prototype.lookAhead=function(a){var c=this.doc.getLine(this.line+a);return c!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),c},yn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var c=this.baseTokens[this.baseTokenPos+1];return{type:c&&c.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yn.fromSaved=function(a,c,v){return c instanceof ni?new yn(a,fr(a.mode,c.state),v,c.lookAhead):new yn(a,fr(a.mode,c),v)},yn.prototype.save=function(a){var c=a!==!1?fr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ni(c,this.maxLookAhead):c};function jt(a,c,v,m){var x=[a.state.modeGen],L={};sr(a,c.text,a.doc.mode,v,function(Tt,ne){return x.push(Tt,ne)},L,m);for(var G=v.state,it=function(Tt){v.baseTokens=x;var ne=a.state.overlays[Tt],Rt=1,Ae=0;v.state=!0,sr(a,c.text,ne.mode,v,function(ye,Tn){for(var In=Rt;Ae<ye;){var Un=x[Rt];Un>ye&&x.splice(Rt,1,ye,x[Rt+1],Un),Rt+=2,Ae=Math.min(ye,Un)}if(Tn)if(ne.opaque)x.splice(In,Rt-In,ye,"overlay "+Tn),Rt=In+2;else for(;In<Rt;In+=2){var ti=x[In+1];x[In+1]=(ti?ti+" ":"")+"overlay "+Tn}},L),v.state=G,v.baseTokens=null,v.baseTokenPos=1},et=0;et<a.state.overlays.length;++et)it(et);return{styles:x,classes:L.bgClass||L.textClass?L:null}}function ui(a,c,v){if(!c.styles||c.styles[0]!=a.state.modeGen){var m=Ir(a,Et(c)),x=c.text.length>a.options.maxHighlightLength&&fr(a.doc.mode,m.state),L=jt(a,c,m);x&&(m.state=x),c.stateAfter=m.save(!x),c.styles=L.styles,L.classes?c.styleClasses=L.classes:c.styleClasses&&(c.styleClasses=null),v===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return c.styles}function Ir(a,c,v){var m=a.doc,x=a.display;if(!m.mode.startState)return new yn(m,!0,c);var L=ji(a,c,v),G=L>m.first&&zn(m,L-1).stateAfter,it=G?yn.fromSaved(m,G,L):new yn(m,Xi(m.mode),L);return m.iter(L,c,function(et){xe(a,et.text,it);var Tt=it.line;et.stateAfter=Tt==c-1||Tt%5==0||Tt>=x.viewFrom&&Tt<x.viewTo?it.save():null,it.nextLine()}),v&&(m.modeFrontier=it.line),it}function xe(a,c,v,m){var x=a.doc.mode,L=new sn(c,a.options.tabSize,v);for(L.start=L.pos=m||0,c==""&&xr(x,v.state);!L.eol();)Lr(x,L,v.state),L.start=L.pos}function xr(a,c){if(a.blankLine)return a.blankLine(c);if(a.innerMode){var v=Li(a,c);if(v.mode.blankLine)return v.mode.blankLine(v.state)}}function Lr(a,c,v,m){for(var x=0;x<10;x++){m&&(m[0]=Li(a,v).mode);var L=a.token(c,v);if(c.pos>c.start)return L}throw new Error("Mode "+a.name+" failed to advance stream.")}var Ai=function(a,c,v){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=c||null,this.state=v};function Rr(a,c,v,m){var x=a.doc,L=x.mode,G;c=ve(x,c);var it=zn(x,c.line),et=Ir(a,c.line,v),Tt=new sn(it.text,a.options.tabSize,et),ne;for(m&&(ne=[]);(m||Tt.pos<c.ch)&&!Tt.eol();)Tt.start=Tt.pos,G=Lr(L,Tt,et.state),m&&ne.push(new Ai(Tt,G,fr(x.mode,et.state)));return m?ne:new Ai(Tt,G,et.state)}function nr(a,c){if(a)for(;;){var v=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!v)break;a=a.slice(0,v.index)+a.slice(v.index+v[0].length);var m=v[1]?"bgClass":"textClass";c[m]==null?c[m]=v[2]:new RegExp("(?:^|\\s)"+v[2]+"(?:$|\\s)").test(c[m])||(c[m]+=" "+v[2])}return a}function sr(a,c,v,m,x,L,G){var it=v.flattenSpans;it==null&&(it=a.options.flattenSpans);var et=0,Tt=null,ne=new sn(c,a.options.tabSize,m),Rt,Ae=a.options.addModeClass&&[null];for(c==""&&nr(xr(v,m.state),L);!ne.eol();){if(ne.pos>a.options.maxHighlightLength?(it=!1,G&&xe(a,c,m,ne.pos),ne.pos=c.length,Rt=null):Rt=nr(Lr(v,ne,m.state,Ae),L),Ae){var ye=Ae[0].name;ye&&(Rt="m-"+(Rt?ye+" "+Rt:ye))}if(!it||Tt!=Rt){for(;et<ne.start;)et=Math.min(ne.start,et+5e3),x(et,Tt);Tt=Rt}ne.start=ne.pos}for(;et<ne.pos;){var Tn=Math.min(ne.pos,et+5e3);x(Tn,Tt),et=Tn}}function ji(a,c,v){for(var m,x,L=a.doc,G=v?-1:c-(a.doc.mode.innerMode?1e3:100),it=c;it>G;--it){if(it<=L.first)return L.first;var et=zn(L,it-1),Tt=et.stateAfter;if(Tt&&(!v||it+(Tt instanceof ni?Tt.lookAhead:0)<=L.modeFrontier))return it;var ne=Dt(et.text,null,a.options.tabSize);(x==null||m>ne)&&(x=it-1,m=ne)}return x}function qi(a,c){if(a.modeFrontier=Math.min(a.modeFrontier,c),!(a.highlightFrontier<c-10)){for(var v=a.first,m=c-1;m>v;m--){var x=zn(a,m).stateAfter;if(x&&(!(x instanceof ni)||m+x.lookAhead<c)){v=m+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,v)}}var ir=!1,Te=!1;function cr(){ir=!0}function Ce(){Te=!0}function Gn(a,c,v){this.marker=a,this.from=c,this.to=v}function Ri(a,c){if(a)for(var v=0;v<a.length;++v){var m=a[v];if(m.marker==c)return m}}function gi(a,c){for(var v,m=0;m<a.length;++m)a[m]!=c&&(v||(v=[])).push(a[m]);return v}function pr(a,c){a.markedSpans=a.markedSpans?a.markedSpans.concat([c]):[c],c.marker.attachLine(a)}function Bi(a,c,v){var m;if(a)for(var x=0;x<a.length;++x){var L=a[x],G=L.marker,it=L.from==null||(G.inclusiveLeft?L.from<=c:L.from<c);if(it||L.from==c&&G.type=="bookmark"&&(!v||!L.marker.insertLeft)){var et=L.to==null||(G.inclusiveRight?L.to>=c:L.to>c);(m||(m=[])).push(new Gn(G,L.from,et?null:L.to))}}return m}function Si(a,c,v){var m;if(a)for(var x=0;x<a.length;++x){var L=a[x],G=L.marker,it=L.to==null||(G.inclusiveRight?L.to>=c:L.to>c);if(it||L.from==c&&G.type=="bookmark"&&(!v||L.marker.insertLeft)){var et=L.from==null||(G.inclusiveLeft?L.from<=c:L.from<c);(m||(m=[])).push(new Gn(G,et?null:L.from-c,L.to==null?null:L.to-c))}}return m}function Hr(a,c){if(c.full)return null;var v=rn(a,c.from.line)&&zn(a,c.from.line).markedSpans,m=rn(a,c.to.line)&&zn(a,c.to.line).markedSpans;if(!v&&!m)return null;var x=c.from.ch,L=c.to.ch,G=Ye(c.from,c.to)==0,it=Bi(v,x,G),et=Si(m,L,G),Tt=c.text.length==1,ne=un(c.text).length+(Tt?x:0);if(it)for(var Rt=0;Rt<it.length;++Rt){var Ae=it[Rt];if(Ae.to==null){var ye=Ri(et,Ae.marker);ye?Tt&&(Ae.to=ye.to==null?null:ye.to+ne):Ae.to=x}}if(et)for(var Tn=0;Tn<et.length;++Tn){var In=et[Tn];if(In.to!=null&&(In.to+=ne),In.from==null){var Un=Ri(it,In.marker);Un||(In.from=ne,Tt&&(it||(it=[])).push(In))}else In.from+=ne,Tt&&(it||(it=[])).push(In)}it&&(it=Qt(it)),et&&et!=it&&(et=Qt(et));var ti=[it];if(!Tt){var ki=c.text.length-2,fi;if(ki>0&&it)for(var _i=0;_i<it.length;++_i)it[_i].to==null&&(fi||(fi=[])).push(new Gn(it[_i].marker,null,null));for(var yr=0;yr<ki;++yr)ti.push(fi);ti.push(et)}return ti}function Qt(a){for(var c=0;c<a.length;++c){var v=a[c];v.from!=null&&v.from==v.to&&v.marker.clearWhenEmpty!==!1&&a.splice(c--,1)}return a.length?a:null}function Le(a,c,v){var m=null;if(a.iter(c.line,v.line+1,function(ye){if(ye.markedSpans)for(var Tn=0;Tn<ye.markedSpans.length;++Tn){var In=ye.markedSpans[Tn].marker;In.readOnly&&(!m||Q(m,In)==-1)&&(m||(m=[])).push(In)}}),!m)return null;for(var x=[{from:c,to:v}],L=0;L<m.length;++L)for(var G=m[L],it=G.find(0),et=0;et<x.length;++et){var Tt=x[et];if(!(Ye(Tt.to,it.from)<0||Ye(Tt.from,it.to)>0)){var ne=[et,1],Rt=Ye(Tt.from,it.from),Ae=Ye(Tt.to,it.to);(Rt<0||!G.inclusiveLeft&&!Rt)&&ne.push({from:Tt.from,to:it.from}),(Ae>0||!G.inclusiveRight&&!Ae)&&ne.push({from:it.to,to:Tt.to}),x.splice.apply(x,ne),et+=ne.length-3}}return x}function Zt(a){var c=a.markedSpans;if(c){for(var v=0;v<c.length;++v)c[v].marker.detachLine(a);a.markedSpans=null}}function z(a,c){if(c){for(var v=0;v<c.length;++v)c[v].marker.attachLine(a);a.markedSpans=c}}function Xe(a){return a.inclusiveLeft?-1:0}function an(a){return a.inclusiveRight?1:0}function On(a,c){var v=a.lines.length-c.lines.length;if(v!=0)return v;var m=a.find(),x=c.find(),L=Ye(m.from,x.from)||Xe(a)-Xe(c);if(L)return-L;var G=Ye(m.to,x.to)||an(a)-an(c);return G||c.id-a.id}function An(a,c){var v=Te&&a.markedSpans,m;if(v)for(var x=void 0,L=0;L<v.length;++L)x=v[L],x.marker.collapsed&&(c?x.from:x.to)==null&&(!m||On(m,x.marker)<0)&&(m=x.marker);return m}function mn(a){return An(a,!0)}function ke(a){return An(a,!1)}function qe(a,c){var v=Te&&a.markedSpans,m;if(v)for(var x=0;x<v.length;++x){var L=v[x];L.marker.collapsed&&(L.from==null||L.from<c)&&(L.to==null||L.to>c)&&(!m||On(m,L.marker)<0)&&(m=L.marker)}return m}function en(a,c,v,m,x){var L=zn(a,c),G=Te&&L.markedSpans;if(G)for(var it=0;it<G.length;++it){var et=G[it];if(et.marker.collapsed){var Tt=et.marker.find(0),ne=Ye(Tt.from,v)||Xe(et.marker)-Xe(x),Rt=Ye(Tt.to,m)||an(et.marker)-an(x);if(!(ne>=0&&Rt<=0||ne<=0&&Rt>=0)&&(ne<=0&&(et.marker.inclusiveRight&&x.inclusiveLeft?Ye(Tt.to,v)>=0:Ye(Tt.to,v)>0)||ne>=0&&(et.marker.inclusiveRight&&x.inclusiveLeft?Ye(Tt.from,m)<=0:Ye(Tt.from,m)<0)))return!0}}}function He(a){for(var c;c=mn(a);)a=c.find(-1,!0).line;return a}function nn(a){for(var c;c=ke(a);)a=c.find(1,!0).line;return a}function _n(a){for(var c,v;c=ke(a);)a=c.find(1,!0).line,(v||(v=[])).push(a);return v}function ci(a,c){var v=zn(a,c),m=He(v);return v==m?c:Et(m)}function si(a,c){if(c>a.lastLine())return c;var v=zn(a,c),m;if(!Je(a,v))return c;for(;m=ke(v);)v=m.find(1,!0).line;return Et(v)+1}function Je(a,c){var v=Te&&c.markedSpans;if(v){for(var m=void 0,x=0;x<v.length;++x)if(m=v[x],!!m.marker.collapsed){if(m.from==null)return!0;if(!m.marker.widgetNode&&m.from==0&&m.marker.inclusiveLeft&&Ui(a,c,m))return!0}}}function Ui(a,c,v){if(v.to==null){var m=v.marker.find(1,!0);return Ui(a,m.line,Ri(m.line.markedSpans,v.marker))}if(v.marker.inclusiveRight&&v.to==c.text.length)return!0;for(var x=void 0,L=0;L<c.markedSpans.length;++L)if(x=c.markedSpans[L],x.marker.collapsed&&!x.marker.widgetNode&&x.from==v.to&&(x.to==null||x.to!=v.from)&&(x.marker.inclusiveLeft||v.marker.inclusiveRight)&&Ui(a,c,x))return!0}function Ti(a){a=He(a);for(var c=0,v=a.parent,m=0;m<v.lines.length;++m){var x=v.lines[m];if(x==a)break;c+=x.height}for(var L=v.parent;L;v=L,L=v.parent)for(var G=0;G<L.children.length;++G){var it=L.children[G];if(it==v)break;c+=it.height}return c}function ar(a){if(a.height==0)return 0;for(var c=a.text.length,v,m=a;v=mn(m);){var x=v.find(0,!0);m=x.from.line,c+=x.from.ch-x.to.ch}for(m=a;v=ke(m);){var L=v.find(0,!0);c-=m.text.length-L.from.ch,m=L.to.line,c+=m.text.length-L.to.ch}return c}function bi(a){var c=a.display,v=a.doc;c.maxLine=zn(v,v.first),c.maxLineLength=ar(c.maxLine),c.maxLineChanged=!0,v.iter(function(m){var x=ar(m);x>c.maxLineLength&&(c.maxLineLength=x,c.maxLine=m)})}var Kr=function(a,c,v){this.text=a,z(this,c),this.height=v?v(this):1};Kr.prototype.lineNo=function(){return Et(this)},bt(Kr);function Pr(a,c,v,m){a.text=c,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Zt(a),z(a,v);var x=m?m(a):1;x!=a.height&&Nr(a,x)}function Mr(a){a.parent=null,Zt(a)}var Er={},Or={};function Zr(a,c){if(!a||/^\s*$/.test(a))return null;var v=c.addModeClass?Or:Er;return v[a]||(v[a]=a.replace(/\S+/g,"cm-$&"))}function Xt(a,c){var v=At("span",null,null,Z?"padding-right: .1px":null),m={pre:At("pre",[v],"CodeMirror-line"),content:v,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};c.measure={};for(var x=0;x<=(c.rest?c.rest.length:0);x++){var L=x?c.rest[x-1]:c.line,G=void 0;m.pos=0,m.addToken=$i,Kn(a.display.measure)&&(G=$e(L,a.doc.direction))&&(m.addToken=Mi(m.addToken,G)),m.map=[];var it=c!=a.display.externalMeasured&&Et(L);Sr(L,m,ui(a,L,it)),L.styleClasses&&(L.styleClasses.bgClass&&(m.bgClass=ue(L.styleClasses.bgClass,m.bgClass||"")),L.styleClasses.textClass&&(m.textClass=ue(L.styleClasses.textClass,m.textClass||""))),m.map.length==0&&m.map.push(0,0,m.content.appendChild(xi(a.display.measure))),x==0?(c.measure.map=m.map,c.measure.cache={}):((c.measure.maps||(c.measure.maps=[])).push(m.map),(c.measure.caches||(c.measure.caches=[])).push({}))}if(Z){var et=m.content.lastChild;(/\bcm-tab\b/.test(et.className)||et.querySelector&&et.querySelector(".cm-tab"))&&(m.content.className="cm-tab-wrap-hack")}return Ie(a,"renderLine",a,c.line,m.pre),m.pre.className&&(m.textClass=ue(m.pre.className,m.textClass||"")),m}function rr(a){var c=Ht("span","\u2022","cm-invalidchar");return c.title="\\u"+a.charCodeAt(0).toString(16),c.setAttribute("aria-label",c.title),c}function $i(a,c,v,m,x,L,G){if(c){var it=a.splitSpaces?mi(c,a.trailingSpace):c,et=a.cm.state.specialChars,Tt=!1,ne;if(!et.test(c))a.col+=c.length,ne=document.createTextNode(it),a.map.push(a.pos,a.pos+c.length,ne),V&&C<9&&(Tt=!0),a.pos+=c.length;else{ne=document.createDocumentFragment();for(var Rt=0;;){et.lastIndex=Rt;var Ae=et.exec(c),ye=Ae?Ae.index-Rt:c.length-Rt;if(ye){var Tn=document.createTextNode(it.slice(Rt,Rt+ye));V&&C<9?ne.appendChild(Ht("span",[Tn])):ne.appendChild(Tn),a.map.push(a.pos,a.pos+ye,Tn),a.col+=ye,a.pos+=ye}if(!Ae)break;Rt+=ye+1;var In=void 0;if(Ae[0]==" "){var Un=a.cm.options.tabSize,ti=Un-a.col%Un;In=ne.appendChild(Ht("span",on(ti),"cm-tab")),In.setAttribute("role","presentation"),In.setAttribute("cm-text"," "),a.col+=ti}else Ae[0]=="\r"||Ae[0]==`
|
|
|
`?(In=ne.appendChild(Ht("span",Ae[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),In.setAttribute("cm-text",Ae[0]),a.col+=1):(In=a.cm.options.specialCharPlaceholder(Ae[0]),In.setAttribute("cm-text",Ae[0]),V&&C<9?ne.appendChild(Ht("span",[In])):ne.appendChild(In),a.col+=1);a.map.push(a.pos,a.pos+1,In),a.pos++}}if(a.trailingSpace=it.charCodeAt(c.length-1)==32,v||m||x||Tt||L||G){var ki=v||"";m&&(ki+=m),x&&(ki+=x);var fi=Ht("span",[ne],ki,L);if(G)for(var _i in G)G.hasOwnProperty(_i)&&_i!="style"&&_i!="class"&&fi.setAttribute(_i,G[_i]);return a.content.appendChild(fi)}a.content.appendChild(ne)}}function mi(a,c){if(a.length>1&&!/ /.test(a))return a;for(var v=c,m="",x=0;x<a.length;x++){var L=a.charAt(x);L==" "&&v&&(x==a.length-1||a.charCodeAt(x+1)==32)&&(L="\xA0"),m+=L,v=L==" "}return m}function Mi(a,c){return function(v,m,x,L,G,it,et){x=x?x+" cm-force-border":"cm-force-border";for(var Tt=v.pos,ne=Tt+m.length;;){for(var Rt=void 0,Ae=0;Ae<c.length&&(Rt=c[Ae],!(Rt.to>Tt&&Rt.from<=Tt));Ae++);if(Rt.to>=ne)return a(v,m,x,L,G,it,et);a(v,m.slice(0,Rt.to-Tt),x,L,null,it,et),L=null,m=m.slice(Rt.to-Tt),Tt=Rt.to}}}function er(a,c,v,m){var x=!m&&v.widgetNode;x&&a.map.push(a.pos,a.pos+c,x),!m&&a.cm.display.input.needsContentAttribute&&(x||(x=a.content.appendChild(document.createElement("span"))),x.setAttribute("cm-marker",v.id)),x&&(a.cm.display.input.setUneditable(x),a.content.appendChild(x)),a.pos+=c,a.trailingSpace=!1}function Sr(a,c,v){var m=a.markedSpans,x=a.text,L=0;if(!m){for(var G=1;G<v.length;G+=2)c.addToken(c,x.slice(L,L=v[G]),Zr(v[G+1],c.cm.options));return}for(var it=x.length,et=0,Tt=1,ne="",Rt,Ae,ye=0,Tn,In,Un,ti,ki;;){if(ye==et){Tn=In=Un=Ae="",ki=null,ti=null,ye=1/0;for(var fi=[],_i=void 0,yr=0;yr<m.length;++yr){var di=m[yr],qr=di.marker;if(qr.type=="bookmark"&&di.from==et&&qr.widgetNode)fi.push(qr);else if(di.from<=et&&(di.to==null||di.to>et||qr.collapsed&&di.to==et&&di.from==et)){if(di.to!=null&&di.to!=et&&ye>di.to&&(ye=di.to,In=""),qr.className&&(Tn+=" "+qr.className),qr.css&&(Ae=(Ae?Ae+";":"")+qr.css),qr.startStyle&&di.from==et&&(Un+=" "+qr.startStyle),qr.endStyle&&di.to==ye&&(_i||(_i=[])).push(qr.endStyle,di.to),qr.title&&((ki||(ki={})).title=qr.title),qr.attributes)for(var rs in qr.attributes)(ki||(ki={}))[rs]=qr.attributes[rs];qr.collapsed&&(!ti||On(ti.marker,qr)<0)&&(ti=di)}else di.from>et&&ye>di.from&&(ye=di.from)}if(_i)for(var Js=0;Js<_i.length;Js+=2)_i[Js+1]==ye&&(In+=" "+_i[Js]);if(!ti||ti.from==et)for(var vs=0;vs<fi.length;++vs)er(c,0,fi[vs]);if(ti&&(ti.from||0)==et){if(er(c,(ti.to==null?it+1:ti.to)-et,ti.marker,ti.from==null),ti.to==null)return;ti.to==et&&(ti=!1)}}if(et>=it)break;for(var cl=Math.min(it,ye);;){if(ne){var Ba=et+ne.length;if(!ti){var Ws=Ba>cl?ne.slice(0,cl-et):ne;c.addToken(c,Ws,Rt?Rt+Tn:Tn,Un,et+Ws.length==ye?In:"",Ae,ki)}if(Ba>=cl){ne=ne.slice(cl-et),et=cl;break}et=Ba,Un=""}ne=x.slice(L,L=v[Tt++]),Rt=Zr(v[Tt++],c.cm.options)}}}function ee(a,c,v){this.line=c,this.rest=_n(c),this.size=this.rest?Et(un(this.rest))-v+1:1,this.node=this.text=null,this.hidden=Je(a,c)}function Ni(a,c,v){for(var m=[],x,L=c;L<v;L=x){var G=new ee(a.doc,zn(a.doc,L),L);x=L+G.size,m.push(G)}return m}var Gr=null;function ws(a){Gr?Gr.ops.push(a):a.ownsGroup=Gr={ops:[a],delayedCallbacks:[]}}function cs(a){var c=a.delayedCallbacks,v=0;do{for(;v<c.length;v++)c[v].call(null);for(var m=0;m<a.ops.length;m++){var x=a.ops[m];if(x.cursorActivityHandlers)for(;x.cursorActivityCalled<x.cursorActivityHandlers.length;)x.cursorActivityHandlers[x.cursorActivityCalled++].call(null,x.cm)}}while(v<c.length)}function Ma(a,c){var v=a.ownsGroup;if(v)try{cs(v)}finally{Gr=null,c(v)}}var As=null;function ii(a,c){var v=Be(a,c);if(v.length){var m=Array.prototype.slice.call(arguments,2),x;Gr?x=Gr.delayedCallbacks:As?x=As:(x=As=[],setTimeout(po,0));for(var L=function(it){x.push(function(){return v[it].apply(null,m)})},G=0;G<v.length;++G)L(G)}}function po(){var a=As;As=null;for(var c=0;c<a.length;++c)a[c]()}function go(a,c,v,m){for(var x=0;x<c.changes.length;x++){var L=c.changes[x];L=="text"?vn(a,c):L=="gutter"?vi(a,c,v,m):L=="class"?qn(a,c):L=="widget"&&Gi(a,c,m)}c.changes=null}function Vo(a){return a.node==a.text&&(a.node=Ht("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),V&&C<8&&(a.node.style.zIndex=2)),a.node}function mo(a,c){var v=c.bgClass?c.bgClass+" "+(c.line.bgClass||""):c.line.bgClass;if(v&&(v+=" CodeMirror-linebackground"),c.background)v?c.background.className=v:(c.background.parentNode.removeChild(c.background),c.background=null);else if(v){var m=Vo(c);c.background=m.insertBefore(Ht("div",null,v),m.firstChild),a.display.input.setUneditable(c.background)}}function Co(a,c){var v=a.display.externalMeasured;return v&&v.line==c.line?(a.display.externalMeasured=null,c.measure=v.measure,v.built):Xt(a,c)}function vn(a,c){var v=c.text.className,m=Co(a,c);c.text==c.node&&(c.node=m.pre),c.text.parentNode.replaceChild(m.pre,c.text),c.text=m.pre,m.bgClass!=c.bgClass||m.textClass!=c.textClass?(c.bgClass=m.bgClass,c.textClass=m.textClass,qn(a,c)):v&&(c.text.className=v)}function qn(a,c){mo(a,c),c.line.wrapClass?Vo(c).className=c.line.wrapClass:c.node!=c.text&&(c.node.className="");var v=c.textClass?c.textClass+" "+(c.line.textClass||""):c.line.textClass;c.text.className=v||""}function vi(a,c,v,m){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 x=Vo(c);c.gutterBackground=Ht("div",null,"CodeMirror-gutter-background "+c.line.gutterClass,"left: "+(a.options.fixedGutter?m.fixedPos:-m.gutterTotalWidth)+"px; width: "+m.gutterTotalWidth+"px"),a.display.input.setUneditable(c.gutterBackground),x.insertBefore(c.gutterBackground,c.text)}var L=c.line.gutterMarkers;if(a.options.lineNumbers||L){var G=Vo(c),it=c.gutter=Ht("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?m.fixedPos:-m.gutterTotalWidth)+"px");if(a.display.input.setUneditable(it),G.insertBefore(it,c.text),c.line.gutterClass&&(it.className+=" "+c.line.gutterClass),a.options.lineNumbers&&(!L||!L["CodeMirror-linenumbers"])&&(c.lineNumber=it.appendChild(Ht("div",cn(a.options,v),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+m.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),L)for(var et=0;et<a.display.gutterSpecs.length;++et){var Tt=a.display.gutterSpecs[et].className,ne=L.hasOwnProperty(Tt)&&L[Tt];ne&&it.appendChild(Ht("div",[ne],"CodeMirror-gutter-elt","left: "+m.gutterLeft[Tt]+"px; width: "+m.gutterWidth[Tt]+"px"))}}}function Gi(a,c,v){c.alignable&&(c.alignable=null);for(var m=q("CodeMirror-linewidget"),x=c.node.firstChild,L=void 0;x;x=L)L=x.nextSibling,m.test(x.className)&&c.node.removeChild(x);Vr(a,c,v)}function Yi(a,c,v,m){var x=Co(a,c);return c.text=c.node=x.pre,x.bgClass&&(c.bgClass=x.bgClass),x.textClass&&(c.textClass=x.textClass),qn(a,c),vi(a,c,v,m),Vr(a,c,m),c.node}function Vr(a,c,v){if(ei(a,c.line,c,v,!0),c.rest)for(var m=0;m<c.rest.length;m++)ei(a,c.rest[m],c,v,!1)}function ei(a,c,v,m,x){if(c.widgets)for(var L=Vo(v),G=0,it=c.widgets;G<it.length;++G){var et=it[G],Tt=Ht("div",[et.node],"CodeMirror-linewidget"+(et.className?" "+et.className:""));et.handleMouseEvents||Tt.setAttribute("cm-ignore-events","true"),Jo(et,Tt,v,m),a.display.input.setUneditable(Tt),x&&et.above?L.insertBefore(Tt,v.gutter||v.text):L.appendChild(Tt),ii(et,"redraw")}}function Jo(a,c,v,m){if(a.noHScroll){(v.alignable||(v.alignable=[])).push(c);var x=m.wrapperWidth;c.style.left=m.fixedPos+"px",a.coverGutter||(x-=m.gutterTotalWidth,c.style.paddingLeft=m.gutterTotalWidth+"px"),c.style.width=x+"px"}a.coverGutter&&(c.style.zIndex=5,c.style.position="relative",a.noHScroll||(c.style.marginLeft=-m.gutterTotalWidth+"px"))}function So(a){if(a.height!=null)return a.height;var c=a.doc.cm;if(!c)return 0;if(!Pt(document.body,a.node)){var v="position: relative;";a.coverGutter&&(v+="margin-left: -"+c.display.gutters.offsetWidth+"px;"),a.noHScroll&&(v+="width: "+c.display.wrapper.clientWidth+"px;"),pt(c.display.measure,Ht("div",[a.node],null,v))}return a.height=a.node.parentNode.offsetHeight}function xo(a,c){for(var v=ri(c);v!=a.wrapper;v=v.parentNode)if(!v||v.nodeType==1&&v.getAttribute("cm-ignore-events")=="true"||v.parentNode==a.sizer&&v!=a.mover)return!0}function tr(a){return a.lineSpace.offsetTop}function $r(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function xs(a){if(a.cachedPaddingH)return a.cachedPaddingH;var c=pt(a.measure,Ht("pre","x","CodeMirror-line-like")),v=window.getComputedStyle?window.getComputedStyle(c):c.currentStyle,m={left:parseInt(v.paddingLeft),right:parseInt(v.paddingRight)};return!isNaN(m.left)&&!isNaN(m.right)&&(a.cachedPaddingH=m),m}function eo(a){return ie-a.display.nativeBarWidth}function hs(a){return a.display.scroller.clientWidth-eo(a)-a.display.barWidth}function Us(a){return a.display.scroller.clientHeight-eo(a)-a.display.barHeight}function Is(a,c,v){var m=a.options.lineWrapping,x=m&&hs(a);if(!c.measure.heights||m&&c.measure.width!=x){var L=c.measure.heights=[];if(m){c.measure.width=x;for(var G=c.text.firstChild.getClientRects(),it=0;it<G.length-1;it++){var et=G[it],Tt=G[it+1];Math.abs(et.bottom-Tt.bottom)>2&&L.push((et.bottom+Tt.top)/2-v.top)}}L.push(v.bottom-v.top)}}function Ro(a,c,v){if(a.line==c)return{map:a.measure.map,cache:a.measure.cache};for(var m=0;m<a.rest.length;m++)if(a.rest[m]==c)return{map:a.measure.maps[m],cache:a.measure.caches[m]};for(var x=0;x<a.rest.length;x++)if(Et(a.rest[x])>v)return{map:a.measure.maps[x],cache:a.measure.caches[x],before:!0}}function Oa(a,c){c=He(c);var v=Et(c),m=a.display.externalMeasured=new ee(a.doc,c,v);m.lineN=v;var x=m.built=Xt(a,m);return m.text=x.pre,pt(a.display.lineMeasure,x.pre),m}function Wl(a,c,v,m){return zs(a,na(a,c),v,m)}function Hs(a,c){if(c>=a.display.viewFrom&&c<a.display.viewTo)return a.display.view[_s(a,c)];var v=a.display.externalMeasured;if(v&&c>=v.lineN&&c<v.lineN+v.size)return v}function na(a,c){var v=Et(c),m=Hs(a,v);m&&!m.text?m=null:m&&m.changes&&(go(a,m,v,ba(a)),a.curOp.forceUpdate=!0),m||(m=Oa(a,c));var x=Ro(m,c,v);return{line:c,view:m,rect:null,map:x.map,cache:x.cache,before:x.before,hasHeights:!1}}function zs(a,c,v,m,x){c.before&&(v=-1);var L=v+(m||""),G;return c.cache.hasOwnProperty(L)?G=c.cache[L]:(c.rect||(c.rect=c.view.text.getBoundingClientRect()),c.hasHeights||(Is(a,c.view,c.rect),c.hasHeights=!0),G=_o(a,c,v,m),G.bogus||(c.cache[L]=G)),{left:G.left,right:G.right,top:x?G.rtop:G.top,bottom:x?G.rbottom:G.bottom}}var nl={left:0,right:0,top:0,bottom:0};function cu(a,c,v){for(var m,x,L,G,it,et,Tt=0;Tt<a.length;Tt+=3)if(it=a[Tt],et=a[Tt+1],c<it?(x=0,L=1,G="left"):c<et?(x=c-it,L=x+1):(Tt==a.length-3||c==et&&a[Tt+3]>c)&&(L=et-it,x=L-1,c>=et&&(G="right")),x!=null){if(m=a[Tt+2],it==et&&v==(m.insertLeft?"left":"right")&&(G=v),v=="left"&&x==0)for(;Tt&&a[Tt-2]==a[Tt-3]&&a[Tt-1].insertLeft;)m=a[(Tt-=3)+2],G="left";if(v=="right"&&x==et-it)for(;Tt<a.length-3&&a[Tt+3]==a[Tt+4]&&!a[Tt+5].insertLeft;)m=a[(Tt+=3)+2],G="right";break}return{node:m,start:x,end:L,collapse:G,coverStart:it,coverEnd:et}}function hu(a,c){var v=nl;if(c=="left")for(var m=0;m<a.length&&(v=a[m]).left==v.right;m++);else for(var x=a.length-1;x>=0&&(v=a[x]).left==v.right;x--);return v}function _o(a,c,v,m){var x=cu(c.map,v,m),L=x.node,G=x.start,it=x.end,et=x.collapse,Tt;if(L.nodeType==3){for(var ne=0;ne<4;ne++){for(;G&&se(c.line.text.charAt(x.coverStart+G));)--G;for(;x.coverStart+it<x.coverEnd&&se(c.line.text.charAt(x.coverStart+it));)++it;if(V&&C<9&&G==0&&it==x.coverEnd-x.coverStart?Tt=L.parentNode.getBoundingClientRect():Tt=hu(gt(L,G,it).getClientRects(),m),Tt.left||Tt.right||G==0)break;it=G,G=G-1,et="right"}V&&C<11&&(Tt=Yl(a.display.measure,Tt))}else{G>0&&(et=m="right");var Rt;a.options.lineWrapping&&(Rt=L.getClientRects()).length>1?Tt=Rt[m=="right"?Rt.length-1:0]:Tt=L.getBoundingClientRect()}if(V&&C<9&&!G&&(!Tt||!Tt.left&&!Tt.right)){var Ae=L.parentNode.getClientRects()[0];Ae?Tt={left:Ae.left,right:Ae.left+ia(a.display),top:Ae.top,bottom:Ae.bottom}:Tt=nl}for(var ye=Tt.top-c.rect.top,Tn=Tt.bottom-c.rect.top,In=(ye+Tn)/2,Un=c.view.measure.heights,ti=0;ti<Un.length-1&&!(In<Un[ti]);ti++);var ki=ti?Un[ti-1]:0,fi=Un[ti],_i={left:(et=="right"?Tt.right:Tt.left)-c.rect.left,right:(et=="left"?Tt.left:Tt.right)-c.rect.left,top:ki,bottom:fi};return!Tt.left&&!Tt.right&&(_i.bogus=!0),a.options.singleCursorHeightPerLine||(_i.rtop=ye,_i.rbottom=Tn),_i}function Yl(a,c){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!$n(a))return c;var v=screen.logicalXDPI/screen.deviceXDPI,m=screen.logicalYDPI/screen.deviceYDPI;return{left:c.left*v,right:c.right*v,top:c.top*m,bottom:c.bottom*m}}function du(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var c=0;c<a.rest.length;c++)a.measure.caches[c]={}}function ml(a){a.display.externalMeasure=null,Bt(a.display.lineMeasure);for(var c=0;c<a.display.view.length;c++)du(a.display.view[c])}function Ml(a){ml(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function ds(){return J&&_t?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Cs(){return J&&_t?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Zo(a){var c=0;if(a.widgets)for(var v=0;v<a.widgets.length;++v)a.widgets[v].above&&(c+=So(a.widgets[v]));return c}function as(a,c,v,m,x){if(!x){var L=Zo(c);v.top+=L,v.bottom+=L}if(m=="line")return v;m||(m="local");var G=Ti(c);if(m=="local"?G+=tr(a.display):G-=a.display.viewOffset,m=="page"||m=="window"){var it=a.display.lineSpace.getBoundingClientRect();G+=it.top+(m=="window"?0:Cs());var et=it.left+(m=="window"?0:ds());v.left+=et,v.right+=et}return v.top+=G,v.bottom+=G,v}function vl(a,c,v){if(v=="div")return c;var m=c.left,x=c.top;if(v=="page")m-=ds(),x-=Cs();else if(v=="local"||!v){var L=a.display.sizer.getBoundingClientRect();m+=L.left,x+=L.top}var G=a.display.lineSpace.getBoundingClientRect();return{left:m-G.left,top:x-G.top}}function Ls(a,c,v,m,x){return m||(m=zn(a.doc,c.line)),as(a,m,Wl(a,m,c.ch,x),v)}function io(a,c,v,m,x,L){m=m||zn(a.doc,c.line),x||(x=na(a,m));function G(Tn,In){var Un=zs(a,x,Tn,In?"right":"left",L);return In?Un.left=Un.right:Un.right=Un.left,as(a,m,Un,v)}var it=$e(m,a.doc.direction),et=c.ch,Tt=c.sticky;if(et>=m.text.length?(et=m.text.length,Tt="before"):et<=0&&(et=0,Tt="after"),!it)return G(Tt=="before"?et-1:et,Tt=="before");function ne(Tn,In,Un){var ti=it[In],ki=ti.level==1;return G(Un?Tn-1:Tn,ki!=Un)}var Rt=de(it,et,Tt),Ae=he,ye=ne(et,Rt,Tt=="before");return Ae!=null&&(ye.other=ne(et,Ae,Tt!="before")),ye}function Xr(a,c){var v=0;c=ve(a.doc,c),a.options.lineWrapping||(v=ia(a.display)*c.ch);var m=zn(a.doc,c.line),x=Ti(m)+tr(a.display);return{left:v,right:v,top:x,bottom:x+m.height}}function Ar(a,c,v,m,x){var L=Ut(a,c,v);return L.xRel=x,m&&(L.outside=m),L}function Wo(a,c,v){var m=a.doc;if(v+=a.display.viewOffset,v<0)return Ar(m.first,0,null,-1,-1);var x=Wt(m,v),L=m.first+m.size-1;if(x>L)return Ar(m.first+m.size-1,zn(m,L).text.length,null,1,1);c<0&&(c=0);for(var G=zn(m,x);;){var it=Oe(a,G,x,c,v),et=qe(G,it.ch+(it.xRel>0||it.outside>0?1:0));if(!et)return it;var Tt=et.find(1);if(Tt.line==x)return Tt;G=zn(m,x=Tt.line)}}function jn(a,c,v,m){m-=Zo(c);var x=c.text.length,L=Ke(function(G){return zs(a,v,G-1).bottom<=m},x,0);return x=Ke(function(G){return zs(a,v,G).top>m},L,x),{begin:L,end:x}}function qo(a,c,v,m){v||(v=na(a,c));var x=as(a,c,zs(a,v,m),"line").top;return jn(a,c,v,x)}function It(a,c,v,m){return a.bottom<=v?!1:a.top>v?!0:(m?a.left:a.right)>c}function Oe(a,c,v,m,x){x-=Ti(c);var L=na(a,c),G=Zo(c),it=0,et=c.text.length,Tt=!0,ne=$e(c,a.doc.direction);if(ne){var Rt=(a.options.lineWrapping?il:xa)(a,c,v,L,ne,m,x);Tt=Rt.level!=1,it=Tt?Rt.from:Rt.to-1,et=Tt?Rt.to:Rt.from-1}var Ae=null,ye=null,Tn=Ke(function(yr){var di=zs(a,L,yr);return di.top+=G,di.bottom+=G,It(di,m,x,!1)?(di.top<=x&&di.left<=m&&(Ae=yr,ye=di),!0):!1},it,et),In,Un,ti=!1;if(ye){var ki=m-ye.left<ye.right-m,fi=ki==Tt;Tn=Ae+(fi?0:1),Un=fi?"after":"before",In=ki?ye.left:ye.right}else{!Tt&&(Tn==et||Tn==it)&&Tn++,Un=Tn==0?"after":Tn==c.text.length?"before":zs(a,L,Tn-(Tt?1:0)).bottom+G<=x==Tt?"after":"before";var _i=io(a,Ut(v,Tn,Un),"line",c,L);In=_i.left,ti=x<_i.top?-1:x>=_i.bottom?1:0}return Tn=Ve(c.text,Tn,1),Ar(v,Tn,Un,ti,m-In)}function xa(a,c,v,m,x,L,G){var it=Ke(function(Rt){var Ae=x[Rt],ye=Ae.level!=1;return It(io(a,Ut(v,ye?Ae.to:Ae.from,ye?"before":"after"),"line",c,m),L,G,!0)},0,x.length-1),et=x[it];if(it>0){var Tt=et.level!=1,ne=io(a,Ut(v,Tt?et.from:et.to,Tt?"after":"before"),"line",c,m);It(ne,L,G,!0)&&ne.top>G&&(et=x[it-1])}return et}function il(a,c,v,m,x,L,G){var it=jn(a,c,m,G),et=it.begin,Tt=it.end;/\s/.test(c.text.charAt(Tt-1))&&Tt--;for(var ne=null,Rt=null,Ae=0;Ae<x.length;Ae++){var ye=x[Ae];if(!(ye.from>=Tt||ye.to<=et)){var Tn=ye.level!=1,In=zs(a,m,Tn?Math.min(Tt,ye.to)-1:Math.max(et,ye.from)).right,Un=In<L?L-In+1e9:In-L;(!ne||Rt>Un)&&(ne=ye,Rt=Un)}}return ne||(ne=x[x.length-1]),ne.from<et&&(ne={from:et,to:ne.to,level:ne.level}),ne.to>Tt&&(ne={from:ne.from,to:Tt,level:ne.level}),ne}var Fo;function ts(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Fo==null){Fo=Ht("pre",null,"CodeMirror-line-like");for(var c=0;c<49;++c)Fo.appendChild(document.createTextNode("x")),Fo.appendChild(Ht("br"));Fo.appendChild(document.createTextNode("x"))}pt(a.measure,Fo);var v=Fo.offsetHeight/50;return v>3&&(a.cachedTextHeight=v),Bt(a.measure),v||1}function ia(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var c=Ht("span","xxxxxxxxxx"),v=Ht("pre",[c],"CodeMirror-line-like");pt(a.measure,v);var m=c.getBoundingClientRect(),x=(m.right-m.left)/10;return x>2&&(a.cachedCharWidth=x),x||10}function ba(a){for(var c=a.display,v={},m={},x=c.gutters.clientLeft,L=c.gutters.firstChild,G=0;L;L=L.nextSibling,++G){var it=a.display.gutterSpecs[G].className;v[it]=L.offsetLeft+L.clientLeft+x,m[it]=L.clientWidth}return{fixedPos:Kl(c),gutterTotalWidth:c.gutters.offsetWidth,gutterLeft:v,gutterWidth:m,wrapperWidth:c.wrapper.clientWidth}}function Kl(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function To(a){var c=ts(a.display),v=a.options.lineWrapping,m=v&&Math.max(5,a.display.scroller.clientWidth/ia(a.display)-3);return function(x){if(Je(a.doc,x))return 0;var L=0;if(x.widgets)for(var G=0;G<x.widgets.length;G++)x.widgets[G].height&&(L+=x.widgets[G].height);return v?L+(Math.ceil(x.text.length/m)||1)*c:L+c}}function Oi(a){var c=a.doc,v=To(a);c.iter(function(m){var x=v(m);x!=m.height&&Nr(m,x)})}function fs(a,c,v,m){var x=a.display;if(!v&&ri(c).getAttribute("cm-not-content")=="true")return null;var L,G,it=x.lineSpace.getBoundingClientRect();try{L=c.clientX-it.left,G=c.clientY-it.top}catch(Rt){return null}var et=Wo(a,L,G),Tt;if(m&&et.xRel>0&&(Tt=zn(a.doc,et.line).text).length==et.ch){var ne=Dt(Tt,Tt.length,a.options.tabSize)-Tt.length;et=Ut(et.line,Math.max(0,Math.round((L-xs(a.display).left)/ia(a.display))-ne))}return et}function _s(a,c){if(c>=a.display.viewTo||(c-=a.display.viewFrom,c<0))return null;for(var v=a.display.view,m=0;m<v.length;m++)if(c-=v[m].size,c<0)return m}function Wr(a,c,v,m){c==null&&(c=a.doc.first),v==null&&(v=a.doc.first+a.doc.size),m||(m=0);var x=a.display;if(m&&v<x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>c)&&(x.updateLineNumbers=c),a.curOp.viewChanged=!0,c>=x.viewTo)Te&&ci(a.doc,c)<x.viewTo&&ko(a);else if(v<=x.viewFrom)Te&&si(a.doc,v+m)>x.viewFrom?ko(a):(x.viewFrom+=m,x.viewTo+=m);else if(c<=x.viewFrom&&v>=x.viewTo)ko(a);else if(c<=x.viewFrom){var L=js(a,v,v+m,1);L?(x.view=x.view.slice(L.index),x.viewFrom=L.lineN,x.viewTo+=m):ko(a)}else if(v>=x.viewTo){var G=js(a,c,c,-1);G?(x.view=x.view.slice(0,G.index),x.viewTo=G.lineN):ko(a)}else{var it=js(a,c,c,-1),et=js(a,v,v+m,1);it&&et?(x.view=x.view.slice(0,it.index).concat(Ni(a,it.lineN,et.lineN)).concat(x.view.slice(et.index)),x.viewTo+=m):ko(a)}var Tt=x.externalMeasured;Tt&&(v<Tt.lineN?Tt.lineN+=m:c<Tt.lineN+Tt.size&&(x.externalMeasured=null))}function gr(a,c,v){a.curOp.viewChanged=!0;var m=a.display,x=a.display.externalMeasured;if(x&&c>=x.lineN&&c<x.lineN+x.size&&(m.externalMeasured=null),!(c<m.viewFrom||c>=m.viewTo)){var L=m.view[_s(a,c)];if(L.node!=null){var G=L.changes||(L.changes=[]);Q(G,v)==-1&&G.push(v)}}}function ko(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function js(a,c,v,m){var x=_s(a,c),L,G=a.display.view;if(!Te||v==a.doc.first+a.doc.size)return{index:x,lineN:v};for(var it=a.display.viewFrom,et=0;et<x;et++)it+=G[et].size;if(it!=c){if(m>0){if(x==G.length-1)return null;L=it+G[x].size-c,x++}else L=it-c;c+=L,v+=L}for(;ci(a.doc,v)!=v;){if(x==(m<0?0:G.length-1))return null;v+=m*G[x-(m<0?1:0)].size,x+=m}return{index:x,lineN:v}}function fo(a,c,v){var m=a.display,x=m.view;x.length==0||c>=m.viewTo||v<=m.viewFrom?(m.view=Ni(a,c,v),m.viewFrom=c):(m.viewFrom>c?m.view=Ni(a,c,m.viewFrom).concat(m.view):m.viewFrom<c&&(m.view=m.view.slice(_s(a,c))),m.viewFrom=c,m.viewTo<v?m.view=m.view.concat(Ni(a,m.viewTo,v)):m.viewTo>v&&(m.view=m.view.slice(0,_s(a,v)))),m.viewTo=v}function Zs(a){for(var c=a.display.view,v=0,m=0;m<c.length;m++){var x=c[m];!x.hidden&&(!x.node||x.changes)&&++v}return v}function es(a){a.display.input.showSelection(a.display.input.prepareSelection())}function yl(a,c){c===void 0&&(c=!0);for(var v=a.doc,m={},x=m.cursors=document.createDocumentFragment(),L=m.selection=document.createDocumentFragment(),G=0;G<v.sel.ranges.length;G++)if(!(!c&&G==v.sel.primIndex)){var it=v.sel.ranges[G];if(!(it.from().line>=a.display.viewTo||it.to().line<a.display.viewFrom)){var et=it.empty();(et||a.options.showCursorWhenSelecting)&&Qr(a,it.head,x),et||_r(a,it,L)}}return m}function Qr(a,c,v){var m=io(a,c,"div",null,null,!a.options.singleCursorHeightPerLine),x=v.appendChild(Ht("div","\xA0","CodeMirror-cursor"));if(x.style.left=m.left+"px",x.style.top=m.top+"px",x.style.height=Math.max(0,m.bottom-m.top)*a.options.cursorHeight+"px",m.other){var L=v.appendChild(Ht("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));L.style.display="",L.style.left=m.other.left+"px",L.style.top=m.other.top+"px",L.style.height=(m.other.bottom-m.other.top)*.85+"px"}}function ps(a,c){return a.top-c.top||a.left-c.left}function _r(a,c,v){var m=a.display,x=a.doc,L=document.createDocumentFragment(),G=xs(a.display),it=G.left,et=Math.max(m.sizerWidth,hs(a)-m.sizer.offsetLeft)-G.right,Tt=x.direction=="ltr";function ne(fi,_i,yr,di){_i<0&&(_i=0),_i=Math.round(_i),di=Math.round(di),L.appendChild(Ht("div",null,"CodeMirror-selected","position: absolute; left: "+fi+`px;
|
|
|
top: `+_i+"px; width: "+(yr==null?et-fi:yr)+`px;
|
|
|
height: `+(di-_i)+"px"))}function Rt(fi,_i,yr){var di=zn(x,fi),qr=di.text.length,rs,Js;function vs(Ws,Tl){return Ls(a,Ut(fi,Ws),"div",di,Tl)}function cl(Ws,Tl,ka){var Ys=qo(a,di,null,Ws),yo=Tl=="ltr"==(ka=="after")?"left":"right",Es=ka=="after"?Ys.begin:Ys.end-(/\s/.test(di.text.charAt(Ys.end-1))?2:1);return vs(Es,yo)[yo]}var Ba=$e(di,x.direction);return qt(Ba,_i||0,yr==null?qr:yr,function(Ws,Tl,ka,Ys){var yo=ka=="ltr",Es=vs(Ws,yo?"left":"right"),la=vs(Tl-1,yo?"right":"left"),Na=_i==null&&Ws==0,mu=yr==null&&Tl==qr,ys=Ys==0,eu=!Ba||Ys==Ba.length-1;if(la.top-Es.top<=3){var Ns=(Tt?Na:mu)&&ys,ud=(Tt?mu:Na)&&eu,Fl=Ns?it:(yo?Es:la).left,wl=ud?et:(yo?la:Es).right;ne(Fl,Es.top,wl-Fl,Es.bottom)}else{var hl,zo,ua,ju;yo?(hl=Tt&&Na&&ys?it:Es.left,zo=Tt?et:cl(Ws,ka,"before"),ua=Tt?it:cl(Tl,ka,"after"),ju=Tt&&mu&&eu?et:la.right):(hl=Tt?cl(Ws,ka,"before"):it,zo=!Tt&&Na&&ys?et:Es.right,ua=!Tt&&mu&&eu?it:la.left,ju=Tt?cl(Tl,ka,"after"):et),ne(hl,Es.top,zo-hl,Es.bottom),Es.bottom<la.top&&ne(it,Es.bottom,null,la.top),ne(ua,la.top,ju-ua,la.bottom)}(!rs||ps(Es,rs)<0)&&(rs=Es),ps(la,rs)<0&&(rs=la),(!Js||ps(Es,Js)<0)&&(Js=Es),ps(la,Js)<0&&(Js=la)}),{start:rs,end:Js}}var Ae=c.from(),ye=c.to();if(Ae.line==ye.line)Rt(Ae.line,Ae.ch,ye.ch);else{var Tn=zn(x,Ae.line),In=zn(x,ye.line),Un=He(Tn)==He(In),ti=Rt(Ae.line,Ae.ch,Un?Tn.text.length+1:null).end,ki=Rt(ye.line,Un?0:null,ye.ch).start;Un&&(ti.top<ki.top-2?(ne(ti.right,ti.top,null,ti.bottom),ne(it,ki.top,ki.left,ki.bottom)):ne(ti.right,ti.top,ki.left-ti.right,ti.bottom)),ti.bottom<ki.top&&ne(it,ti.bottom,null,ki.top)}v.appendChild(L)}function ao(a){if(a.state.focused){var c=a.display;clearInterval(c.blinker);var v=!0;c.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?c.blinker=setInterval(function(){a.hasFocus()||Zl(a),c.cursorDiv.style.visibility=(v=!v)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(c.cursorDiv.style.visibility="hidden")}}function ho(a){a.state.focused||(a.display.input.focus(),Tr(a))}function wo(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Zl(a))},100)}function Tr(a,c){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Ie(a,"focus",a,c),a.state.focused=!0,Gt(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Z&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),ao(a))}function Zl(a,c){a.state.delayingBlurEvent||(a.state.focused&&(Ie(a,"blur",a,c),a.state.focused=!1,wt(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ci(a){for(var c=a.display,v=c.lineDiv.offsetTop,m=0;m<c.view.length;m++){var x=c.view[m],L=a.options.lineWrapping,G=void 0,it=0;if(!x.hidden){if(V&&C<8){var et=x.node.offsetTop+x.node.offsetHeight;G=et-v,v=et}else{var Tt=x.node.getBoundingClientRect();G=Tt.bottom-Tt.top,!L&&x.text.firstChild&&(it=x.text.firstChild.getBoundingClientRect().right-Tt.left-1)}var ne=x.line.height-G;if((ne>.005||ne<-.005)&&(Nr(x.line,G),nc(x.line),x.rest))for(var Rt=0;Rt<x.rest.length;Rt++)nc(x.rest[Rt]);if(it>a.display.sizerWidth){var Ae=Math.ceil(it/ia(a.display));Ae>a.display.maxLineLength&&(a.display.maxLineLength=Ae,a.display.maxLine=x.line,a.display.maxLineChanged=!0)}}}}function nc(a){if(a.widgets)for(var c=0;c<a.widgets.length;++c){var v=a.widgets[c],m=v.node.parentNode;m&&(v.height=m.offsetHeight)}}function Dr(a,c,v){var m=v&&v.top!=null?Math.max(0,v.top):a.scroller.scrollTop;m=Math.floor(m-tr(a));var x=v&&v.bottom!=null?v.bottom:m+a.wrapper.clientHeight,L=Wt(c,m),G=Wt(c,x);if(v&&v.ensure){var it=v.ensure.from.line,et=v.ensure.to.line;it<L?(L=it,G=Wt(c,Ti(zn(c,it))+a.wrapper.clientHeight)):Math.min(et,c.lastLine())>=G&&(L=Wt(c,Ti(zn(c,et))-a.wrapper.clientHeight),G=et)}return{from:L,to:Math.max(G,L+1)}}function _u(a,c){if(!ze(a,"scrollCursorIntoView")){var v=a.display,m=v.sizer.getBoundingClientRect(),x=null;if(c.top+m.top<0?x=!0:c.bottom+m.top>(window.innerHeight||document.documentElement.clientHeight)&&(x=!1),x!=null&&!$t){var L=Ht("div","\u200B",null,`position: absolute;
|
|
|
top: `+(c.top-v.viewOffset-tr(a.display))+`px;
|
|
|
height: `+(c.bottom-c.top+eo(a)+v.barHeight)+`px;
|
|
|
left: `+c.left+"px; width: "+Math.max(2,c.right-c.left)+"px;");a.display.lineSpace.appendChild(L),L.scrollIntoView(x),a.display.lineSpace.removeChild(L)}}}function Ol(a,c,v,m){m==null&&(m=0);var x;!a.options.lineWrapping&&c==v&&(c=c.ch?Ut(c.line,c.sticky=="before"?c.ch-1:c.ch,"after"):c,v=c.sticky=="before"?Ut(c.line,c.ch+1,"before"):c);for(var L=0;L<5;L++){var G=!1,it=io(a,c),et=!v||v==c?it:io(a,v);x={left:Math.min(it.left,et.left),top:Math.min(it.top,et.top)-m,right:Math.max(it.left,et.left),bottom:Math.max(it.bottom,et.bottom)+m};var Tt=Fu(a,x),ne=a.doc.scrollTop,Rt=a.doc.scrollLeft;if(Tt.scrollTop!=null&&(_a(a,Tt.scrollTop),Math.abs(a.doc.scrollTop-ne)>1&&(G=!0)),Tt.scrollLeft!=null&&(Va(a,Tt.scrollLeft),Math.abs(a.doc.scrollLeft-Rt)>1&&(G=!0)),!G)break}return x}function rl(a,c){var v=Fu(a,c);v.scrollTop!=null&&_a(a,v.scrollTop),v.scrollLeft!=null&&Va(a,v.scrollLeft)}function Fu(a,c){var v=a.display,m=ts(a.display);c.top<0&&(c.top=0);var x=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:v.scroller.scrollTop,L=Us(a),G={};c.bottom-c.top>L&&(c.bottom=c.top+L);var it=a.doc.height+$r(v),et=c.top<m,Tt=c.bottom>it-m;if(c.top<x)G.scrollTop=et?0:c.top;else if(c.bottom>x+L){var ne=Math.min(c.top,(Tt?it:c.bottom)-L);ne!=x&&(G.scrollTop=ne)}var Rt=a.options.fixedGutter?0:v.gutters.offsetWidth,Ae=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:v.scroller.scrollLeft-Rt,ye=hs(a)-v.gutters.offsetWidth,Tn=c.right-c.left>ye;return Tn&&(c.right=c.left+ye),c.left<10?G.scrollLeft=0:c.left<Ae?G.scrollLeft=Math.max(0,c.left+Rt-(Tn?0:10)):c.right>ye+Ae-3&&(G.scrollLeft=c.right+(Tn?0:10)-ye),G}function ku(a,c){c!=null&&(Rs(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+c)}function Da(a){Rs(a);var c=a.getCursor();a.curOp.scrollToPos={from:c,to:c,margin:a.options.cursorScrollMargin}}function Pa(a,c,v){(c!=null||v!=null)&&Rs(a),c!=null&&(a.curOp.scrollLeft=c),v!=null&&(a.curOp.scrollTop=v)}function Fr(a,c){Rs(a),a.curOp.scrollToPos=c}function Rs(a){var c=a.curOp.scrollToPos;if(c){a.curOp.scrollToPos=null;var v=Xr(a,c.from),m=Xr(a,c.to);$l(a,v,m,c.margin)}}function $l(a,c,v,m){var x=Fu(a,{left:Math.min(c.left,v.left),top:Math.min(c.top,v.top)-m,right:Math.max(c.right,v.right),bottom:Math.max(c.bottom,v.bottom)+m});Pa(a,x.scrollLeft,x.scrollTop)}function _a(a,c){Math.abs(a.doc.scrollTop-c)<2||(E||U(a,{top:c}),ol(a,c,!0),E&&U(a),fu(a,100))}function ol(a,c,v){c=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,c)),!(a.display.scroller.scrollTop==c&&!v)&&(a.doc.scrollTop=c,a.display.scrollbars.setScrollTop(c),a.display.scroller.scrollTop!=c&&(a.display.scroller.scrollTop=c))}function Va(a,c,v,m){c=Math.max(0,Math.min(c,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((v?c==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-c)<2)&&!m)&&(a.doc.scrollLeft=c,Ot(a),a.display.scroller.scrollLeft!=c&&(a.display.scroller.scrollLeft=c),a.display.scrollbars.setScrollLeft(c))}function wr(a){var c=a.display,v=c.gutters.offsetWidth,m=Math.round(a.doc.height+$r(a.display));return{clientHeight:c.scroller.clientHeight,viewHeight:c.wrapper.clientHeight,scrollWidth:c.scroller.scrollWidth,clientWidth:c.scroller.clientWidth,viewWidth:c.wrapper.clientWidth,barLeft:a.options.fixedGutter?v:0,docHeight:m,scrollHeight:m+eo(a)+c.barHeight,nativeBarWidth:c.nativeBarWidth,gutterWidth:v}}var Jr=function(a,c,v){this.cm=v;var m=this.vert=Ht("div",[Ht("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),x=this.horiz=Ht("div",[Ht("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");m.tabIndex=x.tabIndex=-1,a(m),a(x),zt(m,"scroll",function(){m.clientHeight&&c(m.scrollTop,"vertical")}),zt(x,"scroll",function(){x.clientWidth&&c(x.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,V&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Jr.prototype.update=function(a){var c=a.scrollWidth>a.clientWidth+1,v=a.scrollHeight>a.clientHeight+1,m=a.nativeBarWidth;if(v){this.vert.style.display="block",this.vert.style.bottom=c?m+"px":"0";var x=a.viewHeight-(c?m:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+x)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(c){this.horiz.style.display="block",this.horiz.style.right=v?m+"px":"0",this.horiz.style.left=a.barLeft+"px";var L=a.viewWidth-a.barLeft-(v?m:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+L)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(m==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:v?m:0,bottom:c?m:0}},Jr.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Jr.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Jr.prototype.zeroWidthHack=function(){var a=xt&&!ct?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new rt,this.disableVert=new rt},Jr.prototype.enableZeroWidthBar=function(a,c,v){a.style.pointerEvents="auto";function m(){var x=a.getBoundingClientRect(),L=v=="vert"?document.elementFromPoint(x.right-1,(x.top+x.bottom)/2):document.elementFromPoint((x.right+x.left)/2,x.bottom-1);L!=a?a.style.pointerEvents="none":c.set(1e3,m)}c.set(1e3,m)},Jr.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.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 gs(a,c){c||(c=wr(a));var v=a.display.barWidth,m=a.display.barHeight;ns(a,c);for(var x=0;x<4&&v!=a.display.barWidth||m!=a.display.barHeight;x++)v!=a.display.barWidth&&a.options.lineWrapping&&Ci(a),ns(a,wr(a)),v=a.display.barWidth,m=a.display.barHeight}function ns(a,c){var v=a.display,m=v.scrollbars.update(c);v.sizer.style.paddingRight=(v.barWidth=m.right)+"px",v.sizer.style.paddingBottom=(v.barHeight=m.bottom)+"px",v.heightForcer.style.borderBottom=m.bottom+"px solid transparent",m.right&&m.bottom?(v.scrollbarFiller.style.display="block",v.scrollbarFiller.style.height=m.bottom+"px",v.scrollbarFiller.style.width=m.right+"px"):v.scrollbarFiller.style.display="",m.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(v.gutterFiller.style.display="block",v.gutterFiller.style.height=m.bottom+"px",v.gutterFiller.style.width=c.gutterWidth+"px"):v.gutterFiller.style.display=""}var Ea={native:Jr,null:No};function Sa(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&wt(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ea[a.options.scrollbarStyle](function(c){a.display.wrapper.insertBefore(c,a.display.scrollbarFiller),zt(c,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),c.setAttribute("cm-not-content","true")},function(c,v){v=="horizontal"?Va(a,c):_a(a,c)},a),a.display.scrollbars.addClass&&Gt(a.display.wrapper,a.display.scrollbars.addClass)}var Ta=0;function ra(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++Ta},ws(a.curOp)}function Wa(a){var c=a.curOp;c&&Ma(c,function(v){for(var m=0;m<v.ops.length;m++)v.ops[m].cm.curOp=null;vc(v)})}function vc(a){for(var c=a.ops,v=0;v<c.length;v++)Sh(c[v]);for(var m=0;m<c.length;m++)Th(c[m]);for(var x=0;x<c.length;x++)wh(c[x]);for(var L=0;L<c.length;L++)$o(c[L]);for(var G=0;G<c.length;G++)Xl(c[G])}function Sh(a){var c=a.cm,v=c.display;yc(c),a.updateMaxLine&&bi(c),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<v.viewFrom||a.scrollToPos.to.line>=v.viewTo)||v.maxLineChanged&&c.options.lineWrapping,a.update=a.mustUpdate&&new Ql(c,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Th(a){a.updatedDisplay=a.mustUpdate&&b(a.cm,a.update)}function wh(a){var c=a.cm,v=c.display;a.updatedDisplay&&Ci(c),a.barMeasure=wr(c),v.maxLineChanged&&!c.options.lineWrapping&&(a.adjustWidthTo=Wl(c,v.maxLine,v.maxLine.text.length).left+3,c.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(v.scroller.clientWidth,v.sizer.offsetLeft+a.adjustWidthTo+eo(c)+c.display.barWidth),a.maxScrollLeft=Math.max(0,v.sizer.offsetLeft+a.adjustWidthTo-hs(c))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=v.input.prepareSelection())}function $o(a){var c=a.cm;a.adjustWidthTo!=null&&(c.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<c.doc.scrollLeft&&Va(c,Math.min(c.display.scroller.scrollLeft,a.maxScrollLeft),!0),c.display.maxLineChanged=!1);var v=a.focus&&a.focus==kt();a.preparedSelection&&c.display.input.showSelection(a.preparedSelection,v),(a.updatedDisplay||a.startHeight!=c.doc.height)&&gs(c,a.barMeasure),a.updatedDisplay&&mt(c,a.barMeasure),a.selectionChanged&&ao(c),c.state.focused&&a.updateInput&&c.display.input.reset(a.typing),v&&ho(a.cm)}function Xl(a){var c=a.cm,v=c.display,m=c.doc;if(a.updatedDisplay&&M(c,a.update),v.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(v.wheelStartX=v.wheelStartY=null),a.scrollTop!=null&&ol(c,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Va(c,a.scrollLeft,!0,!0),a.scrollToPos){var x=Ol(c,ve(m,a.scrollToPos.from),ve(m,a.scrollToPos.to),a.scrollToPos.margin);_u(c,x)}var L=a.maybeHiddenMarkers,G=a.maybeUnhiddenMarkers;if(L)for(var it=0;it<L.length;++it)L[it].lines.length||Ie(L[it],"hide");if(G)for(var et=0;et<G.length;++et)G[et].lines.length&&Ie(G[et],"unhide");v.wrapper.offsetHeight&&(m.scrollTop=c.display.scroller.scrollTop),a.changeObjs&&Ie(c,"changes",c,a.changeObjs),a.update&&a.update.finish()}function uo(a,c){if(a.curOp)return c();ra(a);try{return c()}finally{Wa(a)}}function bs(a,c){return function(){if(a.curOp)return c.apply(a,arguments);ra(a);try{return c.apply(a,arguments)}finally{Wa(a)}}}function Ms(a){return function(){if(this.curOp)return a.apply(this,arguments);ra(this);try{return a.apply(this,arguments)}finally{Wa(this)}}}function ks(a){return function(){var c=this.cm;if(!c||c.curOp)return a.apply(this,arguments);ra(c);try{return a.apply(this,arguments)}finally{Wa(c)}}}function fu(a,c){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(c,re(Fs,a))}function Fs(a){var c=a.doc;if(!(c.highlightFrontier>=a.display.viewTo)){var v=+new Date+a.options.workTime,m=Ir(a,c.highlightFrontier),x=[];c.iter(m.line,Math.min(c.first+c.size,a.display.viewTo+500),function(L){if(m.line>=a.display.viewFrom){var G=L.styles,it=L.text.length>a.options.maxHighlightLength?fr(c.mode,m.state):null,et=jt(a,L,m,!0);it&&(m.state=it),L.styles=et.styles;var Tt=L.styleClasses,ne=et.classes;ne?L.styleClasses=ne:Tt&&(L.styleClasses=null);for(var Rt=!G||G.length!=L.styles.length||Tt!=ne&&(!Tt||!ne||Tt.bgClass!=ne.bgClass||Tt.textClass!=ne.textClass),Ae=0;!Rt&&Ae<G.length;++Ae)Rt=G[Ae]!=L.styles[Ae];Rt&&x.push(m.line),L.stateAfter=m.save(),m.nextLine()}else L.text.length<=a.options.maxHighlightLength&&xe(a,L.text,m),L.stateAfter=m.line%5==0?m.save():null,m.nextLine();if(+new Date>v)return fu(a,a.options.workDelay),!0}),c.highlightFrontier=m.line,c.modeFrontier=Math.max(c.modeFrontier,m.line),x.length&&uo(a,function(){for(var L=0;L<x.length;L++)gr(a,x[L],"text")})}}var Ql=function(a,c,v){var m=a.display;this.viewport=c,this.visible=Dr(m,a.doc,c),this.editorIsHidden=!m.wrapper.offsetWidth,this.wrapperHeight=m.wrapper.clientHeight,this.wrapperWidth=m.wrapper.clientWidth,this.oldDisplayWidth=hs(a),this.force=v,this.dims=ba(a),this.events=[]};Ql.prototype.signal=function(a,c){je(a,c)&&this.events.push(arguments)},Ql.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Ie.apply(null,this.events[a])};function yc(a){var c=a.display;!c.scrollbarsClipped&&c.scroller.offsetWidth&&(c.nativeBarWidth=c.scroller.offsetWidth-c.scroller.clientWidth,c.heightForcer.style.height=eo(a)+"px",c.sizer.style.marginBottom=-c.nativeBarWidth+"px",c.sizer.style.borderRightWidth=eo(a)+"px",c.scrollbarsClipped=!0)}function xc(a){if(a.hasFocus())return null;var c=kt();if(!c||!Pt(a.display.lineDiv,c))return null;var v={activeElt:c};if(window.getSelection){var m=window.getSelection();m.anchorNode&&m.extend&&Pt(a.display.lineDiv,m.anchorNode)&&(v.anchorNode=m.anchorNode,v.anchorOffset=m.anchorOffset,v.focusNode=m.focusNode,v.focusOffset=m.focusOffset)}return v}function oa(a){if(!(!a||!a.activeElt||a.activeElt==kt())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Pt(document.body,a.anchorNode)&&Pt(document.body,a.focusNode))){var c=window.getSelection(),v=document.createRange();v.setEnd(a.anchorNode,a.anchorOffset),v.collapse(!1),c.removeAllRanges(),c.addRange(v),c.extend(a.focusNode,a.focusOffset)}}function b(a,c){var v=a.display,m=a.doc;if(c.editorIsHidden)return ko(a),!1;if(!c.force&&c.visible.from>=v.viewFrom&&c.visible.to<=v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>=v.viewTo)&&v.renderedView==v.view&&Zs(a)==0)return!1;Vt(a)&&(ko(a),c.dims=ba(a));var x=m.first+m.size,L=Math.max(c.visible.from-a.options.viewportMargin,m.first),G=Math.min(x,c.visible.to+a.options.viewportMargin);v.viewFrom<L&&L-v.viewFrom<20&&(L=Math.max(m.first,v.viewFrom)),v.viewTo>G&&v.viewTo-G<20&&(G=Math.min(x,v.viewTo)),Te&&(L=ci(a.doc,L),G=si(a.doc,G));var it=L!=v.viewFrom||G!=v.viewTo||v.lastWrapHeight!=c.wrapperHeight||v.lastWrapWidth!=c.wrapperWidth;fo(a,L,G),v.viewOffset=Ti(zn(a.doc,v.viewFrom)),a.display.mover.style.top=v.viewOffset+"px";var et=Zs(a);if(!it&&et==0&&!c.force&&v.renderedView==v.view&&(v.updateLineNumbers==null||v.updateLineNumbers>=v.viewTo))return!1;var Tt=xc(a);return et>4&&(v.lineDiv.style.display="none"),W(a,v.updateLineNumbers,c.dims),et>4&&(v.lineDiv.style.display=""),v.renderedView=v.view,oa(Tt),Bt(v.cursorDiv),Bt(v.selectionDiv),v.gutters.style.height=v.sizer.style.minHeight=0,it&&(v.lastWrapHeight=c.wrapperHeight,v.lastWrapWidth=c.wrapperWidth,fu(a,400)),v.updateLineNumbers=null,!0}function M(a,c){for(var v=c.viewport,m=!0;;m=!1){if(!m||!a.options.lineWrapping||c.oldDisplayWidth==hs(a)){if(v&&v.top!=null&&(v={top:Math.min(a.doc.height+$r(a.display)-Us(a),v.top)}),c.visible=Dr(a.display,a.doc,v),c.visible.from>=a.display.viewFrom&&c.visible.to<=a.display.viewTo)break}else m&&(c.visible=Dr(a.display,a.doc,v));if(!b(a,c))break;Ci(a);var x=wr(a);es(a),gs(a,x),mt(a,x),c.force=!1}c.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(c.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function U(a,c){var v=new Ql(a,c);if(b(a,v)){Ci(a),M(a,v);var m=wr(a);es(a),gs(a,m),mt(a,m),v.finish()}}function W(a,c,v){var m=a.display,x=a.options.lineNumbers,L=m.lineDiv,G=L.firstChild;function it(Tn){var In=Tn.nextSibling;return Z&&xt&&a.display.currentWheelTarget==Tn?Tn.style.display="none":Tn.parentNode.removeChild(Tn),In}for(var et=m.view,Tt=m.viewFrom,ne=0;ne<et.length;ne++){var Rt=et[ne];if(!Rt.hidden)if(!Rt.node||Rt.node.parentNode!=L){var Ae=Yi(a,Rt,Tt,v);L.insertBefore(Ae,G)}else{for(;G!=Rt.node;)G=it(G);var ye=x&&c!=null&&c<=Tt&&Rt.lineNumber;Rt.changes&&(Q(Rt.changes,"gutter")>-1&&(ye=!1),go(a,Rt,Tt,v)),ye&&(Bt(Rt.lineNumber),Rt.lineNumber.appendChild(document.createTextNode(cn(a.options,Tt)))),G=Rt.node.nextSibling}Tt+=Rt.size}for(;G;)G=it(G)}function dt(a){var c=a.gutters.offsetWidth;a.sizer.style.marginLeft=c+"px"}function mt(a,c){a.display.sizer.style.minHeight=c.docHeight+"px",a.display.heightForcer.style.top=c.docHeight+"px",a.display.gutters.style.height=c.docHeight+a.display.barHeight+eo(a)+"px"}function Ot(a){var c=a.display,v=c.view;if(!(!c.alignWidgets&&(!c.gutters.firstChild||!a.options.fixedGutter))){for(var m=Kl(c)-c.scroller.scrollLeft+a.doc.scrollLeft,x=c.gutters.offsetWidth,L=m+"px",G=0;G<v.length;G++)if(!v[G].hidden){a.options.fixedGutter&&(v[G].gutter&&(v[G].gutter.style.left=L),v[G].gutterBackground&&(v[G].gutterBackground.style.left=L));var it=v[G].alignable;if(it)for(var et=0;et<it.length;et++)it[et].style.left=L}a.options.fixedGutter&&(c.gutters.style.left=m+x+"px")}}function Vt(a){if(!a.options.lineNumbers)return!1;var c=a.doc,v=cn(a.options,c.first+c.size-1),m=a.display;if(v.length!=m.lineNumChars){var x=m.measure.appendChild(Ht("div",[Ht("div",v)],"CodeMirror-linenumber CodeMirror-gutter-elt")),L=x.firstChild.offsetWidth,G=x.offsetWidth-L;return m.lineGutter.style.width="",m.lineNumInnerWidth=Math.max(L,m.lineGutter.offsetWidth-G)+1,m.lineNumWidth=m.lineNumInnerWidth+G,m.lineNumChars=m.lineNumInnerWidth?v.length:-1,m.lineGutter.style.width=m.lineNumWidth+"px",dt(a.display),!0}return!1}function be(a,c){for(var v=[],m=!1,x=0;x<a.length;x++){var L=a[x],G=null;if(typeof L!="string"&&(G=L.style,L=L.className),L=="CodeMirror-linenumbers")if(c)m=!0;else continue;v.push({className:L,style:G})}return c&&!m&&v.push({className:"CodeMirror-linenumbers",style:null}),v}function Ne(a){var c=a.gutters,v=a.gutterSpecs;Bt(c),a.lineGutter=null;for(var m=0;m<v.length;++m){var x=v[m],L=x.className,G=x.style,it=c.appendChild(Ht("div",null,"CodeMirror-gutter "+L));G&&(it.style.cssText=G),L=="CodeMirror-linenumbers"&&(a.lineGutter=it,it.style.width=(a.lineNumWidth||1)+"px")}c.style.display=v.length?"":"none",dt(a)}function ae(a){Ne(a.display),Wr(a),Ot(a)}function We(a,c,v,m){var x=this;this.input=v,x.scrollbarFiller=Ht("div",null,"CodeMirror-scrollbar-filler"),x.scrollbarFiller.setAttribute("cm-not-content","true"),x.gutterFiller=Ht("div",null,"CodeMirror-gutter-filler"),x.gutterFiller.setAttribute("cm-not-content","true"),x.lineDiv=At("div",null,"CodeMirror-code"),x.selectionDiv=Ht("div",null,null,"position: relative; z-index: 1"),x.cursorDiv=Ht("div",null,"CodeMirror-cursors"),x.measure=Ht("div",null,"CodeMirror-measure"),x.lineMeasure=Ht("div",null,"CodeMirror-measure"),x.lineSpace=At("div",[x.measure,x.lineMeasure,x.selectionDiv,x.cursorDiv,x.lineDiv],null,"position: relative; outline: none");var L=At("div",[x.lineSpace],"CodeMirror-lines");x.mover=Ht("div",[L],null,"position: relative"),x.sizer=Ht("div",[x.mover],"CodeMirror-sizer"),x.sizerWidth=null,x.heightForcer=Ht("div",null,null,"position: absolute; height: "+ie+"px; width: 1px;"),x.gutters=Ht("div",null,"CodeMirror-gutters"),x.lineGutter=null,x.scroller=Ht("div",[x.sizer,x.heightForcer,x.gutters],"CodeMirror-scroll"),x.scroller.setAttribute("tabIndex","-1"),x.wrapper=Ht("div",[x.scrollbarFiller,x.gutterFiller,x.scroller],"CodeMirror"),V&&C<8&&(x.gutters.style.zIndex=-1,x.scroller.style.paddingRight=0),!Z&&!(E&&Ct)&&(x.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(x.wrapper):a(x.wrapper)),x.viewFrom=x.viewTo=c.first,x.reportedViewFrom=x.reportedViewTo=c.first,x.view=[],x.renderedView=null,x.externalMeasured=null,x.viewOffset=0,x.lastWrapHeight=x.lastWrapWidth=0,x.updateLineNumbers=null,x.nativeBarWidth=x.barHeight=x.barWidth=0,x.scrollbarsClipped=!1,x.lineNumWidth=x.lineNumInnerWidth=x.lineNumChars=null,x.alignWidgets=!1,x.cachedCharWidth=x.cachedTextHeight=x.cachedPaddingH=null,x.maxLine=null,x.maxLineLength=0,x.maxLineChanged=!1,x.wheelDX=x.wheelDY=x.wheelStartX=x.wheelStartY=null,x.shift=!1,x.selForContextMenu=null,x.activeTouch=null,x.gutterSpecs=be(m.gutters,m.lineNumbers),Ne(x),v.init(x)}var Ue=0,fe=null;V?fe=-.53:E?fe=15:J?fe=-.7:Mt&&(fe=-1/3);function Pi(a){var c=a.wheelDeltaX,v=a.wheelDeltaY;return c==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(c=a.detail),v==null&&a.detail&&a.axis==a.VERTICAL_AXIS?v=a.detail:v==null&&(v=a.wheelDelta),{x:c,y:v}}function lr(a){var c=Pi(a);return c.x*=fe,c.y*=fe,c}function Cr(a,c){var v=Pi(c),m=v.x,x=v.y,L=a.display,G=L.scroller,it=G.scrollWidth>G.clientWidth,et=G.scrollHeight>G.clientHeight;if(m&&it||x&&et){if(x&&xt&&Z){t:for(var Tt=c.target,ne=L.view;Tt!=G;Tt=Tt.parentNode)for(var Rt=0;Rt<ne.length;Rt++)if(ne[Rt].node==Tt){a.display.currentWheelTarget=Tt;break t}}if(m&&!E&&!Y&&fe!=null){x&&et&&_a(a,Math.max(0,G.scrollTop+x*fe)),Va(a,Math.max(0,G.scrollLeft+m*fe)),(!x||x&&et)&&hn(c),L.wheelStartX=null;return}if(x&&fe!=null){var Ae=x*fe,ye=a.doc.scrollTop,Tn=ye+L.wrapper.clientHeight;Ae<0?ye=Math.max(0,ye+Ae-50):Tn=Math.min(a.doc.height,Tn+Ae+50),U(a,{top:ye,bottom:Tn})}Ue<20&&(L.wheelStartX==null?(L.wheelStartX=G.scrollLeft,L.wheelStartY=G.scrollTop,L.wheelDX=m,L.wheelDY=x,setTimeout(function(){if(L.wheelStartX!=null){var In=G.scrollLeft-L.wheelStartX,Un=G.scrollTop-L.wheelStartY,ti=Un&&L.wheelDY&&Un/L.wheelDY||In&&L.wheelDX&&In/L.wheelDX;L.wheelStartX=L.wheelStartY=null,ti&&(fe=(fe*Ue+ti)/(Ue+1),++Ue)}},200)):(L.wheelDX+=m,L.wheelDY+=x))}}var hi=function(a,c){this.ranges=a,this.primIndex=c};hi.prototype.primary=function(){return this.ranges[this.primIndex]},hi.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var c=0;c<this.ranges.length;c++){var v=this.ranges[c],m=a.ranges[c];if(!kn(v.anchor,m.anchor)||!kn(v.head,m.head))return!1}return!0},hi.prototype.deepCopy=function(){for(var a=[],c=0;c<this.ranges.length;c++)a[c]=new Hi(te(this.ranges[c].anchor),te(this.ranges[c].head));return new hi(a,this.primIndex)},hi.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},hi.prototype.contains=function(a,c){c||(c=a);for(var v=0;v<this.ranges.length;v++){var m=this.ranges[v];if(Ye(c,m.from())>=0&&Ye(a,m.to())<=0)return v}return-1};var Hi=function(a,c){this.anchor=a,this.head=c};Hi.prototype.from=function(){return bn(this.anchor,this.head)},Hi.prototype.to=function(){return R(this.anchor,this.head)},Hi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qi(a,c,v){var m=a&&a.options.selectionsMayTouch,x=c[v];c.sort(function(Ae,ye){return Ye(Ae.from(),ye.from())}),v=Q(c,x);for(var L=1;L<c.length;L++){var G=c[L],it=c[L-1],et=Ye(it.to(),G.from());if(m&&!G.empty()?et>0:et>=0){var Tt=bn(it.from(),G.from()),ne=R(it.to(),G.to()),Rt=it.empty()?G.from()==G.head:it.from()==it.head;L<=v&&--v,c.splice(--L,2,new Hi(Rt?ne:Tt,Rt?Tt:ne))}}return new hi(c,v)}function Ao(a,c){return new hi([new Hi(a,c||a)],0)}function Io(a){return a.text?Ut(a.from.line+a.text.length-1,un(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Zn(a,c){if(Ye(a,c.from)<0)return a;if(Ye(a,c.to)<=0)return Io(c);var v=a.line+c.text.length-(c.to.line-c.from.line)-1,m=a.ch;return a.line==c.to.line&&(m+=Io(c).ch-c.to.ch),Ut(v,m)}function Mo(a,c){for(var v=[],m=0;m<a.sel.ranges.length;m++){var x=a.sel.ranges[m];v.push(new Hi(Zn(x.anchor,c),Zn(x.head,c)))}return Qi(a.cm,v,a.sel.primIndex)}function is(a,c,v){return a.line==c.line?Ut(v.line,a.ch-c.ch+v.ch):Ut(v.line+(a.line-c.line),a.ch)}function bo(a,c,v){for(var m=[],x=Ut(a.first,0),L=x,G=0;G<c.length;G++){var it=c[G],et=is(it.from,x,L),Tt=is(Io(it),x,L);if(x=it.to,L=Tt,v=="around"){var ne=a.sel.ranges[G],Rt=Ye(ne.head,ne.anchor)<0;m[G]=new Hi(Rt?Tt:et,Rt?et:Tt)}else m[G]=new Hi(et,et)}return new hi(m,a.sel.primIndex)}function Di(a){a.doc.mode=or(a.options,a.doc.modeOption),sa(a)}function sa(a){a.doc.iter(function(c){c.stateAfter&&(c.stateAfter=null),c.styles&&(c.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,fu(a,100),a.state.modeGen++,a.curOp&&Wr(a)}function Uo(a,c){return c.from.ch==0&&c.to.ch==0&&un(c.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function br(a,c,v,m){function x(ki){return v?v[ki]:null}function L(ki,fi,_i){Pr(ki,fi,_i,m),ii(ki,"change",ki,c)}function G(ki,fi){for(var _i=[],yr=ki;yr<fi;++yr)_i.push(new Kr(Tt[yr],x(yr),m));return _i}var it=c.from,et=c.to,Tt=c.text,ne=zn(a,it.line),Rt=zn(a,et.line),Ae=un(Tt),ye=x(Tt.length-1),Tn=et.line-it.line;if(c.full)a.insert(0,G(0,Tt.length)),a.remove(Tt.length,a.size-Tt.length);else if(Uo(a,c)){var In=G(0,Tt.length-1);L(Rt,Rt.text,ye),Tn&&a.remove(it.line,Tn),In.length&&a.insert(it.line,In)}else if(ne==Rt)if(Tt.length==1)L(ne,ne.text.slice(0,it.ch)+Ae+ne.text.slice(et.ch),ye);else{var Un=G(1,Tt.length-1);Un.push(new Kr(Ae+ne.text.slice(et.ch),ye,m)),L(ne,ne.text.slice(0,it.ch)+Tt[0],x(0)),a.insert(it.line+1,Un)}else if(Tt.length==1)L(ne,ne.text.slice(0,it.ch)+Tt[0]+Rt.text.slice(et.ch),x(0)),a.remove(it.line+1,Tn);else{L(ne,ne.text.slice(0,it.ch)+Tt[0],x(0)),L(Rt,Ae+Rt.text.slice(et.ch),ye);var ti=G(1,Tt.length-1);Tn>1&&a.remove(it.line+1,Tn-1),a.insert(it.line+1,ti)}ii(a,"change",a,c)}function mr(a,c,v){function m(x,L,G){if(x.linked)for(var it=0;it<x.linked.length;++it){var et=x.linked[it];if(et.doc!=L){var Tt=G&&et.sharedHist;v&&!Tt||(c(et.doc,Tt),m(et.doc,x,Tt))}}}m(a,null,!0)}function ro(a,c){if(c.cm)throw new Error("This document is already in use.");a.doc=c,c.cm=a,Oi(a),Di(a),Xo(a),a.options.lineWrapping||bi(a),a.options.mode=c.modeOption,Wr(a)}function Xo(a){(a.doc.direction=="rtl"?Gt:wt)(a.display.lineDiv,"CodeMirror-rtl")}function Bs(a){uo(a,function(){Xo(a),Wr(a)})}function $s(a){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=a||1}function Fa(a,c){var v={from:te(c.from),to:Io(c),text:Wi(a,c.from,c.to)};return xl(a,v,c.from.line,c.to.line+1),mr(a,function(m){return xl(m,v,c.from.line,c.to.line+1)},!0),v}function Me(a){for(;a.length;){var c=un(a);if(c.ranges)a.pop();else break}}function aa(a,c){if(c)return Me(a.done),un(a.done);if(a.done.length&&!un(a.done).ranges)return un(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),un(a.done)}function Ya(a,c,v,m){var x=a.history;x.undone.length=0;var L=+new Date,G,it;if((x.lastOp==m||x.lastOrigin==c.origin&&c.origin&&(c.origin.charAt(0)=="+"&&x.lastModTime>L-(a.cm?a.cm.options.historyEventDelay:500)||c.origin.charAt(0)=="*"))&&(G=aa(x,x.lastOp==m)))it=un(G.changes),Ye(c.from,c.to)==0&&Ye(c.from,it.to)==0?it.to=Io(c):G.changes.push(Fa(a,c));else{var et=un(x.done);for((!et||!et.ranges)&&sl(a.sel,x.done),G={changes:[Fa(a,c)],generation:x.generation},x.done.push(G);x.done.length>x.undoDepth;)x.done.shift(),x.done[0].ranges||x.done.shift()}x.done.push(v),x.generation=++x.maxGeneration,x.lastModTime=x.lastSelTime=L,x.lastOp=x.lastSelOp=m,x.lastOrigin=x.lastSelOrigin=c.origin,it||Ie(a,"historyAdded")}function _e(a,c,v,m){var x=c.charAt(0);return x=="*"||x=="+"&&v.ranges.length==m.ranges.length&&v.somethingSelected()==m.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Xs(a,c,v,m){var x=a.history,L=m&&m.origin;v==x.lastSelOp||L&&x.lastSelOrigin==L&&(x.lastModTime==x.lastSelTime&&x.lastOrigin==L||_e(a,L,un(x.done),c))?x.done[x.done.length-1]=c:sl(c,x.done),x.lastSelTime=+new Date,x.lastSelOrigin=L,x.lastSelOp=v,m&&m.clearRedo!==!1&&Me(x.undone)}function sl(a,c){var v=un(c);v&&v.ranges&&v.equals(a)||c.push(a)}function xl(a,c,v,m){var x=c["spans_"+a.id],L=0;a.iter(Math.max(a.first,v),Math.min(a.first+a.size,m),function(G){G.markedSpans&&((x||(x=c["spans_"+a.id]={}))[L]=G.markedSpans),++L})}function Os(a){if(!a)return null;for(var c,v=0;v<a.length;++v)a[v].marker.explicitlyCleared?c||(c=a.slice(0,v)):c&&c.push(a[v]);return c?c.length?c:null:a}function Qo(a,c){var v=c["spans_"+a.id];if(!v)return null;for(var m=[],x=0;x<c.text.length;++x)m.push(Os(v[x]));return m}function Ka(a,c){var v=Qo(a,c),m=Hr(a,c);if(!v)return m;if(!m)return v;for(var x=0;x<v.length;++x){var L=v[x],G=m[x];if(L&&G)t:for(var it=0;it<G.length;++it){for(var et=G[it],Tt=0;Tt<L.length;++Tt)if(L[Tt].marker==et.marker)continue t;L.push(et)}else G&&(v[x]=G)}return v}function Gs(a,c,v){for(var m=[],x=0;x<a.length;++x){var L=a[x];if(L.ranges){m.push(v?hi.prototype.deepCopy.call(L):L);continue}var G=L.changes,it=[];m.push({changes:it});for(var et=0;et<G.length;++et){var Tt=G[et],ne=void 0;if(it.push({from:Tt.from,to:Tt.to,text:Tt.text}),c)for(var Rt in Tt)(ne=Rt.match(/^spans_(\d+)$/))&&Q(c,Number(ne[1]))>-1&&(un(it)[Rt]=Tt[Rt],delete Tt[Rt])}}return m}function Dl(a,c,v,m){if(m){var x=a.anchor;if(v){var L=Ye(c,x)<0;L!=Ye(v,x)<0?(x=c,c=v):L!=Ye(c,v)<0&&(c=v)}return new Hi(x,c)}else return new Hi(v||c,c)}function Jl(a,c,v,m,x){x==null&&(x=a.cm&&(a.cm.display.shift||a.extend)),g(a,new hi([Dl(a.sel.primary(),c,v,x)],0),m)}function bc(a,c,v){for(var m=[],x=a.cm&&(a.cm.display.shift||a.extend),L=0;L<a.sel.ranges.length;L++)m[L]=Dl(a.sel.ranges[L],c[L],null,x);var G=Qi(a.cm,m,a.sel.primIndex);g(a,G,v)}function al(a,c,v,m){var x=a.sel.ranges.slice(0);x[c]=v,g(a,Qi(a.cm,x,a.sel.primIndex),m)}function pu(a,c,v,m){g(a,Ao(c,v),m)}function Yc(a,c,v){var m={ranges:c.ranges,update:function(x){this.ranges=[];for(var L=0;L<x.length;L++)this.ranges[L]=new Hi(ve(a,x[L].anchor),ve(a,x[L].head))},origin:v&&v.origin};return Ie(a,"beforeSelectionChange",a,m),a.cm&&Ie(a.cm,"beforeSelectionChange",a.cm,m),m.ranges!=c.ranges?Qi(a.cm,m.ranges,m.ranges.length-1):c}function h(a,c,v){var m=a.history.done,x=un(m);x&&x.ranges?(m[m.length-1]=c,B(a,c,v)):g(a,c,v)}function g(a,c,v){B(a,c,v),Xs(a,a.sel,a.cm?a.cm.curOp.id:NaN,v)}function B(a,c,v){(je(a,"beforeSelectionChange")||a.cm&&je(a.cm,"beforeSelectionChange"))&&(c=Yc(a,c,v));var m=v&&v.bias||(Ye(c.primary().head,a.sel.primary().head)<0?-1:1);Lt(a,fn(a,c,m,!0)),!(v&&v.scroll===!1)&&a.cm&&Da(a.cm)}function Lt(a,c){c.equals(a.sel)||(a.sel=c,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Cn(a.cm)),ii(a,"cursorActivity",a))}function Se(a){Lt(a,fn(a,a.sel,null,!1))}function fn(a,c,v,m){for(var x,L=0;L<c.ranges.length;L++){var G=c.ranges[L],it=c.ranges.length==a.sel.ranges.length&&a.sel.ranges[L],et=zi(a,G.anchor,it&&it.anchor,v,m),Tt=zi(a,G.head,it&&it.head,v,m);(x||et!=G.anchor||Tt!=G.head)&&(x||(x=c.ranges.slice(0,L)),x[L]=new Hi(et,Tt))}return x?Qi(a.cm,x,c.primIndex):c}function Fn(a,c,v,m,x){var L=zn(a,c.line);if(L.markedSpans)for(var G=0;G<L.markedSpans.length;++G){var it=L.markedSpans[G],et=it.marker,Tt="selectLeft"in et?!et.selectLeft:et.inclusiveLeft,ne="selectRight"in et?!et.selectRight:et.inclusiveRight;if((it.from==null||(Tt?it.from<=c.ch:it.from<c.ch))&&(it.to==null||(ne?it.to>=c.ch:it.to>c.ch))){if(x&&(Ie(et,"beforeCursorEnter"),et.explicitlyCleared))if(L.markedSpans){--G;continue}else break;if(!et.atomic)continue;if(v){var Rt=et.find(m<0?1:-1),Ae=void 0;if((m<0?ne:Tt)&&(Rt=vr(a,Rt,-m,Rt&&Rt.line==c.line?L:null)),Rt&&Rt.line==c.line&&(Ae=Ye(Rt,v))&&(m<0?Ae<0:Ae>0))return Fn(a,Rt,c,m,x)}var ye=et.find(m<0?-1:1);return(m<0?Tt:ne)&&(ye=vr(a,ye,m,ye.line==c.line?L:null)),ye?Fn(a,ye,c,m,x):null}}return c}function zi(a,c,v,m,x){var L=m||1,G=Fn(a,c,v,L,x)||!x&&Fn(a,c,v,L,!0)||Fn(a,c,v,-L,x)||!x&&Fn(a,c,v,-L,!0);return G||(a.cantEdit=!0,Ut(a.first,0))}function vr(a,c,v,m){return v<0&&c.ch==0?c.line>a.first?ve(a,Ut(c.line-1)):null:v>0&&c.ch==(m||zn(a,c.line)).text.length?c.line<a.first+a.size-1?Ut(c.line+1,0):null:new Ut(c.line,c.ch+v)}function ln(a){a.setSelection(Ut(a.firstLine(),0),Ut(a.lastLine()),oe)}function oi(a,c,v){var m={canceled:!1,from:c.from,to:c.to,text:c.text,origin:c.origin,cancel:function(){return m.canceled=!0}};return v&&(m.update=function(x,L,G,it){x&&(m.from=ve(a,x)),L&&(m.to=ve(a,L)),G&&(m.text=G),it!==void 0&&(m.origin=it)}),Ie(a,"beforeChange",a,m),a.cm&&Ie(a.cm,"beforeChange",a.cm,m),m.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:m.from,to:m.to,text:m.text,origin:m.origin}}function kr(a,c,v){if(a.cm){if(!a.cm.curOp)return bs(a.cm,kr)(a,c,v);if(a.cm.state.suppressEdits)return}if(!((je(a,"beforeChange")||a.cm&&je(a.cm,"beforeChange"))&&(c=oi(a,c,!0),!c))){var m=ir&&!v&&Le(a,c.from,c.to);if(m)for(var x=m.length-1;x>=0;--x)lo(a,{from:m[x].from,to:m[x].to,text:x?[""]:c.text,origin:c.origin});else lo(a,c)}}function lo(a,c){if(!(c.text.length==1&&c.text[0]==""&&Ye(c.from,c.to)==0)){var v=Mo(a,c);Ya(a,c,v,a.cm?a.cm.curOp.id:NaN),Pl(a,c,v,Hr(a,c));var m=[];mr(a,function(x,L){!L&&Q(m,x.history)==-1&&(Bu(x.history,c),m.push(x.history)),Pl(x,c,null,Hr(x,c))})}}function Bo(a,c,v){var m=a.cm&&a.cm.state.suppressEdits;if(!(m&&!v)){for(var x=a.history,L,G=a.sel,it=c=="undo"?x.done:x.undone,et=c=="undo"?x.undone:x.done,Tt=0;Tt<it.length&&(L=it[Tt],!(v?L.ranges&&!L.equals(a.sel):!L.ranges));Tt++);if(Tt!=it.length){for(x.lastOrigin=x.lastSelOrigin=null;;)if(L=it.pop(),L.ranges){if(sl(L,et),v&&!L.equals(a.sel)){g(a,L,{clearRedo:!1});return}G=L}else if(m){it.push(L);return}else break;var ne=[];sl(G,et),et.push({changes:ne,generation:x.generation}),x.generation=L.generation||++x.maxGeneration;for(var Rt=je(a,"beforeChange")||a.cm&&je(a.cm,"beforeChange"),Ae=function(In){var Un=L.changes[In];if(Un.origin=c,Rt&&!oi(a,Un,!1))return it.length=0,{};ne.push(Fa(a,Un));var ti=In?Mo(a,Un):un(it);Pl(a,Un,ti,Ka(a,Un)),!In&&a.cm&&a.cm.scrollIntoView({from:Un.from,to:Io(Un)});var ki=[];mr(a,function(fi,_i){!_i&&Q(ki,fi.history)==-1&&(Bu(fi.history,Un),ki.push(fi.history)),Pl(fi,Un,null,Ka(fi,Un))})},ye=L.changes.length-1;ye>=0;--ye){var Tn=Ae(ye);if(Tn)return Tn.v}}}}function bl(a,c){if(c!=0&&(a.first+=c,a.sel=new hi(Ln(a.sel.ranges,function(x){return new Hi(Ut(x.anchor.line+c,x.anchor.ch),Ut(x.head.line+c,x.head.ch))}),a.sel.primIndex),a.cm)){Wr(a.cm,a.first,a.first-c,c);for(var v=a.cm.display,m=v.viewFrom;m<v.viewTo;m++)gr(a.cm,m,"gutter")}}function Pl(a,c,v,m){if(a.cm&&!a.cm.curOp)return bs(a.cm,Pl)(a,c,v,m);if(c.to.line<a.first){bl(a,c.text.length-1-(c.to.line-c.from.line));return}if(!(c.from.line>a.lastLine())){if(c.from.line<a.first){var x=c.text.length-1-(a.first-c.from.line);bl(a,x),c={from:Ut(a.first,0),to:Ut(c.to.line+x,c.to.ch),text:[un(c.text)],origin:c.origin}}var L=a.lastLine();c.to.line>L&&(c={from:c.from,to:Ut(L,zn(a,L).text.length),text:[c.text[0]],origin:c.origin}),c.removed=Wi(a,c.from,c.to),v||(v=Mo(a,c)),a.cm?gu(a.cm,c,m):br(a,c,m),B(a,v,oe),a.cantEdit&&zi(a,Ut(a.firstLine(),0))&&(a.cantEdit=!1)}}function gu(a,c,v){var m=a.doc,x=a.display,L=c.from,G=c.to,it=!1,et=L.line;a.options.lineWrapping||(et=Et(He(zn(m,L.line))),m.iter(et,G.line+1,function(ye){if(ye==x.maxLine)return it=!0,!0})),m.sel.contains(c.from,c.to)>-1&&Cn(a),br(m,c,v,To(a)),a.options.lineWrapping||(m.iter(et,L.line+c.text.length,function(ye){var Tn=ar(ye);Tn>x.maxLineLength&&(x.maxLine=ye,x.maxLineLength=Tn,x.maxLineChanged=!0,it=!1)}),it&&(a.curOp.updateMaxLine=!0)),qi(m,L.line),fu(a,400);var Tt=c.text.length-(G.line-L.line)-1;c.full?Wr(a):L.line==G.line&&c.text.length==1&&!Uo(a.doc,c)?gr(a,L.line,"text"):Wr(a,L.line,G.line+1,Tt);var ne=je(a,"changes"),Rt=je(a,"change");if(Rt||ne){var Ae={from:L,to:G,text:c.text,removed:c.removed,origin:c.origin};Rt&&ii(a,"change",a,Ae),ne&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ae)}a.display.selForContextMenu=null}function ql(a,c,v,m,x){var L;m||(m=v),Ye(m,v)<0&&(L=[m,v],v=L[0],m=L[1]),typeof c=="string"&&(c=a.splitLines(c)),kr(a,{from:v,to:m,text:c,origin:x})}function wa(a,c,v,m){v<a.line?a.line+=m:c<a.line&&(a.line=c,a.ch=0)}function ll(a,c,v,m){for(var x=0;x<a.length;++x){var L=a[x],G=!0;if(L.ranges){L.copied||(L=a[x]=L.deepCopy(),L.copied=!0);for(var it=0;it<L.ranges.length;it++)wa(L.ranges[it].anchor,c,v,m),wa(L.ranges[it].head,c,v,m);continue}for(var et=0;et<L.changes.length;++et){var Tt=L.changes[et];if(v<Tt.from.line)Tt.from=Ut(Tt.from.line+m,Tt.from.ch),Tt.to=Ut(Tt.to.line+m,Tt.to.ch);else if(c<=Tt.to.line){G=!1;break}}G||(a.splice(0,x+1),x=0)}}function Bu(a,c){var v=c.from.line,m=c.to.line,x=c.text.length-(m-v)-1;ll(a.done,v,m,x),ll(a.undone,v,m,x)}function Za(a,c,v,m){var x=c,L=c;return typeof c=="number"?L=zn(a,En(a,c)):x=Et(c),x==null?null:(m(L,x)&&a.cm&&gr(a.cm,x,v),L)}function Ch(a){this.lines=a,this.parent=null;for(var c=0,v=0;v<a.length;++v)a[v].parent=this,c+=a[v].height;this.height=c}Ch.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,c){for(var v=a,m=a+c;v<m;++v){var x=this.lines[v];this.height-=x.height,Mr(x),ii(x,"delete")}this.lines.splice(a,c)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,c,v){this.height+=v,this.lines=this.lines.slice(0,a).concat(c).concat(this.lines.slice(a));for(var m=0;m<c.length;++m)c[m].parent=this},iterN:function(a,c,v){for(var m=a+c;a<m;++a)if(v(this.lines[a]))return!0}};function ms(a){this.children=a;for(var c=0,v=0,m=0;m<a.length;++m){var x=a[m];c+=x.chunkSize(),v+=x.height,x.parent=this}this.size=c,this.height=v,this.parent=null}ms.prototype={chunkSize:function(){return this.size},removeInner:function(a,c){this.size-=c;for(var v=0;v<this.children.length;++v){var m=this.children[v],x=m.chunkSize();if(a<x){var L=Math.min(c,x-a),G=m.height;if(m.removeInner(a,L),this.height-=G-m.height,x==L&&(this.children.splice(v--,1),m.parent=null),(c-=L)==0)break;a=0}else a-=x}if(this.size-c<25&&(this.children.length>1||!(this.children[0]instanceof Ch))){var it=[];this.collapse(it),this.children=[new Ch(it)],this.children[0].parent=this}},collapse:function(a){for(var c=0;c<this.children.length;++c)this.children[c].collapse(a)},insertInner:function(a,c,v){this.size+=c.length,this.height+=v;for(var m=0;m<this.children.length;++m){var x=this.children[m],L=x.chunkSize();if(a<=L){if(x.insertInner(a,c,v),x.lines&&x.lines.length>50){for(var G=x.lines.length%25+25,it=G;it<x.lines.length;){var et=new Ch(x.lines.slice(it,it+=25));x.height-=et.height,this.children.splice(++m,0,et),et.parent=this}x.lines=x.lines.slice(0,G),this.maybeSpill()}break}a-=L}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var c=a.children.splice(a.children.length-5,5),v=new ms(c);if(a.parent){a.size-=v.size,a.height-=v.height;var x=Q(a.parent.children,a);a.parent.children.splice(x+1,0,v)}else{var m=new ms(a.children);m.parent=a,a.children=[m,v],a=m}v.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,c,v){for(var m=0;m<this.children.length;++m){var x=this.children[m],L=x.chunkSize();if(a<L){var G=Math.min(c,L-a);if(x.iterN(a,G,v))return!0;if((c-=G)==0)break;a=0}else a-=L}}};var ic=function(a,c,v){if(v)for(var m in v)v.hasOwnProperty(m)&&(this[m]=v[m]);this.doc=a,this.node=c};ic.prototype.clear=function(){var a=this.doc.cm,c=this.line.widgets,v=this.line,m=Et(v);if(!(m==null||!c)){for(var x=0;x<c.length;++x)c[x]==this&&c.splice(x--,1);c.length||(v.widgets=null);var L=So(this);Nr(v,Math.max(0,v.height-L)),a&&(uo(a,function(){ng(a,v,-L),gr(a,m,"widget")}),ii(a,"lineWidgetCleared",a,this,m))}},ic.prototype.changed=function(){var a=this,c=this.height,v=this.doc.cm,m=this.line;this.height=null;var x=So(this)-c;x&&(Je(this.doc,m)||Nr(m,m.height+x),v&&uo(v,function(){v.curOp.forceUpdate=!0,ng(v,m,x),ii(v,"lineWidgetChanged",v,a,Et(m))}))},bt(ic);function ng(a,c,v){Ti(c)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&ku(a,v)}function Od(a,c,v,m){var x=new ic(a,v,m),L=a.cm;return L&&x.noHScroll&&(L.display.alignWidgets=!0),Za(a,c,"widget",function(G){var it=G.widgets||(G.widgets=[]);if(x.insertAt==null?it.push(x):it.splice(Math.min(it.length-1,Math.max(0,x.insertAt)),0,x),x.line=G,L&&!Je(a,G)){var et=Ti(G)<a.scrollTop;Nr(G,G.height+So(x)),et&&ku(L,x.height),L.curOp.forceUpdate=!0}return!0}),L&&ii(L,"lineWidgetAdded",L,x,typeof c=="number"?c:Et(c)),x}var ig=0,Kt=function(a,c){this.lines=[],this.type=c,this.doc=a,this.id=++ig};Kt.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,c=a&&!a.curOp;if(c&&ra(a),je(this,"clear")){var v=this.find();v&&ii(this,"clear",v.from,v.to)}for(var m=null,x=null,L=0;L<this.lines.length;++L){var G=this.lines[L],it=Ri(G.markedSpans,this);a&&!this.collapsed?gr(a,Et(G),"text"):a&&(it.to!=null&&(x=Et(G)),it.from!=null&&(m=Et(G))),G.markedSpans=gi(G.markedSpans,it),it.from==null&&this.collapsed&&!Je(this.doc,G)&&a&&Nr(G,ts(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var et=0;et<this.lines.length;++et){var Tt=He(this.lines[et]),ne=ar(Tt);ne>a.display.maxLineLength&&(a.display.maxLine=Tt,a.display.maxLineLength=ne,a.display.maxLineChanged=!0)}m!=null&&a&&this.collapsed&&Wr(a,m,x+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Se(a.doc)),a&&ii(a,"markerCleared",a,this,m,x),c&&Wa(a),this.parent&&this.parent.clear()}},Kt.prototype.find=function(a,c){a==null&&this.type=="bookmark"&&(a=1);for(var v,m,x=0;x<this.lines.length;++x){var L=this.lines[x],G=Ri(L.markedSpans,this);if(G.from!=null&&(v=Ut(c?L:Et(L),G.from),a==-1))return v;if(G.to!=null&&(m=Ut(c?L:Et(L),G.to),a==1))return m}return v&&{from:v,to:m}},Kt.prototype.changed=function(){var a=this,c=this.find(-1,!0),v=this,m=this.doc.cm;!c||!m||uo(m,function(){var x=c.line,L=Et(c.line),G=Hs(m,L);if(G&&(du(G),m.curOp.selectionChanged=m.curOp.forceUpdate=!0),m.curOp.updateMaxLine=!0,!Je(v.doc,x)&&v.height!=null){var it=v.height;v.height=null;var et=So(v)-it;et&&Nr(x,x.height+et)}ii(m,"markerChanged",m,a)})},Kt.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(!c.maybeHiddenMarkers||Q(c.maybeHiddenMarkers,this)==-1)&&(c.maybeUnhiddenMarkers||(c.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Kt.prototype.detachLine=function(a){if(this.lines.splice(Q(this.lines,a),1),!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(c.maybeHiddenMarkers||(c.maybeHiddenMarkers=[])).push(this)}},bt(Kt);function Kc(a,c,v,m,x){if(m&&m.shared)return rg(a,c,v,m,x);if(a.cm&&!a.cm.curOp)return bs(a.cm,Kc)(a,c,v,m,x);var L=new Kt(a,x),G=Ye(c,v);if(m&&pe(m,L,!1),G>0||G==0&&L.clearWhenEmpty!==!1)return L;if(L.replacedWith&&(L.collapsed=!0,L.widgetNode=At("span",[L.replacedWith],"CodeMirror-widget"),m.handleMouseEvents||L.widgetNode.setAttribute("cm-ignore-events","true"),m.insertLeft&&(L.widgetNode.insertLeft=!0)),L.collapsed){if(en(a,c.line,c,v,L)||c.line!=v.line&&en(a,v.line,c,v,L))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ce()}L.addToHistory&&Ya(a,{from:c,to:v,origin:"markText"},a.sel,NaN);var it=c.line,et=a.cm,Tt;if(a.iter(it,v.line+1,function(Rt){et&&L.collapsed&&!et.options.lineWrapping&&He(Rt)==et.display.maxLine&&(Tt=!0),L.collapsed&&it!=c.line&&Nr(Rt,0),pr(Rt,new Gn(L,it==c.line?c.ch:null,it==v.line?v.ch:null)),++it}),L.collapsed&&a.iter(c.line,v.line+1,function(Rt){Je(a,Rt)&&Nr(Rt,0)}),L.clearOnEnter&&zt(L,"beforeCursorEnter",function(){return L.clear()}),L.readOnly&&(cr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),L.collapsed&&(L.id=++ig,L.atomic=!0),et){if(Tt&&(et.curOp.updateMaxLine=!0),L.collapsed)Wr(et,c.line,v.line+1);else if(L.className||L.startStyle||L.endStyle||L.css||L.attributes||L.title)for(var ne=c.line;ne<=v.line;ne++)gr(et,ne,"text");L.atomic&&Se(et.doc),ii(et,"markerAdded",et,L)}return L}var Uu=function(a,c){this.markers=a,this.primary=c;for(var v=0;v<a.length;++v)a[v].parent=this};Uu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();ii(this,"clear")}},Uu.prototype.find=function(a,c){return this.primary.find(a,c)},bt(Uu);function rg(a,c,v,m,x){m=pe(m),m.shared=!1;var L=[Kc(a,c,v,m,x)],G=L[0],it=m.widgetNode;return mr(a,function(et){it&&(m.widgetNode=it.cloneNode(!0)),L.push(Kc(et,ve(et,c),ve(et,v),m,x));for(var Tt=0;Tt<et.linked.length;++Tt)if(et.linked[Tt].isParent)return;G=un(L)}),new Uu(L,G)}function Of(a){return a.findMarks(Ut(a.first,0),a.clipPos(Ut(a.lastLine())),function(c){return c.parent})}function og(a,c){for(var v=0;v<c.length;v++){var m=c[v],x=m.find(),L=a.clipPos(x.from),G=a.clipPos(x.to);if(Ye(L,G)){var it=Kc(a,L,G,m.primary,m.primary.type);m.markers.push(it),it.parent=m}}}function Df(a){for(var c=function(m){var x=a[m],L=[x.primary.doc];mr(x.primary.doc,function(et){return L.push(et)});for(var G=0;G<x.markers.length;G++){var it=x.markers[G];Q(L,it.doc)==-1&&(it.parent=null,x.markers.splice(G--,1))}},v=0;v<a.length;v++)c(v)}var u0=0,Ca=function(a,c,v,m,x){if(!(this instanceof Ca))return new Ca(a,c,v,m,x);v==null&&(v=0),ms.call(this,[new Ch([new Kr("",null)])]),this.first=v,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=v;var L=Ut(v,0);this.sel=Ao(L),this.history=new $s(null),this.id=++u0,this.modeOption=c,this.lineSep=m,this.direction=x=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),br(this,{from:L,to:L,text:a}),g(this,Ao(L),oe)};Ca.prototype=O(ms.prototype,{constructor:Ca,iter:function(a,c,v){v?this.iterN(a-this.first,c-a,v):this.iterN(this.first,this.first+this.size,a)},insert:function(a,c){for(var v=0,m=0;m<c.length;++m)v+=c[m].height;this.insertInner(a-this.first,c,v)},remove:function(a,c){this.removeInner(a-this.first,c)},getValue:function(a){var c=Ur(this,this.first,this.first+this.size);return a===!1?c:c.join(a||this.lineSeparator())},setValue:ks(function(a){var c=Ut(this.first,0),v=this.first+this.size-1;kr(this,{from:c,to:Ut(v,zn(this,v).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Pa(this.cm,0,0),g(this,Ao(c),oe)}),replaceRange:function(a,c,v,m){c=ve(this,c),v=v?ve(this,v):c,ql(this,a,c,v,m)},getRange:function(a,c,v){var m=Wi(this,ve(this,a),ve(this,c));return v===!1?m:m.join(v||this.lineSeparator())},getLine:function(a){var c=this.getLineHandle(a);return c&&c.text},getLineHandle:function(a){if(rn(this,a))return zn(this,a)},getLineNumber:function(a){return Et(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=zn(this,a)),He(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return ve(this,a)},getCursor:function(a){var c=this.sel.primary(),v;return a==null||a=="head"?v=c.head:a=="anchor"?v=c.anchor:a=="end"||a=="to"||a===!1?v=c.to():v=c.from(),v},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ks(function(a,c,v){pu(this,ve(this,typeof a=="number"?Ut(a,c||0):a),null,v)}),setSelection:ks(function(a,c,v){pu(this,ve(this,a),ve(this,c||a),v)}),extendSelection:ks(function(a,c,v){Jl(this,ve(this,a),c&&ve(this,c),v)}),extendSelections:ks(function(a,c){bc(this,Wn(this,a),c)}),extendSelectionsBy:ks(function(a,c){var v=Ln(this.sel.ranges,a);bc(this,Wn(this,v),c)}),setSelections:ks(function(a,c,v){if(a.length){for(var m=[],x=0;x<a.length;x++)m[x]=new Hi(ve(this,a[x].anchor),ve(this,a[x].head));c==null&&(c=Math.min(a.length-1,this.sel.primIndex)),g(this,Qi(this.cm,m,c),v)}}),addSelection:ks(function(a,c,v){var m=this.sel.ranges.slice(0);m.push(new Hi(ve(this,a),ve(this,c||a))),g(this,Qi(this.cm,m,m.length-1),v)}),getSelection:function(a){for(var c=this.sel.ranges,v,m=0;m<c.length;m++){var x=Wi(this,c[m].from(),c[m].to());v=v?v.concat(x):x}return a===!1?v:v.join(a||this.lineSeparator())},getSelections:function(a){for(var c=[],v=this.sel.ranges,m=0;m<v.length;m++){var x=Wi(this,v[m].from(),v[m].to());a!==!1&&(x=x.join(a||this.lineSeparator())),c[m]=x}return c},replaceSelection:function(a,c,v){for(var m=[],x=0;x<this.sel.ranges.length;x++)m[x]=a;this.replaceSelections(m,c,v||"+input")},replaceSelections:ks(function(a,c,v){for(var m=[],x=this.sel,L=0;L<x.ranges.length;L++){var G=x.ranges[L];m[L]={from:G.from(),to:G.to(),text:this.splitLines(a[L]),origin:v}}for(var it=c&&c!="end"&&bo(this,m,c),et=m.length-1;et>=0;et--)kr(this,m[et]);it?h(this,it):this.cm&&Da(this.cm)}),undo:ks(function(){Bo(this,"undo")}),redo:ks(function(){Bo(this,"redo")}),undoSelection:ks(function(){Bo(this,"undo",!0)}),redoSelection:ks(function(){Bo(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,c=0,v=0,m=0;m<a.done.length;m++)a.done[m].ranges||++c;for(var x=0;x<a.undone.length;x++)a.undone[x].ranges||++v;return{undo:c,redo:v}},clearHistory:function(){var a=this;this.history=new $s(this.history.maxGeneration),mr(this,function(c){return c.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Gs(this.history.done),undone:Gs(this.history.undone)}},setHistory:function(a){var c=this.history=new $s(this.history.maxGeneration);c.done=Gs(a.done.slice(0),null,!0),c.undone=Gs(a.undone.slice(0),null,!0)},setGutterMarker:ks(function(a,c,v){return Za(this,a,"gutter",function(m){var x=m.gutterMarkers||(m.gutterMarkers={});return x[c]=v,!v&&_(x)&&(m.gutterMarkers=null),!0})}),clearGutter:ks(function(a){var c=this;this.iter(function(v){v.gutterMarkers&&v.gutterMarkers[a]&&Za(c,v,"gutter",function(){return v.gutterMarkers[a]=null,_(v.gutterMarkers)&&(v.gutterMarkers=null),!0})})}),lineInfo:function(a){var c;if(typeof a=="number"){if(!rn(this,a)||(c=a,a=zn(this,a),!a))return null}else if(c=Et(a),c==null)return null;return{line:c,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:ks(function(a,c,v){return Za(this,a,c=="gutter"?"gutter":"class",function(m){var x=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass";if(!m[x])m[x]=v;else{if(q(v).test(m[x]))return!1;m[x]+=" "+v}return!0})}),removeLineClass:ks(function(a,c,v){return Za(this,a,c=="gutter"?"gutter":"class",function(m){var x=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass",L=m[x];if(L)if(v==null)m[x]=null;else{var G=L.match(q(v));if(!G)return!1;var it=G.index+G[0].length;m[x]=L.slice(0,G.index)+(!G.index||it==L.length?"":" ")+L.slice(it)||null}else return!1;return!0})}),addLineWidget:ks(function(a,c,v){return Od(this,a,c,v)}),removeLineWidget:function(a){a.clear()},markText:function(a,c,v){return Kc(this,ve(this,a),ve(this,c),v,v&&v.type||"range")},setBookmark:function(a,c){var v={replacedWith:c&&(c.nodeType==null?c.widget:c),insertLeft:c&&c.insertLeft,clearWhenEmpty:!1,shared:c&&c.shared,handleMouseEvents:c&&c.handleMouseEvents};return a=ve(this,a),Kc(this,a,a,v,"bookmark")},findMarksAt:function(a){a=ve(this,a);var c=[],v=zn(this,a.line).markedSpans;if(v)for(var m=0;m<v.length;++m){var x=v[m];(x.from==null||x.from<=a.ch)&&(x.to==null||x.to>=a.ch)&&c.push(x.marker.parent||x.marker)}return c},findMarks:function(a,c,v){a=ve(this,a),c=ve(this,c);var m=[],x=a.line;return this.iter(a.line,c.line+1,function(L){var G=L.markedSpans;if(G)for(var it=0;it<G.length;it++){var et=G[it];!(et.to!=null&&x==a.line&&a.ch>=et.to||et.from==null&&x!=a.line||et.from!=null&&x==c.line&&et.from>=c.ch)&&(!v||v(et.marker))&&m.push(et.marker.parent||et.marker)}++x}),m},getAllMarks:function(){var a=[];return this.iter(function(c){var v=c.markedSpans;if(v)for(var m=0;m<v.length;++m)v[m].from!=null&&a.push(v[m].marker)}),a},posFromIndex:function(a){var c,v=this.first,m=this.lineSeparator().length;return this.iter(function(x){var L=x.text.length+m;if(L>a)return c=a,!0;a-=L,++v}),ve(this,Ut(v,c))},indexFromPos:function(a){a=ve(this,a);var c=a.ch;if(a.line<this.first||a.ch<0)return 0;var v=this.lineSeparator().length;return this.iter(this.first,a.line,function(m){c+=m.text.length+v}),c},copy:function(a){var c=new Ca(Ur(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,a&&(c.history.undoDepth=this.history.undoDepth,c.setHistory(this.getHistory())),c},linkedDoc:function(a){a||(a={});var c=this.first,v=this.first+this.size;a.from!=null&&a.from>c&&(c=a.from),a.to!=null&&a.to<v&&(v=a.to);var m=new Ca(Ur(this,c,v),a.mode||this.modeOption,c,this.lineSep,this.direction);return a.sharedHist&&(m.history=this.history),(this.linked||(this.linked=[])).push({doc:m,sharedHist:a.sharedHist}),m.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],og(m,Of(this)),m},unlinkDoc:function(a){if(a instanceof vo&&(a=a.doc),this.linked)for(var c=0;c<this.linked.length;++c){var v=this.linked[c];if(v.doc==a){this.linked.splice(c,1),a.unlinkDoc(this),Df(Of(this));break}}if(a.history==this.history){var m=[a.id];mr(a,function(x){return m.push(x.id)},!0),a.history=new $s(null),a.history.done=Gs(this.history.done,m),a.history.undone=Gs(this.history.undone,m)}},iterLinkedDocs:function(a){mr(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Ei(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ks(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(c){return c.order=null}),this.cm&&Bs(this.cm))})}),Ca.prototype.eachLine=Ca.prototype.iter;var td=0;function Pf(a){var c=this;if(lg(c),!(ze(c,a)||xo(c.display,a))){hn(a),V&&(td=+new Date);var v=fs(c,a,!0),m=a.dataTransfer.files;if(!(!v||c.isReadOnly()))if(m&&m.length&&window.FileReader&&window.File)for(var x=m.length,L=Array(x),G=0,it=function(){++G==x&&bs(c,function(){v=ve(c.doc,v);var ye={from:v,to:v,text:c.doc.splitLines(L.filter(function(Tn){return Tn!=null}).join(c.doc.lineSeparator())),origin:"paste"};kr(c.doc,ye),h(c.doc,Ao(ve(c.doc,v),ve(c.doc,Io(ye))))})()},et=function(ye,Tn){if(c.options.allowDropFileTypes&&Q(c.options.allowDropFileTypes,ye.type)==-1){it();return}var In=new FileReader;In.onerror=function(){return it()},In.onload=function(){var Un=In.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Un)){it();return}L[Tn]=Un,it()},In.readAsText(ye)},Tt=0;Tt<m.length;Tt++)et(m[Tt],Tt);else{if(c.state.draggingText&&c.doc.sel.contains(v)>-1){c.state.draggingText(a),setTimeout(function(){return c.display.input.focus()},20);return}try{var ne=a.dataTransfer.getData("Text");if(ne){var Rt;if(c.state.draggingText&&!c.state.draggingText.copy&&(Rt=c.listSelections()),B(c.doc,Ao(v,v)),Rt)for(var Ae=0;Ae<Rt.length;++Ae)ql(c.doc,"",Rt[Ae].anchor,Rt[Ae].head,"drag");c.replaceSelection(ne,"around","paste"),c.display.input.focus()}}catch(ye){}}}}function sg(a,c){if(V&&(!a.state.draggingText||+new Date-td<100)){Hn(c);return}if(!(ze(a,c)||xo(a.display,c))&&(c.dataTransfer.setData("Text",a.getSelection()),c.dataTransfer.effectAllowed="copyMove",c.dataTransfer.setDragImage&&!Mt)){var v=Ht("img",null,null,"position: fixed; left: 0; top: 0;");v.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Y&&(v.width=v.height=1,a.display.wrapper.appendChild(v),v._top=v.offsetTop),c.dataTransfer.setDragImage(v,0,0),Y&&v.parentNode.removeChild(v)}}function ag(a,c){var v=fs(a,c);if(v){var m=document.createDocumentFragment();Qr(a,v,m),a.display.dragCursor||(a.display.dragCursor=Ht("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),pt(a.display.dragCursor,m)}}function lg(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function ug(a){if(document.getElementsByClassName){for(var c=document.getElementsByClassName("CodeMirror"),v=[],m=0;m<c.length;m++){var x=c[m].CodeMirror;x&&v.push(x)}v.length&&v[0].operation(function(){for(var L=0;L<v.length;L++)a(v[L])})}}var _f=!1;function _l(){_f||(kh(),_f=!0)}function kh(){var a;zt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,ug(Ff)},100))}),zt(window,"blur",function(){return ug(Zl)})}function Ff(a){var c=a.display;c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.scrollbarsClipped=!1,a.setSize()}for(var Hu={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"},ed=0;ed<10;ed++)Hu[ed+48]=Hu[ed+96]=String(ed);for(var Dd=65;Dd<=90;Dd++)Hu[Dd]=String.fromCharCode(Dd);for(var nd=1;nd<=12;nd++)Hu[nd+111]=Hu[nd+63235]="F"+nd;var El={};El.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},El.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},El.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},El.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},El.default=xt?El.macDefault:El.pcDefault;function Bf(a){var c=a.split(/-(?!$)/);a=c[c.length-1];for(var v,m,x,L,G=0;G<c.length-1;G++){var it=c[G];if(/^(cmd|meta|m)$/i.test(it))L=!0;else if(/^a(lt)?$/i.test(it))v=!0;else if(/^(c|ctrl|control)$/i.test(it))m=!0;else if(/^s(hift)?$/i.test(it))x=!0;else throw new Error("Unrecognized modifier name: "+it)}return v&&(a="Alt-"+a),m&&(a="Ctrl-"+a),L&&(a="Cmd-"+a),x&&(a="Shift-"+a),a}function Uf(a){var c={};for(var v in a)if(a.hasOwnProperty(v)){var m=a[v];if(/^(name|fallthrough|(de|at)tach)$/.test(v))continue;if(m=="..."){delete a[v];continue}for(var x=Ln(v.split(" "),Bf),L=0;L<x.length;L++){var G=void 0,it=void 0;L==x.length-1?(it=x.join(" "),G=m):(it=x.slice(0,L+1).join(" "),G="...");var et=c[it];if(!et)c[it]=G;else if(et!=G)throw new Error("Inconsistent bindings for "+it)}delete a[v]}for(var Tt in c)a[Tt]=c[Tt];return a}function tu(a,c,v,m){c=Zc(c);var x=c.call?c.call(a,m):c[a];if(x===!1)return"nothing";if(x==="...")return"multi";if(x!=null&&v(x))return"handled";if(c.fallthrough){if(Object.prototype.toString.call(c.fallthrough)!="[object Array]")return tu(a,c.fallthrough,v,m);for(var L=0;L<c.fallthrough.length;L++){var G=tu(a,c.fallthrough[L],v,m);if(G)return G}}}function Nh(a){var c=typeof a=="string"?a:Hu[a.keyCode];return c=="Ctrl"||c=="Alt"||c=="Shift"||c=="Mod"}function Hf(a,c,v){var m=a;return c.altKey&&m!="Alt"&&(a="Alt-"+a),(ot?c.metaKey:c.ctrlKey)&&m!="Ctrl"&&(a="Ctrl-"+a),(ot?c.ctrlKey:c.metaKey)&&m!="Mod"&&(a="Cmd-"+a),!v&&c.shiftKey&&m!="Shift"&&(a="Shift-"+a),a}function cg(a,c){if(Y&&a.keyCode==34&&a.char)return!1;var v=Hu[a.keyCode];return v==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(v=a.code),Hf(v,a,c))}function Zc(a){return typeof a=="string"?El[a]:a}function Sl(a,c){for(var v=a.doc.sel.ranges,m=[],x=0;x<v.length;x++){for(var L=c(v[x]);m.length&&Ye(L.from,un(m).to)<=0;){var G=m.pop();if(Ye(G.from,L.from)<0){L.from=G.from;break}}m.push(L)}uo(a,function(){for(var it=m.length-1;it>=0;it--)ql(a.doc,"",m[it].from,m[it].to,"+delete");Da(a)})}function zf(a,c,v){var m=Ve(a.text,c+v,v);return m<0||m>a.text.length?null:m}function Ds(a,c,v){var m=zf(a,c.ch,v);return m==null?null:new Ut(c.line,m,v<0?"after":"before")}function id(a,c,v,m,x){if(a){c.doc.direction=="rtl"&&(x=-x);var L=$e(v,c.doc.direction);if(L){var G=x<0?un(L):L[0],it=x<0==(G.level==1),et=it?"after":"before",Tt;if(G.level>0||c.doc.direction=="rtl"){var ne=na(c,v);Tt=x<0?v.text.length-1:0;var Rt=zs(c,ne,Tt).top;Tt=Ke(function(Ae){return zs(c,ne,Ae).top==Rt},x<0==(G.level==1)?G.from:G.to-1,Tt),et=="before"&&(Tt=zf(v,Tt,1))}else Tt=x<0?G.to:G.from;return new Ut(m,Tt,et)}}return new Ut(m,x<0?v.text.length:0,x<0?"before":"after")}function Pd(a,c,v,m){var x=$e(c,a.doc.direction);if(!x)return Ds(c,v,m);v.ch>=c.text.length?(v.ch=c.text.length,v.sticky="before"):v.ch<=0&&(v.ch=0,v.sticky="after");var L=de(x,v.ch,v.sticky),G=x[L];if(a.doc.direction=="ltr"&&G.level%2==0&&(m>0?G.to>v.ch:G.from<v.ch))return Ds(c,v,m);var it=function(ti,ki){return zf(c,ti instanceof Ut?ti.ch:ti,ki)},et,Tt=function(ti){return a.options.lineWrapping?(et=et||na(a,c),qo(a,c,et,ti)):{begin:0,end:c.text.length}},ne=Tt(v.sticky=="before"?it(v,-1):v.ch);if(a.doc.direction=="rtl"||G.level==1){var Rt=G.level==1==m<0,Ae=it(v,Rt?1:-1);if(Ae!=null&&(Rt?Ae<=G.to&&Ae<=ne.end:Ae>=G.from&&Ae>=ne.begin)){var ye=Rt?"before":"after";return new Ut(v.line,Ae,ye)}}var Tn=function(ti,ki,fi){for(var _i=function(rs,Js){return Js?new Ut(v.line,it(rs,1),"before"):new Ut(v.line,rs,"after")};ti>=0&&ti<x.length;ti+=ki){var yr=x[ti],di=ki>0==(yr.level!=1),qr=di?fi.begin:it(fi.end,-1);if(yr.from<=qr&&qr<yr.to||(qr=di?yr.from:it(yr.to,-1),fi.begin<=qr&&qr<fi.end))return _i(qr,di)}},In=Tn(L+m,m,ne);if(In)return In;var Un=m>0?ne.end:it(ne.begin,-1);return Un!=null&&!(m>0&&Un==c.text.length)&&(In=Tn(m>0?0:x.length-1,m,Tt(Un)),In)?In:null}var Ec={selectAll:ln,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),oe)},killLine:function(a){return Sl(a,function(c){if(c.empty()){var v=zn(a.doc,c.head.line).text.length;return c.head.ch==v&&c.head.line<a.lastLine()?{from:c.head,to:Ut(c.head.line+1,0)}:{from:c.head,to:Ut(c.head.line,v)}}else return{from:c.from(),to:c.to()}})},deleteLine:function(a){return Sl(a,function(c){return{from:Ut(c.from().line,0),to:ve(a.doc,Ut(c.to().line+1,0))}})},delLineLeft:function(a){return Sl(a,function(c){return{from:Ut(c.from().line,0),to:c.from()}})},delWrappedLineLeft:function(a){return Sl(a,function(c){var v=a.charCoords(c.head,"div").top+5,m=a.coordsChar({left:0,top:v},"div");return{from:m,to:c.from()}})},delWrappedLineRight:function(a){return Sl(a,function(c){var v=a.charCoords(c.head,"div").top+5,m=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:v},"div");return{from:c.from(),to:m}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Ut(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ut(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(c){return Ah(a,c.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(c){return jf(a,c.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(c){return Ih(a,c.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(c){var v=a.cursorCoords(c.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:v},"div")},Ze)},goLineLeft:function(a){return a.extendSelectionsBy(function(c){var v=a.cursorCoords(c.head,"div").top+5;return a.coordsChar({left:0,top:v},"div")},Ze)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(c){var v=a.cursorCoords(c.head,"div").top+5,m=a.coordsChar({left:0,top:v},"div");return m.ch<a.getLine(m.line).search(/\S/)?jf(a,c.head):m},Ze)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var c=[],v=a.listSelections(),m=a.options.tabSize,x=0;x<v.length;x++){var L=v[x].from(),G=Dt(a.getLine(L.line),L.ch,m);c.push(on(m-G%m))}a.replaceSelections(c)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return uo(a,function(){for(var c=a.listSelections(),v=[],m=0;m<c.length;m++)if(c[m].empty()){var x=c[m].head,L=zn(a.doc,x.line).text;if(L){if(x.ch==L.length&&(x=new Ut(x.line,x.ch-1)),x.ch>0)x=new Ut(x.line,x.ch+1),a.replaceRange(L.charAt(x.ch-1)+L.charAt(x.ch-2),Ut(x.line,x.ch-2),x,"+transpose");else if(x.line>a.doc.first){var G=zn(a.doc,x.line-1).text;G&&(x=new Ut(x.line,1),a.replaceRange(L.charAt(0)+a.doc.lineSeparator()+G.charAt(G.length-1),Ut(x.line-1,G.length-1),x,"+transpose"))}}v.push(new Hi(x,x))}a.setSelections(v)})},newlineAndIndent:function(a){return uo(a,function(){for(var c=a.listSelections(),v=c.length-1;v>=0;v--)a.replaceRange(a.doc.lineSeparator(),c[v].anchor,c[v].head,"+input");c=a.listSelections();for(var m=0;m<c.length;m++)a.indentLine(c[m].from().line,null,!0);Da(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Ah(a,c){var v=zn(a.doc,c),m=He(v);return m!=v&&(c=Et(m)),id(!0,a,m,c,1)}function Ih(a,c){var v=zn(a.doc,c),m=nn(v);return m!=v&&(c=Et(m)),id(!0,a,v,c,-1)}function jf(a,c){var v=Ah(a,c.line),m=zn(a.doc,v.line),x=$e(m,a.doc.direction);if(!x||x[0].level==0){var L=Math.max(v.ch,m.text.search(/\S/)),G=c.line==v.line&&c.ch<=L&&c.ch;return Ut(v.line,G?0:L,v.sticky)}return v}function Lh(a,c,v){if(typeof c=="string"&&(c=Ec[c],!c))return!1;a.display.input.ensurePolled();var m=a.display.shift,x=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),v&&(a.display.shift=!1),x=c(a)!=ce}finally{a.display.shift=m,a.state.suppressEdits=!1}return x}function Gf(a,c,v){for(var m=0;m<a.state.keyMaps.length;m++){var x=tu(c,a.state.keyMaps[m],v,a);if(x)return x}return a.options.extraKeys&&tu(c,a.options.extraKeys,v,a)||tu(c,a.options.keyMap,v,a)}var zu=new rt;function $c(a,c,v,m){var x=a.state.keySeq;if(x){if(Nh(c))return"handled";if(/\'$/.test(c)?a.state.keySeq=null:zu.set(50,function(){a.state.keySeq==x&&(a.state.keySeq=null,a.display.input.reset())}),_d(a,x+" "+c,v,m))return!0}return _d(a,c,v,m)}function _d(a,c,v,m){var x=Gf(a,c,m);return x=="multi"&&(a.state.keySeq=c),x=="handled"&&ii(a,"keyHandled",a,c,v),(x=="handled"||x=="multi")&&(hn(v),ao(a)),!!x}function Fd(a,c){var v=cg(c,!0);return v?c.shiftKey&&!a.state.keySeq?$c(a,"Shift-"+v,c,function(m){return Lh(a,m,!0)})||$c(a,v,c,function(m){if(typeof m=="string"?/^go[A-Z]/.test(m):m.motion)return Lh(a,m)}):$c(a,v,c,function(m){return Lh(a,m)}):!1}function Bd(a,c,v){return $c(a,"'"+v+"'",c,function(m){return Lh(a,m,!0)})}var Xc=null;function Vf(a){var c=this;if(!(a.target&&a.target!=c.display.input.getField())&&(c.curOp.focus=kt(),!ze(c,a))){V&&C<11&&a.keyCode==27&&(a.returnValue=!1);var v=a.keyCode;c.display.shift=v==16||a.shiftKey;var m=Fd(c,a);Y&&(Xc=m?v:null,!m&&v==88&&!Pn&&(xt?a.metaKey:a.ctrlKey)&&c.replaceSelection("",null,"cut")),E&&!xt&&!m&&v==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),v==18&&!/\bCodeMirror-crosshair\b/.test(c.display.lineDiv.className)&&Wf(c)}}function Wf(a){var c=a.display.lineDiv;Gt(c,"CodeMirror-crosshair");function v(m){(m.keyCode==18||!m.altKey)&&(wt(c,"CodeMirror-crosshair"),Ge(document,"keyup",v),Ge(document,"mouseover",v))}zt(document,"keyup",v),zt(document,"mouseover",v)}function Yf(a){a.keyCode==16&&(this.doc.sel.shift=!1),ze(this,a)}function Nu(a){var c=this;if(!(a.target&&a.target!=c.display.input.getField())&&!(xo(c.display,a)||ze(c,a)||a.ctrlKey&&!a.altKey||xt&&a.metaKey)){var v=a.keyCode,m=a.charCode;if(Y&&v==Xc){Xc=null,hn(a);return}if(!(Y&&(!a.which||a.which<10)&&Fd(c,a))){var x=String.fromCharCode(m==null?v:m);x!="\b"&&(Bd(c,a,x)||c.display.input.onKeyPress(a))}}}var hg=400,Kf=function(a,c,v){this.time=a,this.pos=c,this.button=v};Kf.prototype.compare=function(a,c,v){return this.time+hg>a&&Ye(c,this.pos)==0&&v==this.button};var Rh,Qc;function Zf(a,c){var v=+new Date;return Qc&&Qc.compare(v,a,c)?(Rh=Qc=null,"triple"):Rh&&Rh.compare(v,a,c)?(Qc=new Kf(v,a,c),Rh=null,"double"):(Rh=new Kf(v,a,c),Qc=null,"single")}function Au(a){var c=this,v=c.display;if(!(ze(c,a)||v.activeTouch&&v.input.supportsTouch())){if(v.input.ensurePolled(),v.shift=a.shiftKey,xo(v,a)){Z||(v.scroller.draggable=!1,setTimeout(function(){return v.scroller.draggable=!0},100));return}if(!zd(c,a)){var m=fs(c,a),x=Qn(a),L=m?Zf(m,x):"single";window.focus(),x==1&&c.state.selectingText&&c.state.selectingText(a),!(m&&$f(c,x,m,L,a))&&(x==1?m?dg(c,m,L,a):ri(a)==v.scroller&&hn(a):x==2?(m&&Jl(c.doc,m),setTimeout(function(){return v.input.focus()},20)):x==3&&(st?c.display.input.onContextMenu(a):wo(c)))}}}function $f(a,c,v,m,x){var L="Click";return m=="double"?L="Double"+L:m=="triple"&&(L="Triple"+L),L=(c==1?"Left":c==2?"Middle":"Right")+L,$c(a,Hf(L,x),x,function(G){if(typeof G=="string"&&(G=Ec[G]),!G)return!1;var it=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),it=G(a,v)!=ce}finally{a.state.suppressEdits=!1}return it})}function Ud(a,c,v){var m=a.getOption("configureMouse"),x=m?m(a,c,v):{};if(x.unit==null){var L=St?v.shiftKey&&v.metaKey:v.altKey;x.unit=L?"rectangle":c=="single"?"char":c=="double"?"word":"line"}return(x.extend==null||a.doc.extend)&&(x.extend=a.doc.extend||v.shiftKey),x.addNew==null&&(x.addNew=xt?v.metaKey:v.ctrlKey),x.moveOnDrag==null&&(x.moveOnDrag=!(xt?v.altKey:v.ctrlKey)),x}function dg(a,c,v,m){V?setTimeout(re(ho,a),0):a.curOp.focus=kt();var x=Ud(a,v,m),L=a.doc.sel,G;a.options.dragDrop&&we&&!a.isReadOnly()&&v=="single"&&(G=L.contains(c))>-1&&(Ye((G=L.ranges[G]).from(),c)<0||c.xRel>0)&&(Ye(G.to(),c)>0||c.xRel<0)?Xf(a,m,c,x):c0(a,m,c,x)}function Xf(a,c,v,m){var x=a.display,L=!1,G=bs(a,function(Tt){Z&&(x.scroller.draggable=!1),a.state.draggingText=!1,Ge(x.wrapper.ownerDocument,"mouseup",G),Ge(x.wrapper.ownerDocument,"mousemove",it),Ge(x.scroller,"dragstart",et),Ge(x.scroller,"drop",G),L||(hn(Tt),m.addNew||Jl(a.doc,v,null,null,m.extend),Z&&!Mt||V&&C==9?setTimeout(function(){x.wrapper.ownerDocument.body.focus({preventScroll:!0}),x.input.focus()},20):x.input.focus())}),it=function(Tt){L=L||Math.abs(c.clientX-Tt.clientX)+Math.abs(c.clientY-Tt.clientY)>=10},et=function(){return L=!0};Z&&(x.scroller.draggable=!0),a.state.draggingText=G,G.copy=!m.moveOnDrag,x.scroller.dragDrop&&x.scroller.dragDrop(),zt(x.wrapper.ownerDocument,"mouseup",G),zt(x.wrapper.ownerDocument,"mousemove",it),zt(x.scroller,"dragstart",et),zt(x.scroller,"drop",G),wo(a),setTimeout(function(){return x.input.focus()},20)}function Qf(a,c,v){if(v=="char")return new Hi(c,c);if(v=="word")return a.findWordAt(c);if(v=="line")return new Hi(Ut(c.line,0),ve(a.doc,Ut(c.line+1,0)));var m=v(a,c);return new Hi(m.from,m.to)}function c0(a,c,v,m){var x=a.display,L=a.doc;hn(c);var G,it,et=L.sel,Tt=et.ranges;if(m.addNew&&!m.extend?(it=L.sel.contains(v),it>-1?G=Tt[it]:G=new Hi(v,v)):(G=L.sel.primary(),it=L.sel.primIndex),m.unit=="rectangle")m.addNew||(G=new Hi(v,v)),v=fs(a,c,!0,!0),it=-1;else{var ne=Qf(a,v,m.unit);m.extend?G=Dl(G,ne.anchor,ne.head,m.extend):G=ne}m.addNew?it==-1?(it=Tt.length,g(L,Qi(a,Tt.concat([G]),it),{scroll:!1,origin:"*mouse"})):Tt.length>1&&Tt[it].empty()&&m.unit=="char"&&!m.extend?(g(L,Qi(a,Tt.slice(0,it).concat(Tt.slice(it+1)),0),{scroll:!1,origin:"*mouse"}),et=L.sel):al(L,it,G,pn):(it=0,g(L,new hi([G],0),pn),et=L.sel);var Rt=v;function Ae(fi){if(Ye(Rt,fi)!=0)if(Rt=fi,m.unit=="rectangle"){for(var _i=[],yr=a.options.tabSize,di=Dt(zn(L,v.line).text,v.ch,yr),qr=Dt(zn(L,fi.line).text,fi.ch,yr),rs=Math.min(di,qr),Js=Math.max(di,qr),vs=Math.min(v.line,fi.line),cl=Math.min(a.lastLine(),Math.max(v.line,fi.line));vs<=cl;vs++){var Ba=zn(L,vs).text,Ws=Nn(Ba,rs,yr);rs==Js?_i.push(new Hi(Ut(vs,Ws),Ut(vs,Ws))):Ba.length>Ws&&_i.push(new Hi(Ut(vs,Ws),Ut(vs,Nn(Ba,Js,yr))))}_i.length||_i.push(new Hi(v,v)),g(L,Qi(a,et.ranges.slice(0,it).concat(_i),it),{origin:"*mouse",scroll:!1}),a.scrollIntoView(fi)}else{var Tl=G,ka=Qf(a,fi,m.unit),Ys=Tl.anchor,yo;Ye(ka.anchor,Ys)>0?(yo=ka.head,Ys=bn(Tl.from(),ka.anchor)):(yo=ka.anchor,Ys=R(Tl.to(),ka.head));var Es=et.ranges.slice(0);Es[it]=fg(a,new Hi(ve(L,Ys),yo)),g(L,Qi(a,Es,it),pn)}}var ye=x.wrapper.getBoundingClientRect(),Tn=0;function In(fi){var _i=++Tn,yr=fs(a,fi,!0,m.unit=="rectangle");if(yr)if(Ye(yr,Rt)!=0){a.curOp.focus=kt(),Ae(yr);var di=Dr(x,L);(yr.line>=di.to||yr.line<di.from)&&setTimeout(bs(a,function(){Tn==_i&&In(fi)}),150)}else{var qr=fi.clientY<ye.top?-20:fi.clientY>ye.bottom?20:0;qr&&setTimeout(bs(a,function(){Tn==_i&&(x.scroller.scrollTop+=qr,In(fi))}),50)}}function Un(fi){a.state.selectingText=!1,Tn=1/0,fi&&(hn(fi),x.input.focus()),Ge(x.wrapper.ownerDocument,"mousemove",ti),Ge(x.wrapper.ownerDocument,"mouseup",ki),L.history.lastSelOrigin=null}var ti=bs(a,function(fi){fi.buttons===0||!Qn(fi)?Un(fi):In(fi)}),ki=bs(a,Un);a.state.selectingText=ki,zt(x.wrapper.ownerDocument,"mousemove",ti),zt(x.wrapper.ownerDocument,"mouseup",ki)}function fg(a,c){var v=c.anchor,m=c.head,x=zn(a.doc,v.line);if(Ye(v,m)==0&&v.sticky==m.sticky)return c;var L=$e(x);if(!L)return c;var G=de(L,v.ch,v.sticky),it=L[G];if(it.from!=v.ch&&it.to!=v.ch)return c;var et=G+(it.from==v.ch==(it.level!=1)?0:1);if(et==0||et==L.length)return c;var Tt;if(m.line!=v.line)Tt=(m.line-v.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var ne=de(L,m.ch,m.sticky),Rt=ne-G||(m.ch-v.ch)*(it.level==1?-1:1);ne==et-1||ne==et?Tt=Rt<0:Tt=Rt>0}var Ae=L[et+(Tt?-1:0)],ye=Tt==(Ae.level==1),Tn=ye?Ae.from:Ae.to,In=ye?"after":"before";return v.ch==Tn&&v.sticky==In?c:new Hi(new Ut(v.line,Tn,In),m)}function Hd(a,c,v,m){var x,L;if(c.touches)x=c.touches[0].clientX,L=c.touches[0].clientY;else try{x=c.clientX,L=c.clientY}catch(Ae){return!1}if(x>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;m&&hn(c);var G=a.display,it=G.lineDiv.getBoundingClientRect();if(L>it.bottom||!je(a,v))return Jt(c);L-=it.top-G.viewOffset;for(var et=0;et<a.display.gutterSpecs.length;++et){var Tt=G.gutters.childNodes[et];if(Tt&&Tt.getBoundingClientRect().right>=x){var ne=Wt(a.doc,L),Rt=a.display.gutterSpecs[et];return Ie(a,v,a,ne,Rt.className,c),Jt(c)}}}function zd(a,c){return Hd(a,c,"gutterClick",!0)}function jd(a,c){xo(a.display,c)||pg(a,c)||ze(a,c,"contextmenu")||st||a.display.input.onContextMenu(c)}function pg(a,c){return je(a,"gutterContextMenu")?Hd(a,c,"gutterContextMenu",!1):!1}function Gd(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ml(a)}var Sc={toString:function(){return"CodeMirror.Init"}},Jf={},rd={};function gg(a){var c=a.optionHandlers;function v(m,x,L,G){a.defaults[m]=x,L&&(c[m]=G?function(it,et,Tt){Tt!=Sc&&L(it,et,Tt)}:L)}a.defineOption=v,a.Init=Sc,v("value","",function(m,x){return m.setValue(x)},!0),v("mode",null,function(m,x){m.doc.modeOption=x,Di(m)},!0),v("indentUnit",2,Di,!0),v("indentWithTabs",!1),v("smartIndent",!0),v("tabSize",4,function(m){sa(m),Ml(m),Wr(m)},!0),v("lineSeparator",null,function(m,x){if(m.doc.lineSep=x,!!x){var L=[],G=m.doc.first;m.doc.iter(function(et){for(var Tt=0;;){var ne=et.text.indexOf(x,Tt);if(ne==-1)break;Tt=ne+x.length,L.push(Ut(G,ne))}G++});for(var it=L.length-1;it>=0;it--)ql(m.doc,x,L[it],Ut(L[it].line,L[it].ch+x.length))}}),v("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(m,x,L){m.state.specialChars=new RegExp(x.source+(x.test(" ")?"":"| "),"g"),L!=Sc&&m.refresh()}),v("specialCharPlaceholder",rr,function(m){return m.refresh()},!0),v("electricChars",!0),v("inputStyle",Ct?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),v("spellcheck",!1,function(m,x){return m.getInputField().spellcheck=x},!0),v("autocorrect",!1,function(m,x){return m.getInputField().autocorrect=x},!0),v("autocapitalize",!1,function(m,x){return m.getInputField().autocapitalize=x},!0),v("rtlMoveVisually",!ft),v("wholeLineUpdateBefore",!0),v("theme","default",function(m){Gd(m),ae(m)},!0),v("keyMap","default",function(m,x,L){var G=Zc(x),it=L!=Sc&&Zc(L);it&&it.detach&&it.detach(m,G),G.attach&&G.attach(m,it||null)}),v("extraKeys",null),v("configureMouse",null),v("lineWrapping",!1,mg,!0),v("gutters",[],function(m,x){m.display.gutterSpecs=be(x,m.options.lineNumbers),ae(m)},!0),v("fixedGutter",!0,function(m,x){m.display.gutters.style.left=x?Kl(m.display)+"px":"0",m.refresh()},!0),v("coverGutterNextToScrollbar",!1,function(m){return gs(m)},!0),v("scrollbarStyle","native",function(m){Sa(m),gs(m),m.display.scrollbars.setScrollTop(m.doc.scrollTop),m.display.scrollbars.setScrollLeft(m.doc.scrollLeft)},!0),v("lineNumbers",!1,function(m,x){m.display.gutterSpecs=be(m.options.gutters,x),ae(m)},!0),v("firstLineNumber",1,ae,!0),v("lineNumberFormatter",function(m){return m},ae,!0),v("showCursorWhenSelecting",!1,es,!0),v("resetSelectionOnContextMenu",!0),v("lineWiseCopyCut",!0),v("pasteLinesPerSelection",!0),v("selectionsMayTouch",!1),v("readOnly",!1,function(m,x){x=="nocursor"&&(Zl(m),m.display.input.blur()),m.display.input.readOnlyChanged(x)}),v("screenReaderLabel",null,function(m,x){x=x===""?null:x,m.display.input.screenReaderLabelChanged(x)}),v("disableInput",!1,function(m,x){x||m.display.input.reset()},!0),v("dragDrop",!0,Vd),v("allowDropFileTypes",null),v("cursorBlinkRate",530),v("cursorScrollMargin",0),v("cursorHeight",1,es,!0),v("singleCursorHeightPerLine",!0,es,!0),v("workTime",100),v("workDelay",100),v("flattenSpans",!0,sa,!0),v("addModeClass",!1,sa,!0),v("pollInterval",100),v("undoDepth",200,function(m,x){return m.doc.history.undoDepth=x}),v("historyEventDelay",1250),v("viewportMargin",10,function(m){return m.refresh()},!0),v("maxHighlightLength",1e4,sa,!0),v("moveInputWithCursor",!0,function(m,x){x||m.display.input.resetPosition()}),v("tabindex",null,function(m,x){return m.display.input.getField().tabIndex=x||""}),v("autofocus",null),v("direction","ltr",function(m,x){return m.doc.setDirection(x)},!0),v("phrases",null)}function Vd(a,c,v){var m=v&&v!=Sc;if(!c!=!m){var x=a.display.dragFunctions,L=c?zt:Ge;L(a.display.scroller,"dragstart",x.start),L(a.display.scroller,"dragenter",x.enter),L(a.display.scroller,"dragover",x.over),L(a.display.scroller,"dragleave",x.leave),L(a.display.scroller,"drop",x.drop)}}function mg(a){a.options.lineWrapping?(Gt(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(wt(a.display.wrapper,"CodeMirror-wrap"),bi(a)),Oi(a),Wr(a),Ml(a),setTimeout(function(){return gs(a)},100)}function vo(a,c){var v=this;if(!(this instanceof vo))return new vo(a,c);this.options=c=c?pe(c):{},pe(Jf,c,!1);var m=c.value;typeof m=="string"?m=new Ca(m,c.mode,null,c.lineSeparator,c.direction):c.mode&&(m.modeOption=c.mode),this.doc=m;var x=new vo.inputStyles[c.inputStyle](this),L=this.display=new We(a,m,x,c);L.wrapper.CodeMirror=this,Gd(this),c.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Sa(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 rt,keySeq:null,specialChars:null},c.autofocus&&!Ct&&L.input.focus(),V&&C<11&&setTimeout(function(){return v.display.input.reset(!0)},20),Mh(this),_l(),ra(this),this.curOp.forceUpdate=!0,ro(this,m),c.autofocus&&!Ct||this.hasFocus()?setTimeout(function(){v.hasFocus()&&!v.state.focused&&Tr(v)},20):Zl(this);for(var G in rd)rd.hasOwnProperty(G)&&rd[G](this,c[G],Sc);Vt(this),c.finishInit&&c.finishInit(this);for(var it=0;it<Jc.length;++it)Jc[it](this);Wa(this),Z&&c.lineWrapping&&getComputedStyle(L.lineDiv).textRendering=="optimizelegibility"&&(L.lineDiv.style.textRendering="auto")}vo.defaults=Jf,vo.optionHandlers=rd;function Mh(a){var c=a.display;zt(c.scroller,"mousedown",bs(a,Au)),V&&C<11?zt(c.scroller,"dblclick",bs(a,function(et){if(!ze(a,et)){var Tt=fs(a,et);if(!(!Tt||zd(a,et)||xo(a.display,et))){hn(et);var ne=a.findWordAt(Tt);Jl(a.doc,ne.anchor,ne.head)}}})):zt(c.scroller,"dblclick",function(et){return ze(a,et)||hn(et)}),zt(c.scroller,"contextmenu",function(et){return jd(a,et)}),zt(c.input.getField(),"contextmenu",function(et){c.scroller.contains(et.target)||jd(a,et)});var v,m={end:0};function x(){c.activeTouch&&(v=setTimeout(function(){return c.activeTouch=null},1e3),m=c.activeTouch,m.end=+new Date)}function L(et){if(et.touches.length!=1)return!1;var Tt=et.touches[0];return Tt.radiusX<=1&&Tt.radiusY<=1}function G(et,Tt){if(Tt.left==null)return!0;var ne=Tt.left-et.left,Rt=Tt.top-et.top;return ne*ne+Rt*Rt>20*20}zt(c.scroller,"touchstart",function(et){if(!ze(a,et)&&!L(et)&&!zd(a,et)){c.input.ensurePolled(),clearTimeout(v);var Tt=+new Date;c.activeTouch={start:Tt,moved:!1,prev:Tt-m.end<=300?m:null},et.touches.length==1&&(c.activeTouch.left=et.touches[0].pageX,c.activeTouch.top=et.touches[0].pageY)}}),zt(c.scroller,"touchmove",function(){c.activeTouch&&(c.activeTouch.moved=!0)}),zt(c.scroller,"touchend",function(et){var Tt=c.activeTouch;if(Tt&&!xo(c,et)&&Tt.left!=null&&!Tt.moved&&new Date-Tt.start<300){var ne=a.coordsChar(c.activeTouch,"page"),Rt;!Tt.prev||G(Tt,Tt.prev)?Rt=new Hi(ne,ne):!Tt.prev.prev||G(Tt,Tt.prev.prev)?Rt=a.findWordAt(ne):Rt=new Hi(Ut(ne.line,0),ve(a.doc,Ut(ne.line+1,0))),a.setSelection(Rt.anchor,Rt.head),a.focus(),hn(et)}x()}),zt(c.scroller,"touchcancel",x),zt(c.scroller,"scroll",function(){c.scroller.clientHeight&&(_a(a,c.scroller.scrollTop),Va(a,c.scroller.scrollLeft,!0),Ie(a,"scroll",a))}),zt(c.scroller,"mousewheel",function(et){return Cr(a,et)}),zt(c.scroller,"DOMMouseScroll",function(et){return Cr(a,et)}),zt(c.wrapper,"scroll",function(){return c.wrapper.scrollTop=c.wrapper.scrollLeft=0}),c.dragFunctions={enter:function(et){ze(a,et)||Hn(et)},over:function(et){ze(a,et)||(ag(a,et),Hn(et))},start:function(et){return sg(a,et)},drop:bs(a,Pf),leave:function(et){ze(a,et)||lg(a)}};var it=c.input.getField();zt(it,"keyup",function(et){return Yf.call(a,et)}),zt(it,"keydown",bs(a,Vf)),zt(it,"keypress",bs(a,Nu)),zt(it,"focus",function(et){return Tr(a,et)}),zt(it,"blur",function(et){return Zl(a,et)})}var Jc=[];vo.defineInitHook=function(a){return Jc.push(a)};function Qs(a,c,v,m){var x=a.doc,L;v==null&&(v="add"),v=="smart"&&(x.mode.indent?L=Ir(a,c).state:v="prev");var G=a.options.tabSize,it=zn(x,c),et=Dt(it.text,null,G);it.stateAfter&&(it.stateAfter=null);var Tt=it.text.match(/^\s*/)[0],ne;if(!m&&!/\S/.test(it.text))ne=0,v="not";else if(v=="smart"&&(ne=x.mode.indent(L,it.text.slice(Tt.length),it.text),ne==ce||ne>150)){if(!m)return;v="prev"}v=="prev"?c>x.first?ne=Dt(zn(x,c-1).text,null,G):ne=0:v=="add"?ne=et+a.options.indentUnit:v=="subtract"?ne=et-a.options.indentUnit:typeof v=="number"&&(ne=et+v),ne=Math.max(0,ne);var Rt="",Ae=0;if(a.options.indentWithTabs)for(var ye=Math.floor(ne/G);ye;--ye)Ae+=G,Rt+=" ";if(Ae<ne&&(Rt+=on(ne-Ae)),Rt!=Tt)return ql(x,Rt,Ut(c,0),Ut(c,Tt.length),"+input"),it.stateAfter=null,!0;for(var Tn=0;Tn<x.sel.ranges.length;Tn++){var In=x.sel.ranges[Tn];if(In.head.line==c&&In.head.ch<Tt.length){var Un=Ut(c,Tt.length);al(x,Tn,new Hi(Un,Un));break}}}var ul=null;function qc(a){ul=a}function od(a,c,v,m,x){var L=a.doc;a.display.shift=!1,m||(m=L.sel);var G=+new Date-200,it=x=="paste"||a.state.pasteIncoming>G,et=Ei(c),Tt=null;if(it&&m.ranges.length>1)if(ul&&ul.text.join(`
|
|
|
`)==c){if(m.ranges.length%ul.text.length==0){Tt=[];for(var ne=0;ne<ul.text.length;ne++)Tt.push(L.splitLines(ul.text[ne]))}}else et.length==m.ranges.length&&a.options.pasteLinesPerSelection&&(Tt=Ln(et,function(ti){return[ti]}));for(var Rt=a.curOp.updateInput,Ae=m.ranges.length-1;Ae>=0;Ae--){var ye=m.ranges[Ae],Tn=ye.from(),In=ye.to();ye.empty()&&(v&&v>0?Tn=Ut(Tn.line,Tn.ch-v):a.state.overwrite&&!it?In=Ut(In.line,Math.min(zn(L,In.line).text.length,In.ch+un(et).length)):it&&ul&&ul.lineWise&&ul.text.join(`
|
|
|
`)==et.join(`
|
|
|
`)&&(Tn=In=Ut(Tn.line,0)));var Un={from:Tn,to:In,text:Tt?Tt[Ae%Tt.length]:et,origin:x||(it?"paste":a.state.cutIncoming>G?"cut":"+input")};kr(a.doc,Un),ii(a,"inputRead",a,Un)}c&&!it&&tp(a,c),Da(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Rt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function qf(a,c){var v=a.clipboardData&&a.clipboardData.getData("Text");if(v)return a.preventDefault(),!c.isReadOnly()&&!c.options.disableInput&&uo(c,function(){return od(c,v,0,null,"paste")}),!0}function tp(a,c){if(!(!a.options.electricChars||!a.options.smartIndent))for(var v=a.doc.sel,m=v.ranges.length-1;m>=0;m--){var x=v.ranges[m];if(!(x.head.ch>100||m&&v.ranges[m-1].head.line==x.head.line)){var L=a.getModeAt(x.head),G=!1;if(L.electricChars){for(var it=0;it<L.electricChars.length;it++)if(c.indexOf(L.electricChars.charAt(it))>-1){G=Qs(a,x.head.line,"smart");break}}else L.electricInput&&L.electricInput.test(zn(a.doc,x.head.line).text.slice(0,x.head.ch))&&(G=Qs(a,x.head.line,"smart"));G&&ii(a,"electricInput",a,x.head.line)}}}function ep(a){for(var c=[],v=[],m=0;m<a.doc.sel.ranges.length;m++){var x=a.doc.sel.ranges[m].head.line,L={anchor:Ut(x,0),head:Ut(x+1,0)};v.push(L),c.push(a.getRange(L.anchor,L.head))}return{text:c,ranges:v}}function np(a,c,v,m){a.setAttribute("autocorrect",v?"":"off"),a.setAttribute("autocapitalize",m?"":"off"),a.setAttribute("spellcheck",!!c)}function ip(){var a=Ht("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),c=Ht("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Z?a.style.width="1000px":a.setAttribute("wrap","off"),Ft&&(a.style.border="1px solid black"),np(a),c}function Tc(a){var c=a.optionHandlers,v=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(m,x){var L=this.options,G=L[m];L[m]==x&&m!="mode"||(L[m]=x,c.hasOwnProperty(m)&&bs(this,c[m])(this,x,G),Ie(this,"optionChange",this,m))},getOption:function(m){return this.options[m]},getDoc:function(){return this.doc},addKeyMap:function(m,x){this.state.keyMaps[x?"push":"unshift"](Zc(m))},removeKeyMap:function(m){for(var x=this.state.keyMaps,L=0;L<x.length;++L)if(x[L]==m||x[L].name==m)return x.splice(L,1),!0},addOverlay:Ms(function(m,x){var L=m.token?m:a.getMode(this.options,m);if(L.startState)throw new Error("Overlays may not be stateful.");Dn(this.state.overlays,{mode:L,modeSpec:m,opaque:x&&x.opaque,priority:x&&x.priority||0},function(G){return G.priority}),this.state.modeGen++,Wr(this)}),removeOverlay:Ms(function(m){for(var x=this.state.overlays,L=0;L<x.length;++L){var G=x[L].modeSpec;if(G==m||typeof m=="string"&&G.name==m){x.splice(L,1),this.state.modeGen++,Wr(this);return}}}),indentLine:Ms(function(m,x,L){typeof x!="string"&&typeof x!="number"&&(x==null?x=this.options.smartIndent?"smart":"prev":x=x?"add":"subtract"),rn(this.doc,m)&&Qs(this,m,x,L)}),indentSelection:Ms(function(m){for(var x=this.doc.sel.ranges,L=-1,G=0;G<x.length;G++){var it=x[G];if(it.empty())it.head.line>L&&(Qs(this,it.head.line,m,!0),L=it.head.line,G==this.doc.sel.primIndex&&Da(this));else{var et=it.from(),Tt=it.to(),ne=Math.max(L,et.line);L=Math.min(this.lastLine(),Tt.line-(Tt.ch?0:1))+1;for(var Rt=ne;Rt<L;++Rt)Qs(this,Rt,m);var Ae=this.doc.sel.ranges;et.ch==0&&x.length==Ae.length&&Ae[G].from().ch>0&&al(this.doc,G,new Hi(et,Ae[G].to()),oe)}}}),getTokenAt:function(m,x){return Rr(this,m,x)},getLineTokens:function(m,x){return Rr(this,Ut(m),x,!0)},getTokenTypeAt:function(m){m=ve(this.doc,m);var x=ui(this,zn(this.doc,m.line)),L=0,G=(x.length-1)/2,it=m.ch,et;if(it==0)et=x[2];else for(;;){var Tt=L+G>>1;if((Tt?x[Tt*2-1]:0)>=it)G=Tt;else if(x[Tt*2+1]<it)L=Tt+1;else{et=x[Tt*2+2];break}}var ne=et?et.indexOf("overlay "):-1;return ne<0?et:ne==0?null:et.slice(0,ne-1)},getModeAt:function(m){var x=this.doc.mode;return x.innerMode?a.innerMode(x,this.getTokenAt(m).state).mode:x},getHelper:function(m,x){return this.getHelpers(m,x)[0]},getHelpers:function(m,x){var L=[];if(!v.hasOwnProperty(x))return L;var G=v[x],it=this.getModeAt(m);if(typeof it[x]=="string")G[it[x]]&&L.push(G[it[x]]);else if(it[x])for(var et=0;et<it[x].length;et++){var Tt=G[it[x][et]];Tt&&L.push(Tt)}else it.helperType&&G[it.helperType]?L.push(G[it.helperType]):G[it.name]&&L.push(G[it.name]);for(var ne=0;ne<G._global.length;ne++){var Rt=G._global[ne];Rt.pred(it,this)&&Q(L,Rt.val)==-1&&L.push(Rt.val)}return L},getStateAfter:function(m,x){var L=this.doc;return m=En(L,m==null?L.first+L.size-1:m),Ir(this,m+1,x).state},cursorCoords:function(m,x){var L,G=this.doc.sel.primary();return m==null?L=G.head:typeof m=="object"?L=ve(this.doc,m):L=m?G.from():G.to(),io(this,L,x||"page")},charCoords:function(m,x){return Ls(this,ve(this.doc,m),x||"page")},coordsChar:function(m,x){return m=vl(this,m,x||"page"),Wo(this,m.left,m.top)},lineAtHeight:function(m,x){return m=vl(this,{top:m,left:0},x||"page").top,Wt(this.doc,m+this.display.viewOffset)},heightAtLine:function(m,x,L){var G=!1,it;if(typeof m=="number"){var et=this.doc.first+this.doc.size-1;m<this.doc.first?m=this.doc.first:m>et&&(m=et,G=!0),it=zn(this.doc,m)}else it=m;return as(this,it,{top:0,left:0},x||"page",L||G).top+(G?this.doc.height-Ti(it):0)},defaultTextHeight:function(){return ts(this.display)},defaultCharWidth:function(){return ia(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(m,x,L,G,it){var et=this.display;m=io(this,ve(this.doc,m));var Tt=m.bottom,ne=m.left;if(x.style.position="absolute",x.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(x),et.sizer.appendChild(x),G=="over")Tt=m.top;else if(G=="above"||G=="near"){var Rt=Math.max(et.wrapper.clientHeight,this.doc.height),Ae=Math.max(et.sizer.clientWidth,et.lineSpace.clientWidth);(G=="above"||m.bottom+x.offsetHeight>Rt)&&m.top>x.offsetHeight?Tt=m.top-x.offsetHeight:m.bottom+x.offsetHeight<=Rt&&(Tt=m.bottom),ne+x.offsetWidth>Ae&&(ne=Ae-x.offsetWidth)}x.style.top=Tt+"px",x.style.left=x.style.right="",it=="right"?(ne=et.sizer.clientWidth-x.offsetWidth,x.style.right="0px"):(it=="left"?ne=0:it=="middle"&&(ne=(et.sizer.clientWidth-x.offsetWidth)/2),x.style.left=ne+"px"),L&&rl(this,{left:ne,top:Tt,right:ne+x.offsetWidth,bottom:Tt+x.offsetHeight})},triggerOnKeyDown:Ms(Vf),triggerOnKeyPress:Ms(Nu),triggerOnKeyUp:Yf,triggerOnMouseDown:Ms(Au),execCommand:function(m){if(Ec.hasOwnProperty(m))return Ec[m].call(null,this)},triggerElectric:Ms(function(m){tp(this,m)}),findPosH:function(m,x,L,G){var it=1;x<0&&(it=-1,x=-x);for(var et=ve(this.doc,m),Tt=0;Tt<x&&(et=sd(this.doc,et,it,L,G),!et.hitSide);++Tt);return et},moveH:Ms(function(m,x){var L=this;this.extendSelectionsBy(function(G){return L.display.shift||L.doc.extend||G.empty()?sd(L.doc,G.head,m,x,L.options.rtlMoveVisually):m<0?G.from():G.to()},Ze)}),deleteH:Ms(function(m,x){var L=this.doc.sel,G=this.doc;L.somethingSelected()?G.replaceSelection("",null,"+delete"):Sl(this,function(it){var et=sd(G,it.head,m,x,!1);return m<0?{from:et,to:it.head}:{from:it.head,to:et}})}),findPosV:function(m,x,L,G){var it=1,et=G;x<0&&(it=-1,x=-x);for(var Tt=ve(this.doc,m),ne=0;ne<x;++ne){var Rt=io(this,Tt,"div");if(et==null?et=Rt.left:Rt.left=et,Tt=wc(this,Rt,it,L),Tt.hitSide)break}return Tt},moveV:Ms(function(m,x){var L=this,G=this.doc,it=[],et=!this.display.shift&&!G.extend&&G.sel.somethingSelected();if(G.extendSelectionsBy(function(ne){if(et)return m<0?ne.from():ne.to();var Rt=io(L,ne.head,"div");ne.goalColumn!=null&&(Rt.left=ne.goalColumn),it.push(Rt.left);var Ae=wc(L,Rt,m,x);return x=="page"&&ne==G.sel.primary()&&ku(L,Ls(L,Ae,"div").top-Rt.top),Ae},Ze),it.length)for(var Tt=0;Tt<G.sel.ranges.length;Tt++)G.sel.ranges[Tt].goalColumn=it[Tt]}),findWordAt:function(m){var x=this.doc,L=zn(x,m.line).text,G=m.ch,it=m.ch;if(L){var et=this.getHelper(m,"wordChars");(m.sticky=="before"||it==L.length)&&G?--G:++it;for(var Tt=L.charAt(G),ne=tt(Tt,et)?function(Rt){return tt(Rt,et)}:/\s/.test(Tt)?function(Rt){return/\s/.test(Rt)}:function(Rt){return!/\s/.test(Rt)&&!tt(Rt)};G>0&&ne(L.charAt(G-1));)--G;for(;it<L.length&&ne(L.charAt(it));)++it}return new Hi(Ut(m.line,G),Ut(m.line,it))},toggleOverwrite:function(m){m!=null&&m==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Gt(this.display.cursorDiv,"CodeMirror-overwrite"):wt(this.display.cursorDiv,"CodeMirror-overwrite"),Ie(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==kt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ms(function(m,x){Pa(this,m,x)}),getScrollInfo:function(){var m=this.display.scroller;return{left:m.scrollLeft,top:m.scrollTop,height:m.scrollHeight-eo(this)-this.display.barHeight,width:m.scrollWidth-eo(this)-this.display.barWidth,clientHeight:Us(this),clientWidth:hs(this)}},scrollIntoView:Ms(function(m,x){m==null?(m={from:this.doc.sel.primary().head,to:null},x==null&&(x=this.options.cursorScrollMargin)):typeof m=="number"?m={from:Ut(m,0),to:null}:m.from==null&&(m={from:m,to:null}),m.to||(m.to=m.from),m.margin=x||0,m.from.line!=null?Fr(this,m):$l(this,m.from,m.to,m.margin)}),setSize:Ms(function(m,x){var L=this,G=function(et){return typeof et=="number"||/^\d+$/.test(String(et))?et+"px":et};m!=null&&(this.display.wrapper.style.width=G(m)),x!=null&&(this.display.wrapper.style.height=G(x)),this.options.lineWrapping&&ml(this);var it=this.display.viewFrom;this.doc.iter(it,this.display.viewTo,function(et){if(et.widgets){for(var Tt=0;Tt<et.widgets.length;Tt++)if(et.widgets[Tt].noHScroll){gr(L,it,"widget");break}}++it}),this.curOp.forceUpdate=!0,Ie(this,"refresh",this)}),operation:function(m){return uo(this,m)},startOperation:function(){return ra(this)},endOperation:function(){return Wa(this)},refresh:Ms(function(){var m=this.display.cachedTextHeight;Wr(this),this.curOp.forceUpdate=!0,Ml(this),Pa(this,this.doc.scrollLeft,this.doc.scrollTop),dt(this.display),(m==null||Math.abs(m-ts(this.display))>.5||this.options.lineWrapping)&&Oi(this),Ie(this,"refresh",this)}),swapDoc:Ms(function(m){var x=this.doc;return x.cm=null,this.state.selectingText&&this.state.selectingText(),ro(this,m),Ml(this),this.display.input.reset(),Pa(this,m.scrollLeft,m.scrollTop),this.curOp.forceScroll=!0,ii(this,"swapDoc",this,x),x}),phrase:function(m){var x=this.options.phrases;return x&&Object.prototype.hasOwnProperty.call(x,m)?x[m]:m},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}},bt(a),a.registerHelper=function(m,x,L){v.hasOwnProperty(m)||(v[m]=a[m]={_global:[]}),v[m][x]=L},a.registerGlobalHelper=function(m,x,L,G){a.registerHelper(m,x,G),v[m]._global.push({pred:L,val:G})}}function sd(a,c,v,m,x){var L=c,G=v,it=zn(a,c.line),et=x&&a.direction=="rtl"?-v:v;function Tt(){var ki=c.line+et;return ki<a.first||ki>=a.first+a.size?!1:(c=new Ut(ki,c.ch,c.sticky),it=zn(a,ki))}function ne(ki){var fi;if(m=="codepoint"){var _i=it.text.charCodeAt(c.ch+(m>0?0:-1));isNaN(_i)?fi=null:fi=new Ut(c.line,Math.max(0,Math.min(it.text.length,c.ch+v*(_i>=55296&&_i<56320?2:1))),-v)}else x?fi=Pd(a.cm,it,c,v):fi=Ds(it,c,v);if(fi==null)if(!ki&&Tt())c=id(x,a.cm,it,c.line,et);else return!1;else c=fi;return!0}if(m=="char"||m=="codepoint")ne();else if(m=="column")ne(!0);else if(m=="word"||m=="group")for(var Rt=null,Ae=m=="group",ye=a.cm&&a.cm.getHelper(c,"wordChars"),Tn=!0;!(v<0&&!ne(!Tn));Tn=!1){var In=it.text.charAt(c.ch)||`
|
|
|
`,Un=tt(In,ye)?"w":Ae&&In==`
|
|
|
`?"n":!Ae||/\s/.test(In)?null:"p";if(Ae&&!Tn&&!Un&&(Un="s"),Rt&&Rt!=Un){v<0&&(v=1,ne(),c.sticky="after");break}if(Un&&(Rt=Un),v>0&&!ne(!Tn))break}var ti=zi(a,c,L,G,!0);return kn(L,ti)&&(ti.hitSide=!0),ti}function wc(a,c,v,m){var x=a.doc,L=c.left,G;if(m=="page"){var it=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),et=Math.max(it-.5*ts(a.display),3);G=(v>0?c.bottom:c.top)+v*et}else m=="line"&&(G=v>0?c.bottom+3:c.top-3);for(var Tt;Tt=Wo(a,L,G),!!Tt.outside;){if(v<0?G<=0:G>=x.height){Tt.hitSide=!0;break}G+=v*5}return Tt}var Ho=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new rt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ho.prototype.init=function(a){var c=this,v=this,m=v.cm,x=v.div=a.lineDiv;np(x,m.options.spellcheck,m.options.autocorrect,m.options.autocapitalize);function L(it){for(var et=it.target;et;et=et.parentNode){if(et==x)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(et.className))break}return!1}zt(x,"paste",function(it){!L(it)||ze(m,it)||qf(it,m)||C<=11&&setTimeout(bs(m,function(){return c.updateFromDOM()}),20)}),zt(x,"compositionstart",function(it){c.composing={data:it.data,done:!1}}),zt(x,"compositionupdate",function(it){c.composing||(c.composing={data:it.data,done:!1})}),zt(x,"compositionend",function(it){c.composing&&(it.data!=c.composing.data&&c.readFromDOMSoon(),c.composing.done=!0)}),zt(x,"touchstart",function(){return v.forceCompositionEnd()}),zt(x,"input",function(){c.composing||c.readFromDOMSoon()});function G(it){if(!(!L(it)||ze(m,it))){if(m.somethingSelected())qc({lineWise:!1,text:m.getSelections()}),it.type=="cut"&&m.replaceSelection("",null,"cut");else if(m.options.lineWiseCopyCut){var et=ep(m);qc({lineWise:!0,text:et.text}),it.type=="cut"&&m.operation(function(){m.setSelections(et.ranges,0,oe),m.replaceSelection("",null,"cut")})}else return;if(it.clipboardData){it.clipboardData.clearData();var Tt=ul.text.join(`
|
|
|
`);if(it.clipboardData.setData("Text",Tt),it.clipboardData.getData("Text")==Tt){it.preventDefault();return}}var ne=ip(),Rt=ne.firstChild;m.display.lineSpace.insertBefore(ne,m.display.lineSpace.firstChild),Rt.value=ul.text.join(`
|
|
|
`);var Ae=document.activeElement;le(Rt),setTimeout(function(){m.display.lineSpace.removeChild(ne),Ae.focus(),Ae==x&&v.showPrimarySelection()},50)}}zt(x,"copy",G),zt(x,"cut",G)},Ho.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Ho.prototype.prepareSelection=function(){var a=yl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Ho.prototype.showSelection=function(a,c){!a||!this.cm.display.view.length||((a.focus||c)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Ho.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ho.prototype.showPrimarySelection=function(){var a=this.getSelection(),c=this.cm,v=c.doc.sel.primary(),m=v.from(),x=v.to();if(c.display.viewTo==c.display.viewFrom||m.line>=c.display.viewTo||x.line<c.display.viewFrom){a.removeAllRanges();return}var L=ad(c,a.anchorNode,a.anchorOffset),G=ad(c,a.focusNode,a.focusOffset);if(!(L&&!L.bad&&G&&!G.bad&&Ye(bn(L,G),m)==0&&Ye(R(L,G),x)==0)){var it=c.display.view,et=m.line>=c.display.viewFrom&&Wd(c,m)||{node:it[0].measure.map[2],offset:0},Tt=x.line<c.display.viewTo&&Wd(c,x);if(!Tt){var ne=it[it.length-1].measure,Rt=ne.maps?ne.maps[ne.maps.length-1]:ne.map;Tt={node:Rt[Rt.length-1],offset:Rt[Rt.length-2]-Rt[Rt.length-3]}}if(!et||!Tt){a.removeAllRanges();return}var Ae=a.rangeCount&&a.getRangeAt(0),ye;try{ye=gt(et.node,et.offset,Tt.offset,Tt.node)}catch(Tn){}ye&&(!E&&c.state.focused?(a.collapse(et.node,et.offset),ye.collapsed||(a.removeAllRanges(),a.addRange(ye))):(a.removeAllRanges(),a.addRange(ye)),Ae&&a.anchorNode==null?a.addRange(Ae):E&&this.startGracePeriod()),this.rememberSelection()}},Ho.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Ho.prototype.showMultipleSelections=function(a){pt(this.cm.display.cursorDiv,a.cursors),pt(this.cm.display.selectionDiv,a.selection)},Ho.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Ho.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var c=a.getRangeAt(0).commonAncestorContainer;return Pt(this.div,c)},Ho.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ho.prototype.blur=function(){this.div.blur()},Ho.prototype.getField=function(){return this.div},Ho.prototype.supportsTouch=function(){return!0},Ho.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():uo(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function c(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},Ho.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Ho.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),c=this.cm;if(_t&&J&&this.cm.display.gutterSpecs.length&&rp(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var v=ad(c,a.anchorNode,a.anchorOffset),m=ad(c,a.focusNode,a.focusOffset);v&&m&&uo(c,function(){g(c.doc,Ao(v,m),oe),(v.bad||m.bad)&&(c.curOp.selectionChanged=!0)})}}},Ho.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,c=a.display,v=a.doc.sel.primary(),m=v.from(),x=v.to();if(m.ch==0&&m.line>a.firstLine()&&(m=Ut(m.line-1,zn(a.doc,m.line-1).length)),x.ch==zn(a.doc,x.line).text.length&&x.line<a.lastLine()&&(x=Ut(x.line+1,0)),m.line<c.viewFrom||x.line>c.viewTo-1)return!1;var L,G,it;m.line==c.viewFrom||(L=_s(a,m.line))==0?(G=Et(c.view[0].line),it=c.view[0].node):(G=Et(c.view[L].line),it=c.view[L-1].node.nextSibling);var et=_s(a,x.line),Tt,ne;if(et==c.view.length-1?(Tt=c.viewTo-1,ne=c.lineDiv.lastChild):(Tt=Et(c.view[et+1].line)-1,ne=c.view[et+1].node.previousSibling),!it)return!1;for(var Rt=a.doc.splitLines(Dh(a,it,ne,G,Tt)),Ae=Wi(a.doc,Ut(G,0),Ut(Tt,zn(a.doc,Tt).text.length));Rt.length>1&&Ae.length>1;)if(un(Rt)==un(Ae))Rt.pop(),Ae.pop(),Tt--;else if(Rt[0]==Ae[0])Rt.shift(),Ae.shift(),G++;else break;for(var ye=0,Tn=0,In=Rt[0],Un=Ae[0],ti=Math.min(In.length,Un.length);ye<ti&&In.charCodeAt(ye)==Un.charCodeAt(ye);)++ye;for(var ki=un(Rt),fi=un(Ae),_i=Math.min(ki.length-(Rt.length==1?ye:0),fi.length-(Ae.length==1?ye:0));Tn<_i&&ki.charCodeAt(ki.length-Tn-1)==fi.charCodeAt(fi.length-Tn-1);)++Tn;if(Rt.length==1&&Ae.length==1&&G==m.line)for(;ye&&ye>m.ch&&ki.charCodeAt(ki.length-Tn-1)==fi.charCodeAt(fi.length-Tn-1);)ye--,Tn++;Rt[Rt.length-1]=ki.slice(0,ki.length-Tn).replace(/^\u200b+/,""),Rt[0]=Rt[0].slice(ye).replace(/\u200b+$/,"");var yr=Ut(G,ye),di=Ut(Tt,Ae.length?un(Ae).length-Tn:0);if(Rt.length>1||Rt[0]||Ye(yr,di))return ql(a.doc,Rt,yr,di,"+input"),!0},Ho.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ho.prototype.reset=function(){this.forceCompositionEnd()},Ho.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ho.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Ho.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&uo(this.cm,function(){return Wr(a.cm)})},Ho.prototype.setUneditable=function(a){a.contentEditable="false"},Ho.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||bs(this.cm,od)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Ho.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Ho.prototype.onContextMenu=function(){},Ho.prototype.resetPosition=function(){},Ho.prototype.needsContentAttribute=!0;function Wd(a,c){var v=Hs(a,c.line);if(!v||v.hidden)return null;var m=zn(a.doc,c.line),x=Ro(v,m,c.line),L=$e(m,a.doc.direction),G="left";if(L){var it=de(L,c.ch);G=it%2?"right":"left"}var et=cu(x.map,c.ch,G);return et.offset=et.collapse=="right"?et.end:et.start,et}function rp(a){for(var c=a;c;c=c.parentNode)if(/CodeMirror-gutter-wrapper/.test(c.className))return!0;return!1}function Oh(a,c){return c&&(a.bad=!0),a}function Dh(a,c,v,m,x){var L="",G=!1,it=a.doc.lineSeparator(),et=!1;function Tt(ye){return function(Tn){return Tn.id==ye}}function ne(){G&&(L+=it,et&&(L+=it),G=et=!1)}function Rt(ye){ye&&(ne(),L+=ye)}function Ae(ye){if(ye.nodeType==1){var Tn=ye.getAttribute("cm-text");if(Tn){Rt(Tn);return}var In=ye.getAttribute("cm-marker"),Un;if(In){var ti=a.findMarks(Ut(m,0),Ut(x+1,0),Tt(+In));ti.length&&(Un=ti[0].find(0))&&Rt(Wi(a.doc,Un.from,Un.to).join(it));return}if(ye.getAttribute("contenteditable")=="false")return;var ki=/^(pre|div|p|li|table|br)$/i.test(ye.nodeName);if(!/^br$/i.test(ye.nodeName)&&ye.textContent.length==0)return;ki&&ne();for(var fi=0;fi<ye.childNodes.length;fi++)Ae(ye.childNodes[fi]);/^(pre|p)$/i.test(ye.nodeName)&&(et=!0),ki&&(G=!0)}else ye.nodeType==3&&Rt(ye.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ae(c),c!=v;)c=c.nextSibling,et=!1;return L}function ad(a,c,v){var m;if(c==a.display.lineDiv){if(m=a.display.lineDiv.childNodes[v],!m)return Oh(a.clipPos(Ut(a.display.viewTo-1)),!0);c=null,v=0}else for(m=c;;m=m.parentNode){if(!m||m==a.display.lineDiv)return null;if(m.parentNode&&m.parentNode==a.display.lineDiv)break}for(var x=0;x<a.display.view.length;x++){var L=a.display.view[x];if(L.node==m)return vg(L,c,v)}}function vg(a,c,v){var m=a.text.firstChild,x=!1;if(!c||!Pt(m,c))return Oh(Ut(Et(a.line),0),!0);if(c==m&&(x=!0,c=m.childNodes[v],v=0,!c)){var L=a.rest?un(a.rest):a.line;return Oh(Ut(Et(L),L.text.length),x)}var G=c.nodeType==3?c:null,it=c;for(!G&&c.childNodes.length==1&&c.firstChild.nodeType==3&&(G=c.firstChild,v&&(v=G.nodeValue.length));it.parentNode!=m;)it=it.parentNode;var et=a.measure,Tt=et.maps;function ne(Un,ti,ki){for(var fi=-1;fi<(Tt?Tt.length:0);fi++)for(var _i=fi<0?et.map:Tt[fi],yr=0;yr<_i.length;yr+=3){var di=_i[yr+2];if(di==Un||di==ti){var qr=Et(fi<0?a.line:a.rest[fi]),rs=_i[yr]+ki;return(ki<0||di!=Un)&&(rs=_i[yr+(ki?1:0)]),Ut(qr,rs)}}}var Rt=ne(G,it,v);if(Rt)return Oh(Rt,x);for(var Ae=it.nextSibling,ye=G?G.nodeValue.length-v:0;Ae;Ae=Ae.nextSibling){if(Rt=ne(Ae,Ae.firstChild,0),Rt)return Oh(Ut(Rt.line,Rt.ch-ye),x);ye+=Ae.textContent.length}for(var Tn=it.previousSibling,In=v;Tn;Tn=Tn.previousSibling){if(Rt=ne(Tn,Tn.firstChild,-1),Rt)return Oh(Ut(Rt.line,Rt.ch+In),x);In+=Tn.textContent.length}}var Vs=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new rt,this.hasSelection=!1,this.composing=null};Vs.prototype.init=function(a){var c=this,v=this,m=this.cm;this.createField(a);var x=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ft&&(x.style.width="0px"),zt(x,"input",function(){V&&C>=9&&c.hasSelection&&(c.hasSelection=null),v.poll()}),zt(x,"paste",function(G){ze(m,G)||qf(G,m)||(m.state.pasteIncoming=+new Date,v.fastPoll())});function L(G){if(!ze(m,G)){if(m.somethingSelected())qc({lineWise:!1,text:m.getSelections()});else if(m.options.lineWiseCopyCut){var it=ep(m);qc({lineWise:!0,text:it.text}),G.type=="cut"?m.setSelections(it.ranges,null,oe):(v.prevInput="",x.value=it.text.join(`
|
|
|
`),le(x))}else return;G.type=="cut"&&(m.state.cutIncoming=+new Date)}}zt(x,"cut",L),zt(x,"copy",L),zt(a.scroller,"paste",function(G){if(!(xo(a,G)||ze(m,G))){if(!x.dispatchEvent){m.state.pasteIncoming=+new Date,v.focus();return}var it=new Event("paste");it.clipboardData=G.clipboardData,x.dispatchEvent(it)}}),zt(a.lineSpace,"selectstart",function(G){xo(a,G)||hn(G)}),zt(x,"compositionstart",function(){var G=m.getCursor("from");v.composing&&v.composing.range.clear(),v.composing={start:G,range:m.markText(G,m.getCursor("to"),{className:"CodeMirror-composing"})}}),zt(x,"compositionend",function(){v.composing&&(v.poll(),v.composing.range.clear(),v.composing=null)})},Vs.prototype.createField=function(a){this.wrapper=ip(),this.textarea=this.wrapper.firstChild},Vs.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Vs.prototype.prepareSelection=function(){var a=this.cm,c=a.display,v=a.doc,m=yl(a);if(a.options.moveInputWithCursor){var x=io(a,v.sel.primary().head,"div"),L=c.wrapper.getBoundingClientRect(),G=c.lineDiv.getBoundingClientRect();m.teTop=Math.max(0,Math.min(c.wrapper.clientHeight-10,x.top+G.top-L.top)),m.teLeft=Math.max(0,Math.min(c.wrapper.clientWidth-10,x.left+G.left-L.left))}return m},Vs.prototype.showSelection=function(a){var c=this.cm,v=c.display;pt(v.cursorDiv,a.cursors),pt(v.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Vs.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var c=this.cm;if(c.somethingSelected()){this.prevInput="";var v=c.getSelection();this.textarea.value=v,c.state.focused&&le(this.textarea),V&&C>=9&&(this.hasSelection=v)}else a||(this.prevInput=this.textarea.value="",V&&C>=9&&(this.hasSelection=null))}},Vs.prototype.getField=function(){return this.textarea},Vs.prototype.supportsTouch=function(){return!1},Vs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ct||kt()!=this.textarea))try{this.textarea.focus()}catch(a){}},Vs.prototype.blur=function(){this.textarea.blur()},Vs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Vs.prototype.receivedFocus=function(){this.slowPoll()},Vs.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Vs.prototype.fastPoll=function(){var a=!1,c=this;c.pollingFast=!0;function v(){var m=c.poll();!m&&!a?(a=!0,c.polling.set(60,v)):(c.pollingFast=!1,c.slowPoll())}c.polling.set(20,v)},Vs.prototype.poll=function(){var a=this,c=this.cm,v=this.textarea,m=this.prevInput;if(this.contextMenuPending||!c.state.focused||A(v)&&!m&&!this.composing||c.isReadOnly()||c.options.disableInput||c.state.keySeq)return!1;var x=v.value;if(x==m&&!c.somethingSelected())return!1;if(V&&C>=9&&this.hasSelection===x||xt&&/[\uf700-\uf7ff]/.test(x))return c.display.input.reset(),!1;if(c.doc.sel==c.display.selForContextMenu){var L=x.charCodeAt(0);if(L==8203&&!m&&(m="\u200B"),L==8666)return this.reset(),this.cm.execCommand("undo")}for(var G=0,it=Math.min(m.length,x.length);G<it&&m.charCodeAt(G)==x.charCodeAt(G);)++G;return uo(c,function(){od(c,x.slice(G),m.length-G,null,a.composing?"*compose":null),x.length>1e3||x.indexOf(`
|
|
|
`)>-1?v.value=a.prevInput="":a.prevInput=x,a.composing&&(a.composing.range.clear(),a.composing.range=c.markText(a.composing.start,c.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Vs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Vs.prototype.onKeyPress=function(){V&&C>=9&&(this.hasSelection=null),this.fastPoll()},Vs.prototype.onContextMenu=function(a){var c=this,v=c.cm,m=v.display,x=c.textarea;c.contextMenuPending&&c.contextMenuPending();var L=fs(v,a),G=m.scroller.scrollTop;if(!L||Y)return;var it=v.options.resetSelectionOnContextMenu;it&&v.doc.sel.contains(L)==-1&&bs(v,g)(v.doc,Ao(L),oe);var et=x.style.cssText,Tt=c.wrapper.style.cssText,ne=c.wrapper.offsetParent.getBoundingClientRect();c.wrapper.style.cssText="position: static",x.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-ne.top-5)+"px; left: "+(a.clientX-ne.left-5)+`px;
|
|
|
z-index: 1000; background: `+(V?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Rt;Z&&(Rt=window.scrollY),m.input.focus(),Z&&window.scrollTo(null,Rt),m.input.reset(),v.somethingSelected()||(x.value=c.prevInput=" "),c.contextMenuPending=ye,m.selForContextMenu=v.doc.sel,clearTimeout(m.detectingSelectAll);function Ae(){if(x.selectionStart!=null){var In=v.somethingSelected(),Un="\u200B"+(In?x.value:"");x.value="\u21DA",x.value=Un,c.prevInput=In?"":"\u200B",x.selectionStart=1,x.selectionEnd=Un.length,m.selForContextMenu=v.doc.sel}}function ye(){if(c.contextMenuPending==ye&&(c.contextMenuPending=!1,c.wrapper.style.cssText=Tt,x.style.cssText=et,V&&C<9&&m.scrollbars.setScrollTop(m.scroller.scrollTop=G),x.selectionStart!=null)){(!V||V&&C<9)&&Ae();var In=0,Un=function(){m.selForContextMenu==v.doc.sel&&x.selectionStart==0&&x.selectionEnd>0&&c.prevInput=="\u200B"?bs(v,ln)(v):In++<10?m.detectingSelectAll=setTimeout(Un,500):(m.selForContextMenu=null,m.input.reset())};m.detectingSelectAll=setTimeout(Un,200)}}if(V&&C>=9&&Ae(),st){Hn(a);var Tn=function(){Ge(window,"mouseup",Tn),setTimeout(ye,20)};zt(window,"mouseup",Tn)}else setTimeout(ye,50)},Vs.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Vs.prototype.setUneditable=function(){},Vs.prototype.needsContentAttribute=!1;function yg(a,c){if(c=c?pe(c):{},c.value=a.value,!c.tabindex&&a.tabIndex&&(c.tabindex=a.tabIndex),!c.placeholder&&a.placeholder&&(c.placeholder=a.placeholder),c.autofocus==null){var v=kt();c.autofocus=v==a||a.getAttribute("autofocus")!=null&&v==document.body}function m(){a.value=it.getValue()}var x;if(a.form&&(zt(a.form,"submit",m),!c.leaveSubmitMethodAlone)){var L=a.form;x=L.submit;try{var G=L.submit=function(){m(),L.submit=x,L.submit(),L.submit=G}}catch(et){}}c.finishInit=function(et){et.save=m,et.getTextArea=function(){return a},et.toTextArea=function(){et.toTextArea=isNaN,m(),a.parentNode.removeChild(et.getWrapperElement()),a.style.display="",a.form&&(Ge(a.form,"submit",m),!c.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=x))}},a.style.display="none";var it=vo(function(et){return a.parentNode.insertBefore(et,a.nextSibling)},c);return it}function Ph(a){a.off=Ge,a.on=zt,a.wheelEventPixels=lr,a.Doc=Ca,a.splitLines=Ei,a.countColumn=Dt,a.findColumn=Nn,a.isWordChar=H,a.Pass=ce,a.signal=Ie,a.Line=Kr,a.changeEnd=Io,a.scrollbarModel=Ea,a.Pos=Ut,a.cmpPos=Ye,a.modes=Fi,a.mimeModes=Ki,a.resolveMode=Zi,a.getMode=or,a.modeExtensions=Yn,a.extendMode=Mn,a.copyState=fr,a.startState=Xi,a.innerMode=Li,a.commands=Ec,a.keyMap=El,a.keyName=cg,a.isModifierKey=Nh,a.lookupKey=tu,a.normalizeKeyMap=Uf,a.StringStream=sn,a.SharedTextMarker=Uu,a.TextMarker=Kt,a.LineWidget=ic,a.e_preventDefault=hn,a.e_stopPropagation=Sn,a.e_stop=Hn,a.addClass=Gt,a.contains=Pt,a.rmClass=wt,a.keyNames=Hu}gg(vo),Tc(vo);var rc="iter insert remove copy getEditor constructor".split(" ");for(var ld in Ca.prototype)Ca.prototype.hasOwnProperty(ld)&&Q(rc,ld)<0&&(vo.prototype[ld]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ca.prototype[ld]));return bt(Ca),vo.inputStyles={textarea:Vs,contenteditable:Ho},vo.defineMode=function(a){!vo.defaults.mode&&a!="null"&&(vo.defaults.mode=a),pi.apply(this,arguments)},vo.defineMIME=so,vo.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),vo.defineMIME("text/plain","null"),vo.defineExtension=function(a,c){vo.prototype[a]=c},vo.defineDocExtension=function(a,c){Ca.prototype[a]=c},vo.fromTextArea=yg,Ph(vo),vo.version="5.58.2",vo})},25419:function(j,S,p){(function(E){E(p(89780),p(15525),p(98101))})(function(E){"use strict";E.defineMode("markdown",function(I,D){var P=E.getMode(I,"text/html"),V=P.name=="null";function C(Dt){if(E.findModeByName){var rt=E.findModeByName(Dt);rt&&(Dt=rt.mime||rt.mimes[0])}var Q=E.getMode(I,Dt);return Q.name=="null"?null:Q}D.highlightFormatting===void 0&&(D.highlightFormatting=!1),D.maxBlockquoteDepth===void 0&&(D.maxBlockquoteDepth=0),D.taskLists===void 0&&(D.taskLists=!1),D.strikethrough===void 0&&(D.strikethrough=!1),D.emoji===void 0&&(D.emoji=!1),D.fencedCodeBlockHighlighting===void 0&&(D.fencedCodeBlockHighlighting=!0),D.fencedCodeBlockDefaultMode===void 0&&(D.fencedCodeBlockDefaultMode="text/plain"),D.xml===void 0&&(D.xml=!0),D.tokenTypeOverrides===void 0&&(D.tokenTypeOverrides={});var Z={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 lt in Z)Z.hasOwnProperty(lt)&&D.tokenTypeOverrides[lt]&&(Z[lt]=D.tokenTypeOverrides[lt]);var J=/^([*\-_])(?:\s*\1){2,}\s*$/,Y=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Mt=/^\[(x| )\](?=\s)/i,ct=D.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,$t=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ft=/^[^#!\[\]*_\\<>` "'(~:]+/,_t=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ct=/^\s*\[[^\]]+?\]:.*$/,xt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,St=" ";function ft(Dt,rt,Q){return rt.f=rt.inline=Q,Q(Dt,rt)}function vt(Dt,rt,Q){return rt.f=rt.block=Q,Q(Dt,rt)}function ot(Dt){return!Dt||!/\S/.test(Dt.string)}function st(Dt){if(Dt.linkTitle=!1,Dt.linkHref=!1,Dt.linkText=!1,Dt.em=!1,Dt.strong=!1,Dt.strikethrough=!1,Dt.quote=0,Dt.indentedCode=!1,Dt.f==wt){var rt=V;if(!rt){var Q=E.innerMode(P,Dt.htmlState);rt=Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText}rt&&(Dt.f=At,Dt.block=q,Dt.htmlState=null)}return Dt.trailingSpace=0,Dt.trailingSpaceNewLine=!1,Dt.prevLine=Dt.thisLine,Dt.thisLine={stream:null},null}function q(Dt,rt){var Q=Dt.column()===rt.indentation,ie=ot(rt.prevLine.stream),ce=rt.indentedCode,oe=rt.prevLine.hr,pn=rt.list!==!1,Ze=(rt.listStack[rt.listStack.length-1]||0)+3;rt.indentedCode=!1;var Nn=rt.indentation;if(rt.indentationDiff===null&&(rt.indentationDiff=rt.indentation,pn)){for(rt.list=null;Nn<rt.listStack[rt.listStack.length-1];)rt.listStack.pop(),rt.listStack.length?rt.indentation=rt.listStack[rt.listStack.length-1]:rt.list=!1;rt.list!==!1&&(rt.indentationDiff=Nn-rt.listStack[rt.listStack.length-1])}var me=!ie&&!oe&&!rt.prevLine.header&&(!pn||!ce)&&!rt.prevLine.fencedCodeEnd,on=(rt.list===!1||oe||ie)&&rt.indentation<=Ze&&Dt.match(J),un=null;if(rt.indentationDiff>=4&&(ce||rt.prevLine.fencedCodeEnd||rt.prevLine.header||ie))return Dt.skipToEnd(),rt.indentedCode=!0,Z.code;if(Dt.eatSpace())return null;if(Q&&rt.indentation<=Ze&&(un=Dt.match(ct))&&un[1].length<=6)return rt.quote=0,rt.header=un[1].length,rt.thisLine.header=!0,D.highlightFormatting&&(rt.formatting="header"),rt.f=rt.inline,pt(rt);if(rt.indentation<=Ze&&Dt.eat(">"))return rt.quote=Q?1:rt.quote+1,D.highlightFormatting&&(rt.formatting="quote"),Dt.eatSpace(),pt(rt);if(!on&&!rt.setext&&Q&&rt.indentation<=Ze&&(un=Dt.match(Y))){var Ln=un[1]?"ol":"ul";return rt.indentation=Nn+Dt.current().length,rt.list=!0,rt.quote=0,rt.listStack.push(rt.indentation),rt.em=!1,rt.strong=!1,rt.code=!1,rt.strikethrough=!1,D.taskLists&&Dt.match(Mt,!1)&&(rt.taskList=!0),rt.f=rt.inline,D.highlightFormatting&&(rt.formatting=["list","list-"+Ln]),pt(rt)}else{if(Q&&rt.indentation<=Ze&&(un=Dt.match(_t,!0)))return rt.quote=0,rt.fencedEndRE=new RegExp(un[1]+"+ *$"),rt.localMode=D.fencedCodeBlockHighlighting&&C(un[2]||D.fencedCodeBlockDefaultMode),rt.localMode&&(rt.localState=E.startState(rt.localMode)),rt.f=rt.block=Bt,D.highlightFormatting&&(rt.formatting="code-block"),rt.code=-1,pt(rt);if(rt.setext||(!me||!pn)&&!rt.quote&&rt.list===!1&&!rt.code&&!on&&!Ct.test(Dt.string)&&(un=Dt.lookAhead(1))&&(un=un.match($t)))return rt.setext?(rt.header=rt.setext,rt.setext=0,Dt.skipToEnd(),D.highlightFormatting&&(rt.formatting="header")):(rt.header=un[0].charAt(0)=="="?1:2,rt.setext=rt.header),rt.thisLine.header=!0,rt.f=rt.inline,pt(rt);if(on)return Dt.skipToEnd(),rt.hr=!0,rt.thisLine.hr=!0,Z.hr;if(Dt.peek()==="[")return ft(Dt,rt,ue)}return ft(Dt,rt,rt.inline)}function wt(Dt,rt){var Q=P.token(Dt,rt.htmlState);if(!V){var ie=E.innerMode(P,rt.htmlState);(ie.mode.name=="xml"&&ie.state.tagStart===null&&!ie.state.context&&ie.state.tokenize.isInText||rt.md_inside&&Dt.current().indexOf(">")>-1)&&(rt.f=At,rt.block=q,rt.htmlState=null)}return Q}function Bt(Dt,rt){var Q=rt.listStack[rt.listStack.length-1]||0,ie=rt.indentation<Q,ce=Q+3;if(rt.fencedEndRE&&rt.indentation<=ce&&(ie||Dt.match(rt.fencedEndRE))){D.highlightFormatting&&(rt.formatting="code-block");var oe;return ie||(oe=pt(rt)),rt.localMode=rt.localState=null,rt.block=q,rt.f=At,rt.fencedEndRE=null,rt.code=0,rt.thisLine.fencedCodeEnd=!0,ie?vt(Dt,rt,rt.block):oe}else return rt.localMode?rt.localMode.token(Dt,rt.localState):(Dt.skipToEnd(),Z.code)}function pt(Dt){var rt=[];if(Dt.formatting){rt.push(Z.formatting),typeof Dt.formatting=="string"&&(Dt.formatting=[Dt.formatting]);for(var Q=0;Q<Dt.formatting.length;Q++)rt.push(Z.formatting+"-"+Dt.formatting[Q]),Dt.formatting[Q]==="header"&&rt.push(Z.formatting+"-"+Dt.formatting[Q]+"-"+Dt.header),Dt.formatting[Q]==="quote"&&(!D.maxBlockquoteDepth||D.maxBlockquoteDepth>=Dt.quote?rt.push(Z.formatting+"-"+Dt.formatting[Q]+"-"+Dt.quote):rt.push("error"))}if(Dt.taskOpen)return rt.push("meta"),rt.length?rt.join(" "):null;if(Dt.taskClosed)return rt.push("property"),rt.length?rt.join(" "):null;if(Dt.linkHref?rt.push(Z.linkHref,"url"):(Dt.strong&&rt.push(Z.strong),Dt.em&&rt.push(Z.em),Dt.strikethrough&&rt.push(Z.strikethrough),Dt.emoji&&rt.push(Z.emoji),Dt.linkText&&rt.push(Z.linkText),Dt.code&&rt.push(Z.code),Dt.image&&rt.push(Z.image),Dt.imageAltText&&rt.push(Z.imageAltText,"link"),Dt.imageMarker&&rt.push(Z.imageMarker)),Dt.header&&rt.push(Z.header,Z.header+"-"+Dt.header),Dt.quote&&(rt.push(Z.quote),!D.maxBlockquoteDepth||D.maxBlockquoteDepth>=Dt.quote?rt.push(Z.quote+"-"+Dt.quote):rt.push(Z.quote+"-"+D.maxBlockquoteDepth)),Dt.list!==!1){var ie=(Dt.listStack.length-1)%3;ie?ie===1?rt.push(Z.list2):rt.push(Z.list3):rt.push(Z.list1)}return Dt.trailingSpaceNewLine?rt.push("trailing-space-new-line"):Dt.trailingSpace&&rt.push("trailing-space-"+(Dt.trailingSpace%2?"a":"b")),rt.length?rt.join(" "):null}function Ht(Dt,rt){if(Dt.match(Ft,!0))return pt(rt)}function At(Dt,rt){var Q=rt.text(Dt,rt);if(typeof Q!="undefined")return Q;if(rt.list)return rt.list=null,pt(rt);if(rt.taskList){var ie=Dt.match(Mt,!0)[1]===" ";return ie?rt.taskOpen=!0:rt.taskClosed=!0,D.highlightFormatting&&(rt.formatting="task"),rt.taskList=!1,pt(rt)}if(rt.taskOpen=!1,rt.taskClosed=!1,rt.header&&Dt.match(/^#+$/,!0))return D.highlightFormatting&&(rt.formatting="header"),pt(rt);var ce=Dt.next();if(rt.linkTitle){rt.linkTitle=!1;var oe=ce;ce==="("&&(oe=")"),oe=(oe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var pn="^\\s*(?:[^"+oe+"\\\\]+|\\\\\\\\|\\\\.)"+oe;if(Dt.match(new RegExp(pn),!0))return Z.linkHref}if(ce==="`"){var Ze=rt.formatting;D.highlightFormatting&&(rt.formatting="code"),Dt.eatWhile("`");var Nn=Dt.current().length;if(rt.code==0&&(!rt.quote||Nn==1))return rt.code=Nn,pt(rt);if(Nn==rt.code){var me=pt(rt);return rt.code=0,me}else return rt.formatting=Ze,pt(rt)}else if(rt.code)return pt(rt);if(ce==="\\"&&(Dt.next(),D.highlightFormatting)){var on=pt(rt),un=Z.formatting+"-escape";return on?on+" "+un:un}if(ce==="!"&&Dt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return rt.imageMarker=!0,rt.image=!0,D.highlightFormatting&&(rt.formatting="image"),pt(rt);if(ce==="["&&rt.imageMarker&&Dt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return rt.imageMarker=!1,rt.imageAltText=!0,D.highlightFormatting&&(rt.formatting="image"),pt(rt);if(ce==="]"&&rt.imageAltText){D.highlightFormatting&&(rt.formatting="image");var on=pt(rt);return rt.imageAltText=!1,rt.image=!1,rt.inline=rt.f=Pt,on}if(ce==="["&&!rt.image)return rt.linkText&&Dt.match(/^.*?\]/)||(rt.linkText=!0,D.highlightFormatting&&(rt.formatting="link")),pt(rt);if(ce==="]"&&rt.linkText){D.highlightFormatting&&(rt.formatting="link");var on=pt(rt);return rt.linkText=!1,rt.inline=rt.f=Dt.match(/\(.*?\)| ?\[.*?\]/,!1)?Pt:At,on}if(ce==="<"&&Dt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){rt.f=rt.inline=gt,D.highlightFormatting&&(rt.formatting="link");var on=pt(rt);return on?on+=" ":on="",on+Z.linkInline}if(ce==="<"&&Dt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){rt.f=rt.inline=gt,D.highlightFormatting&&(rt.formatting="link");var on=pt(rt);return on?on+=" ":on="",on+Z.linkEmail}if(D.xml&&ce==="<"&&Dt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ln=Dt.string.indexOf(">",Dt.pos);if(Ln!=-1){var Dn=Dt.string.substring(Dt.start,Ln);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Dn)&&(rt.md_inside=!0)}return Dt.backUp(1),rt.htmlState=E.startState(P),vt(Dt,rt,wt)}if(D.xml&&ce==="<"&&Dt.match(/^\/\w*?>/))return rt.md_inside=!1,"tag";if(ce==="*"||ce==="_"){for(var K=1,O=Dt.pos==1?" ":Dt.string.charAt(Dt.pos-2);K<3&&Dt.eat(ce);)K++;var k=Dt.peek()||" ",H=!/\s/.test(k)&&(!xt.test(k)||/\s/.test(O)||xt.test(O)),tt=!/\s/.test(O)&&(!xt.test(O)||/\s/.test(k)||xt.test(k)),_=null,at=null;if(K%2&&(!rt.em&&H&&(ce==="*"||!tt||xt.test(O))?_=!0:rt.em==ce&&tt&&(ce==="*"||!H||xt.test(k))&&(_=!1)),K>1&&(!rt.strong&&H&&(ce==="*"||!tt||xt.test(O))?at=!0:rt.strong==ce&&tt&&(ce==="*"||!H||xt.test(k))&&(at=!1)),at!=null||_!=null){D.highlightFormatting&&(rt.formatting=_==null?"strong":at==null?"em":"strong em"),_===!0&&(rt.em=ce),at===!0&&(rt.strong=ce);var me=pt(rt);return _===!1&&(rt.em=!1),at===!1&&(rt.strong=!1),me}}else if(ce===" "&&(Dt.eat("*")||Dt.eat("_"))){if(Dt.peek()===" ")return pt(rt);Dt.backUp(1)}if(D.strikethrough){if(ce==="~"&&Dt.eatWhile(ce)){if(rt.strikethrough){D.highlightFormatting&&(rt.formatting="strikethrough");var me=pt(rt);return rt.strikethrough=!1,me}else if(Dt.match(/^[^\s]/,!1))return rt.strikethrough=!0,D.highlightFormatting&&(rt.formatting="strikethrough"),pt(rt)}else if(ce===" "&&Dt.match(/^~~/,!0)){if(Dt.peek()===" ")return pt(rt);Dt.backUp(2)}}if(D.emoji&&ce===":"&&Dt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){rt.emoji=!0,D.highlightFormatting&&(rt.formatting="emoji");var se=pt(rt);return rt.emoji=!1,se}return ce===" "&&(Dt.match(/^ +$/,!1)?rt.trailingSpace++:rt.trailingSpace&&(rt.trailingSpaceNewLine=!0)),pt(rt)}function gt(Dt,rt){var Q=Dt.next();if(Q===">"){rt.f=rt.inline=At,D.highlightFormatting&&(rt.formatting="link");var ie=pt(rt);return ie?ie+=" ":ie="",ie+Z.linkInline}return Dt.match(/^[^>]+/,!0),Z.linkInline}function Pt(Dt,rt){if(Dt.eatSpace())return null;var Q=Dt.next();return Q==="("||Q==="["?(rt.f=rt.inline=Gt(Q==="("?")":"]"),D.highlightFormatting&&(rt.formatting="link-string"),rt.linkHref=!0,pt(rt)):"error"}var kt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Gt(Dt){return function(rt,Q){var ie=rt.next();if(ie===Dt){Q.f=Q.inline=At,D.highlightFormatting&&(Q.formatting="link-string");var ce=pt(Q);return Q.linkHref=!1,ce}return rt.match(kt[Dt]),Q.linkHref=!0,pt(Q)}}function ue(Dt,rt){return Dt.match(/^([^\]\\]|\\.)*\]:/,!1)?(rt.f=le,Dt.next(),D.highlightFormatting&&(rt.formatting="link"),rt.linkText=!0,pt(rt)):ft(Dt,rt,At)}function le(Dt,rt){if(Dt.match(/^\]:/,!0)){rt.f=rt.inline=re,D.highlightFormatting&&(rt.formatting="link");var Q=pt(rt);return rt.linkText=!1,Q}return Dt.match(/^([^\]\\]|\\.)+/,!0),Z.linkText}function re(Dt,rt){return Dt.eatSpace()?null:(Dt.match(/^[^\s]+/,!0),Dt.peek()===void 0?rt.linkTitle=!0:Dt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),rt.f=rt.inline=At,Z.linkHref+" url")}var pe={startState:function(){return{f:q,prevLine:{stream:null},thisLine:{stream:null},block:q,htmlState:null,indentation:0,inline:At,text:Ht,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(Dt){return{f:Dt.f,prevLine:Dt.prevLine,thisLine:Dt.thisLine,block:Dt.block,htmlState:Dt.htmlState&&E.copyState(P,Dt.htmlState),indentation:Dt.indentation,localMode:Dt.localMode,localState:Dt.localMode?E.copyState(Dt.localMode,Dt.localState):null,inline:Dt.inline,text:Dt.text,formatting:!1,linkText:Dt.linkText,linkTitle:Dt.linkTitle,linkHref:Dt.linkHref,code:Dt.code,em:Dt.em,strong:Dt.strong,strikethrough:Dt.strikethrough,emoji:Dt.emoji,header:Dt.header,setext:Dt.setext,hr:Dt.hr,taskList:Dt.taskList,list:Dt.list,listStack:Dt.listStack.slice(0),quote:Dt.quote,indentedCode:Dt.indentedCode,trailingSpace:Dt.trailingSpace,trailingSpaceNewLine:Dt.trailingSpaceNewLine,md_inside:Dt.md_inside,fencedEndRE:Dt.fencedEndRE}},token:function(Dt,rt){if(rt.formatting=!1,Dt!=rt.thisLine.stream){if(rt.header=0,rt.hr=!1,Dt.match(/^\s*$/,!0))return st(rt),null;if(rt.prevLine=rt.thisLine,rt.thisLine={stream:Dt},rt.taskList=!1,rt.trailingSpace=0,rt.trailingSpaceNewLine=!1,!rt.localState&&(rt.f=rt.block,rt.f!=wt)){var Q=Dt.match(/^\s*/,!0)[0].replace(/\t/g,St).length;if(rt.indentation=Q,rt.indentationDiff=null,Q>0)return null}}return rt.f(Dt,rt)},innerMode:function(Dt){return Dt.block==wt?{state:Dt.htmlState,mode:P}:Dt.localState?{state:Dt.localState,mode:Dt.localMode}:{state:Dt,mode:pe}},indent:function(Dt,rt,Q){return Dt.block==wt&&P.indent?P.indent(Dt.htmlState,rt,Q):Dt.localState&&Dt.localMode.indent?Dt.localMode.indent(Dt.localState,rt,Q):E.Pass},blankLine:st,getType:pt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return pe},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(j,S,p){(function(E){E(p(89780))})(function(E){"use strict";E.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 I=0;I<E.modeInfo.length;I++){var D=E.modeInfo[I];D.mimes&&(D.mime=D.mimes[0])}E.findModeByMIME=function(P){P=P.toLowerCase();for(var V=0;V<E.modeInfo.length;V++){var C=E.modeInfo[V];if(C.mime==P)return C;if(C.mimes){for(var Z=0;Z<C.mimes.length;Z++)if(C.mimes[Z]==P)return C}}if(/\+xml$/.test(P))return E.findModeByMIME("application/xml");if(/\+json$/.test(P))return E.findModeByMIME("application/json")},E.findModeByExtension=function(P){P=P.toLowerCase();for(var V=0;V<E.modeInfo.length;V++){var C=E.modeInfo[V];if(C.ext){for(var Z=0;Z<C.ext.length;Z++)if(C.ext[Z]==P)return C}}},E.findModeByFileName=function(P){for(var V=0;V<E.modeInfo.length;V++){var C=E.modeInfo[V];if(C.file&&C.file.test(P))return C}var Z=P.lastIndexOf("."),lt=Z>-1&&P.substring(Z+1,P.length);if(lt)return E.findModeByExtension(lt)},E.findModeByName=function(P){P=P.toLowerCase();for(var V=0;V<E.modeInfo.length;V++){var C=E.modeInfo[V];if(C.name.toLowerCase()==P)return C;if(C.alias){for(var Z=0;Z<C.alias.length;Z++)if(C.alias[Z].toLowerCase()==P)return C}}}})},67549:function(j,S,p){(function(E){E(p(89780))})(function(E){"use strict";E.defineMode("stex",function(I,D){"use strict";function P(Ft,_t){Ft.cmdState.push(_t)}function V(Ft){return Ft.cmdState.length>0?Ft.cmdState[Ft.cmdState.length-1]:null}function C(Ft){var _t=Ft.cmdState.pop();_t&&_t.closeBracket()}function Z(Ft){for(var _t=Ft.cmdState,Ct=_t.length-1;Ct>=0;Ct--){var xt=_t[Ct];if(xt.name!="DEFAULT")return xt}return{styleIdentifier:function(){return null}}}function lt(Ft,_t,Ct){return function(){this.name=Ft,this.bracketNo=0,this.style=_t,this.styles=Ct,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var J={};J.importmodule=lt("importmodule","tag",["string","builtin"]),J.documentclass=lt("documentclass","tag",["","atom"]),J.usepackage=lt("usepackage","tag",["atom"]),J.begin=lt("begin","tag",["atom"]),J.end=lt("end","tag",["atom"]),J.label=lt("label","tag",["atom"]),J.ref=lt("ref","tag",["atom"]),J.eqref=lt("eqref","tag",["atom"]),J.cite=lt("cite","tag",["atom"]),J.bibitem=lt("bibitem","tag",["atom"]),J.Bibitem=lt("Bibitem","tag",["atom"]),J.RBibitem=lt("RBibitem","tag",["atom"]),J.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Y(Ft,_t){Ft.f=_t}function Mt(Ft,_t){var Ct;if(Ft.match(/^\\[a-zA-Z@]+/)){var xt=Ft.current().slice(1);return Ct=J.hasOwnProperty(xt)?J[xt]:J.DEFAULT,Ct=new Ct,P(_t,Ct),Y(_t,$t),Ct.style}if(Ft.match(/^\\[$&%#{}_]/)||Ft.match(/^\\[,;!\/\\]/))return"tag";if(Ft.match("\\["))return Y(_t,function(ft,vt){return ct(ft,vt,"\\]")}),"keyword";if(Ft.match("\\("))return Y(_t,function(ft,vt){return ct(ft,vt,"\\)")}),"keyword";if(Ft.match("$$"))return Y(_t,function(ft,vt){return ct(ft,vt,"$$")}),"keyword";if(Ft.match("$"))return Y(_t,function(ft,vt){return ct(ft,vt,"$")}),"keyword";var St=Ft.next();if(St=="%")return Ft.skipToEnd(),"comment";if(St=="}"||St=="]"){if(Ct=V(_t),Ct)Ct.closeBracket(St),Y(_t,$t);else return"error";return"bracket"}else return St=="{"||St=="["?(Ct=J.DEFAULT,Ct=new Ct,P(_t,Ct),"bracket"):/\d/.test(St)?(Ft.eatWhile(/[\w.%]/),"atom"):(Ft.eatWhile(/[\w\-_]/),Ct=Z(_t),Ct.name=="begin"&&(Ct.argument=Ft.current()),Ct.styleIdentifier())}function ct(Ft,_t,Ct){if(Ft.eatSpace())return null;if(Ct&&Ft.match(Ct))return Y(_t,Mt),"keyword";if(Ft.match(/^\\[a-zA-Z@]+/))return"tag";if(Ft.match(/^[a-zA-Z]+/))return"variable-2";if(Ft.match(/^\\[$&%#{}_]/)||Ft.match(/^\\[,;!\/]/)||Ft.match(/^[\^_&]/))return"tag";if(Ft.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ft.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var xt=Ft.next();return xt=="{"||xt=="}"||xt=="["||xt=="]"||xt=="("||xt==")"?"bracket":xt=="%"?(Ft.skipToEnd(),"comment"):"error"}function $t(Ft,_t){var Ct=Ft.peek(),xt;return Ct=="{"||Ct=="["?(xt=V(_t),xt.openBracket(Ct),Ft.eat(Ct),Y(_t,Mt),"bracket"):/[ \t\r]/.test(Ct)?(Ft.eat(Ct),null):(Y(_t,Mt),C(_t),Mt(Ft,_t))}return{startState:function(){var Ft=D.inMathMode?function(_t,Ct){return ct(_t,Ct)}:Mt;return{cmdState:[],f:Ft}},copyState:function(Ft){return{cmdState:Ft.cmdState.slice(),f:Ft.f}},token:function(Ft,_t){return _t.f(Ft,_t)},blankLine:function(Ft){Ft.f=Mt,Ft.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(j,S,p){(function(E){E(p(89780))})(function(E){"use strict";var I={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},D={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(P,V){var C=P.indentUnit,Z={},lt=V.htmlMode?I:D;for(var J in lt)Z[J]=lt[J];for(var J in V)Z[J]=V[J];var Y,Mt;function ct(gt,Pt){function kt(le){return Pt.tokenize=le,le(gt,Pt)}var Gt=gt.next();if(Gt=="<")return gt.eat("!")?gt.eat("[")?gt.match("CDATA[")?kt(_t("atom","]]>")):null:gt.match("--")?kt(_t("comment","-->")):gt.match("DOCTYPE",!0,!0)?(gt.eatWhile(/[\w\._\-]/),kt(Ct(1))):null:gt.eat("?")?(gt.eatWhile(/[\w\._\-]/),Pt.tokenize=_t("meta","?>"),"meta"):(Y=gt.eat("/")?"closeTag":"openTag",Pt.tokenize=$t,"tag bracket");if(Gt=="&"){var ue;return gt.eat("#")?gt.eat("x")?ue=gt.eatWhile(/[a-fA-F\d]/)&>.eat(";"):ue=gt.eatWhile(/[\d]/)&>.eat(";"):ue=gt.eatWhile(/[\w\.\-:]/)&>.eat(";"),ue?"atom":"error"}else return gt.eatWhile(/[^&<]/),null}ct.isInText=!0;function $t(gt,Pt){var kt=gt.next();if(kt==">"||kt=="/"&>.eat(">"))return Pt.tokenize=ct,Y=kt==">"?"endTag":"selfcloseTag","tag bracket";if(kt=="=")return Y="equals",null;if(kt=="<"){Pt.tokenize=ct,Pt.state=vt,Pt.tagName=Pt.tagStart=null;var Gt=Pt.tokenize(gt,Pt);return Gt?Gt+" tag error":"tag error"}else return/[\'\"]/.test(kt)?(Pt.tokenize=Ft(kt),Pt.stringStartCol=gt.column(),Pt.tokenize(gt,Pt)):(gt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ft(gt){var Pt=function(kt,Gt){for(;!kt.eol();)if(kt.next()==gt){Gt.tokenize=$t;break}return"string"};return Pt.isInAttribute=!0,Pt}function _t(gt,Pt){return function(kt,Gt){for(;!kt.eol();){if(kt.match(Pt)){Gt.tokenize=ct;break}kt.next()}return gt}}function Ct(gt){return function(Pt,kt){for(var Gt;(Gt=Pt.next())!=null;){if(Gt=="<")return kt.tokenize=Ct(gt+1),kt.tokenize(Pt,kt);if(Gt==">")if(gt==1){kt.tokenize=ct;break}else return kt.tokenize=Ct(gt-1),kt.tokenize(Pt,kt)}return"meta"}}function xt(gt,Pt,kt){this.prev=gt.context,this.tagName=Pt,this.indent=gt.indented,this.startOfLine=kt,(Z.doNotIndent.hasOwnProperty(Pt)||gt.context&>.context.noIndent)&&(this.noIndent=!0)}function St(gt){gt.context&&(gt.context=gt.context.prev)}function ft(gt,Pt){for(var kt;;){if(!gt.context||(kt=gt.context.tagName,!Z.contextGrabbers.hasOwnProperty(kt)||!Z.contextGrabbers[kt].hasOwnProperty(Pt)))return;St(gt)}}function vt(gt,Pt,kt){return gt=="openTag"?(kt.tagStart=Pt.column(),ot):gt=="closeTag"?st:vt}function ot(gt,Pt,kt){return gt=="word"?(kt.tagName=Pt.current(),Mt="tag",Bt):Z.allowMissingTagName&>=="endTag"?(Mt="tag bracket",Bt(gt,Pt,kt)):(Mt="error",ot)}function st(gt,Pt,kt){if(gt=="word"){var Gt=Pt.current();return kt.context&&kt.context.tagName!=Gt&&Z.implicitlyClosed.hasOwnProperty(kt.context.tagName)&&St(kt),kt.context&&kt.context.tagName==Gt||Z.matchClosing===!1?(Mt="tag",q):(Mt="tag error",wt)}else return Z.allowMissingTagName&>=="endTag"?(Mt="tag bracket",q(gt,Pt,kt)):(Mt="error",wt)}function q(gt,Pt,kt){return gt!="endTag"?(Mt="error",q):(St(kt),vt)}function wt(gt,Pt,kt){return Mt="error",q(gt,Pt,kt)}function Bt(gt,Pt,kt){if(gt=="word")return Mt="attribute",pt;if(gt=="endTag"||gt=="selfcloseTag"){var Gt=kt.tagName,ue=kt.tagStart;return kt.tagName=kt.tagStart=null,gt=="selfcloseTag"||Z.autoSelfClosers.hasOwnProperty(Gt)?ft(kt,Gt):(ft(kt,Gt),kt.context=new xt(kt,Gt,ue==kt.indented)),vt}return Mt="error",Bt}function pt(gt,Pt,kt){return gt=="equals"?Ht:(Z.allowMissing||(Mt="error"),Bt(gt,Pt,kt))}function Ht(gt,Pt,kt){return gt=="string"?At:gt=="word"&&Z.allowUnquoted?(Mt="string",Bt):(Mt="error",Bt(gt,Pt,kt))}function At(gt,Pt,kt){return gt=="string"?At:Bt(gt,Pt,kt)}return{startState:function(gt){var Pt={tokenize:ct,state:vt,indented:gt||0,tagName:null,tagStart:null,context:null};return gt!=null&&(Pt.baseIndent=gt),Pt},token:function(gt,Pt){if(!Pt.tagName&>.sol()&&(Pt.indented=gt.indentation()),gt.eatSpace())return null;Y=null;var kt=Pt.tokenize(gt,Pt);return(kt||Y)&&kt!="comment"&&(Mt=null,Pt.state=Pt.state(Y||kt,gt,Pt),Mt&&(kt=Mt=="error"?kt+" error":Mt)),kt},indent:function(gt,Pt,kt){var Gt=gt.context;if(gt.tokenize.isInAttribute)return gt.tagStart==gt.indented?gt.stringStartCol+1:gt.indented+C;if(Gt&&Gt.noIndent)return E.Pass;if(gt.tokenize!=$t&>.tokenize!=ct)return kt?kt.match(/^(\s*)/)[0].length:0;if(gt.tagName)return Z.multilineTagIndentPastTag!==!1?gt.tagStart+gt.tagName.length+2:gt.tagStart+C*(Z.multilineTagIndentFactor||1);if(Z.alignCDATA&&/<!\[CDATA\[/.test(Pt))return 0;var ue=Pt&&/^<(\/)?([\w_:\.-]*)/.exec(Pt);if(ue&&ue[1])for(;Gt;)if(Gt.tagName==ue[2]){Gt=Gt.prev;break}else if(Z.implicitlyClosed.hasOwnProperty(Gt.tagName))Gt=Gt.prev;else break;else if(ue)for(;Gt;){var le=Z.contextGrabbers[Gt.tagName];if(le&&le.hasOwnProperty(ue[2]))Gt=Gt.prev;else break}for(;Gt&&Gt.prev&&!Gt.startOfLine;)Gt=Gt.prev;return Gt?Gt.indent+C:gt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Z.htmlMode?"html":"xml",helperType:Z.htmlMode?"html":"xml",skipAttribute:function(gt){gt.state==Ht&&(gt.state=Bt)},xmlCurrentTag:function(gt){return gt.tagName?{name:gt.tagName,close:gt.type=="closeTag"}:null},xmlCurrentContext:function(gt){for(var Pt=[],kt=gt.context;kt;kt=kt.prev)kt.tagName&&Pt.push(kt.tagName);return Pt.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(j,S){"use strict";var p;S.Q=P,p=V;var E=",",I=" ",D="";function P(C){for(var Z=[],lt=String(C||D),J=lt.indexOf(E),Y=0,Mt=!1,ct;!Mt;)J===-1&&(J=lt.length,Mt=!0),ct=lt.slice(Y,J).trim(),(ct||!Mt)&&Z.push(ct),Y=J+1,J=lt.indexOf(E,Y);return Z}function V(C,Z){var lt=Z||{},J=lt.padLeft===!1?D:I,Y=lt.padRight?I:D;return C[C.length-1]===D&&(C=C.concat(D)),C.join(Y+E+J).trim()}},86204:function(j){"use strict";var S=typeof Reflect=="object"?Reflect:null,p=S&&typeof S.apply=="function"?S.apply:function(vt,ot,st){return Function.prototype.apply.call(vt,ot,st)},E;S&&typeof S.ownKeys=="function"?E=S.ownKeys:Object.getOwnPropertySymbols?E=function(vt){return Object.getOwnPropertyNames(vt).concat(Object.getOwnPropertySymbols(vt))}:E=function(vt){return Object.getOwnPropertyNames(vt)};function I(ft){console&&console.warn&&console.warn(ft)}var D=Number.isNaN||function(vt){return vt!==vt};function P(){P.init.call(this)}j.exports=P,j.exports.once=Ct,P.EventEmitter=P,P.prototype._events=void 0,P.prototype._eventsCount=0,P.prototype._maxListeners=void 0;var V=10;function C(ft){if(typeof ft!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ft)}Object.defineProperty(P,"defaultMaxListeners",{enumerable:!0,get:function(){return V},set:function(ft){if(typeof ft!="number"||ft<0||D(ft))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ft+".");V=ft}}),P.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},P.prototype.setMaxListeners=function(vt){if(typeof vt!="number"||vt<0||D(vt))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+vt+".");return this._maxListeners=vt,this};function Z(ft){return ft._maxListeners===void 0?P.defaultMaxListeners:ft._maxListeners}P.prototype.getMaxListeners=function(){return Z(this)},P.prototype.emit=function(vt){for(var ot=[],st=1;st<arguments.length;st++)ot.push(arguments[st]);var q=vt==="error",wt=this._events;if(wt!==void 0)q=q&&wt.error===void 0;else if(!q)return!1;if(q){var Bt;if(ot.length>0&&(Bt=ot[0]),Bt instanceof Error)throw Bt;var pt=new Error("Unhandled error."+(Bt?" ("+Bt.message+")":""));throw pt.context=Bt,pt}var Ht=wt[vt];if(Ht===void 0)return!1;if(typeof Ht=="function")p(Ht,this,ot);else for(var At=Ht.length,gt=$t(Ht,At),st=0;st<At;++st)p(gt[st],this,ot);return!0};function lt(ft,vt,ot,st){var q,wt,Bt;if(C(ot),wt=ft._events,wt===void 0?(wt=ft._events=Object.create(null),ft._eventsCount=0):(wt.newListener!==void 0&&(ft.emit("newListener",vt,ot.listener?ot.listener:ot),wt=ft._events),Bt=wt[vt]),Bt===void 0)Bt=wt[vt]=ot,++ft._eventsCount;else if(typeof Bt=="function"?Bt=wt[vt]=st?[ot,Bt]:[Bt,ot]:st?Bt.unshift(ot):Bt.push(ot),q=Z(ft),q>0&&Bt.length>q&&!Bt.warned){Bt.warned=!0;var pt=new Error("Possible EventEmitter memory leak detected. "+Bt.length+" "+String(vt)+" listeners added. Use emitter.setMaxListeners() to increase limit");pt.name="MaxListenersExceededWarning",pt.emitter=ft,pt.type=vt,pt.count=Bt.length,I(pt)}return ft}P.prototype.addListener=function(vt,ot){return lt(this,vt,ot,!1)},P.prototype.on=P.prototype.addListener,P.prototype.prependListener=function(vt,ot){return lt(this,vt,ot,!0)};function J(){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 Y(ft,vt,ot){var st={fired:!1,wrapFn:void 0,target:ft,type:vt,listener:ot},q=J.bind(st);return q.listener=ot,st.wrapFn=q,q}P.prototype.once=function(vt,ot){return C(ot),this.on(vt,Y(this,vt,ot)),this},P.prototype.prependOnceListener=function(vt,ot){return C(ot),this.prependListener(vt,Y(this,vt,ot)),this},P.prototype.removeListener=function(vt,ot){var st,q,wt,Bt,pt;if(C(ot),q=this._events,q===void 0)return this;if(st=q[vt],st===void 0)return this;if(st===ot||st.listener===ot)--this._eventsCount===0?this._events=Object.create(null):(delete q[vt],q.removeListener&&this.emit("removeListener",vt,st.listener||ot));else if(typeof st!="function"){for(wt=-1,Bt=st.length-1;Bt>=0;Bt--)if(st[Bt]===ot||st[Bt].listener===ot){pt=st[Bt].listener,wt=Bt;break}if(wt<0)return this;wt===0?st.shift():Ft(st,wt),st.length===1&&(q[vt]=st[0]),q.removeListener!==void 0&&this.emit("removeListener",vt,pt||ot)}return this},P.prototype.off=P.prototype.removeListener,P.prototype.removeAllListeners=function(vt){var ot,st,q;if(st=this._events,st===void 0)return this;if(st.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):st[vt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete st[vt]),this;if(arguments.length===0){var wt=Object.keys(st),Bt;for(q=0;q<wt.length;++q)Bt=wt[q],Bt!=="removeListener"&&this.removeAllListeners(Bt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(ot=st[vt],typeof ot=="function")this.removeListener(vt,ot);else if(ot!==void 0)for(q=ot.length-1;q>=0;q--)this.removeListener(vt,ot[q]);return this};function Mt(ft,vt,ot){var st=ft._events;if(st===void 0)return[];var q=st[vt];return q===void 0?[]:typeof q=="function"?ot?[q.listener||q]:[q]:ot?_t(q):$t(q,q.length)}P.prototype.listeners=function(vt){return Mt(this,vt,!0)},P.prototype.rawListeners=function(vt){return Mt(this,vt,!1)},P.listenerCount=function(ft,vt){return typeof ft.listenerCount=="function"?ft.listenerCount(vt):ct.call(ft,vt)},P.prototype.listenerCount=ct;function ct(ft){var vt=this._events;if(vt!==void 0){var ot=vt[ft];if(typeof ot=="function")return 1;if(ot!==void 0)return ot.length}return 0}P.prototype.eventNames=function(){return this._eventsCount>0?E(this._events):[]};function $t(ft,vt){for(var ot=new Array(vt),st=0;st<vt;++st)ot[st]=ft[st];return ot}function Ft(ft,vt){for(;vt+1<ft.length;vt++)ft[vt]=ft[vt+1];ft.pop()}function _t(ft){for(var vt=new Array(ft.length),ot=0;ot<vt.length;++ot)vt[ot]=ft[ot].listener||ft[ot];return vt}function Ct(ft,vt){return new Promise(function(ot,st){function q(Bt){ft.removeListener(vt,wt),st(Bt)}function wt(){typeof ft.removeListener=="function"&&ft.removeListener("error",q),ot([].slice.call(arguments))}St(ft,vt,wt,{once:!0}),vt!=="error"&&xt(ft,q,{once:!0})})}function xt(ft,vt,ot){typeof ft.on=="function"&&St(ft,"error",vt,ot)}function St(ft,vt,ot,st){if(typeof ft.on=="function")st.once?ft.once(vt,ot):ft.on(vt,ot);else if(typeof ft.addEventListener=="function")ft.addEventListener(vt,function q(wt){st.once&&ft.removeEventListener(vt,q),ot(wt)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ft)}},58847:function(j){"use strict";var S=Object.prototype.hasOwnProperty,p=Object.prototype.toString,E=Object.defineProperty,I=Object.getOwnPropertyDescriptor,D=function(lt){return typeof Array.isArray=="function"?Array.isArray(lt):p.call(lt)==="[object Array]"},P=function(lt){if(!lt||p.call(lt)!=="[object Object]")return!1;var J=S.call(lt,"constructor"),Y=lt.constructor&<.constructor.prototype&&S.call(lt.constructor.prototype,"isPrototypeOf");if(lt.constructor&&!J&&!Y)return!1;var Mt;for(Mt in lt);return typeof Mt=="undefined"||S.call(lt,Mt)},V=function(lt,J){E&&J.name==="__proto__"?E(lt,J.name,{enumerable:!0,configurable:!0,value:J.newValue,writable:!0}):lt[J.name]=J.newValue},C=function(lt,J){if(J==="__proto__")if(S.call(lt,J)){if(I)return I(lt,J).value}else return;return lt[J]};j.exports=function Z(){var lt,J,Y,Mt,ct,$t,Ft=arguments[0],_t=1,Ct=arguments.length,xt=!1;for(typeof Ft=="boolean"&&(xt=Ft,Ft=arguments[1]||{},_t=2),(Ft==null||typeof Ft!="object"&&typeof Ft!="function")&&(Ft={});_t<Ct;++_t)if(lt=arguments[_t],lt!=null)for(J in lt)Y=C(Ft,J),Mt=C(lt,J),Ft!==Mt&&(xt&&Mt&&(P(Mt)||(ct=D(Mt)))?(ct?(ct=!1,$t=Y&&D(Y)?Y:[]):$t=Y&&P(Y)?Y:{},V(Ft,{name:J,newValue:Z(xt,$t,Mt)})):typeof Mt!="undefined"&&V(Ft,{name:J,newValue:Mt}));return Ft}},12378:function(j,S,p){"use strict";p.d(S,{$u:function(){return J},BD:function(){return K},E9:function(){return lt},FF:function(){return wi},FJ:function(){return vt},Hn:function(){return ft},KX:function(){return st},NB:function(){return qt},S0:function(){return un},UL:function(){return Y},Vk:function(){return St},Vm:function(){return de},YI:function(){return Ln},ZA:function(){return D},Zt:function(){return Mt},al:function(){return _},bn:function(){return tt},bx:function(){return O},g2:function(){return Dn},h1:function(){return Ht},hD:function(){return bt},l4:function(){return C},rU:function(){return he},s_:function(){return k},uz:function(){return Ke},z6:function(){return ct}}),j=p.hmd(j),function(){var A;function Pn(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function gn(t){var e=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:Pn(t)}}function $n(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var Fi=typeof Object.create=="function"?Object.create:function(t){function e(){}return e.prototype=t,new e},Ki;if(typeof Object.setPrototypeOf=="function")Ki=Object.setPrototypeOf;else{var pi;t:{var so={a:!0},Zi={};try{Zi.__proto__=so,pi=Zi.a;break t}catch(t){}pi=!1}Ki=pi?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var or=Ki;function Yn(t,e){if(t.prototype=Fi(e.prototype),t.prototype.constructor=t,or)or(t,e);else for(var n in e)if(n!="prototype")if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}else t[n]=e[n];t.QA=e.prototype}var Mn=typeof p.g!="undefined"&&p.g!=null?p.g:self,fr=typeof Object.assign=="function"?Object.assign:function(t,e){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},Li=typeof Object.defineProperties=="function"?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};function Xi(t,e){if(e){var n=Mn;t=t.split(".");for(var i=0;i<t.length-1;i++){var r=t[i];r in n||(n[r]={}),n=n[r]}t=t[t.length-1],i=n[t],e=e(i),e!=i&&e!=null&&Li(n,t,{writable:!0,value:e})}}Xi("Object.assign",function(t){return t||fr}),Xi("Array.prototype.fill",function(t){return t||function(e,n,i){var r=this.length||0;for(0>n&&(n=Math.max(0,r+n)),(i==null||i>r)&&(i=r),i=Number(i),0>i&&(i=Math.max(0,r+i)),n=Number(n||0);n<i;n++)this[n]=e;return this}});var sn=typeof globalThis=="object"&&globalThis||typeof p.g=="object"&&p.g.global===p.g&&p.g||typeof self=="object"&&self.self===self&&self||{};sn.requestAnimationFrame===void 0&&(sn.setImmediate===void 0?sn.requestAnimationFrame=function(t){sn.setTimeout(t,0)}:sn.requestAnimationFrame=sn.setImmediate);function zn(){}function Wi(t,e){var n=-1;return function(){var i=this,r=arguments;n!==-1&&sn.clearTimeout(n),n=Ur(function(){n=-1,t.apply(i,r)},e)}}function Ur(t,e){return sn.setTimeout(t,e)}function Nr(t){return sn.document.createElement(t)}function Et(t){throw Error(t)}function Wt(t,e){t="The object is frozen, so its properties cannot be set: "+t.toString(),e!==void 0&&(t+=" to value: "+e),Et(t)}function rn(t,e,n,i){n=n===null?"*":typeof n=="string"?n:typeof n=="function"&&typeof n.className=="string"?n.className:"",i!==void 0&&(n+="."+i),Et(n+" is not in the range "+e+": "+t)}function cn(t){sn.console&&sn.console.log(t)}function Ut(t){return typeof t=="object"&&t!==null}function Ye(t){return Array.isArray(t)||sn.NodeList&&t instanceof sn.NodeList||sn.HTMLCollection&&t instanceof sn.HTMLCollection}function kn(t){return Array.prototype.slice.call(t)}function te(t,e,n){Array.isArray(t)?e>=t.length?t.push(n):t.splice(e,0,n):Et("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+e)}function R(t,e){Array.isArray(t)?e>=t.length?t.pop():t.splice(e,1):Et("Cannot remove an object from an HTMLCollection or NodeList at "+e)}function bn(){var t=Ir.pop();return t===void 0?[]:t}function En(t){t.length=0,Ir.push(t)}function ve(t){if(typeof t=="function"){if(t.className)return t.className;if(t.name)return t.name;var e=t.toString();if(e=e.substring(9,e.indexOf("(")).trim(),e!=="")return t._className=e}else if(Ut(t)&&t.constructor)return ve(t.constructor);return typeof t}function li(t){var e=t;return Ut(t)&&(t.text?e=t.text:t.name?e=t.name:t.key!==void 0?e=t.key:t.id!==void 0?e=t.id:t.constructor===Object&&(t.Text?e=t.Text:t.Name?e=t.Name:t.Key!==void 0?e=t.Key:t.Id!==void 0?e=t.Id:t.ID!==void 0&&(e=t.ID))),e===void 0?"undefined":e===null?"null":e.toString()}function Wn(t,e){if(t.hasOwnProperty(e))return!0;for(t=Object.getPrototypeOf(t);t&&t!==Function;){if(t.hasOwnProperty(e))return!0;var n=t.CA;if(n&&n[e])return!0;t=Object.getPrototypeOf(t)}return!1}function ni(t,e,n){Object.defineProperty(Dr.prototype,t,{get:e,set:n})}function yn(t){for(var e=[],n=0;256>n;n++)e["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(n&15)]=String.fromCharCode(n);t.length%2&&(t="0"+t),n=[];for(var i=0,r=0;r<t.length;r+=2)n[i++]=e[t.substr(r,2)];for(t=n.join(""),t=t===""?"0":t,e=[],n=0;256>n;n++)e[n]=n;for(n=i=0;256>n;n++)i=(i+e[n]+119)%256,r=e[n],e[n]=e[i],e[i]=r;i=n=0;for(var o="",s=0;s<t.length;s++)n=(n+1)%256,i=(i+e[n])%256,r=e[n],e[n]=e[i],e[i]=r,o+=String.fromCharCode(t.charCodeAt(s)^e[(e[n]+e[i])%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 jt=sn.navigator!==void 0&&0<sn.navigator.userAgent.indexOf("Trident/7"),ui=sn.navigator!==void 0&&sn.navigator.platform!==void 0&&sn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Ir=[];Object.freeze([]),zn.className="Util",zn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",zn.adym="gojs.net",zn.vfo="28e645fdb266",zn.className="Util";function xe(t,e,n){Gn(this),this.j=t,this.xa=e,this.o=n}xe.prototype.toString=function(){return"EnumValue."+this.xa};function xr(t,e){return e==null||e===""?null:t[e]}Mn.Object.defineProperties(xe.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),xe.className="EnumValue";function Lr(){this.ew=[]}Lr.prototype.toString=function(){return this.ew.join("")},Lr.prototype.add=function(t){t!==""&&this.ew.push(t)},Lr.className="StringBuilder";function Ai(){}Ai.className="PropertyCollection";var Rr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(t){sn.console&&sn.console.log(t)},HA:function(t,e,n,i){t.strokeStyle="red",t.fillStyle="red",t.font="8px sans-serif",t.beginPath(),t.moveTo(-10,0),t.lineTo(10,0),t.moveTo(0,-10),t.lineTo(0,10),t.stroke(),t.setTransform(1,0,0,1,0,0),t.scale(n,n),t.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),t.lineWidth=2,t.beginPath(),t.moveTo(i.left,i.top+20),t.lineTo(i.left,i.top),t.lineTo(i.left+20,i.top),t.moveTo(i.right,i.bottom-20),t.lineTo(i.right,i.bottom),t.lineTo(i.right-20,i.bottom),t.stroke(),t.fillText("DB: "+Math.round(i.x)+", "+Math.round(i.y)+", "+Math.round(i.width)+", "+Math.round(i.height),i.left,i.top-5)},DA:function(t){var e={},n;for(n in t){if(e.x=n,e.x!=="licenseKey"){var i=t[e.x];if(i.prototype!==void 0){e.Zl=Object.getOwnPropertyNames(i.prototype);for(var r={Tj:0};r.Tj<e.Zl.length;r={Tj:r.Tj},r.Tj++){var o=Object.getOwnPropertyDescriptor(i.prototype,e.Zl[r.Tj]);o.get!==void 0&&o.set===void 0&&Object.defineProperty(i.prototype,e.Zl[r.Tj],{set:function(s,l){return function(){throw Error("Property "+s.Zl[l.Tj]+" of "+s.x+" is read-only.")}}(e,r)})}}}e={Zl:e.Zl,x:e.x}}}};function nr(){}nr.prototype.reset=function(){},nr.prototype.next=function(){return!1},nr.prototype.Ad=function(){return!1},nr.prototype.first=function(){return null},nr.prototype.any=function(){return!1},nr.prototype.all=function(){return!0},nr.prototype.each=function(){return this},nr.prototype.map=function(){return this},nr.prototype.filter=function(){return this},nr.prototype.de=function(){},nr.prototype.toString=function(){return"EmptyIterator"},Mn.Object.defineProperties(nr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),nr.prototype.first=nr.prototype.first,nr.prototype.hasNext=nr.prototype.Ad,nr.prototype.next=nr.prototype.next,nr.prototype.reset=nr.prototype.reset;var sr=null;nr.className="EmptyIterator",sr=new nr;function ji(t){this.key=-1,this.value=t}ji.prototype.reset=function(){this.key=-1},ji.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},ji.prototype.Ad=function(){return this.next()},ji.prototype.first=function(){return this.key=0,this.value},ji.prototype.any=function(t){return this.key=-1,t(this.value)},ji.prototype.all=function(t){return this.key=-1,t(this.value)},ji.prototype.each=function(t){return this.key=-1,t(this.value),this},ji.prototype.map=function(t){return new ji(t(this.value))},ji.prototype.filter=function(t){return t(this.value)?new ji(this.value):sr},ji.prototype.de=function(){this.value=null},ji.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Mn.Object.defineProperties(ji.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),ji.prototype.first=ji.prototype.first,ji.prototype.hasNext=ji.prototype.Ad,ji.prototype.next=ji.prototype.next,ji.prototype.reset=ji.prototype.reset,ji.className="SingletonIterator";function qi(t){this.Bb=t,this.qf=null,t.Sa=null,this.qa=t.Ja,this.Za=-1}qi.prototype.reset=function(){var t=this.Bb;t.Sa=null,this.qa=t.Ja,this.Za=-1},qi.prototype.next=function(){var t=this.Bb;if(t.Ja!==this.qa&&0>this.key)return!1;t=t.s;var e=t.length,n=++this.Za,i=this.qf;if(i!==null)for(;n<e;){var r=t[n];if(i(r))return this.key=this.Za=n,this.value=r,!0;n++}else{if(n<e)return this.key=n,this.value=t[n],!0;this.de()}return!1},qi.prototype.Ad=function(){return this.next()},qi.prototype.first=function(){var t=this.Bb;this.qa=t.Ja,this.Za=0,t=t.s;var e=t.length,n=this.qf;if(n!==null){for(var i=0;i<e;){var r=t[i];if(n(r))return this.key=this.Za=i,this.value=r;i++}return null}return 0<e?(t=t[0],this.key=0,this.value=t):null},qi.prototype.any=function(t){var e=this.Bb;e.Sa=null,this.Za=-1,e=e.s;for(var n=e.length,i=this.qf,r=0;r<n;r++){var o=e[r];if((i===null||i(o))&&t(o))return!0}return!1},qi.prototype.all=function(t){var e=this.Bb;e.Sa=null,this.Za=-1,e=e.s;for(var n=e.length,i=this.qf,r=0;r<n;r++){var o=e[r];if((i===null||i(o))&&!t(o))return!1}return!0},qi.prototype.each=function(t){var e=this.Bb;e.Sa=null,this.Za=-1,e=e.s;for(var n=e.length,i=this.qf,r=0;r<n;r++){var o=e[r];(i===null||i(o))&&t(o)}return this},qi.prototype.map=function(t){var e=this.Bb;e.Sa=null,this.Za=-1;var n=[];e=e.s;for(var i=e.length,r=this.qf,o=0;o<i;o++){var s=e[o];(r===null||r(s))&&n.push(t(s))}return t=new Te,t.s=n,t.xb(),t.iterator},qi.prototype.filter=function(t){var e=this.Bb;e.Sa=null,this.Za=-1;var n=[];e=e.s;for(var i=e.length,r=this.qf,o=0;o<i;o++){var s=e[o];(r===null||r(s))&&t(s)&&n.push(s)}return t=new Te,t.s=n,t.xb(),t.iterator},qi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},qi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Mn.Object.defineProperties(qi.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(t){this.qf=t}},count:{get:function(){var t=this.qf;if(t!==null){for(var e=0,n=this.Bb.s,i=n.length,r=0;r<i;r++)t(n[r])&&e++;return e}return this.Bb.s.length}}}),qi.prototype.first=qi.prototype.first,qi.prototype.hasNext=qi.prototype.Ad,qi.prototype.next=qi.prototype.next,qi.prototype.reset=qi.prototype.reset,qi.className="ListIterator";function ir(t){this.Bb=t,t.Hg=null,this.qa=t.Ja,this.Za=t.s.length}ir.prototype.reset=function(){var t=this.Bb;t.Hg=null,this.qa=t.Ja,this.Za=t.s.length},ir.prototype.next=function(){var t=this.Bb;if(t.Ja!==this.qa&&0>this.key)return!1;var e=--this.Za;return 0<=e?(this.key=e,this.value=t.s[e],!0):(this.de(),!1)},ir.prototype.Ad=function(){return this.next()},ir.prototype.first=function(){var t=this.Bb;this.qa=t.Ja;var e=t.s;return this.Za=t=e.length-1,0<=t?(e=e[t],this.key=t,this.value=e):null},ir.prototype.any=function(t){var e=this.Bb;e.Hg=null,e=e.s;var n=e.length;for(this.Za=n,--n;0<=n;n--)if(t(e[n]))return!0;return!1},ir.prototype.all=function(t){var e=this.Bb;e.Hg=null,e=e.s;var n=e.length;for(this.Za=n,--n;0<=n;n--)if(!t(e[n]))return!1;return!0},ir.prototype.each=function(t){var e=this.Bb;e.Hg=null,e=e.s;var n=e.length;for(this.Za=n,--n;0<=n;n--)t(e[n]);return this},ir.prototype.map=function(t){var e=this.Bb;e.Hg=null;var n=[];e=e.s;var i=e.length;for(this.Za=i,--i;0<=i;i--)n.push(t(e[i]));return t=new Te,t.s=n,t.xb(),t.iterator},ir.prototype.filter=function(t){var e=this.Bb;e.Hg=null;var n=[];e=e.s;var i=e.length;for(this.Za=i,--i;0<=i;i--){var r=e[i];t(r)&&n.push(r)}return t=new Te,t.s=n,t.xb(),t.iterator},ir.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},ir.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Mn.Object.defineProperties(ir.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),ir.prototype.first=ir.prototype.first,ir.prototype.hasNext=ir.prototype.Ad,ir.prototype.next=ir.prototype.next,ir.prototype.reset=ir.prototype.reset,ir.className="ListIteratorBackwards";function Te(t){Gn(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof t=="string"&&Et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),t!==void 0&&this.addAll(t)}A=Te.prototype,A.xb=function(){var t=this.Ja;t++,999999999<t&&(t=0),this.Ja=t},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return this._isFrozen=!1,this},A.toString=function(){return"List()#"+gi(this)},A.add=function(t){return t===null?this:(this._isFrozen&&Wt(this,t),this.s.push(t),this.xb(),this)},A.push=function(t){this.add(t)},A.addAll=function(t){if(t===null)return this;this._isFrozen&&Wt(this);var e=this.s;if(Ye(t))for(var n=t.length,i=0;i<n;i++)e.push(t[i]);else for(t=t.iterator;t.next();)e.push(t.value);return this.xb(),this},A.clear=function(){this._isFrozen&&Wt(this),this.s.length=0,this.xb()},A.contains=function(t){return t===null?!1:this.s.indexOf(t)!==-1},A.has=function(t){return this.contains(t)},A.indexOf=function(t){return t===null?-1:this.s.indexOf(t)},A.M=function(t){var e=this.s;return(0>t||t>=e.length)&&rn(t,"0 <= i < length",Te,"elt:i"),e[t]},A.get=function(t){return this.M(t)},A.cd=function(t,e){var n=this.s;(0>t||t>=n.length)&&rn(t,"0 <= i < length",Te,"setElt:i"),this._isFrozen&&Wt(this,t),n[t]=e},A.set=function(t,e){this.cd(t,e)},A.first=function(){var t=this.s;return t.length===0?null:t[0]},A.jc=function(){var t=this.s,e=t.length;return 0<e?t[e-1]:null},A.pop=function(){this._isFrozen&&Wt(this);var t=this.s;return 0<t.length?t.pop():null},Te.prototype.any=function(t){for(var e=this.s,n=e.length,i=0;i<n;i++)if(t(e[i]))return!0;return!1},Te.prototype.all=function(t){for(var e=this.s,n=e.length,i=0;i<n;i++)if(!t(e[i]))return!1;return!0},Te.prototype.each=function(t){for(var e=this.s,n=e.length,i=0;i<n;i++)t(e[i]);return this},Te.prototype.map=function(t){for(var e=new Te,n=[],i=this.s,r=i.length,o=0;o<r;o++)n.push(t(i[o]));return e.s=n,e.xb(),e},Te.prototype.filter=function(t){for(var e=new Te,n=[],i=this.s,r=i.length,o=0;o<r;o++){var s=i[o];t(s)&&n.push(s)}return e.s=n,e.xb(),e},A=Te.prototype,A.Gb=function(t,e){0>t&&rn(t,">= 0",Te,"insertAt:i"),this._isFrozen&&Wt(this,t);var n=this.s;t>=n.length?n.push(e):n.splice(t,0,e),this.xb()},A.remove=function(t){if(t===null)return!1;this._isFrozen&&Wt(this,t);var e=this.s;return t=e.indexOf(t),t===-1?!1:(t===e.length-1?e.pop():e.splice(t,1),this.xb(),!0)},A.delete=function(t){return this.remove(t)},A.mb=function(t){var e=this.s;(0>t||t>=e.length)&&rn(t,"0 <= i < length",Te,"removeAt:i"),this._isFrozen&&Wt(this,t),t===e.length-1?e.pop():e.splice(t,1),this.xb()},A.removeRange=function(t,e){var n=this.s,i=n.length;if(0>t)t=0;else if(t>=i)return this;if(0>e)return this;if(e>=i&&(e=i-1),t>e)return this;this._isFrozen&&Wt(this);for(var r=t,o=e+1;o<i;)n[r++]=n[o++];return n.length=i-(e-t+1),this.xb(),this},Te.prototype.copy=function(){var t=new Te,e=this.s;return 0<e.length&&(t.s=Array.prototype.slice.call(e)),t},A=Te.prototype,A.Fa=function(){for(var t=this.s,e=this.count,n=Array(e),i=0;i<e;i++)n[i]=t[i];return n},A.Iv=function(){for(var t=new Ce,e=this.s,n=this.count,i=0;i<n;i++)t.add(e[i]);return t},A.sort=function(t){return this._isFrozen&&Wt(this),this.s.sort(t),this.xb(),this},A.zi=function(t,e,n){var i=this.s,r=i.length;e===void 0&&(e=0),n===void 0&&(n=r),this._isFrozen&&Wt(this);var o=n-e;if(1>=o)return this;if((0>e||e>=r-1)&&rn(e,"0 <= from < length",Te,"sortRange:from"),o===2)return n=i[e],r=i[e+1],0<t(n,r)&&(i[e]=r,i[e+1]=n,this.xb()),this;if(e===0)if(n>=r)i.sort(t);else for(e=i.slice(0,n),e.sort(t),t=0;t<n;t++)i[t]=e[t];else if(n>=r)for(n=i.slice(e),n.sort(t),t=e;t<r;t++)i[t]=n[t-e];else for(r=i.slice(e,n),r.sort(t),t=e;t<n;t++)i[t]=r[t-e];return this.xb(),this},A.reverse=function(){return this._isFrozen&&Wt(this),this.s.reverse(),this.xb(),this},Mn.Object.defineProperties(Te.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 sr;var t=this.Sa;return t!==null?(t.reset(),t):new qi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return sr;var t=this.Hg;return t!==null?(t.reset(),t):new ir(this)}}}),Te.prototype.reverse=Te.prototype.reverse,Te.prototype.sortRange=Te.prototype.zi,Te.prototype.sort=Te.prototype.sort,Te.prototype.toSet=Te.prototype.Iv,Te.prototype.toArray=Te.prototype.Fa,Te.prototype.removeRange=Te.prototype.removeRange,Te.prototype.removeAt=Te.prototype.mb,Te.prototype.delete=Te.prototype.delete,Te.prototype.remove=Te.prototype.remove,Te.prototype.insertAt=Te.prototype.Gb,Te.prototype.pop=Te.prototype.pop,Te.prototype.last=Te.prototype.jc,Te.prototype.first=Te.prototype.first,Te.prototype.set=Te.prototype.set,Te.prototype.setElt=Te.prototype.cd,Te.prototype.get=Te.prototype.get,Te.prototype.elt=Te.prototype.M,Te.prototype.indexOf=Te.prototype.indexOf,Te.prototype.has=Te.prototype.has,Te.prototype.contains=Te.prototype.contains,Te.prototype.clear=Te.prototype.clear,Te.prototype.addAll=Te.prototype.addAll,Te.prototype.push=Te.prototype.push,Te.prototype.add=Te.prototype.add,Te.prototype.thaw=Te.prototype.ka,Te.prototype.freeze=Te.prototype.freeze,Te.className="List";function cr(t){this.eg=t,t.Sa=null,this.qa=t.Ja,this.sa=null}cr.prototype.reset=function(){var t=this.eg;t.Sa=null,this.qa=t.Ja,this.sa=null},cr.prototype.next=function(){var t=this.eg;if(t.Ja!==this.qa&&this.key===null)return!1;var e=this.sa;return e=e===null?t.ea:e.va,e!==null?(this.sa=e,this.value=e.value,this.key=e.key,!0):(this.de(),!1)},cr.prototype.Ad=function(){return this.next()},cr.prototype.first=function(){var t=this.eg;if(this.qa=t.Ja,t=t.ea,t!==null){this.sa=t;var e=t.value;return this.key=t.key,this.value=e}return null},cr.prototype.any=function(t){var e=this.eg;for(this.sa=e.Sa=null,e=e.ea;e!==null;){if(t(e.value))return!0;e=e.va}return!1},cr.prototype.all=function(t){var e=this.eg;for(this.sa=e.Sa=null,e=e.ea;e!==null;){if(!t(e.value))return!1;e=e.va}return!0},cr.prototype.each=function(t){var e=this.eg;for(this.sa=e.Sa=null,e=e.ea;e!==null;)t(e.value),e=e.va;return this},cr.prototype.map=function(t){var e=this.eg;e.Sa=null;var n=new Te;for(e=e.ea;e!==null;)n.add(t(e.value)),e=e.va;return n.iterator},cr.prototype.filter=function(t){var e=this.eg;e.Sa=null;var n=new Te;for(e=e.ea;e!==null;){var i=e.value;t(i)&&n.add(i),e=e.va}return n.iterator},cr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},cr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Mn.Object.defineProperties(cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),cr.prototype.first=cr.prototype.first,cr.prototype.hasNext=cr.prototype.Ad,cr.prototype.next=cr.prototype.next,cr.prototype.reset=cr.prototype.reset,cr.className="SetIterator";function Ce(t){Gn(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof t=="string"&&Et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),t!==void 0&&this.addAll(t)}A=Ce.prototype,A.xb=function(){var t=this.Ja;t++,999999999<t&&(t=0),this.Ja=t},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return this._isFrozen=!1,this},A.toString=function(){return"Set()#"+gi(this)},A.add=function(t){if(t===null)return this;this._isFrozen&&Wt(this,t);var e=t;return Ut(t)&&(e=Ri(t)),this.Tb[e]===void 0&&(this.Sb++,t=new Qt(t,t),this.Tb[e]=t,e=this.kf,e===null?this.ea=t:(t.ll=e,e.va=t),this.kf=t,this.xb()),this},A.addAll=function(t){if(t===null)return this;if(this._isFrozen&&Wt(this),Ye(t))for(var e=t.length,n=0;n<e;n++)this.add(t[n]);else for(t=t.iterator;t.next();)this.add(t.value);return this},A.contains=function(t){if(t===null)return!1;var e=t;return Ut(t)&&(e=gi(t),e===void 0)?!1:this.Tb[e]!==void 0},A.has=function(t){return this.contains(t)},A.Sy=function(t){if(t===null)return!0;for(t=t.iterator;t.next();)if(!this.contains(t.value))return!1;return!0},A.Ty=function(t){if(t===null)return!0;for(t=t.iterator;t.next();)if(this.contains(t.value))return!0;return!1},A.first=function(){var t=this.ea;return t===null?null:t.value},Ce.prototype.any=function(t){for(var e=this.ea;e!==null;){if(t(e.value))return!0;e=e.va}return!1},Ce.prototype.all=function(t){for(var e=this.ea;e!==null;){if(!t(e.value))return!1;e=e.va}return!0},Ce.prototype.each=function(t){for(var e=this.ea;e!==null;)t(e.value),e=e.va;return this},Ce.prototype.map=function(t){for(var e=new Ce,n=this.ea;n!==null;)e.add(t(n.value)),n=n.va;return e},Ce.prototype.filter=function(t){for(var e=new Ce,n=this.ea;n!==null;){var i=n.value;t(i)&&e.add(i),n=n.va}return e},A=Ce.prototype,A.remove=function(t){if(t===null)return!1;this._isFrozen&&Wt(this,t);var e=t;if(Ut(t)&&(e=gi(t),e===void 0)||(t=this.Tb[e],t===void 0))return!1;var n=t.va,i=t.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===t&&(this.ea=n),this.kf===t&&(this.kf=i),delete this.Tb[e],this.Sb--,this.xb(),!0},A.delete=function(t){return this.remove(t)},A.hp=function(t){if(t===null)return this;if(this._isFrozen&&Wt(this),Ye(t))for(var e=t.length,n=0;n<e;n++)this.remove(t[n]);else for(t=t.iterator;t.next();)this.remove(t.value);return this},A.pA=function(t){if(t===null||this.count===0)return this;this._isFrozen&&Wt(this);var e=new Ce;e.addAll(t),t=[];for(var n=this.iterator;n.next();){var i=n.value;e.contains(i)||t.push(i)}return this.hp(t),this},A.clear=function(){this._isFrozen&&Wt(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ce.prototype.copy=function(){var t=new Ce,e=this.Tb,n;for(n in e)t.add(e[n].value);return t},Ce.prototype.Fa=function(){var t=Array(this.Sb),e=this.Tb,n=0,i;for(i in e)t[n]=e[i].value,n++;return t},Ce.prototype.Hv=function(){var t=new Te,e=this.Tb,n;for(n in e)t.add(e[n].value);return t};function Gn(t){t.__gohashid=pr++}function Ri(t){var e=t.__gohashid;return e===void 0&&(e=pr++,t.__gohashid=e),e}function gi(t){return t.__gohashid}Mn.Object.defineProperties(Ce.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return sr;var t=this.Sa;return t!==null?(t.reset(),t):new cr(this)}}}),Ce.prototype.toList=Ce.prototype.Hv,Ce.prototype.toArray=Ce.prototype.Fa,Ce.prototype.clear=Ce.prototype.clear,Ce.prototype.retainAll=Ce.prototype.pA,Ce.prototype.removeAll=Ce.prototype.hp,Ce.prototype.delete=Ce.prototype.delete,Ce.prototype.remove=Ce.prototype.remove,Ce.prototype.first=Ce.prototype.first,Ce.prototype.containsAny=Ce.prototype.Ty,Ce.prototype.containsAll=Ce.prototype.Sy,Ce.prototype.has=Ce.prototype.has,Ce.prototype.contains=Ce.prototype.contains,Ce.prototype.addAll=Ce.prototype.addAll,Ce.prototype.add=Ce.prototype.add,Ce.prototype.thaw=Ce.prototype.ka,Ce.prototype.freeze=Ce.prototype.freeze;var pr=1;Ce.className="Set",Ce.uniqueHash=Gn,Ce.hashIdUnique=Ri,Ce.hashId=gi;function Bi(t){this.ma=t,this.qa=t.Ja,this.sa=null}Bi.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Bi.prototype.next=function(){var t=this.ma;if(t.Ja!==this.qa&&this.key===null)return!1;var e=this.sa;return e=e===null?t.ea:e.va,e!==null?(this.sa=e,this.value=this.key=t=e.key,!0):(this.de(),!1)},Bi.prototype.Ad=function(){return this.next()},Bi.prototype.first=function(){var t=this.ma;return this.qa=t.Ja,t=t.ea,t!==null?(this.sa=t,this.value=this.key=t=t.key):null},Bi.prototype.any=function(t){var e=this.ma;for(this.sa=null,e=e.ea;e!==null;){if(t(e.key))return!0;e=e.va}return!1},Bi.prototype.all=function(t){var e=this.ma;for(this.sa=null,e=e.ea;e!==null;){if(!t(e.key))return!1;e=e.va}return!0},Bi.prototype.each=function(t){var e=this.ma;for(this.sa=null,e=e.ea;e!==null;)t(e.key),e=e.va;return this},Bi.prototype.map=function(t){var e=this.ma;this.sa=null;var n=new Te;for(e=e.ea;e!==null;)n.add(t(e.key)),e=e.va;return n.iterator},Bi.prototype.filter=function(t){var e=this.ma;this.sa=null;var n=new Te;for(e=e.ea;e!==null;){var i=e.key;t(i)&&n.add(i),e=e.va}return n.iterator},Bi.prototype.de=function(){this.value=this.key=null,this.qa=-1},Bi.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Mn.Object.defineProperties(Bi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Bi.prototype.first=Bi.prototype.first,Bi.prototype.hasNext=Bi.prototype.Ad,Bi.prototype.next=Bi.prototype.next,Bi.prototype.reset=Bi.prototype.reset,Bi.className="MapKeySetIterator";function Si(t){Ce.call(this),Gn(this),this._isFrozen=!0,this.ma=t}Yn(Si,Ce),A=Si.prototype,A.freeze=function(){return this},A.ka=function(){return this},A.toString=function(){return"MapKeySet("+this.ma.toString()+")"},A.add=function(){Et("This Set is read-only: "+this.toString())},A.contains=function(t){return this.ma.contains(t)},A.has=function(t){return this.contains(t)},A.remove=function(){Et("This Set is read-only: "+this.toString())},A.delete=function(t){return this.remove(t)},A.clear=function(){Et("This Set is read-only: "+this.toString())},A.first=function(){var t=this.ma.ea;return t!==null?t.key:null},Si.prototype.any=function(t){for(var e=this.ma.ea;e!==null;){if(t(e.key))return!0;e=e.va}return!1},Si.prototype.all=function(t){for(var e=this.ma.ea;e!==null;){if(!t(e.key))return!1;e=e.va}return!0},Si.prototype.each=function(t){for(var e=this.ma.ea;e!==null;)t(e.key),e=e.va;return this},Si.prototype.map=function(t){for(var e=new Ce,n=this.ma.ea;n!==null;)e.add(t(n.key)),n=n.va;return e},Si.prototype.filter=function(t){for(var e=new Ce,n=this.ma.ea;n!==null;){var i=n.key;t(i)&&e.add(i),n=n.va}return e},Si.prototype.copy=function(){return new Si(this.ma)},Si.prototype.Iv=function(){var t=new Ce,e=this.ma.Tb,n;for(n in e)t.add(e[n].key);return t},Si.prototype.Fa=function(){var t=this.ma.Tb,e=Array(this.ma.Sb),n=0,i;for(i in t)e[n]=t[i].key,n++;return e},Si.prototype.Hv=function(){var t=new Te,e=this.ma.Tb,n;for(n in e)t.add(e[n].key);return t},Mn.Object.defineProperties(Si.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?sr:new Bi(this.ma)}}}),Si.prototype.toList=Si.prototype.Hv,Si.prototype.toArray=Si.prototype.Fa,Si.prototype.toSet=Si.prototype.Iv,Si.prototype.first=Si.prototype.first,Si.prototype.clear=Si.prototype.clear,Si.prototype.delete=Si.prototype.delete,Si.prototype.remove=Si.prototype.remove,Si.prototype.has=Si.prototype.has,Si.prototype.contains=Si.prototype.contains,Si.prototype.add=Si.prototype.add,Si.prototype.thaw=Si.prototype.ka,Si.prototype.freeze=Si.prototype.freeze,Si.className="MapKeySet";function Hr(t){this.ma=t,t.jf=null,this.qa=t.Ja,this.sa=null}Hr.prototype.reset=function(){var t=this.ma;t.jf=null,this.qa=t.Ja,this.sa=null},Hr.prototype.next=function(){var t=this.ma;if(t.Ja!==this.qa&&this.key===null)return!1;var e=this.sa;return e=e===null?t.ea:e.va,e!==null?(this.sa=e,this.value=e.value,this.key=e.key,!0):(this.de(),!1)},Hr.prototype.Ad=function(){return this.next()},Hr.prototype.first=function(){var t=this.ma;if(this.qa=t.Ja,t=t.ea,t!==null){this.sa=t;var e=t.value;return this.key=t.key,this.value=e}return null},Hr.prototype.any=function(t){var e=this.ma;for(this.sa=e.jf=null,e=e.ea;e!==null;){if(t(e.value))return!0;e=e.va}return!1},Hr.prototype.all=function(t){var e=this.ma;for(this.sa=e.jf=null,e=e.ea;e!==null;){if(!t(e.value))return!1;e=e.va}return!0},Hr.prototype.each=function(t){var e=this.ma;for(this.sa=e.jf=null,e=e.ea;e!==null;)t(e.value),e=e.va;return this},Hr.prototype.map=function(t){var e=this.ma;this.sa=e.jf=null;var n=new Te;for(e=e.ea;e!==null;)n.add(t(e.value)),e=e.va;return n.iterator},Hr.prototype.filter=function(t){var e=this.ma;this.sa=e.jf=null;var n=new Te;for(e=e.ea;e!==null;){var i=e.value;t(i)&&n.add(i),e=e.va}return n.iterator},Hr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Hr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Mn.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="MapValueSetIterator";function Qt(t,e){this.key=t,this.value=e,this.ll=this.va=null}Qt.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Qt.className="KeyValuePair";function Le(t){this.ma=t,t.Sa=null,this.qa=t.Ja,this.sa=null}Le.prototype.reset=function(){var t=this.ma;t.Sa=null,this.qa=t.Ja,this.sa=null},Le.prototype.next=function(){var t=this.ma;if(t.Ja!==this.qa&&this.key===null)return!1;var e=this.sa;return e=e===null?t.ea:e.va,e!==null?(this.sa=e,this.key=e.key,this.value=e.value,!0):(this.de(),!1)},Le.prototype.Ad=function(){return this.next()},Le.prototype.first=function(){var t=this.ma;return this.qa=t.Ja,t=t.ea,t!==null?(this.sa=t,this.key=t.key,this.value=t.value,t):null},Le.prototype.any=function(t){var e=this.ma;for(this.sa=e.Sa=null,e=e.ea;e!==null;){if(t(e))return!0;e=e.va}return!1},Le.prototype.all=function(t){var e=this.ma;for(this.sa=e.Sa=null,e=e.ea;e!==null;){if(!t(e))return!1;e=e.va}return!0},Le.prototype.each=function(t){var e=this.ma;for(this.sa=e.Sa=null,e=e.ea;e!==null;)t(e),e=e.va;return this},Le.prototype.map=function(t){var e=this.ma;this.sa=e.Sa=null;var n=new Te;for(e=e.ea;e!==null;)n.add(t(e)),e=e.va;return n.iterator},Le.prototype.filter=function(t){var e=this.ma;this.sa=e.Sa=null;var n=new Te;for(e=e.ea;e!==null;)t(e)&&n.add(e),e=e.va;return n.iterator},Le.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Le.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Mn.Object.defineProperties(Le.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Le.prototype.first=Le.prototype.first,Le.prototype.hasNext=Le.prototype.Ad,Le.prototype.next=Le.prototype.next,Le.prototype.reset=Le.prototype.reset,Le.className="MapIterator";function Zt(t){Gn(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof t=="string"&&Et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),t!==void 0&&this.addAll(t)}A=Zt.prototype,A.xb=function(){var t=this.Ja;t++,999999999<t&&(t=0),this.Ja=t},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return this._isFrozen=!1,this},A.toString=function(){return"Map()#"+gi(this)},A.add=function(t,e){this._isFrozen&&Wt(this,t);var n=t;Ut(t)&&(n=Ri(t));var i=this.Tb[n];return i===void 0?(this.Sb++,t=new Qt(t,e),this.Tb[n]=t,n=this.kf,n===null?this.ea=t:(t.ll=n,n.va=t),this.kf=t,this.xb()):i.value=e,this},A.set=function(t,e){return this.add(t,e)},A.addAll=function(t){if(t===null)return this;if(Ye(t))for(var e=t.length,n=0;n<e;n++){var i=t[n];this.add(i.key,i.value)}else if(t instanceof Zt)for(t=t.iterator;t.next();)this.add(t.key,t.value);else for(t=t.iterator;t.next();)e=t.value,this.add(e.key,e.value);return this},A.first=function(){return this.ea},Zt.prototype.any=function(t){for(var e=this.ea;e!==null;){if(t(e))return!0;e=e.va}return!1},Zt.prototype.all=function(t){for(var e=this.ea;e!==null;){if(!t(e))return!1;e=e.va}return!0},Zt.prototype.each=function(t){for(var e=this.ea;e!==null;)t(e),e=e.va;return this},Zt.prototype.map=function(t){for(var e=new Zt,n=this.ea;n!==null;)e.add(n.key,t(n)),n=n.va;return e},Zt.prototype.filter=function(t){for(var e=new Zt,n=this.ea;n!==null;)t(n)&&e.add(n.key,n.value),n=n.va;return e},A=Zt.prototype,A.contains=function(t){var e=t;return Ut(t)&&(e=gi(t),e===void 0)?!1:this.Tb[e]!==void 0},A.has=function(t){return this.contains(t)},A.I=function(t){var e=t;return Ut(t)&&(e=gi(t),e===void 0)?null:(t=this.Tb[e],t===void 0?null:t.value)},A.get=function(t){return this.I(t)},A.remove=function(t){if(t===null)return!1;this._isFrozen&&Wt(this,t);var e=t;if(Ut(t)&&(e=gi(t),e===void 0)||(t=this.Tb[e],t===void 0))return!1;var n=t.va,i=t.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===t&&(this.ea=n),this.kf===t&&(this.kf=i),delete this.Tb[e],this.Sb--,this.xb(),!0},A.delete=function(t){return this.remove(t)},A.clear=function(){this._isFrozen&&Wt(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()},Zt.prototype.copy=function(){var t=new Zt,e=this.Tb,n;for(n in e){var i=e[n];t.add(i.key,i.value)}return t},Zt.prototype.Fa=function(){var t=this.Tb,e=Array(this.Sb),n=0,i;for(i in t){var r=t[i];e[n]=new Qt(r.key,r.value),n++}return e},Zt.prototype.Lf=function(){return new Si(this)},Mn.Object.defineProperties(Zt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return sr;var t=this.Sa;return t!==null?(t.reset(),t):new Le(this)}},iteratorKeys:{get:function(){return 0>=this.count?sr:new Bi(this)}},iteratorValues:{get:function(){if(0>=this.count)return sr;var t=this.jf;return t!==null?(t.reset(),t):new Hr(this)}}}),Zt.prototype.toKeySet=Zt.prototype.Lf,Zt.prototype.toArray=Zt.prototype.Fa,Zt.prototype.clear=Zt.prototype.clear,Zt.prototype.delete=Zt.prototype.delete,Zt.prototype.remove=Zt.prototype.remove,Zt.prototype.get=Zt.prototype.get,Zt.prototype.getValue=Zt.prototype.I,Zt.prototype.has=Zt.prototype.has,Zt.prototype.contains=Zt.prototype.contains,Zt.prototype.first=Zt.prototype.first,Zt.prototype.addAll=Zt.prototype.addAll,Zt.prototype.set=Zt.prototype.set,Zt.prototype.add=Zt.prototype.add,Zt.prototype.thaw=Zt.prototype.ka,Zt.prototype.freeze=Zt.prototype.freeze,Zt.className="Map";function z(t,e){t===void 0?this.y=this.x=0:typeof t=="number"&&typeof e=="number"?(this.x=t,this.y=e):Et("Invalid arguments to Point constructor: "+t+", "+e),this._isFrozen=!1}var Xe,an,On,An,mn;z.prototype.assign=function(t){return this.x=t.x,this.y=t.y,this},z.prototype.h=function(t,e){return this.x=t,this.y=e,this},z.prototype.sg=function(t,e){return this.x=t,this.y=e,this},z.prototype.set=function(t){return this.x=t.x,this.y=t.y,this},z.prototype.copy=function(){var t=new z;return t.x=this.x,t.y=this.y,t},A=z.prototype,A.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},A.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function ke(t){if(typeof t=="string"){t=t.split(" ");for(var e=0,n=0;t[e]==="";)e++;var i=t[e++];i&&(n=parseFloat(i));for(var r=0;t[e]==="";)e++;return(i=t[e++])&&(r=parseFloat(i)),new z(n,r)}return new z}function qe(t){return t.x.toString()+" "+t.y.toString()}A.toString=function(){return"Point("+this.x+","+this.y+")"},A.D=function(t){return t instanceof z?this.x===t.x&&this.y===t.y:!1},A.hi=function(t,e){return this.x===t&&this.y===e},A.Xa=function(t){return It.B(this.x,t.x)&&It.B(this.y,t.y)},A.add=function(t){return this.x+=t.x,this.y+=t.y,this},A.re=function(t){return this.x-=t.x,this.y-=t.y,this},A.offset=function(t,e){return this.x+=t,this.y+=e,this},z.prototype.rotate=function(t){if(t===0)return this;var e=this.x,n=this.y;if(e===0&&n===0)return this;if(360<=t?t-=360:0>t&&(t+=360),t===90){t=0;var i=1}else t===180?(t=-1,i=0):t===270?(t=0,i=-1):(i=t*Math.PI/180,t=Math.cos(i),i=Math.sin(i));return this.x=t*e-i*n,this.y=i*e+t*n,this},A=z.prototype,A.scale=function(t,e){return this.x*=t,this.y*=e,this},A.Bf=function(t){var e=t.x-this.x;return t=t.y-this.y,e*e+t*t},A.zd=function(t,e){return t-=this.x,e-=this.y,t*t+e*e},A.normalize=function(){var t=this.x,e=this.y,n=Math.sqrt(t*t+e*e);return 0<n&&(this.x=t/n,this.y=e/n),this},A.ab=function(t){return en(t.x-this.x,t.y-this.y)},A.direction=function(t,e){return en(t-this.x,e-this.y)};function en(t,e){if(t===0)return 0<e?90:0>e?270:0;if(e===0)return 0<t?0:180;if(isNaN(t)||isNaN(e))return 0;var n=180*Math.atan(Math.abs(e/t))/Math.PI;return 0>t?n=0>e?n+180:180-n:0>e&&(n=360-n),n}A.Ry=function(t,e){return It.Fl(t.x,t.y,e.x,e.y,this.x,this.y)},A.fA=function(t,e,n,i){return It.qh(t,e,n,i,this.x,this.y,this),this},A.gA=function(t,e){return It.qh(t.x,t.y,e.x,e.y,this.x,this.y,this),this},A.uA=function(t,e,n,i){return It.No(this.x,this.y,t,e,n,i,this),this},A.vA=function(t,e){return It.No(this.x,this.y,t.x,t.y,e.width,e.height,this),this},A.xi=function(t,e){return this.x=t.x+e.x*t.width+e.offsetX,this.y=t.y+e.y*t.height+e.offsetY,this},A.yi=function(t,e,n,i,r){return this.x=t+r.x*n+r.offsetX,this.y=e+r.y*i+r.offsetY,this},A.transform=function(t){return t.Ga(this),this};function He(t,e){return e.Cd(t),t}function nn(t,e,n,i,r,o){var s=r-n,l=o-i,u=s*s+l*l;n-=t,i-=e;var d=-n*s-i*l;return 0>=d||d>=u?(s=r-t,l=o-e,Math.min(n*n+i*i,s*s+l*l)):(t=s*i-l*n,t*t/u)}function _n(t,e,n,i){return t=n-t,e=i-e,t*t+e*e}function ci(t,e,n,i){return t=n-t,e=i-e,t===0?0<e?90:0>e?270:0:e===0?0<t?0:180:isNaN(t)||isNaN(e)?0:(i=180*Math.atan(Math.abs(e/t))/Math.PI,0>t?i=0>e?i+180:180-i:0>e&&(i=360-i),i)}A.w=function(){return isFinite(this.x)&&isFinite(this.y)},z.alloc=function(){var t=si.pop();return t===void 0?new z:t},z.allocAt=function(t,e){var n=si.pop();return n===void 0?new z(t,e):(n.x=t,n.y=e,n)},z.free=function(t){si.push(t)},z.prototype.isReal=z.prototype.w,z.prototype.setSpot=z.prototype.yi,z.prototype.setRectSpot=z.prototype.xi,z.prototype.snapToGridPoint=z.prototype.vA,z.prototype.snapToGrid=z.prototype.uA,z.prototype.projectOntoLineSegmentPoint=z.prototype.gA,z.prototype.projectOntoLineSegment=z.prototype.fA,z.intersectingLineSegments=function(t,e,n,i,r,o,s,l){return It.Rl(t,e,n,i,r,o,s,l)},z.prototype.compareWithLineSegmentPoint=z.prototype.Ry,z.compareWithLineSegment=function(t,e,n,i,r,o){return It.Fl(t,e,n,i,r,o)},z.prototype.direction=z.prototype.direction,z.prototype.directionPoint=z.prototype.ab,z.prototype.normalize=z.prototype.normalize,z.prototype.distanceSquared=z.prototype.zd,z.prototype.distanceSquaredPoint=z.prototype.Bf,z.prototype.scale=z.prototype.scale,z.prototype.rotate=z.prototype.rotate,z.prototype.offset=z.prototype.offset,z.prototype.subtract=z.prototype.re,z.prototype.add=z.prototype.add,z.prototype.equalsApprox=z.prototype.Xa,z.prototype.equalTo=z.prototype.hi,z.prototype.equals=z.prototype.D,z.prototype.set=z.prototype.set,z.prototype.setTo=z.prototype.sg;var si=[];z.className="Point",z.parse=ke,z.stringify=qe,z.distanceLineSegmentSquared=nn,z.distanceSquared=_n,z.direction=ci,z.Origin=Xe=new z(0,0).ja(),z.InfiniteTopLeft=an=new z(-1/0,-1/0).ja(),z.InfiniteBottomRight=On=new z(1/0,1/0).ja(),z.SixPoint=An=new z(6,6).ja(),z.NoPoint=mn=new z(NaN,NaN).ja(),z.parse=ke,z.stringify=qe,z.distanceLineSegmentSquared=nn,z.distanceSquared=_n,z.direction=ci;function Je(t,e){t===void 0?this.height=this.width=0:typeof t=="number"&&(0<=t||isNaN(t))&&typeof e=="number"&&(0<=e||isNaN(e))?(this.width=t,this.height=e):Et("Invalid arguments to Size constructor: "+t+", "+e),this._isFrozen=!1}var Ui,Ti,ar,bi,Kr,Pr,Mr;Je.prototype.assign=function(t){return this.width=t.width,this.height=t.height,this},Je.prototype.h=function(t,e){return this.width=t,this.height=e,this},Je.prototype.sg=function(t,e){return this.width=t,this.height=e,this},Je.prototype.set=function(t){return this.width=t.width,this.height=t.height,this},Je.prototype.copy=function(){var t=new Je;return t.width=this.width,t.height=this.height,t},A=Je.prototype,A.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},A.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function Er(t){if(typeof t=="string"){t=t.split(" ");for(var e=0,n=0;t[e]==="";)e++;var i=t[e++];i&&(n=parseFloat(i));for(var r=0;t[e]==="";)e++;return(i=t[e++])&&(r=parseFloat(i)),new Je(n,r)}return new Je}function Or(t){return t.width.toString()+" "+t.height.toString()}A.toString=function(){return"Size("+this.width+","+this.height+")"},A.D=function(t){return t instanceof Je?this.width===t.width&&this.height===t.height:!1},A.hi=function(t,e){return this.width===t&&this.height===e},A.Xa=function(t){return It.B(this.width,t.width)&&It.B(this.height,t.height)},A.Bc=function(t,e){return t=this.width+t,this.width=0<=t?t:0,e=this.height+e,this.height=0<=e?e:0,this},A.w=function(){return isFinite(this.width)&&isFinite(this.height)},Je.alloc=function(){var t=Zr.pop();return t===void 0?new Je:t},Je.free=function(t){Zr.push(t)},Je.prototype.isReal=Je.prototype.w,Je.prototype.inflate=Je.prototype.Bc,Je.prototype.equalsApprox=Je.prototype.Xa,Je.prototype.equalTo=Je.prototype.hi,Je.prototype.equals=Je.prototype.D,Je.prototype.set=Je.prototype.set,Je.prototype.setTo=Je.prototype.sg;var Zr=[];Je.className="Size",Je.parse=Er,Je.stringify=Or,Je.ZeroSize=Ui=new Je(0,0).ja(),Je.OneSize=Ti=new Je(1,1).ja(),Je.SixSize=ar=new Je(6,6).ja(),Je.EightSize=bi=new Je(8,8).ja(),Je.TenSize=Kr=new Je(10,10).ja(),Je.InfiniteSize=Pr=new Je(1/0,1/0).ja(),Je.NoSize=Mr=new Je(NaN,NaN).ja(),Je.parse=Er,Je.stringify=Or;function Xt(t,e,n,i){t===void 0?this.height=this.width=this.y=this.x=0:typeof t=="number"&&typeof e=="number"&&typeof n=="number"&&(0<=n||isNaN(n))&&typeof i=="number"&&(0<=i||isNaN(i))?(this.x=t,this.y=e,this.width=n,this.height=i):t instanceof z?(n=t.x,t=t.y,e instanceof z?(i=e.x,e=e.y,this.x=Math.min(n,i),this.y=Math.min(t,e),this.width=Math.abs(n-i),this.height=Math.abs(t-e)):e instanceof Je?(this.x=n,this.y=t,this.width=e.width,this.height=e.height):Et("Incorrect second argument supplied to Rect constructor "+e)):Et("Invalid arguments to Rect constructor: "+t+", "+e+", "+n+", "+i),this._isFrozen=!1}A=Xt.prototype,A.assign=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},A.h=function(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this};function rr(t,e,n){t.width=e,t.height=n}A.sg=function(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this},A.set=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},A.dd=function(t){return this.x=t.x,this.y=t.y,this},A.tA=function(t){return this.width=t.width,this.height=t.height,this},Xt.prototype.copy=function(){var t=new Xt;return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},A=Xt.prototype,A.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},A.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function $i(t){if(typeof t=="string"){t=t.split(" ");for(var e=0,n=0;t[e]==="";)e++;var i=t[e++];i&&(n=parseFloat(i));for(var r=0;t[e]==="";)e++;(i=t[e++])&&(r=parseFloat(i));for(var o=0;t[e]==="";)e++;(i=t[e++])&&(o=parseFloat(i));for(var s=0;t[e]==="";)e++;return(i=t[e++])&&(s=parseFloat(i)),new Xt(n,r,o,s)}return new Xt}function mi(t){return t.x.toString()+" "+t.y.toString()+" "+t.width.toString()+" "+t.height.toString()}A.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},A.D=function(t){return t instanceof Xt?this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height:!1},A.hi=function(t,e,n,i){return this.x===t&&this.y===e&&this.width===n&&this.height===i},A.Xa=function(t){return It.B(this.x,t.x)&&It.B(this.y,t.y)&&It.B(this.width,t.width)&&It.B(this.height,t.height)};function Mi(t,e){return It.$(t.x,e.x)&&It.$(t.y,e.y)&&It.$(t.width,e.width)&&It.$(t.height,e.height)}A.ca=function(t){return this.x<=t.x&&this.x+this.width>=t.x&&this.y<=t.y&&this.y+this.height>=t.y},A.Re=function(t){return this.x<=t.x&&t.x+t.width<=this.x+this.width&&this.y<=t.y&&t.y+t.height<=this.y+this.height},A.contains=function(t,e,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),this.x<=t&&t+n<=this.x+this.width&&this.y<=e&&e+i<=this.y+this.height},A.offset=function(t,e){return this.x+=t,this.y+=e,this},A.Bc=function(t,e){return er(this,e,t,e,t)},A.Co=function(t){return er(this,t.top,t.right,t.bottom,t.left)},A.Fv=function(t){return er(this,-t.top,-t.right,-t.bottom,-t.left)},A.Hz=function(t,e,n,i){return er(this,t,e,n,i)};function er(t,e,n,i,r){var o=t.width;return n+r<=-o?(t.x+=o/2,t.width=0):(t.x-=r,t.width+=n+r),n=t.height,e+i<=-n?(t.y+=n/2,t.height=0):(t.y-=e,t.height+=e+i),t}A.Ex=function(t){return Sr(this,t.x,t.y,t.width,t.height)},A.Uu=function(t,e,n,i){return Sr(this,t,e,n,i)};function Sr(t,e,n,i,r){var o=Math.max(t.x,e),s=Math.max(t.y,n);return e=Math.min(t.x+t.width,e+i),n=Math.min(t.y+t.height,n+r),t.x=o,t.y=s,t.width=Math.max(0,e-o),t.height=Math.max(0,n-s),t}A.Yc=function(t){return this.Vu(t.x,t.y,t.width,t.height)},A.Vu=function(t,e,n,i){var r=this.width,o=this.x;return r!==1/0&&n!==1/0&&(r+=o,n+=t,isNaN(n)||isNaN(r)||o>n||t>r)?!1:(t=this.height,n=this.y,!(t!==1/0&&i!==1/0&&(t+=n,i+=e,isNaN(i)||isNaN(t)||n>i||e>t)))};function ee(t,e){var n=t.width,i=t.x,r=e.x-10;return i>e.width+10+10+r||r>n+i?!1:(n=t.height,t=t.y,i=e.y-10,!(t>e.height+10+10+i||i>n+t))}A.Ye=function(t){return Ni(this,t.x,t.y,0,0)},A.ed=function(t){return Ni(this,t.x,t.y,t.width,t.height)},A.Kv=function(t,e,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),Ni(this,t,e,n,i)};function Ni(t,e,n,i,r){var o=Math.min(t.x,e),s=Math.min(t.y,n);return e=Math.max(t.x+t.width,e+i),n=Math.max(t.y+t.height,n+r),t.x=o,t.y=s,t.width=e-o,t.height=n-s,t}A.yi=function(t,e,n){return this.x=t-n.offsetX-n.x*this.width,this.y=e-n.offsetY-n.y*this.height,this};function Gr(t,e,n,i,r,o,s,l){return s===void 0&&(s=0),l===void 0&&(l=0),t<=r&&r+s<=t+n&&e<=o&&o+l<=e+i}function ws(t,e,n,i,r,o,s,l){return t>s+r||r>n+t?!1:!(e>l+o||o>i+e)}A.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},A.Mz=function(){return this.width===0&&this.height===0},Xt.alloc=function(){var t=As.pop();return t===void 0?new Xt:t},Xt.allocAt=function(t,e,n,i){var r=As.pop();return r===void 0?new Xt(t,e,n,i):r.h(t,e,n,i)},Xt.free=function(t){As.push(t)},Mn.Object.defineProperties(Xt.prototype,{left:{get:function(){return this.x},set:function(t){this.x=t}},top:{get:function(){return this.y},set:function(t){this.y=t}},right:{get:function(){return this.x+this.width},set:function(t){this.x+=t-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(t){this.y+=t-(this.y+this.height)}},position:{get:function(){return new z(this.x,this.y)},set:function(t){this.x=t.x,this.y=t.y}},size:{get:function(){return new Je(this.width,this.height)},set:function(t){this.width=t.width,this.height=t.height}},center:{get:function(){return new z(this.x+this.width/2,this.y+this.height/2)},set:function(t){this.x=t.x-this.width/2,this.y=t.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}}),Xt.prototype.isEmpty=Xt.prototype.Mz,Xt.prototype.isReal=Xt.prototype.w,Xt.intersectsLineSegment=function(t,e,n,i,r,o,s,l){return It.Fx(t,e,n,i,r,o,s,l)},Xt.prototype.setSpot=Xt.prototype.yi,Xt.prototype.union=Xt.prototype.Kv,Xt.prototype.unionRect=Xt.prototype.ed,Xt.prototype.unionPoint=Xt.prototype.Ye,Xt.prototype.intersects=Xt.prototype.Vu,Xt.prototype.intersectsRect=Xt.prototype.Yc,Xt.prototype.intersect=Xt.prototype.Uu,Xt.prototype.intersectRect=Xt.prototype.Ex,Xt.prototype.grow=Xt.prototype.Hz,Xt.prototype.subtractMargin=Xt.prototype.Fv,Xt.prototype.addMargin=Xt.prototype.Co,Xt.prototype.inflate=Xt.prototype.Bc,Xt.prototype.offset=Xt.prototype.offset,Xt.prototype.contains=Xt.prototype.contains,Xt.prototype.containsRect=Xt.prototype.Re,Xt.prototype.containsPoint=Xt.prototype.ca,Xt.prototype.equalsApprox=Xt.prototype.Xa,Xt.prototype.equalTo=Xt.prototype.hi,Xt.prototype.equals=Xt.prototype.D,Xt.prototype.setSize=Xt.prototype.tA,Xt.prototype.setPoint=Xt.prototype.dd,Xt.prototype.set=Xt.prototype.set,Xt.prototype.setTo=Xt.prototype.sg;var cs=null,Ma=null,As=[];Xt.className="Rect",Xt.parse=$i,Xt.stringify=mi,Xt.contains=Gr,Xt.intersects=ws,Xt.ZeroRect=cs=new Xt(0,0,0,0).ja(),Xt.NoRect=Ma=new Xt(NaN,NaN,NaN,NaN).ja(),Xt.parse=$i,Xt.stringify=mi,Xt.contains=Gr,Xt.intersects=ws;function ii(t,e,n,i){t===void 0?this.left=this.bottom=this.right=this.top=0:e===void 0?this.left=this.bottom=this.right=this.top=t:n===void 0?(this.top=t,this.right=e,this.bottom=t,this.left=e):i!==void 0?(this.top=t,this.right=e,this.bottom=n,this.left=i):Et("Invalid arguments to Margin constructor: "+t+", "+e+", "+n+", "+i),this._isFrozen=!1}ii.prototype.assign=function(t){return this.top=t.top,this.right=t.right,this.bottom=t.bottom,this.left=t.left,this},ii.prototype.sg=function(t,e,n,i){return this.top=t,this.right=e,this.bottom=n,this.left=i,this},ii.prototype.set=function(t){return this.top=t.top,this.right=t.right,this.bottom=t.bottom,this.left=t.left,this},ii.prototype.copy=function(){var t=new ii;return t.top=this.top,t.right=this.right,t.bottom=this.bottom,t.left=this.left,t},A=ii.prototype,A.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},A.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function po(t){if(typeof t=="string"){t=t.split(" ");for(var e=0,n=NaN;t[e]==="";)e++;var i=t[e++];if(i&&(n=parseFloat(i)),isNaN(n))return new ii;for(var r=NaN;t[e]==="";)e++;if((i=t[e++])&&(r=parseFloat(i)),isNaN(r))return new ii(n);for(var o=NaN;t[e]==="";)e++;if((i=t[e++])&&(o=parseFloat(i)),isNaN(o))return new ii(n,r);for(var s=NaN;t[e]==="";)e++;return(i=t[e++])&&(s=parseFloat(i)),isNaN(s)?new ii(n,r):new ii(n,r,o,s)}return new ii}function go(t){return t.top.toString()+" "+t.right.toString()+" "+t.bottom.toString()+" "+t.left.toString()}A.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},A.D=function(t){return t instanceof ii?this.top===t.top&&this.right===t.right&&this.bottom===t.bottom&&this.left===t.left:!1},A.hi=function(t,e,n,i){return this.top===t&&this.right===e&&this.bottom===n&&this.left===i},A.Xa=function(t){return It.B(this.top,t.top)&&It.B(this.right,t.right)&&It.B(this.bottom,t.bottom)&&It.B(this.left,t.left)},A.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ii.alloc=function(){var t=Co.pop();return t===void 0?new ii:t},ii.free=function(t){Co.push(t)},ii.prototype.isReal=ii.prototype.w,ii.prototype.equalsApprox=ii.prototype.Xa,ii.prototype.equalTo=ii.prototype.hi,ii.prototype.equals=ii.prototype.D,ii.prototype.set=ii.prototype.set,ii.prototype.setTo=ii.prototype.sg;var Vo=null,mo=null,Co=[];ii.className="Margin",ii.parse=po,ii.stringify=go,ii.ZeroMargin=Vo=new ii(0,0,0,0).ja(),ii.TwoMargin=mo=new ii(2,2,2,2).ja(),ii.parse=po,ii.stringify=go;function vn(t,e,n,i){t===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(e===void 0&&(e=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=t,this.y=e,this.offsetX=n,this.offsetY=i),this._isFrozen=!1}var qn,vi,Gi,Yi,Vr,ei,Jo,So,xo,tr,$r,xs,eo,hs,Us,Is,Ro,Oa,Wl,Hs,na,zs,nl,cu,hu,_o,Yl,du,ml,Ml,ds,Cs,Zo,as,vl,Ls;vn.prototype.assign=function(t){return this.x=t.x,this.y=t.y,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this},vn.prototype.sg=function(t,e,n,i){return this.x=t,this.y=e,this.offsetX=n,this.offsetY=i,this},vn.prototype.set=function(t){return this.x=t.x,this.y=t.y,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this},vn.prototype.copy=function(){var t=new vn;return t.x=this.x,t.y=this.y,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t},A=vn.prototype,A.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},A.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function io(t,e){return t.x=NaN,t.y=NaN,t.offsetX=e,t}function Xr(t){if(typeof t=="string"){if(t=t.trim(),t==="None")return qn;if(t==="TopLeft")return vi;if(t==="Top"||t==="TopCenter"||t==="MiddleTop")return Gi;if(t==="TopRight")return Yi;if(t==="Left"||t==="LeftCenter"||t==="MiddleLeft")return Vr;if(t==="Center")return ei;if(t==="Right"||t==="RightCenter"||t==="MiddleRight")return Jo;if(t==="BottomLeft")return So;if(t==="Bottom"||t==="BottomCenter"||t==="MiddleBottom")return xo;if(t==="BottomRight")return tr;if(t==="TopSide")return $r;if(t==="LeftSide")return xs;if(t==="RightSide")return eo;if(t==="BottomSide")return hs;if(t==="TopBottomSides")return Us;if(t==="LeftRightSides")return Is;if(t==="TopLeftSides")return Ro;if(t==="TopRightSides")return Oa;if(t==="BottomLeftSides")return Wl;if(t==="BottomRightSides")return Hs;if(t==="NotTopSide")return na;if(t==="NotLeftSide")return zs;if(t==="NotRightSide")return nl;if(t==="NotBottomSide")return cu;if(t==="AllSides")return hu;if(t==="Default")return _o;t=t.split(" ");for(var e=0,n=0;t[e]==="";)e++;var i=t[e++];i!==void 0&&0<i.length&&(n=parseFloat(i));for(var r=0;t[e]==="";)e++;i=t[e++],i!==void 0&&0<i.length&&(r=parseFloat(i));for(var o=0;t[e]==="";)e++;i=t[e++],i!==void 0&&0<i.length&&(o=parseFloat(i));for(var s=0;t[e]==="";)e++;return i=t[e++],i!==void 0&&0<i.length&&(s=parseFloat(i)),new vn(n,r,o,s)}return new vn}function Ar(t){return t.sb()?t.x.toString()+" "+t.y.toString()+" "+t.offsetX.toString()+" "+t.offsetY.toString():t.toString()}A.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(qn)?"None":this.D(vi)?"TopLeft":this.D(Gi)?"Top":this.D(Yi)?"TopRight":this.D(Vr)?"Left":this.D(ei)?"Center":this.D(Jo)?"Right":this.D(So)?"BottomLeft":this.D(xo)?"Bottom":this.D(tr)?"BottomRight":this.D($r)?"TopSide":this.D(xs)?"LeftSide":this.D(eo)?"RightSide":this.D(hs)?"BottomSide":this.D(Us)?"TopBottomSides":this.D(Is)?"LeftRightSides":this.D(Ro)?"TopLeftSides":this.D(Oa)?"TopRightSides":this.D(Wl)?"BottomLeftSides":this.D(Hs)?"BottomRightSides":this.D(na)?"NotTopSide":this.D(zs)?"NotLeftSide":this.D(nl)?"NotRightSide":this.D(cu)?"NotBottomSide":this.D(hu)?"AllSides":this.D(_o)?"Default":"None"},A.D=function(t){return t instanceof vn?(this.x===t.x||isNaN(this.x)&&isNaN(t.x))&&(this.y===t.y||isNaN(this.y)&&isNaN(t.y))&&this.offsetX===t.offsetX&&this.offsetY===t.offsetY:!1},A.gv=function(){return new vn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},A.Hf=function(t){if(!this.$c())return!1;if(!t.$c())if(t.D(Yl))t=xs;else if(t.D(du))t=eo;else if(t.D(ml))t=$r;else if(t.D(Ml))t=hs;else return!1;return t=t.offsetY,(this.offsetY&t)===t},A.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},A.Mc=function(){return isNaN(this.x)||isNaN(this.y)},A.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},A.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},A.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},vn.alloc=function(){var t=Wo.pop();return t===void 0?new vn:t},vn.free=function(t){Wo.push(t)},vn.prototype.isDefault=vn.prototype.Xb,vn.prototype.isNone=vn.prototype.ys,vn.prototype.isSide=vn.prototype.$c,vn.prototype.isNoSpot=vn.prototype.Mc,vn.prototype.isSpot=vn.prototype.sb,vn.prototype.includesSide=vn.prototype.Hf,vn.prototype.opposite=vn.prototype.gv,vn.prototype.equals=vn.prototype.D,vn.prototype.set=vn.prototype.set,vn.prototype.setTo=vn.prototype.sg;var Wo=[];vn.className="Spot",vn.parse=Xr,vn.stringify=Ar,vn.None=qn=io(new vn(0,0,0,0),0).ja(),vn.Default=_o=io(new vn(0,0,-1,0),-1).ja(),vn.TopLeft=vi=new vn(0,0,0,0).ja(),vn.TopCenter=Gi=new vn(.5,0,0,0).ja(),vn.TopRight=Yi=new vn(1,0,0,0).ja(),vn.LeftCenter=Vr=new vn(0,.5,0,0).ja(),vn.Center=ei=new vn(.5,.5,0,0).ja(),vn.RightCenter=Jo=new vn(1,.5,0,0).ja(),vn.BottomLeft=So=new vn(0,1,0,0).ja(),vn.BottomCenter=xo=new vn(.5,1,0,0).ja(),vn.BottomRight=tr=new vn(1,1,0,0).ja(),vn.MiddleTop=ds=Gi,vn.MiddleLeft=Cs=Vr,vn.MiddleRight=Zo=Jo,vn.MiddleBottom=as=xo,vn.Top=ml=Gi,vn.Left=Yl=Vr,vn.Right=du=Jo,vn.Bottom=Ml=xo,vn.TopSide=$r=io(new vn(0,0,1,1),1).ja(),vn.LeftSide=xs=io(new vn(0,0,1,2),1).ja(),vn.RightSide=eo=io(new vn(0,0,1,4),1).ja(),vn.BottomSide=hs=io(new vn(0,0,1,8),1).ja(),vn.TopBottomSides=Us=io(new vn(0,0,1,9),1).ja(),vn.LeftRightSides=Is=io(new vn(0,0,1,6),1).ja(),vn.TopLeftSides=Ro=io(new vn(0,0,1,3),1).ja(),vn.TopRightSides=Oa=io(new vn(0,0,1,5),1).ja(),vn.BottomLeftSides=Wl=io(new vn(0,0,1,10),1).ja(),vn.BottomRightSides=Hs=io(new vn(0,0,1,12),1).ja(),vn.NotTopSide=na=io(new vn(0,0,1,14),1).ja(),vn.NotLeftSide=zs=io(new vn(0,0,1,13),1).ja(),vn.NotRightSide=nl=io(new vn(0,0,1,11),1).ja(),vn.NotBottomSide=cu=io(new vn(0,0,1,7),1).ja(),vn.AllSides=hu=io(new vn(0,0,1,15),1).ja(),vl=new vn(.156,.156).ja(),Ls=new vn(.844,.844).ja(),vn.parse=Xr,vn.stringify=Ar;function jn(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}jn.prototype.set=function(t){return this.m11=t.m11,this.m12=t.m12,this.m21=t.m21,this.m22=t.m22,this.dx=t.dx,this.dy=t.dy,this},jn.prototype.setTransform=function(t,e,n,i,r,o){return this.m11=t,this.m12=e,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},jn.prototype.copy=function(){var t=new jn;return t.m11=this.m11,t.m12=this.m12,t.m21=this.m21,t.m22=this.m22,t.dx=this.dx,t.dy=this.dy,t},jn.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},jn.prototype.D=function(t){return this.m11===t.m11&&this.m12===t.m12&&this.m21===t.m21&&this.m22===t.m22&&this.dx===t.dx&&this.dy===t.dy},jn.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},jn.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},jn.prototype.multiply=function(t){var e=this.m11*t.m11+this.m21*t.m12,n=this.m12*t.m11+this.m22*t.m12,i=this.m11*t.m21+this.m21*t.m22,r=this.m12*t.m21+this.m22*t.m22;return this.dx=this.m11*t.dx+this.m21*t.dy+this.dx,this.dy=this.m12*t.dx+this.m22*t.dy+this.dy,this.m11=e,this.m12=n,this.m21=i,this.m22=r,this},jn.prototype.bv=function(t){var e=1/(t.m11*t.m22-t.m12*t.m21),n=t.m22*e,i=-t.m12*e,r=-t.m21*e,o=t.m11*e,s=e*(t.m21*t.dy-t.m22*t.dx);return t=e*(t.m12*t.dx-t.m11*t.dy),e=this.m11*n+this.m21*i,n=this.m12*n+this.m22*i,i=this.m11*r+this.m21*o,r=this.m12*r+this.m22*o,this.dx=this.m11*s+this.m21*t+this.dx,this.dy=this.m12*s+this.m22*t+this.dy,this.m11=e,this.m12=n,this.m21=i,this.m22=r,this},jn.prototype.Vj=function(){var t=1/(this.m11*this.m22-this.m12*this.m21),e=-this.m12*t,n=-this.m21*t,i=this.m11*t,r=t*(this.m21*this.dy-this.m22*this.dx),o=t*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*t,this.m12=e,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},jn.prototype.rotate=function(t,e,n){if(360<=t?t-=360:0>t&&(t+=360),t===0)return this;if(this.translate(e,n),t===90){t=0;var i=1}else t===180?(t=-1,i=0):t===270?(t=0,i=-1):(i=t*Math.PI/180,t=Math.cos(i),i=Math.sin(i));var r=this.m12*t+this.m22*i,o=this.m11*-i+this.m21*t,s=this.m12*-i+this.m22*t;return this.m11=this.m11*t+this.m21*i,this.m12=r,this.m21=o,this.m22=s,this.translate(-e,-n),this},A=jn.prototype,A.translate=function(t,e){return this.dx+=this.m11*t+this.m21*e,this.dy+=this.m12*t+this.m22*e,this},A.scale=function(t,e){return e===void 0&&(e=t),this.m11*=t,this.m12*=t,this.m21*=e,this.m22*=e,this},A.Ga=function(t){var e=t.x,n=t.y;return t.h(e*this.m11+n*this.m21+this.dx,e*this.m12+n*this.m22+this.dy)},A.Cd=function(t){var e=1/(this.m11*this.m22-this.m12*this.m21),n=t.x,i=t.y;return t.h(n*this.m22*e+i*-this.m21*e+e*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*e+i*this.m11*e+e*(this.m12*this.dx-this.m11*this.dy))},A.Eu=function(t){var e=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*t.x,i=1.2*t.y;return t.h(n*this.m22*e+i*-this.m21*e+e*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*e+i*this.m11*e+e*(this.m12*this.dx-this.m11*this.dy))},A.pp=function(t){var e=t.x,n=t.y,i=e+t.width,r=n+t.height,o=this.m11,s=this.m12,l=this.m21,u=this.m22,d=this.dx,f=this.dy,y=e*o+n*l+d,T=e*s+n*u+f,w=i*o+n*l+d,N=i*s+n*u+f;return n=e*o+r*l+d,e=e*s+r*u+f,o=i*o+r*l+d,i=i*s+r*u+f,r=Math.min(y,w),y=Math.max(y,w),w=Math.min(T,N),T=Math.max(T,N),r=Math.min(r,n),y=Math.max(y,n),w=Math.min(w,e),T=Math.max(T,e),r=Math.min(r,o),y=Math.max(y,o),w=Math.min(w,i),T=Math.max(T,i),t.h(r,w,y-r,T-w),t},jn.alloc=function(){var t=qo.pop();return t===void 0?new jn:t},jn.free=function(t){qo.push(t)},jn.prototype.transformRect=jn.prototype.pp,jn.prototype.transformPoint=jn.prototype.Ga,jn.prototype.scale=jn.prototype.scale,jn.prototype.translate=jn.prototype.translate,jn.prototype.rotate=jn.prototype.rotate,jn.prototype.invert=jn.prototype.Vj,jn.prototype.multiplyInverted=jn.prototype.bv,jn.prototype.multiply=jn.prototype.multiply,jn.prototype.reset=jn.prototype.reset,jn.prototype.isIdentity=jn.prototype.ws,jn.prototype.equals=jn.prototype.D,jn.prototype.setTransform=jn.prototype.setTransform,jn.prototype.set=jn.prototype.set;var qo=[];jn.className="Transform",jn.xF="54a702f3e53909c447824c6706603faf4c";var It={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(t){if(0>=t)return 0;var e=It.Uv;if(e===null){e=[];for(var n=0;2e3>=n;n++)e[n]=Math.sqrt(n);It.Uv=e}return 1>t?(n=1/t,2e3>=n?1/e[n|0]:Math.sqrt(t)):2e3>=t?e[t|0]:Math.sqrt(t)},B:function(t,e){return t-=e,.5>t&&-.5<t},$:function(t,e){return t-=e,5e-8>t&&-5e-8<t},Yb:function(t,e,n,i,r,o,s){if(0>=r&&(r=1e-6),t<n)var l=t,u=n;else l=n,u=t;if(e<i)var d=e,f=i;else d=i,f=e;if(t===n)return d<=s&&s<=f&&t-r<=o&&o<=t+r;if(e===i)return l<=o&&o<=u&&e-r<=s&&s<=e+r;if(u+=r,l-=r,l<=o&&o<=u&&(f+=r,d-=r,d<=s&&s<=f))if(u-l>f-d)if(t-n>r||n-t>r){if(o=(i-e)/(n-t)*(o-t)+e,o-r<=s&&s<=o+r)return!0}else return!0;else if(e-i>r||i-e>r){if(s=(n-t)/(i-e)*(s-e)+t,s-r<=o&&o<=s+r)return!0}else return!0;return!1},cs:function(t,e,n,i,r,o,s,l,u,d,f,y){if(It.Yb(t,e,s,l,y,n,i)&&It.Yb(t,e,s,l,y,r,o))return It.Yb(t,e,s,l,y,d,f);var T=(t+n)/2,w=(e+i)/2,N=(n+r)/2,F=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(T+N)/2,n=(w+F)/2,N=(N+r)/2,F=(F+o)/2;var nt=(i+N)/2,X=(n+F)/2;return It.cs(t,e,T,w,i,n,nt,X,u,d,f,y)||It.cs(nt,X,N,F,r,o,s,l,u,d,f,y)},ax:function(t,e,n,i,r,o,s,l,u){var d=(n+r)/2,f=(i+o)/2;return u.h((((t+n)/2+d)/2+(d+(r+s)/2)/2)/2,(((e+i)/2+f)/2+(f+(o+l)/2)/2)/2),u},My:function(t,e,n,i,r,o,s,l){var u=(n+r)/2,d=(i+o)/2;return ci(((t+n)/2+u)/2,((e+i)/2+d)/2,(u+(r+s)/2)/2,(d+(o+l)/2)/2)},Dl:function(t,e,n,i,r,o,s,l,u,d){if(It.Yb(t,e,s,l,u,n,i)&&It.Yb(t,e,s,l,u,r,o))Ni(d,t,e,0,0),Ni(d,s,l,0,0);else{var f=(t+n)/2,y=(e+i)/2,T=(n+r)/2,w=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(f+T)/2,n=(y+w)/2,T=(T+r)/2,w=(w+o)/2;var N=(i+T)/2,F=(n+w)/2;It.Dl(t,e,f,y,i,n,N,F,u,d),It.Dl(N,F,T,w,r,o,s,l,u,d)}return d},Qe:function(t,e,n,i,r,o,s,l,u,d){if(It.Yb(t,e,s,l,u,n,i)&&It.Yb(t,e,s,l,u,r,o))d.length===0&&(d.push(t),d.push(e)),d.push(s),d.push(l);else{var f=(t+n)/2,y=(e+i)/2,T=(n+r)/2,w=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(f+T)/2,n=(y+w)/2,T=(T+r)/2,w=(w+o)/2;var N=(i+T)/2,F=(n+w)/2;It.Qe(t,e,f,y,i,n,N,F,u,d),It.Qe(N,F,T,w,r,o,s,l,u,d)}return d},jv:function(t,e,n,i,r,o,s,l,u,d){if(It.Yb(t,e,r,o,d,n,i))return It.Yb(t,e,r,o,d,l,u);var f=(t+n)/2,y=(e+i)/2;n=(n+r)/2,i=(i+o)/2;var T=(f+n)/2,w=(y+i)/2;return It.jv(t,e,f,y,T,w,s,l,u,d)||It.jv(T,w,n,i,r,o,s,l,u,d)},OA:function(t,e,n,i,r,o,s){return s.h(((t+n)/2+(n+r)/2)/2,((e+i)/2+(i+o)/2)/2),s},iv:function(t,e,n,i,r,o,s,l){if(It.Yb(t,e,r,o,s,n,i))Ni(l,t,e,0,0),Ni(l,r,o,0,0);else{var u=(t+n)/2,d=(e+i)/2;n=(n+r)/2,i=(i+o)/2;var f=(u+n)/2,y=(d+i)/2;It.iv(t,e,u,d,f,y,s,l),It.iv(f,y,n,i,r,o,s,l)}return l},ep:function(t,e,n,i,r,o,s,l){if(It.Yb(t,e,r,o,s,n,i))l.length===0&&(l.push(t),l.push(e)),l.push(r),l.push(o);else{var u=(t+n)/2,d=(e+i)/2;n=(n+r)/2,i=(i+o)/2;var f=(u+n)/2,y=(d+i)/2;It.ep(t,e,u,d,f,y,s,l),It.ep(f,y,n,i,r,o,s,l)}return l},Eo:function(t,e,n,i,r,o,s,l,u,d,f,y,T,w){if(It.Yb(t,e,s,l,T,n,i)&&It.Yb(t,e,s,l,T,r,o))return!It.Rl(t,e,s,l,u,d,f,y)||(T=(t-s)*(d-y)-(e-l)*(u-f),T===0)?!1:(w.h(((t*l-e*s)*(u-f)-(t-s)*(u*y-d*f))/T,((t*l-e*s)*(d-y)-(e-l)*(u*y-d*f))/T),!0);var N=(t+n)/2,F=(e+i)/2,nt=(n+r)/2,X=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(N+nt)/2,n=(F+X)/2,nt=(nt+r)/2,X=(X+o)/2;var ut=(i+nt)/2,ht=(n+X)/2,yt=1/0,Nt=!1,Yt=0,Qe=0;return It.Eo(t,e,N,F,i,n,ut,ht,u,d,f,y,T,w)&&(t=(w.x-u)*(w.x-u)+(w.y-d)*(w.y-d),t<yt&&(yt=t,Nt=!0,Yt=w.x,Qe=w.y)),It.Eo(ut,ht,nt,X,r,o,s,l,u,d,f,y,T,w)&&(w.x-u)*(w.x-u)+(w.y-d)*(w.y-d)<yt&&(Nt=!0,Yt=w.x,Qe=w.y),Nt&&(w.x=Yt,w.y=Qe),Nt},Fo:function(t,e,n,i,r,o,s,l,u,d,f,y,T){var w=0;if(It.Yb(t,e,s,l,T,n,i)&&It.Yb(t,e,s,l,T,r,o)){if(T=(t-s)*(d-y)-(e-l)*(u-f),T===0)return w;var N=((t*l-e*s)*(u-f)-(t-s)*(u*y-d*f))/T,F=((t*l-e*s)*(d-y)-(e-l)*(u*y-d*f))/T;if(N>=f)return w;if((u>f?u-f:f-u)<(d>y?d-y:y-d)){if(e<l?(u=e,t=l):(u=l,t=e),F<u||F>t)return w}else if(t<s?(u=t,t=s):u=s,N<u||N>t)return w;0<T?w++:0>T&&w--}else{N=(t+n)/2,F=(e+i)/2;var nt=(n+r)/2,X=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(N+nt)/2,n=(F+X)/2,nt=(nt+r)/2,X=(X+o)/2;var ut=(i+nt)/2,ht=(n+X)/2;w+=It.Fo(t,e,N,F,i,n,ut,ht,u,d,f,y,T),w+=It.Fo(ut,ht,nt,X,r,o,s,l,u,d,f,y,T)}return w},qh:function(t,e,n,i,r,o,s){return It.$(t,n)?(e<i?(n=e,e=i):n=i,o<n?(s.h(t,n),!1):o>e?(s.h(t,e),!1):(s.h(t,o),!0)):It.$(e,i)?(t<n?(i=t,t=n):i=n,r<i?(s.h(i,e),!1):r>t?(s.h(t,e),!1):(s.h(r,e),!0)):(r=((t-r)*(t-n)+(e-o)*(e-i))/((n-t)*(n-t)+(i-e)*(i-e)),-5e-6>r?(s.h(t,e),!1):1.000005<r?(s.h(n,i),!1):(s.h(t+r*(n-t),e+r*(i-e)),!0))},Ve:function(t,e,n,i,r,o,s,l,u){return It.B(t,n)&&It.B(e,i)?(u.h(t,e),!1):It.$(r,s)?It.$(t,n)?(It.qh(t,e,n,i,r,o,u),!1):It.qh(t,e,n,i,r,(i-e)/(n-t)*(r-t)+e,u):(l=(l-o)/(s-r),It.$(t,n)?(n=l*(t-r)+o,e<i?(r=e,e=i):r=i,n<r?(u.h(t,r),!1):n>e?(u.h(t,e),!1):(u.h(t,n),!0)):(s=(i-e)/(n-t),It.$(l,s)?(It.qh(t,e,n,i,r,o,u),!1):(r=(s*t-l*r+o-e)/(s-l),It.$(s,0)?(t<n?(i=t,t=n):i=n,r<i?(u.h(i,e),!1):r>t?(u.h(t,e),!1):(u.h(r,e),!0)):It.qh(t,e,n,i,r,s*(r-t)+e,u))))},MA:function(t,e,n,i,r){return It.Ve(n.x,n.y,i.x,i.y,t.x,t.y,e.x,e.y,r)},KA:function(t,e,n,i,r,o,s,l,u,d){function f(nt,X){var ut=(nt-t)*(nt-t)+(X-e)*(X-e);ut<y&&(y=ut,u.h(nt,X))}var y=1/0;f(u.x,u.y);var T=0,w=0,N=0,F=0;if(r<s?(T=r,w=s):(T=s,w=r),o<l?(N=r,F=s):(N=s,F=r),T=(w-T)/2+d,d=(F-N)/2+d,r=(r+s)/2,o=(o+l)/2,T===0||d===0)return u;if(.5>(n>t?n-t:t-n)){if(T=1-(n-r)*(n-r)/(T*T),0>T)return u;T=Math.sqrt(T),i=-d*T+o,f(n,d*T+o),f(n,i)}else{if(n=(i-e)/(n-t),i=1/(T*T)+n*n/(d*d),l=2*n*(e-n*t)/(d*d)-2*n*o/(d*d)-2*r/(T*T),T=l*l-4*i*(2*n*t*o/(d*d)-2*e*o/(d*d)+o*o/(d*d)+r*r/(T*T)-1+(e-n*t)*(e-n*t)/(d*d)),0>T)return u;T=Math.sqrt(T),d=(-l+T)/(2*i),f(d,n*d-n*t+e),T=(-l-T)/(2*i),f(T,n*T-n*t+e)}return u},Ff:function(t,e,n,i,r,o,s,l,u){var d=1e21,f=t,y=e;if(It.Ve(t,e,t,i,r,o,s,l,u)){var T=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o);T<d&&(d=T,f=u.x,y=u.y)}return It.Ve(n,e,n,i,r,o,s,l,u)&&(T=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),T<d&&(d=T,f=u.x,y=u.y)),It.Ve(t,e,n,e,r,o,s,l,u)&&(e=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),e<d&&(d=e,f=u.x,y=u.y)),It.Ve(t,i,n,i,r,o,s,l,u)&&(t=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),t<d&&(d=t,f=u.x,y=u.y)),u.h(f,y),1e21>d},us:function(t,e,n){return It.Fx(t.x,t.y,t.width,t.height,e.x,e.y,n.x,n.y)},Fx:function(t,e,n,i,r,o,s,l){var u=t+n,d=e+i;return r===s?(o<l?(s=o,o=l):s=l,t<=r&&r<=u&&s<=d&&o>=e):o===l?(r<s?(l=r,r=s):l=s,e<=o&&o<=d&&l<=u&&r>=t):!!(Gr(t,e,n,i,r,o)||Gr(t,e,n,i,s,l)||It.Rl(t,e,u,e,r,o,s,l)||It.Rl(u,e,u,d,r,o,s,l)||It.Rl(u,d,t,d,r,o,s,l)||It.Rl(t,d,t,e,r,o,s,l))},Rl:function(t,e,n,i,r,o,s,l){return t===n&&e===i&&r===s&&o===l?t===r&&e===o:0>=It.Fl(t,e,n,i,r,o)*It.Fl(t,e,n,i,s,l)&&0>=It.Fl(r,o,s,l,t,e)*It.Fl(r,o,s,l,n,i)},Fl:function(t,e,n,i,r,o){return n-=t,i-=e,t=r-t,e=o-e,o=t*i-e*n,o===0&&(o=t*n+e*i,0<o&&(o=(t-n)*n+(e-i)*i,0>o&&(o=0))),o},bp:function(t){return 0>t&&(t+=360),360<=t&&(t-=360),t},jx:function(t,e,n,i,r,o){var s=Math.PI;o||(i*=s/180,r*=s/180);var l=i>r?-1:1;o=[];var u=s/2,d=i;if(i=Math.min(2*s,Math.abs(r-i)),1e-5>i)return u=d+l*Math.min(i,u),l=t+n*Math.cos(d),d=e+n*Math.sin(d),t+=n*Math.cos(u),e+=n*Math.sin(u),n=(l+t)/2,u=(d+e)/2,o.push([l,d,n,u,n,u,t,e]),o;for(;1e-5<i;)r=d+l*Math.min(i,u),o.push(It.Vy(n,d,r,t,e)),i-=Math.abs(r-d),d=r;return o},Vy:function(t,e,n,i,r){var o=(n-e)/2,s=t*Math.cos(o),l=t*Math.sin(o),u=-l,d=s*s+u*u,f=d+s*s+u*l;return d=4/3*(Math.sqrt(2*d*f)-f)/(s*l-u*s),l=s-d*u,s=u+d*s,u=-s,d=o+e,o=Math.cos(d),d=Math.sin(d),[i+t*Math.cos(e),r+t*Math.sin(e),i+l*o-s*d,r+l*d+s*o,i+l*o-u*d,r+l*d+u*o,i+t*Math.cos(n),r+t*Math.sin(n)]},No:function(t,e,n,i,r,o,s){n=Math.floor((t-n)/r)*r+n,i=Math.floor((e-i)/o)*o+i;var l=n;return n+r-t<r/2&&(l=n+r),t=i,i+o-e<o/2&&(t=i+o),s.h(l,t),s},vx:function(t,e){var n=Math.max(t,e);t=Math.min(t,e);var i;do e=n%t,n=i=t,t=e;while(0<e);return i},$y:function(t,e,n,i){var r=0>n,o=0>i;if(t<e)var s=1,l=0;else s=0,l=1;var u=s===0?t:e,d=s===0?n:i;return(s===0?r:o)&&(d=-d),s=l,n=s===0?n:i,(s===0?r:o)&&(n=-n),It.az(u,s===0?t:e,d,n,0,0)},az:function(t,e,n,i,r,o){if(0<i)if(0<n){r=t*t,o=e*e,t*=n;var s=e*i,l=-o+s,u=-o+Math.sqrt(t*t+s*s);e=l;for(var d=0;9999999999>d&&(e=.5*(l+u),!(e===l||e===u));++d){var f=t/(e+r),y=s/(e+o);if(f=f*f+y*y-1,0<f)l=e;else if(0>f)u=e;else break}n=r*n/(e+r)-n,i=o*i/(e+o)-i,n=Math.sqrt(n*n+i*i)}else n=Math.abs(i-e);else i=t*t-e*e,o=t*n,o<i?(i=o/i,o=e*Math.sqrt(Math.abs(1-i*i)),n=t*i-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-t);return n},Ze:new Ai,um:new Ai,Mf:new Ai,Nf:0,vm:100};It.za=It.AA;function Oe(t){Gn(this),this.l=2,t===void 0&&(t=Oe.o),this.na=t,this.Ec=this.Dc=this.pd=this.od=0,t===Oe.o?this.ee=new Te:(Oe.V===null&&(Oe.V=new Te().freeze()),this.ee=Oe.V),this.aq=this.ee.Ja,this.Ip=new Xt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=vi,this.gg=tr,this.Rk=this.Sk=NaN,this.Uf=Ae}Oe.prototype.copy=function(){var t=new Oe;if(t.l=this.l&-2,t.na=this.na,t.od=this.od,t.pd=this.pd,t.Dc=this.Dc,t.Ec=this.Ec,this.na===Oe.o){for(var e=this.ee.s,n=t.ee,i=0;i<e.length;i++)n.add(e[i].copy());t.ee=n}else t.ee=this.ee;return t.aq=this.aq,t.Ip.assign(this.Ip),t.tk=this.tk,t.ym=this.ym,t.zm=this.zm,t.fg=this.fg.J(),t.gg=this.gg.J(),t.Sk=this.Sk,t.Rk=this.Rk,t.Uf=this.Uf,t},Oe.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Oe.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Oe.o)return this;var t=this.figures;t.freeze(),t=t.s;for(var e=t.length,n=0;n<e;n++)t[n].freeze();return this},Oe.prototype.ka=function(){if(Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Oe.o)return this;var t=this.figures;t.ka(),t=t.s;for(var e=t.length,n=0;n<e;n++)t[n].ka();return this},Oe.prototype.Xa=function(t){if(!(t instanceof Oe))return!1;if(this.type!==t.type)return this.type===Oe.j&&t.type===Oe.o?xa(this,t):t.type===Oe.j&&this.type===Oe.o?xa(t,this):!1;if(this.type===Oe.o){var e=this.figures.s;t=t.figures.s;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(!e[i].Xa(t[i]))return!1;return!0}return It.B(this.startX,t.startX)&&It.B(this.startY,t.startY)&&It.B(this.endX,t.endX)&&It.B(this.endY,t.endY)};function xa(t,e){return t.type!==Oe.j||e.type!==Oe.o?!1:!!(e.figures.count===1&&(e=e.figures.M(0),e.segments.count===1&&It.B(t.startX,e.startX)&&It.B(t.startY,e.startY)&&(e=e.segments.M(0),e.type===gr&&It.B(t.endX,e.endX)&&It.B(t.endY,e.endY))))}Oe.ia=function(t){return t.toString()},Oe.prototype.qb=function(t){t.classType===Oe&&(this.type=t)},Oe.prototype.toString=function(t){switch(t===void 0&&(t=-1),this.type){case Oe.j:return 0>t?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(t)+" "+this.startY.toFixed(t)+"L"+this.endX.toFixed(t)+" "+this.endY.toFixed(t);case Oe.u:var e=new Xt(this.startX,this.startY,0,0);return e.Kv(this.endX,this.endY,0,0),0>t?"M"+e.x.toString()+" "+e.y.toString()+"H"+e.right.toString()+"V"+e.bottom.toString()+"H"+e.left.toString()+"z":"M"+e.x.toFixed(t)+" "+e.y.toFixed(t)+"H"+e.right.toFixed(t)+"V"+e.bottom.toFixed(t)+"H"+e.left.toFixed(t)+"z";case Oe.F:if(e=new Xt(this.startX,this.startY,0,0),e.Kv(this.endX,this.endY,0,0),0>t)return t=e.left.toString()+" "+(e.y+e.height/2).toString(),"M"+t+"A"+(e.width/2).toString()+" "+(e.height/2).toString()+" 0 0 1 "+(e.right.toString()+" "+(e.y+e.height/2).toString())+"A"+(e.width/2).toString()+" "+(e.height/2).toString()+" 0 0 1 "+t;var n=e.left.toFixed(t)+" "+(e.y+e.height/2).toFixed(t);return"M"+n+"A"+(e.width/2).toFixed(t)+" "+(e.height/2).toFixed(t)+" 0 0 1 "+(e.right.toFixed(t)+" "+(e.y+e.height/2).toFixed(t))+"A"+(e.width/2).toFixed(t)+" "+(e.height/2).toFixed(t)+" 0 0 1 "+n;case Oe.o:e="",n=this.figures.s;for(var i=n.length,r=0;r<i;r++){var o=n[r];0<r&&(e+=" x "),o.isFilled&&(e+="F "),e+=o.toString(t)}return e;default:return this.type.toString()}},Oe.nb=function(t){t=t.split(/[Xx]/);for(var e=t.length,n="",i=0;i<e;i++){var r=t[i];n=r.match(/[Ff]/)!==null?i===0?n+r:n+("X"+(r[0]===" "?"":" ")+r):n+((i===0?"":"X ")+"F"+(r[0]===" "?"":" ")+r)}return n},Oe.parse=function(t,e){function n(){return F>=yt-1?!0:d[F+1].match(Nt)!==null}function i(){return F++,d[F]}function r(Xn){var Vn=parseFloat(i()),Ji=parseFloat(i());nt===nt.toLowerCase()&&(Vn=ht.x+Vn,Ji=ht.y+Ji),Xn.h(Vn,Ji)}function o(){return r(ht),ht}function s(){return r(ut),ut}function l(){var Xn=X.toLowerCase();return Xn!=="c"&&Xn!=="s"&&Xn!=="q"&&Xn!=="t"?ht:new z(2*ht.x-ut.x,2*ht.y-ut.y)}e===void 0&&(e=!1);var u=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;t=t.replace(/,/gm," "),t=t.replace(u,"$1 $2"),t=t.replace(u,"$1 $2"),t=t.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),t=t.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),t=t.replace(/([0-9])([+\-])/gm,"$1 $2"),t=t.replace(/[\s\r\t\n]+/gm," "),t=t.replace(/^\s+|\s+$/g,"");var d=t.split(" ");for(t=0;t<d.length;t++){var f=d[t];if(f.match(/(\.[0-9]*)(\.)/gm)!==null){u=bn();for(var y="",T=!1,w=0;w<f.length;w++){var N=f[w];N!=="."||T?N==="."?(u.push(y),y="."):y+=N:(T=!0,y+=N)}for(u.push(y),d.splice(t,1),f=0;f<u.length;f++)d.splice(t+f,0,u[f]);t+=u.length-1,En(u)}}var F=-1,nt="",X="";u=new z(0,0);var ut=new z(0,0),ht=new z(0,0),yt=d.length;t=zy(null),T=y=f=!1,w=!0,N=null;for(var Nt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(F>=yt-1);)if(X=nt,nt=i(),nt!=="")switch(nt.toUpperCase()){case"X":w=!0,y=f=!1;break;case"M":for(N=o(),t.mc===null||w===!0?(sf(t,N.x,N.y,f,!y,T),w=!1):t.moveTo(N.x,N.y),u.assign(ht);!n();)N=o(),t.lineTo(N.x,N.y);break;case"L":for(;!n();)N=o(),t.lineTo(N.x,N.y);break;case"H":for(;!n();)ht=new z((nt===nt.toLowerCase()?ht.x:0)+parseFloat(i()),ht.y),t.lineTo(ht.x,ht.y);break;case"V":for(;!n();)ht=new z(ht.x,(nt===nt.toLowerCase()?ht.y:0)+parseFloat(i())),t.lineTo(ht.x,ht.y);break;case"C":for(;!n();){N=new z,r(N);var Yt=s(),Qe=o();Ac(t,N.x,N.y,Yt.x,Yt.y,Qe.x,Qe.y)}break;case"S":for(;!n();)N=l(),Yt=s(),Qe=o(),Ac(t,N.x,N.y,Yt.x,Yt.y,Qe.x,Qe.y);break;case"Q":for(;!n();)N=s(),Yt=o(),Zg(t,N.x,N.y,Yt.x,Yt.y);break;case"T":for(;!n();)ut=N=l(),Yt=o(),Zg(t,N.x,N.y,Yt.x,Yt.y);break;case"B":for(;!n();){N=parseFloat(i()),Yt=parseFloat(i()),Qe=parseFloat(i());var xn=parseFloat(i()),dn=parseFloat(i()),De=dn,ge=!1;n()||(De=parseFloat(i()),n()||(ge=parseFloat(i())!==0)),nt===nt.toLowerCase()&&(Qe+=ht.x,xn+=ht.y),t.arcTo(N,Yt,Qe,xn,dn,De,ge)}break;case"A":for(;!n();)N=Math.abs(parseFloat(i())),Yt=Math.abs(parseFloat(i())),Qe=parseFloat(i()),dn=xn=!1,ge=De=0,De=i(),De.length===1?(xn=!!parseFloat(De),dn=!!parseFloat(i()),De=parseFloat(i())):De.length===2?(xn=!!parseFloat(De[0]),dn=!!parseFloat(De[1]),De=parseFloat(i())):(xn=!!parseFloat(De[0]),dn=!!parseFloat(De[1]),De=parseFloat(De.slice(2))),ge=parseFloat(i()),nt===nt.toLowerCase()&&(De=ht.x+De,ge=ht.y+ge),ht.h(De,ge),_1(t,N,Yt,Qe,xn,dn,De,ge);break;case"Z":P1(t),ht.assign(u);break;case"F":for(N="",Yt=1;d[F+Yt];)if(d[F+Yt]==="0")T=!0,Yt++;else if(d[F+Yt].match(/[Uu]/)!==null)Yt++;else if(d[F+Yt].match(Nt)===null)Yt++;else{N=d[F+Yt];break}N.match(/[Mm]/)?f=!0:0<t.mc.segments.length&&(t.mc.isFilled=!0);break;case"U":for(N="",Yt=1;d[F+Yt];)if(d[F+Yt].match(/[Ff]/)!==null)Yt++;else if(d[F+Yt].match(Nt)===null)Yt++;else{N=d[F+Yt];break}N.match(/[Mm]/)?y=!0:t.mc.isShadowed=!1}if(u=t.os,$g=t,e)for(e=u.figures.iterator;e.next();)e.value.isFilled=!0;return u},Oe.Ha=function(t,e){for(var n=t.length,i=z.alloc(),r=0;r<n;r++){var o=t[r];i.x=o[0],i.y=o[1],e.Ga(i),o[0]=i.x,o[1]=i.y,i.x=o[2],i.y=o[3],e.Ga(i),o[2]=i.x,o[3]=i.y,i.x=o[4],i.y=o[5],e.Ga(i),o[4]=i.x,o[5]=i.y,i.x=o[6],i.y=o[7],e.Ga(i),o[6]=i.x,o[7]=i.y}z.free(i)},Oe.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Oe.o){if(this.aq!==this.figures.Ja)return!0;for(var t=this.figures.s,e=t.length,n=0;n<e;n++)if(t[n].Zu())return!0}return!1},Oe.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Oe.o){this.aq=this.figures.Ja;for(var t=this.figures.s,e=t.length,n=0;n<e;n++){var i=t[n];i._isInvalidBounds=!1;var r=i.segments;i.sr=r.Ja,i=r.s,r=i.length;for(var o=0;o<r;o++){var s=i[o];s._isInvalidBounds=!1,s.ae=null}}}t=this.Ip,t.ka(),isNaN(this.Sk)||isNaN(this.Rk)?t.h(0,0,0,0):t.h(0,0,this.Sk,this.Rk),il(this,t,!1),Ni(t,0,0,0,0),t.freeze()},Oe.prototype.ix=function(){var t=new Xt;return il(this,t,!0),t};function il(t,e,n){switch(t.type){case Oe.j:case Oe.u:case Oe.F:n?e.h(t.od,t.pd,0,0):Ni(e,t.od,t.pd,0,0),Ni(e,t.Dc,t.Ec,0,0);break;case Oe.o:var i=t.figures;t=i.s,i=i.length;for(var r=0;r<i;r++){var o=t[r];n&&r===0?e.h(o.startX,o.startY,0,0):Ni(e,o.startX,o.startY,0,0);for(var s=o.segments.s,l=s.length,u=o.startX,d=o.startY,f=0;f<l;f++){var y=s[f];switch(y.type){case gr:case Wr:u=y.endX,d=y.endY,Ni(e,u,d,0,0);break;case ko:It.Dl(u,d,y.point1X,y.point1Y,y.point2X,y.point2Y,y.endX,y.endY,.5,e),u=y.endX,d=y.endY;break;case js:It.iv(u,d,y.point1X,y.point1Y,y.endX,y.endY,.5,e),u=y.endX,d=y.endY;break;case fo:case Zs:var T=y.type===fo?fs(y,o):_s(y,o,u,d),w=T.length;if(w===0){u=y.type===fo?y.centerX:y.endX,d=y.type===fo?y.centerY:y.endY,Ni(e,u,d,0,0);break}y=null;for(var N=0;N<w;N++)y=T[N],It.Dl(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],.5,e);y!==null&&(u=y[6],d=y[7]);break;default:Et("Unknown Segment type: "+y.type)}}}break;default:Et("Unknown Geometry type: "+t.type)}}Oe.prototype.normalize=function(){this._isFrozen&&Wt(this);var t=this.ix();return this.offset(-t.x,-t.y),new z(-t.x,-t.y)},Oe.prototype.offset=function(t,e){return this._isFrozen&&Wt(this),this.transform(1,0,0,1,t,e),this},Oe.prototype.scale=function(t,e){return this._isFrozen&&Wt(this),this.transform(t,0,0,e,0,0),this},Oe.prototype.rotate=function(t,e,n){this._isFrozen&&Wt(this),e===void 0&&(e=0),n===void 0&&(n=0);var i=jn.alloc();return i.reset(),i.rotate(t,e,n),this.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),jn.free(i),this},A=Oe.prototype,A.transform=function(t,e,n,i,r,o){switch(this.type){case Oe.j:case Oe.u:case Oe.F:var s=this.od,l=this.pd;this.od=s*t+l*n+r,this.pd=s*e+l*i+o,s=this.Dc,l=this.Ec,this.Dc=s*t+l*n+r,this.Ec=s*e+l*i+o;break;case Oe.o:for(var u=this.figures.s,d=u.length,f=0;f<d;f++){var y=u[f];s=y.startX,l=y.startY,y.startX=s*t+l*n+r,y.startY=s*e+l*i+o,y=y.segments.s;for(var T=y.length,w=0;w<T;w++){var N=y[w];switch(N.type){case gr:case Wr:s=N.endX,l=N.endY,N.endX=s*t+l*n+r,N.endY=s*e+l*i+o;break;case ko:s=N.point1X,l=N.point1Y,N.point1X=s*t+l*n+r,N.point1Y=s*e+l*i+o,s=N.point2X,l=N.point2Y,N.point2X=s*t+l*n+r,N.point2Y=s*e+l*i+o,s=N.endX,l=N.endY,N.endX=s*t+l*n+r,N.endY=s*e+l*i+o;break;case js:s=N.point1X,l=N.point1Y,N.point1X=s*t+l*n+r,N.point1Y=s*e+l*i+o,s=N.endX,l=N.endY,N.endX=s*t+l*n+r,N.endY=s*e+l*i+o;break;case fo:s=N.centerX,l=N.centerY,N.centerX=s*t+l*n+r,N.centerY=s*e+l*i+o,e!==0&&(s=180*Math.atan2(e,t)/Math.PI,0>s&&(s+=360),N.startAngle+=s),0>t&&(N.startAngle=180-N.startAngle,N.sweepAngle=-N.sweepAngle),0>i&&(N.startAngle=-N.startAngle,N.sweepAngle=-N.sweepAngle),N.radiusX*=Math.sqrt(t*t+n*n),N.radiusY!==void 0&&(N.radiusY*=Math.sqrt(e*e+i*i));break;case Zs:if(s=N.endX,l=N.endY,N.endX=s*t+l*n+r,N.endY=s*e+l*i+o,N.radiusX===0||N.radiusY===0)break;e!==0&&(s=180*Math.atan2(e,t)/Math.PI,0>s&&(s+=360),N.xAxisRotation+=s),0>t&&(N.xAxisRotation=180-N.xAxisRotation,N.isClockwiseArc=!N.isClockwiseArc),0>i&&(N.xAxisRotation=-N.xAxisRotation,N.isClockwiseArc=!N.isClockwiseArc),N.radiusX*=Math.sqrt(t*t+n*n),N.radiusY*=Math.sqrt(e*e+i*i);break;default:Et("Unknown Segment type: "+N.type)}}}}return this._isInvalidBounds=!0,this},A.ca=function(t,e){e===void 0&&(e=0);var n=this.od,i=this.pd,r=this.Dc,o=this.Ec;switch(this.type){case Oe.j:return It.Yb(n,i,r,o,e,t.x,t.y);case Oe.u:var s=Xt.allocAt(Math.min(n,r)-e,Math.min(i,o)-e,Math.abs(r-n)+2*e,Math.abs(o-i)+2*e);return t=s.ca(t),Xt.free(s),t;case Oe.F:s=Math.min(n,r)-e;var l=Math.min(i,o)-e;return n=(Math.abs(r-n)+2*e)/2,e=(Math.abs(o-i)+2*e)/2,0>=n||0>=e?!1:(s=t.x-(s+n),l=t.y-(l+e),1>=s*s/(n*n)+l*l/(e*e));case Oe.o:return Fo(this,t,e,!0,!1);default:return!1}};function Fo(t,e,n,i,r){var o=e.x;e=e.y;for(var s=t.bounds.x-20,l=0,u,d,f,y,T=t.figures.s,w=T.length,N=0;N<w;N++){var F=T[N],nt=!F.isEvenOdd;if(F.isFilled){if(i&&F.ca(o,e,n))return!0;var X=F.segments;u=F.startX,d=F.startY;for(var ut=u,ht=d,yt=X.s,Nt=0;Nt<=X.length;Nt++){var Yt=void 0;if(Nt!==X.length){Yt=yt[Nt];var Qe=Yt.type;t=Yt.endX,y=Yt.endY}else Qe=gr,t=ut,y=ht;switch(Qe){case Wr:if(ut=ts(o,e,s,e,u,d,ut,ht),isNaN(ut))return!0;l+=ut,ut=t,ht=y;break;case gr:if(u=ts(o,e,s,e,u,d,t,y),isNaN(u))return!0;l+=u;break;case ko:f=It.Fo(u,d,Yt.point1X,Yt.point1Y,Yt.point2X,Yt.point2Y,t,y,s,e,o,e,.5),l+=f;break;case js:f=It.Fo(u,d,(u+2*Yt.point1X)/3,(d+2*Yt.point1Y)/3,(2*Yt.point1X+t)/3,(2*Yt.point1Y+y)/3,t,y,s,e,o,e,.5),l+=f;break;case fo:case Zs:Qe=Yt.type===fo?fs(Yt,F):_s(Yt,F,u,d);var xn=Qe.length;if(xn===0){if(u=ts(o,e,s,e,u,d,Yt.type===fo?Yt.centerX:Yt.endX,Yt.type===fo?Yt.centerY:Yt.endY),isNaN(u))return!0;l+=u;break}Yt=null;for(var dn=0;dn<xn;dn++){if(Yt=Qe[dn],dn===0){if(f=ts(o,e,s,e,u,d,Yt[0],Yt[1]),isNaN(f))return!0;l+=f}f=It.Fo(Yt[0],Yt[1],Yt[2],Yt[3],Yt[4],Yt[5],Yt[6],Yt[7],s,e,o,e,.5),l+=f}Yt!==null&&(t=Yt[6],y=Yt[7]);break;default:Et("Unknown Segment type: "+Yt.type)}u=t,d=y}if(nt){if(l!==0)return!0}else if(l%2!==0)return!0;l=0}else if(F.ca(o,e,r?n:n+2))return!0}return!1}function ts(t,e,n,i,r,o,s,l){if(It.Yb(r,o,s,l,.05,t,e))return NaN;var u=(t-n)*(o-l);if(u===0)return 0;var d=((t*i-e*n)*(r-s)-(t-n)*(r*l-o*s))/u;if(e=(t*i-e*n)*(o-l)/u,d>=t)return 0;if((r>s?r-s:s-r)<(o>l?o-l:l-o)){if(o<l){if(e<o||e>l)return 0}else if(e<l||e>o)return 0}else if(r<s){if(d<r||d>s)return 0}else if(d<s||d>r)return 0;return 0<u?1:-1}function ia(t,e,n,i){t=t.figures.s;for(var r=t.length,o=0;o<r;o++)if(t[o].ca(e,n,i))return!0;return!1}A.Pu=function(t,e){if(0>t?t=0:1<t&&(t=1),e===void 0&&(e=new z),this.type===Oe.j)return e.h(this.startX+t*(this.endX-this.startX),this.startY+t*(this.endY-this.startY)),e;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*t,s=0,l=0;l<r;l++){var u=i[l],d=u.length;for(t=0;t<d;t++){var f=u[t];if(s+f>=o)return i=o-s,i=f===0?0:i/f,n=n[l],l=n[2*t],r=n[2*t+1],e.h(l+(n[2*t+2]-l)*i,r+(n[2*t+3]-r)*i),e;s+=f}}return e},A.wx=function(t){if(0>t?t=0:1<t&&(t=1),this.type===Oe.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var e=this.flattenedSegments,n=this.flattenedLengths,i=e.length,r=this.flattenedTotalLength*t,o=0,s=0;s<i;s++){var l=n[s],u=l.length;for(t=0;t<u;t++){var d=l[t];if(o+d>=r)return r=e[s],e=r[2*t],n=r[2*t+1],i=r[2*t+2],t=r[2*t+3],1>Math.abs(i-e)&&1>Math.abs(t-n)?0:1>Math.abs(i-e)?0<=t-n?90:270:1>Math.abs(t-n)?0<=i-e?0:180:180*Math.atan2(t-n,i-e)/Math.PI;o+=d}}return NaN},A.Qu=function(t,e){if(0>t?t=0:1<t&&(t=1),e===void 0&&(e=[]),e.length=3,this.type===Oe.j)return e[0]=this.startX+t*(this.endX-this.startX),e[1]=this.startY+t*(this.endY-this.startY),e[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,e;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*t,s=0,l=0;l<r;l++){var u=i[l],d=u.length;for(t=0;t<d;t++){var f=u[t];if(s+f>=o)return i=o-s,i=f===0?0:i/f,f=n[l],n=f[2*t],l=f[2*t+1],r=f[2*t+2],t=f[2*t+3],e[0]=n+(r-n)*i,e[1]=l+(t-l)*i,e[2]=1>Math.abs(r-n)&&1>Math.abs(t-l)?0:1>Math.abs(r-n)?0<=t-l?90:270:1>Math.abs(t-l)?0<=r-n?0:180:180*Math.atan2(t-l,r-n)/Math.PI,e;s+=f}}return e},A.xx=function(t){if(this.type===Oe.j){var e=this.startX,n=this.startY,i=this.endX,r=this.endY;if(e!==i||n!==r){var o=t.x;if(t=t.y,e===i){if(n<r){var s=n;i=r}else s=r,i=n;return t<=s?s===n?0:1:t>=i?i===n?0:1:Math.abs(t-n)/(i-s)}if(n===r)return e<i?s=e:(s=i,i=e),o<=s?s===e?0:1:o>=i?i===e?0:1:Math.abs(o-e)/(i-s);s=(i-e)*(i-e)+(r-n)*(r-n);var l=z.alloc();return It.qh(e,n,i,r,o,t,l),t=l.x,o=l.y,z.free(l),Math.sqrt(((t-e)*(t-e)+(o-n)*(o-n))/s)}}else if(this.type===Oe.u){s=this.startX,l=this.startY;var u=this.endX;if(r=this.endY,s!==u||l!==r){e=u-s,n=r-l,o=2*e+2*n,i=t.x,t=t.y,i=Math.min(Math.max(i,s),u),t=Math.min(Math.max(t,l),r),s=Math.abs(i-s),u=Math.abs(i-u),l=Math.abs(t-l),r=Math.abs(t-r);var d=Math.min(s,u,l,r);if(d===l)return i/o;if(d===u)return(e+t)/o;if(d===r)return(2*e+n-i)/o;if(d===s)return(2*e+2*n-t)/o}}else{e=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,i=z.alloc(),r=1/0,l=s=0,u=e.length;for(var f=d=0,y=0;y<u;y++)for(var T=e[y],w=n[y],N=T.length,F=0;F<N;F+=2){var nt=T[F],X=T[F+1];if(F!==0){It.qh(d,f,nt,X,t.x,t.y,i);var ut=(i.x-t.x)*(i.x-t.x)+(i.y-t.y)*(i.y-t.y);ut<r&&(r=ut,s=l,s+=Math.sqrt((i.x-d)*(i.x-d)+(i.y-f)*(i.y-f))),l+=w[(F-2)/2]}d=nt,f=X}return z.free(i),t=s/o,0>t?0:1<t?1:t}return 0};function ba(t){if(t.tk===null){var e=t.tk=[],n=t.ym=[],i=[],r=[];if(t.type===Oe.j)i.push(t.startX),i.push(t.startY),i.push(t.endX),i.push(t.endY),e.push(i),r.push(Math.sqrt((t.startX-t.endX)*(t.startX-t.endX)+(t.startY-t.endY)*(t.startY-t.endY))),n.push(r);else if(t.type===Oe.u)i.push(t.startX),i.push(t.startY),i.push(t.endX),i.push(t.startY),i.push(t.endX),i.push(t.endY),i.push(t.startX),i.push(t.endY),i.push(t.startX),i.push(t.startY),e.push(i),r.push(Math.abs(t.startX-t.endX)),r.push(Math.abs(t.startY-t.endY)),r.push(Math.abs(t.startX-t.endX)),r.push(Math.abs(t.startY-t.endY)),n.push(r);else if(t.type===Oe.F){var o=new To;o.startX=t.endX,o.startY=(t.startY+t.endY)/2;var s=new Oi(fo);if(s.startAngle=0,s.sweepAngle=360,s.centerX=(t.startX+t.endX)/2,s.centerY=(t.startY+t.endY)/2,s.radiusX=Math.abs(t.startX-t.endX)/2,s.radiusY=Math.abs(t.startY-t.endY)/2,o.add(s),t=fs(s,o),r=t.length,r===0)i.push(s.centerX),i.push(s.centerY);else{s=o.startX,o=o.startY;for(var l=0;l<r;l++){var u=t[l];It.Qe(s,o,u[2],u[3],u[4],u[5],u[6],u[7],.5,i),s=u[6],o=u[7]}}e.push(i),n.push(Kl(i))}else for(t=t.figures.iterator;t.next();){r=t.value,i=[],i.push(r.startX),i.push(r.startY),s=r.startX,o=r.startY,l=s,u=o;for(var d=r.segments.s,f=d.length,y=0;y<f;y++){var T=d[y];switch(T.type){case Wr:4<=i.length&&(e.push(i),n.push(Kl(i))),i=[],i.push(T.endX),i.push(T.endY),s=T.endX,o=T.endY,l=s,u=o;break;case gr:i.push(T.endX),i.push(T.endY),s=T.endX,o=T.endY;break;case ko:It.Qe(s,o,T.point1X,T.point1Y,T.point2X,T.point2Y,T.endX,T.endY,.5,i),s=T.endX,o=T.endY;break;case js:It.ep(s,o,T.point1X,T.point1Y,T.endX,T.endY,.5,i),s=T.endX,o=T.endY;break;case fo:var w=fs(T,r),N=w.length;if(N===0){i.push(T.centerX),i.push(T.centerY),s=T.centerX,o=T.centerY;break}for(var F=0;F<N;F++){var nt=w[F];It.Qe(s,o,nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],.5,i),s=nt[6],o=nt[7]}break;case Zs:if(w=_s(T,r,s,o),N=w.length,F=T.endX,nt=T.endY,N===0){i.push(F),i.push(nt),s=F,o=nt;break}for(F=0;F<N;F++)nt=w[F],It.Qe(s,o,nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],.5,i),s=nt[6],o=nt[7];break;default:Et("Segment not of valid type: "+T.type)}T.isClosed&&(i.push(l),i.push(u))}4<=i.length&&(e.push(i),n.push(Kl(i)))}}}function Kl(t){for(var e=[],n=0,i=0,r=t.length,o=0;o<r;o+=2){var s=t[o],l=t[o+1];o!==0&&e.push(Math.sqrt(_n(n,i,s,l))),n=s,i=l}return e}A.add=function(t){return this.ee.add(t),this},A.pm=function(t,e,n,i,r,o,s,l){return this._isFrozen&&Wt(this),this.fg=new vn(t,e,r,o).freeze(),this.gg=new vn(n,i,s,l).freeze(),this},Mn.Object.defineProperties(Oe.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(t){this.l=t?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(t){this.l=t?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return ba(this),this.tk}},flattenedLengths:{get:function(){return ba(this),this.ym}},flattenedTotalLength:{get:function(){var t=this.zm;if(isNaN(t)){if(this.type===Oe.j){t=Math.abs(this.endX-this.startX);var e=Math.abs(this.endY-this.startY);t=Math.sqrt(t*t+e*e)}else if(this.type===Oe.u)t=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{e=this.flattenedLengths;for(var n=e.length,i=t=0;i<n;i++)for(var r=e[i],o=r.length,s=0;s<o;s++)t+=r[s]}this.zm=t}return t}},type:{get:function(){return this.na},set:function(t){this.na!==t&&(this._isFrozen&&Wt(this,t),this.na=t,t===Oe.o?this.ee=new Te:(Oe.V===null&&(Oe.V=new Te().freeze()),this.ee=Oe.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(t){this.od!==t&&(this._isFrozen&&Wt(this,t),this.od=t,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(t){this.pd!==t&&(this._isFrozen&&Wt(this,t),this.pd=t,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(t){this.Dc!==t&&(this._isFrozen&&Wt(this,t),this.Dc=t,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(t){this.Ec!==t&&(this._isFrozen&&Wt(this,t),this.Ec=t,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(t){this.ee!==t&&(this._isFrozen&&Wt(this,t),this.ee=t,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(t){this._isFrozen&&Wt(this,t),this.fg=t.J()}},spot2:{get:function(){return this.gg},set:function(t){this._isFrozen&&Wt(this,t),this.gg=t.J()}},defaultStretch:{get:function(){return this.Uf},set:function(t){this._isFrozen&&Wt(this,t),this.Uf=t}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Oe.prototype.setSpots=Oe.prototype.pm,Oe.prototype.add=Oe.prototype.add,Oe.prototype.getFractionForPoint=Oe.prototype.xx,Oe.prototype.getPointAndAngleAlongPath=Oe.prototype.Qu,Oe.prototype.getAngleAlongPath=Oe.prototype.wx,Oe.prototype.getPointAlongPath=Oe.prototype.Pu,Oe.prototype.containsPoint=Oe.prototype.ca,Oe.prototype.transform=Oe.prototype.transform,Oe.prototype.rotate=Oe.prototype.rotate,Oe.prototype.scale=Oe.prototype.scale,Oe.prototype.offset=Oe.prototype.offset,Oe.prototype.normalize=Oe.prototype.normalize,Oe.prototype.computeBoundsWithoutOrigin=Oe.prototype.ix,Oe.prototype.equalsApprox=Oe.prototype.Xa,Oe.className="Geometry",Oe.j=new xe(Oe,"Line",0),Oe.u=new xe(Oe,"Rectangle",1),Oe.F=new xe(Oe,"Ellipse",2),Oe.o=new xe(Oe,"Path",3),Oe.V=null,Oe.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Oe.className="Geometry",Oe.stringify=Oe.ia,Oe.fillPath=Oe.nb,Oe.parse=Oe.parse,Oe.Line=Oe.j,Oe.Rectangle=Oe.u,Oe.Ellipse=Oe.F,Oe.Path=Oe.o;function To(t,e,n,i,r){Gn(this),n===void 0&&(n=!0),i===void 0&&(i=!0),r===void 0&&(r=!1),this.l=2|(n?4:0)|(i?8:0)|(r?16:0),t!==void 0?this.od=t:this.od=0,e!==void 0?this.pd=e:this.pd=0,this.pl=new Te,this.sr=this.pl.Ja,this.fw=null}To.prototype.copy=function(){var t=new To;t.l=this.l&-2,t.od=this.od,t.pd=this.pd;for(var e=this.pl.s,n=e.length,i=t.pl,r=0;r<n;r++){var o=e[r].copy();i.add(o)}return t.sr=this.sr,t.fw=this.fw,t},A=To.prototype,A.Xa=function(t){if(!(t instanceof To&&It.B(this.startX,t.startX)&&It.B(this.startY,t.startY)))return!1;var e=this.segments.s;t=t.segments.s;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(!e[i].Xa(t[i]))return!1;return!0},A.toString=function(t){t===void 0&&(t=-1);for(var e=0>t?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(t)+" "+this.startY.toFixed(t),n=this.segments.s,i=n.length,r=0;r<i;r++)e+=" "+n[r].toString(t);return e},A.freeze=function(){this._isFrozen=!0;var t=this.segments;t.freeze();var e=t.s;t=t.length;for(var n=0;n<t;n++)e[n].freeze();return this},A.ka=function(){this._isFrozen=!1;var t=this.segments;t.ka(),t=t.s;for(var e=t.length,n=0;n<e;n++)t[n].ka();return this},A.Zu=function(){if(this._isInvalidBounds)return!0;var t=this.segments;if(this.sr!==t.Ja)return!0;t=t.s;for(var e=t.length,n=0;n<e;n++)if(t[n]._isInvalidBounds)return!0;return!1},A.add=function(t){return this.pl.add(t),this},A.ca=function(t,e,n){for(var i=this.startX,r=this.startY,o=i,s=r,l=this.segments.s,u=l.length,d=0;d<u;d++){var f=l[d];switch(f.type){case Wr:o=f.endX,s=f.endY,i=f.endX,r=f.endY;break;case gr:if(It.Yb(i,r,f.endX,f.endY,n,t,e))return!0;i=f.endX,r=f.endY;break;case ko:if(It.cs(i,r,f.point1X,f.point1Y,f.point2X,f.point2Y,f.endX,f.endY,.5,t,e,n))return!0;i=f.endX,r=f.endY;break;case js:if(It.jv(i,r,f.point1X,f.point1Y,f.endX,f.endY,.5,t,e,n))return!0;i=f.endX,r=f.endY;break;case fo:case Zs:var y=f.type===fo?fs(f,this):_s(f,this,i,r),T=y.length,w=f.type===fo?f.centerX:f.endX,N=f.type===fo?f.centerY:f.endY;if(T===0){if(It.Yb(i,r,w,N,n,t,e))return!0;i=w,r=N;break}for(w=null,N=0;N<T;N++)if(w=y[N],N===0&&It.Yb(i,r,w[0],w[1],n,t,e)||It.cs(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],.5,t,e,n))return!0;w!==null&&(i=w[6],r=w[7]);break;default:Et("Unknown Segment type: "+f.type)}if(f.isClosed&&(i!==o||r!==s)&&It.Yb(i,r,o,s,n,t,e))return!0}return!1},Mn.Object.defineProperties(To.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(t){this.l=t?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(t){this.l=t?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(t){this._isFrozen&&Wt(this,t),this.l=t?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(t){this._isFrozen&&Wt(this,t),this.l=t?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(t){this._isFrozen&&Wt(this,t),this.l=t?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(t){this._isFrozen&&Wt(this,t),this.od=t,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(t){this._isFrozen&&Wt(this,t),this.pd=t,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(t){this._isFrozen&&Wt(this,t),this.pl=t,this._isInvalidBounds=!0}}}),To.prototype.add=To.prototype.add,To.prototype.equalsApprox=To.prototype.Xa,To.className="PathFigure";function Oi(t,e,n,i,r,o,s,l){Gn(this),t===void 0&&(t=gr),this.na=t,this.l=2,e!==void 0?this.Dc=e:this.Dc=0,n!==void 0?this.Ec=n:this.Ec=0,i===void 0&&(i=0),r===void 0&&(r=0),o===void 0&&(o=0),s===void 0&&(s=0),t===Zs?(t=o%360,0>t&&(t+=360),this.Ne=t,this.Vh=0,this.Wh=Math.max(i,0),this.Pg=Math.max(r,0),typeof s=="boolean"?s&&(this.isLargeArc=!0):typeof s=="number"&&s&&(this.isLargeArc=!0),l&&(this.isClockwiseArc=!0)):(this.Ne=i,this.Vh=r,t===fo&&(o=Math.max(o,0)),this.Wh=o,typeof s=="number"?(t===fo&&(s=Math.max(s,0)),this.Pg=s):this.Pg=0),this.ae=null}Oi.prototype.copy=function(){var t=new Oi;return t.na=this.na,t.l=this.l&-2,t.Dc=this.Dc,t.Ec=this.Ec,t.Ne=this.Ne,t.Vh=this.Vh,t.Wh=this.Wh,t.Pg=this.Pg,t},A=Oi.prototype,A.Xa=function(t){if(!(t instanceof Oi)||this.type!==t.type||this.isClosed!==t.isClosed)return!1;switch(this.type){case Wr:case gr:return It.B(this.endX,t.endX)&&It.B(this.endY,t.endY);case ko:return It.B(this.endX,t.endX)&&It.B(this.endY,t.endY)&&It.B(this.point1X,t.point1X)&&It.B(this.point1Y,t.point1Y)&&It.B(this.point2X,t.point2X)&&It.B(this.point2Y,t.point2Y);case js:return It.B(this.endX,t.endX)&&It.B(this.endY,t.endY)&&It.B(this.point1X,t.point1X)&&It.B(this.point1Y,t.point1Y);case fo:return It.B(this.startAngle,t.startAngle)&&It.B(this.sweepAngle,t.sweepAngle)&&It.B(this.centerX,t.centerX)&&It.B(this.centerY,t.centerY)&&It.B(this.radiusX,t.radiusX)&&It.B(this.radiusY,t.radiusY);case Zs:return this.isClockwiseArc===t.isClockwiseArc&&this.isLargeArc===t.isLargeArc&&It.B(this.xAxisRotation,t.xAxisRotation)&&It.B(this.endX,t.endX)&&It.B(this.endY,t.endY)&&It.B(this.radiusX,t.radiusX)&&It.B(this.radiusY,t.radiusY);default:return!1}},A.qb=function(t){t.classType===Oi&&(this.type=t)},A.toString=function(t){switch(t===void 0&&(t=-1),this.type){case Wr:t=0>t?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case gr:t=0>t?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case ko:t=0>t?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(t)+" "+this.point1Y.toFixed(t)+" "+this.point2X.toFixed(t)+" "+this.point2Y.toFixed(t)+" "+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case js:t=0>t?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(t)+" "+this.point1Y.toFixed(t)+" "+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case fo:t=0>t?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(t)+" "+this.sweepAngle.toFixed(t)+" "+this.centerX.toFixed(t)+" "+this.centerY.toFixed(t)+" "+this.radiusX.toFixed(t)+" "+this.radiusY.toFixed(t);break;case Zs:t=0>t?"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(t)+" "+this.radiusY.toFixed(t)+" "+this.xAxisRotation.toFixed(t)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;default:t=this.type.toString()}return t+(this.isClosed?"z":"")},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return this._isFrozen=!1,this},A.close=function(){return this.isClosed=!0,this};function fs(t,e){if(t.ae!==null&&e._isInvalidBounds===!1)return t.ae;var n=t.radiusX,i=t.radiusY;if(i===void 0&&(i=n),n===0||i===0)return t.ae=[],t.ae;e=t.Ne;var r=t.Vh,o=It.jx(0,0,n<i?n:i,t.startAngle,t.startAngle+t.sweepAngle,!1);if(n!==i){var s=jn.alloc();s.reset(),n<i?s.scale(1,i/n):s.scale(n/i,1),Oe.Ha(o,s),jn.free(s)}for(n=o.length,i=0;i<n;i++)s=o[i],s[0]+=e,s[1]+=r,s[2]+=e,s[3]+=r,s[4]+=e,s[5]+=r,s[6]+=e,s[7]+=r;return t.ae=o,t.ae}function _s(t,e,n,i){function r(F,nt,X,ut){return(F*ut<nt*X?-1:1)*Math.acos((F*X+nt*ut)/(Math.sqrt(F*F+nt*nt)*Math.sqrt(X*X+ut*ut)))}if(t.ae!==null&&e._isInvalidBounds===!1)return t.ae;if(t.radiusX===0||t.radiusY===0)return t.ae=[],t.ae;e=t.Wh;var o=t.Pg;e===0&&(e=1e-4),o===0&&(o=1e-4);var s=Math.PI/180*t.Ne,l=t.isLargeArc,u=t.isClockwiseArc,d=t.Dc,f=t.Ec,y=Math.cos(s),T=Math.sin(s),w=y*(n-d)/2+T*(i-f)/2;s=-T*(n-d)/2+y*(i-f)/2;var N=w*w/(e*e)+s*s/(o*o);return 1<N&&(e*=Math.sqrt(N),o*=Math.sqrt(N)),N=(l===u?-1:1)*Math.sqrt((e*e*o*o-e*e*s*s-o*o*w*w)/(e*e*s*s+o*o*w*w)),isNaN(N)&&(N=0),l=N*e*s/o,N=N*-o*w/e,isNaN(l)&&(l=0),isNaN(N)&&(N=0),n=(n+d)/2+y*l-T*N,i=(i+f)/2+T*l+y*N,f=r(1,0,(w-l)/e,(s-N)/o),y=(w-l)/e,d=(s-N)/o,w=(-w-l)/e,l=(-s-N)/o,s=r(y,d,w,l),w=(y*w+d*l)/(Math.sqrt(y*y+d*d)*Math.sqrt(w*w+l*l)),-1>=w?s=Math.PI:1<=w&&(s=0),!u&&0<s&&(s-=2*Math.PI),u&&0>s&&(s+=2*Math.PI),u=e>o?1:e/o,w=e>o?o/e:1,e=It.jx(0,0,e>o?e:o,f,f+s,!0),o=jn.alloc(),o.reset(),o.translate(n,i),o.rotate(t.Ne,0,0),o.scale(u,w),Oe.Ha(e,o),jn.free(o),t.ae=e,t.ae}Mn.Object.defineProperties(Oi.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(t){this.l=t?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(t){this.l=t?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(t){this.isClosed!==t&&(this.l=t?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(t){this._isFrozen&&Wt(this,t),this.na=t,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(t){this._isFrozen&&Wt(this,t),this.Dc=t,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(t){this._isFrozen&&Wt(this,t),this.Ec=t,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(t){this._isFrozen&&Wt(this,t),this.Ne=t,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(t){this._isFrozen&&Wt(this,t),this.Vh=t,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(t){this._isFrozen&&Wt(this,t),this.Wh=t,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(t){this._isFrozen&&Wt(this,t),this.Pg=t,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(t){this._isFrozen&&Wt(this,t),this.Ne=t,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(t){this._isFrozen&&Wt(this,t),this.Vh=t,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(t){0>t&&rn(t,">= zero",Oi,"radiusX"),this._isFrozen&&Wt(this,t),this.Wh=t,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(t){0>t&&rn(t,">= zero",Oi,"radiusY"),this._isFrozen&&Wt(this,t),this.Pg=t,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(t){this._isFrozen&&Wt(this,t),t%=360,0>t&&(t+=360),this.Dc=t,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(t){this._isFrozen&&Wt(this,t),360<t&&(t=360),-360>t&&(t=-360),this.Ec=t,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(t){this._isFrozen&&Wt(this,t),this.l=t?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(t){this._isFrozen&&Wt(this,t),this.l=t?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(t){this._isFrozen&&Wt(this,t),t%=360,0>t&&(t+=360),this.Ne=t,this._isInvalidBounds=!0}}}),Oi.prototype.equalsApprox=Oi.prototype.Xa;var Wr=new xe(Oi,"Move",0),gr=new xe(Oi,"Line",1),ko=new xe(Oi,"Bezier",2),js=new xe(Oi,"QuadraticBezier",3),fo=new xe(Oi,"Arc",4),Zs=new xe(Oi,"SvgArc",4);Oi.className="PathSegment",Oi.Move=Wr,Oi.Line=gr,Oi.Bezier=ko,Oi.QuadraticBezier=js,Oi.Arc=fo,Oi.SvgArc=Zs;function es(){this.H=null,this.xu=new z(0,0).freeze(),this.mt=new z(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}es.prototype.copy=function(){var t=new es;return this.clone(t)},es.prototype.clone=function(t){return t.H=this.H,t.xu.assign(this.viewPoint),t.mt.assign(this.documentPoint),t.Rq=this.Rq,t.Bp=this.Bp,t.Cp=this.Cp,t.xq=this.xq,t.Tp=this.Tp,t.Wr=this.Wr,t.Ep=this.Ep,t.Rp=this.Rp,t.tq=this.tq,t.nq=this.nq,t.xg=this.xg,t.Zp=this.Zp,t.Rr=this.Rr,t.Nr=this.Nr,t.xd=this.xd,t},es.prototype.toString=function(){var t="^";return this.modifiers!==0&&(t+="M:"+this.modifiers),this.button!==0&&(t+="B:"+this.button),this.key!==""&&(t+="K:"+this.key),this.clickCount!==0&&(t+="C:"+this.clickCount),this.delta!==0&&(t+="D:"+this.delta),this.handled&&(t+="h"),this.bubbles&&(t+="b"),this.documentPoint!==null&&(t+="@"+this.documentPoint.toString()),t},es.prototype.So=function(t,e){var n=this.diagram;return n===null||Hf(n,t,e),e},es.prototype.Bz=function(t,e){var n=this.diagram;return n===null||(Hf(n,t,e),e.assign(n.Ps(e))),e},Mn.Object.defineProperties(es.prototype,{diagram:{get:function(){return this.H},set:function(t){this.H=t}},viewPoint:{get:function(){return this.xu},set:function(t){this.xu.assign(t)}},documentPoint:{get:function(){return this.mt},set:function(t){this.mt.assign(t)}},modifiers:{get:function(){return this.Rq},set:function(t){this.Rq=t}},button:{get:function(){return this.Bp},set:function(t){if(this.Bp=t,this.event===null)switch(t){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(t){this.Cp=t}},key:{get:function(){return this.xq},set:function(t){this.xq=t}},down:{get:function(){return this.Tp},set:function(t){this.Tp=t}},up:{get:function(){return this.Wr},set:function(t){this.Wr=t}},clickCount:{get:function(){return this.Ep},set:function(t){this.Ep=t}},delta:{get:function(){return this.Rp},set:function(t){this.Rp=t}},isMultiTouch:{get:function(){return this.tq},set:function(t){this.tq=t}},handled:{get:function(){return this.nq},set:function(t){this.nq=t}},bubbles:{get:function(){return this.xg},set:function(t){this.xg=t}},event:{get:function(){return this.Zp},set:function(t){this.Zp=t}},isTouchEvent:{get:function(){var t=this.event;return t===null?!1:t.pointerType==="touch"||t.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(t){this.Rr=t}},targetDiagram:{get:function(){return this.Nr},set:function(t){this.Nr=t}},targetObject:{get:function(){return this.xd},set:function(t){this.xd=t}},control:{get:function(){return(this.modifiers&1)!==0},set:function(t){this.modifiers=t?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(t){this.modifiers=t?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(t){this.modifiers=t?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(t){this.modifiers=t?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var t=this.event;return t===null||t.type!=="mousedown"&&t.type!=="mouseup"&&t.type!=="pointerdown"&&t.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(t){this.buttons=t?this.buttons|1:this.buttons&-2}},right:{get:function(){var t=this.event;return t===null||t.type!=="mousedown"&&t.type!=="mouseup"&&t.type!=="pointerdown"&&t.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(t){this.buttons=t?this.buttons|2:this.buttons&-3}},middle:{get:function(){var t=this.event;return t===null||t.type!=="mousedown"&&t.type!=="mouseup"&&t.type!=="pointerdown"&&t.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(t){this.buttons=t?this.buttons|4:this.buttons&-5}}}),es.prototype.getMultiTouchDocumentPoint=es.prototype.Bz,es.prototype.getMultiTouchViewPoint=es.prototype.So,es.className="InputEvent";function yl(){this.H=null,this.xa="",this.ar=this.Lr=null}yl.prototype.copy=function(){var t=new yl;return t.H=this.H,t.xa=this.xa,t.Lr=this.Lr,t.ar=this.ar,t},yl.prototype.toString=function(){var t="*"+this.name;return this.subject!==null&&(t+=":"+this.subject.toString()),this.parameter!==null&&(t+="("+this.parameter.toString()+")"),t},Mn.Object.defineProperties(yl.prototype,{diagram:{get:function(){return this.H},set:function(t){this.H=t}},name:{get:function(){return this.xa},set:function(t){this.xa=t}},subject:{get:function(){return this.Lr},set:function(t){this.Lr=t}},parameter:{get:function(){return this.ar},set:function(t){this.ar=t}}}),yl.className="DiagramEvent";function Qr(){this.Fm=_r,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Qr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Qr.prototype.copy=function(){var t=new Qr;t.Fm=this.Fm,t.Qq=this.Qq,t.rf=this.rf,t.cc=this.cc,t.H=this.H,t.Qn=this.Qn;var e=this.Sn;return t.Sn=Ut(e)&&typeof e.J=="function"?e.J():e,e=this.Rn,t.Rn=Ut(e)&&typeof e.J=="function"?e.J():e,e=this.Mn,t.Mn=Ut(e)&&typeof e.J=="function"?e.J():e,e=this.Ln,t.Ln=Ut(e)&&typeof e.J=="function"?e.J():e,t},Qr.prototype.qb=function(t){t.classType===Qr&&(this.change=t)},Qr.prototype.toString=function(){var t="";return t=this.change===ps?t+"* ":this.change===_r?t+(this.model!==null?"!m":"!d"):t+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(t+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(t+=" "+this.modelChange),t+=": ",this.change===ps?this.oldValue!==null&&(t+=" "+this.oldValue):(this.object!==null&&(t+=li(this.object)),this.oldValue!==null&&(t+=" old: "+li(this.oldValue)),this.oldParam!==null&&(t+=" "+this.oldParam),this.newValue!==null&&(t+=" new: "+li(this.newValue)),this.newParam!==null&&(t+=" "+this.newParam)),t},Qr.prototype.I=function(t){return t?this.oldValue:this.newValue},Qr.prototype.Dz=function(t){return t?this.oldParam:this.newParam},Qr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Qr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Qr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Qr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Mn.Object.defineProperties(Qr.prototype,{model:{get:function(){return this.cc},set:function(t){this.cc=t}},diagram:{get:function(){return this.H},set:function(t){this.H=t}},change:{get:function(){return this.Fm},set:function(t){this.Fm=t}},modelChange:{get:function(){return this.Qq},set:function(t){this.Qq=t}},propertyName:{get:function(){return this.rf},set:function(t){this.rf=t}},isTransactionFinished:{get:function(){return this.Fm===ps&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(t){this.Qn=t}},oldValue:{get:function(){return this.Sn},set:function(t){this.Sn=t}},oldParam:{get:function(){return this.Rn},set:function(t){this.Rn=t}},newValue:{get:function(){return this.Mn},set:function(t){this.Mn=t}},newParam:{get:function(){return this.Ln},set:function(t){this.Ln=t}}}),Qr.prototype.redo=Qr.prototype.redo,Qr.prototype.canRedo=Qr.prototype.canRedo,Qr.prototype.undo=Qr.prototype.undo,Qr.prototype.canUndo=Qr.prototype.canUndo,Qr.prototype.getParam=Qr.prototype.Dz,Qr.prototype.getValue=Qr.prototype.I,Qr.prototype.clear=Qr.prototype.clear;var ps=new xe(Qr,"Transaction",-1),_r=new xe(Qr,"Property",0),ao=new xe(Qr,"Insert",1),ho=new xe(Qr,"Remove",2);Qr.className="ChangedEvent",Qr.Transaction=ps,Qr.Property=_r,Qr.Insert=ao,Qr.Remove=ho;function wo(){this.o=new Te().freeze(),this.xa="",this.j=!1}wo.prototype.toString=function(t){var e="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(t!==void 0&&0<t){t=this.changes.count;for(var n=0;n<t;n++){var i=this.changes.M(n);i!==null&&(e+=`
|
|
|
`+i.toString())}}return e},wo.prototype.clear=function(){var t=this.changes;t.ka();for(var e=t.count-1;0<=e;e--){var n=t.M(e);n!==null&&n.clear()}t.clear(),t.freeze()},wo.prototype.canUndo=function(){return this.isComplete},wo.prototype.undo=function(){if(this.canUndo())for(var t=this.changes.count-1;0<=t;t--){var e=this.changes.M(t);e!==null&&e.undo()}},wo.prototype.canRedo=function(){return this.isComplete},wo.prototype.redo=function(){if(this.canRedo())for(var t=this.changes.count,e=0;e<t;e++){var n=this.changes.M(e);n!==null&&n.redo()}},wo.prototype.ak=function(){if(this.isComplete){var t=this.changes;t.ka();for(var e=new Zt,n=0;n<t.count;n++){var i=t.M(n);if(i!==null&&i.change===_r&&i.object){var r=e.get(i.object);r||(r=new Zt,e.set(i.object,r));var o=r.get(i.propertyName);o===null?r.set(i.propertyName,-1):(0<o&&t.cd(o,null),r.set(i.propertyName,n))}}for(n=e=0;n<t.count;n++)i=t.M(n),i!==null&&(n>e&&t.cd(e,i),e++);for(;t.length>e;)t.pop();t.freeze()}},Mn.Object.defineProperties(wo.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(t){this.xa=t}},isComplete:{get:function(){return this.j},set:function(t){this.j=t}}}),wo.prototype.optimize=wo.prototype.ak,wo.prototype.redo=wo.prototype.redo,wo.prototype.canRedo=wo.prototype.canRedo,wo.prototype.undo=wo.prototype.undo,wo.prototype.canUndo=wo.prototype.canUndo,wo.prototype.clear=wo.prototype.clear,wo.className="Transaction";function Tr(){this.Pt=new Ce,this.Jd=!1,this.u=new Te().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Te().freeze(),this.hl=new Te,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Tr.prototype.toString=function(t){var e="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;e+="[";for(var n=this.nestedTransactionNames.count,i=0;i<n;i++)0<i&&(e+=" "),e+=this.nestedTransactionNames.M(i);if(e+="]",t!==void 0&&0<t)for(n=this.history.count,i=0;i<n;i++)e+=`
|
|
|
`+this.history.M(i).toString(t-1);return e},Tr.prototype.clear=function(){var t=this.history;t.ka();for(var e=t.count-1;0<=e;e--){var n=t.M(e);n!==null&&n.clear()}t.clear(),this.Ce=-1,t.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},Tr.prototype.copyProperties=function(t){this.isEnabled=t.isEnabled,this.maxHistoryLength=t.maxHistoryLength,this.checksTransactionLevel=t.checksTransactionLevel},A=Tr.prototype,A.Xw=function(t){this.Pt.add(t)},A.Rx=function(t){this.Pt.remove(t)},A.Ea=function(t){if(t===void 0&&(t=""),t===null&&(t=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",t,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(t),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var e=this.transactionLevel===1;return e&&(this.isInternalTransaction||this.Ob("StartedTransaction",t,this.currentTransaction)),e},A.eb=function(t){return t===void 0&&(t=""),Zl(this,!0,t)},A.Kf=function(){return Zl(this,!1,"")};function Zl(t,e,n){if(t.isUndoingRedoing)return!1;t.checksTransactionLevel&&1>t.transactionLevel&&cn("Ending transaction without having started a transaction: "+n);var i=t.transactionLevel===1,r=t.currentTransaction;i&&e&&(t.isInternalTransaction||t.Ob("CommittingTransaction",n,r));var o=0;if(0<t.transactionLevel&&(t.bi--,t.isEnabled)){var s=t.Ie.count;0<s&&(n===""&&(n=t.Ie.M(0)),t.Ie.ka(),t.Ie.mb(s-1),t.Ie.freeze()),s=t.hl.count,0<s&&(o=t.hl.M(s-1),t.hl.mb(s-1))}if(i){if(e)t.rq=!1,r===null&&n!==""&&(r=t.currentTransaction),t.isEnabled&&r!==null&&(r.isComplete||(r.isComplete=!0,r.name=n),t.lx(),e=t.history,e.ka(),i=t.maxHistoryLength,0<=i&&(i===0?e.clear():e.count>=i&&(o=e.M(0),o!==null&&o.clear(),e.mb(0),t.Ce--)),i===0||e.count!==0&&e.get(e.count-1)===r||(e.add(r),t.Ce++),e.freeze()),t.isInternalTransaction||t.Ob("CommittedTransaction",n,r);else{t.Fe=!0;try{t.isEnabled&&r!==null&&(r.isComplete=!0,r.undo())}finally{t.isInternalTransaction||t.Ob("RolledBackTransaction",n,r),t.Fe=!1}r!==null&&r.clear()}return t.Np=null,t.isPendingClear&&t.clear(),t.isPendingClear=!1,t.isPendingUnmodified=!1,!0}if(t.isEnabled&&!e&&r!==null){for(t=o,n=r.changes,r=n.count-1;r>=t;r--)e=n.M(r),e!==null&&e.undo(),n.ka(),n.mb(r);n.freeze()}return!1}A.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var t=this.history;t.ka();for(var e=t.count-1;e>this.historyIndex;e--){var n=t.M(e);n!==null&&n.clear(),t.mb(e),this.rq=!0}t.freeze()}},Tr.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var t=this.transactionToUndo;return!!(t!==null&&t.canUndo())},Tr.prototype.undo=function(){if(this.canUndo()){var t=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",t),this.Ce--,t.undo()}catch(e){cn("undo error: "+e.toString())}finally{this.Ob("FinishedUndo","Undo",t),this.Fe=!1}}},Tr.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var t=this.transactionToRedo;return!!(t!==null&&t.canRedo())},Tr.prototype.redo=function(){if(this.canRedo()){var t=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",t),this.Ce++,t.redo()}catch(e){cn("redo error: "+e.toString())}finally{this.Ob("FinishedRedo","Redo",t),this.Fe=!1}}},Tr.prototype.Ob=function(t,e,n){n===void 0&&(n=null);var i=new Qr;for(i.change=ps,i.propertyName=t,i.object=n,i.oldValue=e,t=this.models;t.next();)e=t.value,i.model=e,e.ds(i)},Tr.prototype.Tu=function(t){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(t)){var e=this.currentTransaction;e===null&&(this.Np=e=new wo);var n=t.copy();e=e.changes,e.ka(),e.add(n),e.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(t=t.diagram,t!==null&&t.pi===!1||cn("Change not within a transaction: "+n.toString()))}},Tr.prototype.skipsEvent=function(t){if(t===null||0>t.change.value)return!0;if(t=t.object,t===null)return!1;if(t.layer!==void 0){if(t=t.layer,t!==null&&t.isTemporary)return!0}else if(t.isTemporary)return!0;return!1},Mn.Object.defineProperties(Tr.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(t){this.Jd=t}},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(t){this.o=t}},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(t){this.j=t}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(t){this.Ft=t}},isPendingUnmodified:{get:function(){return this.Gt},set:function(t){this.Gt=t}},isInternalTransaction:{get:function(){return this.Dt},set:function(t){this.Dt=t}},isJustDiscarded:{get:function(){return this.rq}}}),Tr.prototype.handleChanged=Tr.prototype.Tu,Tr.prototype.redo=Tr.prototype.redo,Tr.prototype.undo=Tr.prototype.undo,Tr.prototype.canUndo=Tr.prototype.canUndo,Tr.prototype.discardHistoryAfterIndex=Tr.prototype.lx,Tr.prototype.rollbackTransaction=Tr.prototype.Kf,Tr.prototype.commitTransaction=Tr.prototype.eb,Tr.prototype.startTransaction=Tr.prototype.Ea,Tr.prototype.removeModel=Tr.prototype.Rx,Tr.prototype.addModel=Tr.prototype.Xw,Tr.prototype.clear=Tr.prototype.clear,Tr.className="UndoManager";function Ci(){Gn(this),this.H=Uu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new es,this.Zr=-1}Ci.prototype.toString=function(){return this.name!==""?this.name+" Tool":ve(this.constructor)},Ci.prototype.updateAdornments=function(){},Ci.prototype.canStart=function(){return this.isEnabled},Ci.prototype.doStart=function(){},Ci.prototype.doActivate=function(){this.isActive=!0},Ci.prototype.doDeactivate=function(){this.isActive=!1},Ci.prototype.doStop=function(){},Ci.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ci.prototype.stopTool=function(){var t=this.diagram;t.currentTool===this&&(t.currentTool=null,t.currentCursor="")},Ci.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ci.prototype.doMouseMove=function(){},Ci.prototype.doMouseUp=function(){this.stopTool()},Ci.prototype.doMouseWheel=function(){},Ci.prototype.canStartMultiTouch=function(){return!0},Ci.prototype.standardPinchZoomStart=function(){var t=this.diagram,e=t.lastInput,n=e.So(0,z.allocAt(NaN,NaN)),i=e.So(1,z.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),t.Ql("hasGestureZoom"))){t.Bw=t.scale;var r=i.x-n.x,o=i.y-n.y;t.Jw=Math.sqrt(r*r+o*o),e.bubbles=!1}z.free(n),z.free(i)},Ci.prototype.standardPinchZoomMove=function(){var t=this.diagram,e=t.lastInput,n=e.So(0,z.allocAt(NaN,NaN)),i=e.So(1,z.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),t.Ql("hasGestureZoom"))){var r=i.x-n.x,o=i.y-n.y;o=Math.sqrt(r*r+o*o)/t.Jw,r=new z((Math.min(i.x,n.x)+Math.max(i.x,n.x))/2,(Math.min(i.y,n.y)+Math.max(i.y,n.y))/2),o*=t.Bw;var s=t.commandHandler;if(o!==t.scale&&s.canResetZoom(o)){var l=t.zoomPoint;t.zoomPoint=r,s.resetZoom(o),t.zoomPoint=l}e.bubbles=!1}z.free(n),z.free(i)},Ci.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ci.prototype.doKeyUp=function(){},Ci.prototype.Ea=function(t){return t===void 0&&(t=this.name),this.transactionResult=null,this.diagram.Ea(t)},Ci.prototype.stopTransaction=function(){var t=this.diagram;return this.transactionResult===null?t.Kf():t.eb(this.transactionResult)},Ci.prototype.standardMouseSelect=function(){var t=this.diagram;if(t.allowSelect){var e=t.lastInput,n=t.Ol(e.documentPoint,!1);if(n!==null){if(ui?e.meta:e.control){for(t.R("ChangingSelection",t.selection),e=n;e!==null&&!e.canSelect();)e=e.containingGroup;e!==null&&(e.isSelected=!e.isSelected),t.R("ChangedSelection",t.selection)}else if(e.shift){if(!n.isSelected){for(t.R("ChangingSelection",t.selection),e=n;e!==null&&!e.canSelect();)e=e.containingGroup;e!==null&&(e.isSelected=!0),t.R("ChangedSelection",t.selection)}}else if(!n.isSelected){for(e=n;e!==null&&!e.canSelect();)e=e.containingGroup;e!==null&&t.select(e)}}else!e.left||(ui?e.meta:e.control)||e.shift||t.clearSelection()}},Ci.prototype.standardMouseClick=function(t,e){t===void 0&&(t=null),e===void 0&&(e=function(r){return!r.layer.isTemporary});var n=this.diagram,i=n.lastInput;return t=n.ic(i.documentPoint,t,e),i.targetObject=t,nc(t,i,n),i.handled};function nc(t,e,n){if(e.handled=!1,t===null||t.If()){var i=0;e.left?i=e.clickCount===1?1:e.clickCount===2?2:1:e.right&&e.clickCount===1&&(i=3);var r="ObjectSingleClicked";if(t!==null){switch(i){case 1:r="ObjectSingleClicked";break;case 2:r="ObjectDoubleClicked";break;case 3:r="ObjectContextClicked"}i!==0&&n.R(r,t)}else{switch(i){case 1:r="BackgroundSingleClicked";break;case 2:r="BackgroundDoubleClicked";break;case 3:r="BackgroundContextClicked"}i!==0&&n.R(r)}if(t!==null)for(;t!==null;){switch(n=null,i){case 1:n=t.click;break;case 2:n=t.doubleClick?t.doubleClick:t.click;break;case 3:n=t.contextClick}if(n!==null&&(n(e,t),e.handled))break;t=t.panel}else{switch(t=null,i){case 1:t=n.click;break;case 2:t=n.doubleClick?n.doubleClick:n.click;break;case 3:t=n.contextClick}t!==null&&t(e)}}}Ci.prototype.standardMouseOver=function(){var t=this.diagram,e=t.lastInput;if(t.animationManager.zb!==!0){var n=t.skipsUndoManager;t.skipsUndoManager=!0;var i=t.viewportBounds.ca(e.documentPoint)?t.ic(e.documentPoint,null,null):null;!e.event||e.event.type!=="pointercancel"&&e.event.type!=="pointerout"||(i=null),e.targetObject=i;var r=!1;if(i!==t.Ck){var o=t.Ck,s=o;for(t.Ck=i,this.doCurrentObjectChanged(o,i),e.handled=!1;o!==null;){var l=o.mouseLeave;if(l!==null&&(i===o||i!==null&&i.rg(o)||(l(e,o,i),r=!0,e.handled)))break;o=o.panel}for(o=s,e.handled=!1;i!==null&&(s=i.mouseEnter,!(s!==null&&(o===i||o!==null&&o.rg(i)||(s(e,i,o),r=!0,e.handled))));)i=i.panel;i=t.Ck}if(i!==null){for(o=i,s="";o!==null&&(s=o.cursor,s==="");)o=o.panel;for(t.currentCursor=s,e.handled=!1,o=i;o!==null&&(i=o.mouseOver,!(i!==null&&(i(e,o),r=!0,e.handled)));)o=o.panel}else this.doUpdateCursor(null),i=t.mouseOver,i!==null&&(i(e),r=!0);r&&t.$b(),t.skipsUndoManager=n}},Ci.prototype.doUpdateCursor=function(){var t=this.diagram;t&&(t.currentCursor="")},Ci.prototype.doCurrentObjectChanged=function(){},Ci.prototype.standardMouseWheel=function(){var t=this.diagram,e=t.lastInput,n=e.delta;if(n!==0&&t.documentBounds.w()){var i=t.commandHandler,r=t.toolManager.mouseWheelBehavior;if(i!==null&&(r===rl&&!e.shift||r===Ol&&e.control))(0<n?i.canIncreaseZoom():i.canDecreaseZoom())&&(r=t.zoomPoint,t.zoomPoint=e.viewPoint,0<n?i.increaseZoom():i.decreaseZoom(),t.zoomPoint=r),e.bubbles=!1;else if(r===rl&&e.shift||r===Ol&&!e.control){i=t.position.copy();var o=e.event;r=o.deltaMode;var s=o.deltaX;o=o.deltaY;var l="pixel";if(s===0&&o===0||e.shift)!e.shift&&t.allowVerticalScroll?(n=3*n*t.scrollVerticalLineChange,t.scroll(l,0<n?"up":"down",Math.abs(n))):e.shift&&t.allowHorizontalScroll&&(n=3*n*t.scrollHorizontalLineChange,t.scroll(l,0<n?"left":"right",Math.abs(n)));else{switch(r){case 0:l="pixel";break;case 1:l="line";break;case 2:l="page"}s!==0&&t.allowHorizontalScroll&&(s*=t.scrollHorizontalLineChange/16,t.scroll(l,0<s?"right":"left",Math.abs(s))),o!==0&&t.allowVerticalScroll&&(o*=t.scrollVerticalLineChange/16,t.scroll(l,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(t,i,e)}}},Ci.prototype.doWheelChange=function(t,e,n){t.position.D(e)&&n.event.wheelDeltaX===0||(n.bubbles=!1)},Ci.prototype.standardWaitAfter=function(t,e){e===void 0&&(e=this.diagram.lastInput),this.cancelWaitAfter();var n=this,i=e.clone(this.yy);this.Zr=Ur(function(){n.doWaitAfter(i)},t)},Ci.prototype.cancelWaitAfter=function(){this.Zr!==-1&&sn.clearTimeout(this.Zr),this.Zr=-1},Ci.prototype.doWaitAfter=function(){},Ci.prototype.findToolHandleAt=function(t,e){return t=this.diagram.ic(t,function(n){for(;n!==null&&!(n.panel instanceof Vi);)n=n.panel;return n}),t===null?null:t.part.category===e?t:null},Ci.prototype.isBeyondDragSize=function(t,e){var n=this.diagram;t===void 0&&(t=n.firstInput.viewPoint),e===void 0&&(e=n.lastInput.viewPoint);var i=n.toolManager.dragSize,r=i.width;return i=i.height,n.firstInput.isTouchEvent&&(r+=6,i+=6),Math.abs(e.x-t.x)>r||Math.abs(e.y-t.y)>i},Mn.Object.defineProperties(Ci.prototype,{diagram:{get:function(){return this.H},set:function(t){t instanceof Kt&&(this.H=t)}},name:{get:function(){return this.xa},set:function(t){this.xa=t}},isEnabled:{get:function(){return this.Jd},set:function(t){this.Jd=t}},isActive:{get:function(){return this.nb},set:function(t){this.nb=t}},transactionResult:{get:function(){return this.wm},set:function(t){this.wm=t}}}),Ci.prototype.startTransaction=Ci.prototype.Ea,Ci.className="Tool";function Dr(){Ci.call(this),this.name="ToolManager",this.hb=new Te,this.ob=new Te,this.Hb=new Te,this.F=this.V=850,this.o=new Je(2,2).ja(),this.Ha=5e3,this.ia=Ol,this.u=ku,this.Mp=this.j=null,this.zj=-1}Yn(Dr,Ci),Dr.prototype.initializeStandardTools=function(){},Dr.prototype.updateAdornments=function(t){var e=this.currentToolTip;if(e instanceof Vi&&this.Mp===t){var n=e.adornedObject;(t!==null?n.part===t:n===null)?this.showToolTip(e,n):this.hideToolTip()}},Dr.prototype.doMouseDown=function(){var t=this.diagram,e=t.lastInput;if(e.isTouchEvent&&this.gestureBehavior===Da&&(e.bubbles=!1),e.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Pa){e.bubbles=!0;return}if(this.gestureBehavior===Da)return;if(t.currentTool.canStartMultiTouch()){t.currentTool.standardPinchZoomStart();return}}for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.diagram=this.diagram,r.canStart()){t.doFocus(),t.currentTool=r,t.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseDown());return}}t.lastInput.button===1&&(this.mouseWheelBehavior===Ol?this.mouseWheelBehavior=rl:this.mouseWheelBehavior===rl&&(this.mouseWheelBehavior=Ol)),this.doActivate(),this.standardWaitAfter(this.holdDelay,e)},Dr.prototype.doMouseMove=function(){var t=this.diagram,e=t.lastInput;if(e.isMultiTouch){if(this.gestureBehavior===Pa){e.bubbles=!0;return}if(this.gestureBehavior===Da)return;if(t.currentTool.canStartMultiTouch()){t.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var n=this.mouseMoveTools.length,i=0;i<n;i++){var r=this.mouseMoveTools.M(i);if(r.diagram=this.diagram,r.canStart()){t.doFocus(),t.currentTool=r,t.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseMove());return}}_u(this,t),t=e.event,t===null||t.type!=="pointermove"&&t.cancelable||(e.bubbles=!0)};function _u(t,e){t.standardMouseOver(),t.isBeyondDragSize()&&t.standardWaitAfter(t.isActive?t.holdDelay:t.hoverDelay,e.lastInput)}Dr.prototype.doCurrentObjectChanged=function(t,e){t=this.currentToolTip,t===null||e!==null&&t instanceof Vi&&(e===t||e.rg(t))||this.hideToolTip()},Dr.prototype.doWaitAfter=function(t){var e=this.diagram;e.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),t.isTouchEvent&&!e.lastInput.handled&&(t=t.copy(),t.button=2,t.buttons=2,e.lastInput=t,e.qu=!0,e.doMouseUp()))},Dr.prototype.doMouseHover=function(){var t=this.diagram,e=t.lastInput;e.targetObject===null&&(e.targetObject=t.ic(e.documentPoint,null,null));var n=e.targetObject;if(n!==null)for(e.handled=!1;n!==null&&(t=this.isActive?n.mouseHold:n.mouseHover,!(t!==null&&(t(e,n),e.handled)));)n=n.panel;else n=this.isActive?t.mouseHold:t.mouseHover,n!==null&&n(e)},Dr.prototype.doToolTip=function(){var t=this.diagram,e=t.lastInput;if(e.targetObject===null&&(e.targetObject=t.ic(e.documentPoint,null,null)),e=e.targetObject,e!==null){if(t=this.currentToolTip,!(t instanceof Vi)||e!==t&&!e.rg(t)){for(;e!==null;){if(t=e.toolTip,t!==null){this.showToolTip(t,e);return}e=e.panel}this.hideToolTip()}}else e=t.toolTip,e!==null?this.showToolTip(e,null):this.hideToolTip()},Dr.prototype.showToolTip=function(t,e){var n=this.diagram;if(t!==this.currentToolTip&&this.hideToolTip(),t instanceof Vi){t.layerName="Tool",t.selectable=!1,t.scale=1/n.scale,t.category="ToolTip",t.placeholder!==null&&(t.placeholder.scale=n.scale);var i=t.diagram;i!==null&&i!==n&&i.remove(t),n.add(t),e!==null?t.adornedObject=e:t.data=n.model,t.Va(),this.positionToolTip(t,e)}else t instanceof Pi&&t!==this.currentToolTip&&t.show(e,n,this);if(this.currentToolTip=t,this.zj!==-1&&(sn.clearTimeout(this.zj),this.zj=-1),t=this.toolTipDuration,0<t&&t!==1/0){var r=this;this.zj=Ur(function(){r.hideToolTip()},t)}},Dr.prototype.positionToolTip=function(t){if(t.placeholder===null){var e=this.diagram,n=e.lastInput.documentPoint.copy(),i=t.measuredBounds,r=e.viewportBounds;e.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/e.scale),n.x<r.x&&(n.x=r.x),n.y=n.y+20/e.scale+i.height>r.bottom?n.y-(i.height+5/e.scale):n.y+20/e.scale,n.y<r.y&&(n.y=r.y),t.position=n}},Dr.prototype.hideToolTip=function(){this.zj!==-1&&(sn.clearTimeout(this.zj),this.zj=-1);var t=this.diagram,e=this.currentToolTip;e!==null&&(e instanceof Vi?(t.remove(e),this.Mp!==null&&this.Mp.Jf(e.category),e.data=null,e.adornedObject=null):e instanceof Pi&&e.hide!==null&&e.hide(t,this),this.currentToolTip=null)},Dr.prototype.doMouseUp=function(){this.cancelWaitAfter();var t=this.diagram;if(this.isActive)for(var e=this.mouseUpTools.length,n=0;n<e;n++){var i=this.mouseUpTools.M(n);if(i.diagram=this.diagram,i.canStart()){t.doFocus(),t.currentTool=i,t.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseUp());return}}t.doFocus(),this.doDeactivate()},Dr.prototype.doMouseWheel=function(){this.standardMouseWheel()},Dr.prototype.doKeyDown=function(){var t=this.diagram;t.commandHandler!==null&&t.commandHandler.doKeyDown()},Dr.prototype.doKeyUp=function(){var t=this.diagram;t.commandHandler!==null&&t.commandHandler.doKeyUp()},Dr.prototype.findTool=function(t){for(var e=this.mouseDownTools.length,n=0;n<e;n++){var i=this.mouseDownTools.M(n);if(i.name===t)return i}for(e=this.mouseMoveTools.length,n=0;n<e;n++)if(i=this.mouseMoveTools.M(n),i.name===t)return i;for(e=this.mouseUpTools.length,n=0;n<e;n++)if(i=this.mouseUpTools.M(n),i.name===t)return i;return null},Dr.prototype.replaceTool=function(t,e){e!==null&&(e.diagram=this.diagram);for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.name===t)return e!==null?this.mouseDownTools.cd(i,e):this.mouseDownTools.mb(i),r}for(n=this.mouseMoveTools.length,i=0;i<n;i++)if(r=this.mouseMoveTools.M(i),r.name===t)return e!==null?this.mouseMoveTools.cd(i,e):this.mouseMoveTools.mb(i),r;for(n=this.mouseUpTools.length,i=0;i<n;i++)if(r=this.mouseUpTools.M(i),r.name===t)return e!==null?this.mouseUpTools.cd(i,e):this.mouseUpTools.mb(i),r;return null},Dr.prototype.gb=function(t,e,n){e!==null&&(e.name=t,e.diagram=this.diagram),this.findTool(t)?this.replaceTool(t,e):e!==null&&n.add(e)},Mn.Object.defineProperties(Dr.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(t){this.ia=t}},gestureBehavior:{get:function(){return this.u},set:function(t){this.u=t}},currentToolTip:{get:function(){return this.j},set:function(t){this.j=t,this.Mp=t!==null&&t instanceof Vi?t.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(t){this.V=t}},holdDelay:{get:function(){return this.F},set:function(t){this.F=t}},dragSize:{get:function(){return this.o},set:function(t){this.o=t.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(t){this.Ha=t}}}),Dr.prototype.replaceStandardTool=Dr.prototype.gb;var Ol=new xe(Dr,"WheelScroll",0),rl=new xe(Dr,"WheelZoom",1),Fu=new xe(Dr,"WheelNone",2),ku=new xe(Dr,"GestureZoom",3),Da=new xe(Dr,"GestureCancel",4),Pa=new xe(Dr,"GestureNone",5);Dr.className="ToolManager",Dr.WheelScroll=Ol,Dr.WheelZoom=rl,Dr.WheelNone=Fu,Dr.GestureZoom=ku,Dr.GestureCancel=Da,Dr.GestureNone=Pa;function Fr(){Ci.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 z(NaN,NaN),this.Fr=new z,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ce().freeze(),this.ia=new c,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Rs;Yn(Fr,Ci),Fr.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t.isReadOnly&&!t.allowDragOut||!t.allowMove&&!t.allowCopy&&!t.allowDragOut||!t.allowSelect)return!1;var e=t.lastInput;return!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.isTouchEvent&&e.timestamp-t.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Fr.prototype.findDraggablePart=function(){var t=this.diagram;if(t=t.Ol(t.firstInput.documentPoint,!1),t===null)return null;for(;t!==null&&!t.canSelect();)t=t.containingGroup;return t!==null&&(t.canMove()||t.canCopy())?t:null},Fr.prototype.standardMouseSelect=function(){var t=this.diagram;if(t.allowSelect){var e=t.Ol(t.firstInput.documentPoint,!1);if(e!==null){for(;e!==null&&!e.canSelect();)e=e.containingGroup;this.currentPart=e,this.currentPart===null||this.currentPart.isSelected||(t.R("ChangingSelection",t.selection),e=t.lastInput,(ui?e.meta:e.control)||e.shift||t.clearSelection(!0),this.currentPart.isSelected=!0,t.R("ChangedSelection",t.selection))}}},Fr.prototype.doActivate=function(){var t=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var e=this.currentPart;e!==null&&(e.canMove()||e.canCopy())&&(t.Fu(!0),$o=null,this.isActive=!0,this.tl.set(t.position),$l(this,t.selection),this.Cg.length=0,t.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(t.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,t.Ns=!0,t.Gf("temporaryPixelRatio")===!0&&30<t.$w&&Ca(t),Bd(t,this.draggedParts),this.Ea("Drag"),this.startPoint=t.firstInput.documentPoint,t.isMouseCaptured=!0,t.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,$o=this,Xl=this.diagram,this.doSimulatedDragOut()))};function $l(t,e){if(t.dragsLink){var n=t.diagram;n.allowRelink&&(n.model.Wj()&&e.count===1&&e.first()instanceof Pe?(t.draggedLink=e.first(),t.draggedLink.canRelinkFrom()&&t.draggedLink.canRelinkTo()&&t.draggedLink.Ej(),t.Oe=n.toolManager.findTool("Relinking"),t.Oe===null&&(t.Oe=new oa,t.Oe.diagram=n),t.Oe.originalLink=t.draggedLink):(t.draggedLink=null,t.Oe=null))}}Fr.prototype.computeEffectiveCollection=function(t,e){return this.diagram.commandHandler.computeEffectiveCollection(t,e)},Fr.prototype.Pd=function(t){return t===void 0?new rc(Xe):this.isGridSnapEnabled?new rc(new z(Math.round(1e3*t.x)/1e3,Math.round(1e3*t.y)/1e3)):new rc(t.copy())},Fr.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,t.Fu(!1),t.ug(),_a(this),Xc(t,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Rs.count){for(var e=Rs,n=e.length,i=0;i<n;i++){var r=e.M(i);Jr(r),wr(r),_a(r),r.diagram.ug()}e.clear()}Jr(this),this.tl.h(NaN,NaN),Xl!==null&&(Xl.currentCursor=""),$o=Xl=null,wr(this),t.isMouseCaptured=!1,t.currentCursor="",t.Ns=!1,this.stopTransaction(),td(t,!0)},Fr.prototype.stopTransaction=function(){var t=this.diagram,e=Ci.prototype.stopTransaction.call(this);return e&&t.undoManager.transactionToUndo!==null&&t.undoManager.transactionToUndo.ak(),e};function _a(t){var e=t.diagram,n=e.skipsUndoManager;e.skipsUndoManager=!0,Ea(t,e.lastInput,null),e.skipsUndoManager=n,t.Cg.length=0}function ol(){var t=$o;wr(t),gs(t);var e=t.diagram;t.tl.w()&&(e.position=t.tl),e.ug()}Fr.prototype.doCancel=function(){wr(this),gs(this);var t=this.diagram;this.tl.w()&&(t.position=this.tl),this.stopTool()},Fr.prototype.doKeyDown=function(){var t=this.diagram,e=t.lastInput;this.isActive&&(e.key==="Esc"?this.doCancel():e.key!==t.previousInput.key&&this.doMouseMove())},Fr.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Va(t,e){if(t.copiedParts===null){var n=t.diagram;if((!e||!n.isReadOnly&&!n.isModelReadOnly)&&t.draggedParts!==null){var i=n.undoManager;for(i.isEnabled&&i.isInTransaction?i.currentTransaction!==null&&0<i.currentTransaction.changes.count&&(n.undoManager.Kf(),n.Ea("Drag")):gs(t),n.skipsUndoManager=!e,n.partManager.addsToTemporaryLayer=!e,t.startPoint=n.firstInput.documentPoint,e=t.copiesEffectiveCollection?t.draggedParts.Lf():n.selection,e=n.Kj(e,n,!0),n=new Zt,i=t.draggedParts.iterator;i.next();){var r=i.key;if(r.Zc()&&r.canCopy()){var o=e.I(r);o!==null&&(o.location=r.location,o.Va(),n.add(o,t.Pd(o.location)))}}for(e=e.iterator;e.next();)i=e.value,i instanceof Pe&&i.canCopy()&&n.add(i,t.Pd());t.copiedParts=n,$l(t,n.Lf()),t.draggedLink!==null&&(n=t.draggedLink,e=n.routeBounds,Rc(n,t.startPoint.x-(e.x+e.width/2),t.startPoint.y-(e.y+e.height/2))),t.doUpdateCursor(null)}}}function wr(t){var e=t.diagram;if(t.copiedParts!==null){if(e.Is(t.copiedParts.Lf(),!1),t.copiedParts=null,t.draggedParts!==null)for(var n=t.draggedParts.iterator;n.next();)n.key instanceof Pe&&(n.value.point=new z(0,0));t.doUpdateCursor(null)}e.skipsUndoManager=!1,e.partManager.addsToTemporaryLayer=!1,t.startPoint=e.firstInput.documentPoint}function Jr(t){if(t.draggedLink!==null){if(t.dragsLink&&t.Oe!==null){var e=t.Oe;e.diagram.remove(e.temporaryFromNode),e.diagram.remove(e.temporaryToNode),t.Oe.originalLink=null}t.draggedLink=null,t.Oe=null}}function No(t,e,n){var i=t.diagram,r=t.startPoint,o=z.alloc();o.assign(i.lastInput.documentPoint),t.moveParts(e,o.re(r),n),z.free(o),i.Gf("temporaryPixelRatio")===!0&&i.Yh===null&&30<i.$w&&(Ca(i),i.hk())}Fr.prototype.moveParts=function(t,e,n){n===void 0&&(n=!1);var i=this.diagram;i!==null&&$c(i,t,e,this.dragOptions,n)};function gs(t){if(t.draggedParts!==null){for(var e=t.diagram,n=t.draggedParts.iterator;n.next();){var i=n.key;i.Zc()&&(i.location=n.value.point)}for(n=t.draggedParts.iterator;n.next();)if(i=n.key,i instanceof Pe&&i.suspendsRouting){var r=n.value.point;t.draggedParts.add(i,t.Pd()),Rc(i,-r.x,-r.y)}e.bd()}}function ns(t,e){var n=t.diagram;t.dragsLink&&(t.draggedLink!==null&&(t.draggedLink.fromNode=null,t.draggedLink.toNode=null),ra(t,!1));var i=t.findDragOverObject(e),r=n.lastInput;r.targetObject=i,t.doUpdateCursor(i);var o=n.skipsUndoManager,s=!1;try{if(n.skipsUndoManager=!0,s=Ea(t,r,i),!t.isActive&&$o===null)return;var l=i!==null?i.part:null;if(l===null||n.handlesDragDropForTopLevelParts&&l.isTopLevel&&!(l instanceof Jn)){var u=n.mouseDragOver;u!==null&&(u(r),s=!0)}if(!t.isActive&&$o===null||(t.doDragOver(e,i),!t.isActive&&$o===null))return}finally{n.skipsUndoManager=o,s&&n.bd()}t.Bn=i,n.isReadOnly||!n.allowMove&&!n.allowCopy||!n.allowHorizontalScroll&&!n.allowVerticalScroll||n.gs(r.viewPoint)}Fr.prototype.findDragOverObject=function(t){var e=this;return Hu(this.diagram,t,null,function(n){return n===null?n=!0:(n=n.part,n=!!(n===null||n instanceof Vi||n.layer.isTemporary||e.draggedParts&&e.draggedParts.contains(n)||e.copiedParts&&e.copiedParts.contains(n))),!n})},Fr.prototype.doUpdateCursor=function(t){var e=this.diagram;(t===null||this.Bn!==t)&&(!this.diagram.currentTool.isActive||this.mayCopy()?e.currentCursor=this.copyCursor:this.mayMove()?e.currentCursor=this.moveCursor:this.mayDragOut()&&(e.currentCursor=this.nodropCursor))};function Ea(t,e,n){var i=!1,r=t.Cg.length,o=0<r?t.Cg[0]:null;if(n===o)return!1;e.handled=!1;for(var s=0;s<r;s++){var l=t.Cg[s],u=l.mouseDragLeave;if(u!==null&&(u(e,l,n),i=!0,e.handled))break}if(t.Cg.length=0,!t.isActive&&$o===null||n===null)return i;for(e.handled=!1,r=n;r!==null;)t.Cg.push(r),r=Sa(r);for(r=t.Cg.length,n=0;n<r&&(s=t.Cg[n],l=s.mouseDragEnter,l===null||(l(e,s,o),i=!0,!e.handled));n++);return i}function Sa(t){var e=t.panel;return e!==null?e:t instanceof Rn&&!(t instanceof Jn)&&(t=t.containingGroup,t!==null&&t.handlesDragDropForMembers)?t:null}function Ta(t,e,n){var i=t.Oe;if(i===null)return null;var r=t.diagram.og(e,i.portGravity,function(d){return i.findValidLinkablePort(d,n)});t=z.alloc();var o=1/0,s=null;for(r=r.iterator;r.next();){var l=r.value;if(l.part!==null){var u=l.ga(ei,t);u=e.Bf(u),u<o&&(s=l,o=u)}}return z.free(t),s}function ra(t,e){var n=t.draggedLink;if(n!==null&&!(2>n.pointsCount)){var i=t.diagram;if(!i.isReadOnly){var r=t.Oe;if(r!==null){var o=null,s=null;n.fromNode===null&&(o=Ta(t,n.i(0),!1),o!==null&&(s=o.part));var l=null,u=null;n.toNode===null&&(l=Ta(t,n.i(n.pointsCount-1),!0),l!==null&&(u=l.part)),r.isValidLink(s,o,u,l)?e?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=s,o!==null&&(n.fromPortId=o.portId),n.toNode=u,l!==null&&(n.toPortId=l.portId),n.fromPort!==i.Mx&&i.R("LinkRelinked",n,i.Mx),n.toPort!==i.Nx&&i.R("LinkRelinked",n,i.Nx)):b(r,s,o,u,l):b(r,null,null,null,null)}}}}Fr.prototype.doDragOver=function(){};function Wa(t,e){var n=t.diagram;t.dragsLink&&ra(t,!0),_a(t);var i=t.findDragOverObject(e),r=n.lastInput;if(r.targetObject=i,i!==null){r.handled=!1;for(var o=i;o!==null;){var s=o.mouseDrop;if(s!==null&&(s(r,o),r.handled))break;vc(t,r,o),o=Sa(o)}}else o=n.mouseDrop,o!==null&&o(r);if(t.isActive||$o!==null){for(r=(t.copiedParts||t.draggedParts).iterator;r.next();)o=r.key,o instanceof tn&&o.linksConnected.each(function(l){l.suspendsRouting=!1});if(t.doDropOnto(e,i),t.isActive||$o!==null){for(t=Xt.alloc(),e=n.selection.iterator;e.next();)i=e.value,i instanceof tn&&Sh(n,i,t);Xt.free(t)}}}function vc(t,e,n){t=t.diagram,n=n.part,!t.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof Jn||(n=t.mouseDrop,n!==null&&n(e))}function Sh(t,e,n){var i=!1;if(n=e.getAvoidableRect(n),t.viewportBounds.Re(n)&&(i=!0),t=t.Nu(n,function(r){return r.part},function(r){return r instanceof Pe},!0,function(r){return r instanceof Pe},i),t.count!==0)for(t=t.iterator;t.next();)n=t.value,!n.Td(e)&&n.isAvoiding&&n.bb()}Fr.prototype.doDropOnto=function(){},Fr.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram,e=t.lastInput;this.simulatedMouseMove(e.event,e.documentPoint,e.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(Va(this,!1),Bd(t,this.copiedParts),No(this,this.copiedParts,!1),Xc(t,this.copiedParts)):this.mayMove()?(wr(this),No(this,this.draggedParts,!0)):this.mayDragOut()?(Va(this,!1),No(this,this.copiedParts,!1)):wr(this),ns(this,t.lastInput.documentPoint))}},Fr.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram,e=t.lastInput;if(!this.simulatedMouseUp(e.event,e.documentPoint,e.targetDiagram)){e=!1;var n=this.mayCopy();if(n&&this.copiedParts!==null?(wr(this),Va(this,!0),Bd(t,this.copiedParts),No(this,this.copiedParts,!1),Xc(t,this.copiedParts),this.copiedParts!==null&&(t.R("ChangingSelection",t.selection),t.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0}))):(e=!0,wr(this),this.mayMove()&&(No(this,this.draggedParts,!0),ns(this,t.lastInput.documentPoint))),this.Ym=!0,Wa(this,t.lastInput.documentPoint),this.isActive){var i=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,e&&Th(this),t.Ya(),Xc(t,this.draggedParts),this.transactionResult=n?"Copy":"Move",t.R(n?"SelectionCopied":"SelectionMoved",i)}this.stopTool(),n&&t.R("ChangedSelection",t.selection)}}},Fr.prototype.simulatedMouseMove=function(t,e,n){if($o===null)return!1;var i=$o.diagram;n instanceof Kt||(n=null);var r=Xl;return n!==r&&(r!==null&&r!==i&&(r.ug(),$o.isDragOutStarted=!1,r=r.toolManager.findTool("Dragging"),r!==null&&r.doSimulatedDragLeave()),Xl=n,n!==null&&n!==i&&(ol(),r=n.toolManager.findTool("Dragging"),r!==null&&(Rs.contains(r)||Rs.add(r),r.doSimulatedDragEnter())),this.doUpdateCursor(null)),n===null||n===i||!n.allowDrop||n.isReadOnly||!n.allowInsert?!1:(i=n.toolManager.findTool("Dragging"),i!==null&&(t!==null&&(t.targetTouches!==void 0&&(0<t.targetTouches.length?t=t.targetTouches[0]:0<t.changedTouches.length&&(t=t.changedTouches[0])),e=n.getMouse(t)),n.lastInput.documentPoint=e,n.lastInput.viewPoint=n.op(e),n.lastInput.down=!1,n.lastInput.up=!1,i.doSimulatedDragOver()),!0)},Fr.prototype.simulatedMouseUp=function(t,e,n){if($o===null)return!1;var i=Xl,r=$o.diagram;if(n===null)return $o.doCancel(),!0;if(n!==i){var o=i.toolManager.findTool("Dragging");if(i!==null&&i!==r&&o!==null)return i.ug(),$o.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;Xl=n,i=n.toolManager.findTool("Dragging"),i!==null&&(ol(),Rs.contains(i)||Rs.add(i),i.doSimulatedDragEnter())}return n!==this.diagram?(t!==null?(t.targetTouches!==void 0&&(0<t.targetTouches.length?t=t.targetTouches[0]:0<t.changedTouches.length&&(t=t.changedTouches[0])),e=n.getMouse(t)):e===null&&(e=new z),n.lastInput.documentPoint=e,n.lastInput.viewPoint=n.op(e),n.lastInput.down=!1,n.lastInput.up=!0,t=n.toolManager.findTool("Dragging"),t!==null&&t.doSimulatedDrop(),t=$o,t!==null&&(n=t.mayCopy(),t.transactionResult=n?"Copy":"Move",t.stopTool()),!0):!1};function Th(t){if(t.draggedParts!==null)for(var e=t.draggedParts.iterator;e.next();){var n=e.key;n instanceof tn&&(n=n.containingGroup,n===null||n.placeholder===null||t.draggedParts.contains(n)||n.placeholder.v())}}Fr.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowCopy||(ui?!t.lastInput.alt:!t.lastInput.control))return!1;for(t=t.selection.iterator;t.next();)if(t.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Fr.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var t=this.diagram;if(!t.allowDragOut||!t.allowCopy||t.allowMove)return!1;for(t=t.selection.iterator;t.next();)if(t.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Fr.prototype.mayMove=function(){var t=this.diagram;if(t.isReadOnly||!t.allowMove)return!1;for(t=t.selection.iterator;t.next();)if(t.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Fr.prototype.computeBorder=function(t,e,n){return this.Ym||this.draggedParts===null||this.draggedParts.contains(t)?null:n.assign(e)},Fr.prototype.Az=function(){return $o},Fr.prototype.mayDragIn=function(){var t=this.diagram;if(!t.allowDrop||t.isReadOnly||t.isModelReadOnly||!t.allowInsert)return!1;var e=$o;return!(e===null||e.diagram.model.dataFormat!==t.model.dataFormat)},Fr.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var t=this.diagram;t.animationManager.Cc(),Sl(t),t.animationManager.Cc(),t=$o,t!==null&&(t.diagram.Ns=!1),this.doUpdateCursor(null)}},Fr.prototype.doSimulatedDragLeave=function(){var t=$o;t!==null&&t.doSimulatedDragOut(),this.doCancel()},Fr.prototype.doSimulatedDragOver=function(){var t=this.diagram;t.animationManager.Dm=!0;var e=$o;if(e!==null&&e.draggedParts!==null){if(!this.mayDragIn())return;wh(this,e.draggedParts.Lf(),!1,t.firstInput),No(this,this.copiedParts,!1),ns(this,t.lastInput.documentPoint)}t.animationManager.Dm=!1},Fr.prototype.doSimulatedDrop=function(){var t=this.diagram,e=$o;if(e!==null){var n=e.diagram;if(e.Ym=!0,wr(this),!this.mayDragIn())return;t.animationManager.Dm=!0,t.R("ChangingSelection",t.selection),this.Ea("Drop"),wh(this,e.draggedParts.Lf(),!0,t.lastInput),No(this,this.copiedParts,!1);var i=new Ce;this.copiedParts!==null&&(t.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0,i.add(r)})),Wa(this,t.lastInput.documentPoint),t.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,t.doFocus(),t.R("ExternalObjectsDropped",i,n),this.stopTransaction(),t.R("ChangedSelection",t.selection)}t.animationManager.Dm=!1};function wh(t,e,n,i){if(t.copiedParts===null){var r=t.diagram;if(!r.isReadOnly&&!r.isModelReadOnly){r.skipsUndoManager=!n,r.partManager.addsToTemporaryLayer=!n,t.startPoint=i.documentPoint,n=r.Kj(e,r,!0);var o=Xt.alloc();r=i=1/0;for(var s=-1/0,l=-1/0,u=e.iterator;u.next();){var d=u.value;if(d.isVisible()){var f=d.location;d=f.x,f=f.y,isNaN(d)||isNaN(f)||(d<i&&(i=d),f<r&&(r=f),d>s&&(s=d),f>l&&(l=f))}}for(i===1/0?o.h(0,0,0,0):o.h(i,r,s-i,l-r),i=o.x+o.width/2,r=o.y+o.height/2,Xt.free(o),o=t.Fr,s=new Zt,l=z.alloc(),u=e.iterator;u.next();)d=u.value,d instanceof Pe&&d.canCopy()&&(f=n.I(d),f!==null&&(f.points=d.points,Rc(f,o.x-i,o.y-r),f.suspendsRouting=!0,s.add(f,t.Pd())));for(e=e.iterator;e.next();)d=e.value,d.Zc()&&d.canCopy()&&(u=n.I(d),u!==null&&(d=d.location,l.h(o.x-(i-d.x),o.y-(r-d.y)),u.location=l,u.Va(),s.add(u,t.Pd(l))));z.free(l),t.copiedParts=s,$l(t,s.Lf()),t.draggedLink!==null&&(n=t.draggedLink,e=n.routeBounds,Rc(n,t.startPoint.x-(e.x+e.width/2),t.startPoint.y-(e.y+e.height/2))),t.doUpdateCursor(null)}}}Fr.prototype.doSimulatedDragOut=function(){var t=this.diagram;t.Ns=!1,this.mayCopy()||this.mayMove()?t.currentCursor="":t.currentCursor=this.nodropCursor,this.Bn=null},Fr.prototype.computeMove=function(t,e,n,i){return n=this.diagram,n!==null?n.computeMove(t,e,this.dragOptions,i):new z},Mn.Object.defineProperties(Fr.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(t){this.ob=t}},copiesEffectiveCollection:{get:function(){return this.u},set:function(t){this.u=t}},dragOptions:{get:function(){return this.ia},set:function(t){this.ia=t}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(t){this.dragOptions.isGridSnapEnabled=t}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(t){this.hb=t}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(t){this.dragOptions.isGridSnapRealtime=t}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(t){this.dragOptions.gridSnapCellSize.D(t)||(t=t.J(),this.dragOptions.gridSnapCellSize=t)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(t){this.dragOptions.gridSnapCellSpot.D(t)||(t=t.J(),this.dragOptions.gridSnapCellSpot=t)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(t){this.dragOptions.gridSnapOrigin.D(t)||(t=t.J(),this.dragOptions.gridSnapOrigin=t)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(t){this.dragOptions.dragsLink=t}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(t){this.dragOptions.dragsTree=t}},copyCursor:{get:function(){return this.F},set:function(t){this.F=t}},moveCursor:{get:function(){return this.Oc},set:function(t){this.Oc=t}},nodropCursor:{get:function(){return this.Pc},set:function(t){this.Pc=t}},currentPart:{get:function(){return this.V},set:function(t){this.V=t}},copiedParts:{get:function(){return this.o},set:function(t){this.o=t}},draggedParts:{get:function(){return this.Ha},set:function(t){this.Ha=t}},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(t){this.diagram.draggedLink=t}},isDragOutStarted:{get:function(){return this.Hb},set:function(t){this.Hb=t}},startPoint:{get:function(){return this.Fr},set:function(t){this.Fr.D(t)||this.Fr.assign(t)}},delay:{get:function(){return this.Ik},set:function(t){this.Ik=t}}}),Fr.prototype.getDraggingSource=Fr.prototype.Az;var $o=null,Xl=null;Fr.className="DraggingTool",Rs=new Te,ni("draggingTool",function(){return this.findTool("Dragging")},function(t){this.gb("Dragging",t,this.mouseMoveTools)}),Dr.prototype.doCancel=function(){$o!==null&&$o.doCancel(),Ci.prototype.doCancel.call(this)};function uo(){Ci.call(this),this.te=100,this.Ha=!1,this.u="pointer";var t=new Pe,e=new ai;e.isPanelMain=!0,e.stroke="blue",t.add(e),e=new ai,e.toArrow="Standard",e.fill="blue",e.stroke="blue",t.add(e),t.layerName="Tool",this.Ci=t,t=new tn,e=new ai,e.portId="",e.figure="Rectangle",e.fill=null,e.stroke="magenta",e.strokeWidth=2,e.desiredSize=Ti,t.add(e),t.selectable=!1,t.layerName="Tool",this.Bi=t,this.j=e,t=new tn,e=new ai,e.portId="",e.figure="Rectangle",e.fill=null,e.stroke="magenta",e.strokeWidth=2,e.desiredSize=Ti,t.add(e),t.selectable=!1,t.layerName="Tool",this.Di=t,this.o=e,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Zt,this.Of=this.gj=this.Pf=null}Yn(uo,Ci),uo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},uo.prototype.copyPortProperties=function(t,e,n,i,r){if(t!==null&&e!==null&&n!==null&&i!==null){var o=e.Df(),s=Je.alloc();s.width=e.naturalBounds.width*o,s.height=e.naturalBounds.height*o,i.desiredSize=s,Je.free(s),r?(i.toSpot=e.toSpot,i.toEndSegmentLength=e.toEndSegmentLength):(i.fromSpot=e.fromSpot,i.fromEndSegmentLength=e.fromEndSegmentLength),n.locationSpot=ei,o=z.alloc(),n.location=e.ga(ei,o),z.free(o),i.angle=e.li(),this.portTargeted!==null&&this.portTargeted(t,e,n,i,r)}},uo.prototype.setNoTargetPortProperties=function(t,e,n){e!==null&&(e.desiredSize=Ti,e.fromSpot=qn,e.toSpot=qn),t!==null&&(t.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,t,e,n)},uo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},uo.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof tn){var e=this.targetPort.part;this.isForwards?this.copyPortProperties(e,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(e,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(t.allowHorizontalScroll||t.allowVerticalScroll)&&t.gs(t.lastInput.viewPoint)}},uo.prototype.findValidLinkablePort=function(t,e){if(t===null)return null;var n=t.part;if(!(n instanceof tn))return null;for(;t!==null;){var i=e?t.toLinkable:t.fromLinkable;if(i===!0&&(t.portId!==null||t instanceof tn)&&(e?this.isValidTo(n,t):this.isValidFrom(n,t)))return t;if(i===!1)break;t=t.panel}return null},uo.prototype.findTargetPort=function(t){var e=this.diagram,n=e.lastInput.documentPoint,i=this.portGravity;0>=i&&(i=.1);var r=this,o=e.og(n,i,function(y){return r.findValidLinkablePort(y,t)},null,!0);for(i=1/0,e=null,o=o.iterator;o.next();){var s=o.value,l=s.part;if(l instanceof tn){var u=s.ga(ei,z.alloc()),d=n.x-u.x,f=n.y-u.y;z.free(u),u=d*d+f*f,u<i&&(d=this.validPortsCache.I(s),d!==null?d&&(e=s,i=u):t&&this.isValidLink(this.originalFromNode,this.originalFromPort,l,s)||!t&&this.isValidLink(l,s,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(s,!0),e=s,i=u):this.validPortsCache.add(s,!1))}}return e!==null&&(n=e.part,n instanceof tn&&(n.layer===null||n.layer.allowLink))?e:null},uo.prototype.isValidFrom=function(t,e){if(t===null||e===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(t.layer!==null&&!t.layer.allowLink||e.fromLinkable!==!0))return!1;var n=e.fromMaxLinks;if(1/0>n){if(this.originalLink!==null&&t===this.originalFromNode&&e===this.originalFromPort)return!0;if(e=e.portId,e===null&&(e=""),t.Mo(e).count>=n)return!1}return!0},uo.prototype.isValidTo=function(t,e){if(t===null||e===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(t.layer!==null&&!t.layer.allowLink||e.toLinkable!==!0))return!1;var n=e.toMaxLinks;if(1/0>n){if(this.originalLink!==null&&t===this.originalToNode&&e===this.originalToPort)return!0;if(e=e.portId,e===null&&(e=""),t.Sd(e).count>=n)return!1}return!0},uo.prototype.isInSameNode=function(t,e){return t===null||e===null?!1:t===e?!0:(t=t.part,e=e.part,t!==null&&t===e)},uo.prototype.isLinked=function(t,e){if(t===null||e===null)return!1;var n=t.part;if(!(n instanceof tn))return!1;t=t.portId,t===null&&(t="");var i=e.part;if(!(i instanceof tn))return!1;for(e=e.portId,e===null&&(e=""),e=i.Sd(e);e.next();)if(i=e.value,i.fromNode===n&&i.fromPortId===t)return!0;return!1},uo.prototype.isValidLink=function(t,e,n,i){if(!this.isValidFrom(t,e)||!this.isValidTo(n,i)||!(e===null||i===null||(e.fromLinkableSelfNode&&i.toLinkableSelfNode||!this.isInSameNode(e,i))&&(e.fromLinkableDuplicates&&i.toLinkableDuplicates||!this.isLinked(e,i)))||this.originalLink!==null&&(t!==null&&this.isLabelDependentOnLink(t,this.originalLink)||n!==null&&this.isLabelDependentOnLink(n,this.originalLink))||t!==null&&n!==null&&(t.data===null&&n.data!==null||t.data!==null&&n.data===null)||!this.isValidCycle(t,n,this.originalLink))return!1;if(t!==null){var r=t.linkValidation;if(r!==null&&!r(t,e,n,i,this.originalLink))return!1}return n!==null&&(r=n.linkValidation,r!==null&&!r(t,e,n,i,this.originalLink))?!1:(r=this.linkValidation,r!==null?r(t,e,n,i,this.originalLink):!0)},uo.prototype.isLabelDependentOnLink=function(t,e){if(t===null)return!1;var n=t.labeledLink;if(n===null)return!1;if(n===e)return!0;var i=new Ce;return i.add(t),bs(this,n,e,i)};function bs(t,e,n,i){if(e===n)return!0;var r=e.fromNode;return r!==null&&r.isLinkLabel&&(i.add(r),bs(t,r.labeledLink,n,i))?!0:(e=e.toNode,!!(e!==null&&e.isLinkLabel&&(i.add(e),bs(t,e.labeledLink,n,i))))}uo.prototype.isValidCycle=function(t,e,n){if(n===void 0&&(n=null),t===null||e===null)return this.isUnconnectedLinkValid;var i=this.diagram.validCycle;if(i!==od){if(i===np){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=e.linksConnected;i.next();){var r=i.value;if(r!==n&&r.isTreeLink&&r.toNode===e)return!1}return!Ms(this,t,e,n,!0)}if(i===ip){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=t.linksConnected;i.next();)if(r=i.value,r!==n&&r.isTreeLink&&r.fromNode===t)return!1;return!Ms(this,t,e,n,!0)}if(i===qf)return t===e?t=!0:(i=new Ce,i.add(e),t=ks(this,i,t,e,n)),!t;if(i===tp)return!Ms(this,t,e,n,!1);if(i===ep)return t===e?t=!0:(i=new Ce,i.add(e),t=fu(this,i,t,e,n)),!t}return!0};function Ms(t,e,n,i,r){if(e===n)return!0;if(e===null||n===null)return!1;for(var o=e.linksConnected;o.next();){var s=o.value;if(s!==i&&(!r||s.isTreeLink)&&s.toNode===e&&(s=s.fromNode,s!==e&&Ms(t,s,n,i,r)))return!0}return!1}function ks(t,e,n,i,r){if(n===i)return!0;if(n===null||i===null||e.contains(n))return!1;e.add(n);for(var o=n.linksConnected;o.next();){var s=o.value;if(s!==r&&s.toNode===n&&(s=s.fromNode,s!==n&&ks(t,e,s,i,r)))return!0}return!1}function fu(t,e,n,i,r){if(n===i)return!0;if(n===null||i===null||e.contains(n))return!1;e.add(n);for(var o=n.linksConnected;o.next();){var s=o.value;if(s!==r){var l=s.fromNode;if(s=s.toNode,l=l===n?s:l,l!==n&&fu(t,e,l,i,r))return!0}}return!1}Mn.Object.defineProperties(uo.prototype,{portGravity:{get:function(){return this.te},set:function(t){0<=t&&(this.te=t)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(t){this.Ha=t}},linkingCursor:{get:function(){return this.u},set:function(t){this.u=t}},temporaryLink:{get:function(){return this.Ci},set:function(t){this.Ci=t}},temporaryFromNode:{get:function(){return this.Bi},set:function(t){(this.Bi=t)&&(this.j=t.port)}},temporaryFromPort:{get:function(){return this.j},set:function(t){if(this.j!==null){var e=this.j.panel;if(e!==null){var n=e.O.indexOf(this.j);e.mb(n),e.Gb(n,t)}}this.j=t}},temporaryToNode:{get:function(){return this.Di},set:function(t){(this.Di=t)&&(this.o=t.port)}},temporaryToPort:{get:function(){return this.o},set:function(t){if(this.o!==null){var e=this.o.panel;if(e!==null){var n=e.O.indexOf(this.o);e.mb(n),e.Gb(n,t)}}this.o=t}},originalLink:{get:function(){return this.Hb},set:function(t){this.Hb=t}},originalFromNode:{get:function(){return this.hb},set:function(t){this.hb=t}},originalFromPort:{get:function(){return this.ob},set:function(t){this.ob=t}},originalToNode:{get:function(){return this.Oc},set:function(t){this.Oc=t}},originalToPort:{get:function(){return this.Pc},set:function(t){this.Pc=t}},isForwards:{get:function(){return this.ia},set:function(t){this.ia=t}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(t){this.Pf=t}},linkValidation:{get:function(){return this.gj},set:function(t){this.gj=t}},portTargeted:{get:function(){return this.Of},set:function(t){this.Of=t}}}),uo.className="LinkingBaseTool";function Fs(){uo.call(this),this.name="Linking",this.V={},this.F=null,this.K=Ql,this.Xd=null}Yn(Fs,uo),Fs.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return t.isReadOnly||t.isModelReadOnly||!t.allowLink||!t.model.xs()||!t.lastInput.left||t.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},Fs.prototype.findLinkablePort=function(){var t=this.diagram,e=this.startObject;if(e===null&&(e=t.ic(t.firstInput.documentPoint,null,null)),e===null||(t=e.part,!(t instanceof tn)))return null;var n=this.direction;if(n===Ql||n===yc){var i=this.findValidLinkablePort(e,!1);if(i!==null||this.startObject===t&&(i=t.port,this.findValidLinkablePort(i,!1)))return this.isForwards=!0,i}return(n===Ql||n===xc)&&(e=this.findValidLinkablePort(e,!0),e!==null||this.startObject===t&&(e=t.port,this.findValidLinkablePort(e,!0)))?(this.isForwards=!1,e):null},Fs.prototype.doActivate=function(){var t=this.diagram,e=this.findLinkablePort();e===null?this.stopTool():(this.Ea(this.name),t.isMouseCaptured=!0,t.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=t.lastInput.documentPoint),this.originalFromPort=e,e=this.originalFromPort.part,e instanceof tn&&(this.originalFromNode=e),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=t.lastInput.documentPoint),this.originalToPort=e,e=this.originalToPort.part,e instanceof tn&&(this.originalToNode=e),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),t.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),t.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(),t.add(this.temporaryLink)),this.isActive=!0)},Fs.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;t.remove(this.temporaryLink),t.remove(this.temporaryFromNode),t.remove(this.temporaryToNode),t.isMouseCaptured=!1,t.currentCursor="",this.stopTransaction()},Fs.prototype.doStop=function(){uo.prototype.doStop.call(this),this.startObject=null},Fs.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram,e=this.transactionResult=null,n=null,i=null,r=null,o=null;try{var s=this.targetPort=this.findTargetPort(this.isForwards);if(s!==null){var l=s.part;l instanceof tn&&(this.isForwards?(this.originalFromNode!==null&&(e=this.originalFromNode,n=this.originalFromPort),i=l,r=s):(e=l,n=s,this.originalToNode!==null&&(i=this.originalToNode,r=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(e=this.originalFromNode,n=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(i=this.originalToNode,r=this.originalToPort);e!==null||i!==null?(o=this.insertLink(e,n,i,r),o!==null?(s===null&&(this.isForwards?o.defaultToPoint=t.lastInput.documentPoint:o.defaultFromPoint=t.lastInput.documentPoint),t.allowSelect&&(t.R("ChangingSelection",t.selection),t.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,t.R("LinkDrawn",o)):this.doNoLink(e,n,i,r)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),o&&t.allowSelect&&t.R("ChangedSelection",t.selection)}}},Fs.prototype.isNewTreeLink=function(){var t=this.archetypeLinkData;if(t===null)return!0;if(t instanceof Pe)return t.isTreeLink;var e=this.diagram;return e===null?!0:(t=e.partManager.getLinkCategoryForData(t),e=e.partManager.findLinkTemplateForCategory(t),e!==null?e.isTreeLink:!0)},Fs.prototype.insertLink=function(t,e,n,i){return this.diagram.partManager.insertLink(t,e,n,i)},Fs.prototype.doNoLink=function(){},Mn.Object.defineProperties(Fs.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(t){this.V=t}},archetypeLabelNodeData:{get:function(){return this.F},set:function(t){this.F=t}},direction:{get:function(){return this.K},set:function(t){this.K=t}},startObject:{get:function(){return this.Xd},set:function(t){this.Xd=t}}});var Ql=new xe(Fs,"Either",0),yc=new xe(Fs,"ForwardsOnly",0),xc=new xe(Fs,"BackwardsOnly",0);Fs.className="LinkingTool",Fs.Either=Ql,Fs.ForwardsOnly=yc,Fs.BackwardsOnly=xc;function oa(){uo.call(this),this.name="Relinking";var t=new ai;t.figure="Diamond",t.desiredSize=bi,t.fill="lightblue",t.stroke="dodgerblue",t.cursor=this.linkingCursor,t.segmentIndex=0,this.V=t,t=new ai,t.figure="Diamond",t.desiredSize=bi,t.fill="lightblue",t.stroke="dodgerblue",t.cursor=this.linkingCursor,t.segmentIndex=-1,this.Xd=t,this.F=null,this.Ew=new Xt}Yn(oa,uo),oa.prototype.updateAdornments=function(t){if(t!==null&&t instanceof Pe){var e="RelinkFrom",n=null;if(t.isSelected&&!this.diagram.isReadOnly){var i=t.selectionObject;i!==null&&t.canRelinkFrom()&&t.actualBounds.w()&&t.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=t.Pj(e),n===null&&(n=this.makeAdornment(i,!1),t.bh(e,n)))}n===null&&t.Jf(e),e="RelinkTo",n=null,t.isSelected&&!this.diagram.isReadOnly&&(i=t.selectionObject,i!==null&&t.canRelinkTo()&&t.actualBounds.w()&&t.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=t.Pj(e),n===null?(n=this.makeAdornment(i,!0),t.bh(e,n)):n.v())),n===null&&t.Jf(e)}},oa.prototype.makeAdornment=function(t,e){var n=new Vi;return n.type=Re.Link,e=e?this.toHandleArchetype:this.fromHandleArchetype,e!==null&&n.add(e.copy()),n.adornedObject=t,n},oa.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowRelink||!t.model.xs()||!t.lastInput.left)return!1;var e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkFrom");return e===null&&(e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkTo")),e!==null},oa.prototype.doActivate=function(){var t=this.diagram;if(this.originalLink===null){var e=this.handle;if(e===null&&(e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkFrom"),e===null&&(e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkTo"))),e===null)return;var n=e.part;if(!(n instanceof Vi&&n.adornedPart instanceof Pe))return;this.handle=e,this.isForwards=n===null||n.category==="RelinkTo",this.originalLink=n.adornedPart}this.Ea(this.name),t.isMouseCaptured=!0,t.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=Ui),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ui),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),t.add(this.temporaryFromNode),t.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(),t.add(this.temporaryLink)),this.isActive=!0},oa.prototype.copyLinkProperties=function(t,e){if(t!==null&&e!==null){e.adjusting=t.adjusting,e.corner=t.corner;var n=t.curve;(n===uf||n===Mc)&&(n=da),e.curve=n,e.curviness=t.curviness,e.isTreeLink=t.isTreeLink,e.points=t.points,e.routing=t.routing,e.smoothness=t.smoothness,e.fromSpot=t.fromSpot,e.fromEndSegmentLength=t.fromEndSegmentLength,e.fromShortLength=t.fromShortLength,e.toSpot=t.toSpot,e.toEndSegmentLength=t.toEndSegmentLength,e.toShortLength=t.toShortLength}},oa.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;t.remove(this.temporaryLink),t.remove(this.temporaryFromNode),t.remove(this.temporaryToNode),t.isMouseCaptured=!1,t.currentCursor="",this.stopTransaction()},oa.prototype.doStop=function(){uo.prototype.doStop.call(this),this.handle=null},oa.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram;this.transactionResult=null;var e=this.originalFromNode,n=this.originalFromPort,i=this.originalToNode,r=this.originalToPort,o=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var s=this.targetPort.part;s instanceof tn&&(this.isForwards?(i=s,r=this.targetPort):(e=s,n=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?r=i=null:n=e=null:o=null;o!==null?(this.reconnectLink(o,this.isForwards?i:e,this.isForwards?r:n,this.isForwards),this.targetPort===null&&(this.isForwards?o.defaultToPoint=t.lastInput.documentPoint:o.defaultFromPoint=t.lastInput.documentPoint,o.bb()),this.transactionResult=this.name,t.R("LinkRelinked",o,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},oa.prototype.reconnectLink=function(t,e,n,i){return n=n!==null&&n.portId!==null?n.portId:"",i?(t.toNode=e,t.toPortId=n):(t.fromNode=e,t.fromPortId=n),!0},oa.prototype.doNoRelink=function(){};function b(t,e,n,i,r){e!==null?(t.copyPortProperties(e,n,t.temporaryFromNode,t.temporaryFromPort,!1),t.diagram.add(t.temporaryFromNode)):t.diagram.remove(t.temporaryFromNode),i!==null?(t.copyPortProperties(i,r,t.temporaryToNode,t.temporaryToPort,!0),t.diagram.add(t.temporaryToNode)):t.diagram.remove(t.temporaryToNode)}Mn.Object.defineProperties(oa.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(t){this.V=t}},toHandleArchetype:{get:function(){return this.Xd},set:function(t){this.Xd=t}},handle:{get:function(){return this.F},set:function(t){if(t!==null&&!(t.part instanceof Vi))throw Error("new handle is not in an Adornment: "+t);this.F=t}}}),oa.className="RelinkingTool",ni("linkingTool",function(){return this.findTool("Linking")},function(t){this.gb("Linking",t,this.mouseMoveTools)}),ni("relinkingTool",function(){return this.findTool("Relinking")},function(t){this.gb("Relinking",t,this.mouseDownTools)});function M(){Ci.call(this),this.name="LinkReshaping";var t=new ai;t.figure="Rectangle",t.desiredSize=ar,t.fill="lightblue",t.stroke="dodgerblue",this.o=t,t=new ai,t.figure="Diamond",t.desiredSize=bi,t.fill="lightblue",t.stroke="dodgerblue",t.cursor="move",this.u=t,this.F=3,this.Ts=this.j=null,this.Fw=new z,this.Yq=new Te}Yn(M,Ci),M.prototype.Ru=function(t){return t&&t.reshapingBehavior.value!==0?t.reshapingBehavior:W},M.prototype.om=function(t,e){t.reshapingBehavior=e},M.prototype.updateAdornments=function(t){if(t!==null&&t instanceof Pe){var e=null;if(t.isSelected&&!this.diagram.isReadOnly){var n=t.path;n!==null&&t.canReshape()&&t.actualBounds.w()&&t.isVisible()&&n.actualBounds.w()&&n.Ed()&&(e=t.Pj(this.name),e===null||e.Aw!==t.pointsCount||e.Uw!==t.resegmentable)&&(e=this.makeAdornment(n),e!==null&&(e.Aw=t.pointsCount,e.Uw=t.resegmentable,t.bh(this.name,e)))}e===null&&t.Jf(this.name)}},M.prototype.makeAdornment=function(t){var e=t.part,n=e.pointsCount,i=e.isOrthogonal,r=null;if(e.points!==null&&1<n){r=new Vi,r.type=Re.Link,n=e.firstPickIndex;var o=e.lastPickIndex,s=i?1:0;if(e.resegmentable&&e.computeCurve()!==fl)for(var l=n+s;l<o-s;l++){var u=this.makeResegmentHandle(t,l);u!==null&&(u.segmentIndex=l,u.segmentFraction=.5,u.fromMaxLinks=999,r.add(u))}for(s=n+1;s<o;s++)if(l=this.makeHandle(t,s),l!==null){if(l.segmentIndex=s,s!==n)if(s===n+1&&i){u=e.i(n);var d=e.i(n+1);It.B(u.x,d.x)&&It.B(u.y,d.y)&&(d=e.i(n-1)),It.B(u.x,d.x)?(this.om(l,mt),l.cursor="n-resize"):It.B(u.y,d.y)&&(this.om(l,dt),l.cursor="w-resize")}else s===o-1&&i?(u=e.i(o-1),d=e.i(o),It.B(u.x,d.x)&&It.B(u.y,d.y)&&(u=e.i(o+1)),It.B(u.x,d.x)?(this.om(l,mt),l.cursor="n-resize"):It.B(u.y,d.y)&&(this.om(l,dt),l.cursor="w-resize")):s!==o&&(this.om(l,Ot),l.cursor="move");r.add(l)}r.adornedObject=t}return r},M.prototype.makeHandle=function(){var t=this.handleArchetype;return t===null?null:t.copy()},M.prototype.makeResegmentHandle=function(){var t=this.midHandleArchetype;return t===null?null:t.copy()},M.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!t.isReadOnly&&t.allowReshape&&t.lastInput.left?this.findToolHandleAt(t.firstInput.documentPoint,this.name)!==null:!1},M.prototype.doActivate=function(){var t=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),this.handle!==null){var e=this.handle.part.adornedPart;if(e instanceof Pe){if(this.Ts=e,t.isMouseCaptured=!0,this.Ea(this.name),e.resegmentable&&this.handle.fromMaxLinks===999){var n=e.points.copy(),i=this.getResegmentingPoint();if(n.Gb(this.handle.segmentIndex+1,i),e.isOrthogonal&&n.Gb(this.handle.segmentIndex+1,i),e.points=n,e.Wb(),e.updateAdornments(),this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=e.i(this.handle.segmentIndex),this.Yq=e.points.copy(),this.isActive=!0}}},M.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},M.prototype.stopTransaction=function(){var t=this.diagram,e=Ci.prototype.stopTransaction.call(this);return e&&t.undoManager.transactionToUndo!==null&&t.undoManager.transactionToUndo.ak(),e},M.prototype.doCancel=function(){var t=this.adornedLink;t!==null&&(t.points=this.Yq),this.stopTool()},M.prototype.getResegmentingPoint=function(){return this.handle.ga(ei)},M.prototype.doMouseMove=function(){var t=this.diagram;this.isActive&&(t=this.computeReshape(t.lastInput.documentPoint),this.reshape(t))},M.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){var e=this.computeReshape(t.lastInput.documentPoint);if(this.reshape(e),e=this.adornedLink,e!==null&&e.resegmentable){var n=this.handle.segmentIndex,i=e.i(n-1),r=e.i(n),o=e.i(n+1);if(e.isOrthogonal){if(n>e.firstPickIndex+1&&n<e.lastPickIndex-1){var s=e.i(n-2);if(Math.abs(i.x-r.x)<this.resegmentingDistance&&Math.abs(i.y-r.y)<this.resegmentingDistance&&(U(this,s,i,r,o,!0)||U(this,s,i,r,o,!1))){var l=e.points.copy();U(this,s,i,r,o,!0)?(l.cd(n-2,new z(s.x,(o.y+s.y)/2)),l.cd(n+1,new z(o.x,(o.y+s.y)/2))):(l.cd(n-2,new z((o.x+s.x)/2,s.y)),l.cd(n+1,new z((o.x+s.x)/2,o.y))),l.mb(n),l.mb(n-1),e.points=l,e.Wb()}else s=e.i(n+2),Math.abs(r.x-o.x)<this.resegmentingDistance&&Math.abs(r.y-o.y)<this.resegmentingDistance&&(U(this,i,r,o,s,!0)||U(this,i,r,o,s,!1))&&(l=e.points.copy(),U(this,i,r,o,s,!0)?(l.cd(n-1,new z(i.x,(i.y+s.y)/2)),l.cd(n+2,new z(s.x,(i.y+s.y)/2))):(l.cd(n-1,new z((i.x+s.x)/2,i.y)),l.cd(n+2,new z((i.x+s.x)/2,s.y))),l.mb(n+1),l.mb(n),e.points=l,e.Wb())}}else s=z.alloc(),It.qh(i.x,i.y,o.x,o.y,r.x,r.y,s)&&s.Bf(r)<this.resegmentingDistance*this.resegmentingDistance&&(i=e.points.copy(),i.mb(n),e.points=i,e.Wb()),z.free(s)}t.Ya(),this.transactionResult=this.name,t.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function U(t,e,n,i,r,o){return o?Math.abs(e.y-n.y)<t.resegmentingDistance&&Math.abs(n.y-i.y)<t.resegmentingDistance&&Math.abs(i.y-r.y)<t.resegmentingDistance:Math.abs(e.x-n.x)<t.resegmentingDistance&&Math.abs(n.x-i.x)<t.resegmentingDistance&&Math.abs(i.x-r.x)<t.resegmentingDistance}M.prototype.reshape=function(t){var e=this.adornedLink;e.uh();var n=this.handle.segmentIndex,i=this.Ru(this.handle);if(e.isOrthogonal)if(n===e.firstPickIndex+1)n=e.firstPickIndex+1,i===mt?(e.L(n,e.i(n-1).x,t.y),e.L(n+1,e.i(n+2).x,t.y)):i===dt&&(e.L(n,t.x,e.i(n-1).y),e.L(n+1,t.x,e.i(n+2).y));else if(n===e.lastPickIndex-1)n=e.lastPickIndex-1,i===mt?(e.L(n-1,e.i(n-2).x,t.y),e.L(n,e.i(n+1).x,t.y)):i===dt&&(e.L(n-1,t.x,e.i(n-2).y),e.L(n,t.x,e.i(n+1).y));else{i=n;var r=e.i(i),o=e.i(i-1),s=e.i(i+1);It.B(o.x,r.x)&&It.B(r.y,s.y)?(It.B(o.x,e.i(i-2).x)&&!It.B(o.y,e.i(i-2).y)?(e.m(i,t.x,o.y),n++,i++):e.L(i-1,t.x,o.y),It.B(s.y,e.i(i+2).y)&&!It.B(s.x,e.i(i+2).x)?e.m(i+1,s.x,t.y):e.L(i+1,s.x,t.y)):It.B(o.y,r.y)&&It.B(r.x,s.x)?(It.B(o.y,e.i(i-2).y)&&!It.B(o.x,e.i(i-2).x)?(e.m(i,o.x,t.y),n++,i++):e.L(i-1,o.x,t.y),It.B(s.x,e.i(i+2).x)&&!It.B(s.y,e.i(i+2).y)?e.m(i+1,t.x,s.y):e.L(i+1,t.x,s.y)):It.B(o.x,r.x)&&It.B(r.x,s.x)?(It.B(o.x,e.i(i-2).x)&&!It.B(o.y,e.i(i-2).y)?(e.m(i,t.x,o.y),n++,i++):e.L(i-1,t.x,o.y),It.B(s.x,e.i(i+2).x)&&!It.B(s.y,e.i(i+2).y)?e.m(i+1,t.x,s.y):e.L(i+1,t.x,s.y)):It.B(o.y,r.y)&&It.B(r.y,s.y)&&(It.B(o.y,e.i(i-2).y)&&!It.B(o.x,e.i(i-2).x)?(e.m(i,o.x,t.y),n++,i++):e.L(i-1,o.x,t.y),It.B(s.y,e.i(i+2).y)&&!It.B(s.x,e.i(i+2).x)?e.m(i+1,s.x,t.y):e.L(i+1,s.x,t.y)),e.L(n,t.x,t.y)}else e.L(n,t.x,t.y),i=e.fromNode,r=e.fromPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===1&&e.computeSpot(!0,r).Mc()&&(o=r.ga(ei,z.alloc()),i=e.getLinkPointFromPoint(i,r,o,t,!0,z.alloc()),e.L(0,i.x,i.y),z.free(o),z.free(i)),i=e.toNode,r=e.toPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===e.pointsCount-2&&e.computeSpot(!1,r).Mc()&&(n=r.ga(ei,z.alloc()),t=e.getLinkPointFromPoint(i,r,n,t,!1,z.alloc()),e.L(e.pointsCount-1,t.x,t.y),z.free(n),z.free(t));e.zf()},M.prototype.computeReshape=function(t){var e=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Ot:return t;case mt:return new z(e.i(n).x,t.y);case dt:return new z(t.x,e.i(n).y);default:case W:return e.i(n)}},Mn.Object.defineProperties(M.prototype,{handleArchetype:{get:function(){return this.o},set:function(t){this.o=t}},midHandleArchetype:{get:function(){return this.u},set:function(t){this.u=t}},handle:{get:function(){return this.j},set:function(t){if(t!==null&&!(t.part instanceof Vi))throw Error("new handle is not in an Adornment: "+t);this.j=t}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(t){this.F=t}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),M.prototype.setReshapingBehavior=M.prototype.om,M.prototype.getReshapingBehavior=M.prototype.Ru;var W=new xe(M,"None",0),dt=new xe(M,"Horizontal",1),mt=new xe(M,"Vertical",2),Ot=new xe(M,"All",3);M.className="LinkReshapingTool",M.None=W,M.Horizontal=dt,M.Vertical=mt,M.All=Ot,ni("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(t){this.gb("LinkReshaping",t,this.mouseDownTools)});function Vt(){Ci.call(this),this.name="Resizing",this.o=new Je(1,1).freeze(),this.j=new Je(9999,9999).freeze(),this.yg=new Je(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var t=new ai;t.alignmentFocus=ei,t.figure="Rectangle",t.desiredSize=ar,t.fill="lightblue",t.stroke="dodgerblue",t.strokeWidth=1,t.cursor="pointer",this.F=t,this.u=null,this.Xq=new z,this.Dw=new Je,this.Tn=new z,this.rt=new Je(0,0),this.qt=new Je(1/0,1/0),this.pt=new Je(1,1)}Yn(Vt,Ci),Vt.prototype.updateAdornments=function(t){if(!(t===null||t instanceof Pe)){if(t.isSelected&&!this.diagram.isReadOnly){var e=t.resizeObject,n=t.Pj(this.name);if(e!==null&&t.canResize()&&t.actualBounds.w()&&t.isVisible()&&e.actualBounds.w()&&e.Ed()&&((n===null||n.adornedObject!==e)&&(n=this.makeAdornment(e)),n!==null)){e=e.li(),nh(t)&&this.updateResizeHandles(n,e),t.bh(this.name,n);return}}t.Jf(this.name)}},Vt.prototype.makeAdornment=function(t){var e=t.part.resizeAdornmentTemplate;if(e===null){e=new Vi,e.type=Re.Spot,e.locationSpot=ei;var n=new ha;n.isPanelMain=!0,e.add(n),e.add(this.makeHandle(t,vi)),e.add(this.makeHandle(t,Yi)),e.add(this.makeHandle(t,tr)),e.add(this.makeHandle(t,So)),e.add(this.makeHandle(t,ds)),e.add(this.makeHandle(t,Zo)),e.add(this.makeHandle(t,as)),e.add(this.makeHandle(t,Cs))}else if(Ul(e),e=e.copy(),e===null)return null;return e.adornedObject=t,e},Vt.prototype.makeHandle=function(t,e){return t=this.handleArchetype,t===null?null:(t=t.copy(),t.alignment=e,t)},Vt.prototype.updateResizeHandles=function(t,e){if(t!==null){if(!t.alignment.Xb()&&(t.cursor==="pointer"||0<t.cursor.indexOf("resize")))t:{var n=t.alignment;if(n.Mc()&&(n=ei),0>=n.x)e=0>=n.y?e+225:1<=n.y?e+135:e+180;else if(1<=n.x)0>=n.y?e+=315:1<=n.y&&(e+=45);else if(0>=n.y)e+=270;else if(1<=n.y)e+=90;else break t;0>e?e+=360:360<=e&&(e-=360),t.cursor=22.5>e?"e-resize":67.5>e?"se-resize":112.5>e?"s-resize":157.5>e?"sw-resize":202.5>e?"w-resize":247.5>e?"nw-resize":292.5>e?"n-resize":337.5>e?"ne-resize":"e-resize"}else if(t instanceof Re)for(t=t.elements;t.next();)this.updateResizeHandles(t.value,e)}},Vt.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!t.isReadOnly&&t.allowResize&&t.lastInput.left?this.findToolHandleAt(t.firstInput.documentPoint,this.name)!==null:!1},Vt.prototype.doActivate=function(){var t=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(t.isMouseCaptured=!0,t.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))},Vt.prototype.doDeactivate=function(){var t=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=t.isMouseCaptured=!1},Vt.prototype.stopTransaction=function(){var t=this.diagram,e=Ci.prototype.stopTransaction.call(this);return e&&t.undoManager.transactionToUndo!==null&&t.undoManager.transactionToUndo.ak(),e},Vt.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Vt.prototype.doMouseMove=function(){var t=this.diagram;if(this.isActive){var e=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(t.lastInput.documentPoint,z.alloc()),o=this.computeReshape();e=this.computeResize(r,this.handle.alignment,e,n,i,o),this.resize(e),t.bd(),z.free(r)}},Vt.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){var e=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(t.lastInput.documentPoint,z.alloc()),o=this.computeReshape();e=this.computeResize(r,this.handle.alignment,e,n,i,o),this.resize(e),z.free(r),t.Ya(),this.transactionResult=this.name,t.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Vt.prototype.resize=function(t){var e=this.diagram,n=this.adornedObject;if(n!==null){if(n.desiredSize=t.size,t=n.part,t.Va(),n=n.ga(this.handle.alignment.gv()),t instanceof Jn){var i=new Te;if(i.add(t),!this.dragsMembers&&t.placeholder===null){var r=new c;r.dragsMembers=!1}e.moveParts(i,this.oppositePoint.copy().re(n),!0,r)}else t.location=t.location.copy().re(n).add(this.oppositePoint);e.bd()}},Vt.prototype.computeResize=function(t,e,n,i,r,o){e.Mc()&&(e=ei);var s=this.adornedObject.naturalBounds,l=s.x,u=s.y,d=s.x+s.width,f=s.y+s.height,y=1;if(!o){y=s.width;var T=s.height;0>=y&&(y=1),0>=T&&(T=1),y=T/y}return T=z.alloc(),It.No(t.x,t.y,l,u,r.width,r.height,T),t=s.copy(),0>=e.x?0>=e.y?(t.x=Math.max(T.x,d-i.width),t.x=Math.min(t.x,d-n.width),t.width=Math.max(d-t.x,n.width),t.y=Math.max(T.y,f-i.height),t.y=Math.min(t.y,f-n.height),t.height=Math.max(f-t.y,n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(y*t.width,i.height),n.height),t.width=t.height/y):(t.width=Math.max(Math.min(t.height/y,i.width),n.width),t.height=y*t.width),t.x=d-t.width,t.y=f-t.height)):1<=e.y?(t.x=Math.max(T.x,d-i.width),t.x=Math.min(t.x,d-n.width),t.width=Math.max(d-t.x,n.width),t.height=Math.max(Math.min(T.y-u,i.height),n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(y*t.width,i.height),n.height),t.width=t.height/y):(t.width=Math.max(Math.min(t.height/y,i.width),n.width),t.height=y*t.width),t.x=d-t.width)):(t.x=Math.max(T.x,d-i.width),t.x=Math.min(t.x,d-n.width),t.width=d-t.x,o||(t.height=Math.max(Math.min(y*t.width,i.height),n.height),t.width=t.height/y,t.y=u+.5*(f-u-t.height))):1<=e.x?0>=e.y?(t.width=Math.max(Math.min(T.x-l,i.width),n.width),t.y=Math.max(T.y,f-i.height),t.y=Math.min(t.y,f-n.height),t.height=Math.max(f-t.y,n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(y*t.width,i.height),n.height),t.width=t.height/y):(t.width=Math.max(Math.min(t.height/y,i.width),n.width),t.height=y*t.width),t.y=f-t.height)):1<=e.y?(t.width=Math.max(Math.min(T.x-l,i.width),n.width),t.height=Math.max(Math.min(T.y-u,i.height),n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(y*t.width,i.height),n.height),t.width=t.height/y):(t.width=Math.max(Math.min(t.height/y,i.width),n.width),t.height=y*t.width))):(t.width=Math.max(Math.min(T.x-l,i.width),n.width),o||(t.height=Math.max(Math.min(y*t.width,i.height),n.height),t.width=t.height/y,t.y=u+.5*(f-u-t.height))):0>=e.y?(t.y=Math.max(T.y,f-i.height),t.y=Math.min(t.y,f-n.height),t.height=f-t.y,o||(t.width=Math.max(Math.min(t.height/y,i.width),n.width),t.height=y*t.width,t.x=l+.5*(d-l-t.width))):1<=e.y&&(t.height=Math.max(Math.min(T.y-u,i.height),n.height),o||(t.width=Math.max(Math.min(t.height/y,i.width),n.width),t.height=y*t.width,t.x=l+.5*(d-l-t.width))),z.free(T),t},Vt.prototype.computeReshape=function(){var t=ye;return this.adornedObject instanceof ai&&(t=O0(this.adornedObject)),!(t===Tn||this.diagram.lastInput.shift)},Vt.prototype.computeMinSize=function(){var t=this.adornedObject.minSize.copy(),e=this.minSize;return!isNaN(e.width)&&e.width>t.width&&(t.width=e.width),!isNaN(e.height)&&e.height>t.height&&(t.height=e.height),t},Vt.prototype.computeMaxSize=function(){var t=this.adornedObject.maxSize.copy(),e=this.maxSize;return!isNaN(e.width)&&e.width<t.width&&(t.width=e.width),!isNaN(e.height)&&e.height<t.height&&(t.height=e.height),t},Vt.prototype.computeCellSize=function(){var t=new Je(NaN,NaN),e=this.adornedObject.part;return e!==null&&(e=e.resizeCellSize,!isNaN(e.width)&&0<e.width&&(t.width=e.width),!isNaN(e.height)&&0<e.height&&(t.height=e.height)),e=this.cellSize,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height),e=this.diagram,(isNaN(t.width)||isNaN(t.height))&&e&&(e=e.grid,e!==null&&e.visible&&this.isGridSnapEnabled&&(e=e.gridCellSize,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height))),(isNaN(t.width)||t.width===0||t.width===1/0)&&(t.width=1),(isNaN(t.height)||t.height===0||t.height===1/0)&&(t.height=1),t},Mn.Object.defineProperties(Vt.prototype,{handleArchetype:{get:function(){return this.F},set:function(t){this.F=t}},handle:{get:function(){return this.u},set:function(t){if(t!==null&&!(t.part instanceof Vi))throw Error("new handle is not in an Adornment: "+t);this.u=t}},adornedObject:{get:function(){return this.ue},set:function(t){if(t!==null&&t.part instanceof Vi)throw Error("new handle must not be in an Adornment: "+t);this.ue=t}},minSize:{get:function(){return this.o},set:function(t){if(!this.o.D(t)){var e=t.width;isNaN(e)&&(e=0),t=t.height,isNaN(t)&&(t=0),this.o.h(e,t)}}},maxSize:{get:function(){return this.j},set:function(t){if(!this.j.D(t)){var e=t.width;isNaN(e)&&(e=1/0),t=t.height,isNaN(t)&&(t=1/0),this.j.h(e,t)}}},cellSize:{get:function(){return this.yg},set:function(t){this.yg.D(t)||this.yg.assign(t)}},isGridSnapEnabled:{get:function(){return this.V},set:function(t){this.V=t}},dragsMembers:{get:function(){return this.ia},set:function(t){this.ia=t}},oppositePoint:{get:function(){return this.Xq},set:function(t){this.Xq.D(t)||this.Xq.assign(t)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),Vt.className="ResizingTool",ni("resizingTool",function(){return this.findTool("Resizing")},function(t){this.gb("Resizing",t,this.mouseDownTools)});function be(){Ci.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new z,this.ue=null;var t=new ai;t.figure="Ellipse",t.desiredSize=bi,t.fill="lightblue",t.stroke="dodgerblue",t.strokeWidth=1,t.cursor="pointer",this.o=t,this.j=null,this.Cw=0,this.kr=new z(NaN,NaN),this.u=0,this.F=50}Yn(be,Ci),be.prototype.updateAdornments=function(t){if(t!==null){if(t.ph()){var e=t.rotateObject;if(e===t||e===t.path||e.isPanelMain)return}if(t.isSelected&&!this.diagram.isReadOnly&&(e=t.rotateObject,e!==null&&t.canRotate()&&t.actualBounds.w()&&t.isVisible()&&e.actualBounds.w()&&e.Ed())){var n=t.Pj(this.name);if((n===null||n.adornedObject!==e)&&(n=this.makeAdornment(e)),n!==null){n.angle=e.li(),n.placeholder===null&&(n.location=this.computeAdornmentLocation(e)),t.bh(this.name,n);return}}t.Jf(this.name)}},be.prototype.makeAdornment=function(t){var e=t.part.rotateAdornmentTemplate;if(e===null){e=new Vi,e.type=Re.Position,e.locationSpot=ei;var n=this.handleArchetype;n!==null&&e.add(n.copy())}else if(Ul(e),e=e.copy(),e===null)return null;return e.adornedObject=t,e},be.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!t.isReadOnly&&t.allowRotate&&t.lastInput.left?this.findToolHandleAt(t.firstInput.documentPoint,this.name)!==null:!1},be.prototype.doActivate=function(){var t=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(t.isMouseCaptured=!0,t.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)},be.prototype.computeRotationPoint=function(t){var e=t.part,n=e.locationObject;return e.rotationSpot.sb()?t.ga(e.rotationSpot):t===e||t===n?n.ga(e.locationSpot):t.ga(ei)},be.prototype.computeAdornmentLocation=function(t){var e=this.rotationPoint;e.w()||(e=this.computeRotationPoint(t)),e=t.qs(e);var n=this.handleAngle;0>n?n+=360:360<=n&&(n-=360),n=Math.round(45*Math.round(n/45));var i=this.handleDistance;return n===0?e.x=t.naturalBounds.width+i:n===45?(e.x=t.naturalBounds.width+i,e.y=t.naturalBounds.height+i):n===90?e.y=t.naturalBounds.height+i:n===135?(e.x=-i,e.y=t.naturalBounds.height+i):n===180?e.x=-i:n===225?(e.x=-i,e.y=-i):n===270?e.y=-i:n===315&&(e.x=t.naturalBounds.width+i,e.y=-i),t.ga(e)},be.prototype.doDeactivate=function(){var t=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new z(NaN,NaN),this.isActive=t.isMouseCaptured=!1},be.prototype.stopTransaction=function(){var t=this.diagram,e=Ci.prototype.stopTransaction.call(this);return e&&t.undoManager.transactionToUndo!==null&&t.undoManager.transactionToUndo.ak(),e},be.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},be.prototype.doMouseMove=function(){var t=this.diagram;this.isActive&&(t=this.computeRotate(t.lastInput.documentPoint),this.rotate(t))},be.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){t.delaysLayout=!1;var e=this.computeRotate(t.lastInput.documentPoint);this.rotate(e),t.Ya(),this.transactionResult=this.name,t.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},be.prototype.rotate=function(t){var e=this.adornedObject;if(e!==null){e.angle=t,e=e.part,e.Va();var n=e.locationObject,i=e.rotateObject;(n===i||n.rg(i))&&(n=this.Tn.copy(),e.location=n.re(this.rotationPoint).rotate(t-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},be.prototype.computeRotate=function(t){t=this.rotationPoint.ab(t)-this.handleAngle;var e=this.adornedObject.panel;e!==null&&(t-=e.li()),360<=t?t-=360:0>t&&(t+=360),e=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),e/2);return!this.diagram.lastInput.shift&&0<e&&0<n&&(t%e<n?t=Math.floor(t/e)*e:t%e>e-n&&(t=(Math.floor(t/e)+1)*e)),360<=t?t-=360:0>t&&(t+=360),t},Mn.Object.defineProperties(be.prototype,{handleArchetype:{get:function(){return this.o},set:function(t){this.o=t}},handle:{get:function(){return this.j},set:function(t){if(t!==null&&!(t.part instanceof Vi))throw Error("new handle is not in an Adornment: "+t);this.j=t}},adornedObject:{get:function(){return this.ue},set:function(t){if(t!==null&&t.part instanceof Vi)throw Error("new handle must not be in an Adornment: "+t);this.ue=t}},snapAngleMultiple:{get:function(){return this.ia},set:function(t){this.ia=t}},snapAngleEpsilon:{get:function(){return this.V},set:function(t){this.V=t}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(t){this.kr=t.copy()}},handleAngle:{get:function(){return this.u},set:function(t){this.u=t}},handleDistance:{get:function(){return this.F},set:function(t){this.F=t}}}),be.className="RotatingTool",ni("rotatingTool",function(){return this.findTool("Rotating")},function(t){this.gb("Rotating",t,this.mouseDownTools)});function Ne(){Ci.call(this),this.name="ClickSelecting"}Yn(Ne,Ci),Ne.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Ne.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Ne.className="ClickSelectingTool";function ae(){Ci.call(this),this.name="Action",this.pk=null}Yn(ae,Ci),ae.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram,e=t.lastInput,n=t.ic(e.documentPoint,function(i){for(;i.panel!==null&&!i.isActionable;)i=i.panel;return i});return n!==null&&n.isActionable?(this.pk=n,t.Ck=t.ic(e.documentPoint,null,null),!0):!1},ae.prototype.doMouseDown=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.pk;e!==null&&(t.targetObject=e,e.actionDown!==null&&e.actionDown(t,e))}else this.canStart()&&this.doActivate()},ae.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.pk;e!==null&&(t.targetObject=e,e.actionMove!==null&&e.actionMove(t,e))}},ae.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.pk;if(e===null)return;t.targetObject=e,e.actionUp!==null&&e.actionUp(t,e),this.standardMouseClick(function(n){for(;n.panel!==null&&(!n.isActionable||n!==e);)n=n.panel;return n},function(n){return n===e})}this.stopTool()},ae.prototype.doCancel=function(){var t=this.diagram.lastInput,e=this.pk;e!==null&&(t.targetObject=e,e.actionCancel!==null&&e.actionCancel(t,e),this.stopTool())},ae.prototype.doStop=function(){this.pk=null},ae.className="ActionTool";function We(){Ci.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new z(0,0)}Yn(We,Ci),We.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(t.lastInput.clickCount===1&&(this.mw=t.lastInput.viewPoint.copy()),t.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(t.lastInput.clickCount!==1)return!1;return!(t.currentTool!==this&&t.Ol(t.lastInput.documentPoint,!0)!==null)},We.prototype.doMouseUp=function(){var t=this.diagram;this.isActive&&this.insertPart(t.lastInput.documentPoint),this.stopTool()},We.prototype.insertPart=function(t){var e=this.diagram,n=this.archetypeNodeData;if(n===null)return null;var i=null;try{if(e.R("ChangingSelection",e.selection),this.Ea(this.name),n instanceof Rn)n.Zc()&&(Ul(n),i=n.copy(),i!==null&&e.add(i));else if(n!==null){var r=e.model.copyNodeData(n);Ut(r)&&(e.model.xf(r),i=e.Lc(r))}if(i!==null){var o=z.allocAt(t.x,t.y);this.isGridSnapEnabled&&Fd(this.diagram,i,t,o),i.location=o,e.allowSelect&&(e.clearSelection(!0),i.isSelected=!0),z.free(o)}e.Ya(),this.transactionResult=this.name,e.R("PartCreated",i)}finally{this.stopTransaction(),e.R("ChangedSelection",e.selection)}return i},Mn.Object.defineProperties(We.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(t){this.Ri=t}},isDoubleClick:{get:function(){return this.o},set:function(t){this.o=t}},isGridSnapEnabled:{get:function(){return this.j},set:function(t){this.j=t}}}),We.className="ClickCreatingTool";function Ue(){Ci.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var t=new Rn;t.layerName="Tool",t.selectable=!1;var e=new ai;e.name="SHAPE",e.figure="Rectangle",e.fill=null,e.stroke="magenta",t.add(e),this.j=t}Yn(Ue,Ci),Ue.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(!t.allowSelect)return!1;var e=t.lastInput;return!(!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.timestamp-t.firstInput.timestamp<this.delay||t.Ol(e.documentPoint,!0)!==null))},Ue.prototype.doActivate=function(){var t=this.diagram;this.isActive=!0,t.isMouseCaptured=!0,t.skipsUndoManager=!0,t.add(this.box),this.doMouseMove()},Ue.prototype.doDeactivate=function(){var t=this.diagram;t.ug(),t.remove(this.box),t.skipsUndoManager=!1,this.isActive=t.isMouseCaptured=!1},Ue.prototype.doMouseMove=function(){var t=this.diagram;if(this.isActive&&this.box!==null){var e=this.computeBoxBounds(),n=this.box.fb("SHAPE");n===null&&(n=this.box.Pb());var i=Je.alloc().h(e.width,e.height);n.desiredSize=i,this.box.mm(e.x,e.y,!1),Je.free(i),(t.allowHorizontalScroll||t.allowVerticalScroll)&&t.gs(t.lastInput.viewPoint)}},Ue.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram;t.remove(this.box);try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),this.selectInRect(this.computeBoxBounds()),t.R("ChangedSelection",t.selection)}finally{t.currentCursor=""}}this.stopTool()},Ue.prototype.computeBoxBounds=function(){var t=this.diagram;return new Xt(t.firstInput.documentPoint,t.lastInput.documentPoint)},Ue.prototype.selectInRect=function(t){var e=this.diagram,n=e.lastInput;if(t=e.ux(t,this.isPartialInclusion),ui?n.meta:n.control)if(n.shift)for(t=t.iterator;t.next();)e=t.value,e.isSelected&&(e.isSelected=!1);else for(t=t.iterator;t.next();)e=t.value,e.isSelected=!e.isSelected;else if(n.shift)for(t=t.iterator;t.next();)e=t.value,e.isSelected||(e.isSelected=!0);else{for(n=new Te,e=e.selection.iterator;e.next();){var i=e.value;t.contains(i)||n.add(i)}for(e=n.iterator;e.next();)e.value.isSelected=!1;for(t=t.iterator;t.next();)e=t.value,e.isSelected||(e.isSelected=!0)}},Mn.Object.defineProperties(Ue.prototype,{delay:{get:function(){return this.Ik},set:function(t){this.Ik=t}},isPartialInclusion:{get:function(){return this.o},set:function(t){this.o=t}},box:{get:function(){return this.j},set:function(t){this.j=t}}}),Ue.className="DragSelectingTool";function fe(){Ci.call(this),this.name="Panning",this.Xt=new z,this.xy=new z,this.xg=!1;var t=this;this.Kw=function(){var e=t.diagram;e!==null&&e.removeEventListener(sn.document,"scroll",t.Kw,!1),t.stopTool()}}Yn(fe,Ci),fe.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(!t.allowHorizontalScroll&&!t.allowVerticalScroll||!t.lastInput.left||t.currentTool!==this&&!this.isBeyondDragSize())},fe.prototype.doActivate=function(){var t=this.diagram;this.xg?(t.lastInput.bubbles=!0,t.addEventListener(sn.document,"scroll",this.Kw,!1)):(t.currentCursor="move",t.isMouseCaptured=!0,this.Xt.assign(t.position)),this.isActive=!0},fe.prototype.doDeactivate=function(){var t=this.diagram;t.currentCursor="",this.isActive=t.isMouseCaptured=!1},fe.prototype.doCancel=function(){var t=this.diagram;t.position=this.Xt,t.isMouseCaptured=!1,this.stopTool()},fe.prototype.doMouseMove=function(){this.move()},fe.prototype.doMouseUp=function(){this.move(),this.stopTool()},fe.prototype.move=function(){var t=this.diagram;if(this.isActive&&t)if(this.xg)t.lastInput.bubbles=!0;else{var e=t.position,n=t.firstInput.documentPoint,i=t.lastInput.documentPoint,r=e.x+n.x-i.x;n=e.y+n.y-i.y,t.allowHorizontalScroll||(r=e.x),t.allowVerticalScroll||(n=e.y),t.position=this.xy.h(r,n)}},Mn.Object.defineProperties(fe.prototype,{bubbles:{get:function(){return this.xg},set:function(t){this.xg=t}},originalPosition:{get:function(){return this.Xt}}}),fe.className="PanningTool",ni("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(t){this.gb("ClickCreating",t,this.mouseUpTools)}),ni("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(t){this.gb("ClickSelecting",t,this.mouseUpTools)}),ni("panningTool",function(){return this.findTool("Panning")},function(t){this.gb("Panning",t,this.mouseMoveTools)}),ni("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(t){this.gb("DragSelecting",t,this.mouseMoveTools)}),ni("actionTool",function(){return this.findTool("Action")},function(t){this.gb("Action",t,this.mouseDownTools)});function Pi(){this.F=this.u=this.j=this.o=null}Mn.Object.defineProperties(Pi.prototype,{mainElement:{get:function(){return this.u},set:function(t){this.u=t}},show:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t)}},hide:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t)}},valueFunction:{get:function(){return this.F},set:function(t){this.F=t}}}),Pi.className="HTMLInfo";function lr(t,e,n){this.text=t,this.hx=e,this.visible=n}lr.className="ContextMenuButtonInfo";function Cr(){Ci.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new z,this.jt=null,this.Et=!1;var t=this;this.tu=function(){t.stopTool()}}Yn(Cr,Ci);function hi(t){var e=new Pi;e.show=function(r,o,s){s.showDefaultContextMenu()},e.hide=function(r,o){o.hideDefaultContextMenu()},Zn=e,t.tu=function(){t.stopTool()},e=Nr("div");var n=Nr("div");e.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 i=Nr("style");sn.document.getElementsByTagName("head")[0].appendChild(i),i.sheet.insertRule(".goCXul { list-style: none; }",0),i.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),i.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),i=t.diagram,i!==null&&(i.addEventListener(e,"contextmenu",Hi,!1),i.addEventListener(e,"selectstart",Hi,!1),i.addEventListener(n,"contextmenu",Hi,!1)),e.className="goCXforeground",n.className="goCXbackground",sn.document.body&&(sn.document.body.appendChild(e),sn.document.body.appendChild(n)),bo=e,is=n,Mo=!0}function Hi(t){return t.preventDefault(),!1}Cr.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return this.isBeyondDragSize()||!t.lastInput.right||1<t.lastInput.clickCount?!1:!!(t.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Cr.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Cr.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Cr.prototype.findObjectWithContextMenu=function(t){t===void 0&&(t=null);var e=this.diagram,n=e.lastInput,i=null;if(t instanceof Kt||(t instanceof Rt?i=t:i=e.ic(n.documentPoint,null,function(r){return!r.layer.isTemporary})),i!==null){for(t=i;t!==null;){if(t.contextMenu!==null)return t;t=t.panel}if(e.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return i.part}else if(e.contextMenu!==null)return e;return null},Cr.prototype.doActivate=function(){},Cr.prototype.doMouseDown=function(){if(Ci.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Vi){var t=this.diagram.toolManager.findTool("Action");t!==null&&t.canStart()&&(t.doActivate(),t.doMouseDown(),t.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Qi(this)},Cr.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Vi){var t=this.diagram.toolManager.findTool("Action");t!==null&&t.canStart()&&(t.doActivate(),t.doCancel(),t.doDeactivate())}Qi(this)};function Qi(t){var e=t.diagram;if(t.isActive){var n=t.currentContextMenu;if(n!==null){var i=null;n instanceof Pi||(i=e.ic(e.lastInput.documentPoint,null,null),i!==null&&i.rg(n)&&t.standardMouseClick(null,null)),t.maybeStopTool(i)}}else t.canStart()&&(Ao(t,!0),t.isActive||t.stopTool())}Cr.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Ao(t,e,n){if(n===void 0&&(n=null),!t.Et&&(t.Et=!0,e&&t.standardMouseSelect(),e=t.standardMouseClick(),t.Et=!1,!e)){if(t.isActive=!0,e=Zn,n===null&&(n=t.findObjectWithContextMenu()),n!==null){var i=n.contextMenu;i!==null?(t.currentObject=n instanceof Rt?n:null,t.showContextMenu(i,t.currentObject)):e!==null&&t.showContextMenu(e,t.currentObject)}else e!==null&&t.showContextMenu(e,null);t.currentContextMenu instanceof Vi&&!t.currentContextMenu.visible&&t.stopTool()}}Cr.prototype.doMouseMove=function(){var t=this.diagram.toolManager.findTool("Action");t!==null&&t.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Cr.prototype.showContextMenu=function(t,e){var n=this.diagram;if(t!==this.currentContextMenu&&this.hideContextMenu(),t instanceof Vi){t.layerName="Tool",t.selectable=!1,t.scale=1/n.scale,t.category=this.name,t.placeholder!==null&&(t.placeholder.scale=n.scale);var i=t.diagram;i!==null&&i!==n&&i.remove(t),n.add(t),e!==null?t.adornedObject=e:t.data=n.model,t.Va(),this.positionContextMenu(t,e)}else t instanceof Pi&&t.show(e,n,this);this.currentContextMenu=t},Cr.prototype.positionContextMenu=function(t){if(t.placeholder===null){var e=this.diagram,n=e.lastInput.documentPoint.copy(),i=t.measuredBounds,r=e.viewportBounds;e.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/e.scale),n.x<r.x&&(n.x=r.x),n.y+i.height>r.bottom&&(n.y-=i.height+5/e.scale),n.y<r.y&&(n.y=r.y),t.position=n}},Cr.prototype.hideContextMenu=function(){var t=this.diagram,e=this.currentContextMenu;e!==null&&(e instanceof Vi?(t.remove(e),this.ht!==null&&this.ht.Jf(e.category),e.data=null,e.adornedObject=null):e instanceof Pi&&(e.hide!==null?e.hide(t,this):e.mainElement!==null&&(e.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Io(t){var e=new Te;return e.add(new lr("Copy",function(n){n.commandHandler.copySelection()},function(n){return n.commandHandler.canCopySelection()})),e.add(new lr("Cut",function(n){n.commandHandler.cutSelection()},function(n){return n.commandHandler.canCutSelection()})),e.add(new lr("Delete",function(n){n.commandHandler.deleteSelection()},function(n){return n.commandHandler.canDeleteSelection()})),e.add(new lr("Paste",function(n){n.commandHandler.pasteSelection(t.mouseDownPoint)},function(n){return n.commandHandler.canPasteSelection(t.mouseDownPoint)})),e.add(new lr("Select All",function(n){n.commandHandler.selectAll()},function(n){return n.commandHandler.canSelectAll()})),e.add(new lr("Undo",function(n){n.commandHandler.undo()},function(n){return n.commandHandler.canUndo()})),e.add(new lr("Redo",function(n){n.commandHandler.redo()},function(n){return n.commandHandler.canRedo()})),e.add(new lr("Scroll To Part",function(n){n.commandHandler.scrollToPart()},function(n){return n.commandHandler.canScrollToPart()})),e.add(new lr("Zoom To Fit",function(n){n.commandHandler.zoomToFit()},function(n){return n.commandHandler.canZoomToFit()})),e.add(new lr("Reset Zoom",function(n){n.commandHandler.resetZoom()},function(n){return n.commandHandler.canResetZoom()})),e.add(new lr("Group Selection",function(n){n.commandHandler.groupSelection()},function(n){return n.commandHandler.canGroupSelection()})),e.add(new lr("Ungroup Selection",function(n){n.commandHandler.ungroupSelection()},function(n){return n.commandHandler.canUngroupSelection()})),e.add(new lr("Edit Text",function(n){n.commandHandler.editTextBlock()},function(n){return n.commandHandler.canEditTextBlock()})),e}Cr.prototype.showDefaultContextMenu=function(){var t=this.diagram;this.jt===null&&(this.jt=Io(this)),bo.innerHTML="",is.addEventListener("pointerdown",this.tu,!1);var e=this,n=Nr("ul");n.className="goCXul",bo.appendChild(n),n.innerHTML="";for(var i=this.jt.iterator;i.next();){var r=i.value,o=r.visible;if(typeof r.hx=="function"&&(typeof o!="function"||o(t))){o=Nr("li"),o.className="goCXli";var s=Nr("a");s.className="goCXa",s.href="#",s.ky=r.hx,s.addEventListener("pointerdown",function(l){return this.ky(t),e.stopTool(),l.preventDefault(),!1},!1),s.textContent=r.text,o.appendChild(s),n.appendChild(o)}}bo.style.display="block",is.style.display="block"},Cr.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Zn){bo.style.display="none",is.style.display="none";var t=this.diagram;t!==null&&t.removeEventListener(is,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Mn.Object.defineProperties(Cr.prototype,{currentContextMenu:{get:function(){return this.j},set:function(t){this.j=t,this.ht=t instanceof Vi?t.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Mo===!1&&Zn===null&&vo&&hi(this),Zn},set:function(t){t===null&&(Mo=!0),Zn=t}},currentObject:{get:function(){return this.o},set:function(t){this.o=t}},mouseDownPoint:{get:function(){return this.yw}}});var Zn=null,Mo=!1,is=null,bo=null;Cr.className="ContextMenuTool",ni("contextMenuTool",function(){return this.findTool("ContextMenu")},function(t){this.gb("ContextMenu",t,this.mouseUpTools)});function Di(){Ci.call(this),this.name="TextEditing",this.Zh=new zr,this.ia=null,this.V=$s,this.vj=null,this.qa=Me,this.u=1,this.F=!0,this.o=null,this.j=new Pi,this.kt=null,sa(this,this.j)}Yn(Di,Ci);function sa(t,e){if(vo){var n=Nr("textarea");t.kt=n,n.addEventListener("input",function(){if(t.textBlock!==null){var i=t.Lx(this.value);this.style.width=20+i.measuredBounds.width*this.wA+"px",this.rows=i.lineCount}},!1),n.addEventListener("keydown",function(i){if(!i.isComposing&&t.textBlock!==null){var r=i.key;r==="Enter"?(t.textBlock.isMultiline===!1&&i.preventDefault(),t.acceptText(Xo)):r==="Tab"?(t.acceptText(ro),i.preventDefault()):r==="Escape"&&(t.doCancel(),t.diagram!==null&&t.diagram.doFocus())}},!1),n.addEventListener("focus",function(){if(t.currentTextEditor!==null&&t.state!==Me){var i=t.kt;t.qa===aa&&(t.qa=Ya),typeof i.select=="function"&&t.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),n.addEventListener("blur",function(){if(t.currentTextEditor!==null&&t.state!==Me){var i=t.kt;typeof i.focus=="function"&&i.focus(),typeof i.select=="function"&&t.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),e.valueFunction=function(){return n.value},e.mainElement=n,e.show=function(i,r,o){if(i instanceof zr&&o instanceof Di)if(o.state===Xs)n.style.border="3px solid red",n.focus();else{var s=i.ga(ei),l=r.position,u=r.scale,d=i.Df()*u;d<o.minimumEditorScale&&(d=o.minimumEditorScale);var f=i.naturalBounds.width*d+6,y=i.naturalBounds.height*d+2,T=(s.x-l.x)*u;s=(s.y-l.y)*u,l=i.verticalAlignment,u=(i.lineHeight+i.spacingAbove+i.spacingBelow)*i.lineCount*d,y=l.y*y-l.y*u+l.offsetY-(.5*y-.5*u)-u/2,n.value=i.text,r.div.style.font=i.font,n.style.position="absolute",n.style.zIndex="100",n.style.font="inherit",n.style.fontSize=100*d+"%",n.style.lineHeight="normal",n.style.width=f+"px",n.style.left=(T-f/2|0)-1+"px",n.style.top=(s+y|0)-1+"px",n.style.textAlign=i.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=i.lineCount,n.wA=d,n.className="goTXarea",r.div.appendChild(n),n.focus(),o.selectsTextOnActivate&&(n.select(),n.setSelectionRange(0,9999))}},e.hide=function(i){i.div.removeChild(n)}}}Di.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t===null||t.isReadOnly||xl&&xl!==this&&(xl.acceptText(mr),xl&&xl!==this)||!t.lastInput.left||this.isBeyondDragSize())return!1;var e=t.ic(t.lastInput.documentPoint);return e!==null&&e instanceof zr&&e.editable&&e.part.canEdit()?(e=e.part,!(e===null||this.starting===$s&&!e.isSelected||this.starting===Fa&&2>t.lastInput.clickCount)):!1},Di.prototype.doStart=function(){xl=this,this.textBlock!==null&&this.doActivate()},Di.prototype.doActivate=function(){if(!this.isActive){var t=this.diagram;if(t!==null){var e=this.textBlock;if(e===null&&(e=t.ic(t.lastInput.documentPoint)),e!==null&&e instanceof zr&&(this.textBlock=e,e.part!==null)){t.animationManager.Cc(),this.isActive=!0,this.qa=aa;var n=this.defaultTextEditor;e.textEditor!==null&&(n=e.textEditor),this.Zh=this.textBlock.copy();var i=new Xt(this.textBlock.ga(vi),this.textBlock.ga(tr));t.tv(i),n.show(e,t,this),this.currentTextEditor=n}}}},Di.prototype.doCancel=function(){this.stopTool()},Di.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Di.prototype.doMouseDown=function(){this.isActive&&this.acceptText(mr)},Di.prototype.acceptText=function(t){switch(t){case mr:this.qa===sl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===aa||this.qa===Xs||this.qa===Ya)&&(this.qa=_e,Uo(this));break;case br:case Xo:case ro:(Xo!==t||this.textBlock.isMultiline!==!0)&&(this.qa===aa||this.qa===Xs||this.qa===Ya)&&(this.qa=_e,Uo(this))}};function Uo(t){var e=t.textBlock,n=t.diagram,i=t.currentTextEditor;if(e!==null&&i!==null){var r=e.text,o="";i.valueFunction!==null&&(o=i.valueFunction()),t.isValidText(e,r,o)?(t.Ea(t.name),t.qa=sl,t.transactionResult=t.name,e.text=o,t.doSuccess(r,o),n!==null&&n.R("TextEdited",e,r),t.stopTransaction(),t.stopTool(),n!==null&&n.doFocus()):(t.qa=Xs,t.doError(r,o))}}Di.prototype.doError=function(t,e){var n=this.textBlock;n.errorFunction!==null&&n.errorFunction(this,t,e),(t=this.currentTextEditor)&&t.show(n,this.diagram,this)},Di.prototype.doSuccess=function(t,e){var n=this.textBlock;n.textEdited!==null&&n.textEdited(n,t,e)},Di.prototype.doDeactivate=function(){var t=this.diagram;t!==null&&(this.qa=Me,this.currentTextEditor!==null&&this.currentTextEditor.hide(t,this),this.textBlock=null,this.isActive=!1)},Di.prototype.doStop=function(){xl=null},Di.prototype.isValidText=function(t,e,n){var i=this.textValidation;return i!==null&&!i(t,e,n)?!1:(i=t.textValidation,!!(i===null||i(t,e,n)))},Di.prototype.Lx=function(t){var e=this.Zh;return e.text=t,e.measure(this.textBlock.Ih,1/0),e},Mn.Object.defineProperties(Di.prototype,{textBlock:{get:function(){return this.ia},set:function(t){this.ia=t}},currentTextEditor:{get:function(){return this.o},set:function(t){this.o=t}},defaultTextEditor:{get:function(){return this.j},set:function(t){this.j=t}},starting:{get:function(){return this.V},set:function(t){this.V=t}},textValidation:{get:function(){return this.vj},set:function(t){this.vj=t}},minimumEditorScale:{get:function(){return this.u},set:function(t){this.u=t}},selectsTextOnActivate:{get:function(){return this.F},set:function(t){this.F=t}},state:{get:function(){return this.qa},set:function(t){this.qa!==t&&(this.qa=t)}}}),Di.prototype.measureTemporaryTextBlock=Di.prototype.Lx;var br=new xe(Di,"LostFocus",0),mr=new xe(Di,"MouseDown",1),ro=new xe(Di,"Tab",2),Xo=new xe(Di,"Enter",3),Bs=new xe(Di,"SingleClick",0),$s=new xe(Di,"SingleClickSelected",1),Fa=new xe(Di,"DoubleClick",2),Me=new xe(Di,"StateNone",0),aa=new xe(Di,"StateActive",1),Ya=new xe(Di,"StateEditing",2),_e=new xe(Di,"StateValidating",3),Xs=new xe(Di,"StateInvalid",4),sl=new xe(Di,"StateValidated",5),xl=null;Di.className="TextEditingTool",Di.LostFocus=br,Di.MouseDown=mr,Di.Tab=ro,Di.Enter=Xo,Di.SingleClick=Bs,Di.SingleClickSelected=$s,Di.DoubleClick=Fa,Di.StateNone=Me,Di.StateActive=aa,Di.StateEditing=Ya,Di.StateValidating=_e,Di.StateInvalid=Xs,Di.StateValidated=sl,ni("textEditingTool",function(){return this.findTool("TextEditing")},function(t){this.gb("TextEditing",t,this.mouseUpTools)});function Os(t){fn||(Lt(),fn=!0),this.H=Uu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Fn,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ce,this.ce=new ln,this.ce.Yd=this,this.Ei=new Ce,this.pu=new Ce,this.Sr=new Ce,this.pr=new Ce,t&&Object.assign(this,t)}Os.prototype.Xe=function(t){this.H=t},Os.prototype.canStart=function(){return!0};function Qo(t,e){t.Jd&&t.canStart(e)&&(t.Zd.add(e),t.defaultAnimation.isAnimating&&t.Cc(),Ds(t.H),t.zb=!0)}function Ka(t){if(t.Jd&&t.zb){var e=t.ce,n=t.H,i=t.Zd.contains("Model");i&&(t.Ok=!0,t.Pk===Fn?(e.isViewportUnconstrained=!0,e.vc.clear(),e.add(n,"position",n.position.copy().offset(0,-200),n.position),e.add(n,"opacity",0,1)):t.Pk===vr&&e.vc.clear(),t.Qw=!!(t.Pk===zi&&n.du.D(n.pa)),n.R("InitialAnimationStarting",t)),i&&!t.Gh||e.vc.count===0?(t.Zd.clear(),t.zb=!1,e.vc.clear(),oi(e,n),t.Ok=!1,n.N()):(t.Zd.clear(),n.kg=!1,i=e.vc.get(n),n.autoScale!==Qs&&i!==null&&(delete i.start.scale,delete i.end.scale),sn.requestAnimationFrame(function(){t.zb===!1||e.bc||(n.Gf("temporaryPixelRatio")&&Ca(n),Pf(n),t.zb=!1,e.start(),e.bc&&(al(t),n.Ya(),bl(e,0),Sl(n,!0),pu(t),n.R("AnimationStarting",t)))}))}}function Gs(t){return t.Zd.contains("Trigger")&&t.Zd.count===1}function Dl(t,e,n,i){t.isTicking||Gs(t)||e instanceof Pe&&(e.fromNode!==null||e.toNode!==null)||t.ce.add(e,"position",n,i,!1)}A=Os.prototype,A.fv=function(t){return this.ce.fv(t)},A.Xu=function(t){return this.ce.Xu(t)};function Jl(t,e){function n(){if(0<r.Sr.count&&(i.addAll(r.Sr),r.Sr.clear(),r.bc=!0),r.bc!==!1&&i.count!==0){r.pu.addAll(i);for(var o=r.pu.iterator;o.next();){var s=o.value;if(s.bc!==!1){t:if(0<s.yl.count)var l=!0;else{for(l=s.vc.iterator;l.next();){var u=l.key;if(u instanceof Rt&&u.diagram!==null||u instanceof Kt){l=!0;break t}}l=!1}l?Bo(s,!1):s.Xk=!0}}r.pu.clear(),r.bc!==!1&&(al(r),Sl(r.H),pu(r)),sn.requestAnimationFrame(n)}}var i=t.Ei,r=t;t.bc?t.Sr.add(e):(t.bc=!0,i.add(e),sn.requestAnimationFrame(function(){n()}))}function bc(t){for(t=t.Ei.iterator;t.next();)t.value.Xk=!1}function al(t){if(!t.vq){var e=t.H;t.Ow=e.skipsUndoManager,t.cw=e.skipsModelSourceBindings,e.skipsUndoManager=!0,e.skipsModelSourceBindings=!0,t.vq=!0}}function pu(t){var e=t.H;e.skipsUndoManager=t.Ow,e.skipsModelSourceBindings=t.cw,t.vq=!1}A.Cc=function(t){var e=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<e.vc.count&&this.H.$b()),this.bc){if(e.Ml(!0),e.vc.clear(),oi(e,null),t===!0)for(t=this.Ei.Fa(),e=0;e<t.length;e++)t[e].Ml(!0)}else e.vc.clear(),oi(e,this.H)},A.Ml=function(t){t===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(t),this.Ei.count===0&&(this.bc=!1,this.H.$b()),t===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},A.Cj=function(t,e){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(t,e),g(this,t))},A.Aj=function(t,e){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(t,e),kr(this.ce,e,"position",e.position,e.position),g(this,t))};function Yc(t,e,n){!t.zb||e.D(n)||Gs(t)||(t.H.pi||(e=n.copy()),kr(t.ce,t.H,"position",e,n))}function h(t,e,n){e.fd&&(e.Tg=n,t.pr.add(e))}function g(t,e){for(e=e.findLinksConnected();e.next();){var n=e.value;n.fd&&(n.Tg=n.points.copy(),t.pr.add(n))}}function B(t,e,n,i,r){t===null&&(t=[0,0,0,0]),e===null&&(e=[0,0,0,0]);var o=t[0],s=t[1],l=t[2];t=t[3];var u=e[0],d=e[1],f=e[2];return e=e[3],l===0||l===100?(o=u,s=d):(f===0||f===100)&&(u=o,d=s),180<Math.abs(u-o)&&(u>o?o+=360:u+=360),o=r(n,o,u-o,i)%360,s=r(n,s,d-s,i),l=r(n,l,f-l,i),n=r(n,t,e-t,i),"hsla("+o+", "+s+"%, "+l+"%, "+n+")"}function Lt(){function t(n,i,r,o,s,l){n.position=new z(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}var e=new Zt;e.add("position:diagram",t),e.add("position",t),e.add("position:part",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!1):n.position=new z(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),e.add("location",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!0):n.location=new z(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),e.add("position:placeholder",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!1):n.position=new z(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),e.add("position:nodeCollapse",function(n,i,r,o,s,l){var u=n.actualBounds,d=r.actualBounds;r=d.x+d.width/2-u.width/2,u=d.y+d.height/2-u.height/2,s<l?n.mm(o(s,i.x,r-i.x,l),o(s,i.y,u-i.y,l),!1):n.position=new z(o(s,i.x,r-i.x,l),o(s,i.y,u-i.y,l))}),e.add("desiredSize",function(n,i,r,o,s,l){n.desiredSize=new Xt(o(s,i.width,r.width-i.width,l),o(s,i.height,r.height-i.height,l))}),e.add("width",function(n,i,r,o,s,l){n.width=o(s,i,r-i,l)}),e.add("height",function(n,i,r,o,s,l){n.height=o(s,i,r-i,l)}),e.add("fill",function(n,i,r,o,s,l){n.fill=B(i,r,s,l,o)}),e.add("stroke",function(n,i,r,o,s,l){n.stroke=B(i,r,s,l,o)}),e.add("strokeWidth",function(n,i,r,o,s,l){n.strokeWidth=o(s,i,r-i,l)}),e.add("strokeDashOffset",function(n,i,r,o,s,l){n.strokeDashOffset=o(s,i,r-i,l)}),e.add("background",function(n,i,r,o,s,l){n.background=B(i,r,s,l,o)}),e.add("areaBackground",function(n,i,r,o,s,l){n.areaBackground=B(i,r,s,l,o)}),e.add("opacity",function(n,i,r,o,s,l){n.opacity=o(s,i,r-i,l)}),e.add("scale",function(n,i,r,o,s,l){n.scale=o(s,i,r-i,l)}),e.add("angle",function(n,i,r,o,s,l){n.angle=o(s,i,r-i,l)}),Se=e}Mn.Object.defineProperties(Os.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(t){(this.Jd=t)&&this.Ei.each(function(e){e.isAnimating||e.runCount!==1/0||e.start()})}},duration:{get:function(){return this.Dg},set:function(t){1>t&&rn(t,">= 1",Os,"duration"),this.Dg=t}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(t){this.Gh=t}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(t){this.Pk=t}}}),Os.prototype.stopAnimation=Os.prototype.Cc;var Se=null,fn=!1,Fn=new xe(Os,"Default",1),zi=new xe(Os,"AnimateLocations",2),vr=new xe(Os,"None",3);Os.className="AnimationManager",Os.defineAnimationEffect=function(t,e){fn||(Lt(),fn=!0),Se.add(t,e)},Os.Default=Fn,Os.AnimateLocations=zi,Os.None=vr;function ln(t){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=Pl,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Xe,this.vc=new Zt,this.Tt=new Zt,this.yl=new Ce,this.Ut=new Ce,this.dw=Tc,t&&Object.assign(this,t)}ln.prototype.suspend=function(){this.Xk=!0},ln.prototype.advanceTo=function(t,e){e&&(this.Xk=!1),this.ho&&t>=this.Gd&&(this.Wk=!0,t-=this.Gd),this.gw=t,Bo(this,!0),al(this.Yd),Sl(this.H),pu(this.Yd),this.H.redraw()};function oi(t,e){if(t.Tt.clear(),t.Wk=!1,t.au=0,t.Gd=NaN,0<t.yl.count&&t.yl.clear(),0<t.Ut.count&&t.Ut.clear(),e!==null)for(t=e.links;t.next();)t.value.Tg=null}A=ln.prototype,A.start=function(){if(this.vc.count===0||this.bc)return this;for(var t=this.H,e=this.vc.iterator;e.next();){var n=e.key;t===null&&(n instanceof Kt?t=n:n instanceof Rt&&(t=n.diagram))}if(t!==null)this.H=t,this.Yd=t.animationManager;else return this;return e=this.Yd,e.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?e.duration:this.Dg,this.Lp=this.ot,e.Ok&&e.Pk===Fn&&this===e.defaultAnimation&&(this.Lp=gu,this.Gd=isNaN(this.Dg)?e.duration===600?900:e.duration:this.Dg),this.dw=t.scrollMode,this.isViewportUnconstrained&&(t.sj=sd),al(e),this.yl.each(function(i){i.data=null,t.add(i)}),pu(e),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Jl(e,this),this)},A.Iy=function(t,e){return t.Zc()?(this.yl.add(t),this.H=e,this):this},A.add=function(t,e,n,i,r){if(e==="position"&&n.Xa(i))return this;if(this.H===null&&(t instanceof Kt?this.H=t:t instanceof Rt&&t.diagram!==null&&(this.H=t.diagram)),t instanceof Rn){if(!t.isAnimated)return this;e==="position"&&(e="position:part")}return kr(this,t,e,n,i,r),this};function kr(t,e,n,i,r,o){var s=t.vc;if(e instanceof Kt&&n==="position"&&(n="position:diagram"),(n==="fill"||n==="stroke"||n==="background"||n==="areaBackground")&&(sc(i),g0(),i=[dl.j,dl.u,dl.o,dl.F],sc(r),g0(),r=[dl.j,dl.u,dl.o,dl.F]),s.contains(e)){var l=s.I(e),u=l.start,d=l.end;u[n]===void 0&&(u[n]=lo(i)),d[n]=lo(r)}else u={},d={},u[n]=lo(i),d[n]=lo(r),l=u.position,e instanceof Rt&&l instanceof z&&!l.w()&&e.diagram.animationManager.Zd.contains("Expand SubGraph")&&l.assign(d.position),l=new ql(u,d,o),s.add(e,l);s=u[n],s instanceof z&&!s.w()&&s.assign(t.o),o&&n.indexOf("position:")===0&&e instanceof Rn?l.Ku.location=lo(e.location):o&&(l.Ku[n]=lo(i))}function lo(t){return t instanceof z||t instanceof Je?t.copy():t}A.fv=function(t){return this.bc?(t=this.vc.I(t),t!==null&&t.nv):!1},A.Xu=function(t){return this.bc?(t=this.vc.I(t),t!==null&&(t.start.position||t.start.location)):!1};function Bo(t,e){if(!t.Xk||e){var n=t.Yd;if(t.bc!==!1){var i=+new Date,r=i>t.cn?t.Gd:i-t.Qd;e&&(r=t.gw,r<t.Gd?(t.Qd=+new Date-r,t.cn=t.Qd+t.Gd):r=t.Gd),al(n),bl(t,r),Sl(t.H,!0),pu(n),i>t.cn&&(t.ho&&!t.Wk?(t.Qd=+new Date,t.cn=t.Qd+t.Gd,t.Wk=!0):t.Ml(!1))}}}function bl(t,e){for(var n=t.Gd,i=t.vc.iterator,r=t.Wk;i.next();){var o=i.key;if(!(o instanceof Rt&&o.diagram===null)){var s=i.value,l=r?s.end:s.start;s=r?s.start:s.end;var u=Se,d;for(d in s)d==="position"&&(s["position:placeholder"]||s["position:nodeCollapse"])||u.get(d)===null||u.get(d)(o,l[d],s[d],t.Lp,e,n,t)}}}A.stop=function(){return this.bc?(this.Ml(!0),this):this},A.Ml=function(t){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var e=this.H,n=this.Yd;this.Xk=this.bc=n.Ok=!1,al(n);for(var i=this.vc,r=this.yl.iterator;r.next();)e.remove(r.value);for(r=this.Ut.iterator;r.next();)r.value.v();r=this.ho,i=i.iterator;for(var o=Se;i.next();){var s=i.key,l=i.value,u=r?l.end:l.start,d=r?l.start:l.end,f=l.Ku,y;for(y in d)if(o.get(y)!==null){var T=y;!l.Hu||T!=="position:nodeCollapse"&&T!=="position:placeholder"||(T="position"),o.get(T)(s,u[y],f[y]!==void 0?f[y]:l.Hu?u[y]:d[y],this.Lp,this.Gd,this.Gd,this)}l.Hu&&f.location!==void 0&&s instanceof Rn&&(s.location=f.location),l.nv&&s instanceof Rn&&s.Zb(!1)}if(e.As.clear(),td(e,!1),e.Ya(),e.N(),Sl(e,!0),n.defaultAnimation===this){for(y=n.pr.iterator;y.next();)r=y.value,r.Tg!==null&&(r.points=r.Tg,r.Tg=null);n.pr.clear()}Sl(e,!0),this.isViewportUnconstrained&&(e.scrollMode=this.dw),pu(n),this.au++,!t&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),oi(this,null),n.Ml(this),e.$b())}},A.Cj=function(t,e){var n=e.actualBounds,i=null;if(e instanceof Jn&&(i=e.placeholder),i!==null?(n=i.ga(vi),i=i.padding,n.x+=i.left,n.y+=i.top,this.add(t,"position",n,t.position,!1)):this.add(t,"position",new z(n.x+n.width/2,n.y+n.height/2),t.position,!1),this.add(t,"scale",.01,t.scale,!1),t instanceof Jn)for(t=t.memberParts;t.next();)i=t.value,i instanceof tn&&this.Cj(i,e)},A.Aj=function(t,e){if(t.isVisible()){var n=null;if(e instanceof Jn&&(n=e.placeholder),n!==null){var i=n.ga(vi);n=n.padding,i.x+=n.left,i.y+=n.top,this.add(t,"position:placeholder",t.position,i,!0)}else this.add(t,"position:nodeCollapse",t.position,e,!0);if(this.add(t,"scale",t.scale,.01,!0),i=this.vc,i.contains(t)&&(i.I(t).nv=!0),t instanceof Jn)for(t=t.memberParts;t.next();)i=t.value,i instanceof tn&&this.Aj(i,e)}},A.Ez=function(t){var e=this.Tt.get(t);return e===null&&(e={},this.Tt.add(t,e)),e},Mn.Object.defineProperties(ln.prototype,{duration:{get:function(){return this.Dg},set:function(t){1>t&&rn(t,">= 1",ln,"duration"),this.Dg=t}},reversible:{get:function(){return this.ho},set:function(t){this.ho=t}},runCount:{get:function(){return this.cu},set:function(t){0<t?this.cu=t:Et("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(t){this.dn!==t&&(this.dn=t)}},easing:{get:function(){return this.ot},set:function(t){this.ot=t}},isViewportUnconstrained:{get:function(){return this.j},set:function(t){this.j=t}},isAnimating:{get:function(){return this.bc}}}),ln.prototype.getTemporaryState=ln.prototype.Ez,ln.prototype.stop=ln.prototype.stop,ln.prototype.add=ln.prototype.add,ln.prototype.addTemporaryPart=ln.prototype.Iy;function Pl(t,e,n,i){return t/=i/2,1>t?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e}function gu(t,e,n,i){return t===i?e+n:n*(-Math.pow(2,-10*t/i)+1)+e}ln.className="Animation",ln.EaseLinear=function(t,e,n,i){return n*t/i+e},ln.EaseInOutQuad=Pl,ln.EaseInQuad=function(t,e,n,i){return n*(t/=i)*t+e},ln.EaseOutQuad=function(t,e,n,i){return-n*(t/=i)*(t-2)+e},ln.EaseInExpo=function(t,e,n,i){return t===0?e:n*Math.pow(2,10*(t/i-1))+e},ln.EaseOutExpo=gu;function ql(t,e,n){this.start=t,this.end=e,this.Ku={},this.Hu=n,this.nv=!1}ql.className="AnimationState";function wa(t,e,n){this.xd=null,this.rf=t,this.so=n||Bu,this.uk=null,e!==void 0&&(this.uk=e,n===void 0&&(this.so=Za))}wa.prototype.copy=function(){var t=new wa(this.rf);t.so=this.so;var e=this.uk;if(e!==null){var n={};e.duration!==void 0&&(n.duration=e.duration),e.finished!==void 0&&(n.finished=e.finished),e.easing!==void 0&&(n.easing=e.easing),t.uk=n}return t};function ll(t,e){t=t.uk,t!==null&&(t.duration&&(e.duration=t.duration),t.finished&&(e.finished=t.finished),t.easing&&(e.easing=t.easing))}Mn.Object.defineProperties(wa.prototype,{propertyName:{get:function(){return this.rf},set:function(t){this.rf=t}},animationSettings:{get:function(){return this.uk},set:function(t){this.uk=t}},startCondition:{get:function(){return this.so},set:function(t){this.so=t}}});var Bu=new xe(wa,"Default",1),Za=new xe(wa,"Immediate",2),Ch=new xe(wa,"Bundled",3);wa.className="AnimationTrigger",wa.Default=Bu,wa.Immediate=Za,wa.Bundled=Ch;function ms(t){Gn(this),this.H=null,this.Pa=new Te,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=[],t&&Object.assign(this,t)}A=ms.prototype,A.clear=function(){for(var t=this.Pa,e=0;e<t.length;e++){var n=t.s[e];n.Ig=null,Ys(n)}t.clear(),this.Zq.length=0},A.Xe=function(t){this.H=t},A.toString=function(t){t===void 0&&(t=0);var e='Layer "'+this.name+'"';if(0>=t)return e;for(var n=0,i=0,r=0,o=0,s=0,l=this.Pa.iterator;l.next();){var u=l.value;u instanceof Jn?r++:u instanceof tn?i++:u instanceof Pe?o++:u instanceof Vi?s++:n++}if(l="",0<n&&(l+=n+" Parts "),0<i&&(l+=i+" Nodes "),0<r&&(l+=r+" Groups "),0<o&&(l+=o+" Links "),0<s&&(l+=s+" Adornments "),1<t)for(t=this.Pa.iterator;t.next();)n=t.value,l+=`
|
|
|
`+n.toString(),i=n.data,i!==null&&gi(i)&&(l+=" #"+gi(i)),n instanceof tn?l+=" "+li(i):n instanceof Pe&&(l+=" "+li(n.fromNode)+" "+li(n.toNode));return e+" "+this.Pa.count+": "+l},A.ic=function(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),this.Uh===!1)return null;var i=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(t)&&(i=!0);for(var r=z.alloc(),o=this.Pa.s,s=o.length;s--;){var l=o[s];if((i!==!0||nh(l)!==!1)&&l.isVisible()&&(r.assign(t),He(r,l.oe),l=l.ic(r,e,n),l!==null&&(e!==null&&(l=e(l)),l!==null&&(n===null||n(l)))))return z.free(r),l}return z.free(r),null},A.ji=function(t,e,n,i){if(e===void 0&&(e=null),n===void 0&&(n=null),i instanceof Te||i instanceof Ce||(i=new Ce),this.Uh===!1)return i;var r=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(t)&&(r=!0);for(var o=z.alloc(),s=this.Pa.s,l=s.length;l--;){var u=s[l];if((r!==!0||nh(u)!==!1)&&u.isVisible()){o.assign(t),He(o,u.oe);var d=u;u.ji(o,e,n,i)&&(e!==null&&(d=e(d)),d===null||n!==null&&!n(d)||i.add(d))}}return z.free(o),i},A.Cf=function(t,e,n,i,r){if(e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Te||r instanceof Ce||(r=new Ce),this.Uh===!1)return r;var o=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(t)&&(o=!0);for(var s=this.Pa.s,l=s.length;l--;){var u=s[l];if((o!==!0||nh(u)!==!1)&&u.isVisible()){var d=u;u.Cf(t,e,n,i,r)&&(e!==null&&(d=e(d)),d===null||n!==null&&!n(d)||r.add(d))}}return r},A.Nu=function(t,e,n,i,r,o,s){if(this.Uh===!1)return r;for(var l=this.Pa.s,u=l.length;u--;){var d=l[u];if((s!==!0||nh(d)!==!1)&&o(d)&&d.isVisible()){var f=d;d.Cf(t,e,n,i,r)&&(e!==null&&(f=e(f)),f===null||n!==null&&!n(f)||r.add(f))}}return r},A.og=function(t,e,n,i,r,o){if(n===void 0&&(n=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Te||r instanceof Ce)&&(o=r),r=!0),o instanceof Te||o instanceof Ce||(o=new Ce),this.Uh===!1)return o;var s=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(t)&&(s=!0);for(var l=z.alloc(),u=z.alloc(),d=this.Pa.s,f=d.length;f--;){var y=d[f];if((s!==!0||nh(y)!==!1)&&y.isVisible()){l.assign(t),He(l,y.oe),u.h(t.x+e,t.y),He(u,y.oe);var T=y;y.og(l,u,n,i,r,o)&&(n!==null&&(T=n(T)),T===null||i!==null&&!i(T)||o.add(T))}}return z.free(l),z.free(u),o},A.Fd=function(t,e){if(this.visible){var n=this.Pa.s,i=n.length;if(i!==0){t=bn();for(var r=bn(),o=0;o<i;o++){var s=n[o];if(s.vw=o,s instanceof Pe){if(s.fd===!1)continue}else if(s instanceof Vi&&s.adornedPart!==null)continue;var l=s.actualBounds;s.isVisible()&&ee(l,e)?(s.Fd(!0),t.push(s)):(s.Fd(!1),s.adornments!==null&&0<s.adornments.count&&r.push(s))}for(e=0;e<t.length;e++)for(n=t[e],V0(n),n=n.adornments;n.next();)i=n.value,i.measure(1/0,1/0),i.arrange(),i.Fd(!0);for(e=0;e<r.length;e++)V0(r[e]);En(t),En(r)}}};function ic(t,e){var n=1;return t.pb!==1&&(n=e.globalAlpha,e.globalAlpha=n*t.pb),n}A.gc=function(t,e,n){if(this.visible&&this.pb!==0&&(n===void 0&&(n=!0),n||!this.isTemporary)){n=this.Pa.s;var i=n.length;if(i!==0){if(t.isTemporary)for(var r=0;r<i;r++)n[r].Gj();r=ic(this,t);var o=this.Zq;o.length=0;for(var s=e.scale,l=Xt.alloc(),u=0;u<i;u++)this.Oj(t,n[u],e,o,s,l,!0);if(Xt.free(l),t.isTemporary)for(e=0;e<i;e++)n[e].Gj();t.globalAlpha=r}}};function ng(t,e,n,i,r){if(t.visible&&t.pb!==0&&(r||!t.isTemporary)){r=t.Pa.s;var o=r.length;if(o!==0){var s=ic(t,e),l=t.Zq;l.length=0;for(var u=n.scale,d=Xt.alloc(),f=0;f<o;f++){var y=r[f];i.contains(y)&&t.Oj(e,y,n,l,u,d,!1)}Xt.free(d),e.globalAlpha=s}}}A.Oj=function(t,e,n,i,r,o,s){if(s&&!nh(e))t.Hs(e);else{if(i!==null&&e instanceof Pe&&(e.isOrthogonal&&i.push(e),e.fd===!1)){t.Hs(e);return}for(s=!1,i=e.containingGroup;i!==null;)s?i.tb!==null&&o.Ex(i.tb):i.tb!==null&&(s=!0,o.assign(i.tb)),i=i.containingGroup;var l=e.actualBounds;if(i=!1,s&&e.isVisible()){if(!o.Yc(l)){t.Hs(e);return}i=!o.Re(l)}i&&(t.save(),t instanceof $a?t.bk=o.copy():(t.beginPath(),t.rect(o.x,o.y,o.width,o.height),t.clip())),l.width*r>n.Oq||l.height*r>n.Oq?e.gc(t,n):(r=e.actualBounds,o=e.naturalBounds,r.width===0||r.height===0||isNaN(r.x)||isNaN(r.y)||!e.isVisible()||(n=e.transform,e.areaBackground!==null&&(yo(e,t,e.areaBackground,!0,!0,o,r),t.fillRect(r.x,r.y,r.width,r.height)),e.areaBackground===null&&e.background===null&&(yo(e,t,"rgba(0,0,0,0.3)",!0,!1,o,r),t.fillRect(r.x,r.y,r.width,r.height)),e.background!==null&&(t.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),yo(e,t,e.background,!0,!1,o,r),t.fillRect(0,0,o.width/2,o.height/2),n.ws()||(e=1/(n.m11*n.m22-n.m12*n.m21),t.transform(n.m22*e,-n.m12*e,-n.m21*e,n.m11*e,e*(n.m21*n.dy-n.m22*n.dx),e*(n.m12*n.dx-n.m11*n.dy)))))),i&&(t.restore(),t.Vc(!0))}},A.g=function(t,e,n,i,r){var o=this.diagram;o!==null&&o.cb(_r,t,this,e,n,i,r)},A.oi=function(t,e,n){var i=this.Pa;if(e.Ig=this,this===null&&Ys(e),t>=i.count)t=i.count;else if(i.M(t)===e)return-1;return i.Gb(t,e),e.Vo(n),i=this.diagram,i!==null&&(n?i.N():i.oi(e)),Od(this,t,e),t},A.pc=function(t,e,n){if(!n&&e.layer!==this&&e.layer!==null)return e.layer.pc(t,e,n);var i=this.Pa;if(0>t||t>=i.length){if(t=i.indexOf(e),0>t)return-1}else if(i.M(t)!==e&&(t=i.indexOf(e),0>t))return-1;return e.Wo(n),i.mb(t),i=this.diagram,i!==null&&(n?i.N():i.pc(e)),e.Ig=null,Ys(e),t};function Od(t,e,n){if(e=ig(t,e,n),n instanceof Jn&&n!==null&&isNaN(n.zOrder)){if(n.memberParts.count!==0){for(var i=-1,r=t.Pa.s,o=r.length,s=0;s<o;s++){var l=r[s];if(l===n&&(e=s,0<=i)||0>i&&l.containingGroup===n&&(i=s,0<=e))break}!(0>i)&&i<e&&(r=t.Pa,r.mb(e),r.Gb(i,n))}e=n.containingGroup,e!==null&&Od(t,-1,e)}n.svg!==null&&n.svg.remove()}function ig(t,e,n){var i=n.zOrder;if(isNaN(i))return e;t=t.Pa;var r=t.count;if(1>=r)return e;if(0>e&&(e=t.indexOf(n)),0>e)return-1;for(var o=e-1,s=NaN;0<=o&&(s=t.M(o).zOrder,!!isNaN(s));)o--;for(var l=e+1,u=NaN;l<r&&(u=t.M(l).zOrder,!!isNaN(u));)l++;if(!isNaN(s)&&s>i)for(;;){if(o===-1||s<=i){if(o++,o===e)break;return t.mb(e),t.Gb(o,n),o}for(s=NaN;0<=--o&&(s=t.M(o).zOrder,isNaN(s)););}else if(!isNaN(u)&&u<i)for(;;){if(l===r||u>=i){if(l--,l===e)break;return t.mb(e),t.Gb(l,n),l}for(u=NaN;++l<r&&(u=t.M(l).zOrder,isNaN(u)););}return e}Mn.Object.defineProperties(ms.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(t){var e=this.xa;if(e!==t){var n=this.diagram;if(n!==null)for(e===""&&Et("Cannot rename default Layer to: "+t),n=n.layers;n.next();)n.value.name===t&&Et("Layer.name is already present in this diagram: "+t);for(this.xa=t,this.g("name",e,t),t=this.Pa.iterator;t.next();)t.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(t){var e=this.pb;e!==t&&((0>t||1<t)&&rn(t,"0 <= value <= 1",ms,"opacity"),this.pb=t,this.g("opacity",e,t),t=this.diagram,t!==null&&t.N())}},isTemporary:{get:function(){return this.o},set:function(t){var e=this.o;e!==t&&((this.o=t)&&(this.isInDocumentBounds=!1),this.g("isTemporary",e,t))}},visible:{get:function(){return this.u},set:function(t){var e=this.u;if(e!==t){for(this.u=t,this.g("visible",e,t),e=this.Pa.iterator;e.next();)e.value.Zb(t);t=this.diagram,t!==null&&t.N()}}},pickable:{get:function(){return this.Uh},set:function(t){var e=this.Uh;e!==t&&(this.Uh=t,this.g("pickable",e,t))}},isInDocumentBounds:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(t){var e=this.Fi;e!==t&&(this.Fi=t,this.g("allowCopy",e,t))}},allowDelete:{get:function(){return this.Gi},set:function(t){var e=this.Gi;e!==t&&(this.Gi=t,this.g("allowDelete",e,t))}},allowTextEdit:{get:function(){return this.Pi},set:function(t){var e=this.Pi;e!==t&&(this.Pi=t,this.g("allowTextEdit",e,t))}},allowGroup:{get:function(){return this.Hi},set:function(t){var e=this.Hi;e!==t&&(this.Hi=t,this.g("allowGroup",e,t))}},allowUngroup:{get:function(){return this.Qi},set:function(t){var e=this.Qi;e!==t&&(this.Qi=t,this.g("allowUngroup",e,t))}},allowLink:{get:function(){return this.Ii},set:function(t){var e=this.Ii;e!==t&&(this.Ii=t,this.g("allowLink",e,t))}},allowRelink:{get:function(){return this.Ki},set:function(t){var e=this.Ki;e!==t&&(this.Ki=t,this.g("allowRelink",e,t))}},allowMove:{get:function(){return this.Ji},set:function(t){var e=this.Ji;e!==t&&(this.Ji=t,this.g("allowMove",e,t))}},allowReshape:{get:function(){return this.Li},set:function(t){var e=this.Li;e!==t&&(this.Li=t,this.g("allowReshape",e,t))}},allowResize:{get:function(){return this.Mi},set:function(t){var e=this.Mi;e!==t&&(this.Mi=t,this.g("allowResize",e,t))}},allowRotate:{get:function(){return this.Ni},set:function(t){var e=this.Ni;e!==t&&(this.Ni=t,this.g("allowRotate",e,t))}},allowSelect:{get:function(){return this.Oi},set:function(t){var e=this.Oi;e!==t&&(this.Oi=t,this.g("allowSelect",e,t))}}}),ms.prototype.findObjectsNear=ms.prototype.og,ms.prototype.findObjectsIn=ms.prototype.Cf,ms.prototype.findObjectsAt=ms.prototype.ji,ms.prototype.findObjectAt=ms.prototype.ic,ms.className="Layer";function Kt(t,e){if(vg||(Vs(),vg=!0),Gn(this),Uu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,vo){var n=this,i=function(){n.removeEventListener(sn.document,"DOMContentLoaded",i,!1),n.setRTL()};sn.document.body!==null?this.setRTL():n.addEventListener(sn.document,"DOMContentLoaded",i,!1)}this.ol=null,Vd.add("Model",hr);var r=this;return this.Hb=function(o){var s=r.partManager;if(o.model===s.diagram.model&&s.diagram.aa){s.diagram.aa=!1;try{var l=o.change;o.modelChange===""&&l===_r&&s.updateDataBindings(o.object,o.propertyName)}finally{s.diagram.aa=!0}}},this.Oc=function(o){r.partManager.doModelChanged(o)},this.hu=this.ku=null,rg(this),this.model=xv(),this.Wg=!0,sg(this),this.layout=new oo,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 yg,t!==void 0&&(typeof t=="string"||sn.Element&&t instanceof Element?Df(this,t):e=t),this.vb=!1,e&&this.nm(e),this}var Kc,Uu;function rg(t){t.Yd=new Os,t.Yd.Xe(t),t.Db=17,t.Gw=!1,t.tn=!1,t.bu="default",t.Wa=new Te,t.pj=new Zt,t.nl="default",t.Tx(),t.Sx(),t.pb=1,t.pa=new z(NaN,NaN).freeze(),t.du=new z(NaN,NaN),t.Ca=1,t.Pp=1,t.zt=new z(NaN,NaN).freeze(),t.At=NaN,t.Ot=1e-4,t.Mt=100,t.Ab=new jn,t.zu=new z(NaN,NaN).freeze(),t.ut=new Xt(NaN,NaN,NaN,NaN).freeze(),t.rj=new ii(0,0,0,0).freeze(),t.sj=Tc,t.nu=!1,t.Zt=null,t.fu=null,t.yh=Qs,t.zk=_o,t.Fg=Qs,t.pq=_o,t.yt=vi,t.Bt=vi,t.Fc=!0,t.pn=!1,t.De=new Ce,t.Eh=new Zt,t.Xm=!0,t.vp=250,t.vk=-1,t.xp=new ii(16,16,16,16).freeze(),t.kg=!1,t.Jk=!1,t.fn=!0,t.bq=new es,t.bq.diagram=t,t.Qg=new es,t.Qg.diagram=t,t.cj=new es,t.cj.diagram=t,t.zg=null,t.pf=null,t.qu=!1,c0(t),t.ai=new Ce,t.Ht=!0,t.uu=wc,t.pw=!1,t.wu=od,t.it="auto",t.Op="auto",t.zh=null,t.Fh=null,t.Bh=null,t.Qh=null,t.Oh=null,t.Nh=null,t.Qt=null,t.Lh=null,t.xt=!1,t.Mh=null,t.Ph=null,t.$h=null,t.Ch=null,t.Rt=!1,t.Yt={},t.oj=[null,null],t.Wg=!1,t.Iw=!1,t.ou=!1,t.lt=!1,t.rw=!0,t.ld=!1,t.$i=!1,t.Tw=!0,t.Ce=-2,t.Og=new Zt,t.Xn=new Te,t.Gg=!1,t.Jd=!0,t.Us=!0,t.Fi=!0,t.Gi=!0,t.Vs=!1,t.Ws=!0,t.Pi=!0,t.Hi=!0,t.Qi=!0,t.Ys=!0,t.Ii=!0,t.Ki=!0,t.Ji=!0,t.Li=!0,t.Mi=!0,t.Ni=!0,t.Oi=!0,t.Zs=!0,t.at=!0,t.qw=!1,t.Vk=!1,t.mn=!0,t.nn=!0,t.Xs=!0,t.$s=!0,t.iu=16,t.mu=16,t.qr=!1,t.gu=!1,t.lu=0,t.ju=0,t.yb=new ii(5).freeze(),t.Hw=new Ce().freeze(),t.Nt=999999999,t.nw=new Ce().freeze(),t.Zi=!0,t.Ee=!0,t.vd=!0,t.Be=!1,t.gf=!1,t.xh=!0,t.hf=!1,t.sy=new Ce,t.ow=new Ce,t.Xh=null,t.aw=new Je(8,8),t.bw=999,t.Bw=1,t.Jw=0,t.fc={scale:1,position:new z,bounds:new Xt,Py:new Je,bA:new Je,Oz:!1},t.fc.canvasSize=t.fc.Py,t.fc.newCanvasSize=t.fc.bA,t.fc.isScroll=!1,t.Rw=new Xt(NaN,NaN,NaN,NaN).freeze(),t.wo=new Je(NaN,NaN).freeze(),t.Sp=new Xt(NaN,NaN,NaN,NaN).freeze(),t.It=!1,t.Lg=new Zt;var e=new tn,n=new zr;n.bind(new Oo("text","",li)),e.add(n),t.ny=e,t.Lg.add("",e),e=new tn,n=new zr,n.stroke="brown",n.bind(new Oo("text","",li)),e.add(n),t.Lg.add("Comment",e),e=new tn,e.selectable=!1,e.avoidable=!1,n=new ai,n.figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new Je(3,3).ja(),e.add(n),t.Lg.add("LinkLabel",e),t.Yi=new Zt,e=new Jn,e.selectionObjectName="GROUPPANEL",e.type=Re.Vertical,n=new zr,n.font="bold 12pt sans-serif",n.bind(new Oo("text","",li)),e.add(n),n=new Re(Re.Auto),n.name="GROUPPANEL";var i=new ai;i.figure="Rectangle",i.fill="rgba(128,128,128,0.2)",i.stroke="black",n.add(i),i=new ha,i.padding=new ii(5,5,5,5).ja(),n.add(i),e.add(n),t.ly=e,t.Yi.add("",e),t.Kh=new Zt,e=new Pe,n=new ai,n.isPanelMain=!0,e.add(n),n=new ai,n.toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,e.add(n),t.my=e,t.Kh.add("",e),e=new Pe,n=new ai,n.isPanelMain=!0,n.stroke="brown",e.add(n),t.Kh.add("Comment",e),e=new Vi,e.type=Re.Auto,n=new ai,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,e.add(n),n=new ha,n.margin=new ii(1.5,1.5,1.5,1.5).ja(),e.add(n),t.St=e,t.wt=e,e=new Vi,e.type=Re.Link,n=new ai,n.isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,e.add(n),t.Kt=e,t.fe=null,t.mq=!1,t.Ck=null,t.partManager=new hr,t.toolManager=new Dr,t.toolManager.initializeStandardTools(),t.defaultTool=t.toolManager,t.currentTool=t.defaultTool,t.nt=null,t.Wm=new c,t.Vt=null,t.Wt=null,t.Mr=!1,t.commandHandler=og(),t.eq=null,t.fq=mn,t.Pw=!1,t.Mb=1,t.Yh=null,t.Oq=1,t.Sq=0,t.zw=[0,0,0,0,0],t.Tq=0,t.yq=1,t.tw=0,t.uw=new z,t.zy=500,t.wp=new z,t.wq=!1}Kt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Mh=null,Jc="",Of(this,!1),this.Xn.clear(),rf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Of(t,e){t.animationManager.Cc(!0),t.Hw=new Ce().freeze(),t.nw=new Ce().freeze();var n=t.skipsUndoManager,i=t.cc!==null&&t.cc!==void 0;i&&(t.skipsUndoManager=!0);var r=null;t.fe!==null&&(r=t.fe.part,r!==null&&t.remove(r));var o=[],s=t.Wa.length;if(e){for(e=0;e<s;e++)for(var l=t.Wa.s[e].parts;l.next();){var u=l.value;u!==r&&u.data===null&&o.push(u)}for(e=0;e<o.length;e++)t.remove(o[e])}for(e=0;e<s;e++)t.Wa.s[e].clear();return t.partManager.clear(),t.De.clear(),t.Eh.clear(),t.ai.clear(),t.Ck=null,t.Xn.clear(),rf(),t.Og.clear(),Ir=[],r!==null&&(t.add(r),t.partManager.parts.remove(r)),i&&(t.skipsUndoManager=n),o}function og(){return null}Kt.prototype.reset=function(){this.clear(),this.vb=!0,rg(this),Au(this),this.Wg=!0,sg(this),this.layout=new oo,this.Wg=!1,this.model=xv(),this.model.undoManager=new Tr,this.vb=this.rn=!1,this.N()},Kt.prototype.setRTL=function(t){t=t===void 0?this.div:t,t===null&&(t=sn.document.body);var e=Nr("div");e.dir="rtl",e.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",e.textContent="A",t.appendChild(e);var n="reverse";0<e.scrollLeft?n="default":(e.scrollLeft=1,e.scrollLeft===0&&(n="negative")),t.removeChild(e),this.bu=n},Kt.prototype.setScrollWidth=function(t){t=t===void 0?this.div:t,t===null&&(t=sn.document.body);var e=0;if(vo){var n=mg;e=Kc,n===null&&(n=mg=Nr("p"),n.style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",e=Kc=Nr("div"),e.style.position="absolute",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.boxSizing="content-box",e.appendChild(n)),e.style.overflow="hidden",t.appendChild(e);var i=n.offsetWidth;e.style.overflow="scroll",n=n.offsetWidth,i===n&&(n=e.clientWidth),t.removeChild(e),e=i-n,e!==0||ui||(e=11)}this.Db=e,this.Gw=!0},Kt.prototype.qb=function(t){t.classType===Kt&&(this.autoScale=t)},Kt.prototype.toString=function(t){t===void 0&&(t=0);var e="";if(this.div&&this.div.id&&(e=this.div.id),e='Diagram "'+e+'"',0>=t)return e;for(var n=this.Wa.iterator;n.next();)e+=`
|
|
|
`+n.value.toString(t-1);return e};function Df(t,e){if(vo){if(e!=null||Et("Diagram setup requires an argument DIV."),t.Ka!==null&&Et("Diagram has already completed setup."),typeof e=="string"?t.Ka=sn.document.getElementById(e):e instanceof HTMLDivElement?t.Ka=e:Et("No DIV or DIV id supplied: "+e),t.Ka===null&&Et("Invalid DIV id; could not get element with id: "+e),t.Ka.H!==void 0&&Et("Invalid div id; div already has a Diagram associated with it."),!t.ol&&sn.ResizeObserver){var n=Wi(function(){t.$b()},250);t.ol=new sn.ResizeObserver(function(){n()}),t.ol.observe(t.Ka)}sn.getComputedStyle(t.Ka,null).position==="static"&&(t.Ka.style.position="relative"),e=5;var i="rgba(2"+e+"5, 255, 255, 0)";e--,t.Ka.style["-webkit-tap-highlight-color"]=i,t.Ka.innerHTML="",t.Ka.H=t,t.Ka.goDiagram=t,t.Ka.go=sn.go;var r=new Bl(t);if(r.style!==void 0&&(r.style.position="absolute",r.style.top="0px",r.style.left="0px",sn.getComputedStyle(t.Ka,null).getPropertyValue("direction")==="rtl"&&(t.tn=!0),r.style.zIndex="2",r.style.userSelect="none",r.style.MozUserSelect="none",r.style.touchAction="none",r.style.letterSpacing="normal !important",r.style.wordSpacing="normal !important"),t.ta=r,t.ib=r.context,i=t.ib,t.Mb=t.computePixelRatio(),t.viewSize.w()||(t.Aa=t.Ka.clientWidth||1,t.ya=t.Ka.clientHeight||1),jf(t,t.Aa,t.ya),t.Ka.insertBefore(r.Oa,t.Ka.firstChild),r=new Bl(null),r.width=1,r.height=1,t.jw=r,t.oy=r.context,vo){r=Nr("div");var o=Nr("div");r.style.position="absolute",r.style.overflow="auto",r.style.width=t.Aa+"px",r.style.height=t.ya+"px",r.style.zIndex="1",o.style.position="absolute",o.style.width="1px",o.style.height="1px",t.Ka.appendChild(r),r.appendChild(o),r.onscroll=lg,r.addEventListener("pointerdown",ug),r.H=t,r.uy=!0,r.vy=!0,t.ku=r,t.hu=o}t.hk=Wi(function(){t.Yh=null,t.N()},300),t.Ov=Wi(function(){Pf(t)},250),t.preventDefault=function(s){return s.preventDefault(),!1},t.$j=function(s){if(t.isEnabled){var l=El(t,s,!0);l.bubbles=!0;var u=0,d=0;l.delta=0,s.deltaX!==void 0?(s.deltaX!==0&&(u=0<s.deltaX?1:-1),s.deltaY!==0&&(d=0<s.deltaY?1:-1),l.delta=Math.abs(s.deltaX)>Math.abs(s.deltaY)?-u:-d):s.wheelDeltaX!==void 0?(s.wheelDeltaX!==0&&(u=0<s.wheelDeltaX?-1:1),s.wheelDeltaY!==0&&(d=0<s.wheelDeltaY?-1:1),l.delta=Math.abs(s.wheelDeltaX)>Math.abs(s.wheelDeltaY)?-u:-d):s.wheelDelta!==void 0&&s.wheelDelta!==0&&(l.delta=0<s.wheelDelta?1:-1),t.doMouseWheel(),tu(l,s)}},t.aA=function(s){t.isEnabled&&(t.Vk=!1,El(t,s,!0),s=t.currentTool,s.cancelWaitAfter(),s.standardMouseOver())},t.ui=function(s){if(t.isEnabled){t.Vk=!0;var l=t.Yt;l[s.pointerId]===void 0&&(l[s.pointerId]=s),l=t.oj;var u=!1;if(l[0]===null||l[0].pointerId!==s.pointerId&&l[0].pointerType===s.pointerType)if(l[1]!==null&&l[1].pointerId===s.pointerId)l[1]=s,u=!0;else if(l[0]===null)l[0]=s;else if(l[1]===null)l[1]=s,u=!0;else{s.preventDefault();return}else l[0]=s;(l=s.pointerType==="touch"||s.pointerType==="pen")&&(t.qu=!1,t.wq=!0);var d=u;u=Uf(t,s,!0,!1,!0,d),Nh(t,s,u),u.targetDiagram=Bf(s,s.target),u.targetObject=null,d||u.clone(t.bq),d=t.uw,l=l?25:10,s.timeStamp-t.tw<t.zy&&!(Math.abs(d.x-s.screenX)>l||Math.abs(d.y-s.screenY)>l)?t.yq++:t.yq=1,u.clickCount=t.yq,t.tw=s.timeStamp,t.uw.sg(s.screenX,s.screenY),t.doMouseDown(),s.button===1?s.preventDefault():tu(u,s)}},t.dk=function(s){if(t.isEnabled){t.Vk=!0;var l=t.oj;if(l[0]===null||l[0].pointerId!==s.pointerId&&l[0].pointerType===s.pointerType){if(l[1]!==null&&l[1].pointerId===s.pointerId){l[1]=s;return}if(l[0]===null)l[0]=s;else return}else l[0]=s;if(l[0].pointerId===s.pointerId){l=Uf(t,s,!1,!1,!1,l[1]!==null);var u=sn.document.elementFromPoint(s.clientX,s.clientY)||null;u!==null&&u.shadowRoot!==void 0&&u.shadowRoot!==null&&(u=u.shadowRoot.elementFromPoint(s.clientX,s.clientY));var d=t,f=s;u&&u.H&&(f=s,d=u.H),l.targetDiagram=d,Nh(t,f,l),l.targetObject=null,t.doMouseMove(),tu(l,s)}}},t.fk=function(s){if(t.isEnabled){t.Vk=!0;var l=s.pointerType==="touch"||s.pointerType==="pen",u=t.Yt;if(l&&t.qu)delete u[s.pointerId],s.preventDefault();else if(u=t.oj,u[0]===null||u[0].pointerId!==s.pointerId&&u[0].pointerType===s.pointerType)u[1]!==null&&u[1].pointerId===s.pointerId&&(u[1]=null);else{u[0]=null,u=Uf(t,s,!1,!0,!0,!1);var d=sn.document.elementFromPoint(s.clientX,s.clientY)||null;d!==null&&d.shadowRoot!==void 0&&d.shadowRoot!==null&&(d=d.shadowRoot.elementFromPoint(s.clientX,s.clientY)),d!==null&&d.H instanceof Kt&&d.H!==t&&Nh(d.H,s,u),d===null&&(d=s.target),Nh(t,s,u),u.clickCount=t.yq,u.targetDiagram=Bf(s,d),u.targetObject=null,t.doMouseUp(),tu(u,s),l&&(t.wq=!1)}}},t.ek=function(s){if(t.isEnabled){t.Vk=!1;var l=t.Yt;l[s.pointerId]&&delete l[s.pointerId],l=t.oj,l[0]!==null&&l[0].pointerId===s.pointerId&&(l[0]=null),l[1]!==null&&l[1].pointerId===s.pointerId&&(l[1]=null),s.pointerType!=="touch"&&s.pointerType!=="pen"&&(s=t.currentTool,s.cancelWaitAfter(),s.standardMouseOver())}},t.ck=function(s){var l=t.oj;l[0]!==null&&l[0].pointerId===s.pointerId?(l[0]=null,t.wq=!1):l[1]!==null&&l[1].pointerId===s.pointerId&&(l[1]=null)},t.Vp=i.Z["d"+ld[1]+ld[2]+"wI"+Dh.slice(1,5)]["b"+Y1.slice(1,e)](i.Z,ad,e,e),i.Vc(!0),u0(t),t.nl==="svg"&&(e=t.pj.get("svg"),t.Ka.appendChild(e.Oa),t.ib=e.context)}}Kt.prototype.addEventListener=function(t,e,n,i){t.addEventListener(e,n,{capture:i,passive:!1})},Kt.prototype.removeEventListener=function(t,e,n,i){t.removeEventListener(e,n,{capture:i})};function u0(t){var e=t.ta.Oa;e instanceof HTMLCanvasElement||(e=t.div),t.addEventListener(e,"pointerdown",t.ui,!1),t.addEventListener(e,"pointermove",t.dk,!1),t.addEventListener(e,"pointerup",t.fk,!1),t.addEventListener(e,"pointerout",t.ek,!1),t.addEventListener(e,"pointercancel",t.ck,!1),t.addEventListener(e,"pointerenter",t.bz,!1),t.addEventListener(e,"pointerleave",t.cz,!1),t.addEventListener(e,"wheel",t.$j,!1),t.addEventListener(e,"keydown",t.Qz,!1),t.addEventListener(e,"keyup",t.Rz,!1),t.addEventListener(e,"blur",t.Ny,!1),t.addEventListener(e,"focus",t.Oy,!1),t.addEventListener(e,"selectstart",function(n){return n.preventDefault(),!1},!1),t.addEventListener(e,"contextmenu",function(n){return n.preventDefault(),!1},!1),t.addEventListener(sn,"resize",t.Ov,!1)}function Ca(t){30<t.Sq&&(t.Yh=1)}function td(t,e){t.Yh!==null&&(t.Yh=null,e&&t.hk(),Rr&&Rr.nx||(t.Sq=0,t.zw=[0,0,0,0,0],t.Tq=0))}Kt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:sn.devicePixelRatio||1},Kt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Kt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Kt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Kt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Kt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Kt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Kt.prototype.doFocus=function(){this.focus()},Kt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var t=sn.scrollX||sn.pageXOffset,e=sn.scrollY||sn.pageYOffset;this.ta.focus(),sn.scrollTo(t,e)}},Kt.prototype.Oy=function(){this.H.R("GainedFocus")},Kt.prototype.Ny=function(){this.H.R("LostFocus")};function Pf(t){if(t.ta!==null){var e=t.Ka;if(e!==null&&e.clientWidth!==0&&e.clientHeight!==0){t.Gw||t.setScrollWidth();var n=t.gf?t.Db:0,i=t.Be?t.Db:0,r=t.Mb;t.Mb=t.computePixelRatio(),t.Mb!==r&&(t.pn=!0,t.$b()),(e.clientWidth!==t.Aa+n||e.clientHeight!==t.ya+i)&&(t.Ee=!0,t.Fc=!0,e=t.layout,e!==null&&e.isViewportSized&&t.autoScale===Qs&&(t.Jk=!0,e.C()),t.ld||t.$b())}}}function sg(t){var e=new ms;e.name="Background",t.Al(e),e=new ms,e.name="",t.Al(e),e=new ms,e.name="Foreground",t.Al(e),e=new ms,e.name="Adornment",e.isTemporary=!0,e.isInDocumentBounds=!1,t.Al(e),e=new ms,e.name="Tool",e.isTemporary=!0,e.isInDocumentBounds=!0,t.Al(e),e=new ms,e.name="Grid",e.allowSelect=!1,e.pickable=!1,e.isTemporary=!0,e.isInDocumentBounds=!1,t.Ww(e,t.Qj("Background"))}function ag(t){var e=new Re(Re.Grid);e.name="GRID";var n=new ai;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,e.add(n),n=new ai,n.figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,e.add(n),n=new ai,n.figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,e.add(n),n=new ai,n.figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,e.add(n),n=new ai,n.figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,e.add(n),n=new ai,n.figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,e.add(n),n=new Rn,n.add(e),n.layerName="Grid",n.zOrder=0,n.isInDocumentBounds=!1,n.isAnimated=!1,n.pickable=!1,n.locationObjectName="GRID",t.add(n),t.partManager.parts.remove(n),e.visible=!1,e}function lg(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Lh(this.H)}function ug(t){this.H.isEnabled?(this.H.lu=t.target.scrollTop,this.H.ju=t.target.scrollLeft):Lh(this.H)}Kt.prototype.kx=function(t){if(this.ta!==null){var e=this.ku,n=this.hu;this.qr=!0;var i=this.documentBounds,r=this.viewportBounds,o=this.rj,s=i.x-o.left,l=i.y-o.top,u=i.width+o.left+o.right,d=i.height+o.top+o.bottom,f=i.right+o.right;o=i.bottom+o.bottom;var y=r.x;i=r.y;var T=r.width,w=r.height,N=r.right,F=r.bottom;r=this.scale;var nt=t.scrollLeft;if(this.tn)switch(this.bu){case"negative":nt=nt+t.scrollWidth-t.clientWidth;break;case"reverse":nt=t.scrollWidth-nt-t.clientWidth}var X=nt;T<u||w<d?(nt=z.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==X&&(nt.x=X/r+s,this.ju=X),this.allowVerticalScroll&&this.lu!==t.scrollTop&&(nt.y=t.scrollTop/r+l,this.lu=t.scrollTop),this.position=nt,z.free(nt),this.Ee=this.qr=!1):(nt=z.alloc(),t.uy&&this.allowHorizontalScroll&&(s<y&&(this.position=nt.h(X+s,this.position.y)),f>N&&(this.position=nt.h(-(e.scrollWidth-this.Aa)+X-this.Aa/r+f,this.position.y))),t.vy&&this.allowVerticalScroll&&(l<i&&(this.position=nt.h(this.position.x,t.scrollTop+l)),o>F&&(this.position=nt.h(this.position.x,-(e.scrollHeight-this.ya)+t.scrollTop-this.ya/r+o))),z.free(nt),this.vd=!0,this.Ee=this.qr=!1,i=this.documentBounds,r=this.viewportBounds,f=i.right,N=r.right,o=i.bottom,F=r.bottom,s=i.x,y=r.x,l=i.y,i=r.y,T>=u&&s>=y&&f<=N&&(n.style.width="1px"),w>=d&&l>=i&&o<=F&&(n.style.height="1px"))}},Kt.prototype.computeBounds=function(t){return t===void 0&&(t=new Xt),Ds(this),_f(this,t)};function _f(t,e){if(t.fixedBounds.w())return e.assign(t.fixedBounds),e.Co(t.yb),e;for(var n=!0,i=t.Wa.s,r=i.length,o=0;o<r;o++){var s=i[o];if(s.visible&&s.isInDocumentBounds){s=s.Pa.s;for(var l=s.length,u=0;u<l;u++){var d=s[u];d.isInDocumentBounds&&d.isVisible()&&(d=d.actualBounds,d.w()&&(n?(n=!1,e.assign(d)):e.ed(d)))}}}return n&&e.h(0,0,0,0),e.Co(t.yb),e}Kt.prototype.computePartsBounds=function(t,e){e===void 0&&(e=!1);var n=null;if(Ye(t))for(var i=0;i<t.length;i++){var r=t[i];!e&&r instanceof Pe||(r.Va(),n===null?n=r.actualBounds.copy():n.ed(r.actualBounds))}else for(t=t.iterator;t.next();)i=t.value,!e&&i instanceof Pe||(i.Va(),n===null?n=i.actualBounds.copy():n.ed(i.actualBounds));return n===null?new Xt(NaN,NaN,0,0):n};function _l(t,e){if((e||t.hf)&&!t.vb&&t.ta!==null&&t.documentBounds.w()){if(t.vb=!0,e){var n=t.initialPosition;if(n.w()){t.vb=!1,t.position=n;return}n=z.alloc(),n.xi(t.documentBounds,t.initialDocumentSpot);var i=t.viewportBounds;i=Xt.allocAt(0,0,i.width,i.height);var r=z.alloc();r.xi(i,t.initialViewportSpot),r.h(n.x-r.x,n.y-r.y),t.position=r,Xt.free(i),z.free(r),z.free(n)}n=t.yh,e&&t.Fg!==Qs&&(n=t.Fg);var o=n!==Qs?kh(t,n):t.scale;n=t.pa.x,i=t.pa.y,r=t.Aa/o;var s=t.ya/o,l=t.zk,u=t.pq;e&&!l.sb()&&(u.sb()||u.Xb())&&(l=u.Xb()?ei:u),Ff(t,t.documentBounds,r,s,l,e),e=t.scale,t.scale=o,t.vb=!1,o=t.viewportBounds,It.B(o.x,n)&&It.B(o.y,i)&&It.B(o.width,r)&&It.B(o.height,s)||t.onViewportBoundsChanged(new Xt(n,i,r,s),o,e,!1)}}function kh(t,e){var n=t.Pp;if(t.ta===null)return n;t.Va();var i=t.documentBounds;if(!i.w())return n;var r=i.width;i=i.height;var o=t.Aa+(t.gf?t.Db:0),s=t.ya+(t.Be?t.Db:0),l=o/r,u=s/i;return e===ul?(e=Math.min(u,l),e>n&&(e=n),e<t.minScale&&(e=t.minScale),e>t.maxScale&&(e=t.maxScale),e):e===qc?(e=u>l?(s-t.Db)/i:(o-t.Db)/r,e>n&&(e=n),e<t.minScale&&(e=t.minScale),e>t.maxScale&&(e=t.maxScale),e):t.scale}Kt.prototype.zoomToFit=function(){var t=this.sj;this.sj=Tc,this.scale=kh(this,ul),t!==Tc&&(_l(this,!1),Ff(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=t},A=Kt.prototype,A.BA=function(t,e){e===void 0&&(e=ul);var n=t.width,i=t.height;if(!(n===0||i===0||isNaN(n)&&isNaN(i))){var r=1;if(e===ul||e===qc)if(isNaN(n))r=this.viewportBounds.height*this.scale/i;else if(isNaN(i))r=this.viewportBounds.width*this.scale/n;else{r=this.Aa;var o=this.ya;r=e===qc?o/i>r/n?(o-(this.Be?this.Db:0))/i:(r-(this.gf?this.Db:0))/n:Math.min(o/i,r/n)}this.scale=r,this.position=new z(t.x,t.y)}},A.Jy=function(t,e){this.Va();var n=this.documentBounds,i=this.viewportBounds;this.position=new z(n.x+(t.x*n.width+t.offsetX)-(e.x*i.width-e.offsetX),n.y+(t.y*n.height+t.offsetY)-(e.y*i.height-e.offsetY))},A.zz=function(t){if(t instanceof Rt){this.eq=t;var e=z.alloc();this.fq=this.op(t.ga(vi,e)),z.free(e)}else this.eq=null,this.fq=mn};function Ff(t,e,n,i,r,o){var s=z.allocAt(t.pa.x,t.pa.y),l=s.x,u=s.y;if(t.eq!==null){var d=z.alloc();d=t.eq.ga(vi,d),l=d.x-t.fq.x/t.scale,u=d.y-t.fq.y/t.scale,r=qn,z.free(d)}(o||t.scrollMode===Tc)&&(r.sb()&&(n>e.width&&(l=e.x+(r.x*e.width+r.offsetX)-(r.x*n-r.offsetX)),i>e.height&&(u=e.y+(r.y*e.height+r.offsetY)-(r.y*i-r.offsetY))),r=t.rj,o=n-e.width,n<e.width+r.left+r.right?(l=Math.min(l+n/2,e.right+Math.max(o,r.right)-n/2),l=Math.max(l,e.left-Math.max(o,r.left)+n/2),l-=n/2):l>e.left?l=e.left:l<e.right-n&&(l=e.right-n),n=i-e.height,i<e.height+r.top+r.bottom?(u=Math.min(u+i/2,e.bottom+Math.max(n,r.bottom)-i/2),u=Math.max(u,e.top-Math.max(n,r.top)+i/2),u-=i/2):u>e.top?u=e.top:u<e.bottom-i&&(u=e.bottom-i)),s.x=isFinite(l)?l:-t.yb.left,s.y=isFinite(u)?u:-t.yb.top,t.positionComputation!==null&&(e=t.positionComputation(t,s),s.x=e.x,s.y=e.y),Yc(t.Yd,t.pa,s),t.pa.h(s.x,s.y),Au(t),z.free(s)}A.Ol=function(t,e){if(e===void 0&&(e=!0),e){if(t=Hu(this,t,function(n){return n.part},function(n){return n.canSelect()}),t instanceof Rn)return t}else if(t=Hu(this,t,function(n){return n.part}),t instanceof Rn)return t;return null},A.ic=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null),Ds(this);for(var i=this.Wa.iteratorBackwards;i.next();){var r=i.value;if(r.visible&&(r=r.ic(t,e,n),r!==null))return r}return null};function Hu(t,e,n,i){for(n===void 0&&(n=null),i===void 0&&(i=null),Ds(t),t=t.Wa.iteratorBackwards;t.next();){var r=t.value;if(r.visible&&!r.isTemporary&&(r=r.ic(e,n,i),r!==null))return r}return null}A.lz=function(t,e,n){return e===void 0&&(e=!0),ed(this,t,function(i){return i.part},e?function(i){return i instanceof Rn&&i.canSelect()}:null,n)};function ed(t,e,n,i,r){for(n===void 0&&(n=null),i===void 0&&(i=null),r instanceof Te||r instanceof Ce||(r=new Ce),Ds(t),t=t.Wa.iteratorBackwards;t.next();){var o=t.value;o.visible&&!o.isTemporary&&o.ji(e,n,i,r)}return r}A.ji=function(t,e,n,i){e===void 0&&(e=null),n===void 0&&(n=null),i instanceof Te||i instanceof Ce||(i=new Ce),Ds(this);for(var r=this.Wa.iteratorBackwards;r.next();){var o=r.value;o.visible&&o.ji(t,e,n,i)}return i},A.ux=function(t,e,n,i){return e===void 0&&(e=!1),n===void 0&&(n=!0),Dd(this,t,function(r){return r instanceof Rn&&(!n||r.canSelect())},e,i)},A.Cf=function(t,e,n,i,r){e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Te||r instanceof Ce||(r=new Ce),Ds(this);for(var o=this.Wa.iteratorBackwards;o.next();){var s=o.value;s.visible&&s.Cf(t,e,n,i,r)}return r},A.Nu=function(t,e,n,i,r,o){var s=new Ce;Ds(this);for(var l=this.Wa.iteratorBackwards;l.next();){var u=l.value;u.visible&&u.Nu(t,e,n,i,s,r,o)}return s};function Dd(t,e,n,i,r){var o=null;for(o===void 0&&(o=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Te||r instanceof Ce||(r=new Ce),Ds(t),t=t.Wa.iteratorBackwards;t.next();){var s=t.value;s.visible&&!s.isTemporary&&s.Cf(e,o,n,i,r)}return r}A.mz=function(t,e,n,i,r){return n===void 0&&(n=!0),i===void 0&&(i=!0),nd(this,t,e,function(o){return o instanceof Rn&&(!i||o.canSelect())},n,r)},A.og=function(t,e,n,i,r,o){n===void 0&&(n=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Te||r instanceof Ce)&&(o=r),r=!0),o instanceof Te||o instanceof Ce||(o=new Ce),Ds(this);for(var s=this.Wa.iteratorBackwards;s.next();){var l=s.value;l.visible&&l.og(t,e,n,i,r,o)}return o};function nd(t,e,n,i,r,o){var s=null;for(s===void 0&&(s=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Te||r instanceof Ce)&&(o=r),r=!0),o instanceof Te||o instanceof Ce||(o=new Ce),Ds(t),t=t.Wa.iteratorBackwards;t.next();){var l=t.value;l.visible&&!l.isTemporary&&l.og(e,n,s,i,r,o)}return o}Kt.prototype.acceptEvent=function(t){return El(this,t,t instanceof MouseEvent)};function El(t,e,n){var i=t.Qg;return t.Qg=t.cj,t.cj=i,i.diagram=t,i.event=e,n?Nh(t,e,i):(i.viewPoint=t.Qg.viewPoint,i.documentPoint=t.Qg.documentPoint),t=0,e.ctrlKey&&(t+=1),e.altKey&&(t+=2),e.shiftKey&&(t+=4),e.metaKey&&(t+=8),i.modifiers=t,i.button=e.button,e.buttons!==void 0&&(i.buttons=e.buttons),ui&&e.button===0&&e.ctrlKey&&(i.button=2),i.down=!1,i.up=!1,i.clickCount=1,i.delta=0,i.handled=!1,i.bubbles=!1,i.timestamp=e.timeStamp,i.isMultiTouch=!1,i.targetDiagram=Bf(e,e.target),i.targetObject=null,i}function Bf(t,e){return e===null?null:(e=e.H)?e:((e=t.path)||typeof t.composedPath!="function"||(e=t.composedPath()),e&&e[0]&&e[0].H?e[0].H:null)}function Uf(t,e,n,i,r,o){var s=t.Qg;return t.Qg=t.cj,t.cj=s,s.diagram=t,s.clickCount=1,t=s.delta=0,e.ctrlKey&&(t+=1),e.altKey&&(t+=2),e.shiftKey&&(t+=4),e.metaKey&&(t+=8),s.modifiers=t,s.event=e,s.timestamp=e.timeStamp,s.button=e.button,s.buttons=e.buttons,ui&&e.button===0&&e.ctrlKey&&(s.button=2),s.down=n,s.up=i,s.handled=!1,s.bubbles=r,s.isMultiTouch=o,s}function tu(t,e){return t.bubbles?!0:(e.stopPropagation!==void 0&&e.stopPropagation(),e.cancelable!==!1&&e.preventDefault(),e.cancelBubble=!0,!1)}Kt.prototype.Qz=function(t){var e=this.H;if(!this.H.isEnabled)return!1;var n=El(e,t,!1);switch(n.key=String.fromCharCode(t.which),n.down=!0,t.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 e.doKeyDown(),tu(n,t)},Kt.prototype.Rz=function(t){var e=this.H;if(!e.isEnabled)return!1;var n=El(e,t,!1);switch(n.key=String.fromCharCode(t.which),n.up=!0,t.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 e.doKeyUp(),tu(n,t)},Kt.prototype.bz=function(t){var e=this.H;if(!e.isEnabled)return!1;var n=El(e,t,!0);return e.mouseEnter!==null&&e.mouseEnter(n),e.currentTool.standardMouseOver(),tu(n,t)},Kt.prototype.cz=function(t){var e=this.H;if(!e.isEnabled)return!1;var n=El(e,t,!0);return e.mouseLeave!==null&&e.mouseLeave(n),tu(n,t)},Kt.prototype.getMouse=function(t){var e=this.ta;if(e===null)return new z(0,0);var n=e.getBoundingClientRect();return e=t.clientX-this.Aa/n.width*n.left,t=t.clientY-this.ya/n.height*n.top,this.Ab!==null?He(new z(e,t),this.Ab):new z(e,t)};function Nh(t,e,n){var i=t.ta,r=t.Aa,o=t.ya,s=0,l=0;i!==null&&(i=i.getBoundingClientRect(),s=e.clientX-r/i.width*i.left,l=e.clientY-o/i.height*i.top),n.viewPoint.h(s,l),t.Ab!==null?(e=z.allocAt(s,l),t.Ab.Cd(e),n.documentPoint.assign(e),z.free(e)):n.documentPoint.h(s,l)}function Hf(t,e,n){if(t.oj[0]!==null){e=t.oj[e];var i=t.ta;i!==null&&(i=i.getBoundingClientRect(),n.h(e.clientX-t.Aa/i.width*i.left,e.clientY-t.ya/i.height*i.top))}}Kt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function cg(t){t.ld||Ds(t),t.Va()}Kt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},A=Kt.prototype,A.Pz=function(){return this.kg},A.Xy=function(t){t===void 0&&(t=null);var e=this.animationManager,n=e.isEnabled;e.Cc(),e.isEnabled=!1,Sl(this),this.hf=!1,this.du=new z(NaN,NaN),e.isEnabled=n,this.ld=!0;var i=this;t!==null&&Ur(function(){i.ld=!1,Qo(e,"Model"),t(i)},1)},A.$b=function(t){if(t===void 0&&(t=!1),this.kg!==!0&&!(this.vb||t===!1&&this.ld)){this.kg=!0;var e=this;sn.requestAnimationFrame(function(){e.kg&&e.bd()})}},A.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Sl(this))};function Zc(t,e,n){!t.Ee||t.vb||t.animationManager.defaultAnimation.isAnimating||Lh(t)||(e&&Ds(t),n&&_l(t,!1))}function Sl(t,e){if(!t.ld&&(t.kg=!1,t.Ka!==null||t.wo.w())){t.ld=!0;var n=t.animationManager,i=t.Xn;if(!n.isAnimating&&i.length!==0){for(var r=i.s,o=r.length,s=0;s<o;s++){var l=r[s];zo(l,!1),l.v()}i.clear()}i=t.ow,0<i.count&&(i.each(function(u){u.Nv()}),i.clear()),r=i=!1,n.defaultAnimation.isAnimating&&(r=!0,i=t.skipsUndoManager,t.skipsUndoManager=!0),n.zb||Pf(t),Zc(t,!1,!0),t.fe!==null&&(t.fe.visible&&!t.mq&&(Nu(t),t.mq=!0),!t.fe.visible&&t.mq&&(t.mq=!1)),Ds(t),o=!1,(!t.hf||t.xh)&&(t.hf?Xf(t,!t.Jk):(t.Ea("Initial Layout"),n.isEnabled===!1&&n.Cc(),Xf(t,!1)),o=!0),t.Jk=!1,Ds(t),t.ou||cg(t),Zc(t,!0,!1),s=!1,o?(n=Xt.alloc(),n.assign(t.viewportBounds),t.hf||(s=t.hf=!0,t.skipsUndoManager||(t.undoManager.isPendingClear=!0),t.undoManager.isPendingUnmodified=!0,zf(t)),t.R("LayoutCompleted"),Zc(t,!0,!1),Xt.free(n)):n.Ok&&n.Qw&&(t.Fg!==Qs?t.scale=kh(t,t.Fg):t.yh!==Qs?t.scale=kh(t,t.yh):(n=t.initialScale,isFinite(n)&&0<n&&(t.scale=n)),_l(t,!0)),o&&s&&t.eb("Initial Layout"),Ds(t),e||t.gc(t.ib),r&&(t.skipsUndoManager=i),t.ld=!1}}function zf(t){if(t.Fg!==Qs)t.scale=kh(t,t.Fg);else if(t.yh!==Qs)t.scale=kh(t,t.yh);else{var e=t.initialScale;isFinite(e)&&0<e&&(t.scale=e)}_l(t,!0),e=t.Wa.s,t.Fd(e,e.length,t,t.viewportBounds),t.R("InitialLayoutCompleted"),t.du.assign(t.pa),Nu(t)}function Ds(t){if(t.De.count!==0&&(t.ld||!t.animationManager.isTicking)){for(var e=0;23>e;e++){var n=t.De.iterator;if(n===null||t.De.count===0)break;t.De=new Ce,t.Nv(n,t.De)}t.nodes.each(function(i){i instanceof Jn&&i.U&65536&&(i.U=i.U^65536)})}}A.Nv=function(t,e){for(t.reset();t.next();){var n=t.value;!n.Zc()||n instanceof Jn||(n.si()?(n.measure(1/0,1/0),n.arrange()):e.add(n))}for(t.reset();t.next();)n=t.value,n instanceof Jn&&n.isVisible()&&id(this,n);for(t.reset();t.next();)n=t.value,n instanceof Pe&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):e.add(n));for(t.reset();t.next();)n=t.value,n instanceof Vi&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):e.add(n))};function id(t,e){for(var n=bn(),i=bn(),r=e.memberParts;r.next();){var o=r.value;o.isVisible()&&(o instanceof Jn?(hl(o)||ua(o)||eh(o))&&id(t,o):o instanceof Pe?o.fromNode===e||o.toNode===e?i.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(t=n.length,r=0;r<t;r++)o=n[r],o.measure(1/0,1/0),o.arrange();for(En(n),e.measure(1/0,1/0),e.arrange(),t=i.length,e=0;e<t;e++)n=i[e],n.measure(1/0,1/0),n.arrange();En(i)}A.Fd=function(t,e,n,i){if(this.vd||this.animationManager.isAnimating)for(var r=0;r<e;r++)t[r].Fd(n,i)},A.gc=function(t){if(this.Ka!==null){if(this.ta===null&&Et("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var e=this.animationManager;if(!e.zb&&(!e.isAnimating||e.isTicking)){Ih(this);var n=this.Aa,i=this.ya;if(t.Gv.resize(n,i,n,i),n=this.Wa.s,i=n.length,this.Fd(n,i,this,this.viewportBounds),this.Fc||e.isAnimating){e=this.pa;var r=this.Ca,o=Math.round(e.x*r)/r,s=Math.round(e.y*r)/r,l=this.Ab;for(l.reset(),r!==1&&l.scale(r),e.x===0&&e.y===0||l.translate(-o,-s),t.ti=null,oy(t,l.m11,l.m12,l.m21,l.m22,l.dx,l.dy),this.pb!==1&&(t.globalAlpha=this.pb),Ec(this,t),e=this.Mb,this.ta.context.setTransform(e,0,0,e,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),e=0;e<i;e++)n[e].gc(t,this);t=!1,this.Yf?Ph(this.Yf,this)&&(t=this.Vp()):t=!0,t&&(jn.prototype.Cd=jn.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,Ih(this),this.Ka.style.opacity!=="0")){if(i=t!==this.ib,e=this.Wa.s,r=e.length,this.Fd(e,r,this,this.viewportBounds),i)t.Vc(!0),this.vd=!0;else if(!this.Fc&&!o.isAnimating)break t;o=this.Ab,o.reset(),s=this.Mb,l=this.pa;var u=this.Ca,d=Math.round(l.x*u)/u,f=Math.round(l.y*u)/u;for(u!==1&&o.scale(u),l.x===0&&l.y===0||o.translate(-d,-f),t.setTransform(s,0,0,s,0,0),t.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(t.globalAlpha=this.pb),Ec(this,t),l=0;l<r;l++)t.setTransform(s,0,0,s,0,0),t.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),t.yc(),e[l].gc(t,this);if(e=!1,this.Yf?Ph(this.Yf,this)&&(e=this.Vp()):e=!0,e&&(jn.prototype.Cd=jn.prototype.Eu),i?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,e=+new Date-+n,i=Rr&&Rr.nx,n=this.zw,i||this.Yh===null){for(n[this.Tq]=e,this.Tq=(this.Tq+1)%n.length,r=e=0;r<n.length;r++)e+=n[r];this.Sq=e/n.length}if(this.pb!==1&&(t.globalAlpha=1),i)for(t.setTransform(1,0,0,1,0,0),i=0;i<n.length;i++)t.fillText(n[i].toString(),20,150+ +(20*i))}}};function Pd(t,e,n,i,r,o,s,l,u,d){if(t.Ka!==null){t.ta===null&&Et("No canvas specified"),s===void 0&&(s=null),l===void 0&&(l=null),u===void 0&&(u=!1),d===void 0&&(d=!1),Ih(t),t.ib.Vc(!0),t.vd=!0,t.$i=!0;var f=t.Ca;t.Ca=r;var y=t.Wa.s,T=y.length;try{var w=new Xt(o.x,o.y,i.width/r,i.height/r),N=w.copy();N.Co(n),Nu(t,N),Ds(t),t.Fd(y,T,t,w),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,i.width,i.height),l!==null&&l!==""&&(e.fillStyle=l,e.ox(0,0,i.width,i.height));var F=t.Mb;e.scale(F,F);var nt=jn.alloc();nt.reset(),nt.translate(n.left,n.top),nt.scale(r),o.x===0&&o.y===0||nt.translate(-o.x,-o.y),e.setTransform(nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),e.yc(),e instanceof $a&&oy(e,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),jn.free(nt),Ec(t,e),e.globalAlpha=t.pb;var X=t.Qj("Grid");if(s){var ut=new Ce,ht=s.iterator;for(ht.reset();ht.next();){var yt=ht.value;yt instanceof Rn&&(d||yt.layer!==X)&&(yt.Gj(),ut.add(yt))}for(d=0;d<T;d++)ng(y[d],e,t,ut,u);ut.each(function(Yt){return Yt.Gj()})}else for(ut=0;ut<T;ut++){var Nt=y[ut];Nt===X?d&&Nt.gc(e,t,!0):Nt.gc(e,t,u)}t.$i=!1,t.Yf&&Ph(t.Yf,t)&&t.Vp()}finally{t.Ca=f,t.ib.Vc(!0),t.vd=!0,t.Fd(y,T,t,t.viewportBounds),Nu(t),t.ib instanceof $a&&(t.ib.Nj.PA(),t.redraw())}}}A.Gf=function(t){return this.Rg[t]},A.Xx=function(t,e){t==="minDrawingLength"&&(this.Oq=e),this.Rg[t]=e,this.redraw()},A.Tx=function(){this.Rg=new Ai,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(ui||jt),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ec(t,e){t=t.Rg,t!==null&&(t.imageSmoothingEnabled!==void 0&&e.Wx(!!t.imageSmoothingEnabled),t=t.defaultFont,t!=null&&(e.font=t))}A.Ql=function(t){return this.on[t]},A.sA=function(t,e){this.on[t]=e},A.Sx=function(){this.on=new Ai,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},A.set=function(t){return Object.assign(this,t),this},A.Du=function(t){return this.nm(t)},A.nm=function(t){return Ah(this,t),this};function Ah(t,e){var n=t instanceof Re,i=t instanceof Kt,r;for(r in e){r===""&&Et("Setting properties requires non-empty property names");var o=t,s=r;if(n||i){var l=r.indexOf(".");if(0<l){var u=r.substring(0,l);n?o=t.fb(u):(o=t[u],o==null&&(o=t.toolManager[u])),Ut(o)?s=r.substr(l+1):Et("Unable to find object named: "+u+" in "+t.toString()+" when trying to set property: "+r)}}if(s[0]!=="_"&&!Wn(o,s))if(i&&s==="ModelChanged"){t.Yw(e[s]);continue}else if(i&&s==="Changed"){t.Pe(e[s]);continue}else if(i&&Wn(t.toolManager,s))o=t.toolManager;else if(i&&fg(t,s)){t.Bj(s,e[s]);continue}else if(t instanceof wn&&s==="Changed"){t.Pe(e[s]);continue}else Et('Trying to set undefined property "'+s+'" on object: '+o.toString());o[s]=e[r],s[0]==="_"&&o instanceof Rt&&o.Vw(s)}}A.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var t=this.Eh;for(this.Eh=new Zt,t=t.iterator;t.next();){var e=t.key;e.Xo(t.value),e.qc()}}this.N()}},A.N=function(t){if(t===void 0)this.Fc=!0,this.$b();else{var e=this.viewportBounds;t.w()&&e.Yc(t)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Kt.prototype.invalidateViewport=function(t,e){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!==sd&&this.rj.hi(0,0,0,0)&&e.width===t.width&&e.height===t.height){var i=this.scale,r=Math.max(t.y,e.y),o=Math.min(t.y+t.height,e.y+e.height);if(0<Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x))*i&&0<Math.max(0,o-r)*i){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(i=Xt.alloc(),$f(this,this.computeBounds(i)),Xt.free(i)),i=this.ta,i===null||i instanceof Iu)))){var s=this.Mb;r=this.Aa*s;var l=this.ya*s,u=this.scale*s;o=Math.round(Math.round(e.x*u)-Math.round(t.x*u)),e=Math.round(Math.round(e.y*u)-Math.round(t.y*u)),u=this.jw,t=this.oy,u.width!==r&&(u.width=r),u.height!==l&&(u.height=l),t.clearRect(0,0,r,l),u=190*s;var d=70*s,f=Math.max(o,0),y=Math.max(e,0),T=Math.floor(r-f),w=Math.floor(l-y);t.drawImage(i.Oa,f,y,T,w,0,0,T,w),Ph(this.Yf,this)&&t.clearRect(0,0,u,d),i=bn(),t=bn(),w=Math.abs(o),T=Math.abs(e);var N=f===0?0:r-w;f=z.allocAt(N,0),w=z.allocAt(w+N,l),t.push(new Xt(Math.min(f.x,w.x),Math.min(f.y,w.y),Math.abs(f.x-w.x),Math.abs(f.y-w.y)));var F=this.Ab;if(F.reset(),F.scale(s,s),this.Ca!==1&&F.scale(this.Ca),s=this.pa,(s.x!==0||s.y!==0)&&isFinite(s.x)&&isFinite(s.y)&&F.translate(-s.x,-s.y),He(f,F),He(w,F),i.push(new Xt(Math.min(f.x,w.x),Math.min(f.y,w.y),Math.abs(f.x-w.x),Math.abs(f.y-w.y))),N=y===0?0:l-T,f.h(0,N),w.h(r,T+N),t.push(new Xt(Math.min(f.x,w.x),Math.min(f.y,w.y),Math.abs(f.x-w.x),Math.abs(f.y-w.y))),He(f,F),He(w,F),i.push(new Xt(Math.min(f.x,w.x),Math.min(f.y,w.y),Math.abs(f.x-w.x),Math.abs(f.y-w.y))),Ph(this.Yf,this)&&(r=0<o?0:-o,l=0<e?0:-e,f.h(r,l),w.h(u+r,d+l),t.push(new Xt(Math.min(f.x,w.x),Math.min(f.y,w.y),Math.abs(f.x-w.x),Math.abs(f.y-w.y))),He(f,F),He(w,F),i.push(new Xt(Math.min(f.x,w.x),Math.min(f.y,w.y),Math.abs(f.x-w.x),Math.abs(f.y-w.y)))),z.free(f),z.free(w),Zc(this,!1,!0),this.Ka===null&&Et("No div specified"),this.ta===null&&Et("No canvas specified"),!this.animationManager.zb&&(r=this.ib,this.Fc)){for(Ih(this),l=this.Mb,r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,this.Aa*l,this.ya*l),r.drawImage(this.jw.Oa,0<o?0:Math.round(-o),0<e?0:Math.round(-e)),o=this.pa,s=this.Ca,u=Math.round(o.x*s)/s,d=Math.round(o.y*s)/s,e=this.Ab,e.reset(),s!==1&&e.scale(s),o.x===0&&o.y===0||e.translate(-u,-d),r.save(),r.beginPath(),o=t.length,s=0;s<o;s++)u=t[s],u.width!==0&&u.height!==0&&r.rect(Math.floor(u.x),Math.floor(u.y),Math.ceil(u.width),Math.ceil(u.height));for(r.clip(),r.setTransform(l,0,0,l,0,0),r.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),r.yc(),e=this.Wa.s,o=e.length,this.Fd(e,o,this,this.viewportBounds),Ec(this,r),r.globalAlpha=this.pb,l=0;l<o;l++)if(s=e[l],u=i,s.visible&&s.pb!==0){d=ic(s,r),y=s.Zq,y.length=0,f=this.scale,T=Xt.alloc(),w=s.Pa.s,F=w.length,N=u.length;for(var nt=0;nt<F;nt++){var X=w[nt],ut=jh(X,X.actualBounds);t:{for(var ht=2/f,yt=4/f,Nt=0;Nt<N;Nt++){var Yt=u[Nt];if(Yt.width!==0&&Yt.height!==0&&ut.Vu(Yt.x-ht,Yt.y-ht,Yt.width+yt,Yt.height+yt)){ut=!0;break t}}ut=!1}ut&&s.Oj(r,X,this,y,f,T,!0)}Xt.free(T),r.globalAlpha=d}r.restore(),r.Vc(!0),this.Yf&&Ph(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}En(i),En(t),this.ld=!1}}else this.bd();n&&(Ca(this),this.bd(),td(this,!0))}else n?(Ca(this),this.bd(),td(this,!0)):this.bd()}};function Ih(t){t.pn!==!1&&(t.pn=!1,jf(t,t.Aa,t.ya))}function jf(t,e,n){Au(t);var i=t.Mb;t.ta.resize(e*i,n*i,e,n)&&(t.Fc=!0,t.ib.Vc(!0))}function Lh(t){var e=t.ta;if(e===null||t.wo.w())return!0;var n=t.Aa,i=t.ya,r=t.Ka,o=!1,s=t.gf?t.Db:0,l=t.Be?t.Db:0,u=r.clientWidth||n+s,d=r.clientHeight||i+l,f=t.viewportBounds;r=f.x;var y=f.y,T=f.width,w=f.height;if((u!==n+s||d!==i+l)&&(t.gf=!1,t.Be=!1,l=s=0,t.Aa=u,t.ya=d,o=t.pn=!0,Au(t)),!t.hf||!t.viewportBounds.w())return!0;var N=t.ku,F=t.hu;if(t.Ee=!1,!(o||t.gf||t.Be||t.mn||t.nn))return!0;var nt=t.documentBounds,X=0,ut=0,ht=0,yt=0,Nt=f.width,Yt=f.height,Qe=t.rj;t.contentAlignment.sb()?(nt.width>Nt&&(X=Qe.left,ut=Qe.right),nt.height>Yt&&(ht=Qe.top,yt=Qe.bottom)):(X=Qe.left,ut=Qe.right,ht=Qe.top,yt=Qe.bottom);var xn=nt.width+X+ut,dn=nt.height+ht+yt;Qe=t.scale;var De=xn>u/Qe,ge=dn>d/Qe;if(!(o||t.gf||t.Be||De||ge))return!0;X=nt.x-X,u=f.x,ut=nt.right+ut,d=f.right+s,ht=nt.y-ht;var Xn=f.y;nt=nt.bottom+yt,f=f.bottom+l;var Vn="1px";if(yt="1px",t.scrollMode===Tc&&(De||ge)&&(De&&t.hasHorizontalScrollbar&&t.allowHorizontalScroll&&(De=1,X+1<u&&(De=Math.max((u-X)*Qe+t.Aa,De)),ut>d+1&&(De=Math.max((ut-d)*Qe+t.Aa,De)),Nt+s+1<xn&&(De=Math.max((xn-Nt)*Qe+t.Aa,De)),Vn=De.toString()+"px"),ge&&t.hasVerticalScrollbar&&t.allowVerticalScroll&&(De=1,ht+1<Xn&&(De=Math.max((Xn-ht)*Qe+t.ya,De)),nt>f+1&&(De=Math.max((nt-f)*Qe+t.ya,De)),Yt+l+1<dn&&(De=Math.max((dn-Yt)*Qe+t.ya,De)),yt=De.toString()+"px")),De=Vn!=="1px",ge=yt!=="1px",De&&ge||!De&&!ge||(ge&&(d-=t.Db),De&&(f-=t.Db),xn<Nt+s||!t.hasHorizontalScrollbar||!t.allowHorizontalScroll||(s=1,X+1<u&&(s=Math.max((u-X)*Qe+t.Aa,s)),ut>d+1&&(s=Math.max((ut-d)*Qe+t.Aa,s)),Nt+1<xn&&(s=Math.max((xn-Nt)*Qe+t.Aa,s)),Vn=s.toString()+"px"),De=Vn!=="1px",s=t.ya,De!==t.Be&&(s=De?t.ya-t.Db:t.ya+t.Db),dn<Yt+l||!t.hasVerticalScrollbar||!t.allowVerticalScroll||(l=1,ht+1<Xn&&(l=Math.max((Xn-ht)*Qe+s,l)),nt>f+1&&(l=Math.max((nt-f)*Qe+s,l)),Yt+1<dn&&(l=Math.max((dn-Yt)*Qe+s,l)),yt=l.toString()+"px"),ge=yt!=="1px"),t.qr&&De===t.Be&&ge===t.gf)return n===t.Aa&&i===t.ya||t.bd(),!1;if(De!==t.Be&&(Vn==="1px"?t.ya=t.ya+t.Db:t.ya=Math.max(t.ya-t.Db,1),o=!0),t.Be=De,F.style.width=Vn,ge!==t.gf&&(yt==="1px"?t.Aa=t.Aa+t.Db:t.Aa=Math.max(t.Aa-t.Db,1),o=!0,t.tn&&(l=z.alloc(),ge?(e.style.left=t.Db+"px",t.position=l.h(t.pa.x+t.Db/t.scale,t.pa.y)):(e.style.left="0px",t.position=l.h(t.pa.x-t.Db/t.scale,t.pa.y)),z.free(l))),o&&Au(t),t.gf=ge,F.style.height=yt,t.gu=!0,o&&(t.pn=!0),e=N.scrollLeft,t.hasHorizontalScrollbar&&t.allowHorizontalScroll&&(Nt+1<xn?e=(t.position.x-X)*Qe:X+1<u?e=N.scrollWidth-N.clientWidth:ut>d+1&&(e=t.position.x*Qe)),t.tn)switch(t.bu){case"negative":e=-(N.scrollWidth-e-N.clientWidth);break;case"reverse":e=N.scrollWidth-e-N.clientWidth}return N.scrollLeft=e,t.hasVerticalScrollbar&&t.allowVerticalScroll&&(Yt+1<dn?N.scrollTop=(t.position.y-ht)*Qe:ht+1<Xn?N.scrollTop=N.scrollHeight-N.clientHeight:nt>f+1&&(N.scrollTop=t.position.y*Qe)),u=t.Aa,d=t.ya,N.style.width=u+(t.gf?t.Db:0)+"px",N.style.height=d+(t.Be?t.Db:0)+"px",n!==u||i!==d||t.animationManager.zb?(n=Xt.allocAt(r,y,T,w),t.onViewportBoundsChanged(n,t.viewportBounds,Qe,o),Xt.free(n),!1):!0}A=Kt.prototype,A.add=function(t){var e=t.diagram;if(e!==this&&(e!==null&&Et("Cannot add part "+t.toString()+" to "+this.toString()+". It is already a part of "+e.toString()),e=this.Qj(t.layerName),e===null&&(e=this.Qj("")),e===null&&Et('Cannot add a Part when unable find a Layer named "'+t.layerName+'" and there is no default Layer'),t.layer!==e)){var n=e.oi(99999999,t,t.diagram===this);0<=n&&this.cb(ao,"parts",e,null,t,null,n),e.isTemporary||this.Ya(),t.C(1),n=t.layerChanged,n!==null&&n(t,null,e)}},A.oi=function(t){this.partManager.oi(t);var e=this;Uh(t,function(n){Rh(e,n)}),(t instanceof Vi||t instanceof Jn&&t.placeholder!==null)&&t.v(),t.data!==null&&Uh(t,function(n){mv(e.partManager,n)}),ua(t)!==!0&&eh(t)!==!0||this.De.add(t),Zy(t,!0,this),Xy(t)?(t.actualBounds.w()&&this.N(jh(t,t.actualBounds)),this.Ya()):t.isVisible()&&t.actualBounds.w()&&this.N(jh(t,t.actualBounds)),this.$b()},A.pc=function(t){t.Ej(),this.partManager.pc(t);var e=this;t.data!==null&&Uh(t,function(n){vv(e.partManager,n,e)}),this.De.remove(t),Xy(t)?(t.actualBounds.w()&&this.N(jh(t,t.actualBounds)),this.Ya()):t.isVisible()&&t.actualBounds.w()&&this.N(jh(t,t.actualBounds)),this.$b()},A.remove=function(t){Gf(this,t,!0)};function Gf(t,e,n){var i=e.layer;i!==null&&i.diagram===t&&(e.isSelected=!1,e.isHighlighted=!1,e.C(2),n&&e.Lj(),n=i.pc(-1,e,!1),0<=n&&t.cb(ho,"parts",i,e,null,n,null),t=e.layerChanged,t!==null&&t(e,i,null))}A.Is=function(t,e){if(e===void 0&&(e=!1),Ye(t))for(var n=t.length,i=0;i<n;i++){var r=t[i];e&&!r.canDelete()||this.remove(r)}else for(n=new Ce,n.addAll(t),t=n.iterator;t.next();)n=t.value,e&&!n.canDelete()||this.remove(n)},A.Kj=function(t,e,n){return n===void 0&&(n=!1),this.partManager.Kj(t,e,n)},Kt.prototype.moveParts=function(t,e,n,i){if(n===void 0&&(n=!1),i===void 0&&(i=_d(this)),this.toolManager!==null){var r=new Zt;if(t!==null)if(Ye(t))for(var o=0;o<t.length;o++)zu(this,r,t[o],n,i);else for(t=t.iterator;t.next();)zu(this,r,t.value,n,i);else{for(t=this.parts;t.next();)zu(this,r,t.value,n,i);for(t=this.nodes;t.next();)zu(this,r,t.value,n,i);for(t=this.links;t.next();)zu(this,r,t.value,n,i)}$c(this,r,e,i,n)}};function zu(t,e,n,i,r,o){if(!e.contains(n)&&(o===void 0&&(o=!1),!i||o||n.canMove()||n.canCopy()))if(r===void 0&&(r=_d(t)),n instanceof tn){if(e.add(n,t.Pd(r,n,n.location)),n instanceof Jn&&(n.placeholder!==null||r.dragsMembers))for(o=n.memberParts;o.next();)zu(t,e,o.value,i,r,r.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var s=o.value;if(!e.contains(s)){var l=s.fromNode,u=s.toNode;l!==null&&e.contains(l)&&u!==null&&e.contains(u)&&zu(t,e,s,i,r)}}if(r.dragsTree)for(n=n.Ou();n.next();)zu(t,e,n.value,i,r)}else if(n instanceof Pe)for(e.add(n,t.Pd(r,n)),n=n.labelNodes;n.next();)zu(t,e,n.value,i,r);else n instanceof Vi||e.add(n,t.Pd(r,n,n.location))}function $c(t,e,n,i,r){if(e!==null&&e.count!==0){var o=z.alloc(),s=z.alloc();s.assign(n),isNaN(s.x)&&(s.x=0),isNaN(s.y)&&(s.y=0),(n=t.Mr)||Bd(t,e);for(var l=bn(),u=bn(),d=e.iterator,f=z.alloc();d.next();){var y=d.key,T=d.value;if(y.Zc()){var w=Vf(t,y,e);w!==null?l.push(new a(y,T,w)):(!r||y.canMove())&&(w=T.point,o.assign(w),t.computeMove(y,o.add(s),i,f),y.location=f,T.shifted===void 0&&(T.shifted=new z),T.shifted.assign(f.re(w)))}else d.key instanceof Pe&&u.push(d.sa)}for(z.free(f),r=l.length,d=0;d<r;d++)y=l[d],o.assign(y.info.point),y.Su.shifted===void 0&&(y.Su.shifted=new z),y.node.location=o.add(y.Su.shifted);for(r=z.alloc(),d=z.alloc(),y=u.length,T=0;T<y;T++){var N=u[T];if(w=N.key,w instanceof Pe)if(w.suspendsRouting){w.Tg=null,f=w.fromNode;var F=w.toNode;if(t.draggedLink!==null&&i.dragsLink)if(F=N.value.point,w.dragComputation===null)e.add(w,t.Pd(i,w,s)),Rc(w,s.x-F.x,s.y-F.y);else{N=z.allocAt(0,0),(f=w.i(0))&&f.w()&&N.assign(f);var nt=f=z.alloc().assign(N).add(s);i.isGridSnapEnabled&&(i.isGridSnapRealtime||t.lastInput.up)&&(nt=z.alloc(),Fd(t,w,f,nt,i)),f.assign(w.dragComputation(w,f,nt)).re(N),e.add(w,t.Pd(i,w,f)),Rc(w,f.x-F.x,f.y-F.y),z.free(N),z.free(f),nt!==f&&z.free(nt)}else f!==null&&(r.assign(f.location),nt=e.I(f),nt!==null&&r.re(nt.point)),F!==null&&(d.assign(F.location),nt=e.I(F),nt!==null&&d.re(nt.point)),f!==null&&F!==null?r.Xa(d)?(f=N.value.point,F=o,F.assign(r),F.re(f),e.add(w,t.Pd(i,w,r)),Rc(w,F.x,F.y)):(w.suspendsRouting=!1,w.bb()):(N=N.value.point,f=f!==null?r:F!==null?d:s,e.add(w,t.Pd(i,w,f)),Rc(w,f.x-N.x,f.y-N.y))}else(w.fromNode===null||w.toNode===null)&&(f=N.value.point,e.add(w,t.Pd(i,w,s)),Rc(w,s.x-f.x,s.y-f.y))}z.free(o),z.free(s),z.free(r),z.free(d),En(l),En(u),n||(Ds(t),Xc(t,e))}}Kt.prototype.computeMove=function(t,e,n,i){if(i===void 0&&(i=new z),i.assign(e),t===null)return i;var r=e,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&(r=z.alloc(),Fd(this,t,e,r,n)),n=t.dragComputation!==null?t.dragComputation(t,e,r):r;var s=t.minLocation,l=s.x;isNaN(l)&&(l=o?Math.round(1e3*t.location.x)/1e3:t.location.x),s=s.y,isNaN(s)&&(s=o?Math.round(1e3*t.location.y)/1e3:t.location.y);var u=t.maxLocation,d=u.x;return isNaN(d)&&(d=o?Math.round(1e3*t.location.x)/1e3:t.location.x),u=u.y,isNaN(u)&&(u=o?Math.round(1e3*t.location.y)/1e3:t.location.y),i.h(Math.max(l,Math.min(n.x,d)),Math.max(s,Math.min(n.y,u))),r!==e&&z.free(r),i};function _d(t){var e=t.toolManager.findTool("Dragging");return e!==null?e.dragOptions:t.Wm}function Fd(t,e,n,i,r){if(r===void 0&&(r=_d(t)),i.assign(n),e!==null){var o=t.grid;e=r.gridSnapCellSize,t=e.width,e=e.height;var s=r.gridSnapOrigin,l=s.x;if(s=s.y,r=r.gridSnapCellSpot,o!==null){var u=o.gridCellSize;isNaN(t)&&(t=u.width),isNaN(e)&&(e=u.height),o=o.gridOrigin,isNaN(l)&&(l=o.x),isNaN(s)&&(s=o.y)}o=z.allocAt(0,0),o.yi(0,0,t,e,r),It.No(n.x,n.y,l+o.x,s+o.y,t,e,i),z.free(o)}}function Bd(t,e){if(e!==null)for(t.Mr=!0,t=e.iterator;t.next();)e=t.key,e instanceof Pe&&(e.suspendsRouting=!0)}function Xc(t,e){if(e!==null){for(e=e.iterator;e.next();){var n=e.key;n instanceof Pe&&(n.suspendsRouting=!1,nv(n)&&n.bb())}t.Mr=!1}}function Vf(t,e,n){return e=e.containingGroup,e!==null&&(t=Vf(t,e,n),t!==null||(t=n.I(e),t!==null))?t:null}A=Kt.prototype,A.Pd=function(t,e,n){if(n===void 0)return new rc(Xe);var i=t.isGridSnapEnabled;return t.groupsSnapMembers||e.containingGroup===null||(i=!1),i?new rc(new z(Math.round(1e3*n.x)/1e3,Math.round(1e3*n.y)/1e3)):new rc(n.copy())};function Wf(t,e,n){if(e.diagram!==null&&e.diagram!==t&&Et("Cannot share a Layer with another Diagram: "+e+" of "+e.diagram),n===null?e.diagram!==null&&Et("Cannot add an existing Layer to this Diagram again: "+e):(n.diagram!==t&&Et("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),e===n&&Et("Cannot move a Layer before or after itself: "+e)),e.diagram!==t){e=e.name,t=t.Wa,n=t.count;for(var i=0;i<n;i++)t.M(i).name===e&&Et("Cannot add Layer with the name '"+e+"'; a Layer with the same name is already present in this Diagram.")}}A.Al=function(t){Wf(this,t,null),t.Xe(this);var e=this.Wa,n=e.count-1;if(!t.isTemporary)for(;0<=n&&e.M(n).isTemporary;)n--;return e.Gb(n+1,t),this.cc!==null&&this.cb(ao,"layers",this,null,t,null,n+1),this.N(),this.Ya(),this},A.Ww=function(t,e){Wf(this,t,e),t.Xe(this);var n=this.Wa,i=n.indexOf(t);0<=i&&(n.remove(t),this.cc!==null&&this.cb(ho,"layers",this,t,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===e){n.Gb(o,t);break}return this.cc!==null&&this.cb(ao,"layers",this,null,t,null,o),this.N(),0>i&&this.Ya(),this},A.Cy=function(t,e){Wf(this,t,e),t.Xe(this);var n=this.Wa,i=n.indexOf(t);0<=i&&(n.remove(t),this.cc!==null&&this.cb(ho,"layers",this,t,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===e){n.Gb(o+1,t);break}return this.cc!==null&&this.cb(ao,"layers",this,null,t,null,o+1),this.N(),0>i&&this.Ya(),this},A.kA=function(t){if(t.diagram!==this&&Et("Cannot remove a Layer from another Diagram: "+t+" of "+t.diagram),t.name!==""){var e=this.Wa,n=e.indexOf(t);if(e.remove(t)){for(e=t.Pa.copy().iterator;e.next();){var i=e.value,r=i.layerName;r!==t.name?i.layerName=r:i.layerName=""}this.cc!==null&&this.cb(ho,"layers",this,t,null,n,null),this.N(),this.Ya()}}},A.Qj=function(t){for(var e=this.layers;e.next();){var n=e.value;if(n.name===t)return n}return null},A.Yw=function(t){return this.pf===null&&(this.pf=new Te),this.pf.add(t),this.model.Pe(t),this},A.mA=function(t){this.pf!==null&&(this.pf.remove(t),this.pf.count===0&&(this.pf=null)),this.model.ik(t)},A.Pe=function(t){return this.zg===null&&(this.zg=new Te),this.zg.add(t),this},A.ik=function(t){this.zg!==null&&(this.zg.remove(t),this.zg.count===0&&(this.zg=null))},A.ds=function(t){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(t),t.change!==ps&&(this.isModified=!0),this.zg!==null)for(var e=this.zg,n=e.length,i=0;i<n;i++)e.M(i)(t)},A.cb=function(t,e,n,i,r,o,s){o===void 0&&(o=null),s===void 0&&(s=null);var l=new Qr;l.diagram=this,l.change=t,l.propertyName=e,l.object=n,l.oldValue=i,l.oldParam=o,l.newValue=r,l.newParam=s,this.ds(l)},A.g=function(t,e,n,i,r){this.cb(_r,t,this,e,n,i,r)},Kt.prototype.changeState=function(t,e){if(t!==null&&t.diagram===this){var n=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var i=t.change;if(i===_r){var r=t.object;if(no(r,t.propertyName,t.I(e)),r instanceof Rt){var o=r.part;o!==null&&o.Wb()}this.isModified=!0}else if(i===ao){var s=t.object,l=t.newParam,u=t.newValue;if(s instanceof Re)if(typeof l=="number"&&u instanceof Rt){e?s.pc(l):s.Gb(l,u);var d=s.part;d!==null&&d.Wb()}else typeof l=="number"&&u instanceof jo&&(u.isRow?Ey(s,l,e?void 0:u):Sy(s,l,e?void 0:u));else if(s instanceof ms){var f=t.oldParam===!0;typeof l=="number"&&u instanceof Rn&&(e?(u.isSelected=!1,u.isHighlighted=!1,u.Wb(),s.pc(f?l:-1,u,f)):s.oi(l,u,f))}else s instanceof Kt?typeof l=="number"&&u instanceof ms&&(e?this.Wa.mb(l):(u.Xe(this),this.Wa.Gb(l,u))):Et("unknown ChangedEvent.Insert object: "+t.toString());this.isModified=!0}else if(i===ho){var y=t.object,T=t.oldParam,w=t.oldValue;if(y instanceof Re)typeof T=="number"&&w instanceof Rt?e?y.Gb(T,w):y.pc(T):typeof T=="number"&&w instanceof jo&&(w.isRow?Ey(y,T,e?w:void 0):Sy(y,T,e?w:void 0));else if(y instanceof ms){var N=t.newParam===!0;typeof T=="number"&&w instanceof Rn&&(e?0>y.Pa.indexOf(w)&&y.oi(T,w,N):(w.isSelected=!1,w.isHighlighted=!1,w.Wb(),y.pc(N?T:-1,w,N)))}else y instanceof Kt?typeof T=="number"&&w instanceof ms&&(e?(w.Xe(this),this.Wa.Gb(T,w)):this.Wa.mb(T)):Et("unknown ChangedEvent.Remove object: "+t.toString());this.isModified=!0}else i!==ps&&Et("unknown ChangedEvent: "+t.toString())}finally{this.skipsModelSourceBindings=n}}},Kt.prototype.Ea=function(t){return this.undoManager.Ea(t)},Kt.prototype.eb=function(t){return this.undoManager.eb(t)},Kt.prototype.Kf=function(){return this.undoManager.Kf()},Kt.prototype.commit=function(t,e){e===void 0&&(e="");var n=this.skipsUndoManager;e===null&&(this.skipsUndoManager=!0,e=""),this.undoManager.Ea(e);var i=!1;try{t(this),i=!0}finally{i?this.undoManager.eb(e):this.undoManager.Kf(),this.skipsUndoManager=n}},Kt.prototype.updateAllTargetBindings=function(t){this.partManager.updateAllTargetBindings(t)},Kt.prototype.rp=function(){this.partManager.rp()};function Yf(t,e,n){var i=t.animationManager;if(t.vb||t.ld)t.Ca=n,Au(t),t.N(),t.Ee=!0,i.zb&&(Gs(i)||i.ce.add(i.H,"scale",e,t.Ca));else if(t.ta===null)t.Ca=n,Au(t);else{t.vb=!0;var r=t.viewportBounds.copy(),o=t.Aa,s=t.ya,l=t.zoomPoint.x,u=t.zoomPoint.y,d=t.contentAlignment;isNaN(l)&&(d.$c()?d.Hf(xs)?l=0:d.Hf(eo)&&(l=o-1):l=d.sb()?d.x*(o-1):o/2),isNaN(u)&&(d.$c()?d.Hf($r)?u=0:d.Hf(hs)&&(u=s-1):u=d.sb()?d.y*(s-1):s/2),t.scaleComputation===null||t.animationManager.defaultAnimation.isAnimating||(n=t.scaleComputation(t,n)),n<t.minScale&&(n=t.minScale),n>t.maxScale&&(n=t.maxScale),o=z.allocAt(t.pa.x+l/e-l/n,t.pa.y+u/e-u/n),t.position=o,z.free(o),t.Ca=n,Au(t),t.vb=!1,t.onViewportBoundsChanged(r,t.viewportBounds,e,!1),_l(t,!1),i.zb&&(Gs(i)||i.ce.add(i.H,"scale",e,t.Ca))}}Kt.prototype.onViewportBoundsChanged=function(t,e,n,i){if(!t.D(e)){i===void 0&&(i=!1),i||(this.Ee=!0),this.vd=!0;var r=this.layout;r===null||!r.isViewportSized||this.autoScale!==Qs||t.width===e.width&&t.height===e.height||r.C(),r=this.currentTool,this.Vk===!0&&r instanceof Dr&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),_u(r,this)),this.vb||this.invalidateViewport(t,e),Nu(this),this.fc.scale=n,this.fc.position.x=t.x,this.fc.position.y=t.y,this.fc.bounds.assign(t),this.fc.canvasSize.width=Math.round(t.width*n),this.fc.canvasSize.height=Math.round(t.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=i,this.R("ViewportBoundsChanged",this.fc,t),this.isVirtualized&&this.links.each(function(o){o.isAvoiding&&o.actualBounds.Yc(e)&&o.bb()})}};function Nu(t,e){var n=t.fe;if(n!==null&&n.visible){for(var i=Je.alloc(),r=1,o=1,s=n.O.s,l=s.length,u=0;u<l;u++){var d=s[u],f=Math.abs(d.interval);2>f||(w0(d.figure)?o=o*f/It.vx(o,f):r=r*f/It.vx(r,f))}if(s=n.gridCellSize,i.h(o*s.width,r*s.height),e!==void 0)r=e.width,o=e.height,t=e.x,s=e.y;else{if(e=Xt.alloc(),t=t.viewportBounds,e.h(t.x,t.y,t.width,t.height),!e.w()){Xt.free(e);return}r=e.width,o=e.height,t=e.x,s=e.y,Xt.free(e)}n.width=r+2*i.width,n.height=o+2*i.height,e=z.alloc(),It.No(t,s,0,0,i.width,i.height,e),e.offset(-i.width,-i.height),Je.free(i),n.part.location=e,z.free(e)}}Kt.prototype.clearSelection=function(t){t===void 0&&(t=!1);var e=this.selection;if(e.count!==0){t||this.R("ChangingSelection",e);for(var n=e.Fa(),i=n.length,r=0;r<i;r++)n[r].isSelected=!1;e.ka(),e.clear(),e.freeze(),t||this.R("ChangedSelection",e)}},Kt.prototype.select=function(t){t!==null&&t.diagram===this&&(!t.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),t.isSelected=!0,this.R("ChangedSelection",this.selection))},Kt.prototype.rA=function(t){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Ye(t))for(var e=t.length,n=0;n<e;n++){var i=t[n];i instanceof Rn||Et("Diagram.selectCollection given something that is not a Part: "+i),i.isSelected=!0}else for(t=t.iterator;t.next();)e=t.value,e instanceof Rn||Et("Diagram.selectCollection given something that is not a Part: "+e),e.isSelected=!0;this.R("ChangedSelection",this.selection)},Kt.prototype.clearHighlighteds=function(){var t=this.highlighteds;if(0<t.count){for(var e=t.Fa(),n=e.length,i=0;i<n;i++)e[i].isHighlighted=!1;t.ka(),t.clear(),t.freeze()}},A=Kt.prototype,A.Iz=function(t){t!==null&&t.diagram===this&&(!t.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),t.isHighlighted=!0)},A.Jz=function(t){t=new Ce().addAll(t);for(var e=this.highlighteds.copy().hp(t).iterator;e.next();)e.value.isHighlighted=!1;for(t=t.iterator;t.next();)e=t.value,e instanceof Rn||Et("Diagram.highlightCollection given something that is not a Part: "+e),e.isHighlighted=!0},A.scroll=function(t,e,n){n===void 0&&(n=1);var i=e==="up"||e==="down",r=0,o=z.alloc();if(t==="pixel")r=n;else if(t==="line")r=n*(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(t==="page")t=i?this.viewportBounds.height:this.viewportBounds.width,t*=this.scale,t!==0&&(r=n*Math.max(t-(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(t==="document"){r=this.documentBounds,n=this.viewportBounds,e==="up"?this.position=o.h(n.x,r.y):e==="left"?this.position=o.h(r.x,n.y):e==="down"?this.position=o.h(n.x,r.bottom-n.height):e==="right"&&(this.position=o.h(r.right-n.width,n.y)),z.free(o);return}Et("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+t)}r/=this.scale,n=this.position,e==="up"?this.position=o.h(n.x,n.y-r):e==="down"?this.position=o.h(n.x,n.y+r):e==="left"?this.position=o.h(n.x-r,n.y):e==="right"?this.position=o.h(n.x+r,n.y):Et("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+e),z.free(o)},A.tv=function(t){var e=this.viewportBounds;e.Re(t)||(t=t.center,t.x-=e.width/2,t.y-=e.height/2,this.position=t)},A.es=function(t){var e=this.viewportBounds;t=t.center,t.x-=e.width/2,t.y-=e.height/2,this.position=t},A.op=function(t){var e=this.Ab;e.reset(),this.Ca!==1&&e.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&e.translate(-n.x,-n.y),t.copy().transform(this.Ab)},A.zA=function(t){var e=this.Ab,n=t.x,i=t.y,r=n+t.width,o=i+t.height,s=e.m11,l=e.m12,u=e.m21,d=e.m22,f=e.dx,y=e.dy,T=n*s+i*u+f;e=n*l+i*d+y;var w=r*s+i*u+f;return t=r*l+i*d+y,i=n*s+o*u+f,n=n*l+o*d+y,s=r*s+o*u+f,r=r*l+o*d+y,o=Math.min(T,w),T=Math.max(T,w),w=Math.min(e,t),e=Math.max(e,t),o=Math.min(o,i),T=Math.max(T,i),w=Math.min(w,n),e=Math.max(e,n),o=Math.min(o,s),T=Math.max(T,s),w=Math.min(w,r),e=Math.max(e,r),new Xt(o,w,T-o,e-w)},A.Ps=function(t){var e=this.Ab;e.reset(),this.Ca!==1&&e.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&e.translate(-n.x,-n.y),He(t.copy(),this.Ab)};function hg(t){var e=t.isModified;t.Tw!==e&&(t.Tw=e,t.R("Modified"))}function Kf(t){return t=Vd.get(t),t!==null?new t:new hr}Kt.prototype.doModelChanged=function(t){var e=this;if(t.model===this.model){var n=t.change,i=t.propertyName;if(n===ps&&i[0]==="S")if(i==="StartingFirstTransaction"){var r=this;t=this.toolManager,t.mouseDownTools.each(function(u){return u.diagram=r}),t.mouseMoveTools.each(function(u){return u.diagram=r}),t.mouseUpTools.each(function(u){return u.diagram=r}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else i==="StartingUndo"||i==="StartingRedo"?(t=this.animationManager,t.defaultAnimation.isAnimating&&!this.skipsUndoManager&&t.Cc(),this.R("ChangingSelection",this.selection)):i==="StartedTransaction"&&(t=this.animationManager,t.defaultAnimation.isAnimating&&!this.skipsUndoManager&&t.Cc());else if(this.aa){this.aa=!1;try{if(t.modelChange===""&&n===ps){(i==="FinishedUndo"||i==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ds(this));var o=this.animationManager;i==="RolledBackTransaction"&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Ka(o),i==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),i!=="CommittedTransaction"&&i!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){e.isModified=!1},1);var s=t.isTransactionFinished;if(s&&(hg(this),this.As.clear(),bc(this.animationManager)),!this.Rt&&s&&this.lastInput.targetDiagram){this.Rt=!0;var l=this;Ur(function(){l.currentTool.standardMouseOver(),l.Rt=!1},10)}}}finally{this.aa=!0}}}};function Rh(t,e){e=e.O.s;for(var n=e.length,i=0;i<n;i++)Qc(t,e[i])}function Qc(t,e){if(e instanceof Ia){var n=e.element;if(n!==null&&n instanceof HTMLImageElement){n.Bg instanceof Ce&&n.Bg.add(t);var i=e.Eg;if(i!==null&&i.sq===!0&&e.diagram!==null&&e.diagram.Xn.add(e),n.hn)if(n=n.getAttribute("src")||"",i=t.Og.I(n),i===null)i=[],i.push(e),t.Og.add(n,i);else{for(t=0;t<i.length;t++)if(i[t]===e)return;i.push(e)}}}}function Zf(t,e){if(e instanceof Ia){var n=e.element;if(n!==null&&n instanceof HTMLImageElement&&n.hn){var i=n.getAttribute("src")||"",r=t.Og.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),r.length===0&&(t.Og.remove(i),n.Fq&&n.removeEventListener("load",n.Fq),n.Yp&&n.removeEventListener("error",n.Yp),delete n.Fq,delete n.Yp,n.Bg instanceof Ce&&n.Bg.remove(t),rf(i));break}}}}}Kt.prototype.Wd=function(){this.partManager.Wd()},Kt.prototype.Aj=function(t,e){this.Yd.Aj(t,e)},Kt.prototype.Cj=function(t,e){this.Yd.Cj(t,e)},Kt.prototype.findPartForKey=function(t){return this.partManager.findPartForKey(t)},Kt.prototype.Vb=function(t){return this.partManager.Vb(t)},Kt.prototype.findLinkForKey=function(t){return this.partManager.findLinkForKey(t)},A=Kt.prototype,A.Lc=function(t){return this.partManager.Lc(t)},A.ii=function(t){return this.partManager.ii(t)},A.Kc=function(t){return this.partManager.Kc(t)},A.ms=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.partManager.ms.apply(this.partManager,e instanceof Array?e:$n(gn(e)))},A.ls=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.partManager.ls.apply(this.partManager,e instanceof Array?e:$n(gn(e)))};function Au(t){var e=t.pa,n=t.Ca;t.Rw.h(e.x,e.y,Math.max(t.Aa,0)/n,Math.max(t.ya,0)/n),t.vd=!0}function $f(t,e){t.Zi=!1;var n=t.Sp;n.D(e)||(n=n.copy(),t.Sp.assign(e),_l(t,!1),t.R("DocumentBoundsChanged",void 0,n),t.Ee=!0,t.N())}A.Va=function(){if(this.Zi){var t=Xt.alloc();$f(this,this.computeBounds(t)),Xt.free(t)}},A.rz=function(){for(var t=new Ce,e=this.nodes;e.next();){var n=e.value;n.isTopLevel&&t.add(n)}for(e=this.links;e.next();)n=e.value,n.isTopLevel&&t.add(n);return t.iterator},A.qz=function(){return this.ai.iterator},A.Uz=function(t){Ds(this),t&&Ud(this,!0),this.ld?Xf(this,!1):(this.Jk=!0,Sl(this))};function Ud(t,e){for(var n=t.ai.iterator;n.next();)dg(t,n.value,e);t.layout&&(e?t.layout.isValidLayout=!1:t.layout.C())}function dg(t,e,n){if(e!==null){for(var i=e.gl.iterator;i.next();)dg(t,i.value,n);e.layout!==null&&(n?e.layout.isValidLayout=!1:e.layout.C())}}function Xf(t,e){if(t.xh&&!t.lt){var n=t.aa;t.aa=!0;var i=t.undoManager.transactionLevel,r=t.layout,o=t.animationManager;try{i===0&&(t.undoManager.isInternalTransaction=!0,t.Ea("Layout")),1>=i&&!o.defaultAnimation.isAnimating&&!o.zb&&(e||Qo(o,"Layout")),t.xh=!1;for(var s=t.ai.iterator;s.next();)Qf(t,s.value,e,i);r.isValidLayout||(!e||r.isRealtime||r.isRealtime===null||i===0?(r.doLayout(t),Ds(t),r.isValidLayout=!0):t.xh=!0)}finally{e=t.undoManager.isInternalTransaction,i===0&&(t.eb("Layout"),t.undoManager.isInternalTransaction=!1),!e||i!==0&&i!==1||Ka(o),t.aa=n}}}function Qf(t,e,n,i){if(e!==null){for(var r=e.gl.iterator;r.next();)Qf(t,r.value,n,i);r=e.layout,r===null||r.isValidLayout||(!n||r.isRealtime||i===0?(e.rh=!e.location.w(),r.doLayout(e),e.C(32),id(t,e),r.isValidLayout=!0):t.xh=!0)}}A.yz=function(){for(var t=new Te,e=this.nodes;e.next();){var n=e.value;n.isTopLevel&&n.kh()===null&&t.add(n)}return t.iterator};function c0(t){function e(r){var o=r.toLowerCase(),s=new Te;n.add(r,s),n.add(o,s),i.add(r,r),i.add(o,r)}var n=new Zt,i=new Zt;e("InitialAnimationStarting"),e("AnimationStarting"),e("AnimationFinished"),e("BackgroundSingleClicked"),e("BackgroundDoubleClicked"),e("BackgroundContextClicked"),e("ClipboardChanged"),e("ClipboardPasted"),e("DocumentBoundsChanged"),e("ExternalObjectsDropped"),e("GainedFocus"),e("InitialLayoutCompleted"),e("LayoutCompleted"),e("LinkDrawn"),e("LinkRelinked"),e("LinkReshaped"),e("LostFocus"),e("Modified"),e("ObjectSingleClicked"),e("ObjectDoubleClicked"),e("ObjectContextClicked"),e("PartCreated"),e("PartResized"),e("PartRotated"),e("SelectionMoved"),e("SelectionCopied"),e("SelectionDeleting"),e("SelectionDeleted"),e("SelectionGrouped"),e("SelectionUngrouped"),e("ChangingSelection"),e("ChangedSelection"),e("SubGraphCollapsed"),e("SubGraphExpanded"),e("TextEdited"),e("TreeCollapsed"),e("TreeExpanded"),e("ViewportBoundsChanged"),e("InvalidateDraw"),t.iw=n,t.hw=i}function fg(t,e){var n=t.hw.I(e);return n!==null?n:t.hw.I(e.toLowerCase())}function Hd(t,e){var n=t.iw.I(e);if(n!==null||(n=t.iw.I(e.toLowerCase()),n!==null))return n;Et("Unknown DiagramEvent name: "+e)}A.Bj=function(t,e){return t=Hd(this,t),t!==null&&t.add(e),this},A.am=function(t,e){t=Hd(this,t),t!==null&&t.remove(e)},A.R=function(t,e,n){var i=Hd(this,t),r=new yl;if(r.diagram=this,t=fg(this,t),t!==null&&(r.name=t),e!==void 0&&(r.subject=e),n!==void 0&&(r.parameter=n),e=i.length,e===1)i.M(0)(r);else if(e!==0)for(i=i.Fa(),n=0;n<e;n++)(0,i[n])(r)};function zd(t){if(t.animationManager.isTicking)return!1;var e=t.currentTool;return e===t.toolManager.findTool("Dragging")?!t.Mr||e.isComplexRoutingRealtime:!0}A.Yj=function(t,e){return jd(this,!1,null,e||null).Yj(t.x,t.y,t.width,t.height)},Kt.prototype.computeOccupiedArea=function(t){return this.isVirtualized?this.viewportBounds.copy():this.Zi?_f(this,t):t.assign(this.documentBounds)};function jd(t,e,n,i){var r=t.Xh;if(r===null&&(t.Xh=r=new kp(t.avoidanceCellSize)),r.vs||r.group!==n||r.Yx!==i){if(r.Hx=Math.max(r.Os+1,Math.floor(t.avoidanceLimit/t.avoidanceCellSize.width)),r.Ix=Math.max(r.Os+1,Math.floor(t.avoidanceLimit/t.avoidanceCellSize.height)),n!==null&&(n=pg(t,n)),n===null){e=Xt.alloc(),t.computeOccupiedArea(e),e.Bc(100,100),r.initialize(e);for(var o=t.nodes;o.next();){var s=o.value,l=s.layer;l!==null&&l.visible&&!l.isTemporary&&Gd(t,s,i,e)}Xt.free(e)}else{for(0<n.memberParts.count&&(e=t.computePartsBounds(n.memberParts,!1),e.Bc(20,20),r.initialize(e)),e=Xt.alloc(),o=n.memberParts;o.next();)s=o.value,s instanceof tn&&Gd(t,s,i,e);Xt.free(e)}r.group=n,r.Yx=i,r.vs=!1}else e&&gx(r);return r}function pg(t,e){return e.avoidable&&!e.isLinkLabel?e:e.containingGroup!==null?pg(t,e.containingGroup):null}function Gd(t,e,n,i){if(e!==n&&e.isVisible()){if(e.avoidable&&!e.isLinkLabel){e=e.getAvoidableRect(i),t=t.Xh;var r=e.x,o=e.y;if(cf(t,r,o))for(n=(o-t.Od)/t.sc|0,i=Math.min((r+e.width-t.Nd)/t.rc|0,t.di),e=Math.min((o+e.height-t.Od)/t.sc|0,t.ei),r=(r-t.Nd)/t.rc|0;r<=i;r++)if(o=t.ac[r],o.fill)o.fill(Oc,n,e+1);else for(var s=n;s<=e;s++)o[s]=Oc}else if(e instanceof Jn)for(e=e.memberParts;e.next();)r=e.value,r instanceof tn&&Gd(t,r,n,i)}}function Sc(t,e){t.Xh===null||t.Xh.vs||e!==void 0&&(!e.avoidable||e.isLinkLabel)||(t.Xh.vs=!0)}Kt.prototype.gs=function(t){this.wp.assign(t),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Jf(this)};function Jf(t){t.vk===-1&&(t.vk=Ur(function(){if(t.vk!==-1&&(t.ug(),t.lastInput.event!==null)){var e=t.computeAutoScrollPosition(t.wp);e.Xa(t.position)||(t.position=e,t.lastInput.documentPoint=t.Ps(t.wp),t.doMouseMove(),t.Zi=!0,e=Xt.alloc(),t.computeBounds(e),e.ed(t.documentBounds),$f(t,e),Xt.free(e),t.Fc=!0,t.bd(),Jf(t))}},t.vp))}Kt.prototype.ug=function(){this.vk!==-1&&(sn.clearTimeout(this.vk),this.vk=-1)},Kt.prototype.computeAutoScrollPosition=function(t){var e=this.position,n=this.xp;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return e;var i=this.viewportBounds,r=this.scale;i=Xt.allocAt(0,0,i.width*r,i.height*r);var o=z.allocAt(0,0);if(t.x>=i.x&&t.x<i.x+n.left&&this.allowHorizontalScroll){var s=Math.max(this.scrollHorizontalLineChange,1);s|=0,o.x-=s,t.x<i.x+n.left/2&&(o.x-=s),t.x<i.x+n.left/4&&(o.x-=4*s)}else t.x<=i.x+i.width&&t.x>i.x+i.width-n.right&&this.allowHorizontalScroll&&(s=Math.max(this.scrollHorizontalLineChange,1),s|=0,o.x+=s,t.x>i.x+i.width-n.right/2&&(o.x+=s),t.x>i.x+i.width-n.right/4&&(o.x+=4*s));return t.y>=i.y&&t.y<i.y+n.top&&this.allowVerticalScroll?(s=Math.max(this.scrollVerticalLineChange,1),s|=0,o.y-=s,t.y<i.y+n.top/2&&(o.y-=s),t.y<i.y+n.top/4&&(o.y-=4*s)):t.y<=i.y+i.height&&t.y>i.y+i.height-n.bottom&&this.allowVerticalScroll&&(s=Math.max(this.scrollVerticalLineChange,1),s|=0,o.y+=s,t.y>i.y+i.height-n.bottom/2&&(o.y+=s),t.y>i.y+i.height-n.bottom/4&&(o.y+=4*s)),o.Xa(Xe)||(e=new z(e.x+o.x/r,e.y+o.y/r)),Xt.free(i),z.free(o),e},A=Kt.prototype,A.Cs=function(){return null},A.av=function(){return null},A.bs=function(t,e){this.pj.add(t,e)},A.Fu=function(t){(this.Pw=t)||this.nodes.each(function(e){e instanceof Jn&&(e.$p=null)})};function rd(t,e,n){function i(){var f=+new Date;for(o=!0,s.reset();s.next();)if(!s.value[0].al){o=!1;break}o||f-d>u?e(n,r,l):sn.requestAnimationFrame(i)}for(var r=n.callback,o=!0,s=t.Og.iterator;s.next();)if(!s.value[0].al){o=!1;break}if(typeof r!="function"||o)return e(n,r,t);var l=t,u=n.callbackTimeout||300,d=+new Date;return sn.requestAnimationFrame(function(){i()}),null}A.Wz=function(t){return vo?(t===void 0&&(t={}),t.returnType="Image",this.Jx(t)):null},A.Jx=function(t){return t===void 0&&(t={}),rd(this,this.Xz,t)},A.Xz=function(t,e,n){var i=gg(n,t,"canvas",null);if(i===null)return null;n=i.Z.canvas;var r=null;if(n!==null)switch(r=t.returnType,r===void 0?r="string":r=r.toLowerCase(),r){case Dh+"data":r=i.getImageData(0,0,n.width,n.height);break;case Dh:i=(t.document||document).createElement("img"),i.src=n.toDataURL(t.type,t.details),r=i;break;case"blob":return typeof e!="function"&&Et('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof n.toBlob=="function"?(n.toBlob(e,t.type,t.details),"toBlob"):(e(null),null);default:r=n.toDataURL(t.type,t.details)}return typeof e=="function"?(e(r),null):r};function gg(t,e,n,i){if(t.animationManager.Cc(),t.bd(),t.ta===null)return null;typeof e!="object"&&Et("properties argument must be an Object.");var r=e.size||null,o=e.scale||null;e.scale!==void 0&&isNaN(e.scale)&&(o="NaN");var s=e.maxSize;e.maxSize===void 0&&(s=n==="SVG"?new Je(1/0,1/0):new Je(2e3,2e3));var l=e.position||null,u=e.parts||null,d=e.padding===void 0?1:e.padding,f=e.background||null,y=e.omitTemporary;y===void 0&&(y=!0);var T=e.document||document,w=e.elementFinished||null,N=e.showTemporary;N===void 0&&(N=!y),e=e.showGrid,e===void 0&&(e=N),r!==null&&isNaN(r.width)&&isNaN(r.height)&&(r=null),typeof d=="number"?d=new ii(d):d instanceof ii||Et("MakeImage padding must be a Margin or a number."),d.left=Math.max(d.left,0),d.right=Math.max(d.right,0),d.top=Math.max(d.top,0),d.bottom=Math.max(d.bottom,0),t.ib.Vc(!0),y=new Bl(null,T,void 0,!0);var F=y.context;if(!(r||o||u||l))return y.width=t.Aa+Math.ceil(d.left+d.right),y.height=t.ya+Math.ceil(d.top+d.bottom),n==="SVG"?i===null?null:(i.resize(y.width,y.height,y.width,y.height),i.ownerDocument=T,i.hs=w,Pd(t,i.context,d,new Je(y.width,y.height),t.Ca,t.pa,u,f,N,e),i.context):(t.Xm=!1,Pd(t,F,d,new Je(y.width,y.height),t.Ca,t.pa,u,f,N,e),t.Xm=!0,y.context);var nt=t.Pp,X=t.documentBounds.copy();if(X.Fv(t.yb),N)for(var ut=t.Wa.s,ht=ut.length,yt=0;yt<ht;yt++){var Nt=ut[yt];if(Nt.visible&&Nt.isTemporary){Nt=Nt.Pa.s;for(var Yt=Nt.length,Qe=0;Qe<Yt;Qe++){var xn=Nt[Qe];xn.isInDocumentBounds&&xn.isVisible()&&(xn=xn.actualBounds,xn.w()&&X.ed(xn))}}}if(ut=new z(X.x,X.y),u!==null){for(ht=new Xt(0,0,0,0),yt=!0,Nt=u.iterator,Nt.reset();Nt.next();)Yt=Nt.value,Yt instanceof Rn&&(Qe=Yt.layer,Qe!==null&&!Qe.visible||Qe!==null&&!N&&Qe.isTemporary||!Yt.isVisible()||(Yt=Yt.actualBounds,Yt.w()&&(yt?(yt=!1,ht.assign(Yt)):ht.ed(Yt))));X.width=ht.width,X.height=ht.height,ut.x=ht.x,ut.y=ht.y}return l!==null&&l.w()&&(ut=l,o||(o=nt)),ht=l=0,d!==null&&(l=d.left+d.right,ht=d.top+d.bottom),yt=Nt=0,r!==null&&(Nt=r.width,yt=r.height,isFinite(Nt)&&(Nt=Math.max(0,Nt-l)),isFinite(yt)&&(yt=Math.max(0,yt-ht))),r!==null&&o!==null?(o==="NaN"&&(o=nt),r.w()?(r=Nt,X=yt):isNaN(yt)?(r=Nt,X=X.height*o):(r=X.width*o,X=yt)):r!==null?r.w()?(o=Math.min(Nt/X.width,yt/X.height),r=Nt,X=yt):isNaN(yt)?(o=Nt/X.width,r=Nt,X=X.height*o):(o=yt/X.height,r=X.width*o,X=yt):o!==null?o==="NaN"&&s.w()?(o=Math.min((s.width-l)/X.width,(s.height-ht)/X.height),o>nt?(o=nt,r=X.width,X=X.height):(r=s.width,X=s.height)):(r=X.width*o,X=X.height*o):(o=nt,r=X.width,X=X.height),d!==null?(r+=l,X+=ht):d=new ii(0),s!==null&&(nt=s.width,s=s.height,isNaN(nt)&&(nt=2e3),isNaN(s)&&(s=2e3),isFinite(nt)&&(r=Math.min(r,nt)),isFinite(s)&&(X=Math.min(X,s))),y.width=Math.ceil(r),y.height=Math.ceil(X),n==="SVG"?i===null?null:(i.resize(y.width,y.height,y.width,y.height),i.ownerDocument=T,i.hs=w,Pd(t,i.context,d,new Je(Math.ceil(r),Math.ceil(X)),o,ut,u,f,N,e),i.context):(t.Xm=!1,Pd(t,F,d,new Je(Math.ceil(r),Math.ceil(X)),o,ut,u,f,N,e),t.Xm=!0,y.context)}Mn.Object.defineProperties(Kt.prototype,{renderer:{get:function(){return this.nl},set:function(t){this instanceof x||(t===""&&(t="default"),t=t.toLowerCase(),t!==this.nl&&(this.nl=t,t==="default"||t==="canvas"?(t=this.pj.get("svg"),t!==null&&t.Oa.remove(),this.ta&&(this.ib=this.ta.context)):t==="svg"?(this.pj.contains("svg")?t=this.pj.get("svg"):(t=new Iu(this,sn.document),this.bs("svg",t)),this.div!==null&&this.div.appendChild(t.Oa),this.ib=t.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))):t!=="debug"||this.pj.contains("SVG")||(t=new Iu(this,sn.document),this.bs("SVG",t),t.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(t.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(t){if(this.Ka!==t){var e=this.Ka;e!==null?(e.H=void 0,e.goDiagram=void 0,e.go=void 0,e.innerHTML="",this.ta!==null&&(e=this.ta.Oa,this.removeEventListener(e,"pointermove",this.dk,!1),this.removeEventListener(e,"pointerdown",this.ui,!1),this.removeEventListener(e,"pointerup",this.fk,!1),this.removeEventListener(e,"pointerout",this.ek,!1),this.removeEventListener(e,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),e=this.toolManager,e!==null&&(e.mouseDownTools.each(function(n){n.cancelWaitAfter()}),e.mouseMoveTools.each(function(n){n.cancelWaitAfter()}),e.mouseUpTools.each(function(n){n.cancelWaitAfter()})),e.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(sn,"resize",this.Ov,!1),this.removeEventListener(sn,"wheel",this.$j,!0),Uu===this&&(Uu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,t!==null&&((e=t.H)&&(e.div=null),Df(this,t),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(t){this.nt!==t&&(this.nt=t,t!==null&&(this.Vt=t.fromPort,this.Wt=t.toPort))}},Mx:{get:function(){return this.Vt},set:function(t){this.Vt=t}},Nx:{get:function(){return this.Wt},set:function(t){this.Wt=t}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(t){this.Wg=t,this.cc.skipsUndoManager=t}},delaysLayout:{get:function(){return this.lt},set:function(t){this.lt=t}},opacity:{get:function(){return this.pb},set:function(t){var e=this.pb;e!==t&&((0>t||1<t)&&rn(t,"0 <= value <= 1",Kt,"opacity"),this.pb=t,this.g("opacity",e,t),this.N())}},validCycle:{get:function(){return this.wu},set:function(t){var e=this.wu;e!==t&&(this.wu=t,this.g("validCycle",e,t))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var t=this.cc;return t===null?!1:t.isReadOnly},set:function(t){var e=this.cc;e!==null&&(e.isReadOnly=t)}},isReadOnly:{get:function(){return this.Gg},set:function(t){var e=this.Gg;e!==t&&(this.Gg=t,this.g("isReadOnly",e,t))}},isEnabled:{get:function(){return this.Jd},set:function(t){var e=this.Jd;e!==t&&(this.Jd=t,this.g("isEnabled",e,t))}},allowClipboard:{get:function(){return this.Us},set:function(t){var e=this.Us;e!==t&&(this.Us=t,this.g("allowClipboard",e,t))}},allowCopy:{get:function(){return this.Fi},set:function(t){var e=this.Fi;e!==t&&(this.Fi=t,this.g("allowCopy",e,t))}},allowDelete:{get:function(){return this.Gi},set:function(t){var e=this.Gi;e!==t&&(this.Gi=t,this.g("allowDelete",e,t))}},allowDragOut:{get:function(){return this.Vs},set:function(t){var e=this.Vs;e!==t&&(this.Vs=t,this.g("allowDragOut",e,t))}},allowDrop:{get:function(){return this.Ws},set:function(t){var e=this.Ws;e!==t&&(this.Ws=t,this.g("allowDrop",e,t))}},allowTextEdit:{get:function(){return this.Pi},set:function(t){var e=this.Pi;e!==t&&(this.Pi=t,this.g("allowTextEdit",e,t))}},allowGroup:{get:function(){return this.Hi},set:function(t){var e=this.Hi;e!==t&&(this.Hi=t,this.g("allowGroup",e,t))}},allowUngroup:{get:function(){return this.Qi},set:function(t){var e=this.Qi;e!==t&&(this.Qi=t,this.g("allowUngroup",e,t))}},allowInsert:{get:function(){return this.Ys},set:function(t){var e=this.Ys;e!==t&&(this.Ys=t,this.g("allowInsert",e,t))}},allowLink:{get:function(){return this.Ii},set:function(t){var e=this.Ii;e!==t&&(this.Ii=t,this.g("allowLink",e,t))}},allowRelink:{get:function(){return this.Ki},set:function(t){var e=this.Ki;e!==t&&(this.Ki=t,this.g("allowRelink",e,t))}},allowMove:{get:function(){return this.Ji},set:function(t){var e=this.Ji;e!==t&&(this.Ji=t,this.g("allowMove",e,t))}},allowReshape:{get:function(){return this.Li},set:function(t){var e=this.Li;e!==t&&(this.Li=t,this.g("allowReshape",e,t))}},allowResize:{get:function(){return this.Mi},set:function(t){var e=this.Mi;e!==t&&(this.Mi=t,this.g("allowResize",e,t))}},allowRotate:{get:function(){return this.Ni},set:function(t){var e=this.Ni;e!==t&&(this.Ni=t,this.g("allowRotate",e,t))}},allowSelect:{get:function(){return this.Oi},set:function(t){var e=this.Oi;e!==t&&(this.Oi=t,this.g("allowSelect",e,t))}},allowUndo:{get:function(){return this.Zs},set:function(t){var e=this.Zs;e!==t&&(this.Zs=t,this.g("allowUndo",e,t))}},allowZoom:{get:function(){return this.at},set:function(t){var e=this.at;e!==t&&(this.at=t,this.g("allowZoom",e,t))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(t){var e=this.nn;e!==t&&(this.nn=t,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",e,t),_l(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(t){var e=this.mn;e!==t&&(this.mn=t,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",e,t),_l(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(t){var e=this.Xs;e!==t&&(this.Xs=t,this.g("allowHorizontalScroll",e,t),_l(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(t){var e=this.$s;e!==t&&(this.$s=t,this.g("allowVerticalScroll",e,t),_l(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(t){var e=this.iu;e!==t&&(0>t&&rn(t,">= 0",Kt,"scrollHorizontalLineChange"),this.iu=t,this.g("scrollHorizontalLineChange",e,t))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(t){var e=this.mu;e!==t&&(0>t&&rn(t,">= 0",Kt,"scrollVerticalLineChange"),this.mu=t,this.g("scrollVerticalLineChange",e,t))}},lastInput:{get:function(){return this.cj},set:function(t){this.cj=t}},previousInput:{get:function(){return this.Qg},set:function(t){this.Qg=t}},firstInput:{get:function(){return this.bq},set:function(t){this.bq=t}},currentCursor:{get:function(){return this.it},set:function(t){if(t===""&&(t=this.Op),this.it!==t){var e=this.ta,n=this.Ka;if(e!==null&&n!==null){this.it=t;var i=e.style.cursor;e.style.cursor=t,n.style.cursor=t,e.style.cursor===i&&(e.style.cursor="-webkit-"+t,n.style.cursor="-webkit-"+t,e.style.cursor===i&&(e.style.cursor="-moz-"+t,n.style.cursor="-moz-"+t,e.style.cursor===i&&(e.style.cursor=t,n.style.cursor=t)))}}}},defaultCursor:{get:function(){return this.Op},set:function(t){t===""&&(t="auto");var e=this.Op;e!==t&&(this.Op=t,this.g("defaultCursor",e,t))}},click:{get:function(){return this.zh},set:function(t){var e=this.zh;e!==t&&(this.zh=t,this.g("click",e,t))}},doubleClick:{get:function(){return this.Fh},set:function(t){var e=this.Fh;e!==t&&(this.Fh=t,this.g("doubleClick",e,t))}},contextClick:{get:function(){return this.Bh},set:function(t){var e=this.Bh;e!==t&&(this.Bh=t,this.g("contextClick",e,t))}},mouseOver:{get:function(){return this.Qh},set:function(t){var e=this.Qh;e!==t&&(this.Qh=t,this.g("mouseOver",e,t))}},mouseHover:{get:function(){return this.Oh},set:function(t){var e=this.Oh;e!==t&&(this.Oh=t,this.g("mouseHover",e,t))}},mouseHold:{get:function(){return this.Nh},set:function(t){var e=this.Nh;e!==t&&(this.Nh=t,this.g("mouseHold",e,t))}},mouseDragOver:{get:function(){return this.Qt},set:function(t){var e=this.Qt;e!==t&&(this.Qt=t,this.g("mouseDragOver",e,t))}},mouseDrop:{get:function(){return this.Lh},set:function(t){var e=this.Lh;e!==t&&(this.Lh=t,this.g("mouseDrop",e,t))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(t){var e=this.xt;e!==t&&(this.xt=t,this.g("handlesDragDropForTopLevelParts",e,t))}},mouseEnter:{get:function(){return this.Mh},set:function(t){var e=this.Mh;e!==t&&(this.Mh=t,this.g("mouseEnter",e,t))}},mouseLeave:{get:function(){return this.Ph},set:function(t){var e=this.Ph;e!==t&&(this.Ph=t,this.g("mouseLeave",e,t))}},toolTip:{get:function(){return this.$h},set:function(t){var e=this.$h;e!==t&&(this.$h=t,this.g("toolTip",e,t))}},contextMenu:{get:function(){return this.Ch},set:function(t){var e=this.Ch;e!==t&&(this.Ch=t,this.g("contextMenu",e,t))}},commandHandler:{get:function(){return this.nb},set:function(t){this.nb!==t&&(this.nb=t,t.Xe(this))}},toolManager:{get:function(){return this.te},set:function(t){this.te!==t&&(this.te=t,t.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(t){var e=this.ob;e!==t&&(this.ob=t,t.diagram=this,this.currentTool===e&&(this.currentTool=t))}},currentTool:{get:function(){return this.hb},set:function(t){var e=this.hb;e&&(e.isActive&&e.doDeactivate(),e.cancelWaitAfter(),e.doStop()),t===null&&(t=this.defaultTool),t!==null&&(this.hb=t,t.diagram=this,t.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(t){var e=this.Nt;if(e!==t)if(0<=t&&!isNaN(t)){if(this.Nt=t,this.g("maxSelectionCount",e,t),!this.undoManager.isUndoingRedoing&&(t=this.selection.count-t,0<t)){this.R("ChangingSelection",this.selection),e=this.selection.Fa();for(var n=0;n<t;n++)e[n].isSelected=!1;this.R("ChangedSelection",this.selection)}}else rn(t,">= 0",Kt,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(t){var e=this.St;e!==t&&(this.St=t,this.g("nodeSelectionAdornmentTemplate",e,t))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(t){var e=this.wt;e!==t&&(this.wt=t,this.g("groupSelectionAdornmentTemplate",e,t))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(t){var e=this.Kt;e!==t&&(this.Kt=t,this.g("linkSelectionAdornmentTemplate",e,t))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var t=this.undoManager;return t.isEnabled?t.currentTransaction!==null?!0:this.rn&&this.Ce!==t.historyIndex:this.rn},set:function(t){if(this.rn!==t){this.rn=t;var e=this.undoManager;!t&&e.isEnabled&&(this.Ce=e.historyIndex),t||hg(this)}}},model:{get:function(){return this.cc},set:function(t){var e=this.cc;if(e!==t){this.currentTool.doCancel(),e&&e.undoManager!==t.undoManager&&e.undoManager.isInTransaction&&Et("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Of(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var i=this.vb;this.vb=!0,Qo(this.animationManager,"Model"),e&&(this.pf!==null&&this.pf.each(function(o){return e.ik(o)}),e.ik(this.Oc)),this.cc=t,this.partManager=Kf(this.cc.type);for(var r=0;r<n.length;r++)this.add(n[r]);t.Pe(this.Hb),this.partManager.addAllModeledParts(),t.ik(this.Hb),t.Pe(this.Oc),this.pf!==null&&this.pf.each(function(o){return t.Pe(o)}),this.vb=i,this.Ya(),this.vb||this.N(),e&&t.undoManager.copyProperties(e.undoManager)}}},aa:{get:function(){return this.rw},set:function(t){this.rw=t}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(t){this.Iw=t}},Ns:{get:function(){return this.ou},set:function(t){this.ou=t}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(t){var e=this.Lg.I("");e!==t&&(this.Lg.add("",t),this.g("nodeTemplate",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(t){var e=this.Lg;e!==t&&(this.Lg=t,this.g("nodeTemplateMap",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(t){var e=this.Yi.I("");e!==t&&(this.Yi.add("",t),this.g("groupTemplate",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(t){var e=this.Yi;e!==t&&(this.Yi=t,this.g("groupTemplateMap",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(t){var e=this.Kh.I("");e!==t&&(this.Kh.add("",t),this.g("linkTemplate",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(t){var e=this.Kh;e!==t&&(this.Kh=t,this.g("linkTemplateMap",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(t){var e=this.ta;e!==null&&(e=e.Oa,e instanceof SVGElement||(t?(this.lastInput.bubbles=!1,this.removeEventListener(e,"pointermove",this.dk,!1),this.removeEventListener(e,"pointerdown",this.ui,!1),this.removeEventListener(e,"pointerup",this.fk,!1),this.removeEventListener(e,"pointerout",this.ek,!1),this.removeEventListener(e,"pointercancel",this.ck,!1),this.addEventListener(sn,"pointermove",this.dk,!0),this.addEventListener(sn,"pointerdown",this.ui,!0),this.addEventListener(sn,"pointerup",this.fk,!0),this.addEventListener(sn,"pointerout",this.ek,!0),this.addEventListener(sn,"pointercancel",this.ck,!0),this.removeEventListener(e,"wheel",this.$j,!1),this.addEventListener(sn,"wheel",this.$j,!0),this.addEventListener(sn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(sn,"pointermove",this.dk,!0),this.removeEventListener(sn,"pointerdown",this.ui,!0),this.removeEventListener(sn,"pointerup",this.fk,!0),this.removeEventListener(sn,"pointerout",this.ek,!0),this.removeEventListener(sn,"pointercancel",this.ck,!0),this.addEventListener(e,"pointermove",this.dk,!1),this.addEventListener(e,"pointerdown",this.ui,!1),this.addEventListener(e,"pointerup",this.fk,!1),this.addEventListener(e,"pointerout",this.ek,!1),this.addEventListener(e,"pointercancel",this.ck,!1),this.removeEventListener(sn,"wheel",this.$j,!0),this.removeEventListener(sn,"selectstart",this.preventDefault,!1),this.addEventListener(e,"wheel",this.$j,!1)),this.qw=t))}},position:{get:function(){return this.pa},set:function(t){var e=z.alloc().assign(this.pa);if(!e.D(t)){var n=this.viewportBounds.copy();this.pa.assign(t),Yc(this.animationManager,e,this.pa),this.vb||this.ta===null&&!this.wo.w()?Au(this):(this.vb=!0,t=this.scale,Ff(this,this.Sp,this.Aa/t,this.ya/t,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(n,this.viewportBounds,this.Ca,!1)}z.free(e)}},initialPosition:{get:function(){return this.zt},set:function(t){this.zt.D(t)||(this.zt=t.J())}},initialScale:{get:function(){return this.At},set:function(t){this.At!==t&&(this.At=t)}},grid:{get:function(){return this.fe===null&&(this.fe=ag(this)),this.fe},set:function(t){var e=this.fe;if(e!==t){e===null&&(e=this.fe=ag(this)),t.type!==Re.Grid&&Et("Diagram.grid must be a Panel of type Panel.Grid");var n=e.panel;n!==null&&n.remove(e),this.fe=t,t.name="GRID",n!==null&&n.add(t),Nu(this),this.N(),this.g("grid",e,t)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(t){var e=this.viewSize;e.D(t)||(this.wo=t=t.J(),this.ya=this.Aa=0,t.w()?(this.Aa=t.width,this.ya=t.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Au(this),this.Ya(),this.g("viewSize",e,t),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(t){var e=this.ut;e.D(t)||(t.width!==-1/0&&t.height!==1/0&&t.height!==-1/0||Et("fixedBounds width/height must not be Infinity"),this.ut=t=t.J(),this.Ya(),this.g("fixedBounds",e,t))}},scrollMargin:{get:function(){return this.rj},set:function(t){typeof t=="number"&&(t=new ii(t));var e=this.rj;e.D(t)||(this.rj=t=t.J(),this.g("scrollMargin",e,t),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(t){var e=this.sj;e!==t&&(this.sj=t,t===Tc&&_l(this,!1),this.g("scrollMode",e,t),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(t){var e=this.nu;e!==t&&(this.nu=t,this.g("scrollsPageOnFocus",e,t))}},positionComputation:{get:function(){return this.Zt},set:function(t){var e=this.Zt;e!==t&&(this.Zt=t,_l(this,!1),this.g("positionComputation",e,t))}},scaleComputation:{get:function(){return this.fu},set:function(t){var e=this.fu;e!==t&&(this.fu=t,Yf(this,this.scale,this.scale),this.g("scaleComputation",e,t))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(t){var e=this.It;e!==t&&(this.It=t,this.g("isVirtualized",e,t))}},scale:{get:function(){return this.Ca},set:function(t){var e=this.Ca;e!==t&&Yf(this,e,t)}},defaultScale:{get:function(){return this.Pp},set:function(t){this.Pp=t}},autoScale:{get:function(){return this.yh},set:function(t){var e=this.yh;e!==t&&(this.yh=t,this.g("autoScale",e,t),t!==Qs&&_l(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(t){var e=this.Fg;e!==t&&(this.Fg=t,this.g("initialAutoScale",e,t))}},initialViewportSpot:{get:function(){return this.Bt},set:function(t){var e=this.Bt;e!==t&&(t.sb()||Et("initialViewportSpot must be a specific Spot: "+t),this.Bt=t,this.g("initialViewportSpot",e,t))}},initialDocumentSpot:{get:function(){return this.yt},set:function(t){var e=this.yt;e!==t&&(t.sb()||Et("initialViewportSpot must be a specific Spot: "+t),this.yt=t,this.g("initialDocumentSpot",e,t))}},minScale:{get:function(){return this.Ot},set:function(t){var e=this.Ot;e!==t&&(0<t?(this.Ot=t,this.g("minScale",e,t),t>this.scale&&(this.scale=t)):rn(t,"> 0",Kt,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(t){var e=this.Mt;e!==t&&(0<t?(this.Mt=t,this.g("maxScale",e,t),t<this.scale&&(this.scale=t)):rn(t,"> 0",Kt,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(t){this.zu.D(t)||(this.zu=t=t.J())}},contentAlignment:{get:function(){return this.zk},set:function(t){var e=this.zk;e.D(t)||(this.zk=t=t.J(),this.g("contentAlignment",e,t),_l(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(t){var e=this.pq;e.D(t)||(this.pq=t=t.J(),this.g("initialContentAlignment",e,t))}},padding:{get:function(){return this.yb},set:function(t){typeof t=="number"&&(t=new ii(t));var e=this.yb;e.D(t)||(this.yb=t=t.J(),this.Ya(),this.g("padding",e,t))}},partManager:{get:function(){return this.Pc},set:function(t){var e=this.Pc;e!==t&&(t.diagram!==null&&Et("Cannot share PartManagers between Diagrams: "+t.toString()),e&&e.Xe(null),this.Pc=t,t.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(t){var e=this.Sc;e!==t&&(this.Sc=t,t.diagram=this,t.group=null,this.xh=!0,this.g("layout",e,t),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(t){var e=this.Ht;if(e!==t&&(this.Ht=t,this.g("isTreePathToChildren",e,t),!this.undoManager.isUndoingRedoing))for(t=this.nodes;t.next();)mp(t.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(t){var e=this.uu;e!==t&&(t!==wc&&t!==Ho&&t!==Wd&&Et("Unknown Diagram.treeCollapsePolicy: "+t),this.uu=t,this.g("treeCollapsePolicy",e,t))}},Ue:{get:function(){return this.pw},set:function(t){this.pw=t}},avoidanceCellSize:{get:function(){return this.aw},set:function(t){this.Xh=null,this.aw=new Je(Math.max(1,t.width),Math.max(1,t.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(t){this.bw=Math.max(1,t)}},autoScrollInterval:{get:function(){return this.vp},set:function(t){var e=this.vp;e!==t&&(this.vp=t,this.g("autoScrollInterval",e,t))}},autoScrollRegion:{get:function(){return this.xp},set:function(t){typeof t=="number"&&(t=new ii(t));var e=this.xp;e.D(t)||(this.xp=t=t.J(),this.Ya(),this.g("autoScrollRegion",e,t))}}}),Mn.Object.defineProperties(Kt,{licenseKey:{get:function(){return rp.jc()},set:function(t){rp.add(t.replace(/\s/g,""))}},version:{get:function(){return Oh}}}),Kt.prototype.makeImageData=Kt.prototype.Jx,Kt.prototype.makeImage=Kt.prototype.Wz,Kt.prototype.cacheGroupExternalLinks=Kt.prototype.Fu,Kt.prototype.addRenderer=Kt.prototype.bs,Kt.prototype.makeSVG=Kt.prototype.av,Kt.prototype.makeSvg=Kt.prototype.Cs,Kt.prototype.stopAutoScroll=Kt.prototype.ug,Kt.prototype.doAutoScroll=Kt.prototype.gs,Kt.prototype.isUnoccupied=Kt.prototype.Yj,Kt.prototype.raiseDiagramEvent=Kt.prototype.R,Kt.prototype.removeDiagramListener=Kt.prototype.am,Kt.prototype.addDiagramListener=Kt.prototype.Bj,Kt.prototype.findTreeRoots=Kt.prototype.yz,Kt.prototype.layoutDiagram=Kt.prototype.Uz,Kt.prototype.findTopLevelGroups=Kt.prototype.qz,Kt.prototype.findTopLevelNodesAndLinks=Kt.prototype.rz,Kt.prototype.ensureBounds=Kt.prototype.Va,Kt.prototype.findLinksByExample=Kt.prototype.ls,Kt.prototype.findNodesByExample=Kt.prototype.ms,Kt.prototype.findLinkForData=Kt.prototype.Kc,Kt.prototype.findNodeForData=Kt.prototype.ii,Kt.prototype.findPartForData=Kt.prototype.Lc,Kt.prototype.findLinkForKey=Kt.prototype.findLinkForKey,Kt.prototype.findNodeForKey=Kt.prototype.Vb,Kt.prototype.findPartForKey=Kt.prototype.findPartForKey,Kt.prototype.rebuildParts=Kt.prototype.Wd,Kt.prototype.transformViewToDoc=Kt.prototype.Ps,Kt.prototype.transformRectDocToView=Kt.prototype.zA,Kt.prototype.transformDocToView=Kt.prototype.op,Kt.prototype.centerRect=Kt.prototype.es,Kt.prototype.scrollToRect=Kt.prototype.tv,Kt.prototype.scroll=Kt.prototype.scroll,Kt.prototype.highlightCollection=Kt.prototype.Jz,Kt.prototype.highlight=Kt.prototype.Iz,Kt.prototype.selectCollection=Kt.prototype.rA,Kt.prototype.select=Kt.prototype.select,Kt.prototype.updateAllRelationshipsFromData=Kt.prototype.rp,Kt.prototype.updateAllTargetBindings=Kt.prototype.updateAllTargetBindings,Kt.prototype.commit=Kt.prototype.commit,Kt.prototype.rollbackTransaction=Kt.prototype.Kf,Kt.prototype.commitTransaction=Kt.prototype.eb,Kt.prototype.startTransaction=Kt.prototype.Ea,Kt.prototype.raiseChanged=Kt.prototype.g,Kt.prototype.raiseChangedEvent=Kt.prototype.cb,Kt.prototype.removeChangedListener=Kt.prototype.ik,Kt.prototype.addChangedListener=Kt.prototype.Pe,Kt.prototype.removeModelChangedListener=Kt.prototype.mA,Kt.prototype.addModelChangedListener=Kt.prototype.Yw,Kt.prototype.findLayer=Kt.prototype.Qj,Kt.prototype.removeLayer=Kt.prototype.kA,Kt.prototype.addLayerAfter=Kt.prototype.Cy,Kt.prototype.addLayerBefore=Kt.prototype.Ww,Kt.prototype.addLayer=Kt.prototype.Al,Kt.prototype.moveParts=Kt.prototype.moveParts,Kt.prototype.copyParts=Kt.prototype.Kj,Kt.prototype.removeParts=Kt.prototype.Is,Kt.prototype.remove=Kt.prototype.remove,Kt.prototype.add=Kt.prototype.add,Kt.prototype.clearDelayedGeometries=Kt.prototype.bx,Kt.prototype.setProperties=Kt.prototype.nm,Kt.prototype.attach=Kt.prototype.Du,Kt.prototype.set=Kt.prototype.set,Kt.prototype.resetInputOptions=Kt.prototype.Sx,Kt.prototype.setInputOption=Kt.prototype.sA,Kt.prototype.getInputOption=Kt.prototype.Ql,Kt.prototype.resetRenderingHints=Kt.prototype.Tx,Kt.prototype.setRenderingHint=Kt.prototype.Xx,Kt.prototype.getRenderingHint=Kt.prototype.Gf,Kt.prototype.maybeUpdate=Kt.prototype.bd,Kt.prototype.requestUpdate=Kt.prototype.$b,Kt.prototype.delayInitialization=Kt.prototype.Xy,Kt.prototype.isUpdateRequested=Kt.prototype.Pz,Kt.prototype.invalidateDocumentBounds=Kt.prototype.Ya,Kt.prototype.findObjectsNear=Kt.prototype.og,Kt.prototype.findPartsNear=Kt.prototype.mz,Kt.prototype.findObjectsIn=Kt.prototype.Cf,Kt.prototype.findPartsIn=Kt.prototype.ux,Kt.prototype.findObjectsAt=Kt.prototype.ji,Kt.prototype.findPartsAt=Kt.prototype.lz,Kt.prototype.findObjectAt=Kt.prototype.ic,Kt.prototype.findPartAt=Kt.prototype.Ol,Kt.prototype.focusObject=Kt.prototype.zz,Kt.prototype.alignDocument=Kt.prototype.Jy,Kt.prototype.zoomToRect=Kt.prototype.BA,Kt.prototype.zoomToFit=Kt.prototype.zoomToFit,Kt.prototype.diagramScroll=Kt.prototype.kx,Kt.prototype.focus=Kt.prototype.focus;var Vd=new Zt,mg=null,vo=sn.document!==void 0,Mh=null,Jc="",Qs=new xe(Kt,"None",0),ul=new xe(Kt,"Uniform",1),qc=new xe(Kt,"UniformToFill",2),od=new xe(Kt,"CycleAll",10),qf=new xe(Kt,"CycleNotDirected",11),tp=new xe(Kt,"CycleNotDirectedFast",12),ep=new xe(Kt,"CycleNotUndirected",13),np=new xe(Kt,"CycleDestinationTree",14),ip=new xe(Kt,"CycleSourceTree",15),Tc=new xe(Kt,"DocumentScroll",1),sd=new xe(Kt,"InfiniteScroll",2),wc=new xe(Kt,"TreeParentCollapsed",21),Ho=new xe(Kt,"AllParentsCollapsed",22),Wd=new xe(Kt,"AnyParentsCollapsed",23),rp=new Te,Oh="2.3.10",Dh="image",ad=null,vg=!1;function Vs(){if(vo){var t=sn.document.createElement("canvas"),e=t.getContext("2d"),n=yn("7ca11abfd022028846");e[n]=yn("398c3597c01238");for(var i=["5da73c80a36455d7038e4972187c3cae51fd22",zn.Dx+"4ae6247590da4bb21c324ba3a84e385776",jn.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",It.za],r=1;5>r;r++)e[yn("7ca11abfd7330390")](yn(i[r-1]),10,15*r);for(e[n]=yn("39f046ebb36e4b"),n=1;5>n;n++)e[yn("7ca11abfd7330390")](yn(i[n-1]),10,15*n);(i.length!==4||i[0][0]!=="5"||i[3][0]!=="7")&&(jn.prototype.Cd=jn.prototype.Eu),ad=t}}Kt.className="Diagram",Kt.fromDiv=function(t){var e=t;return typeof t=="string"&&(e=sn.document.getElementById(t)),e instanceof HTMLDivElement&&e.H instanceof Kt?e.H:null},Kt.inherit=function(t,e){function n(){}if(Object.getPrototypeOf(t).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+t);n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},Kt.useDOM=function(t){vo=t?sn.document!==void 0:!1},Kt.isUsingDOM=function(){return vo},Kt.None=Qs,Kt.Uniform=ul,Kt.UniformToFill=qc,Kt.CycleAll=od,Kt.CycleNotDirected=qf,Kt.CycleNotDirectedFast=tp,Kt.CycleNotUndirected=ep,Kt.CycleDestinationTree=np,Kt.CycleSourceTree=ip,Kt.DocumentScroll=Tc,Kt.InfiniteScroll=sd,Kt.TreeParentCollapsed=wc,Kt.AllParentsCollapsed=Ho,Kt.AnyParentsCollapsed=Wd;function yg(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Ph(t,e){if(e.ib.setTransform(e.Mb,0,0,e.Mb,0,0),e.ib.yc(),t.Rc===null)t:{e="f";var n=sn[yn("76a715b2f73f148a")][yn("72ba13b5")]||"";if(t.Rc=!0,vo){var i=Kt[yn("76a115b6ed251eaf4692")];if(i)for(var r=rp.iterator;r.next()&&(i=r.value,i=yn(i).split(yn("39e9")),!(6>i.length));){var o=yn(i[1]).split(".");if(i[4]!=="7da71ca0")break;var s=yn(zn[yn("6cae19")]).split(".");if(o[0]>s[0]||o[0]===s[0]&&o[1]>=s[1]){var l=sn[yn("74a900bae4370f8b51")][yn("6fbb13a1c2311e8a57")].toLowerCase();if(s=l[yn("73a612b6fb191d")](yn("3aad1ab6e022098b4dc4")),o=yn(i[2]),-1<s&&(l=l[yn("73a612b6fb191d")](o.toLowerCase()+"/"),t.Rc=!(-1<l&&l<s),!t.Rc))break;for(s=n[yn("76ad18b4f73e")],l=n[yn("73a612b6fb191d")](yn("35e7"))+2;l<s;l++)e+=n[l];if(s=e[yn("73a612b6fb191d")](o),0>s&&o!==yn("7da71ca0ad381e90")&&(s=e[yn("73a612b6fb191d")](yn("76a715b2ef3e149757"))),0>s&&(s=e[yn("73a612b6fb191d")](yn("76a715b2ef3e149757"))),0>s&&(s=e[yn("73a612b6fb191d")](yn("2bfa41fdb3784bca12"))),0>s&&(s=n[yn("73a612b6fb191d")](yn("7baa19a6f76c1988428554"))),t.Rc=!(0<=s&&s<e[yn("73a612b6fb191d")](yn("35"))||e[yn("73a612b6fb191d")](yn("35"))===-1),!t.Rc||n[yn("73a612b6fb191d")](yn("7fb002b6ed25128b4da25b2e"))&&(t.Rc=!(-1<n[yn("73a612b6fb191d")](o)),!t.Rc)||(s=sn[yn("76a715b2f73f148a")][yn("69ad17a1e03e")],l=s[yn("73a612b6fb191d")](yn("7fb002b6ed25128b4da25b2e")),-1<l&&(t.Rc=!(s[yn("73a612b6fb191d")](o)>l),!t.Rc)))break;if(o[0]==="#"){s=sn.document.createElement("div");for(var u=i[0].replace(/[A-Za-z]/g,"");4>u.length;)u+="9";if(l=u,u=u.substr(u.length-4),i="",i+=["gsh","gsf"][parseInt(u.substr(0,1),10)%2],i+=["Header","Background","Display","Feedback"][parseInt(u.substr(0,1),10)%4],s[yn("79a417a0f0181a8946")]=i,sn.document[yn("78a712aa")]){sn.document[yn("78a712aa")][yn("7bb806b6ed32388c4a875b")](s),u=sn.getComputedStyle(s).getPropertyValue(yn("78a704b7e62456904c9b12701b6532a8"));var d=sn.getComputedStyle(s).getPropertyValue(yn("75b817b0ea2202"));if(sn.document[yn("78a712aa")][yn("68ad1bbcf533388c4a875b")](s),u){if(s=sn[yn("77a902b0eb1b1e804a8a")],d==="0."+parseInt(l,10)%100||u.indexOf(parseInt(o[1]+o[2],16))!==-1&&u.indexOf(parseInt(o[3]+o[4],16))!==-1){t.Rc=!1;break}else if(s&&s(yn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(i="."+i,o=0;o<document.styleSheets.length;o++){s=document.styleSheets[o].rules||document.styleSheets[o].cssRules;for(var f in s)if(i===s[f].selectorText){t.Rc=!1;break t}}}}else t.Rc=null,t.Rc=!1}}}else{for(f=n[yn("76ad18b4f73e")],r=n[yn("73a612b6fb191d")](yn("35e7"))+2;r<f;r++)e+=n[r];n=e[yn("73a612b6fb191d")](yn("7da71ca0ad381e90")),t.Rc=!(0<=n&&n<e[yn("73a612b6fb191d")](yn("35")))}}}return 0<t.Rc&&t!==t.wy}yg.className="DiagramHelper";function rc(t){this.j=t===void 0?new z:t,this.o=new z}Mn.Object.defineProperties(rc.prototype,{point:{get:function(){return this.j},set:function(t){this.j=t}},shifted:{get:function(){return this.o},set:function(t){this.o=t}}});var ld="DraggingInfo";rc.className="DraggingInfo";function a(t,e,n){this.node=t,this.info=e,this.Su=n}a.className="DraggingNodeInfoPair";function c(){this.reset()}c.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Je(NaN,NaN).freeze(),this.gridSnapCellSpot=vi,this.gridSnapOrigin=new z(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},c.className="DraggingOptions";function v(t,e){if(typeof t=="string"||sn.Element&&t instanceof Element)var n=Kt.call(this,t)||this;else n=Kt.call(this)||this,e=t;return m(n),e&&n.nm(e),n}Yn(v,Kt);function m(t){t.allowDragOut=!0,t.allowMove=!1,t.isReadOnly=!0,t.contentAlignment=Gi,t.layout=new Ss}v.prototype.reset=function(){Kt.prototype.reset.call(this),m(this)},v.className="Palette";function x(t,e){if(typeof t=="string"||sn.Element&&t instanceof Element)var n=Kt.call(this,t)||this;else n=Kt.call(this)||this,e=t;var i=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),t=new Rn;var r=new ai;return r.stroke="magenta",r.strokeWidth=2,r.fill="transparent",r.name="BOXSHAPE",t.selectable=!0,t.selectionAdorned=!1,t.selectionObjectName="BOXSHAPE",t.locationObjectName="BOXSHAPE",t.resizeObjectName="BOXSHAPE",t.cursor="move",t.add(r),n.j=t,n.allowCopy=!1,n.allowDelete=!1,n.allowSelect=!0,n.autoScrollRegion=new ii(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new it,n.toolManager.mouseMoveTools),n.click=function(){var o=i.observed;if(o!==null){var s=o.viewportBounds,l=i.lastInput.documentPoint;o.position=new z(l.x-s.width/2,l.y-s.height/2)}},n.Pf=function(){i.Ya(),G(i)},n.Xd=function(){i.observed!==null&&(i.Ya(),i.N())},n.Ha=function(){1>i.updateDelay?i.N():i.o||(i.o=!0,setTimeout(function(){return i.redraw()},i.updateDelay))},n.Of=function(){i.observed!==null&&G(i)},n.autoScale=ul,n.vb=!1,e&&Object.assign(n,e),n}Yn(x,Kt),x.prototype.computePixelRatio=function(){return 1},x.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var t=this.ta,e=this.ib;if(t!==null&&e!==null){if(Ih(this),this.ql===null){var n=new Bl(null);n.width=t.width,n.height=t.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),L(this)}finally{this.ta=t,this.ib=e}}}Kt.prototype.redraw.call(this)},x.prototype.gc=function(){if(this.Ka===null&&Et("No div specified"),this.ta===null&&Et("No canvas specified"),!(this.ta instanceof Iu)&&(V0(this.box),this.Fc)){var t=this.observed;if(t!==null&&!t.animationManager.defaultAnimation.isAnimating&&t.pi){Ih(this);var e=this.ta;t=this.ib,t.Vc(!0),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),1>this.updateDelay?L(this):this.ql!==null&&(t.drawImage(this.ql.Oa,0,0),e=this.Ab,e.reset(),this.scale!==1&&e.scale(this.scale),this.position.x===0&&this.position.y===0||e.translate(-this.position.x,-this.position.y),t.scale(this.Mb,this.Mb),t.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),t.yc()),e=this.Wa.s;for(var n=e.length,i=0;i<n;i++)e[i].gc(t,this);this.Fc=this.vd=!1}}};function L(t){var e=t.observed;if(e!==null){var n=t.drawsTemporaryLayers,i=t.drawsGrid&&n,r=e.grid;i&&r!==null&&r.visible&&!isNaN(r.width)&&!isNaN(r.height)&&(r=Xt.alloc().assign(t.viewportBounds).ed(e.viewportBounds),Nu(e,r),Xt.free(r),Ds(e));var o=t.Ab;o.reset(),t.scale!==1&&o.scale(t.scale),t.position.x===0&&t.position.y===0||o.translate(-t.position.x,-t.position.y),r=t.ib,r.scale(t.Mb,t.Mb),r.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),r.yc(),e=e.Wa.s,o=e.length;for(var s=0;s<o;s++){var l=e[s],u=t;if(l.visible&&l.opacity!==0){var d=l.diagram.grid.part;if(!n&&l.isTemporary)i&&d.layer===l&&(l=ic(l,r),d.gc(r,u),r.globalAlpha=l);else{for(var f=ic(l,r),y=u.scale,T=Xt.alloc(),w=l.Pa.s,N=w.length,F=0;F<N;F++){var nt=w[F];(i||nt!==d)&&l.Oj(r,nt,u,null,y,T,!1)}Xt.free(T),r.globalAlpha=f}}}}}function G(t){var e=t.box;if(e!==null){var n=t.observed;if(n!==null){t.Fc=!0,n=n.viewportBounds;var i=e.selectionObject,r=Je.alloc();r.h(n.width,n.height),i.desiredSize=r,Je.free(r),t=2/t.scale,i instanceof ai&&(i.strokeWidth=t),e.location=new z(n.x-t/2,n.y-t/2),e.isSelected=!0}}}x.prototype.computeBounds=function(){var t=this.observed;if(t===null)return cs;var e=t.documentBounds.copy();return e.ed(t.viewportBounds),e},x.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},x.prototype.onViewportBoundsChanged=function(t,e,n,i){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),G(this),this.fc.scale=n,this.fc.position.x=t.x,this.fc.position.y=t.y,this.fc.bounds.assign(t),this.fc.Oz=i,this.R("ViewportBoundsChanged",this.fc,t))},Mn.Object.defineProperties(x.prototype,{observed:{get:function(){return this.V},set:function(t){var e=this.V;if(t instanceof x&&Et("Overview.observed Diagram may not be an Overview itself: "+t),e!==t){if(e!==null&&(this.remove(this.box),e.am("ViewportBoundsChanged",this.Pf),e.am("DocumentBoundsChanged",this.Xd),e.am("InvalidateDraw",this.Ha),e.am("AnimationFinished",this.Of)),this.V=t,t!==null&&(t.Bj("ViewportBoundsChanged",this.Pf),t.Bj("DocumentBoundsChanged",this.Xd),t.Bj("InvalidateDraw",this.Ha),t.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),t===null){this.ql=null;var n=this.ta,i=this.ib;n&&i&&(i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,n.width,n.height))}else this.Ha(null),G(this),this.N();this.g("observed",e,t)}}},box:{get:function(){return this.j},set:function(t){var e=this.j;e!==t&&(this.j=t,this.remove(e),this.add(this.j),G(this),this.g("box",e,t))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(t){0>t&&(t=0),this.ia!==t&&(this.ia=t)}}}),x.className="Overview";function it(){Fr.call(this),this.j=null}Yn(it,Fr),it.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t===null||!t.allowMove||!t.allowSelect)return!1;var e=t.observed;if(e===null)return!1;var n=t.lastInput;return!n.left||t.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-t.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(n=e.viewportBounds,this.j=new z(n.width/2,n.height/2),t=t.firstInput.documentPoint,e.position=new z(t.x-this.j.x,t.y-this.j.y)),!0)},it.prototype.doActivate=function(){this.j=null,Fr.prototype.doActivate.call(this)},it.prototype.doUpdateCursor=function(){var t=this.diagram,e=t.box;e!==null&&e.cursor&&(t.currentCursor=e.cursor)},it.prototype.moveParts=function(){var t=this.diagram,e=t.observed;if(e!==null){var n=t.box;if(n!==null){if(this.j===null){var i=t.firstInput.documentPoint;n=n.location,this.j=new z(i.x-n.x,i.y-n.y)}t=t.lastInput.documentPoint,e.position=new z(t.x-this.j.x,t.y-this.j.y)}}},it.className="OverviewDraggingTool";function et(){Gn(this),this.H=Uu,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=cs,this.hb=!0,this.cg=null,this.ob=200}et.prototype.toString=function(){return"CommandHandler"},et.prototype.Xe=function(t){this.H=t},et.prototype.doKeyDown=function(){var t=this.diagram,e=t.lastInput,n=ui?e.meta:e.control,i=e.shift,r=e.alt,o=e.key;!n||o!=="C"&&o!=="Insert"?n&&o==="X"||i&&o==="Del"?this.canCutSelection()&&this.cutSelection():n&&o==="V"||i&&o==="Insert"?this.canPasteSelection()&&this.pasteSelection():n&&o==="Y"||r&&i&&o==="Backspace"?this.canRedo()&&this.redo():n&&o==="Z"||r&&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"?t.allowVerticalScroll&&(n?t.scroll("pixel","up"):t.scroll("line","up")):o==="Down"?t.allowVerticalScroll&&(n?t.scroll("pixel","down"):t.scroll("line","down")):o==="Left"?t.allowHorizontalScroll&&(n?t.scroll("pixel","left"):t.scroll("line","left")):o==="Right"?t.allowHorizontalScroll&&(n?t.scroll("pixel","right"):t.scroll("line","right")):o==="PageUp"?i&&t.allowHorizontalScroll?t.scroll("page","left"):t.allowVerticalScroll&&t.scroll("page","up"):o==="PageDown"?i&&t.allowHorizontalScroll?t.scroll("page","right"):t.allowVerticalScroll&&t.scroll("page","down"):o==="Home"?n&&t.allowVerticalScroll?t.scroll("document","up"):!n&&t.allowHorizontalScroll&&t.scroll("document","left"):o==="End"?n&&t.allowVerticalScroll?t.scroll("document","down"):!n&&t.allowHorizontalScroll&&t.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():i&&o==="Z"?this.canZoomToFit()&&this.zoomToFit():n&&!i&&o==="G"?this.canGroupSelection()&&this.groupSelection():n&&i&&o==="G"?this.canUngroupSelection()&&this.ungroupSelection():o==="F2"||e.event&&e.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():o==="ContextMenu"||e.event&&e.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():e.bubbles=!0:this.canCopySelection()&&this.copySelection()},et.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},et.prototype.stopCommand=function(){var t=this.diagram,e=t.currentTool;e instanceof Dr&&t.allowSelect&&t.clearSelection(),e!==null&&e.doCancel()},et.prototype.canStopCommand=function(){return!0},et.prototype.selectAll=function(){var t=this.diagram;t.N();try{t.currentCursor="wait",t.R("ChangingSelection",t.selection);for(var e=t.parts;e.next();)e.value.isSelected=!0;for(var n=t.nodes;n.next();)n.value.isSelected=!0;for(var i=t.links;i.next();)i.value.isSelected=!0}finally{t.R("ChangedSelection",t.selection),t.currentCursor=""}},et.prototype.canSelectAll=function(){return this.diagram.allowSelect},et.prototype.deleteSelection=function(){var t=this.diagram;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Delete"),t.R("SelectionDeleting",t.selection);for(var e=new Ce,n=t.selection.iterator;n.next();)ih(e,n.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(i){return i.canDelete()});t.Is(e,!0),t.R("SelectionDeleted",e)}finally{t.eb("Delete"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},et.prototype.canDeleteSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowDelete||t.selection.count===0)},et.prototype.copySelection=function(){var t=this.diagram,e=new Ce;for(t=t.selection.iterator;t.next();)ih(e,t.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(n){return n.canCopy()});this.copyToClipboard(e)},et.prototype.canCopySelection=function(){var t=this.diagram;return!!(t.allowCopy&&t.allowClipboard&&t.selection.count!==0)},et.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},et.prototype.canCutSelection=function(){var t=this.diagram;return!!(!t.isReadOnly&&!t.isModelReadOnly&&t.allowCopy&&t.allowDelete&&t.allowClipboard&&t.selection.count!==0)},et.prototype.copyToClipboard=function(t){var e=this.diagram,n=null;if(t===null)Mh=null,Jc="";else{n=e.model;var i=!1,r=!1,o=null;try{n.Tl()&&(i=n.Jj,n.Jj=this.copiesParentKey),n.Wj()&&(r=n.Ij,n.Ij=this.copiesGroupKey),o=e.Kj(t,null,!0)}finally{n.Tl()&&(n.Jj=i),n.Wj()&&(n.Ij=r),n=new Te,n.addAll(o),Mh=n,Jc=e.model.dataFormat}}e.R("ClipboardChanged",n)},et.prototype.pasteFromClipboard=function(){var t=new Ce,e=Mh;if(e===null)return t;var n=this.diagram;if(Jc!==n.model.dataFormat)return t;var i=n.model,r=!1,o=!1,s=null;try{i.Tl()&&(r=i.Jj,i.Jj=this.copiesParentKey),i.Wj()&&(o=i.Ij,i.Ij=this.copiesGroupKey),s=n.Kj(e,n,!1)}finally{for(i.Tl()&&(i.Jj=r),i.Wj()&&(i.Ij=o),e=s.iterator;e.next();)n=e.value,i=e.key,n.location.w()||(i.location.w()?n.location=i.location:!n.position.w()&&i.position.w()&&(n.position=i.position)),t.add(n)}return t},et.prototype.pasteSelection=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Paste");var n=this.pasteFromClipboard();0<n.count&&e.clearSelection(!0);for(var i=n.iterator;i.next();)i.value.isSelected=!0;if(t!==null){var r=e.computePartsBounds(e.selection);if(r.w()){var o=this.computeEffectiveCollection(e.selection,e.Wm);$c(e,o,new z(t.x-r.centerX,t.y-r.centerY),e.Wm,!1)}}e.R("ClipboardPasted",n)}finally{e.eb("Paste"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},et.prototype.canPasteSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowClipboard||Mh===null||Mh.count===0||Jc!==t.model.dataFormat)},et.prototype.undo=function(){this.diagram.undoManager.undo()},et.prototype.canUndo=function(){var t=this.diagram;return t.isReadOnly||t.isModelReadOnly?!1:t.allowUndo&&t.undoManager.canUndo()},et.prototype.redo=function(){this.diagram.undoManager.redo()},et.prototype.canRedo=function(){var t=this.diagram;return t.isReadOnly||t.isModelReadOnly?!1:t.allowUndo&&t.undoManager.canRedo()},et.prototype.decreaseZoom=function(t){t===void 0&&(t=1/this.zoomFactor);var e=this.diagram;e.autoScale===Qs&&(t=e.scale*t,t<e.minScale||t>e.maxScale||(e.scale=t))},et.prototype.canDecreaseZoom=function(t){t===void 0&&(t=1/this.zoomFactor);var e=this.diagram;return e.autoScale!==Qs?!1:(t=e.scale*t,t<e.minScale||t>e.maxScale?!1:e.allowZoom)},et.prototype.increaseZoom=function(t){t===void 0&&(t=this.zoomFactor);var e=this.diagram;e.autoScale===Qs&&(t=e.scale*t,t<e.minScale||t>e.maxScale||(e.scale=t))},et.prototype.canIncreaseZoom=function(t){t===void 0&&(t=this.zoomFactor);var e=this.diagram;return e.autoScale!==Qs?!1:(t=e.scale*t,t<e.minScale||t>e.maxScale?!1:e.allowZoom)},et.prototype.resetZoom=function(t){t===void 0&&(t=this.defaultScale);var e=this.diagram;t<e.minScale||t>e.maxScale||(e.scale=t)},et.prototype.canResetZoom=function(t){t===void 0&&(t=this.defaultScale);var e=this.diagram;return t<e.minScale||t>e.maxScale?!1:e.allowZoom},et.prototype.zoomToFit=function(){var t=this.diagram,e=t.animationManager;e.Cc(),t.redraw();var n=t.position,i=t.scale;Qo(e,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&i===this.Au&&!isNaN(this.Jt)&&t.documentBounds.D(this.yu)?(t.scale=this.Jt,t.position=this.sw,this.Au=NaN,this.yu=cs):(this.Jt=i,this.sw=n.copy(),t.zoomToFit(),this.Au=t.scale,this.yu=t.documentBounds.copy()),Ka(e)},et.prototype.canZoomToFit=function(){return this.diagram.allowZoom},et.prototype.scrollToPart=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.Va(),t===null){try{this.cg!==null&&(this.cg.next()?t=this.cg.value:this.cg=null)}catch(u){this.cg=null}t===null&&(0<e.highlighteds.count?this.cg=e.highlighteds.iterator:0<e.selection.count&&(this.cg=e.selection.iterator),this.cg!==null&&this.cg.next()&&(t=this.cg.value))}if(t!==null){var n=e.animationManager;Qo(n,"Scroll To Part");var i=this.scrollToPartPause;if(0<i){var r=Tt(this,t,[t]);if(r.length===1)e.Ea(),e.es(t.actualBounds),e.eb("Scroll To Part");else{var o=function(){e.Ea();for(var u=r.pop();0<r.length&&u instanceof tn&&u.isTreeExpanded&&(!(u instanceof Jn)||u.isSubGraphExpanded);)u=r.pop();0<r.length?(u instanceof Rn&&e.tv(u.actualBounds),u instanceof tn&&!u.isTreeExpanded&&(u.isTreeExpanded=!0),u instanceof Jn&&!u.isSubGraphExpanded&&(u.isSubGraphExpanded=!0)):(u instanceof Rn&&e.es(u.actualBounds),e.am("LayoutCompleted",s)),e.eb("Scroll To Part")},s=function(){Ur(o,(n.isEnabled?n.duration:0)+i)};e.Bj("LayoutCompleted",s),o()}}else{var l=e.position.copy();e.es(t.actualBounds),l.Xa(e.position)&&n.Cc()}}};function Tt(t,e,n){if(e.isVisible())return n;if(e instanceof Vi)Tt(t,e.adornedPart,n);else if(e instanceof Pe){var i=e.fromNode;i!==null&&Tt(t,i,n),e=e.toNode,e!==null&&Tt(t,e,n)}else e instanceof tn&&(i=e.labeledLink,i!==null&&Tt(t,i,n),i=e.pg(),i!==null&&(i.isTreeExpanded||i.wasTreeExpanded||n.push(i),Tt(t,i,n))),e=e.containingGroup,e!==null&&(e.isSubGraphExpanded||e.wasSubGraphExpanded||n.push(e),Tt(t,e,n));return n}et.prototype.canScrollToPart=function(t){return t===void 0&&(t=null),t!==null&&!(t instanceof Rn)?!1:(t=this.diagram,t.selection.count===0&&t.highlighteds.count===0?!1:t.allowHorizontalScroll&&t.allowVerticalScroll)},et.prototype.collapseTree=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.Ea("Collapse Tree"),Qo(e.animationManager,"Collapse Tree");var n=new Te;if(t!==null&&t.isTreeExpanded)t.collapseTree(),n.add(t);else if(t===null)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof tn&&r.isTreeExpanded&&(r.collapseTree(),n.add(r))}e.R("TreeCollapsed",n)}finally{e.eb("Collapse Tree")}},et.prototype.canCollapseTree=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(t!==null){if(!(t instanceof tn&&t.isTreeExpanded))return!1;if(0<t.Qo().count)return!0}else for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof tn&&e.isTreeExpanded&&0<e.Qo().count)return!0;return!1},et.prototype.expandTree=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.Ea("Expand Tree"),Qo(e.animationManager,"Expand Tree");var n=new Te;if(t!==null&&!t.isTreeExpanded)t.expandTree(),n.add(t);else if(t===null)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof tn&&!r.isTreeExpanded&&(r.expandTree(),n.add(r))}e.R("TreeExpanded",n)}finally{e.eb("Expand Tree")}},et.prototype.canExpandTree=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(t!==null){if(!(t instanceof tn)||t.isTreeExpanded)return!1;if(0<t.Qo().count)return!0}else for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof tn&&!e.isTreeExpanded&&0<e.Qo().count)return!0;return!1},et.prototype.groupSelection=function(){var t=this.diagram,e=t.model;if(e.Xj()){var n=this.archetypeGroupData;if(n!==null){var i=null;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Group");for(var r=new Te,o=t.selection.iterator;o.next();){var s=o.value;s.Zc()&&s.canGroup()&&r.add(s)}for(var l=new Te,u=r.iterator;u.next();){var d=u.value;o=!1;for(var f=r.iterator;f.next();)if(d.Td(f.value)){o=!0;break}o||l.add(d)}if(0<l.count){var y=l.first().containingGroup;if(y!==null)for(;y!==null;){r=!1;for(var T=l.iterator;T.next();)if(!T.value.Td(y)){r=!0;break}if(r)y=y.containingGroup;else break}if(n instanceof Jn)Ul(n),i=n.copy(),i!==null&&t.add(i);else if(e.Yu(n)){var w=e.copyNodeData(n);Ut(w)&&(e.xf(w),i=t.ii(w))}if(i!==null){y!==null&&this.isValidMember(y,i)&&(i.containingGroup=y);for(var N=l.iterator;N.next();){var F=N.value;this.isValidMember(i,F)&&(F.containingGroup=i)}t.clearSelection(!0),i.isSelected=!0}}t.R("SelectionGrouped",i)}finally{t.eb("Group"),t.R("ChangedSelection",t.selection),t.currentCursor=""}}}},et.prototype.canGroupSelection=function(){var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowGroup||!t.model.Xj()||this.archetypeGroupData===null)return!1;for(t=t.selection.iterator;t.next();){var e=t.value;if(e.Zc()&&e.canGroup())return!0}return!1};function ne(t){var e=bn();for(t=t.iterator;t.next();){var n=t.value;n instanceof Pe||e.push(n)}t=new Ce,n=e.length;for(var i=0;i<n;i++){for(var r=e[i],o=!0,s=0;s<n;s++)if(r.Td(e[s])){o=!1;break}o&&t.add(r)}return En(e),t}et.prototype.isValidMember=function(t,e){if(e===null||t===e||e instanceof Pe)return!1;if(t!==null){if(t===e||t.Td(e))return!1;var n=t.memberValidation;if(n!==null&&!n(t,e)||t.data===null&&e.data!==null||t.data!==null&&e.data===null)return!1}return n=this.memberValidation,n!==null?n(t,e):!0},et.prototype.ungroupSelection=function(t){t===void 0&&(t=null);var e=this.diagram,n=e.model;if(n.Xj())try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Ungroup");var i=new Te;if(t!==null)i.add(t);else for(var r=e.selection.iterator;r.next();){var o=r.value;o instanceof Jn&&o.canUngroup()&&i.add(o)}var s=new Te;if(0<i.count){e.clearSelection(!0);for(var l=i.iterator;l.next();){var u=l.value;u.expandSubGraph();var d=u.containingGroup,f=d!==null&&d.data!==null?n.wa(d.data):void 0;s.addAll(u.memberParts);for(var y=s.iterator;y.next();){var T=y.value;if(T.isSelected=!0,!(T instanceof Pe)){var w=T.data;w!==null?n.mp(w,f):T.containingGroup=d}}e.remove(u)}}e.R("SelectionUngrouped",i,s)}finally{e.eb("Ungroup"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},et.prototype.canUngroupSelection=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||!e.allowUngroup||!e.model.Xj())return!1;if(t!==null){if(!(t instanceof Jn))return!1;if(t.canUngroup())return!0}else for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Jn&&e.canUngroup())return!0;return!1},et.prototype.addTopLevelParts=function(t,e){var n=!0;for(t=ne(t).iterator;t.next();){var i=t.value;i.containingGroup!==null&&(!e||this.isValidMember(null,i)?i.containingGroup=null:n=!1)}return n},et.prototype.collapseSubGraph=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.Ea("Collapse SubGraph"),Qo(e.animationManager,"Collapse SubGraph");var n=new Te;if(t!==null&&t.isSubGraphExpanded)t.collapseSubGraph(),n.add(t);else if(t===null)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof Jn&&r.isSubGraphExpanded&&(r.collapseSubGraph(),n.add(r))}e.R("SubGraphCollapsed",n)}finally{e.eb("Collapse SubGraph")}},et.prototype.canCollapseSubGraph=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(t!==null)return!!(t instanceof Jn&&t.isSubGraphExpanded);for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Jn&&e.isSubGraphExpanded)return!0;return!1},et.prototype.expandSubGraph=function(t){t===void 0&&(t=null);var e=this.diagram;try{e.Ea("Expand SubGraph"),Qo(e.animationManager,"Expand SubGraph");var n=new Te;if(t!==null&&!t.isSubGraphExpanded)t.expandSubGraph(),n.add(t);else if(t===null)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof Jn&&!r.isSubGraphExpanded&&(r.expandSubGraph(),n.add(r))}e.R("SubGraphExpanded",n)}finally{e.eb("Expand SubGraph")}},et.prototype.canExpandSubGraph=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(t!==null)return t instanceof Jn&&!t.isSubGraphExpanded;for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Jn&&!e.isSubGraphExpanded)return!0;return!1},et.prototype.editTextBlock=function(t){t===void 0&&(t=null);var e=this.diagram,n=e.toolManager.findTool("TextEditing");if(n!==null){if(t===null){t=null;for(var i=e.selection.iterator;i.next();){var r=i.value;if(r.canEdit()){t=r;break}}if(t===null)return;t=t.Nl(function(o){return o instanceof zr&&o.editable})}t!==null&&(e.currentTool=null,n.textBlock=t,e.currentTool=n)}},et.prototype.canEditTextBlock=function(t){t===void 0&&(t=null);var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowTextEdit||e.toolManager.findTool("TextEditing")===null)return!1;if(t!==null){if(!(t instanceof zr))return!1;if(t=t.part,t!==null&&t.canEdit())return!0}else for(e=e.selection.iterator;e.next();)if(t=e.value,t.canEdit()&&(t=t.Nl(function(n){return n instanceof zr&&n.editable}),t!==null))return!0;return!1},et.prototype.showContextMenu=function(t){var e=this.diagram,n=e.toolManager.findTool("ContextMenu");if(n!==null&&(t===void 0&&(t=0<e.selection.count?e.selection.first():e),t=n.findObjectWithContextMenu(t),t!==null)){var i=e.lastInput,r=null;t instanceof Rt?r=t.ga(ei):e.viewportBounds.ca(i.documentPoint)||(r=e.viewportBounds,r=new z(r.x+r.width/2,r.y+r.height/2)),r!==null&&(i.viewPoint=e.op(r),i.documentPoint=r,i.left=!1,i.right=!0,i.up=!0),e.currentTool=n,Ao(n,!1,t)}},et.prototype.canShowContextMenu=function(t){var e=this.diagram,n=e.toolManager.findTool("ContextMenu");return n===null?!1:(t===void 0&&(t=0<e.selection.count?e.selection.first():e),n.findObjectWithContextMenu(t)!==null)},et.prototype.computeEffectiveCollection=function(t,e){var n=this.diagram,i=n.toolManager.findTool("Dragging"),r=n.currentTool===i;if(e===void 0&&(e=r?i.dragOptions:n.Wm),i=new Zt,t===null)return i;for(var o=t.iterator;o.next();)zu(n,i,o.value,r,e);if(n.draggedLink!==null&&e.dragsLink)return i;for(o=t.iterator;o.next();)t=o.value,t instanceof Pe&&(e=t.fromNode,e===null||i.contains(e)?(e=t.toNode,e===null||i.contains(e)||i.remove(t)):i.remove(t));return i},Mn.Object.defineProperties(et.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(t){this.o=t}},copiesConnectedLinks:{get:function(){return this.u},set:function(t){this.u=t}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(t){this.Ha=t}},copiesTree:{get:function(){return this.ia},set:function(t){this.ia=t}},deletesTree:{get:function(){return this.nb},set:function(t){this.nb=t}},copiesParentKey:{get:function(){return this.V},set:function(t){this.V=t}},copiesGroupKey:{get:function(){return this.F},set:function(t){this.F=t}},archetypeGroupData:{get:function(){return this.j},set:function(t){this.j=t}},memberValidation:{get:function(){return this.ij},set:function(t){this.ij=t}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(t){this.diagram.defaultScale=t}},zoomFactor:{get:function(){return this.Hb},set:function(t){1<t||Et("zoomFactor must be larger than 1.0, not: "+t),this.Hb=t}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(t){this.hb=t}},scrollToPartPause:{get:function(){return this.ob},set:function(t){this.ob=t}}}),et.className="CommandHandler",og=function(){return new et};function Rt(){Gn(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new z(NaN,NaN).freeze(),this.jd=Mr,this.Ab=new jn,this.wh=new jn,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Vo,this.uc=new Xt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Xt(NaN,NaN,NaN,NaN).freeze(),this.dc=new Xt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=_o,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 Ae,ye,Tn,In,Un,ti,ki,fi,_i,yr;Rt.prototype.cloneProtected=function(t){t.l=this.l|6144,t.pb=this.pb,t.bn=this.bn,t.Ma=this.Ma,t.pa.assign(this.pa),t.jd=this.jd.J(),this.Lb!==null?t.Lb=this.Lb.copy():t.Lb=null,t.Ca=this.Ca,t.Kb=this.Kb,t.Kg=this.Kg.J(),t.uc.assign(this.uc),t.Ib.assign(this.Ib),t.dc.assign(this.dc),t.Yn=this.Yn,this.ba!==null&&(t.ba=this.ba.copy()),t.Jb=this.Jb.J(),t.sk=this.sk.J(),t.io=this.io,t.Ag=this.Ag,this.Ua!==null&&(t.Ua=this.Ua.copy()),this.A!==null&&(t.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(t.Dh=kn(this.Dh)),this.tb!==null&&(t.tb=this.tb.copy())},Rt.prototype.Vw=function(t){var e=this.Dh;if(Ye(e)){for(var n=0;n<e.length;n++)if(e[n]===t)return}else this.Dh=e=[];e.push(t)},Rt.prototype.Af=function(t){t.Zn=null,t.Ng=null,t.v()},Rt.prototype.clone=function(){var t=new this.constructor;if(this.cloneProtected(t),this.Dh!==null)for(var e=0;e<this.Dh.length;e++){var n=this.Dh[e];t[n]=this[n]}return t},Rt.prototype.copy=function(){return this.clone()},A=Rt.prototype,A.qb=function(t){t.classType===Pe?t.name.indexOf("Orient")===0?this.segmentOrientation=t:Et("Unknown Link enum value for GraphObject.segmentOrientation property: "+t):t.classType===Rt&&(this.stretch=t)},A.toString=function(){return ve(this.constructor)+"#"+gi(this)},A.th=function(){this.A!==null&&(this.A.nc=!0)};function di(t){t.A===null?t.A=new cd:t.A.nc&&(t.A=t.A.copy())}A.Xc=function(){if(this.ba===null){var t=new op;t.Xi=qn,t.yj=qn,t.Vi=10,t.wj=10,t.Wi=0,t.xj=0,this.ba=t}},A.cb=function(t,e,n,i,r,o,s){var l=this.part;if(l!==null&&(l.gk(t,e,n,i,r,o,s),n===this&&t===_r&&Ns(this)&&qr(this,l,e),o=this.diagram,this.animationTriggers===null||o===null||!o.pi||o.undoManager.isUndoingRedoing||o.animationManager.Dm||(t=this.animationTriggers.get(e),t!==null&&o.animationManager.isEnabled&&!o.animationManager.isTicking&&(this.jo===null&&(this.jo=new Zt),s=o.undoManager.transactionLevel===0,t.startCondition===Za?s=!0:t.startCondition===Ch&&(s=!1),s?(o=new ln,ll(t,o),s=this.jo.get(t),s!==null&&s.stop(),this.jo.add(t,o),o.vu=this,o.Nw=t,o.add(this,e,i,r),o.start()):(Qo(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,e,i,r)))),this instanceof Re&&n===l&&(l.l&16777216)!==0&&l.data!==null))for(n=this.O.s,i=n.length,r=0;r<i;r++)l=n[r],l instanceof Re&&Uh(l,function(u){u.data!==null&&u.l&16777216&&u.La(e)})};function qr(t,e,n){var i=t.ih();if(i!==null)for(var r=t.localBindings.iterator;r.next();){var o=r.value,s=null;if(o.sourceName!==null){if(s=Fx(o,i,t),s===null)continue;o.sp(t,s,n,null)}else if(o.isToModel){var l=e.diagram;l===null||l.skipsModelSourceBindings||o.sp(t,l.model.modelData,n,i)}else{if(l=i.data,l===null)continue;var u=e.diagram;u===null||u.skipsModelSourceBindings||o.sp(t,l,n,i)}s===t&&(l=i.ks(o.Ai),l!==null&&o.Mv(l,s,n))}}A.ks=function(t){return this.bindingId===t?this:null},A.g=function(t,e,n){this.cb(_r,t,this,e,n)},A.Ge=function(t,e,n,i){var r=this.uc;if(r.h(t,e,n,i),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new jn);var o=this.Lb;o.reset(),this.no(o,t,e,n,i),o.pp(r)}};function rs(t,e,n,i){return t.pickable===!1?!1:(i.multiply(t.transform),n?t.Yc(e,i):t.fh(e,i))}A.tx=function(t,e,n){if(this.pickable===!1)return!1;var i=this.naturalBounds;return e=t.Bf(e),n?nn(t.x,t.y,0,0,0,i.height)<=e||nn(t.x,t.y,0,i.height,i.width,i.height)<=e||nn(t.x,t.y,i.width,i.height,i.width,0)<=e||nn(t.x,t.y,i.width,0,0,0)<=e:t.zd(0,0)<=e&&t.zd(0,i.height)<=e&&t.zd(i.width,0)<=e&&t.zd(i.width,i.height)<=e},A.se=function(){return!0},A.ca=function(t){var e=z.alloc();e.assign(t),this.transform.Ga(e);var n=this.actualBounds;if(!n.w())return z.free(e),!1;var i=this.diagram;if(i!==null&&i.wq){var r=i.Ql("extraTouchThreshold"),o=i.Ql("extraTouchArea"),s=o/2,l=this.naturalBounds;i=this.Df()*i.scale;var u=1/i;if(l.width*i<r&&l.height*i<r)return t=Gr(n.x-s*u,n.y-s*u,n.width+o*u,n.height+o*u,e.x,e.y),z.free(e),t}return r=!1,(this instanceof Vi||this instanceof ai?Gr(n.x-5,n.y-5,n.width+10,n.height+10,e.x,e.y):n.ca(e))&&(this.tb&&!this.tb.ca(e)?r=!1:this.areaBackground!==null&&n.ca(e)||this.Ma!==null&&this.dc.ca(t)?r=!0:r=this.gh(t)),z.free(e),r},A.gh=function(t){var e=this.naturalBounds;return Gr(0,0,e.width,e.height,t.x,t.y)},A.Re=function(t){if(this.angle===0)return this.actualBounds.Re(t);var e=this.naturalBounds;e=Xt.allocAt(0,0,e.width,e.height);var n=this.transform,i=!1,r=z.allocAt(t.x,t.y);return e.ca(n.Cd(r))&&(r.h(t.x,t.bottom),e.ca(n.Cd(r))&&(r.h(t.right,t.bottom),e.ca(n.Cd(r))&&(r.h(t.right,t.y),e.ca(n.Cd(r))&&(i=!0)))),z.free(r),Xt.free(e),i},A.fh=function(t,e){if(e===void 0)return t.Re(this.actualBounds);var n=this.naturalBounds,i=!1,r=z.allocAt(0,0);return t.ca(e.Ga(r))&&(r.h(0,n.height),t.ca(e.Ga(r))&&(r.h(n.width,n.height),t.ca(e.Ga(r))&&(r.h(n.width,0),t.ca(e.Ga(r))&&(i=!0)))),z.free(r),i},A.Yc=function(t,e){if(e===void 0&&(e=this.transform,this.angle===0))return t.Yc(this.actualBounds);var n=this.naturalBounds,i=z.allocAt(0,0),r=z.allocAt(0,n.height),o=z.allocAt(n.width,n.height),s=z.allocAt(n.width,0),l=!1;if(t.ca(e.Ga(i))||t.ca(e.Ga(r))||t.ca(e.Ga(o))||t.ca(e.Ga(s)))l=!0;else{n=Xt.allocAt(0,0,n.width,n.height);var u=z.allocAt(t.x,t.y);n.ca(e.Cd(u))?l=!0:(u.h(t.x,t.bottom),n.ca(e.Cd(u))?l=!0:(u.h(t.right,t.bottom),n.ca(e.Cd(u))?l=!0:(u.h(t.right,t.y),n.ca(e.Cd(u))&&(l=!0)))),z.free(u),Xt.free(n),!l&&(It.us(t,i,r)||It.us(t,r,o)||It.us(t,o,s)||It.us(t,s,i))&&(l=!0)}return z.free(i),z.free(r),z.free(o),z.free(s),l},A.ga=function(t,e){if(e===void 0&&(e=new z),t instanceof vn){var n=this.naturalBounds;e.h(t.x*n.width+t.offsetX,t.y*n.height+t.offsetY)}else e.set(t);return this.oe.Ga(e),e},A.mi=function(t){t===void 0&&(t=new Xt);var e=this.naturalBounds,n=this.oe,i=z.allocAt(0,0).transform(n);return t.h(i.x,i.y,0,0),i.h(e.width,0).transform(n),Ni(t,i.x,i.y,0,0),i.h(e.width,e.height).transform(n),Ni(t,i.x,i.y,0,0),i.h(0,e.height).transform(n),Ni(t,i.x,i.y,0,0),z.free(i),t},A.li=function(){var t=this.oe;return t.m11===1&&t.m12===0?t=0:(t=180*Math.atan2(t.m12,t.m11)/Math.PI,0>t&&(t+=360)),t},A.Df=function(){if(!(this.l&4096))return this.Kk;var t=this.Ca;return this.panel!==null?t*this.panel.Df():t},A.qs=function(t,e){return e===void 0&&(e=new z),e.assign(t),this.oe.Cd(e),e},A.rs=function(t,e,n){return this.Sj(t.x,t.y,e.x,e.y,n)},A.Sj=function(t,e,n,i,r){var o=this.transform,s=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*s,u=-o.m12*s,d=-o.m21*s,f=o.m11*s,y=s*(o.m21*o.dy-o.m22*o.dx),T=s*(o.m12*o.dx-o.m11*o.dy);return this.areaBackground!==null?(o=this.actualBounds,It.Ff(o.left,o.top,o.right,o.bottom,t,e,n,i,r)):(s=t*l+e*d+y,t=t*u+e*f+T,e=n*l+i*d+y,n=n*u+i*f+T,r.h(0,0),i=this.naturalBounds,n=It.Ff(0,0,i.width,i.height,s,t,e,n,r),r.transform(o),n)},Rt.prototype.measure=function(t,e,n,i){if(hl(this)!==!1){var r=this.Kg,o=r.right+r.left;r=r.top+r.bottom,t=Math.max(t-o,0),e=Math.max(e-r,0),n=Math.max((n||0)-o,0),i=Math.max((i||0)-r,0),o=this.angle,r=this.desiredSize;var s=this.kq();o===90||o===270?(t=isFinite(r.height)?r.height+s:t,e=isFinite(r.width)?r.width+s:e):(t=isFinite(r.width)?r.width+s:t,e=isFinite(r.height)?r.height+s:e),r=n||0,s=i||0;var l=this instanceof Re;switch(Na(this,!0)){case ye:s=r=0,l&&(e=t=1/0);break;case Ae:isFinite(t)&&t>n&&(r=t),isFinite(e)&&e>i&&(s=e);break;case In:isFinite(t)&&t>n&&(r=t),s=0,l&&(e=1/0);break;case Un:isFinite(e)&&e>i&&(s=e),r=0,l&&(t=1/0)}l=this.maxSize;var u=this.minSize;r>l.width&&u.width<l.width&&(r=l.width),s>l.height&&u.height<l.height&&(s=l.height),n=Math.max(r,u.width),i=Math.max(s,u.height),l.width<n&&(n=Math.min(u.width,n)),l.height<i&&(i=Math.min(u.height,i)),t=Math.min(l.width,t),e=Math.min(l.height,e),t=Math.max(n,t),e=Math.max(i,e),(o===90||o===270)&&(o=t,t=e,e=o,o=n,n=i,i=o),this.uc.ka(),this.Wl(t,e,n,i),this.uc.freeze(),this.uc.w()||Et("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),zo(this,!1)}},Rt.prototype.Wl=function(){},Rt.prototype.Dd=function(){return!1},Rt.prototype.arrange=function(t,e,n,i,r){this.Uk();var o=Xt.alloc();o.assign(this.Ib),this.Ib.ka(),ua(this)===!1?this.Ib.h(t,e,n,i):this.eh(t,e,n,i),this.Ib.freeze(),r===void 0?this.tb=null:this.tb=r,n=!1,r!==void 0?n=!0:(r=this.panel,r!==null&&Nc(r)&&(r=r.panel),r!==null&&(r=r.dc,i=this.measuredBounds,this.areaBackground!==null&&(i=this.Ib),n=e+i.height,i=t+i.width,n=!(0<=t+.05&&i<=r.width+.05&&0<=e+.05&&n<=r.height+.05),this instanceof zr&&(t=this.naturalBounds,this.Lq>t.height||this.Cb>t.width))&&(n=!0)),this.l=n?this.l|256:this.l&-257,this.Ib.w()||Et("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),ju(this,!1),Xt.free(o)},A=Rt.prototype,A.eh=function(){};function Js(t,e,n,i,r){if(t.Ib.h(e,n,i,r),!t.desiredSize.w()){var o=t.uc;n=t.Kg,e=n.right+n.left;var s=n.top+n.bottom;switch(n=o.width+e,o=o.height+s,i+=e,r+=s,e=Na(t,!0),n===i&&o===r&&(e=ye),e){case ye:(n>i||o>r)&&(zo(t,!0),t.measure(n>i?i:n,o>r?r:o,0,0));break;case Ae:zo(t,!0),t.measure(i,r,0,0);break;case In:zo(t,!0),t.measure(i,o,0,0);break;case Un:zo(t,!0),t.measure(n,r,0,0)}}}A.Xl=function(t,e){var n=this.part;n!==null&&n.diagram!==null&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||K0(n,!0),this.N(),Mi(t,e)||(n.oh(),this.Pn(n)))},A.Pn=function(t){this.portId!==null&&(K0(t,!0),t instanceof tn&&tx(t,this))},A.gc=function(t,e){if(!Tl(this,t,e)&&this.visible){var n=this.opacity;if(n!==0){var i=1;n!==1&&(i=t.globalAlpha,t.globalAlpha=i*n);var r="";this.filter!==""&&(r=t.filter,t.filter=this.filter);var o=this instanceof Re&&Nc(this),s=this.Ib;if(o){var l=this.Ib,u=this.dc,d=this.areaBackground,f=this.Ma;d===null&&f===null||t.yc(),d!==null&&(yo(this,t,d,!0,!0,u,l),d instanceof ur&&d.type===kl?(t.beginPath(),t.rect(l.x,l.y,l.width,l.height),t.ng(d)):t.fillRect(l.x,l.y,l.width,l.height)),f!==null&&(yo(this,t,f,!0,!1,u,l),f instanceof ur&&f.type===kl?(t.beginPath(),t.rect(l.x,l.y,l.width,l.height),t.ng(f)):t.fillRect(l.x,l.y,l.width,l.height)),this.hh(t,e)}if(!o&&(o||s.width!==0&&s.height!==0&&!isNaN(s.x)&&!isNaN(s.y))){o=this.transform,l=this.panel,this.l&4096&&Es(this),d=this.part,u=!1;var y=0;d&&e.Gf("drawShadows")&&(u=d.isShadowed)&&(f=d.shadowOffset,y=Math.max(f.y,f.x)*e.scale*e.Mb),f=this.Dd();var T;if(!(T=e.$i||!f)){var w=this.naturalBounds;T=this.wh;var N=T.m11,F=T.m21,nt=T.dx,X=T.m12,ut=T.m22,ht=T.dy,yt,Nt=yt=0;T=yt*N+Nt*F+nt;var Yt=yt*X+Nt*ut+ht;yt=w.width+y,Nt=0;var Qe=yt*N+Nt*F+nt;yt=yt*X+Nt*ut+ht,Nt=Math.min(T,Qe);var xn=Math.min(Yt,yt),dn=Math.max(T+0,Qe)-Nt,De=Math.max(Yt+0,yt)-xn;T=Nt,Yt=xn,yt=w.width+y,Nt=w.height+y,Qe=yt*N+Nt*F+nt,yt=yt*X+Nt*ut+ht,Nt=Math.min(T,Qe),xn=Math.min(Yt,yt),dn=Math.max(T+dn,Qe)-Nt,De=Math.max(Yt+De,yt)-xn,T=Nt,Yt=xn,yt=0,Nt=w.height+y,Qe=yt*N+Nt*F+nt,yt=yt*X+Nt*ut+ht,Nt=Math.min(T,Qe),xn=Math.min(Yt,yt),dn=Math.max(T+dn,Qe)-Nt,De=Math.max(Yt+De,yt)-xn,T=Nt,Yt=xn,y=e.viewportBounds,w=y.x,N=y.y,T=!(T>y.width+w||w>dn+T||Yt>y.height+N||N>De+Yt)}if(T){if(T=(this.l&256)!==0,t.clipInsteadOfFill&&(T=!1),this instanceof zr&&(t.font=this.font),T){if(Yt=l.se()?l.naturalBounds:l.actualBounds,dn=Math.max(s.x,Yt.x),De=Math.max(s.y,Yt.y),y=Math.min(s.right,Yt.right)-dn,w=Math.min(s.bottom,Yt.bottom)-De,N=this.tb,N!==null&&(dn=N.x,De=N.y,y=N.width,w=N.height),dn>s.width+s.x||s.x>Yt.width+Yt.x){n!==1&&(t.globalAlpha=i),this.filter!==""&&(t.filter=r);return}t.save(),t.beginPath(),t.rect(dn,De,y,w),t.clip()}if(f){if(!d.isVisible()){n!==1&&(t.globalAlpha=i),this.filter!==""&&(t.filter=r);return}u&&(Yt=d.shadowOffset,t.Ev(Yt.x*e.scale*this.scale*e.Mb,Yt.y*e.scale*this.scale*e.Mb,d.shadowBlur),oc(t),t.shadowColor=d.shadowColor)}u&&this.shadowVisible===!0?oc(t):u&&this.shadowVisible===!1&&Gu(t),d=this.naturalBounds,this.areaBackground!==null&&(t.yc(),cl(this,t,d,s)),t.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),u&&vs(this,l)&&this.shadowVisible===null&&Gu(t),this.Ma!==null&&(t.yc(),Ba(this,t,d,s)),u&&(this.Ma!==null||this.areaBackground!==null||vs(this,l))?(eu(this,!0),this.shadowVisible===null&&Gu(t)):eu(this,!1),this.hh(t,e),u&&this.l&512&&oc(t),f&&u&&Gu(t),T&&(t.restore(),t.Vc(this instanceof Re)),o.ws()||(e=1/(o.m11*o.m22-o.m12*o.m21),t.transform(o.m22*e,-o.m12*e,-o.m21*e,o.m11*e,e*(o.m21*o.dy-o.m22*o.dx),e*(o.m12*o.dx-o.m11*o.dy)))}}n!==1&&(t.globalAlpha=i),this.filter!==""&&(t.filter=r)}}};function vs(t,e){return e===null?!1:(Nc(e)&&(e=e.panel),(e.l&512)!==0||(e.type===Re.Auto||e.type===Re.Spot)&&e.Pb()!==t)}A.Dv=function(){};function cl(t,e,n,i){yo(t,e,t.areaBackground,!0,!0,n,i),t.areaBackground instanceof ur&&t.areaBackground.type===kl?(e.beginPath(),e.rect(i.x,i.y,i.width,i.height),e.ng(t.areaBackground)):e.fillRect(i.x,i.y,i.width,i.height)}function Ba(t,e,n,i){var r=t.kq(),o=n.x,s=n.y,l=n.width+r,u=n.height+r;yo(t,e,t.Ma,!0,!1,n,i),t.Ma instanceof ur&&t.Ma.type===kl?(e.beginPath(),e.rect(o-r/2,s-r/2,l,u),e.ng(t.Ma)):e.fillRect(o-r/2,s-r/2,l,u)}function Ws(t,e,n){for(var i=e.O.s,r=i.length,o=-1,s=0;s<r;s++)if(i[s]===t){o=s;break}if(t=o,t!==-1)if(t===0)e.svg.gd?e.svg.gd.after(n):e.svg.Ma?e.svg.Ma.after(n):e.type===Re.Table?(e=e.svg.getElementsByClassName("gojs-ts"),e=e.length!==0?e[0]:null,e!==null&&e.after(n)):e.svg.prepend(n);else{for(;t!==0&&!e.M(t-1).Ed();)t--;t===0?e.svg.prepend(n):(t=e.M(t-1).svg,t!==null?t.after(n):e.svg.appendChild(n))}}function Tl(t,e,n){if(!(e instanceof $a))return!1;if(!t.visible||t.opacity===0||t.Dd()&&!t.isVisible())return t.svg!==null&&t.svg.parentNode!==null&&t.svg.remove(),!0;var i=t.panel,r=t.nk(e);if(t.kk(e,n,r))return t.svg.parentElement!==null?(t.Dd()&&(e.ti=t.svg),!0):(t.Dd()?(e.ti!==null?e.ti.after(t.svg):e.Nj.prepend(t.svg),e.ti=t.svg):i&&Ws(t,i,t.svg),!0);if(t.Dd()&&t.isShadowed){var o=t.shadowOffset;e.Ev(o.x*n.scale*t.scale*n.Mb,o.y*n.scale*t.scale*n.Mb,t.shadowBlur),oc(e),e.shadowColor=t.shadowColor}t instanceof zr&&(e.font=t.font),e.yd=null;var s=t.transform;o=t instanceof Re;var l=t instanceof Re?Nc(t):!1;t.l&4096&&Es(t);var u=t.Ib;if(e.rb.ha=[1,0,0,1,0,0],e.o=!1,r&&(e.o=!0,o&&l?(sp(e,1,0,0,1,0,0),t.svg=e.ad):o?(sp(e,s.m11,s.m12,s.m21,s.m22,s.dx,s.dy),t.svg=e.ad):sp(e,1,0,0,1,0,0)),r=t.naturalBounds,t.areaBackground!==null){var d=s.copy().Vj();e.rb.ha=[d.m11,d.m12,d.m21,d.m22,d.dx,d.dy],cl(t,e,r,u),e.rb.ha=[1,0,0,1,0,0],e.yd.gd=e.ad,e.yd.prepend(e.ad)}return o||(e.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy]),t.background!==null&&(o?(l&&(e.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy]),Ba(t,e,r,u),l&&(e.rb.ha=[1,0,0,1,0,0])):(e.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy],Ba(t,e,r,u)),e.yd.Ma=e.ad,e.yd.prepend(e.ad)),s=e.yd,r=t.part,l=!1,r&&n.Gf("drawShadows")&&(l=r.isShadowed),e.clipInsteadOfFill&&(l=!1),t.Dd()&&l&&oc(e),l&&t.shadowVisible===!0?oc(e):l&&t.shadowVisible===!1&&Gu(e),r=t.panel,l&&vs(t,r)&&t.shadowVisible===null&&Gu(e),e.Il&&(d=n.computePixelRatio(),d="drop-shadow("+e.shadowOffsetX/d+"px "+e.shadowOffsetY/d+"px "+e.shadowBlur/d/2+"px "+e.shadowColor+")",t.background!==null&&s.Ma.setAttributeNS(null,"filter",d),t.areaBackground!==null&&s.gd.setAttributeNS(null,"filter",d)),l&&(t.Ma!==null||t.areaBackground!==null||vs(t,r))?(eu(t,!0),t.shadowVisible===null&&Gu(e)):eu(t,!1),r=l,t.hh(e,n),o&&e.nh.pop(),e.o&&e.nh.pop(),s=e.Gv.hs,l=o?t.svg:e.yd,d=t.svg,!o&&d!==null&&l!==d&&d.parentNode===t.panel.svg?(t.svg.replaceWith(l),t.svg=l,l!==null&&t.$o(e,i,u,l),ka(e,d),!0):(t.svg=l,s!==null&&l===null&&(bg(e),e.nh.pop()),l===null||(t.$o(e,i,u,l),e.Il&&(n=n.computePixelRatio(),t.Dv(l,"drop-shadow("+e.shadowOffsetX/n+"px "+e.shadowOffsetY/n+"px "+e.shadowBlur/n/2+"px "+e.shadowColor+")")),r&&t.l&512&&oc(e),t.Dd()&&Gu(e),n=t.Dd()?t.opacity*e.globalAlpha:t.opacity,n!==1&&l.setAttributeNS(null,"opacity",n.toString()),t.filter!==""&&l.setAttributeNS(null,"filter",t.filter),t.Dd()?(e.ti?e.ti.after(l):e.Nj.prepend(l),e.ti=l):i!==null&&Ws(t,i,l),s!==null&&s(t,l)),!0)}A.$o=function(t,e,n,i){var r=(this.l&256)!==0;if(t.clipInsteadOfFill&&(r=!1),r){var o=e.se()?e.naturalBounds:e.actualBounds;e=Math.max(n.x,o.x),r=Math.max(n.y,o.y);var s=Math.min(n.right,o.right)-e;n=Math.min(n.bottom,o.bottom)-r,o=this.tb,o!==null&&(e=o.x,r=o.y,s=o.width,n=o.height),o=i.getAttribute("clip-path");var l=null;o!==null&&(l=t.svg.getElementById(o.split("#")[1].slice(0,-1))),l===null?(o="CLIP"+pr++,l=t.Ud("clipPath",{id:o}),e=t.Ud("rect",{x:e,y:r,width:s,height:n}),this instanceof Re&&(r=this.transform.copy().Vj(),e.setAttribute("transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")),l.appendChild(e),t.svg.appendChild(l),i.setAttributeNS(null,"clip-path","url(#"+o+")")):(t=l.firstElementChild,t.setAttribute("x",e.toString()),t.setAttribute("y",r.toString()),t.setAttribute("width",s.toString()),t.setAttribute("height",n.toString()))}else i.removeAttributeNS(null,"clip-path"),ka(t,i)};function ka(t,e){e=e.getAttribute("clip-path"),e!==null&&(t=t.svg.getElementById(e.split("#")[1].slice(0,-1)),t!==null&&t.remove())}function Ys(t){if(t.svg!==null){var e=t.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=t.svg.ownerDocument;if(e!==null){e=gn(e);for(var i=e.next();!i.done;i=e.next())i=n.getElementById(i.value.split("#")[1].slice(0,-1)),i!==null&&i.remove()}t.svg.remove()}}A.hh=function(){},A.lv=function(){this.Uc=!0},A.kk=function(t,e,n){if(this.Uc)return this.lv(),this.Uc=!1;if(e=this.svg,e===null)return!1;if(!this.visible)return e.remove(),!1;if(e.nodeName!=="g"&&n||e.nodeName==="g"&&!n)return!1;var i=this.transform,r=this instanceof Re?Nc(this):!1;if(!(this instanceof Re&&r))if(this instanceof Ia){var o=this.bt;t.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy],o!==null&&sy(t,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?e.lastElementChild.setAttributeNS(null,"transform",ay(t)):e.setAttributeNS(null,"transform",ay(t))}else if(!n||this instanceof Re)e.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");else if(this instanceof ai){o=e.getElementsByTagName("path");for(var s=0;s<o.length;s++)o[s].setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")")}else e.lastElementChild.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");return o=this.Dd()?this.opacity*t.globalAlpha:this.opacity,o===1?e.removeAttribute("opacity"):e.setAttributeNS(null,"opacity",o.toString()),t.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||e.gd!==void 0)&&(o=e.gd,this.areaBackground===null?(e.gd.remove(),e.gd=void 0):(s=i.copy().Vj(),t.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy],cl(this,t,this.naturalBounds,this.actualBounds),t.rb.ha=[1,0,0,1,0,0],e.gd?(s=e.gd.getAttribute("filter"),s!==null&&t.ad.setAttribute("filter",s),e.gd.replaceWith(t.ad)):e.prepend(t.ad),e.gd=t.ad),o&&Eg(t,o)),(this.background!==null||e.Ma!==void 0)&&(o=e.Ma,this.background===null?(Eg(t,e.Ma),e.Ma.remove(),e.Ma=void 0):((r||n&&!(this instanceof Re))&&(t.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy]),Ba(this,t,this.naturalBounds,this.actualBounds),e.Ma?(Eg(t,e.Ma),n=e.Ma.getAttribute("filter"),n!==null&&t.ad.setAttribute("filter",n),e.Ma.replaceWith(t.ad)):e.prepend(t.ad),e.Ma=t.ad),o&&Eg(t,o)),this.$o(t,this.panel,this.actualBounds,e),!0},A.nk=function(t){if(this.background!==null||this.areaBackground!==null)return!0;var e=(this.l&256)!==0;return t.clipInsteadOfFill&&(e=!1),!!e};function yo(t,e,n,i,r,o,s){if(n!==null){var l=1,u=1;if(typeof n=="string")i?e.fillStyle=n:e.strokeStyle=n;else if(n.type===kc)i?e.fillStyle=n.color:e.strokeStyle=n.color;else{var d=t.kq();if(l=o.width,u=o.height,r?(l=s.width,u=s.height):i||(l+=d,u+=d),(o=e instanceof Bh)&&n.xe&&(n.type===Jd||n.yk===l&&n.ft===u))var f=n.xe;else{var y=0,T=0,w=0,N=0,F=0,nt=0;if(nt=F=0,r?(F=s.x,nt=s.y):i||(F-=d/2,nt-=d/2),y=n.start.x*l+n.start.offsetX,T=n.start.y*u+n.start.offsetY,w=n.end.x*l+n.end.offsetX,N=n.end.y*u+n.end.offsetY,y+=F,w+=F,T+=nt,N+=nt,n.type===ac)f=e.createLinearGradient(y,T,w,N);else if(n.type===kl)nt=isNaN(n.endRadius)?Math.max(l,u)/2:n.endRadius,isNaN(n.startRadius)?(F=0,nt=Math.max(l,u)/2):F=n.startRadius,f=e.createRadialGradient(y,T,F,w,N,nt);else if(n.type===Jd)try{f=e.createPattern(n.pattern,"repeat")}catch(ut){f=null}if(n.type!==Jd&&(r=n.colorStops,r!==null))for(r=r.iterator;r.next();)f.addColorStop(r.key,r.value);if(o&&(n.xe=f,f!==null&&(n.yk=l,n.ft=u),f===null&&n.type===Jd&&n.yk!==-1)){n.yk=-1;var X=t.diagram;X!==null&&n.yk===-1&&Ur(function(){X.redraw()},600)}}i?e.fillStyle=f:e.strokeStyle=f}}}A.rg=function(t){if(t instanceof Re)t:{if(this!==t&&t!==null)for(var e=this.panel;e!==null;){if(e===t){t=!0;break t}e=e.panel}t=!1}else t=!1;return t},A.Ed=function(){if(!this.visible)return!1;var t=this.panel;return t!==null?t.Ed():!0},A.If=function(){for(var t=this instanceof Re?this:this.panel;t!==null&&t.isEnabled;)t=t.panel;return t===null};function Es(t){if(t.l&2048){var e=t.Ab;if(e.reset(),!t.Ib.w()||!t.uc.w()){Fl(t,!1);return}if(e.translate(t.Ib.x-t.uc.x,t.Ib.y-t.uc.y),t.scale!==1||t.angle!==0){var n=t.naturalBounds;t.no(e,n.x,n.y,n.width,n.height)}Fl(t,!1),wl(t,!0)}t.l&4096&&(e=t.panel,e===null?(t.wh.set(t.Ab),t.Kk=t.scale,wl(t,!1)):e.oe!==null&&(n=t.wh,n.reset(),e.se()?n.multiply(e.wh):e.panel!==null&&n.multiply(e.panel.wh),n.multiply(t.Ab),t.Kk=t.scale*e.Kk,wl(t,!1)))}A.no=function(t,e,n,i,r){if(this.Ca!==1&&t.scale(this.Ca),this.Kb!==0){var o=z.alloc();o.yi(e,n,i,r,ei),t.rotate(this.Kb,o.x,o.y),z.free(o)}},A.v=function(t){if(!hl(this)){t===void 0&&(t=!1),zo(this,!0),ju(this,!0);var e=this.panel;e===null||t||e.v()}},A.Uj=function(){hl(this)||(zo(this,!0),ju(this,!0))};function la(t){if(!ua(t)){var e=t.panel;e!==null?e.v():t.Dd()&&(e=t.diagram,e!==null&&(e.De.add(t),t instanceof tn&&t.Bd(),e.$b())),ju(t,!0)}}A.Uk=function(){!(this.l&2048)&&(Fl(this,!0),wl(this,!0))},A.Wu=function(){wl(this,!0)},A.N=function(){var t=this.part;t!==null&&t.N()};function Na(t,e){var n=t.stretch,i=t.panel;return i!==null&&i.type===Re.Table?mu(t,i.Fb(t.row),i.Eb(t.column),e):i!==null&&i.type===Re.Auto&&i.Pb()===t?ys(t,Ae,e):n===ti?i!==null?i.type===Re.Spot&&i.Pb()===t?ys(t,Ae,e):(n=i.defaultStretch,n===ti?ys(t,ye,e):ys(t,n,e)):ys(t,ye,e):ys(t,n,e)}function mu(t,e,n,i){var r=t.stretch;if(r!==ti)return ys(t,r,i);var o=r=null;switch(e.stretch){case Un:o=!0;break;case Ae:o=!0}switch(n.stretch){case In:r=!0;break;case Ae:r=!0}return e=t.panel.defaultStretch,r===null&&(r=e===In||e===Ae),o===null&&(o=e===Un||e===Ae),r===!0&&o===!0?ys(t,Ae,i):r===!0?ys(t,In,i):o===!0?ys(t,Un,i):ys(t,ye,i)}function ys(t,e,n){if(n)return e;if(e===ye||(n=t.desiredSize,n.w()))return ye;if(t=t.angle,!isNaN(n.width))if(t!==90&&t!==270){if(e===In)return ye;if(e===Ae)return Un}else{if(e===Un)return ye;if(e===Ae)return In}if(!isNaN(n.height))if(t!==90&&t!==270){if(e===Un)return ye;if(e===Ae)return In}else{if(e===In)return ye;if(e===Ae)return Un}return e}function eu(t,e){t.l=e?t.l|512:t.l&-513}function Ns(t){return(t.l&1024)!==0}function ud(t,e){t.l=e?t.l|1024:t.l&-1025}function Fl(t,e){t.l=e?t.l|2048:t.l&-2049}function wl(t,e){t.l=e?t.l|4096:t.l&-4097}function hl(t){return(t.l&8192)!==0}function zo(t,e){t.l=e?t.l|8192:t.l&-8193}function ua(t){return(t.l&16384)!==0}function ju(t,e){t.l=e?t.l|16384:t.l&-16385}A.Gj=function(){this.svg=null},A.wi=function(t){this.Me=t,this.svg!==null&&this.svg.remove()},A.Av=function(){},A.zv=function(t){return this.pa=t,la(this),!0},A.mm=function(t,e){(this.pa.x!==t||this.pa.y!==e)&&(this.pa.h(t,e),this.Uk())},A.kq=function(){return 0};function _h(t){var e=t.part;if(e instanceof tn&&(t.portId!==null||t===e.port)){var n=e.diagram;n===null||n.undoManager.isUndoingRedoing||tx(e,t)}}function ry(t){var e=t.diagram;e===null||e.undoManager.isUndoingRedoing||(t instanceof Re?t instanceof tn?t.Bd():t.qm(t,function(n){_h(n)}):_h(t))}A.bind=function(t,e,n,i){var r=null;return typeof t=="string"?r=new Oo(t,e,n,i):r=t,r.xd=this,t=this.ih(),t!==null&&Ty(t)&&Et("Cannot add a Binding to a template that has already been copied: "+r),this.localBindings===null&&(this.localBindings=new Te),this.localBindings.add(r),this},A.set=function(t){return Object.assign(this,t),this},A.Du=function(t){return h0(this,t),this},A.apply=function(t){return t(this),this},A.nm=function(t){return Ah(this,t),this},A.pz=function(){return this.ih()},A.ih=function(){for(var t=this instanceof Re?this:this.panel;t!==null;){if(t.allBindings!==null)return t;t=t.panel}return null},A.Jv=function(t){return t.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Zt),this.animationTriggers.add(t.propertyName,t),this};function Cl(t,e){for(var n=1;n<arguments.length;++n);n=arguments;var i=null,r=null;if(typeof t=="function")r=t;else if(typeof t=="string"){var o=Yd.I(t);typeof o=="function"?(n=kn(arguments),i=o(n),Ut(i)||Et('GraphObject.make invoked object builder "'+t+'", but it did not return an Object')):r=sn.go[t]}if(i===null&&(r!=null&&r.constructor||Et("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+t),i=new r),r=1,i instanceof Kt&&1<n.length){o=i;var s=n[1];(typeof s=="string"||s instanceof HTMLDivElement)&&(Df(o,s),r++)}for(;r<n.length;r++)o=n[r],o===void 0?Et("Undefined value at argument "+r+" for object being constructed by GraphObject.make: "+i):h0(i,o);return i}function h0(t,e){if(typeof e=="string")if(t instanceof zr)t.text=e;else if(t instanceof ai)t.figure=e;else if(t instanceof Ia)t.source=e;else if(t instanceof Re)e=nu.I(e),e!==null&&(t.type=e);else if(t instanceof ur){var n=xr(ur,e);n!==null?t.type=n:Et("Unknown Brush type as an argument to GraphObject.make: "+e)}else t instanceof Oe?(e=xr(Oe,e),e!==null&&(t.type=e)):t instanceof Oi&&(e=xr(Oi,e),e!==null&&(t.type=e));else if(e instanceof Rt)t instanceof Re||Et("A GraphObject can only be added to a Panel, not to: "+t),t.add(e);else if(e instanceof jo){var i;e.isRow&&typeof t.getRowDefinition=="function"?i=t.getRowDefinition(e.index):e.isRow||typeof t.getColumnDefinition!="function"||(i=t.getColumnDefinition(e.index)),i instanceof jo?Fg(i,e):Et("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+t)}else if(e instanceof xe)typeof t.qb=="function"&&t.qb(e);else if(e instanceof Yo)t.type=e;else if(e instanceof Oo)t instanceof Rt||t instanceof jo?t.bind(e):Et("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+t);else if(e instanceof wa)t instanceof Rt?t.Jv(e):Et("An AnimationTrigger can only be applied to a GraphObject, not to: "+t);else if(e instanceof To)t instanceof Oe&&t.type===Oe.o?t.figures.add(e):Et("A PathFigure can only be added to a Path Geometry, not to: "+t);else if(e instanceof Oi)t instanceof To?t.segments.add(e):Et("A PathSegment can only be added to a PathFigure, not to: "+t);else if(e instanceof oo)t instanceof Kt||t instanceof Jn?t.layout=e:Et("A Layout can only be assigned to a Diagram or a Group, not to: "+t);else if(Array.isArray(e))for(n=0;n<e.length;n++)h0(t,e[n]);else if(typeof e=="object"&&e!==null)if(t instanceof ur){n=new Ai;for(var r in e)i=parseFloat(r),isNaN(i)?n[r]=e[r]:t.addColorStop(i,e[r]);Ah(t,n)}else if(t instanceof jo){e.row!==void 0?(r=e.row,(r==null||r===1/0||isNaN(r)||0>r)&&Et("Must specify non-negative integer row for RowColumnDefinition "+e+", not: "+r),t.isRow=!0,t.index=r):e.column!==void 0&&(r=e.column,(r==null||r===1/0||isNaN(r)||0>r)&&Et("Must specify non-negative integer column for RowColumnDefinition "+e+", not: "+r),t.isRow=!1,t.index=r),r=new Ai;for(n in e)n!=="row"&&n!=="column"&&(r[n]=e[n]);Ah(t,r)}else Ah(t,e);else Et('Unknown initializer "'+e+'" for object being constructed by GraphObject.make: '+t)}function Cc(t,e){Yd.add(t,e)}function xg(t,e,n){n===void 0&&(n=null);var i=t[1];if(typeof n=="function"?n(i):typeof i=="string")return t.splice(1,1),i;if(e===void 0)throw Error("no "+(typeof n=="function"?"satisfactory":"string")+" argument for GraphObject builder "+t[0]);return e}Mn.Object.defineProperties(Rt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(t){this.bindingId!==t&&(this.A===null&&(this.A=new cd),this.A.zp=t)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(t){this.localBindings!==t&&(this.A===null&&(this.A=new cd),this.A.te=t)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(t){this.srcBindings!==t&&(this.A===null&&(this.A=new cd),this.A.wm=t)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(t){var e=this.shadowVisible;e!==t&&(di(this),this.A.Ci=t,this.Uc=!0,this.N(),this.g("shadowVisible",e,t))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(t){var e=this.enabledChanged;e!==t&&(di(this),this.A.Hb=t,this.g("enabledChanged",e,t))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:da},set:function(t){var e=this.segmentOrientation;e!==t&&(this.Ua===null&&(this.Ua=new th),this.Ua.rr=t,this.v(),this.g("segmentOrientation",e,t),t===da&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(t){t=Math.round(t);var e=this.segmentIndex;e!==t&&(this.Ua===null&&(this.Ua=new th),this.Ua.u=t,this.v(),this.g("segmentIndex",e,t))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(t){isNaN(t)||0>t?t=0:1<t&&(t=1);var e=this.segmentFraction;e!==t&&(this.Ua===null&&(this.Ua=new th),this.Ua.o=t,this.v(),this.g("segmentFraction",e,t))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Xe},set:function(t){var e=this.segmentOffset;e.D(t)||(t=t.J(),this.Ua===null&&(this.Ua=new th),this.Ua.F=t,this.v(),this.g("segmentOffset",e,t))}},stretch:{get:function(){return this.A!==null?this.A.hg:ti},set:function(t){var e=this.stretch;e!==t&&(di(this),this.A.hg=t,this.v(),this.g("stretch",e,t))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(t){var e=this.name;e!==t&&(di(this),this.A.xa=t,this.part!==null&&(this.part.Rh=null),this.g("name",e,t))}},opacity:{get:function(){return this.pb},set:function(t){var e=this.pb;e!==t&&((0>t||1<t)&&rn(t,"0 <= value <= 1",Rt,"opacity"),this.pb=t,this.g("opacity",e,t),t=this.diagram,e=this.part,t!==null&&e!==null&&t.N(jh(e,e.actualBounds)))}},filter:{get:function(){return this.bn},set:function(t){var e=this.bn;e!==t&&(this.bn=t,this.Uc=!0,this.g("filter",e,t),t=this.diagram,e=this.part,t!==null&&e!==null&&t.N(jh(e,e.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(t){var e=(this.l&1)!==0;e!==t&&(this.l^=1,this.g("visible",e,t),e=this.panel,e!==null?e.v():this.Dd()&&this.Zb(t),this.N(),ry(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(t){var e=(this.l&2)!==0;e!==t&&(this.l^=2,this.g("pickable",e,t))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(t){var e=(this.l&4)!==0;e!==t&&(this.l^=4,this.g("fromLinkableDuplicates",e,t))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(t){var e=(this.l&8)!==0;e!==t&&(this.l^=8,this.g("fromLinkableSelfNode",e,t))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(t){var e=(this.l&16)!==0;e!==t&&(this.l^=16,this.g("toLinkableDuplicates",e,t))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(t){var e=(this.l&32)!==0;e!==t&&(this.l^=32,this.g("toLinkableSelfNode",e,t))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(t){var e=(this.l&64)!==0;e!==t&&(this.l^=64,this.v(),this.g("isPanelMain",e,t))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(t){var e=(this.l&128)!==0;e!==t&&(this.l^=128,this.g("isActionable",e,t))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(t){var e=this.areaBackground;e!==t&&(t!==null&&dd(t,"GraphObject.areaBackground"),t instanceof ur&&t.freeze(),di(this),this.A.gd=t,this.N(),this.g("areaBackground",e,t))}},background:{get:function(){return this.Ma},set:function(t){var e=this.Ma;e!==t&&(t!==null&&dd(t,"GraphObject.background"),t instanceof ur&&t.freeze(),this.Ma=t,this.N(),this.g("background",e,t))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var t;for(t=this.panel;t;){if(t instanceof Rn)return this.Ng=t;t=t.panel}return null}},svg:{get:function(){return this.V},set:function(t){this.V=t}},panel:{get:function(){return this.Me}},layer:{get:function(){var t=this.part;return t!==null?t.layer:null}},diagram:{get:function(){var t=this.part;return t!==null?t.diagram:null}},position:{get:function(){return this.pa},set:function(t){var e=t.x,n=t.y,i=this.pa,r=i.x;i=i.y,(r===e||isNaN(r)&&isNaN(e))&&(i===n||isNaN(i)&&isNaN(n))?this.Av():(t=t.copy(),this.zv(t,r,i)&&this.g("position",new z(r,i),t))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(t){var e=this.Ca;e!==t&&(0>=t&&Et("GraphObject.scale for "+this+" must be greater than zero, not: "+t),this.Ca=t,this.v(),this.g("scale",e,t))}},angle:{get:function(){return this.Kb},set:function(t){var e=this.Kb;e!==t&&(t%=360,0>t&&(t+=360),e!==t&&(this.Kb=t,ry(this),this.v(),this.g("angle",e,t)))}},desiredSize:{get:function(){return this.jd},set:function(t){var e=t.width,n=t.height,i=this.jd,r=i.width,o=i.height;(r===e||isNaN(r)&&isNaN(e))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=t=t.J(),this.v(),this instanceof ai&&this.qc(),this.g("desiredSize",i,t),Ns(this)&&(t=this.part,t!==null&&(qr(this,t,"width"),qr(this,t,"height"))))}},width:{get:function(){return this.jd.width},set:function(t){var e=this.jd.width;e===t||isNaN(e)&&isNaN(t)||(e=this.jd,this.jd=t=new Je(t,this.jd.height).freeze(),this.v(),this instanceof ai&&this.qc(),this.g("desiredSize",e,t),Ns(this)&&(t=this.part,t!==null&&qr(this,t,"width")))}},height:{get:function(){return this.jd.height},set:function(t){var e=this.jd.height;e===t||isNaN(e)&&isNaN(t)||(e=this.jd,this.jd=t=new Je(this.jd.width,t).freeze(),this.v(),this instanceof ai&&this.qc(),this.g("desiredSize",e,t),Ns(this)&&(t=this.part,t!==null&&qr(this,t,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ui},set:function(t){var e=this.minSize;e.D(t)||(t=t.copy(),isNaN(t.width)&&(t.width=0),isNaN(t.height)&&(t.height=0),t.freeze(),di(this),this.A.u=t,this.v(),this.g("minSize",e,t))}},maxSize:{get:function(){return this.A!==null?this.A.o:Pr},set:function(t){var e=this.maxSize;e.D(t)||(t=t.copy(),isNaN(t.width)&&(t.width=1/0),isNaN(t.height)&&(t.height=1/0),t.freeze(),di(this),this.A.o=t,this.v(),this.g("maxSize",e,t))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(t){typeof t=="number"&&(t=new ii(t));var e=this.Kg;e.D(t)||(this.Kg=t=t.J(),this.v(),this.g("margin",e,t))}},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(t){this.animationTriggers!==t&&(di(this),this.A.hb=t)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:ye},set:function(t){this.reshapingBehavior!==t&&(di(this),this.A.Pf=t)}},alignment:{get:function(){return this.Jb},set:function(t){var e=this.Jb;e.D(t)||(t.Mc()&&!t.Xb()&&Et("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+t),this.Jb=t=t.J(),la(this),this.g("alignment",e,t))}},column:{get:function(){return this.Ag},set:function(t){t=Math.round(t);var e=this.Ag;e!==t&&(0>t&&rn(t,">= 0",Rt,"column"),this.Ag=t,this.v(),this.g("column",e,t),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(t){t=Math.round(t);var e=this.columnSpan;e!==t&&(1>t&&rn(t,">= 1",Rt,"columnSpan"),di(this),this.A.ob=t,this.v(),this.g("columnSpan",e,t))}},row:{get:function(){return this.io},set:function(t){t=Math.round(t);var e=this.io;e!==t&&(0>t&&rn(t,">= 0",Rt,"row"),this.io=t,this.v(),this.g("row",e,t),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(t){t=Math.round(t);var e=this.rowSpan;e!==t&&(1>t&&rn(t,">= 1",Rt,"rowSpan"),di(this),this.A.Bi=t,this.v(),this.g("rowSpan",e,t))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(t){var e=this.spanAllocation;e!==t&&(di(this),this.A.Di=t,this.v(),this.g("spanAllocation",e,t))}},alignmentFocus:{get:function(){return this.sk},set:function(t){var e=this.sk;e.D(t)||(this.sk=t=t.J(),this.v(),this.g("alignmentFocus",e,t))}},portId:{get:function(){return this.Yn},set:function(t){var e=this.Yn;if(e!==t){var n=this.part;n===null||n instanceof tn||Et("Cannot set portID on a Link: "+t),e!==null&&n!==null&&Q0(n,this),this.Yn=t,t!==null&&n!==null&&(n.Te=!0,ix(n,this)),this.g("portId",e,t)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:qn},set:function(t){var e=this.toSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.yj=t,this.g("toSpot",e,t),_h(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(t){var e=this.toEndSegmentLength;e!==t&&(0>t&&rn(t,">= 0",Rt,"toEndSegmentLength"),this.Xc(),this.ba.wj=t,this.g("toEndSegmentLength",e,t),_h(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(t){var e=this.toShortLength;e!==t&&(this.Xc(),this.ba.xj=t,this.g("toShortLength",e,t),_h(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(t){var e=this.toLinkable;e!==t&&(this.Xc(),this.ba.Tr=t,this.g("toLinkable",e,t))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(t){var e=this.toMaxLinks;e!==t&&(0>t&&rn(t,">= 0",Rt,"toMaxLinks"),this.Xc(),this.ba.Ur=t,this.g("toMaxLinks",e,t))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:qn},set:function(t){var e=this.fromSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.Xi=t,this.g("fromSpot",e,t),_h(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(t){var e=this.fromEndSegmentLength;e!==t&&(0>t&&rn(t,">= 0",Rt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=t,this.g("fromEndSegmentLength",e,t),_h(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(t){var e=this.fromShortLength;e!==t&&(this.Xc(),this.ba.Wi=t,this.g("fromShortLength",e,t),_h(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(t){var e=this.fromLinkable;e!==t&&(this.Xc(),this.ba.hq=t,this.g("fromLinkable",e,t))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(t){var e=this.fromMaxLinks;e!==t&&(0>t&&rn(t,">= 0",Rt,"fromMaxLinks"),this.Xc(),this.ba.iq=t,this.g("fromMaxLinks",e,t))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(t){var e=this.cursor;e!==t&&(di(this),this.A.j=t,this.g("cursor",e,t))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(t){var e=this.click;e!==t&&(di(this),this.A.zh=t,this.g("click",e,t))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(t){var e=this.doubleClick;e!==t&&(di(this),this.A.Fh=t,this.g("doubleClick",e,t))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(t){var e=this.contextClick;e!==t&&(di(this),this.A.Bh=t,this.g("contextClick",e,t))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(t){var e=this.mouseEnter;e!==t&&(di(this),this.A.Mh=t,this.g("mouseEnter",e,t))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(t){var e=this.mouseLeave;e!==t&&(di(this),this.A.Ph=t,this.g("mouseLeave",e,t))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(t){var e=this.mouseOver;e!==t&&(di(this),this.A.Qh=t,this.g("mouseOver",e,t))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(t){var e=this.mouseHover;e!==t&&(di(this),this.A.Oh=t,this.g("mouseHover",e,t))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(t){var e=this.mouseHold;e!==t&&(di(this),this.A.Nh=t,this.g("mouseHold",e,t))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(t){var e=this.mouseDragEnter;e!==t&&(di(this),this.A.Of=t,this.g("mouseDragEnter",e,t))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(t){var e=this.mouseDragLeave;e!==t&&(di(this),this.A.Xd=t,this.g("mouseDragLeave",e,t))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(t){var e=this.mouseDrop;e!==t&&(di(this),this.A.Lh=t,this.g("mouseDrop",e,t))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(t){var e=this.actionDown;e!==t&&(di(this),this.A.V=t,this.g("actionDown",e,t))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(t){var e=this.actionMove;e!==t&&(di(this),this.A.ia=t,this.g("actionMove",e,t))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(t){var e=this.actionUp;e!==t&&(di(this),this.A.Ha=t,this.g("actionUp",e,t))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(t){var e=this.actionCancel;e!==t&&(di(this),this.A.F=t,this.g("actionCancel",e,t))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(t){var e=this.toolTip;e!==t&&(di(this),this.A.$h=t,this.g("toolTip",e,t))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(t){var e=this.contextMenu;e!==t&&(di(this),this.A.Ch=t,this.g("contextMenu",e,t))}}}),Rt.prototype.trigger=Rt.prototype.Jv,Rt.prototype.findBindingPanel=Rt.prototype.ih,Rt.prototype.findTemplateBinder=Rt.prototype.pz,Rt.prototype.setProperties=Rt.prototype.nm,Rt.prototype.apply=Rt.prototype.apply,Rt.prototype.attach=Rt.prototype.Du,Rt.prototype.set=Rt.prototype.set,Rt.prototype.isEnabledObject=Rt.prototype.If,Rt.prototype.isVisibleObject=Rt.prototype.Ed,Rt.prototype.isContainedBy=Rt.prototype.rg,Rt.prototype.getNearestIntersectionPoint=Rt.prototype.rs,Rt.prototype.getLocalPoint=Rt.prototype.qs,Rt.prototype.getDocumentScale=Rt.prototype.Df,Rt.prototype.getDocumentAngle=Rt.prototype.li,Rt.prototype.getDocumentBounds=Rt.prototype.mi,Rt.prototype.getDocumentPoint=Rt.prototype.ga,Rt.prototype.intersectsRect=Rt.prototype.Yc,Rt.prototype.containedInRect=Rt.prototype.fh,Rt.prototype.containsRect=Rt.prototype.Re,Rt.prototype.containsPoint=Rt.prototype.ca,Rt.prototype.raiseChanged=Rt.prototype.g,Rt.prototype.raiseChangedEvent=Rt.prototype.cb,Rt.prototype.addCopyProperty=Rt.prototype.Vw;var Yd=null;Rt.className="GraphObject",Yd=new Zt,Cc("Button",function(){function t(n,i){return n.diagram.ic(n.documentPoint,function(r){for(;r.panel!==null&&!r.isActionable;)r=r.panel;return r},function(r){return r===i})!==null}var e=Cl(Re,Re.Auto,{isActionable:!0,enabledChanged:function(n,i){if(n instanceof Re){var r=n.fb("ButtonBorder");r!==null&&(r.fill=i?n._buttonFillNormal:n._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Cl(ai,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new vn(0,0,2.76142374915397,2.761423749153969),spot2:new vn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return e.mouseEnter=function(n,i){if(i.If()&&i instanceof Re&&(n=i.fb("ButtonBorder"),n instanceof ai)){var r=i._buttonFillOver;i._buttonFillNormal=n.fill,n.fill=r,r=i._buttonStrokeOver,i._buttonStrokeNormal=n.stroke,n.stroke=r}},e.mouseLeave=function(n,i){i.If()&&i instanceof Re&&(n=i.fb("ButtonBorder"),n instanceof ai&&(n.fill=i._buttonFillNormal,n.stroke=i._buttonStrokeNormal))},e.actionDown=function(n,i){if(i.If()&&i instanceof Re&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof ai){n=n.diagram;var o=n.skipsUndoManager;n.skipsUndoManager=!0;var s=i._buttonFillPressed;i._buttonFillOver=r.fill,r.fill=s,s=i._buttonStrokePressed,i._buttonStrokeOver=r.stroke,r.stroke=s,n.skipsUndoManager=o}}},e.actionUp=function(n,i){if(i.If()&&i instanceof Re&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof ai){var o=n.diagram,s=o.skipsUndoManager;o.skipsUndoManager=!0,t(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=s}}},e.actionCancel=function(n,i){if(i.If()&&i instanceof Re&&i._buttonFillPressed!==null){var r=i.fb("ButtonBorder");if(r instanceof ai){var o=n.diagram,s=o.skipsUndoManager;o.skipsUndoManager=!0,t(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=s}}},e.actionMove=function(n,i){if(i.If()&&i instanceof Re&&i._buttonFillPressed!==null){var r=n.diagram;if(r.firstInput.button===0&&(r.currentTool.standardMouseOver(),t(n,i)&&(n=i.fb("ButtonBorder"),n instanceof ai))){var o=r.skipsUndoManager;r.skipsUndoManager=!0;var s=i._buttonFillPressed;n.fill!==s&&(n.fill=s),s=i._buttonStrokePressed,n.stroke!==s&&(n.stroke=s),r.skipsUndoManager=o}}},e}),Cc("TreeExpanderButton",function(){var t=Cl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Cl(ai,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:bi},new Oo("figure","isTreeExpanded",function(e,n){return n=n.panel,e?n._treeExpandedFigure:n._treeCollapsedFigure}).cp()),{visible:!1},new Oo("visible","isTreeLeaf",function(e){return!e}).cp());return t.click=function(e,n){if(n=n.part,n instanceof Vi&&(n=n.adornedPart),n instanceof tn){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isTreeExpanded){if(!i.canCollapseTree(n))return}else if(!i.canExpandTree(n))return;e.handled=!0,n.isTreeExpanded?i.collapseTree(n):i.expandTree(n)}}},t}),Cc("SubGraphExpanderButton",function(){var t=Cl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Cl(ai,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:bi},new Oo("figure","isSubGraphExpanded",function(e,n){return n=n.panel,e?n._subGraphExpandedFigure:n._subGraphCollapsedFigure}).cp()));return t.click=function(e,n){if(n=n.part,n instanceof Vi&&(n=n.adornedPart),n instanceof Jn){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isSubGraphExpanded){if(!i.canCollapseSubGraph(n))return}else if(!i.canExpandSubGraph(n))return;e.handled=!0,n.isSubGraphExpanded?i.collapseSubGraph(n):i.expandSubGraph(n)}}},t}),Cc("ToolTip",function(){return Cl(Vi,Re.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new z(0,3),shadowBlur:5},Cl(ai,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new vn(0,0,4,6),spot2:new vn(1,1,-4,-4)}))}),Cc("ContextMenu",function(){return Cl(Vi,Re.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new z(0,3),shadowBlur:5},new Oo("background","",function(t){return t.adornedPart!==null&&t.placeholder!==null?null:"#F5F5F5"}))}),Cc("ContextMenuButton",function(){var t=Cl("Button");t.stretch=In;var e=t.fb("ButtonBorder");return e instanceof ai&&(e.figure="Rectangle",e.strokeWidth=0,e.spot1=new vn(0,0,2,3),e.spot2=new vn(1,1,-2,-2)),t}),Cc("PanelExpanderButton",function(t){var e=xg(t,"COLLAPSIBLE"),n=Cl("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},Cl(ai,{name:"ButtonIcon",strokeWidth:2},new Oo("geometryString","visible",function(i){return i?n._buttonExpandedFigure:n._buttonCollapsedFigure}).cp(e)));return t=n.fb("ButtonBorder"),t instanceof ai&&(t.stroke=null,t.fill="rgba(0, 0, 0, 0)"),n.click=function(i,r){var o=r.diagram;if(o!==null&&!o.isReadOnly){var s=r.ih();s===null&&(s=r.part),s!==null&&(r=s.fb(e),r!==null&&(i.handled=!0,o.Ea("Collapse/Expand Panel"),r.visible=!r.visible,o.eb("Collapse/Expand Panel")))}},n}),Cc("CheckBoxButton",function(t){var e=xg(t);return t=Cl("Button",{desiredSize:new Je(14,14)},Cl(ai,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Ae,geometryStretch:Tn,visible:!1},e!==""?new Oo("visible",e).Kx():[])),t.click=function(n,i){if(i instanceof Re){var r=n.diagram;if(!(r===null||r.isReadOnly||e!==""&&r.model.isReadOnly)){n.handled=!0;var o=i.fb("ButtonIcon");r.Ea("checkbox"),o.visible=!o.visible,typeof i._doClick=="function"&&i._doClick(n,i),r.eb("checkbox")}}},t}),Cc("CheckBox",function(t){t=xg(t),t=Cl("CheckBoxButton",t,{name:"Button",isActionable:!1,margin:new ii(0,1,0,0)});var e=Cl(Re,"Horizontal",t,{isActionable:!0,cursor:t.cursor,margin:new ii(1),_buttonFillNormal:t._buttonFillNormal,_buttonStrokeNormal:t._buttonStrokeNormal,_buttonFillOver:t._buttonFillOver,_buttonStrokeOver:t._buttonStrokeOver,_buttonFillPressed:t._buttonFillPressed,_buttonStrokePressed:t._buttonStrokePressed,_buttonFillDisabled:t._buttonFillDisabled,mouseEnter:t.mouseEnter,mouseLeave:t.mouseLeave,actionDown:t.actionDown,actionUp:t.actionUp,actionCancel:t.actionCancel,actionMove:t.actionMove,click:t.click,_buttonClick:t.click});return t.mouseEnter=null,t.mouseLeave=null,t.actionDown=null,t.actionUp=null,t.actionCancel=null,t.actionMove=null,t.click=null,e}),Rt.None=ye=new xe(Rt,"None",0),Rt.Default=ti=new xe(Rt,"Default",0),Rt.Vertical=Un=new xe(Rt,"Vertical",4),Rt.Horizontal=In=new xe(Rt,"Horizontal",5),Rt.Fill=Ae=new xe(Rt,"Fill",3),Rt.Uniform=Tn=new xe(Rt,"Uniform",1),Rt.UniformToFill=ki=new xe(Rt,"UniformToFill",2),Rt.FlipVertical=fi=new xe(Rt,"FlipVertical",1),Rt.FlipHorizontal=_i=new xe(Rt,"FlipHorizontal",2),Rt.FlipBoth=yr=new xe(Rt,"FlipBoth",3),Rt.make=Cl,Rt.getBuilders=function(){var t=new Zt,e;for(e in Yd)if(e!==e.toLowerCase()){var n=Yd.I(e);typeof n=="function"&&t.add(e,n)}return t.freeze(),t},Rt.defineBuilder=Cc,Rt.build=function(t,e,n){for(var i=[],r=2;r<arguments.length;++r)i[r-2]=arguments[r];if(r=Yd.I(t),typeof r=="function"&&(i=r([t].concat(i)),i instanceof Rt))return e&&i.set(e),i;Et('GraphObject.build invoked object builder "'+t+'", but it did not return an Object')},Rt.takeBuilderArgument=xg;function cd(){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=Ui,this.o=Pr,this.hg=ti,this.ob=this.Bi=1,this.Pf=ye,this.Pc=this.Ci=this.gd=null,this.Oc="category"}cd.prototype.copy=function(){var t=new cd;return t.xa=this.xa,t.zp=this.zp,t.te=this.te,t.nb=this.nb,t.j=this.j,t.zh=this.zh,t.Fh=this.Fh,t.Bh=this.Bh,t.Mh=this.Mh,t.Ph=this.Ph,t.Qh=this.Qh,t.Oh=this.Oh,t.Nh=this.Nh,t.Of=this.Of,t.Xd=this.Xd,t.Lh=this.Lh,t.V=this.V,t.ia=this.ia,t.Ha=this.Ha,t.F=this.F,t.$h=this.$h,t.Ch=this.Ch,t.Hb=this.Hb,t.Di=this.Di,t.hb=this.hb,t.u=this.u.J(),t.o=this.o.J(),t.hg=this.hg,t.Bi=this.Bi,t.ob=this.ob,t.Pf=this.Pf,t.gd=this.gd,t.Ci=this.Ci,t.Pc=this.Pc,t.Oc=this.Oc,t};function th(){this.u=-1/0,this.o=0,this.F=Xe,this.rr=da,this.j=this.V="None"}th.prototype.copy=function(){var t=new th;return t.u=this.u,t.o=this.o,t.F=this.F.J(),t.rr=this.rr,t.V=this.V,t.j=this.j,t},th.className="LinkElementSettings";function op(){this.yj=this.Xi=_o,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}op.prototype.copy=function(){var t=new op;return t.Xi=this.Xi.J(),t.yj=this.yj.J(),t.Vi=this.Vi,t.wj=this.wj,t.Wi=this.Wi,t.xj=this.xj,t.hq=this.hq,t.Tr=this.Tr,t.iq=this.iq,t.Ur=this.Ur,t},op.className="LinkSettings";function Fh(){this.ha=[1,0,0,1,0,0]}Fh.prototype.copy=function(){var t=new Fh;return t.ha[0]=this.ha[0],t.ha[1]=this.ha[1],t.ha[2]=this.ha[2],t.ha[3]=this.ha[3],t.ha[4]=this.ha[4],t.ha[5]=this.ha[5],t},Fh.prototype.translate=function(t,e){this.ha[4]+=this.ha[0]*t+this.ha[2]*e,this.ha[5]+=this.ha[1]*t+this.ha[3]*e},Fh.prototype.scale=function(t,e){this.ha[0]*=t,this.ha[1]*=t,this.ha[2]*=e,this.ha[3]*=e},Fh.prototype.rotate=function(t,e,n){if(360<=t?t-=360:0>t&&(t+=360),t!==0){if(this.translate(e,n),t===90){t=0;var i=1}else t===180?(t=-1,i=0):t===270?(t=0,i=-1):(i=t*Math.PI/180,t=Math.cos(i),i=Math.sin(i));var r=this.ha[1]*t+this.ha[3]*i,o=this.ha[0]*-i+this.ha[2]*t,s=this.ha[1]*-i+this.ha[3]*t;this.ha[0]=this.ha[0]*t+this.ha[2]*i,this.ha[1]=r,this.ha[2]=o,this.ha[3]=s,this.translate(-e,-n)}},Fh.className="STransform";function hd(t){this.type=t,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}hd.prototype.addColorStop=function(t,e){this.gx.push({offset:t,color:e})},hd.className="SGradient";function Iu(t,e,n){this.ownerDocument=t=e===void 0?sn.document:e,this.cA="http://www.w3.org/2000/svg",t!==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 $a(this,n)}Iu.prototype.resize=function(t,e,n,i){return this.width!==t||this.height!==e?(this.width=t,this.height=e,this.style.width=n+"px",this.style.height=i+"px",this.Oa.setAttributeNS(null,"width",n+"px"),this.Oa.setAttributeNS(null,"height",i+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+n+" "+i),this.context.ww.firstElementChild.setAttributeNS(null,"width",n+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",i+"px"),!0):!1},Iu.prototype.Ud=function(t,e,n){if(t=this.ownerDocument.createElementNS(this.cA,t),Ut(e))for(var i in e)t.setAttributeNS(i==="href"?"http://www.w3.org/1999/xlink":"",i,e[i]);return n!==void 0&&(t.textContent=n),t},Iu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Iu.prototype.focus=function(){this.Oa.focus()},Iu.prototype.mx=function(){this.ownerDocument=null},Mn.Object.defineProperties(Iu.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(t){this.Oa.setAttribute("width",t+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(t){this.Oa.setAttribute("height",t+"px")}},style:{get:function(){return this.Oa.style}}}),Iu.className="SVGSurface";function $a(t,e){this.Gv=t,this.svg=t.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 Fh,this.j=bg(this),this.Nj=bg(this,"gojs-diagram"),this.Hl=this.ti=null;var n=pr++,i=this.Ud("clipPath",{id:"mainClip"+n});i.appendChild(this.Ud("rect",{x:0,y:0,width:t.width,height:t.height})),this.ww=i,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(i),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+n+")"),this.eA={},this.isTemporary=!!e,this.filter="",this.bk=null}function oy(t,e,n,i,r,o,s){t.Nj===void 0?sp(t,e,n,i,r,o,s):t.Nj.setAttribute("transform","matrix("+e+", "+n+", "+i+", "+r+", "+o+", "+s+")")}A=$a.prototype,A.arc=function(t,e,n,i,r,o,s,l){var u=2*Math.PI,d=u-1e-6,f=n*Math.cos(i),y=n*Math.sin(i),T=t+f,w=e+y,N=o?0:1;i=o?i-r:r-i,(1e-6<Math.abs(s-T)||1e-6<Math.abs(l-w))&&this.path.push(["L",T,+w]),0>i&&(i=i%u+u),i>d?(this.path.push(["A",n,n,0,1,N,t-f,e-y]),this.path.push(["A",n,n,0,1,N,T,w])):1e-6<i&&this.path.push(["A",n,n,0,+(i>=Math.PI),N,t+n*Math.cos(r),e+n*Math.sin(r)])},A.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},A.Se=function(t){this.addPath(this.path,this.rb,t||0)},A.bezierCurveTo=function(t,e,n,i,r,o){this.path.push(["C",t,e,n,i,r,o])},A.clearRect=function(){},A.clip=function(){this.Yl.clipPath=!0},A.closePath=function(){this.path.push(["z"])},A.createLinearGradient=function(t,e,n,i){var r=new hd("linear");return r.x1=t,r.y1=e,r.x2=n,r.y2=i,r},A.createPattern=function(t){var e="";t instanceof HTMLCanvasElement&&(e=t.toDataURL()),t instanceof HTMLImageElement&&(e=t.getAttribute("src"));var n=this.eA;if(n[e])return"url(#"+n[e]+")";var i="PATTERN"+pr++,r={x:0,y:0,width:t.width,height:t.height,href:e};return t=this.Ud("pattern",{width:t.width,height:t.height,id:i,patternUnits:"userSpaceOnUse"}),t.appendChild(this.Ud(Dh,r)),this.svg.appendChild(t),n[e]=i,"url(#"+i+")"},A.createRadialGradient=function(t,e,n,i,r,o){var s=new hd("radial");return s.x1=t,s.y1=e,s.r1=n,s.x2=i,s.y2=r,s.r2=o,s};function sy(t,e,n,i,r,o,s,l,u){i=l/i,r=u/r,o===0&&s===0||t.rb.translate(o,s),i===1&&r===1||t.rb.scale(i,r),e===0&&n===0||t.rb.translate(-e,-n)}A.drawImage=function(t,e,n,i,r,o,s,l,u){var d="";t instanceof HTMLCanvasElement&&(d=t.toDataURL()),t instanceof HTMLImageElement&&(d=t.getAttribute("src"));var f=t instanceof HTMLImageElement?t.naturalWidth:t.width;t=t instanceof HTMLImageElement?t.naturalHeight:t.height,i===void 0&&(o=e,s=n,l=i=f,u=r=t),i=i||0,r=r||0,l=l||0,u=u||0,sy(this,e,n,i,r,o||0,s||0,l,u),o={x:0,y:0,width:f||i,height:t||r,href:d},It.$(i,l)&&It.$(r,u)?d.toLowerCase().indexOf(".svg")===-1&&d.toLowerCase().indexOf("data:image/svg")===-1&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",(e!==0||n!==0||i!==f||r!==t)&&(i+=e,r+=n,o["clip-path"]="path('M "+e+","+n+" L "+i+" "+n+" L "+i+" "+r+" L "+e+" "+r+" z')"),Kd(this,Dh,o,this.rb),this.addElement(Dh,o)},A.fill=function(t){t&&(this.Yl["fill-rule"]="evenodd"),d0(this,this.Yl)},A.ng=function(t,e){this.clipInsteadOfFill?this.clip():this.fill(e)},A.fillRect=function(t,e,n,i){t=[t,e,n,i],t={x:t[0],y:t[1],width:t[2],height:t[3]},Kd(this,"fill",t,this.rb),this.addElement("rect",t)},A.ox=function(t,e,n,i){t={x:t,y:e,width:n,height:i},Kd(this,"fill",t,this.rb),d0(this,t),this.svg.prepend(this.Ud("rect",t))},A.fillText=function(t,e,n){t=[t,e,n],e=this.textAlign,e==="left"?e="start":e==="right"?e="end":e==="center"&&(e="middle"),e={x:t[1],y:t[2],style:"font: "+this.font,"text-anchor":e},Kd(this,"fill",e,this.rb),this.addElement("text",e,t[0])},A.lineTo=function(t,e){this.path.push(["L",t,e])},A.moveTo=function(t,e){this.path.push(["M",t,e])},A.quadraticCurveTo=function(t,e,n,i){this.path.push(["Q",t,e,n,i])},A.rect=function(t,e,n,i){this.path.push(["M",t,e],["L",t+n,e],["L",t+n,e+i],["L",t,e+i],["z"])},A.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var t=this.stack.pop();this.fillStyle=t.fillStyle,this.font=t.font,this.globalAlpha=t.globalAlpha,this.lineCap=t.lineCap,this.lineDashOffset=t.lineDashOffset,this.lineJoin=t.lineJoin,this.lineWidth=t.lineWidth,this.miterLimit=t.miterLimit,this.shadowBlur=t.shadowBlur,this.shadowColor=t.shadowColor,this.shadowOffsetX=t.shadowOffsetX,this.shadowOffsetY=t.shadowOffsetY,this.strokeStyle=t.strokeStyle,this.textAlign=t.textAlign,this.bk=t.bk},A.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 t=[],e=0;e<this.path.length;e++)t.push(this.path[e]);this.stack.push(t),this.stack.push(this.rb.copy())},A.setTransform=function(t,e,n,i,r,o){t===1&&e===0&&n===0&&i===1&&r===0&&o===0||sp(this,t,e,n,i,r,o)};function ay(t){return t=t.rb.ha,"matrix("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}A.scale=function(t,e){this.rb.scale(t,e)},A.translate=function(t,e){this.rb.translate(t,e)},A.transform=function(){},A.yc=function(){},A.stroke=function(){uy(this,this.Yl)},A.jk=function(){this.clipInsteadOfFill||this.stroke()},A.Ud=function(t,e,n){return this.Gv.Ud(t,e,n)},A.addElement=function(t,e,n){return t=this.Ud(t,e,n),this.yd!==null?this.yd.appendChild(t):this.yd=t,this.ad=t};function Kd(t,e,n,i){e==="fill"?d0(t,n):e==="stroke"&&uy(t,n),i!==null&&(t=i.ha,n.transform="matrix("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")")}function d0(t,e){t.fillStyle instanceof hd?e.fill=f0(t,t.fillStyle,!0):/^rgba\(/.test(t.fillStyle)?(t=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.fillStyle),e.fill="rgb("+t[1]+","+t[2]+","+t[3]+")",e["fill-opacity"]=t[4]):e.fill=t.fillStyle}function ly(t,e,n){n=n?"fill":"stroke",t.fillStyle instanceof hd?e.setAttributeNS(null,"fill",f0(t,t.fillStyle,!0)):/^rgba\(/.test(t.fillStyle)?(t=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.fillStyle),e.setAttributeNS(null,n,"rgb("+t[1]+","+t[2]+","+t[3]+")"),e.setAttributeNS(null,n+"-opacity",t[4])):e.setAttributeNS(null,n,t.fillStyle)}function uy(t,e){if(t.strokeStyle instanceof hd)e.stroke=f0(t,t.strokeStyle,!1);else if(/^rgba\(/.test(t.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.strokeStyle);e.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",e["stroke-opacity"]=n[4]}else e.stroke=t.strokeStyle;e["stroke-width"]=t.lineWidth,e["stroke-linecap"]=t.lineCap,e["stroke-linejoin"]=t.lineJoin,e["stroke-miterlimit"]=t.miterLimit,t.Ct&&(e["stroke-dasharray"]=t.Yg.toString(),e["stroke-dashoffset"]=t.uj)}function f0(t,e,n){var i="";if(i=t.Hl!==null?t.Hl.getAttribute(n?"fill":"stroke"):null,i!==null&&i.indexOf("GRAD")!==-1?(i=i.split("#")[1].slice(0,-1),n=t.svg.getElementById(i),n!==null&&n.remove()):i="GRAD"+pr++,e.type==="linear")n=t.Ud("linearGradient",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,id:i,gradientUnits:"userSpaceOnUse"});else if(e.type==="radial")n=t.Ud("radialGradient",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,r1:e.r1,r2:e.r2,id:i});else throw Error("invalid gradient");var r=e.gx;e=r.length;for(var o=[],s=0;s<e;s++){var l=r[s],u=l.color;l={offset:l.offset,"stop-color":u},/^rgba\(/.test(u)&&(u=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(u),l["stop-color"]="rgb("+u[1]+","+u[2]+","+u[3]+")",l["stop-opacity"]=u[4]),o.push(l)}for(o.sort(function(d,f){return d.offset>f.offset?1:-1}),r=0;r<e;r++)n.appendChild(t.Ud("stop",o[r]));return t.svg.appendChild(n),"url(#"+i+")"}A.addPath=function(t,e,n){for(var i=[],r=0;r<t.length;r++){var o=kn(t[r]),s=[o.shift()];if(s[0]==="A")s.push(o.shift()+","+o.shift(),o.shift(),o.shift()+","+o.shift(),o.shift()+","+o.shift());else for(;o.length;)s.push(o.shift()+","+o.shift());i.push(s.join(" "))}if(i=i.join(" "),t=this.Yl,t.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+i+'")');else if(t.d=i,Kd(this,"",t,e),this.Hl!==null)if(e=this.Hl,e.nodeName!=="g")for(var l in t)l!=="transform"&&e.setAttributeNS(null,l,t[l]);else{l=e.getElementsByTagName("path");for(var u in t)u!=="transform"&&l[n].setAttributeNS(null,u,t[u])}else this.addElement("path",t)};function sp(t,e,n,i,r,o,s){var l=new Fh;l.ha=[e,n,i,r,o,s],e={},Kd(t,"g",e,l),l=t.addElement("g",e),t.nh.push(l)}function bg(t,e){var n={};return e&&(n.class=e),e=t.addElement("g",n),t.nh.push(e),e}A.Ev=function(t,e,n){this.Ar=t,this.Br=e,this.Vg=n};function Gu(t){t.Il=!1,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0}function oc(t){t.Il=!0,t.shadowOffsetX=t.Ar,t.shadowOffsetY=t.Br,t.shadowBlur=t.Vg}A.js=function(t,e){this.Ct=!0,this.Yg=t,this.uj=e},A.fs=function(){this.Ct=!1},A.Vc=function(){},A.Wx=function(){},$a.prototype.rotate=function(t){this.rb.rotate(57.2958*t,0,0)},$a.prototype.getImageData=function(){return null},$a.prototype.measureText=function(){return null};function Eg(t,e){e=e.getAttribute("fill"),e!==null&&(e=e.split("#"),e.length!==1&&(e=t.svg.getElementById(e[1].slice(0,-1)),e!==null&&t.svg.innerHTML.match(new RegExp(e.id,"g")).length===1&&e.remove()))}$a.prototype.Hs=function(t){t.svg!==null&&t.svg.parentNode===this.Nj&&t.svg.remove()},$a.className="SVGContext",Kt.prototype.Cs=function(t){this.pj.contains("SVG")||this.bs("SVG",new Iu(this,sn.document));var e=new Iu(this,sn.document,!0);t===void 0&&(t=new Ai);var n=this;return rd(this,function(i,r){return i=gg(n,i,"SVG",e),i=i!==null?i.svg:null,typeof r=="function"?(r(i),null):i},t)},Kt.prototype.makeSvg=Kt.prototype.Cs,Kt.prototype.av=function(t){return this.Cs(t)},Kt.prototype.makeSVG=Kt.prototype.av;function Bl(t,e,n,i){this.ownerDocument=e=e===void 0?sn.document:e,this.hs=null,e=e.createElement("canvas"),e.tabIndex=0,this.Oa=e,this.context=new Bh(e,n,i),e.H=t}Bl.prototype.resize=function(t,e,n,i){return this.width!==t||this.height!==e?(this.width=t,this.height=e,this.style.width=n+"px",this.style.height=i+"px",!0):!1},Bl.prototype.toDataURL=function(t,e){return this.Oa.toDataURL(t,e)},Bl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Bl.prototype.focus=function(){this.Oa.focus()},Bl.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Mn.Object.defineProperties(Bl.prototype,{width:{get:function(){return this.Oa.width},set:function(t){this.Oa.width=t}},height:{get:function(){return this.Oa.height},set:function(t){this.Oa.height=t}},style:{get:function(){return this.Oa.style}}}),Bl.className="CanvasSurface";function Bh(t,e,n){this.Z=t.getContext?t.getContext("2d",e):null,this.Z===null&&Et("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 jn,this.isTemporary=!!n}A=Bh.prototype,A.Wx=function(t){this.Z.imageSmoothingEnabled=t},A.arc=function(t,e,n,i,r,o){this.Z.arc(t,e,n,i,r,o)},A.beginPath=function(){this.Z.beginPath()},A.Se=function(){},A.bezierCurveTo=function(t,e,n,i,r,o){this.Z.bezierCurveTo(t,e,n,i,r,o)},A.clearRect=function(t,e,n,i){this.yc(),this.Z.clearRect(t,e,n,i)},A.clip=function(){this.Z.clip()},A.closePath=function(){this.Z.closePath()},A.createLinearGradient=function(t,e,n,i){return this.Z.createLinearGradient(t,e,n,i)},A.createPattern=function(t,e){return this.Z.createPattern(t,e)},A.createRadialGradient=function(t,e,n,i,r,o){return this.Z.createRadialGradient(t,e,n,i,r,o)},A.drawImage=function(t,e,n,i,r,o,s,l,u){i===void 0?this.Z.drawImage(t,e,n):this.Z.drawImage(t,e,n,i,r,o,s,l,u)},A.fill=function(t){this.Z.fill(t?"evenodd":"nonzero")},A.fillRect=function(t,e,n,i){this.Z.fillRect(t,e,n,i)},A.ox=function(t,e,n,i){this.Z.fillRect(t,e,n,i)},A.fillText=function(t,e,n){this.Z.fillText(t,e,n)},A.getImageData=function(t,e,n,i){return this.Z.getImageData(t,e,n,i)},A.lineTo=function(t,e){this.Z.lineTo(t,e)},A.measureText=function(t){return this.Z.measureText(t)},A.moveTo=function(t,e){this.Z.moveTo(t,e)},A.quadraticCurveTo=function(t,e,n,i){this.Z.quadraticCurveTo(t,e,n,i)},A.rect=function(t,e,n,i){this.Z.rect(t,e,n,i)},A.restore=function(){this.Z.restore()},A.save=function(){this.yc(),this.Z.save()},Bh.prototype.rotate=function(t){this.El.rotate(57.2958*t,0,0)},A=Bh.prototype,A.setTransform=function(t,e,n,i,r,o){this.El.setTransform(t,e,n,i,r,o)},A.scale=function(t,e){this.El.scale(t,e)},A.translate=function(t,e){this.El.translate(t,e)},A.stroke=function(){this.Z.stroke()},A.transform=function(t,e,n,i,r,o){if(t!==1||e!==0||n!==0||i!==1||r!==0||o!==0){var s=this.El,l=s.m11*t+s.m21*e;t=s.m12*t+s.m22*e,e=s.m11*n+s.m21*i,n=s.m12*n+s.m22*i,s.dx=s.m11*r+s.m21*o+s.dx,s.dy=s.m12*r+s.m22*o+s.dy,s.m11=l,s.m12=t,s.m21=e,s.m22=n}},A.yc=function(){var t=this.El;this.Z.setTransform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy)},A.ng=function(t,e){if(t instanceof ur&&t.type===kl){var n=t.yk;t=t.ft,t>n?(this.scale(n/t,1),this.translate((t-n)/2,0)):n>t&&(this.scale(1,t/n),this.translate(0,(n-t)/2)),this.Hm?this.clip():this.fill(e),t>n?(this.translate(-(t-n)/2,0),this.scale(1/(n/t),1)):n>t&&(this.translate(0,-(n-t)/2),this.scale(1,1/(t/n)))}else this.Hm?this.clip():this.fill(e)},A.jk=function(){this.Hm||this.stroke()},A.Ev=function(t,e,n){this.Ar=t,this.Br=e,this.Vg=n},A.js=function(t,e){var n=this.Z;n.setLineDash!==void 0&&(n.setLineDash(t),n.lineDashOffset=e)},A.fs=function(){var t=this.Z;t.setLineDash!==void 0&&(t.setLineDash(L1),t.lineDashOffset=0)},A.Vc=function(t){t&&(this.dt=""),this.ct=this.et=""},A.Hs=function(){},Mn.Object.defineProperties(Bh.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(t){this.ct!==t&&(this.ct=this.Z.fillStyle=t)}},font:{get:function(){return this.Z.font},set:function(t){this.dt!==t&&(this.dt=this.Z.font=t)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(t){this.Z.globalAlpha=t}},lineCap:{get:function(){return this.Z.lineCap},set:function(t){this.Z.lineCap=t}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(t){this.Z.lineDashOffset=t}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(t){this.Z.lineJoin=t}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(t){this.Z.lineWidth=t}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(t){this.Z.miterLimit=t}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(t){this.Z.shadowBlur=t}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(t){this.Z.shadowColor=t}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(t){this.Z.shadowOffsetX=t}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(t){this.Z.shadowOffsetY=t}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(t){this.et!==t&&(this.et=this.Z.strokeStyle=t)}},textAlign:{get:function(){return this.Z.textAlign},set:function(t){this.Z.textAlign=t}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(t){this.Z.imageSmoothingEnabled=t}},filter:{get:function(){return this.Z.filter},set:function(t){this.Z.filter=t===""?"none":t}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(t){this.Hm=t}}});var L1=Object.freeze([]);Bh.className="CanvasSurfaceContext";function ap(){this.F=this.o=this.u=this.j=0}ap.className="ColorNumbers";function ur(t,e){Qd||(x0(),Qd=!0),Gn(this),this._isFrozen=!1,t===void 0?(this.na=kc,this.xk="black"):typeof t=="string"?(this.na=kc,this.xk=t):(this.na=t,this.xk="black"),t=this.na,t===ac?(this.Qd=Gi,this.Lk=xo):this.Lk=t===kl?this.Qd=ei:this.Qd=qn,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,e&&Object.assign(this,e)}ur.prototype.copy=function(){var t=new ur;return t.na=this.na,t.xk=this.xk,t.Qd=this.Qd.J(),t.Lk=this.Lk.J(),t.Gr=this.Gr,t.Xp=this.Xp,this.we!==null&&(t.we=this.we.copy()),t.cr=this.cr,t},A=ur.prototype,A.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},A.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},A.qb=function(t){t.classType===ur&&(this.type=t)},A.toString=function(){var t="Brush(";if(this.type===kc)t+=this.color;else if(t=this.type===ac?t+"Linear ":this.type===kl?t+"Radial ":this.type===Jd?t+"Pattern ":t+"(unknown) ",t+=this.start+" "+this.end,this.colorStops!==null)for(var e=this.colorStops.iterator;e.next();)t+=" "+e.key+":"+e.value;return t+")"},A.addColorStop=function(t,e){return this._isFrozen&&Wt(this),(typeof t!="number"||!isFinite(t)||1<t||0>t)&&rn(t,"0 <= loc <= 1",ur,"addColorStop:loc"),this.we===null&&(this.we=new Zt),this.we.add(t,e),this.na===kc&&(this.type=ac),this.xe=null,this},A.Vz=function(t,e){if(this._isFrozen&&Wt(this),t=t===void 0||typeof t!="number"?.2:t,e=e===void 0?qd:e,this.type===kc)sc(this.color),this.color=$d(t,e);else if((this.type===ac||this.type===kl)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)sc(n.value),this.addColorStop(n.key,$d(t,e));return this};function cy(t,e,n){return e=e===void 0||typeof e!="number"?.2:e,n=n===void 0?qd:n,sc(t),$d(e,n)}A.Wy=function(t,e){if(this._isFrozen&&Wt(this),t=t===void 0||typeof t!="number"?.2:t,e=e===void 0?qd:e,this.type===kc)sc(this.color),this.color=$d(-t,e);else if((this.type===ac||this.type===kl)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)sc(n.value),this.addColorStop(n.key,$d(-t,e));return this};function hy(t,e,n){return e=e===void 0||typeof e!="number"?.2:e,n=n===void 0?qd:n,sc(t),$d(-e,n)}function p0(t,e,n){sc(t),t=Yr.j;var i=Yr.u,r=Yr.o,o=Yr.F;return sc(e),n===void 0&&(n=.5),"rgba("+Math.round((Yr.j-t)*n+t)+", "+Math.round((Yr.u-i)*n+i)+", "+Math.round((Yr.o-r)*n+r)+", "+Math.round((Yr.F-o)*n+o)+")"}A.Gx=function(){if(this.type===kc)return Zd(this.color);if((this.type===ac||this.type===kl)&&this.colorStops!==null){var t=this.colorStops;if(this.type===kl)return Zd(t.first().value);if(t.get(.5)!==null)return Zd(t.get(.5));if(t.count===2)return t=t.Fa(),Zd(p0(t[0].value,t[1].value));for(var e=t.iterator,n=-1,i=-1,r=1,o=1;e.next();){var s=e.key,l=Math.abs(.5-e.key);r>o&&l<r?(n=s,r=l):o>=r&&l<o&&(i=s,o=l)}return n>i&&(o=n,n=i,i=o,o=r),r=i-n,Zd(p0(t.get(n),t.get(i),1-o/r))}return!1};function Zd(t){return t?t instanceof ur?t.Gx():(sc(t),128>(299*Yr.j+587*Yr.u+114*Yr.o)/1e3):!1}function $d(t,e){switch(e){case qd:e=100*m0(Yr.j);var n=100*m0(Yr.u),i=100*m0(Yr.o);return ca.j=.4124564*e+.3575761*n+.1804375*i,ca.u=.2126729*e+.7151522*n+.072175*i,ca.o=.0193339*e+.119192*n+.9503041*i,ca.F=Yr.F,e=y0(ca.j/Xd[0]),n=y0(ca.u/Xd[1]),i=y0(ca.o/Xd[2]),Vu.j=116*n-16,Vu.u=500*(e-n),Vu.o=200*(n-i),Vu.F=ca.F,Vu.j=Math.min(100,Math.max(0,Vu.j+100*t)),t=(Vu.j+16)/116,e=t-Vu.o/200,ca.j=Xd[0]*dy(Vu.u/500+t),ca.u=Xd[1]*(Vu.j>Sg*b0?Math.pow(t,3):Vu.j/Sg),ca.o=Xd[2]*dy(e),ca.F=Vu.F,t=-.969266*ca.j+1.8760108*ca.u+.041556*ca.o,e=.0556434*ca.j+-.2040259*ca.u+1.0572252*ca.o,Yr.j=255*v0((3.2404542*ca.j+-1.5371385*ca.u+-.4985314*ca.o)/100),Yr.u=255*v0(t/100),Yr.o=255*v0(e/100),Yr.F=ca.F,Yr.j=Math.round(Yr.j),255<Yr.j?Yr.j=255:0>Yr.j&&(Yr.j=0),Yr.u=Math.round(Yr.u),255<Yr.u?Yr.u=255:0>Yr.u&&(Yr.u=0),Yr.o=Math.round(Yr.o),255<Yr.o?Yr.o=255:0>Yr.o&&(Yr.o=0),"rgba("+Yr.j+", "+Yr.u+", "+Yr.o+", "+Yr.F+")";case fy:return g0(),dl.o=Math.min(100,Math.max(0,dl.o+100*t)),"hsla("+dl.j+", "+dl.u+"%, "+dl.o+"%, "+dl.F+")";default:Et("Unknown color space: "+e)}}function sc(t){Qd||(x0(),Qd=!0);var e=E0;if(e!==null){e.clearRect(0,0,1,1),e.fillStyle="#000000";var n=e.fillStyle;e.fillStyle=t,e.fillStyle!==n?(e.fillRect(0,0,1,1),t=e.getImageData(0,0,1,1).data,Yr.j=t[0],Yr.u=t[1],Yr.o=t[2],Yr.F=t[3]/255):(e.fillStyle="#FFFFFF",e.fillStyle=t,Yr.j=0,Yr.u=0,Yr.o=0,Yr.F=1)}}function g0(){var t=Yr.j/255,e=Yr.u/255,n=Yr.o/255,i=Math.max(t,e,n),r=Math.min(t,e,n),o=i-r;if(r=(i+r)/2,o===0)var s=t=0;else{switch(i){case t:s=(e-n)/o%6;break;case e:s=(n-t)/o+2;break;case n:s=(t-e)/o+4}s*=60,0>s&&(s+=360),t=o/(1-Math.abs(2*r-1))}dl.j=Math.round(s),dl.u=Math.round(100*t),dl.o=Math.round(100*r),dl.F=Yr.F}function m0(t){return t/=255,.04045>=t?t/12.92:Math.pow((t+.055)/1.055,2.4)}function v0(t){return .0031308>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function y0(t){return t>b0?Math.pow(t,1/3):(Sg*t+16)/116}function dy(t){var e=t*t*t;return e>b0?e:(116*t-16)/Sg}function dd(t,e){typeof t!="string"&&(t instanceof ur||Et("Value for "+e+" must be a color string or a Brush, not "+t))}function x0(){E0=vo?new Bl(null,void 0,{willReadFrequently:!0}).context:null}Mn.Object.defineProperties(ur.prototype,{type:{get:function(){return this.na},set:function(t){this._isFrozen&&Wt(this,t),this.na=t,this.start.Mc()&&(t===ac?this.start=Gi:t===kl&&(this.start=ei)),this.end.Mc()&&(t===ac?this.end=xo:t===kl&&(this.end=ei)),this.xe=null}},color:{get:function(){return this.xk},set:function(t){this._isFrozen&&Wt(this,t),this.xk=t,this.xe=null}},start:{get:function(){return this.Qd},set:function(t){this._isFrozen&&Wt(this,t),this.Qd=t.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(t){this._isFrozen&&Wt(this,t),this.Lk=t.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(t){this._isFrozen&&Wt(this,t),0>t&&rn(t,">= zero",ur,"startRadius"),this.Gr=t,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(t){this._isFrozen&&Wt(this,t),0>t&&rn(t,">= zero",ur,"endRadius"),this.Xp=t,this.xe=null}},colorStops:{get:function(){return this.we},set:function(t){this._isFrozen&&Wt(this,t),this.we=t,this.xe=null}},pattern:{get:function(){return this.cr},set:function(t){this._isFrozen&&Wt(this,t),this.cr=t,this.xe=null}}}),ur.prototype.isDark=ur.prototype.Gx,ur.prototype.darkenBy=ur.prototype.Wy,ur.prototype.lightenBy=ur.prototype.Vz,ur.prototype.addColorStop=ur.prototype.addColorStop;var b0=216/24389,Sg=24389/27,Xd=[95.047,100,108.883],E0=null,Yr=new ap,dl=new ap,ca=new ap,Vu=new ap,Qd=!1;ur.className="Brush";var kc;ur.Solid=kc=new xe(ur,"Solid",0);var ac;ur.Linear=ac=new xe(ur,"Linear",1);var kl;ur.Radial=kl=new xe(ur,"Radial",2);var Jd;ur.Pattern=Jd=new xe(ur,"Pattern",4);var qd;ur.Lab=qd=new xe(ur,"Lab",5);var fy;ur.HSL=fy=new xe(ur,"HSL",6),ur.randomColor=function(t,e){t===void 0&&(t=128),e===void 0&&(e=Math.max(t,255));var n=Math.abs(e-t);e=Math.floor(t+Math.random()*n).toString(16);var i=Math.floor(t+Math.random()*n).toString(16);return t=Math.floor(t+Math.random()*n).toString(16),2>e.length&&(e="0"+e),2>i.length&&(i="0"+i),2>t.length&&(t="0"+t),"#"+e+i+t},ur.isValidColor=function(t){if(t==="black")return!0;if(t==="")return!1;Qd||(x0(),Qd=!0);var e=E0;if(e===null)return!0;e.fillStyle="#000000";var n=e.fillStyle;return e.fillStyle=t,e.fillStyle!==n?!0:(e.fillStyle="#FFFFFF",n=e.fillStyle,e.fillStyle=t,e.fillStyle!==n)},ur.lighten=function(t){return cy(t)},ur.lightenBy=cy,ur.darken=function(t){return hy(t)},ur.darkenBy=hy,ur.mix=p0,ur.isDark=Zd;function Yo(){this.xa="Base"}Yo.prototype.measure=function(){},Yo.prototype.Yz=function(t,e,n,i,r){t.measure(e,n,i,r)},Yo.prototype.arrange=function(){},Yo.prototype.Ly=function(t,e,n,i,r,o){t.arrange(e,n,i,r,o)},Yo.prototype.iA=function(t){t.Uj()},Yo.prototype.gc=function(){},Mn.Object.defineProperties(Yo.prototype,{name:{get:function(){return this.xa},set:function(t){this.xa=t}},classType:{get:function(){return Re}}}),Yo.prototype.remeasureObject=Yo.prototype.iA,Yo.prototype.arrangeElement=Yo.prototype.Ly,Yo.prototype.measureElement=Yo.prototype.Yz,Yo.className="PanelLayout";function Tg(){this.xa="Base"}Yn(Tg,Yo),Tg.prototype.measure=function(t,e,n,i,r,o,s){var l=i.length;t=lc(t);for(var u=0;u<l;u++){var d=i[u];if(d.visible||d===t){var f=d.margin,y=f.right+f.left;f=f.top+f.bottom,d.measure(e,n,o,s);var T=d.measuredBounds;y=Math.max(T.width+y,0),f=Math.max(T.height+f,0),T=d.position.x;var w=d.position.y;isFinite(T)||(T=0),isFinite(w)||(w=0),d instanceof ai&&d.isGeometryPositioned&&(d=d.strokeWidth/2,T-=d,w-=d),Ni(r,T,w,y,f)}}},Tg.prototype.arrange=function(t,e,n){var i=e.length,r=t.padding;for(t=n.x-r.left,n=n.y-r.top,r=0;r<i;r++){var o=e[r],s=o.measuredBounds,l=o.margin,u=o.position.x,d=o.position.y;if(u=isNaN(u)?-t:u-t,d=isNaN(d)?-n:d-n,o instanceof ai&&o.isGeometryPositioned){var f=o.strokeWidth/2;u-=f,d-=f}o.visible&&o.arrange(u+l.left,d+l.top,s.width,s.height)}};function wg(){this.xa="Base"}Yn(wg,Yo),wg.prototype.measure=function(t,e,n,i,r,o,s){var l=i.length;e=bn(),o=lc(t);for(var u=0;u<l;u++){var d=i[u];if(d.visible||d===o){var f=Na(d,!1);if(f!==ye&&f!==In)e.push(d);else{d.measure(1/0,n,0,s),f=d.margin,d=d.measuredBounds;var y=Math.max(d.height+f.top+f.bottom,0);r.width+=Math.max(d.width+f.right+f.left,0),r.height=Math.max(r.height,y)}}}for(i=e.length,t.desiredSize.height?n=Math.min(t.desiredSize.height,t.maxSize.height):r.height!==0&&(n=Math.min(r.height,t.maxSize.height)),t=0;t<i;t++)u=e[t],(u.visible||u===o)&&(f=u.margin,l=f.right+f.left,f=f.top+f.bottom,u.measure(1/0,n,0,s),u=u.measuredBounds,f=Math.max(u.height+f,0),r.width+=Math.max(u.width+l,0),r.height=Math.max(r.height,f));En(e)},wg.prototype.arrange=function(t,e,n){for(var i=e.length,r=t.padding,o=r.top,s=t.isOpposite,l=s?n.width:r.left,u=0;u<i;u++){var d=o,f=e[u];if(f.visible){var y=f.measuredBounds,T=f.margin,w=T.top+T.bottom,N=o+r.bottom,F=y.height,nt=Na(f,!1);(isNaN(f.desiredSize.height)&&nt===Ae||nt===Un)&&(F=Math.max(n.height-w-N,0)),w=F+w+N,N=f.alignment,N.Xb()&&(N=t.defaultAlignment),N.sb()||(N=ei),s&&(l-=y.width+T.left+T.right),f.arrange(l+N.offsetX+T.left,d+N.offsetY+T.top+(n.height*N.y-w*N.y),y.width,F),s||(l+=y.width+T.left+T.right)}}};function Cg(){this.xa="Base"}Yn(Cg,Yo),Cg.prototype.measure=function(t,e,n,i,r,o){var s=i.length;n=bn();for(var l=lc(t),u=0;u<s;u++){var d=i[u];if(d.visible||d===l){var f=Na(d,!1);if(f!==ye&&f!==Un)n.push(d);else{var y=d.margin;f=y.right+y.left,y=y.top+y.bottom,d.measure(e,1/0,o,0),d=d.measuredBounds,rr(r,Math.max(r.width,Math.max(d.width+f,0)),r.height+Math.max(d.height+y,0))}}}if(i=n.length,i!==0){for(t.desiredSize.width?e=Math.min(t.desiredSize.width,t.maxSize.width):r.width!==0&&(e=Math.min(r.width,t.maxSize.width)),t=0;t<i;t++)u=n[t],(u.visible||u===l)&&(d=u.margin,s=d.right+d.left,d=d.top+d.bottom,u.measure(e,1/0,o,0),u=u.measuredBounds,d=Math.max(u.height+d,0),r.width=Math.max(r.width,Math.max(u.width+s,0)),r.height+=d);En(n)}},Cg.prototype.arrange=function(t,e,n){for(var i=e.length,r=t.padding,o=r.left,s=t.isOpposite,l=s?n.height:r.top,u=0;u<i;u++){var d=o,f=e[u];if(f.visible){var y=f.measuredBounds,T=f.margin,w=T.left+T.right,N=o+r.right,F=y.width,nt=Na(f,!1);(isNaN(f.desiredSize.width)&&nt===Ae||nt===In)&&(F=Math.max(n.width-w-N,0)),w=F+w+N,N=f.alignment,N.Xb()&&(N=t.defaultAlignment),N.sb()||(N=ei),s&&(l-=y.height+T.bottom+T.top),f.arrange(d+N.offsetX+T.left+(n.width*N.x-w*N.x),l+N.offsetY+T.top,F,y.height),s||(l+=y.height+T.bottom+T.top)}}};function kg(){this.xa="Base"}Yn(kg,Yo),kg.prototype.measure=function(t,e,n,i,r,o,s){var l=i.length,u=t.Pb(),d=u.margin,f=d.right+d.left,y=d.top+d.bottom;u.measure(e,n,o,s);var T=u.measuredBounds;o=T.width,s=T.height;var w=Math.max(o+f,0),N=Math.max(s+y,0),F=t.isClipping,nt=Xt.allocAt(-d.left,-d.top,w,N),X=Xt.allocAt(0,0,o,s);S0(u,X,!0),o=X.width,s=X.height;for(var ut=!0,ht=lc(t),yt=0;yt<l;yt++){var Nt=i[yt];T=e;var Yt=n;if(Nt!==u&&(Nt.visible||Nt===ht)){d=Nt.margin;var Qe=d.left,xn=d.top;switch(w=d.right+d.left,N=d.top+d.bottom,d=Na(Nt,!1),d){case Ae:T=o,Yt=s,xn=Qe=N=w=0;break;case In:T=o,Qe=w=0;break;case Un:Yt=s,xn=N=0}Nt.measure(T,Yt,0,0),T=Nt.measuredBounds,w=Math.max(T.width+w,0),N=Math.max(T.height+N,0),d=Nt.alignment,d.Xb()&&(d=t.defaultAlignment),d.sb()||(d=ei);var dn=Nt.alignmentFocus;if(dn.Xb()&&(dn=ei),Yt=null,Nt instanceof Re&&Nt.$e!==""&&(Yt=Nt.fb(Nt.$e),Yt===Nt&&(Yt=null)),Qe=X.x-Qe,xn=X.y-xn,Yt!==null){for(Nt.arrange(0,0,T.width,T.height),T=Yt.actualBounds,T=z.allocAt(T.x+(dn.x*T.width-dn.offsetX),T.y+(dn.y*T.height-dn.offsetY)),Yt=Yt.panel;Yt!==Nt;)Yt.transform.Ga(T),Yt=Yt.panel;Qe+=d.x*o+d.offsetX-T.x,xn+=d.y*s+d.offsetY-T.y,z.free(T)}else Qe+=d.x*o+d.offsetX-(dn.x*T.width+dn.offsetX),xn+=d.y*s+d.offsetY-(dn.y*T.height+dn.offsetY);ut?(ut=!1,r.h(Qe,xn,w,N)):Ni(r,Qe,xn,w,N)}}switch(ut?r.assign(nt):F?r.Uu(X.x,X.y,X.width,X.height):Ni(r,nt.x,nt.y,nt.width,nt.height),Xt.free(nt),Xt.free(X),d=u.stretch,d===ti&&(d=Na(u,!1)),d){case ye:return;case Ae:if(!isFinite(e)&&!isFinite(n))return;break;case In:if(!isFinite(e))return;break;case Un:if(!isFinite(n))return}for(T=u.measuredBounds,o=T.width,s=T.height,w=Math.max(o+f,0),N=Math.max(s+y,0),d=u.margin,X=Xt.allocAt(-d.left,-d.top,w,N),S0(u,X,!0),o=X.width,s=X.height,e=0;e<l;e++)n=i[e],n===u||!n.visible&&n!==ht||(d=n.margin,w=d.right+d.left,N=d.top+d.bottom,T=n.measuredBounds,w=Math.max(T.width+w,0),N=Math.max(T.height+N,0),f=n.alignment,f.Xb()&&(f=t.defaultAlignment),f.sb()||(f=ei),n=n.alignmentFocus,n.Xb()&&(n=ei),ut?(ut=!1,r.h(f.x*o+f.offsetX-(n.x*T.width+n.offsetX)-d.left,f.y*s+f.offsetY-(n.y*T.height+n.offsetY)-d.top,w,N)):Ni(r,f.x*o+f.offsetX-(n.x*T.width+n.offsetX)-d.left,f.y*s+f.offsetY-(n.y*T.height+n.offsetY)-d.top,w,N));ut?r.assign(nt):F?r.Uu(X.x,X.y,X.width,X.height):Ni(r,nt.x,nt.y,nt.width,nt.height),Xt.free(X)},kg.prototype.arrange=function(t,e,n){var i=e.length,r=t.Pb(),o=r.measuredBounds,s=o.width,l=o.height,u=t.padding;o=u.left,u=u.top;var d=o-n.x,f=u-n.y;for(r.arrange(d,f,s,l),s=Xt.allocAt(0,0,s,l),S0(r,s,!1),l=0;l<i;l++){var y=e[l];if(y!==r){d=y.measuredBounds;var T=d.width,w=d.height;f=y.alignment,f.Xb()&&(f=t.defaultAlignment),f.sb()||(f=ei);var N=y.alignmentFocus;if(N.Xb()&&(N=ei),d=null,y instanceof Re&&y.$e!==""&&(d=y.fb(y.$e),d===y&&(d=null)),d!==null){var F=d.actualBounds;for(N=z.allocAt(F.x+(N.x*F.width-N.offsetX),F.y+(N.y*F.height-N.offsetY)),d=d.panel;d!==y;)d.transform.Ga(N),d=d.panel;d=f.x*s.width+f.offsetX-N.x,f=f.y*s.height+f.offsetY-N.y,z.free(N)}else d=f.x*s.width+f.offsetX-(N.x*T+N.offsetX),f=f.y*s.height+f.offsetY-(N.y*w+N.offsetY);d+=s.x-n.x,f+=s.y-n.y,y.visible&&y.arrange(o+d,u+f,T,w)}}Xt.free(s)};function S0(t,e,n){var i=null;if(t instanceof Re&&t.$e!==""&&(i=t.fb(t.$e),i===t&&(i=null)),i!==null)for(n&&t.arrange(0,0,e.width,e.height),e.assign(i.actualBounds),i=i.panel;i!==t;)i.transform.pp(e),i=i.panel}function Ng(){this.xa="Base"}Yn(Ng,Yo),Ng.prototype.measure=function(t,e,n,i,r,o,s){var l=i.length,u=t.Pb(),d=u.margin,f=e,y=n,T=d.right+d.left,w=d.top+d.bottom;u.measure(e,n,o,s),d=u.measuredBounds;var N=0,F=null;u instanceof ai&&(F=u,N=F.strokeWidth*F.scale);var nt=Math.max(d.width+T,0);d=Math.max(d.height+w,0);var X=k0(u),ut=X.x*nt+X.offsetX;X=X.y*d+X.offsetY;var ht=N0(u),yt=ht.x*nt+ht.offsetX;for(ht=ht.y*d+ht.offsetY,isFinite(e)&&(f=Math.max(Math.abs(ut-yt)-N,0)),isFinite(n)&&(y=Math.max(Math.abs(X-ht)-N,0)),N=Je.alloc(),N.h(0,0),t=lc(t),ht=0;ht<l;ht++)X=i[ht],X===u||!X.visible&&X!==t||(d=X.margin,nt=d.right+d.left,ut=d.top+d.bottom,X.measure(f,y,0,0),d=X.measuredBounds,nt=Math.max(d.width+nt,0),d=Math.max(d.height+ut,0),N.h(Math.max(nt,N.width),Math.max(d,N.height)));if(l===1)r.width=nt,r.height=d,Je.free(N);else{switch(X=k0(u),ht=N0(u),l=i=0,ht.x!==X.x&&ht.y!==X.y&&(i=N.width/Math.abs(ht.x-X.x),l=N.height/Math.abs(ht.y-X.y)),Je.free(N),N=0,F!==null&&(N=F.strokeWidth*F.scale,O0(F)===Tn&&(i=l=Math.max(i,l))),i+=Math.abs(X.offsetX)+Math.abs(ht.offsetX)+N,l+=Math.abs(X.offsetY)+Math.abs(ht.offsetY)+N,F=u.stretch,F===ti&&(F=Na(u,!1)),F){case ye:s=o=0;break;case Ae:isFinite(e)&&(i=e),isFinite(n)&&(l=n);break;case In:isFinite(e)&&(i=e),s=0;break;case Un:o=0,isFinite(n)&&(l=n)}u.Uj(),u.measure(i,l,o,s),r.width=u.measuredBounds.width+T,r.height=u.measuredBounds.height+w}},Ng.prototype.arrange=function(t,e){var n=e.length,i=t.Pb(),r=i.measuredBounds,o=Xt.alloc();o.h(0,0,1,1);var s=i.margin,l=s.left;s=s.top;var u=t.padding,d=u.left;u=u.top,i.arrange(d+l,u+s,r.width,r.height);var f=k0(i),y=N0(i),T=f.y*r.height+f.offsetY,w=y.x*r.width+y.offsetX;for(y=y.y*r.height+y.offsetY,o.x=f.x*r.width+f.offsetX,o.y=T,Ni(o,w,y,0,0),o.x+=l+d,o.y+=s+u,r=0;r<n;r++)l=e[r],l!==i&&(d=l.measuredBounds,s=l.margin,u=Math.max(d.width+s.right+s.left,0),f=Math.max(d.height+s.top+s.bottom,0),T=l.alignment,T.Xb()&&(T=t.defaultAlignment),T.sb()||(T=ei),u=o.width*T.x+T.offsetX-u*T.x+s.left+o.x,s=o.height*T.y+T.offsetY-f*T.y+s.top+o.y,l.visible&&(Gr(o.x,o.y,o.width,o.height,u,s,d.width,d.height)?l.arrange(u,s,d.width,d.height):l.arrange(u,s,d.width,d.height,new Xt(o.x,o.y,o.width,o.height))));Xt.free(o)};function Ag(){this.xa="Base",this.name="Table"}Yn(Ag,Yo),Ag.prototype.measure=function(t,e,n,i,r){for(var o=i.length,s=bn(),l=bn(),u=0;u<o;u++){var d=i[u],f=d instanceof Re?d:null;if(f!==null&&Nc(f)&&d.visible){l.push(f);for(var y=f.O.s,T=y.length,w=0;w<T;w++){var N=y[w];f.type===Re.TableRow?N.row=d.row:f.type===Re.TableColumn&&(N.column=d.column),s.push(N)}}else s.push(d)}o=s.length,o===0&&(t.Fb(0),t.Eb(0));for(var F=[],nt=0;nt<o;nt++){var X=s[nt];X.visible&&(zo(X,!0),ju(X,!0),F[X.row]||(F[X.row]=[]),F[X.row][X.column]||(F[X.row][X.column]=[]),F[X.row][X.column].push(X))}En(s);var ut=bn(),ht=bn(),yt=bn(),Nt={count:0},Yt={count:0},Qe=e,xn=n,dn=t.rowDefs,De=t.colDefs,ge=null;o=dn.length;for(var Xn=0;Xn<o;Xn++)ge=dn[Xn],ge!==void 0&&(ge.actual=0);o=De.length;for(var Vn=0;Vn<o;Vn++)ge=De[Vn],ge!==void 0&&(ge.actual=0);for(var Ji=F.length,Br=0,os=0;os<Ji;os++)F[os]&&(Br=Math.max(Br,F[os].length));var us=Math.min(t.topIndex,Ji-1),qs=Math.min(t.leftIndex,Br-1),ss=0;Ji=F.length;for(var Fc=lc(t),Do=0;Do<Ji;Do++)if(F[Do]){Br=F[Do].length;var Eu=t.Fb(Do);Eu.actual=0;for(var ta=Eu.oc=0;ta<Br;ta++)if(F[Do][ta]){var Bc=t.Eb(ta);ut[ta]===void 0&&(Bc.actual=0,Bc.oc=0,ut[ta]=!0);for(var gl=F[Do][ta],jl=gl.length,Ja=0;Ja<jl;Ja++){var Ha=gl[Ja];if(Ha.visible||Ha===Fc){var ph=1<Ha.rowSpan||1<Ha.columnSpan;ph&&(Do<us||ta<qs||ht.push(Ha));var Su=Ha.margin,Tf=Su.right+Su.left,qa=Su.top+Su.bottom,ea=mu(Ha,Eu,Bc,!1),Zp=Ha.desiredSize,wd=!isNaN(Zp.height),Mu=!isNaN(Zp.width)&&wd;if(ph||ea===ye||Mu||Do<us||ta<qs||(Nt[ta]!==void 0||ea!==Ae&&ea!==In||(Nt[ta]=-1,Nt.count++),Yt[Do]!==void 0||ea!==Ae&&ea!==Un||(Yt[Do]=-1,Yt.count++),yt.push(Ha)),Ha.measure(1/0,1/0,0,0),!(Do<us||ta<qs)){var za=Ha.measuredBounds,Kh=Math.max(za.width+Tf,0),tl=Math.max(za.height+qa,0);if(Ha.rowSpan===1&&(ea===ye||ea===In)){ge=t.Fb(Do);var gh=ge.Wc();ss=Math.max(tl-ge.actual,0),ss+gh>xn&&(ss=Math.max(xn-gh,0));var Qm=ge.oa===0;ge.oc=ge.oc+ss,ge.actual=ge.oa+ss,xn=Math.max(xn-(ss+(Qm?gh:0)),0)}if(Ha.columnSpan===1&&(ea===ye||ea===Un)){ge=t.Eb(ta);var $p=ge.Wc();ss=Math.max(Kh-ge.actual,0),ss+$p>Qe&&(ss=Math.max(Qe-$p,0));var $v=ge.oa===0;ge.oc=ge.oc+ss,ge.actual=ge.oa+ss,Qe=Math.max(Qe-(ss+($v?$p:0)),0)}ph&&Ha.Uj()}}}}}En(ut);var qu=0,hc=0;o=t.columnCount;for(var Cd=0;Cd<o;Cd++){var mh=De[Cd];mh!==void 0&&(qu+=isNaN(mh.Hc)?mh.oc:mh.Hc,mh.oc!==0&&(qu+=mh.Wc()))}o=t.rowCount;for(var wf=0;wf<o;wf++){var vh=dn[wf];vh!==void 0&&(hc+=isNaN(vh.Hc)?vh.oc:vh.Hc,vh.oc!==0&&(hc+=vh.Wc()))}Qe=Math.max(e-qu,0);var tc=xn=Math.max(n-hc,0),Uc=Qe;o=yt.length;for(var ja=0;ja<o;ja++){var Ou=yt[ja],Jm=t.Fb(Ou.row),dc=t.Eb(Ou.column),Cf=Ou.measuredBounds,Tu=Ou.margin,Zh=Tu.right+Tu.left,Du=Tu.top+Tu.bottom;Nt[Ou.column]=dc.oc===0&&Nt[Ou.column]!==void 0?Math.max(Cf.width+Zh,Nt[Ou.column]):null,Yt[Ou.row]=Jm.oc===0&&Yt[Ou.row]!==void 0?Math.max(Cf.height+Du,Yt[Ou.row]):null}var kd=0,kf=0,lu;for(lu in Yt)lu!=="count"&&(kd+=Yt[lu]);for(lu in Nt)lu!=="count"&&(kf+=Nt[lu]);for(var Ts=Je.alloc(),Xp=0;Xp<o;Xp++){var va=yt[Xp];if(va.visible||va===Fc){var Po=t.Fb(va.row),ya=t.Eb(va.column),fc=0;isFinite(ya.width)?fc=ya.width:(isFinite(Qe)&&Nt[va.column]!==null?kf===0?fc=ya.actual+Qe:fc=Nt[va.column]/kf*Uc:Nt[va.column]!==null?fc=Qe:fc=ya.actual||Qe,fc=Math.max(0,fc-ya.Wc()));var Hc=0;switch(isFinite(Po.height)?Hc=Po.height:(isFinite(xn)&&Yt[va.row]!==null?kd===0?Hc=Po.actual+xn:Hc=Yt[va.row]/kd*tc:Yt[va.row]!==null?Hc=xn:Hc=Po.actual||xn,Hc=Math.max(0,Hc-Po.Wc())),Ts.h(Math.max(ya.minimum,Math.min(fc,ya.maximum)),Math.max(Po.minimum,Math.min(Hc,Po.maximum))),ea=mu(va,Po,ya,!1),ea){case In:Ts.height=Math.max(Ts.height,Po.actual+xn);break;case Un:Ts.width=Math.max(Ts.width,ya.actual+Qe)}var $h=va.margin,Xv=$h.right+$h.left,qm=$h.top+$h.bottom;va.Uj(),va.measure(Ts.width,Ts.height,ya.minimum,Po.minimum);var Nf=va.measuredBounds,Xh=Math.max(Nf.width+Xv,0),Nd=Math.max(Nf.height+qm,0);isFinite(Qe)&&(Xh=Math.min(Xh,Ts.width)),isFinite(xn)&&(Nd=Math.min(Nd,Ts.height));var Ga=0;Ga=Po.actual,Po.actual=Math.max(Po.actual,Nd),Po.oc=Math.max(Po.oc,Nd),ss=Po.actual-Ga,xn=Math.max(xn-ss,0),Yt[va.row]===null&&(tc=Math.max(tc-ss,0)),Ga=ya.actual,ya.actual=Math.max(ya.actual,Xh),ya.oc=Math.max(ya.oc,Xh),ss=ya.actual-Ga,Qe=Math.max(Qe-ss,0),Nt[va.column]===null&&(Uc=Math.max(Uc-ss,0))}}En(yt);var pc=Je.alloc(),wu=bn(),Rl=bn();if(o=ht.length,o!==0){for(var yh=0;yh<Ji;yh++)if(F[yh]){Br=F[yh].length;var Af=t.Fb(yh);wu[yh]=Af.actual;for(var xh=0;xh<Br;xh++)if(F[yh][xh]){var t0=t.Eb(xh);Rl[xh]=t0.actual}}}for(var If=0;If<o;If++){var Eo=ht[If];if(Eo.visible||Eo===Fc){var uu=t.Fb(Eo.row),Gl=t.Eb(Eo.column);switch(Ts.h(Math.max(Gl.minimum,Math.min(e,Gl.maximum)),Math.max(uu.minimum,Math.min(n,uu.maximum))),ea=mu(Eo,uu,Gl,!1),ea){case Ae:Rl[Gl.index]!==0&&(Ts.width=Math.min(Ts.width,Rl[Gl.index])),wu[uu.index]!==0&&(Ts.height=Math.min(Ts.height,wu[uu.index]));break;case In:Rl[Gl.index]!==0&&(Ts.width=Math.min(Ts.width,Rl[Gl.index]));break;case Un:wu[uu.index]!==0&&(Ts.height=Math.min(Ts.height,wu[uu.index]))}isFinite(Gl.width)&&(Ts.width=Gl.width),isFinite(uu.height)&&(Ts.height=uu.height),pc.h(0,0);for(var e0=Gl.minimum,el=uu.minimum,zc=1;zc<Eo.rowSpan&&!(Eo.row+zc>=t.rowCount);zc++)ge=t.Fb(Eo.row+zc),ss=0,ss=ea===Ae||ea===Un?Math.max(ge.minimum,wu[Eo.row+zc]===0?ge.maximum:Math.min(wu[Eo.row+zc],ge.maximum)):Math.max(ge.minimum,isNaN(ge.Hc)?ge.maximum:Math.min(ge.Hc,ge.maximum)),pc.height+=ss,el+=ge.minimum;for(var Vl=1;Vl<Eo.columnSpan&&!(Eo.column+Vl>=t.columnCount);Vl++)ge=t.Eb(Eo.column+Vl),ss=0,ss=ea===Ae||ea===In?Math.max(ge.minimum,Rl[Eo.column+Vl]===0?ge.maximum:Math.min(Rl[Eo.column+Vl],ge.maximum)):Math.max(ge.minimum,isNaN(ge.Hc)?ge.maximum:Math.min(ge.Hc,ge.maximum)),pc.width+=ss,e0+=ge.minimum;Ts.width+=pc.width,Ts.height+=pc.height;var Lf=Eo.margin,bh=Lf.right+Lf.left,Qp=Lf.top+Lf.bottom;Eo.measure(Ts.width,Ts.height,e0,el);for(var Rf=Eo.measuredBounds,Pu=Math.max(Rf.width+bh,0),Qh=Math.max(Rf.height+Qp,0),Eh=0,Mf=0;Mf<Eo.rowSpan&&!(Eo.row+Mf>=t.rowCount);Mf++)ge=t.Fb(Eo.row+Mf),Eh+=ge.total||0;if(Eh<Qh){var jc=Qh-Eh,ec=Qh-Eh;if(Eo.spanAllocation!==null)for(var Gc=Eo.spanAllocation,gc=0;gc<Eo.rowSpan&&!(0>=jc)&&!(Eo.row+gc>=t.rowCount);gc++){ge=t.Fb(Eo.row+gc);var Vc=ge.oa||0,Jh=Gc(Eo,ge,ec);ge.actual=Math.min(ge.maximum,Vc+Jh),ge.oa!==Vc&&(jc-=ge.oa-Vc)}for(;0<jc;){var Cu=ge.oa||0;if(isNaN(ge.height)&&ge.maximum>Cu&&(ge.actual=Math.min(ge.maximum,Cu+jc),ge.oa!==Cu&&(jc-=ge.oa-Cu)),ge.index===0)break;ge=t.Fb(ge.index-1)}}for(var Ad=0,Wc=0;Wc<Eo.columnSpan&&!(Eo.column+Wc>=t.columnCount);Wc++)ge=t.Eb(Eo.column+Wc),Ad+=ge.total||0;if(Ad<Pu){var Id=Pu-Ad,Qv=Pu-Ad;if(Eo.spanAllocation!==null)for(var mc=Eo.spanAllocation,qh=0;qh<Eo.columnSpan&&!(0>=Id)&&!(Eo.column+qh>=t.columnCount);qh++){ge=t.Eb(Eo.column+qh);var Jp=ge.oa||0,Jv=mc(Eo,ge,Qv);ge.actual=Math.min(ge.maximum,Jp+Jv),ge.oa!==Jp&&(Id-=ge.oa-Jp)}for(;0<Id;){var n0=ge.oa||0;if(isNaN(ge.width)&&ge.maximum>n0&&(ge.actual=Math.min(ge.maximum,n0+Id),ge.oa!==n0&&(Id-=ge.oa-n0)),ge.index===0)break;ge=t.Eb(ge.index-1)}}}}En(ht),Je.free(pc),Je.free(Ts),wu!==void 0&&En(wu),Rl!==void 0&&En(Rl);var Ld=0,Rd=0,i0=t.desiredSize,C1=t.maxSize;ea=Na(t,!0);var qp=hc=qu=0,tg=0;o=t.columnCount;for(var r0=0;r0<o;r0++)De[r0]!==void 0&&(ge=t.Eb(r0),isFinite(ge.width)?(qp+=ge.width,qp+=ge.Wc()):Bg(ge)===hp?(qp+=ge.oa,qp+=ge.Wc()):ge.oa!==0&&(qu+=ge.oa,qu+=ge.Wc()));isFinite(i0.width)?Ld=Math.min(i0.width,C1.width):Ld=ea!==ye&&isFinite(e)?e:qu,Ld=Math.max(Ld,t.minSize.width),Ld=Math.max(Ld-qp,0);for(var hb=qu===0?1:Math.max(Ld/qu,1),o0=0;o0<o;o0++)De[o0]!==void 0&&(ge=t.Eb(o0),isFinite(ge.width)||Bg(ge)===hp||(ge.actual=ge.oa*hb),ge.position=r.width,ge.oa!==0&&(r.width+=ge.oa,r.width+=ge.Wc()));o=t.rowCount;for(var s0=0;s0<o;s0++)dn[s0]!==void 0&&(ge=t.Fb(s0),isFinite(ge.height)?(tg+=ge.height,tg+=ge.Wc()):Bg(ge)===hp?(tg+=ge.oa,tg+=ge.Wc()):ge.oa!==0&&(hc+=ge.oa,hc+=ge.Wc()));isFinite(i0.height)?Rd=Math.min(i0.height,C1.height):Rd=ea!==ye&&isFinite(n)?n:hc,Rd=Math.max(Rd,t.minSize.height),Rd=Math.max(Rd-tg,0);for(var db=hc===0?1:Math.max(Rd/hc,1),a0=0;a0<o;a0++)dn[a0]!==void 0&&(ge=t.Fb(a0),isFinite(ge.height)||Bg(ge)===hp||(ge.actual=ge.oa*db),ge.position=r.height,ge.oa!==0&&(r.height+=ge.oa,r.height+=ge.Wc()));o=l.length;for(var qv=0;qv<o;qv++){var eg=l[qv],ty=0,ey=0;eg.type===Re.TableRow?(ty=r.width,ge=t.Fb(eg.row),ey=ge.actual):(ge=t.Eb(eg.column),ty=ge.actual,ey=r.height),eg.measuredBounds.h(0,0,ty,ey),zo(eg,!1)}En(l),t.inRowsCols=F},Ag.prototype.arrange=function(t,e,n){var i=e.length,r=t.padding,o=r.left;r=r.top;var s=t.inRowsCols;if(s!==null){for(var l,u,d=s.length,f=0,y=0;y<d;y++)s[y]&&(f=Math.max(f,s[y].length));u=t.rowDefs,l=t.colDefs;var T=y=0,w=Math.min(t.topIndex,d-1);if(0<u.length){for(;w!==d&&(u[w]===void 0||u[w].oa===0);)w++;w=Math.max(Math.min(w,d-1),0),y=-u[w].position}var N=Math.min(t.leftIndex,f-1);if(0<l.length){for(;N!==f&&(l[N]===void 0||l[N].oa===0);)N++;N=Math.max(Math.min(N,f-1),0),T=-l[N].position}for(var F=0,nt=0;F!==d&&u[F]===void 0;)F++;for(;nt!==d&&l[nt]===void 0;)nt++;f=t.part,t.Fb(F),t.Eb(nt);for(var X=0;X<e.length;X++){var ut=e[X];if(ut instanceof Re&&ut.visible&&Nc(ut)){if(ut.type===Re.TableRow){l=t.Fb(ut.row);var ht=t.Eb(nt)}else l=t.Fb(F),ht=t.Eb(ut.column);u=l.position+y+r,l.oa!==0&&(u+=l.Io(Math.max(F,w))),l=ht.position+T+o,ht.oa!==0&&(l+=ht.Io(Math.max(nt,N))),ht=ut.measuredBounds,ut.Uk(),ut.actualBounds.ka();var yt=ut.actualBounds,Nt=Xt.allocAt(yt.x,yt.y,yt.width,yt.height);yt.x=ut.type===Re.TableRow?o:l,yt.y=ut.type===Re.TableColumn?r:u,yt.width=ht.width,yt.height=ht.height,ut.actualBounds.freeze(),ju(ut,!1),Mi(Nt,yt)||f===null||(f.oh(),ut.Pn(f)),Xt.free(Nt)}}for(X=Je.alloc(),ut=0;ut<d;ut++)if(s[ut]){for(f=s[ut].length,ht=t.Fb(ut),u=ht.position+y+r,ht.oa!==0&&(u+=ht.Io(Math.max(F,w))),yt=0;yt<f;yt++)if(s[ut][yt]){Nt=t.Eb(yt),l=Nt.position+T+o,Nt.oa!==0&&(l+=Nt.Io(Math.max(nt,N)));for(var Yt=s[ut][yt],Qe=Yt.length,xn=0;xn<Qe;xn++){var dn=Yt[xn],De=dn.measuredBounds;X.h(0,0);for(var ge=1;ge<dn.rowSpan&&!(ut+ge>=t.rowCount);ge++){var Xn=t.Fb(ut+ge);Xn.oa!==0&&(X.height+=Xn.total)}for(ge=1;ge<dn.columnSpan&&!(yt+ge>=t.columnCount);ge++)Xn=t.Eb(yt+ge),Xn.oa!==0&&(X.width+=Xn.total);var Vn=Nt.oa+X.width,Ji=ht.oa+X.height;ge=l,Xn=u;var Br=Vn,os=Ji,us=l,qs=u,ss=Vn,Fc=Ji;l+Vn>n.width&&(ss=Math.max(n.width-l,0)),u+Ji>n.height&&(Fc=Math.max(n.height-u,0));var Do=dn.alignment;if(Do.Xb()){Do=t.defaultAlignment,Do.sb()||(Do=ei);var Eu=Do.x,ta=Do.y,Bc=Do.offsetX;Do=Do.offsetY;var gl=Nt.alignment,jl=ht.alignment;gl.sb()&&(Eu=gl.x,Bc=gl.offsetX),jl.sb()&&(ta=jl.y,Do=jl.offsetY)}else Eu=Do.x,ta=Do.y,Bc=Do.offsetX,Do=Do.offsetY;(isNaN(Eu)||isNaN(ta))&&(ta=Eu=.5,Do=Bc=0),gl=De.width,jl=De.height;var Ja=dn.margin,Ha=Ja.left+Ja.right,ph=Ja.top+Ja.bottom,Su=mu(dn,ht,Nt,!1);!isNaN(dn.desiredSize.width)||Su!==Ae&&Su!==In||(gl=Math.max(Vn-Ha,0)),!isNaN(dn.desiredSize.height)||Su!==Ae&&Su!==Un||(jl=Math.max(Ji-ph,0)),Vn=dn.maxSize,Ji=dn.minSize,gl=Math.min(Vn.width,gl),jl=Math.min(Vn.height,jl),gl=Math.max(Ji.width,gl),jl=Math.max(Ji.height,jl),Vn=jl+ph,ge+=Br*Eu-(gl+Ha)*Eu+Bc+Ja.left,Xn+=os*ta-Vn*ta+Do+Ja.top,dn.visible&&(Gr(us,qs,ss,Fc,ge,Xn,De.width,De.height)?dn.arrange(ge,Xn,gl,jl):dn.arrange(ge,Xn,gl,jl,new Xt(us,qs,ss,Fc)))}}}for(Je.free(X),t=0;t<i;t++)n=e[t],o=n instanceof Re?n:null,o!==null&&Nc(o)&&(o=n.actualBounds,n.naturalBounds.ka(),n.naturalBounds.h(0,0,o.width,o.height),n.naturalBounds.freeze())}};function Ig(){this.xa="Base"}Yn(Ig,Yo),Ig.prototype.measure=function(){},Ig.prototype.arrange=function(){};function Lg(){this.xa="Base"}Yn(Lg,Yo),Lg.prototype.measure=function(){},Lg.prototype.arrange=function(){};function Rg(){this.xa="Base"}Yn(Rg,Yo),Rg.prototype.measure=function(t,e,n,i,r,o,s){1<i.length&&Et("Viewbox Panel cannot contain more than one GraphObject."),i=i[0],i.Ca=1,i.Uj(),i.measure(1/0,1/0,o,s);var l=i.measuredBounds,u=i.margin,d=u.right+u.left;if(u=u.top+u.bottom,isFinite(e)||isFinite(n)){var f=i.scale,y=l.width;l=l.height;var T=Math.max(e-d,0),w=Math.max(n-u,0),N=1;t.viewboxStretch===Tn?y!==0&&l!==0&&(N=Math.min(T/y,w/l)):y!==0&&l!==0&&(N=Math.max(T/y,w/l)),N===0&&(N=1e-4),i.Ca*=N,f!==i.scale&&(zo(i,!0),i.measure(1/0,1/0,o,s))}l=i.measuredBounds,r.width=isFinite(e)?e:Math.max(l.width+d,0),r.height=isFinite(n)?n:Math.max(l.height+u,0)},Rg.prototype.arrange=function(t,e,n){e=e[0];var i=e.measuredBounds,r=e.margin,o=Math.max(i.width+(r.right+r.left),0);r=Math.max(i.height+(r.top+r.bottom),0);var s=e.alignment;s.Xb()&&(s=t.defaultAlignment),s.sb()||(s=ei),e.arrange(n.width*s.x-o*s.x+s.offsetX,n.height*s.y-r*s.y+s.offsetY,i.width,i.height)};function lp(){this.xa="Base"}Yn(lp,Yo),lp.prototype.measure=function(){},lp.prototype.arrange=function(){},lp.prototype.gc=function(t,e,n){n=t.Df()*n.scale,0>=n&&(n=1);var i=t.gridCellSize,r=i.width;i=i.height;var o=t.naturalBounds,s=t.actualBounds,l=o.width,u=o.height,d=Math.ceil(l/r),f=Math.ceil(u/i),y=t.gridOrigin,T=y.x;y=y.y,e.save(),e.beginPath(),e.rect(0,0,l,u),e.clip(),e.Se();for(var w=[],N=t.O.s,F=N.length,nt=0;nt<F;nt++){var X=N[nt],ut=[];if(w.push(ut),X.visible){var ht=X.interval;if(!(0>ht)){X=w0(X.figure);for(var yt=0;yt<F;yt++)if(yt!==nt){var Nt=N[yt];Nt.visible&&w0(Nt.figure)===X&&(Nt=Nt.interval,Nt>ht&&ut.push(Nt))}}}}for(N=t.O.s,F=N.length,nt=0;nt<F;nt++){var Yt=N[nt];if(Yt.visible&&(ut=Yt.interval||1,X=Math.abs(ut),!(2>r*X*n))){if(ht=Yt.segmentIndex,(!isFinite(ht)||isNaN(ht))&&(ht=0),0>ht&&(ht=X-Math.min(-ht,X)),ht=Math.round(ht%X),X=Yt.opacity,yt=1,X!==1){if(X===0)continue;yt=e.globalAlpha,e.globalAlpha=yt*X}Nt=w[nt];var Qe=!1,xn=Yt.strokeDashArray;if(xn!==null&&(Qe=!0,e.js(xn,Yt.strokeDashOffset)),Yt.figure==="LineV"&&Yt.stroke!==null&&0<Yt.strokeWidth){for(e.lineWidth=Yt.strokeWidth,yo(t,e,Yt.stroke,!1,!1,o,s),e.beginPath(),xn=Yt=Math.floor((T-r)/r);xn<=Yt+d;xn++){var dn=xn*r+T;0<=dn&&dn<=l&&Mg(xn,ut,ht,Nt)&&(e.moveTo(dn,0),e.lineTo(dn,u))}e.stroke(),e.Se()}else if(Yt.figure==="LineH"&&Yt.stroke!==null&&0<Yt.strokeWidth){for(e.lineWidth=Yt.strokeWidth,yo(t,e,Yt.stroke,!1,!1,o,s),e.beginPath(),xn=Yt=Math.floor((y-i)/i);xn<=Yt+f;xn++)dn=xn*i+y,0<=dn&&dn<=u&&Mg(xn,ut,ht,Nt)&&(e.moveTo(0,dn),e.lineTo(l,dn));e.stroke(),e.Se()}else if(Yt.figure==="BarV"&&Yt.fill!==null)for(yo(t,e,Yt.fill,!0,!1,o,s),Yt=Yt.width,isNaN(Yt)&&(Yt=r),dn=xn=Math.floor((T-r)/r);dn<=xn+d;dn++){var De=dn*r+T;0<=De+Yt&&De<=l&&Mg(dn,ut,ht,Nt)&&e.fillRect(De,0,Yt,u)}else if(Yt.figure==="BarH"&&Yt.fill!==null)for(yo(t,e,Yt.fill,!0,!1,o,s),Yt=Yt.height,isNaN(Yt)&&(Yt=i),dn=xn=Math.floor((y-i)/i);dn<=xn+f;dn++)De=dn*i+y,0<=De+Yt&&De<=u&&Mg(dn,ut,ht,Nt)&&e.fillRect(0,De,l,Yt);Qe&&e.fs(),X!==1&&(e.globalAlpha=yt)}}e.restore(),e.Vc(!1)};function Mg(t,e,n,i){if(0>e)return t%e===n;if(t%e!==n)return!1;e=i.length;for(var r=0;r<e;r++)if(t%i[r]===n)return!1;return!0}function Og(){this.xa="Base"}Yn(Og,Yo),Og.prototype.measure=function(t,e,n,i,r){var o=i.length;if(t instanceof Vi||t instanceof Pe){var s=null,l=null;if(t instanceof Pe&&(s=t),t instanceof Vi&&(l=t,s=l.adornedPart,t.j===null&&(t.j=[])),s instanceof Pe){var u=s;if(o===0)rr(t.naturalBounds,0,0),t.measuredBounds.h(0,0,0,0);else{var d=t instanceof Vi?null:s.path;e=s.routeBounds,n=t.jg,n.h(0,0,e.width,e.height);var f=u.points,y=s.pointsCount;l!==null?l.Ul(!1):s!==null&&s.Ul(!1),l=e.width;var T=e.height,w=t.j;if(w.length=0,d!==null){py(t,l,T,d);var N=d.measuredBounds;n.ed(N),w.push(N)}N=jn.alloc();for(var F=z.alloc(),nt=z.alloc(),X=0;X<o;X++){var ut=i[X];if(ut!==d)if(ut.isPanelMain&&ut instanceof ai){py(t,l,T,ut);var ht=ut.measuredBounds;n.ed(ht),w.push(ht)}else if(2>y)ut.measure(1/0,1/0,0,0),ht=ut.measuredBounds,n.ed(ht),w.push(ht);else{var yt=ut.segmentIndex,Nt=ut.segmentFraction,Yt=ut.alignmentFocus;Yt.Mc()&&(Yt=ei);var Qe=ut.segmentOrientation,xn=ut.segmentOffset;if(isNaN(yt)){var dn=u.ua;ht=bn(),dn.Qu(Nt,ht);var De=z.allocAt(ht[0],ht[1]);if(De.add(u.i(0)),dn.type===Oe.j?De.offset(-dn.startX,-dn.startY):(dn=dn.figures.first(),dn!==null&&De.offset(-dn.startX,-dn.startY)),dn=ht[2],Qe!==da){var ge=u.computeAngle(ut,Qe,dn);ut.Kb=ge}ge=De.x-e.x;var Xn=De.y-e.y;z.free(De),En(ht)}else if(yt<-y||yt>=y)ht=z.alloc(),u.vg(),u.computeMidPoint(ht),dn=u.midAngle,Qe!==da&&(ge=u.computeAngle(ut,Qe,dn),ut.Kb=ge),ge=ht.x-e.x,Xn=ht.y-e.y,z.free(ht);else{if(ge=0,0<=yt?(Xn=f.M(yt),ht=yt<y-1?f.M(yt+1):Xn):(ge=y+yt,Xn=f.M(ge),ht=0<ge?f.M(ge-1):Xn),Xn.Xa(ht)){0<=yt?(dn=0<yt?f.M(yt-1):Xn,ge=yt<y-2?f.M(yt+2):ht):(dn=ge<y-1?f.M(ge+1):Xn,ge=1<ge?f.M(ge-2):ht),De=dn.Bf(Xn);var Vn=ht.Bf(ge);dn=De>Vn+10?0<=yt?dn.ab(Xn):Xn.ab(dn):Vn>De+10?0<=yt?ht.ab(ge):ge.ab(ht):0<=yt?dn.ab(ge):ge.ab(dn)}else dn=0<=yt?Xn.ab(ht):ht.ab(Xn);Qe!==da&&(ge=u.computeAngle(ut,Qe,dn),ut.Kb=ge),ge=Xn.x+(ht.x-Xn.x)*Nt-e.x,Xn=Xn.y+(ht.y-Xn.y)*Nt-e.y}ut.measure(1/0,1/0,0,0),ht=ut.measuredBounds,De=ut.naturalBounds;var Ji=0;ut instanceof ai&&(Ji=ut.strokeWidth),Vn=De.width+Ji;var Br=De.height+Ji;N.reset(),N.translate(-ht.x,-ht.y),N.scale(ut.scale,ut.scale),N.rotate(Qe===da?ut.angle:dn,Vn/2,Br/2),Qe!==Ep&&Qe!==Tp||N.rotate(90,Vn/2,Br/2),Qe!==Sp&&Qe!==wp||N.rotate(-90,Vn/2,Br/2),Qe===um&&(45<dn&&135>dn||225<dn&&315>dn)&&N.rotate(-dn,Vn/2,Br/2),De=new Xt(0,0,Vn,Br),F.xi(De,Yt),N.Ga(F),Yt=-F.x+Ji/2*ut.scale,ut=-F.y+Ji/2*ut.scale,nt.assign(xn),Ji=isNaN(xn.x);var os=isNaN(xn.y);if(Ji||os){Vn=Vn/2+3,Br=Br/2+3;var us=45<=dn&&135>=dn,qs=225<=dn&&315>=dn;Qe===da&&(us||qs)?(nt.x=os?Vn:xn.y,nt.y=Ji?Br:xn.x,us?0<=yt||isNaN(yt)&&.5>Nt||!Ji||(nt.y=-Br):qs&&((0<=yt||isNaN(yt)&&.5>Nt)&&Ji&&(nt.y=-Br),os&&(nt.x=-Vn))):(Ji&&(nt.x=0<=yt||isNaN(yt)&&.5>Nt?Vn:-Vn),os&&(nt.y=-Br),nt.rotate(dn))}else nt.rotate(dn);ge+=nt.x,Xn+=nt.y,De.set(ht),De.h(ge+Yt,Xn+ut,ht.width,ht.height),w.push(De),n.ed(De)}}if(s!==null)for(i=s.labelNodes;i.next();)i.value.measure(1/0,1/0);t.jg=n,t.position.h(e.x+n.x,e.y+n.y),rr(r,n.width||0,n.height||0),jn.free(N),z.free(F),z.free(nt)}}}},Og.prototype.arrange=function(t,e){var n=e.length;if(t instanceof Vi||t instanceof Pe){var i=t,r=null;t instanceof Vi&&(r=t,i=r.adornedPart);var o=t instanceof Vi?null:i.path,s=t.j;if(s.length!==0){var l=0;if(o!==null&&l<s.length){var u=s[l];l++,o.arrange(u.x-t.jg.x,u.y-t.jg.y,u.width,u.height)}for(u=0;u<n;u++){var d=e[u];if(d!==o&&l<s.length){var f=s[l];l++,d.arrange(f.x-t.jg.x,f.y-t.jg.y,f.width,f.height)}}}if(e=i.points,n=e.count,2<=n&&t instanceof Pe)for(o=t.labelNodes;o.next();){var y=t;s=o.value,l=s.segmentIndex,u=s.segmentFraction;var T=s.alignmentFocus;if(d=s.segmentOrientation,f=s.segmentOffset,isNaN(l)){var w=y.ua,N=bn();w.Qu(u,N);var F=z.allocAt(N[0],N[1]);F.add(y.i(0)),w.type===Oe.j||(w=w.figures.first()),F.offset(-w.startX,-w.startY),w=N[2],d!==da&&(y=y.computeAngle(s,d,w),s.angle=y),y=F.x;var nt=F.y;z.free(F),En(N)}else if(l<-n||l>=n)N=z.alloc(),w=y,nt=N,w.vg(),w.computeMidPoint(nt),w=y.midAngle,d!==da&&(y=y.computeAngle(s,d,w),s.angle=y),y=N.x,nt=N.y,z.free(N);else{if(F=0,0<=l?(N=e.s[l],nt=l<n-1?e.s[l+1]:N):(F=n+l,N=e.s[F],nt=0<F?e.s[F-1]:N),N.Xa(nt)){0<=l?(w=0<l?e.s[l-1]:N,F=l<n-2?e.s[l+2]:nt):(w=F<n-1?e.s[F+1]:N,F=1<F?e.s[F-2]:nt);var X=w.Bf(N),ut=nt.Bf(F);w=X>ut+10?0<=l?w.ab(N):N.ab(w):ut>X+10?0<=l?nt.ab(F):F.ab(nt):0<=l?w.ab(F):F.ab(w)}else w=0<=l?N.ab(nt):nt.ab(N);d!==da&&(y=y.computeAngle(s,d,w),s.angle=y),y=N.x+(nt.x-N.x)*u,nt=N.y+(nt.y-N.y)*u}if(T.ys())s.location=new z(y,nt);else{T.Mc()&&(T=ei),N=jn.alloc(),N.reset(),N.scale(s.scale,s.scale),N.rotate(s.angle,0,0);var ht=s.naturalBounds;F=Xt.allocAt(0,0,ht.width,ht.height),X=z.alloc(),X.xi(F,T),N.Ga(X),T=-X.x,ut=-X.y;var yt=ht.width,Nt=ht.height;ht=z.alloc(),ht.assign(f);var Yt=isNaN(f.x),Qe=isNaN(f.y);if(Yt||Qe){yt=yt/2+3,Nt=Nt/2+3;var xn=45<=w&&135>=w,dn=225<=w&&315>=w;d===da&&(xn||dn)?(ht.x=Qe?yt:f.y,ht.y=Yt?Nt:f.x,xn?0<=l||isNaN(l)&&.5>u||!Yt||(ht.y=-Nt):dn&&((0<=l||isNaN(l)&&.5>u)&&Yt&&(ht.y=-Nt),Qe&&(ht.x=-yt))):(Yt&&(ht.x=0<=l||isNaN(l)&&.5>u?yt:-yt),Qe&&(ht.y=-Nt),ht.rotate(w))}else ht.rotate(w);y+=ht.x,nt+=ht.y,N.pp(F),T+=F.x,ut+=F.y,l=z.allocAt(y+T,nt+ut),s.move(l),z.free(l),z.free(ht),z.free(X),Xt.free(F),jn.free(N)}}r!==null?r.Ul(!1):i.Ul(!1),i=Gy(t),t.location.h(t.position.x+i.x,t.position.y+i.y),z.free(i)}};function py(t,e,n,i){if(hl(i)!==!1){var r=i.strokeWidth;r===0&&t instanceof Vi&&t.type===Re.Link&&t.adornedObject instanceof ai&&(r=t.adornedObject.strokeWidth),r*=i.Ca,t instanceof Pe&&t.ua!==null?(t=t.geometry.bounds,i.Ge(t.x-r/2,t.y-r/2,t.width+r,t.height+r)):t instanceof Vi&&t.adornedPart.ua!==null?(t=t.adornedPart.ua.bounds,i.Ge(t.x-r/2,t.y-r/2,t.width+r,t.height+r)):i.Ge(-(r/2),-(r/2),e+r,n+r),r=i.desiredSize,r.w()||i.ua===null?i.dc.h(0,0,r.width,r.height):i.dc.assign(i.ua.bounds),zo(i,!1)}}function up(){this.xa="Base"}Yn(up,Yo),up.prototype.measure=function(t,e,n,i,r,o,s){var l=t.Pb();t.graduatedBounds=[];var u=l.margin,d=u.right+u.left,f=u.top+u.bottom;l.measure(e,n,o,s);var y=l.measuredBounds,T=new Xt(-u.left,-u.top,Math.max(y.width+d,0),Math.max(y.height+f,0));t.graduatedBounds.push(T),r.assign(T);for(var w=l.geometry,N=l.strokeWidth,F=w.flattenedSegments,nt=w.flattenedLengths,X=w.flattenedTotalLength,ut=F.length,ht=0,yt=0,Nt=bn(),Yt=0;Yt<ut;Yt++){var Qe=F[Yt],xn=[];yt=ht=0;for(var dn=Qe.length,De=0;De<dn;De+=2){var ge=Qe[De],Xn=Qe[De+1];if(De!==0){var Vn=180*Math.atan2(Xn-yt,ge-ht)/Math.PI;0>Vn&&(Vn+=360),xn.push(Vn)}ht=ge,yt=Xn}Nt.push(xn)}if(t.graduatedIntervals===null){for(var Ji=[],Br=t.O.s,os=Br.length,us=0;us<os;us++){var qs=Br[us],ss=[];if(Ji.push(ss),qs.visible){var Fc=qs.interval;if(!(0>Fc)){for(var Do=0;Do<os;Do++)if(Do!==us){var Eu=Br[Do];if(Eu.visible&&qs.constructor===Eu.constructor){var ta=Eu.interval;ta>Fc&&ss.push(ta)}}}}}t.graduatedIntervals=Ji}var Bc=t.graduatedIntervals,gl=t.O.s,jl=gl.length,Ja=0,Ha=0,ph=X;t.graduatedMarks=[];for(var Su,Tf=0;Tf<jl;Tf++){var qa=gl[Tf];if(Su=[],qa.visible&&qa!==l){var ea=Math.abs(qa.interval),Zp=t.graduatedTickUnit;if(!(2>Zp*ea*X/t.graduatedRange&&qa.graduatedSkip===null)){var wd=nt[0][0],Mu=0,za=0;Ha=X*qa.graduatedStart-1e-4,ph=X*qa.graduatedEnd+1e-4;var Kh=Zp*ea,tl=t.graduatedTickBase;if(tl<t.graduatedMin){var gh=(t.graduatedMin-tl)/Kh;gh=gh%1===0?gh:Math.floor(gh+1),tl+=gh*Kh}else tl>t.graduatedMin+Kh&&(tl-=Math.floor((tl-t.graduatedMin)/Kh)*Kh);for(var Qm=Bc[Tf],$p=tl,$v=1e-6*t.graduatedMax,qu=1;tl<=t.graduatedMax+$v;qu++){t:{for(var hc=Qm.length,Cd=0;Cd<hc;Cd++){var mh=(tl-t.graduatedTickBase)%(Qm[Cd]*t.graduatedTickUnit),wf=1e-6*t.graduatedTickUnit;if(mh<wf&&mh>-wf){var vh=!1;break t}}vh=!0}if(vh&&(tl>t.graduatedMax&&(tl=t.graduatedMax),qa.graduatedSkip===null||qa instanceof zr&&!qa.graduatedSkip(tl,qa)||qa instanceof ai&&!qa.graduatedSkip(tl,qa))&&(Ja=(tl-t.graduatedMin)*X/t.graduatedRange,Ja>X&&(Ja=X),Ha<=Ja&&Ja<=ph)){for(var tc=Nt[Mu][za],Uc=nt[Mu][za];Mu<nt.length;){for(;Ja>wd&&za<nt[Mu].length-1;)za++,tc=Nt[Mu][za],Uc=nt[Mu][za],wd+=Uc;if(Ja<=wd)break;Mu++,za=0,tc=Nt[Mu][za],Uc=nt[Mu][za],wd+=Uc}var ja=F[Mu],Ou=ja[2*za],Jm=ja[2*za+1],dc=(Ja-(wd-Uc))/Uc,Cf=new z(Ou+(ja[2*za+2]-Ou)*dc+N/2-w.bounds.x,Jm+(ja[2*za+3]-Jm)*dc+N/2-w.bounds.y);Cf.scale(l.scale,l.scale);t:{var Tu=tc,Zh=Nt[Mu];if(!(.5005>dc&&.4995<dc)){var Du=Tu;if(.5>dc?0<za?Du=Zh[za-1]:It.$(ja[0],ja[ja.length-2])&&It.$(ja[1],ja[ja.length-1])&&(Du=Zh[Zh.length-1]):.5<dc&&(za+1<Zh.length?Du=Zh[za+1]:It.$(ja[0],ja[ja.length-2])&&It.$(ja[1],ja[ja.length-1])&&(Du=Zh[0])),Tu!==Du){var kd=Math.abs(Tu-Du);if(180<kd&&(Tu<Du?Tu+=360:Du+=360,kd=Math.abs(Tu-Du)),5e-4>dc||.9995<dc){tc=(Tu+Du)/2%360;break t}if(10>kd){var kf=1-Math.abs(.5-dc);tc=(Tu*kf+Du*(1-kf))%360;break t}}}tc=Tu}if(qa instanceof zr){var lu="";qa.graduatedFunction!==null?(lu=qa.graduatedFunction(tl,qa),lu=lu!=null?lu.toString():""):lu=(+tl.toFixed(2)).toString(),lu!==""&&Su.push({$l:Cf,angle:tc,text:lu})}else Su.push({$l:Cf,angle:tc})}tl=$p+qu*Kh}}}t.graduatedMarks.push(Su)}En(Nt);var Ts=t.graduatedMarks;if(Ts!==null)for(var Xp=i.length,va=0;va<Xp;va++){var Po=i[va],ya=Ts[va];if(Po.visible&&Po!==l&&ya.length!==0){if(Po instanceof ai){var fc=t,Hc=r,$h=Po.alignmentFocus;$h.Mc()&&($h=Gi);var Xv=Po.angle;Po.Kb=0,Po.measure(1/0,1/0,0,0),Po.Kb=Xv;var qm=Po.measuredBounds,Nf=qm.width,Xh=qm.height,Nd=Xt.allocAt(0,0,Nf,Xh),Ga=z.alloc();Ga.xi(Nd,$h),Xt.free(Nd);for(var pc=-Ga.x,wu=-Ga.y,Rl=new Xt,yh=ya.length,Af=0;Af<yh;Af++)for(var xh=ya[Af],t0=xh.$l.x,If=xh.$l.y,Eo=xh.angle,uu=0;4>uu;uu++){switch(uu){case 0:Ga.h(pc,wu);break;case 1:Ga.h(pc+Nf,wu);break;case 2:Ga.h(pc,wu+Xh);break;case 3:Ga.h(pc+Nf,wu+Xh)}Ga.rotate(Eo+Po.angle),Ga.offset(t0,If),Af===0&&uu===0?Rl.h(Ga.x,Ga.y,0,0):Rl.Ye(Ga),Ga.offset(-t0,-If),Ga.rotate(-Eo-Po.angle)}z.free(Ga),fc.graduatedBounds!==null&&fc.graduatedBounds.push(Rl),Ni(Hc,Rl.x,Rl.y,Rl.width,Rl.height)}else if(Po instanceof zr){var Gl=t,e0=r;Gl.temporaryTextBlock===null&&(Gl.temporaryTextBlock=new zr);var el=Gl.temporaryTextBlock;Iy(el,Po);var zc=Po.alignmentFocus;zc.Mc()&&(zc=Gi);for(var Vl=Po.segmentOrientation,Lf=Po.segmentOffset,bh=new Xt,Qp=0,Rf=0,Pu=0,Qh=0,Eh=0,Mf=ya.length,jc=0;jc<Mf;jc++){var ec=ya[jc];Qp=ec.$l.x,Rf=ec.$l.y,Pu=ec.angle,Eh=Qh=Po.angle,Vl!==da&&(Eh=Vl===bp||Vl===lm?Pu+Po.angle:Pu,Qh=Pe.computeAngle(Vl,Eh)),el.Kb=Qh,el.text=ec.text||"",el.measure(1/0,1/0,0,0);var Gc=el.measuredBounds,gc=el.naturalBounds,Vc=gc.width,Jh=gc.height,Cu=jn.alloc();Cu.reset(),Cu.translate(-Gc.x,-Gc.y),Cu.scale(el.scale,el.scale),Cu.rotate(Eh,Vc/2,Jh/2),Vl!==Ep&&Vl!==Tp||Cu.rotate(90,Vc/2,Jh/2),Vl!==Sp&&Vl!==wp||Cu.rotate(-90,Vc/2,Jh/2),Vl===um&&(45<Pu&&135>Pu||225<Pu&&315>Pu)&&Cu.rotate(-Pu,Vc/2,Jh/2);var Ad=Xt.allocAt(0,0,Vc,Jh),Wc=z.alloc();Wc.xi(Ad,zc),Cu.Ga(Wc);var Id=-Wc.x,Qv=-Wc.y,mc=z.alloc();mc.assign(Lf),isNaN(mc.x)&&(mc.x=Vc/2+3),isNaN(mc.y)&&(mc.y=-(Jh/2+3)),mc.rotate(Pu),Qp+=mc.x+Id,Rf+=mc.y+Qv;var qh=new Xt(Qp,Rf,Gc.width,Gc.height),Jp=new Xt(Gc.x,Gc.y,Gc.width,Gc.height),Jv=new Xt(gc.x,gc.y,gc.width,gc.height);ec.Sz=Qh,ec.lineCount=el.lineCount,ec.lines=[el.Cb,el.Ih,el.df,el.Le,el.Qc,el.Qb,el.ze],ec.actualBounds=qh,ec.measuredBounds=Jp,ec.naturalBounds=Jv,jc===0?bh.assign(qh):bh.ed(qh),z.free(mc),z.free(Wc),Xt.free(Ad),jn.free(Cu)}Gl.graduatedBounds!==null&&Gl.graduatedBounds.push(bh),Ni(e0,bh.x,bh.y,bh.width,bh.height)}zo(Po,!1)}}},up.prototype.arrange=function(t,e,n){if(t.graduatedBounds!==null){var i=t.Pb(),r=t.graduatedMarks;if(r!==null){var o=t.graduatedBounds,s=0,l=o[s];s++,i!==null&&i.arrange(l.x-n.x,l.y-n.y,l.width,l.height);for(var u=e.length,d=0;d<u;d++){var f=e[d];l=r[d],f.visible&&f!==i&&l.length!==0&&(l=o[s],s++,f.arrange(l.x-n.x,l.y-n.y,l.width,l.height))}t.graduatedBounds=null}}},up.prototype.gc=function(t,e,n){var i=n.$i;n.$i=!0;var r=t.naturalBounds,o=r.width,s=r.height;r=e instanceof $a,e.save(),e.beginPath(),e.rect(-1,-1,o+1,s+1),e.clip(),e.Se(),o=t.Pb(),o.gc(e,n),s=t.Df()*n.scale,0>=s&&(s=1);for(var l=o.actualBounds,u=t.O.s,d=t.graduatedMarks,f=u.length,y=0;y<f;y++){var T=u[y],w=d[y],N=w.length;if(T.visible&&T!==o&&w.length!==0){if(T instanceof ai){if(!(2>t.graduatedTickUnit*T.interval*o.geometry.flattenedTotalLength/t.graduatedRange*s&&T.graduatedSkip===null)){var F=T.measuredBounds,nt=T.strokeWidth*T.scale,X=T.alignmentFocus;X.Mc()&&(X=Gi);for(var ut=0;ut<N;ut++){var ht=w[ut].$l,yt=w[ut].angle,Nt=X,Yt=T.Ab;Yt.reset(),Yt.translate(ht.x+l.x,ht.y+l.y),Yt.rotate(yt+T.angle,0,0),Yt.translate(-F.width*Nt.x+Nt.offsetX+nt/2,-F.height*Nt.y+Nt.offsetY+nt/2),Yt.scale(T.scale,T.scale),Fl(T,!1),T.wh.set(T.Ab),T.Kk=T.scale,wl(T,!1),T.gc(e,n),r&&(t.svg.appendChild(T.svg),T.svg=null),T.Ab.reset()}}}else if(T instanceof zr)for(t.temporaryTextBlock===null&&(t.temporaryTextBlock=new zr),F=t.temporaryTextBlock,Iy(F,T),nt=0;nt<N;nt++)X=w[nt],X.actualBounds&&X.measuredBounds&&X.naturalBounds&&(F.ec=X.text||"",F.Kb=X.Sz||0,F.Gc=X.lineCount||0,ut=X.lines,ut!==void 0&&(F.Cb=ut[0],F.Ih=ut[1],F.df=ut[2],F.Le=ut[3],F.Qc=ut[4],F.Qb=ut[5],F.ze=ut[6]),X.naturalBounds&&(F.dc=X.naturalBounds),X.actualBounds&&(ut=X.actualBounds,F.arrange(ut.x,ut.y,ut.width,ut.height)),ut=X.actualBounds,F.arrange(ut.x,ut.y,ut.width,ut.height),ht=X.measuredBounds,X=X.naturalBounds,yt=F.Ab,yt.reset(),yt.translate(ut.x+l.x,ut.y+l.y),yt.translate(-ht.x,-ht.y),F.no(yt,X.x,X.y,X.width,X.height),Fl(F,!1),F.wh.set(F.Ab),F.Kk=F.scale,wl(F,!1),F.Ng=T.part,F.Me=T.panel,F.gc(e,n),F.Me=null,F.Ng=null,r&&(t.svg.appendChild(F.svg),F.svg=null))}}n.$i=i,e.restore(),e.Vc(!0)};function Re(t,e){if(Rt.call(this),this.na=null,t===void 0)this.na=Re.Position;else if(typeof t=="string"){var n=nu.I(t);n!==null&&(this.na=n)}else t instanceof Yo?this.na=t:t&&(this.na=Re.Position,e=t);this.na===null&&Et("Panel type not specified or PanelLayout not loaded: "+t),this.l=this.l|4194304|(this.na===Re.Grid?1048576:0),this.O=new Te,this.yb=Vo,this.Tm=_o,this.Uf=ti,this.$g=null,this.$e="",this.jg=new Xt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Tn,this.jn=Kr,this.kn=Xe,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,e&&Object.assign(this,e)}Yn(Re,Rt),Re.prototype.cloneProtected=function(t){Rt.prototype.cloneProtected.call(this,t),t.na=this.na,t.yb=this.yb.J(),t.Tm=this.Tm.J(),t.Uf=this.Uf,t.$e=this.$e,t.jg.assign(this.jg),this.T!==null&&(t.T=this.T.copy(t)),t.xo=this.xo,t.jn=this.jn.J(),t.kn=this.kn.J(),this.ra!==null&&(t.ra=this.ra.copy()),t.ub=this.ub,t.zn=this.zn,t.Hh=this.Hh},Re.prototype.Af=function(t){Rt.prototype.Af.call(this,t),t.O=this.O;for(var e=t.O.s,n=e.length,i=0;i<n;i++)e[i].Me=t;t.$g=null},Re.prototype.copy=function(){var t=Rt.prototype.copy.call(this);if(t!==null){for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i].copy();r.wi(t),r.Ng=null;var o=t.O,s=o.count;if(o.Gb(s,r),o=t.part,o!==null){o.Rh=null,r.portId!==null&&o instanceof tn&&(o.Te=!0);var l=t.diagram;l!==null&&l.undoManager.isUndoingRedoing||o.cb(ao,"elements",t,null,r,null,s)}}return t}return null},A=Re.prototype,A.toString=function(){return"Panel("+this.type.name+")#"+gi(this)},A.Pn=function(t){Rt.prototype.Pn.call(this,t);for(var e=this.O.s,n=e.length,i=0;i<n;i++)e[i].Pn(t)},A.hh=function(t,e){if(this.na===Re.Grid)t.yc(),this.na.gc(this,t,e);else if(this.na===Re.Graduated)t.yc(),this.na.gc(this,t,e);else{if(this.na===Re.Table)if(t.yc(),t instanceof $a){var n=t.yd;t.yd=bg(t,"gojs-ts"),T0(this,t),t.nh.pop(),t.yd=n}else T0(this,t);(n=this.isClipping&&this.na===Re.Spot)&&t.save();for(var i=this.Pb(),r=this.O.s,o=r.length,s=0;s<o;s++){var l=r[s];n&&l===i&&(t.clipInsteadOfFill=!0),l.gc(t,e),n&&l===i&&(t.clipInsteadOfFill=!1)}n&&(t.restore(),t.Vc(!0))}};function T0(t,e){e.lineCap="butt";var n=0<t.rowCount?t.rowDefs:null,i=0<t.columnCount?t.colDefs:null;n!==null&&Dg(t,e,!0,n,!0),i!==null&&Dg(t,e,!1,i,!0),n!==null&&gy(t,e,!0,n),i!==null&&gy(t,e,!1,i),n!==null&&Dg(t,e,!0,n,!1),i!==null&&Dg(t,e,!1,i,!1)}function gy(t,e,n,i){for(var r=i.length,o=t.actualBounds,s=t.naturalBounds,l=!0,u=0;u<r;u++){var d=i[u];if(d!==void 0&&d.actual!==0)if(l)l=!1;else{if(n){if(d.position>s.height)continue}else if(d.position>s.width)continue;var f=d.separatorStrokeWidth;isNaN(f)&&(f=n?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth);var y=d.separatorStroke;if(y===null&&(y=n?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),f!==0&&y!==null){yo(t,e,y,!1,!1,s,o),y=!1;var T=d.separatorDashArray;T===null&&(T=n?t.defaultRowSeparatorDashArray:t.defaultColumnSeparatorDashArray),T!==null&&(y=!0,e.js(T,0)),e.beginPath(),T=d.position+f,n?T>s.height&&(f-=T-s.height):T>s.width&&(f-=T-s.width),d=d.position+f/2,e.lineWidth=f,f=t.yb,n?(d+=f.top,T=s.width-f.right,e.moveTo(f.left,d),e.lineTo(T,d)):(d+=f.left,T=s.height-f.bottom,e.moveTo(d,f.top),e.lineTo(d,T)),e.stroke(),e.Se(),y&&e.fs()}}}}function Dg(t,e,n,i,r){for(var o=i.length,s=t.actualBounds,l=t.naturalBounds,u=my(t,!0),d=my(t,!1),f=0;f<o;f++){var y=i[f];if(y!==void 0&&y.background!==null&&y.coversSeparators!==r&&y.actual!==0){var T=n?s.height:s.width;if(!(y.position>T)){var w=y.Wc(),N=y.separatorStrokeWidth;isNaN(N)&&(N=n?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth);var F=y.separatorStroke;F===null&&(F=n?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),(F===null||y.index===(n?u:d))&&(N=0),w-=N,N=y.position+N,w+=y.actual,N+w>T&&(w=T-N),0>=w||(T=t.yb,yo(t,e,y.background,!0,!1,l,s),n?e.fillRect(T.left,N+T.top,s.width-(T.left+T.right),w):e.fillRect(N+T.left,T.top,w,s.height-(T.top+T.bottom)))}}}}function my(t,e){for(var n=e?t.rowCount:t.columnCount,i=0;i<n;i++){var r=e?t.rowDefs[i]:t.colDefs[i];if(r!==void 0)return r.index}return 0}function w0(t){return t==="LineV"||t==="BarV"}A.lv=function(){for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].lv();this.Uc=!0},A.kk=function(t,e,n){if(!Rt.prototype.kk.call(this,t,e,n))return!1;if(this.type===Re.Table)n=this.svg.getElementsByClassName("gojs-ts"),n=n.length!==0?n[0]:null,n!==null&&(n.innerHTML=""),t.yd=n,T0(this,t),t.yd=null;else if(this.na===Re.Grid||this.na===Re.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;n=this.O.s;for(var i=n.length,r=0;r<i;r++)n[r].gc(t,e);return!0},A.nk=function(){return!0},A.$o=function(t,e,n,i){if(!this.isClipping)if(this.Dd()&&t.bk!==null){t=t.bk,e=this.O.s;for(var r=0,o=0,s=0;s<e.length;s++)if(e[s].Ed()){var l=e[s].actualBounds;r=s===0?l.x:Math.min(l.x,r),o=s===0?l.y:Math.min(l.y,o)}i.setAttributeNS(null,"clip-path","path('M "+(t.x-n.x-r)+","+(t.y-n.y-o)+" l "+t.width+" 0 l 0 "+t.height+" l -"+t.width+" 0 z')")}else Rt.prototype.$o.call(this,t,e,n,i)},A.Sj=function(t,e,n,i,r){var o=this.se(),s=this.transform,l=1/(s.m11*s.m22-s.m12*s.m21),u=s.m22*l,d=-s.m12*l,f=-s.m21*l,y=s.m11*l,T=l*(s.m21*s.dy-s.m22*s.dx),w=l*(s.m12*s.dx-s.m11*s.dy);if(this.areaBackground!==null)return s=this.actualBounds,It.Ff(s.left,s.top,s.right,s.bottom,t,e,n,i,r);if(this.background!==null)return o=t*u+e*f+T,l=t*d+e*y+w,t=n*u+i*f+T,u=n*d+i*y+w,r.h(0,0),n=this.naturalBounds,o=It.Ff(0,0,n.width,n.height,o,l,t,u,r),r.transform(s),o;o||(u=1,f=d=0,y=1,w=T=0),l=t*u+e*f+T,t=t*d+e*y+w,u=n*u+i*f+T,n=n*d+i*y+w,r.h(u,n),i=(u-l)*(u-l)+(n-t)*(n-t),d=!1,y=this.O.s,w=y.length,f=z.alloc(),T=null,e=1/0;var N=null,F=this.isClipping&&this.na===Re.Spot;F&&(N=z.alloc(),T=this.Pb(),(d=T.Sj(l,t,u,n,N))&&(e=(l-N.x)*(l-N.x)+(t-N.y)*(t-N.y)));for(var nt=0;nt<w;nt++){var X=y[nt];X.visible&&X!==T&&X.Sj(l,t,u,n,f)&&(d=!0,X=(l-f.x)*(l-f.x)+(t-f.y)*(t-f.y),X<i&&(i=X,r.set(f)))}return F&&(e>i&&r.set(N),z.free(N)),z.free(f),o&&r.transform(s),d},A.Gj=function(){for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Gj();Rt.prototype.Gj.call(this)},A.v=function(t){if(!hl(this)){Rt.prototype.v.call(this,t),t=null,(this.na===Re.Auto||this.na===Re.Link)&&(t=this.Pb());for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];if((r===t||r.isPanelMain)&&r.v(!0),!r.desiredSize.w()){var o=Na(r,!1);(r instanceof ha||r instanceof Re||r instanceof zr||o!==ye)&&r.v(!0)}}}},A.Uj=function(){if(!hl(this)){zo(this,!0),ju(this,!0);for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Uj()}},A.Uk=function(){if(!(this.l&2048)){Fl(this,!0),wl(this,!0);for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Wu()}},A.Wu=function(){wl(this,!0);for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Wu()},A.Wl=function(t,e,n,i){var r=this.jg;r.h(0,0,0,0);var o=this.desiredSize,s=this.minSize;n===void 0&&(n=s.width,i=s.height),n=Math.max(n,s.width),i=Math.max(i,s.height);var l=this.maxSize;isNaN(o.width)||(t=Math.min(o.width,l.width)),isNaN(o.height)||(e=Math.min(o.height,l.height)),t=Math.max(n,t),e=Math.max(i,e);var u=this.yb;t=Math.max(t-u.left-u.right,0),e=Math.max(e-u.top-u.bottom,0);var d=this.O.s;d.length!==0&&this.na.measure(this,t,e,d,r,n,i),t=r.width+u.left+u.right,u=r.height+u.top+u.bottom,isFinite(o.width)&&(t=o.width),isFinite(o.height)&&(u=o.height),t=Math.min(l.width,t),u=Math.min(l.height,u),t=Math.max(s.width,t),u=Math.max(s.height,u),t=Math.max(n,t),u=Math.max(i,u),rr(r,t,u),rr(this.naturalBounds,t,u),this.Ge(0,0,t,u)},A.Pb=function(){if(this.$g===null){var t=this.O.s,e=t.length;if(e===0)return null;for(var n=0;n<e;n++){var i=t[n];if(i.isPanelMain===!0)return this.$g=i}this.$g=t[0]}return this.$g};function lc(t){return t.part!==null?t.part.locationObject:null}A.eh=function(t,e,n,i){var r=this.O.s;if(this.actualBounds.h(t,e,n,i),r.length!==0){if(!this.desiredSize.w()){t=Na(this,!0);var o=this.measuredBounds;e=o.width,o=o.height;var s=this.Kg,l=s.left+s.right;switch(s=s.top+s.bottom,e===n&&o===i&&(t=ye),t){case ye:(e>n||o>i)&&(this.v(),this.measure(e>n?n:e,o>i?i:o,0,0));break;case Ae:this.v(!0),this.measure(n+l,i+s,0,0);break;case In:this.v(!0),this.measure(n+l,o+s,0,0);break;case Un:this.v(!0),this.measure(e+l,i+s,0,0)}}this.na.arrange(this,r,this.jg)}},A.gh=function(t){var e=this.naturalBounds,n=lc(this);if(Gr(0,0,e.width,e.height,t.x,t.y)){e=this.O.s;for(var i=e.length,r=z.allocAt(0,0);i--;){var o=e[i];if((o.visible||o===n)&&(He(r.set(t),o.transform),o.ca(r)))return z.free(r),!0}return z.free(r),!(this.Ma===null&&this.areaBackground===null)}return!1},A.ks=function(t){if(this.bindingId===t)return this;for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i].ks(t);if(r!==null)return r}return null},A.qm=function(t,e){if(e(this,t),t instanceof Re){t=t.O.s;for(var n=t.length,i=0;i<n;i++)this.qm(t[i],e)}};function Uh(t,e){vy(t,t,e)}function vy(t,e,n){n(e),e=e.O.s;for(var i=e.length,r=0;r<i;r++){var o=e[r];o instanceof Re&&vy(t,o,n)}}function R1(t,e){yy(t,t,e)}function yy(t,e,n){if(n(e),e instanceof Re){e=e.O.s;for(var i=e.length,r=0;r<i;r++)yy(t,e[r],n)}}A.Nl=function(t){return xy(this,this,t)};function xy(t,e,n){if(n(e))return e;if(e instanceof Re){e=e.O.s;for(var i=e.length,r=0;r<i;r++){var o=xy(t,e[r],n);if(o!==null)return o}}return null}A.fb=function(t){if(this.name===t)return this;var e=this.O.s,n=e.length;this.Hh===null&&this.itemTemplateMap===null||(n=cp(this));for(var i=0;i<n;i++){var r=e[i];if(r instanceof Re){var o=r.fb(t);if(o!==null)return o}if(r.name===t)return r}return null};function by(t){t=t.O.s;for(var e=t.length,n=0,i=0;i<e;i++){var r=t[i];r instanceof Re?n=Math.max(n,by(r)):r instanceof ai&&(n=Math.max(n,r.ig/2*r.strokeMiterLimit*r.Df()))}return n}A.se=function(){return!(this.type===Re.TableRow||this.type===Re.TableColumn)};function Nc(t){return t.type===Re.TableRow||t.type===Re.TableColumn}A.ic=function(t,e,n){if(this.pickable===!1||(e===void 0&&(e=null),n===void 0&&(n=null),ua(this)))return null;var i=this.naturalBounds,r=1/this.Df(),o=this.se(),s=o?t:He(z.allocAt(t.x,t.y),this.transform),l=this.diagram,u=10,d=5;if(l!==null&&(u=l.Ql("extraTouchArea"),d=u/2),Gr(-(d*r),-(d*r),i.width+u*r,i.height+u*r,s.x,s.y)){if(!this.isAtomic){r=this.O.s;var f=r.length;if(l=z.alloc(),d=(u=this.isClipping&&this.na===Re.Spot)?this.Pb():null,u&&(d.se()?He(l.set(t),d.transform):l.set(t),!d.ca(l)))return z.free(l),o||z.free(s),null;for(var y=lc(this);f--;){var T=r[f];if((T.visible||T===y)&&(T.se()?He(l.set(t),T.transform):l.set(t),!u||T!==d)){var w=null;if(T instanceof Re?w=T.ic(l,e,n):T.pickable===!0&&T.ca(l)&&(w=T),w!==null&&(e!==null&&(w=e(w)),w!==null&&(n===null||n(w))))return z.free(l),o||z.free(s),w}}z.free(l)}return this.background===null&&this.areaBackground===null?(o||z.free(s),null):(t=Gr(0,0,i.width,i.height,s.x,s.y)?this:null,o||z.free(s),t)}return o||z.free(s),null},A.ji=function(t,e,n,i){if(this.pickable===!1)return!1;e===void 0&&(e=null),n===void 0&&(n=null);var r=this.naturalBounds,o=this.se(),s=o?t:He(z.allocAt(t.x,t.y),this.transform);if(r=Gr(0,0,r.width,r.height,s.x,s.y),Nc(this)||r){if(!this.isAtomic){for(var l=this.O.s,u=l.length,d=z.alloc(),f=lc(this);u--;){var y=l[u];if(y.visible||y===f){y.se()?He(d.set(t),y.transform):d.set(t);var T=y;y=y instanceof Re?y:null,(y!==null?y.ji(d,e,n,i):T.ca(d))&&T.pickable!==!1&&(e!==null&&(T=e(T)),T===null||n!==null&&!n(T)||i.add(T))}}z.free(d)}return o||z.free(s),r&&(this.background!==null||this.areaBackground!==null)}return o||z.free(s),!1},A.Cf=function(t,e,n,i,r,o){if(this.pickable===!1)return!1;e===void 0&&(e=null),n===void 0&&(n=null);var s=o;if(o===void 0&&(s=jn.alloc(),s.reset()),s.multiply(this.transform),this.fh(t,s))return C0(this,e,n,r),o===void 0&&jn.free(s),!0;if(this.Yc(t,s)){if(!this.isAtomic)for(var l=lc(this),u=this.O.s,d=u.length;d--;){var f=u[d];if(f.visible||f===l){var y=f.actualBounds,T=this.naturalBounds;y.x>T.width||y.y>T.height||0>y.x+y.width||0>y.y+y.height||(y=f,f=f instanceof Re?f:null,T=jn.alloc(),T.set(s),(f!==null?f.Cf(t,e,n,i,r,T):rs(y,t,i,T))&&(e!==null&&(y=e(y)),y===null||n!==null&&!n(y)||r.add(y)),jn.free(T))}}return o===void 0&&jn.free(s),i}return o===void 0&&jn.free(s),!1};function C0(t,e,n,i){for(var r=t.O.s,o=r.length;o--;){var s=r[o];if(s.visible){var l=s.actualBounds,u=t.naturalBounds;l.x>u.width||l.y>u.height||0>l.x+l.width||0>l.y+l.height||(s instanceof Re&&C0(s,e,n,i),e!==null&&(s=e(s)),s===null||n!==null&&!n(s)||i.add(s))}}}A.og=function(t,e,n,i,r,o){if(this.pickable===!1)return!1;n===void 0&&(n=null),i===void 0&&(i=null);var s=this.naturalBounds,l=this.se(),u=l?t:He(z.allocAt(t.x,t.y),this.transform),d=l?e:He(z.allocAt(e.x,e.y),this.transform),f=u.Bf(d),y=0<u.x&&u.x<s.width&&0<u.y&&u.y<s.height||nn(u.x,u.y,0,0,0,s.height)<=f||nn(u.x,u.y,0,s.height,s.width,s.height)<=f||nn(u.x,u.y,s.width,s.height,s.width,0)<=f||nn(u.x,u.y,s.width,0,0,0)<=f;if(s=u.zd(0,0)<=f&&u.zd(0,s.height)<=f&&u.zd(s.width,0)<=f&&u.zd(s.width,s.height)<=f,l||(z.free(u),z.free(d)),y){if(!this.isAtomic){u=z.alloc(),d=z.alloc(),f=lc(this);for(var T=this.O.s,w=T.length;w--;){var N=T[w];if(N.visible||N===f){var F=N.actualBounds,nt=this.naturalBounds;(!l||!(F.x>nt.width||F.y>nt.height||0>F.x+F.width||0>F.y+F.height))&&(N.se()?(F=N.transform,He(u.set(t),F),He(d.set(e),F)):(u.set(t),d.set(e)),F=N,N=N instanceof Re?N:null,(N!==null?N.og(u,d,n,i,r,o):F.tx(u,d,r))&&(n!==null&&(F=n(F)),F===null||i!==null&&!i(F)||o.add(F)))}}z.free(u),z.free(d)}return r?y:s}return!1};function k0(t){var e=null;return t instanceof ai&&(e=t.spot1,e===_o&&(e=null),t=t.geometry,t!==null&&e===null&&(e=t.spot1)),e===null&&(e=vi),e}function N0(t){var e=null;return t instanceof ai&&(e=t.spot2,e===_o&&(e=null),t=t.geometry,t!==null&&e===null&&(e=t.spot2)),e===null&&(e=tr),e}A.add=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(n=0;n<e.length;n++)this.Gb(this.O.count,e[n]);return this},A.M=function(t){return this.O.M(t)},A.Gb=function(t,e){e instanceof Rn&&Et("Cannot add a Part to a Panel: "+e+"; use a Panel instead"),(this===e||this.rg(e))&&(this===e&&Et("Cannot make a Panel contain itself: "+this.toString()),Et("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+e.toString()));var n=e.panel;if(n!==null&&n!==this&&Et("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+e.toString()+", already contained by "+n.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Re.Grid||e instanceof ai||Et("Can only add Shapes to a Grid Panel, not: "+e),this.na!==Re.Graduated||e instanceof ai||e instanceof zr||Et("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+e),e.wi(this),e.Ng=null,this.itemArray!==null){var i=e.data;i!==null&&typeof i=="object"&&(this.ge===null&&(this.ge=new Zt),this.ge.add(i,e))}var r=this.O;if(i=-1,n===this){for(var o=-1,s=this.O.s,l=s.length,u=0;u<l;u++)if(s[u]===e){o=u;break}if(o!==-1){if(o===t||o+1>=r.count&&t>=r.count)return;r.mb(o),i=o}else Et("element "+e.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>t||t>r.count)&&(t=r.count),r.Gb(t,e),(t===0||e.isPanelMain)&&(this.$g=null),hl(this)||this.v(),e.v(!1),e.portId!==null?this.Te=!0:e instanceof Re&&e.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||_g(this,e,!1),n=this.part,n!==null&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof tn&&(n.Te=!0),n.Te&&n instanceof tn&&(n.wc=null),r=this.diagram,r!==null&&r.undoManager.isUndoingRedoing||(i!==-1&&n.cb(ho,"elements",this,e,null,i,null),n.cb(ao,"elements",this,null,e,null,t)))};function A0(t,e){t.l=e?t.l|16777216:t.l&-16777217}A.remove=function(t){for(var e=this.O.s,n=e.length,i=-1,r=0;r<n;r++)if(e[r]===t){i=r;break}i!==-1&&this.pc(i,!0)},A.mb=function(t){0<=t&&this.pc(t,!0)},A.pc=function(t,e){var n=this.O,i=n.M(t);if(i.Ng=null,i.wi(null),this.ge!==null){var r=i.data;typeof r=="object"&&this.ge.remove(r)}n.mb(t),zo(this,!1),this.v(),this.$g===i&&(this.$g=null),this.graduatedIntervals=null;var o=this.part;o!==null&&(o.Rh=null,o.ag=NaN,o.Wb(),o instanceof tn&&(i instanceof Re?i.qm(i,function(s,l){Q0(o,l,e)}):Q0(o,i,e)),n=this.diagram,n!==null&&n.undoManager.isUndoingRedoing||o.cb(ho,"elements",this,i,null,t,null))},A.Fb=function(t){0>t&&rn(t,">= 0",Re,"getRowDefinition:idx"),t=Math.round(t);var e=this.rowDefs;if(e[t]===void 0){var n=new jo;n.wi(this),n.isRow=!0,n.index=t,e[t]=n,this.cb(ao,"rowdefs",this,null,n,null,t)}return e[t]},A.oA=function(t){if(0>t&&rn(t,">= 0",Re,"removeRowDefinition:idx"),this.rowCount!==0){t=Math.round(t);var e=this.rowDefs,n=e[t];if(n){e[t]=void 0;for(var i=e.length-1;0<=i&&e[i--]===void 0;)e.length--;this.cb(ho,"rowdefs",this,n,null,t,null),this.v()}}};function Ey(t,e,n){var i=t.rowDefs;if(!(0>e)){if(i[e]=n instanceof jo?n:void 0,!n)for(e=i.length-1;0<=e&&i[e--]===void 0;)i.length--;t.v()}}A.Eb=function(t){0>t&&rn(t,">= 0",Re,"getColumnDefinition:idx"),t=Math.round(t);var e=this.colDefs;if(e[t]===void 0){var n=new jo;n.wi(this),n.isRow=!1,n.index=t,e[t]=n,this.cb(ao,"coldefs",this,null,n,null,t)}return e[t]},A.jA=function(t){if(0>t&&rn(t,">= 0",Re,"removeColumnDefinition:idx"),this.columnCount!==0){t=Math.round(t);var e=this.colDefs,n=e[t];if(n){e[t]=void 0;for(var i=e.length-1;0<=i&&e[i--]===void 0;)e.length--;this.cb(ho,"coldefs",this,n,null,t,null),this.v()}}};function Sy(t,e,n){var i=t.colDefs;if(!(0>e)){if(i[e]=n instanceof jo?n:void 0,!n)for(e=i.length-1;0<=e&&i[e--]===void 0;)i.length--;t.v()}}A.Gy=function(t){var e=null;return t.isRow?e=this.Fb(t.index):t.isRow||(e=this.Eb(t.index)),e&&Fg(e,t),this},A.Hy=function(t,e){return(t=this.Fb(t))&&Fg(t,new jo(e)),this},A.By=function(t,e){return(t=this.Eb(t))&&Fg(t,new jo(e)),this},A.nz=function(t){if(0>t||this.type!==Re.Table||this.rowCount===0)return-1;for(var e=0,n=this.rowDefs,i=n.length,r=this.topIndex;r<i;r++){var o=n[r];if(o!==void 0&&(e+=o.total,t<e))break}return r},A.fz=function(t){if(0>t||this.type!==Re.Table||this.columnCount===0)return-1;for(var e=0,n=this.colDefs,i=n.length,r=this.leftIndex;r<i;r++){var o=n[r];if(o!==void 0&&(e+=o.total,t<e))break}return r},A.Fz=function(t,e){if(e===void 0&&(e=new z(NaN,NaN)),this.type!==Re.Graduated)return e.h(NaN,NaN),e;t=Math.min(Math.max(t,this.graduatedMin),this.graduatedMax);var n=this.Pb();return n.geometry.Pu((t-this.graduatedMin)/this.graduatedRange,e),n.transform.Ga(e)},A.Gz=function(t){if(this.type!==Re.Graduated)return NaN;var e=this.Pb();return e.transform.Cd(t),e.geometry.xx(t)*this.graduatedRange+this.graduatedMin};function Ty(t){return t=t.allBindings,t!==null&&t._isFrozen}function Ul(t){var e=t.allBindings;if(e===null)t.data!==null&&Et("Template cannot have .data be non-null: "+t),t.allBindings=e=new Te;else if(e._isFrozen)return;var n=new Te;A0(t,!1),t.qm(t,function(d,f){f.th();var y=f.localBindings;if(y!==null)for(ud(f,!1),y=y.iterator;y.next();){var T=y.value;T.mode===Mp&&ud(f,!0);var w=T.sourceName;w!==null&&(w==="/"&&A0(d,!0),w=Fx(T,d,f),w!==null&&(n.add(w),w.srcBindings===null&&(w.srcBindings=new Te),w.srcBindings.add(T))),e.add(T)}if(f instanceof Re&&f.type===Re.Table){if(0<f.rowCount){for(d=f.rowDefs,y=d.length,T=0;T<y;T++)if(w=d[T],w!==void 0&&w.be!==null)for(var N=w.be.iterator;N.next();){var F=N.value;F.xd=w,F.to=2,F.wl=w.index,e.add(F)}}if(0<f.columnCount){for(f=f.colDefs,d=f.length,y=0;y<d;y++)if(T=f[y],T!==void 0&&T.be!==null)for(w=T.be.iterator;w.next();)N=w.value,N.xd=T,N.to=1,N.wl=T.index,e.add(N)}}});for(var i=n.iterator;i.next();){var r=i.value;if(r.srcBindings!==null){ud(r,!0);for(var o=r.srcBindings.iterator;o.next();){var s=o.value;r.localBindings===null&&(r.localBindings=new Te),r.localBindings.add(s)}}r.srcBindings=null}for(i=e.iterator;i.next();)if(r=i.value,o=r.xd,o!==null){r.xd=null;var l=r.targetProperty,u=l.indexOf(".");0<u&&o instanceof Re&&(s=l.substring(0,u),l=l.substr(u+1),u=o.fb(s),u!==null?(o=u,r.targetProperty=l):cn('Warning: unable to find GraphObject named "'+s+'" for Binding: '+r.toString())),o instanceof jo?(s=gi(o.panel),r.Ai=s===void 0?-1:s,o.panel.bindingId=r.Ai):o instanceof Rt?(s=gi(o),r.Ai=s===void 0?-1:s,o.bindingId=r.Ai):Et("Unknown type of binding target: "+o)}e.freeze(),t instanceof Rn&&t.Zc()&&t.Va()}A.Uy=function(t){t===void 0&&(t=!1);var e=this.copy();return R1(e,function(n){n instanceof Re&&(n.allBindings=null,n.ub=null);var i=n.localBindings;i!==null&&(n.localBindings=null,i.each(function(r){n.bind(r.copy())})),i=n.animationTriggers,i!==null&&(n.animationTriggers=null,i.each(function(r){n.Jv(r.value.copy())}))}),t&&Ul(e),e},A.La=function(t){var e=this.allBindings;if(e!==null)for(t===void 0&&(t=""),e=e.iterator;e.next();){var n=e.value,i=n.sourceProperty;if((t===""||i===""||i===t)&&(i=n.targetProperty,n.converter!==null||i!=="")){i=this.data;var r=n.sourceName;if(r!==null){if(r==="")i=this;else if(r==="/")i=this;else if(r===".")i=this;else if(r==="..")i=this;else if(i=this.fb(r),i===null)continue}else if(n.isToModel)if(i=this.diagram,i!==null)i=i.model.modelData;else continue;var o=this,s=n.Ai;if(s!==-1){if(o=this.ks(s),o===null)continue}else n.xd!==null&&(o=n.xd);if(r==="/"?i=o.part:r==="."?i=o:r===".."&&(i=o.panel),r=n.to,r!==0){if(!(o instanceof Re))continue;r===1?o=o.Eb(n.wl):r===2&&(o=o.Fb(n.wl))}o!==void 0&&n.Mv(o,i)}}},A.sx=function(t){return t==null||this.ge===null?null:this.ge.I(t)};function M1(t,e){t=t.O.s;for(var n=t.length,i=e.length,r=0,o=null;r<n&&(o=t[r],!(o instanceof Re&&o.data!==null));)r++,o=t[r];if(n-r!==i)return!0;if(o===null)return 0<i;for(var s=0;r<n&&s<i;){if(o=t[r],!(o instanceof Re)||o.data!==e[s])return!0;r++,s++}return!1}function cp(t){if(t.type===Re.Spot||t.type===Re.Auto)return Math.min(t.O.length,1);if(t.type===Re.Link){t=t.O;for(var e=t.length,n=0;n<e;n++){var i=t.M(n);if(!(i instanceof ai&&i.isPanelMain))break}return n}return t.type===Re.Table&&0<t.O.length&&(t=t.O.M(0),t.isPanelMain&&t instanceof Re&&Nc(t))?1:0}A.mv=function(){for(var t=cp(this);this.O.length>t;)this.pc(this.O.length-1,!1);wy(this,this.itemArray)};function wy(t,e){var n=cp(t);if(e===null||e.length===0)for(;t.O.length>n;)t.pc(t.O.length-1,!1);else if(t.O.length<=n){n=e.length;for(var i=0;i<n;i++)Pg(t,e[i],i,!0)}else{i=n;for(var r=0;r<e.length;r++,i++){var o=e[r],s=i<t.O.length?t.O.M(i):null;if(s instanceof Re){if(s.data!==o){var l=L0(t,s.data),u=L0(t,o),d=u!==l;d||(l=R0(t,l),d=R0(t,u)!==l),d?(t.pc(i,!1),Pg(t,o,r,!1)):s.data=o}}else Pg(t,o,r,!1)}for(;i<t.O.length;)t.pc(i,!1);t.$g=null,I0(t,n,0),hl(t)||t.v(),t.graduatedIntervals=null,t.If()||_g(t,t,!1),e=t.part,e!==null&&(e.Rh=null,e.ag=NaN,t.Te&&e instanceof tn&&(e.Te=!0),e.Te&&e instanceof tn&&(e.wc=null))}}function Pg(t,e,n,i){if(!(e==null||0>n)){var r=L0(t,e);if(r=R0(t,r),r!==null){if(Ul(r),r=r.copy(),r.l&16777216){var o=t.ih();o!==null&&A0(o,!0)}typeof e=="object"&&(t.ge===null&&(t.ge=new Zt),t.ge.add(e,r)),o=n+cp(t),t.Gb(o,r),i&&(r.ub=e,I0(t,o,n),r.ub=null),r.data=e}}}function I0(t,e,n){for(t=t.O;e<t.length;){var i=t.M(e);if(i instanceof Re){var r=e,o=n;i.type===Re.TableRow?i.row=r:i.type===Re.TableColumn&&(i.column=r),i.itemIndex=o}e++,n++}}function L0(t,e){if(e===null)return"";if(t=t.itemCategoryProperty,typeof t=="function")t=t(e);else if(typeof t=="string"&&typeof e=="object"){if(t==="")return"";t=Lo(e,t)}else return"";if(t===void 0)return"";if(typeof t=="string")return t;Et("Panel.getCategoryForItemData found a non-string category for "+e+": "+t)}function R0(t,e){var n=t.itemTemplateMap,i=null;return n!==null&&(i=n.I(e)),i===null&&(n!==null&&(i=n.I("")),i===null&&(Cy||(Cy=!0,cn('No item template Panel found for category "'+e+'" on '+t),cn(" Using default item template."),t=new Re,e=new zr,e.bind(new Oo("text","",li)),t.add(e),ky=t),i=ky)),i}function _g(t,e,n){var i=e.enabledChanged;if(i!==null&&i(e,n),e instanceof Re){e=e.O.s,i=e.length;for(var r=0;r<i;r++){var o=e[r];n&&o instanceof Re&&!o.isEnabled||_g(t,o,n)}}}function Lu(t,e){e.name=t,nu.add(t,e)}Mn.Object.defineProperties(Re.prototype,{type:{get:function(){return this.na},set:function(t){var e=this.na;e!==t&&(this.na=t,this.isAtomic=this.na===Re.Grid,this.v(),this.g("type",e,t))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(t){typeof t=="number"?(0>t&&rn(t,">= 0",Re,"padding"),t=new ii(t)):(0>t.left&&rn(t.left,">= 0",Re,"padding:value.left"),0>t.right&&rn(t.right,">= 0",Re,"padding:value.right"),0>t.top&&rn(t.top,">= 0",Re,"padding:value.top"),0>t.bottom&&rn(t.bottom,">= 0",Re,"padding:value.bottom"));var e=this.yb;e.D(t)||(this.yb=t=t.J(),this.v(),this.g("padding",e,t))}},defaultAlignment:{get:function(){return this.Tm},set:function(t){var e=this.Tm;e.D(t)||(this.Tm=t=t.J(),this.v(),this.g("defaultAlignment",e,t))}},defaultStretch:{get:function(){return this.Uf},set:function(t){var e=this.Uf;e!==t&&(this.Uf=t,this.v(),this.g("defaultStretch",e,t))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Vo},set:function(t){typeof t=="number"&&(t=new ii(t));var e=this.defaultSeparatorPadding;e.D(t)||(t=t.J(),this.T===null&&(this.T=new Nl),this.T.Qp=t,this.v(),this.g("defaultSeparatorPadding",e,t))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(t){var e=this.defaultRowSeparatorStroke;e!==t&&(t===null||typeof t=="string"||t instanceof ur)&&(t instanceof ur&&t.freeze(),this.T===null&&(this.T=new Nl),this.T.ia=t,this.N(),this.g("defaultRowSeparatorStroke",e,t))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(t){var e=this.defaultRowSeparatorStrokeWidth;e!==t&&isFinite(t)&&0<=t&&(this.T===null&&(this.T=new Nl),this.T.Ha=t,this.v(),this.g("defaultRowSeparatorStrokeWidth",e,t))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(t){var e=this.defaultRowSeparatorDashArray;if(e!==t){if(t!==null){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];typeof o=="number"&&0<=o&&isFinite(o)||Et("defaultRowSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(e===null)return;t=null}}this.T===null&&(this.T=new Nl),this.T.V=t,this.N(),this.g("defaultRowSeparatorDashArray",e,t)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(t){var e=this.defaultColumnSeparatorStroke;e!==t&&(t===null||typeof t=="string"||t instanceof ur)&&(t instanceof ur&&t.freeze(),this.T===null&&(this.T=new Nl),this.T.u=t,this.N(),this.g("defaultColumnSeparatorStroke",e,t))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(t){var e=this.defaultColumnSeparatorStrokeWidth;e!==t&&isFinite(t)&&0<=t&&(this.T===null&&(this.T=new Nl),this.T.F=t,this.v(),this.g("defaultColumnSeparatorStrokeWidth",e,t))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(t){var e=this.defaultColumnSeparatorDashArray;if(e!==t){if(t!==null){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];typeof o=="number"&&0<=o&&isFinite(o)||Et("defaultColumnSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(e===null)return;t=null}}this.T===null&&(this.T=new Nl),this.T.o=t,this.N(),this.g("defaultColumnSeparatorDashArray",e,t)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(t){this.T===null&&(this.T=new Nl),this.T.nb=t}},viewboxStretch:{get:function(){return this.xo},set:function(t){var e=this.xo;e!==t&&(this.xo=t,this.v(),this.g("viewboxStretch",e,t))}},gridCellSize:{get:function(){return this.jn},set:function(t){var e=this.jn;if(!e.D(t)){t.w()&&t.width!==0&&t.height!==0||Et("Invalid Panel.gridCellSize: "+t),this.jn=t.J();var n=this.diagram;n!==null&&this===n.grid&&Nu(n),this.N(),this.g("gridCellSize",e,t)}}},gridOrigin:{get:function(){return this.kn},set:function(t){var e=this.kn;if(!e.D(t)){t.w()||Et("Invalid Panel.gridOrigin: "+t),this.kn=t.J();var n=this.diagram;n!==null&&this===n.grid&&Nu(n),this.N(),this.g("gridOrigin",e,t)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(t){var e=this.graduatedMin;e!==t&&(this.ra===null&&(this.ra=new uc),this.ra.lq=t,this.v(),this.g("graduatedMin",e,t),Ns(this)&&(t=this.part,t!==null&&qr(this,t,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(t){var e=this.graduatedMax;e!==t&&(this.ra===null&&(this.ra=new uc),this.ra.F=t,this.v(),this.g("graduatedMax",e,t),Ns(this)&&(t=this.part,t!==null&&qr(this,t,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(t){var e=this.graduatedTickUnit;e!==t&&0<t&&(this.ra===null&&(this.ra=new uc),this.ra.ia=t,this.v(),this.g("graduatedTickUnit",e,t))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(t){var e=this.graduatedTickBase;e!==t&&(this.ra===null&&(this.ra=new uc),this.ra.V=t,this.v(),this.g("graduatedTickBase",e,t))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(t){this.ra!==null?this.ra.u=t:t!==null&&(this.ra=new uc,this.ra.u=t)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(t){this.ra!==null?this.ra.j=t:t!==null&&(this.ra=new uc,this.ra.j=t)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(t){this.ra!==null?this.ra.o=t:t!==null&&(this.ra=new uc,this.ra.o=t)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(t){this.ra!==null?this.ra.Zh=t:t!==null&&(this.ra=new uc,this.ra.Zh=t)}},panelLayoutState:{get:function(){return this.F},set:function(t){this.F=t}},Te:{get:function(){return(this.l&8388608)!==0},set:function(t){(this.l&8388608)!==0!==t&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Nl),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Nl),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Ug},set:function(t){var e=this.rowSizing;e!==t&&(this.T===null&&(this.T=new Nl),this.T.ob=t,this.v(),this.g("rowSizing",e,t))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Ug},set:function(t){var e=this.columnSizing;e!==t&&(this.T===null&&(this.T=new Nl),this.T.j=t,this.v(),this.g("columnSizing",e,t))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(t){var e=this.topIndex;e!==t&&((!isFinite(t)||0>t)&&Et("Panel.topIndex must be greater than zero and a real number, not: "+t),this.T===null&&(this.T=new Nl),this.T.Hb=t,this.v(),this.g("topIndex",e,t))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(t){var e=this.leftIndex;e!==t&&((!isFinite(t)||0>t)&&Et("Panel.leftIndex must be greater than zero and a real number, not: "+t),this.T===null&&(this.T=new Nl),this.T.hb=t,this.v(),this.g("leftIndex",e,t))}},data:{get:function(){return this.ub},set:function(t){var e=this.ub;if(e!==t){var n=this instanceof Rn&&!(this instanceof Vi);Ul(this),this.ub=t;var i=this.diagram;i!==null&&(n?(n=i.partManager,this instanceof Pe?(e!==null&&n.bf.remove(e),t!==null&&n.bf.add(t,this)):this instanceof Rn&&(e!==null&&n.cf.remove(e),t!==null&&n.cf.add(t,this))):(n=this.panel,n!==null&&n.ge!==null&&(e!==null&&n.ge.remove(e),t!==null&&n.ge.add(t,this)))),this.g("data",e,t),i!==null&&i.undoManager.isUndoingRedoing||t!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(t){var e=this.zn;e!==t&&(this.zn=t,this.g("itemIndex",e,t))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(t){this.localBindings!==t&&(this.A===null&&(this.A=new cd),this.A.nb=t)}},itemArray:{get:function(){return this.Hh},set:function(t){var e=this.Hh;if(e!==t||t!==null&&M1(this,t)){var n=this.diagram;e!==t&&(n!==null&&e!==null&&vv(n.partManager,this,n),this.Hh=t,n!==null&&t!==null&&mv(n.partManager,this)),this.g("itemArray",e,t),n!==null&&n.undoManager.isUndoingRedoing||wy(this,t)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(t){if(this.itemTemplateMap===null){if(t===null)return;this.itemTemplateMap=new Zt}var e=this.itemTemplateMap.I("");e!==t&&((t instanceof Rn||t.isPanelMain)&&Et("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+t),this.itemTemplateMap.add("",t),this.g("itemTemplate",e,t),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(t){var e=this.itemTemplateMap;if(e!==t){for(var n=t.iterator;n.next(););di(this),this.A.Pc=t,this.g("itemTemplateMap",e,t),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(t){var e=this.itemCategoryProperty;e!==t&&(di(this),this.A.Oc=t,this.g("itemCategoryProperty",e,t))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(t){var e=(this.l&1048576)!==0;e!==t&&(this.l^=1048576,this.g("isAtomic",e,t))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(t){var e=(this.l&2097152)!==0;e!==t&&(this.l^=2097152,this instanceof Jn&&(this.tb=null),this.v(),this.g("isClipping",e,t))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(t){var e=(this.l&33554432)!==0;e!==t&&(this.l^=33554432,this.v(),this.g("isOpposite",e,t))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(t){var e=(this.l&4194304)!==0;if(e!==t){var n=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",e,t),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||n&&_g(this,this,t)}}},alignmentFocusName:{get:function(){return this.$e},set:function(t){var e=this.$e;e!==t&&(this.$e=t,this.v(),this.g("alignmentFocusName",e,t))}}}),Mn.Object.defineProperties(Re,{Position:{get:function(){return nu.I("Position")}},Horizontal:{get:function(){return nu.I("Horizontal")}},Vertical:{get:function(){return nu.I("Vertical")}},Spot:{get:function(){return nu.I("Spot")}},Auto:{get:function(){return nu.I("Auto")}},Table:{get:function(){return nu.I("Table")}},Viewbox:{get:function(){return nu.I("Viewbox")}},TableRow:{get:function(){return nu.I("TableRow")}},TableColumn:{get:function(){return nu.I("TableColumn")}},Link:{get:function(){return nu.I("Link")}},Grid:{get:function(){return nu.I("Grid")}},Graduated:{get:function(){return nu.I("Graduated")}}}),Re.prototype.rebuildItemElements=Re.prototype.mv,Re.prototype.findItemPanelForData=Re.prototype.sx,Re.prototype.updateTargetBindings=Re.prototype.La,Re.prototype.copyTemplate=Re.prototype.Uy,Re.prototype.graduatedValueForPoint=Re.prototype.Gz,Re.prototype.graduatedPointForValue=Re.prototype.Fz,Re.prototype.findColumnForLocalX=Re.prototype.fz,Re.prototype.findRowForLocalY=Re.prototype.nz,Re.prototype.addColumnDefinition=Re.prototype.By,Re.prototype.addRowDefinition=Re.prototype.Hy,Re.prototype.addRowColumnDefinition=Re.prototype.Gy,Re.prototype.removeColumnDefinition=Re.prototype.jA,Re.prototype.getColumnDefinition=Re.prototype.Eb,Re.prototype.removeRowDefinition=Re.prototype.oA,Re.prototype.getRowDefinition=Re.prototype.Fb,Re.prototype.removeAt=Re.prototype.mb,Re.prototype.remove=Re.prototype.remove,Re.prototype.insertAt=Re.prototype.Gb,Re.prototype.elt=Re.prototype.M,Re.prototype.add=Re.prototype.add,Re.prototype.findObject=Re.prototype.fb,Re.prototype.findInVisualTree=Re.prototype.Nl,Re.prototype.walkVisualTreeFrom=Re.prototype.qm,Re.prototype.findMainElement=Re.prototype.Pb;var Cy=!1,ky=null,nu=new Zt;Re.className="Panel",Re.definePanelLayout=Lu,Lu("Position",new Tg),Lu("Vertical",new Cg),Lu("Auto",new Ng),Lu("Link",new Og);function uc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}uc.prototype.copy=function(){var t=new uc;return t.lq=this.lq,t.F=this.F,t.ia=this.ia,t.V=this.V,t.u=this.u,t.j=this.j,t.o=this.o,t.Zh=this.Zh,t},uc.className="GradPanelSettings";function Nl(){this.Pc=[],this.Oc=[],this.j=this.ob=Ug,this.hb=this.Hb=0,this.Qp=Vo,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Nl.prototype.copy=function(t){for(var e=new Nl,n=this.Pc,i=n.length,r=e.Pc,o=0;o<i;o++)if(n[o]!==void 0){var s=n[o].copy();s.wi(t),r[o]=s}for(n=this.Oc,i=n.length,r=e.Oc,o=0;o<i;o++)n[o]!==void 0&&(s=n[o].copy(),s.wi(t),r[o]=s);return e.ob=this.ob,e.j=this.j,e.Hb=this.Hb,e.hb=this.hb,e.Qp=this.Qp.J(),e.Ha=this.Ha,e.ia=this.ia,e.V=this.V,e.F=this.F,e.u=this.u,e.o=this.o,e.nb=this.nb,e},Nl.className="TablePanelSettings";function jo(t){Gn(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=_o,this.pa=this.oc=this.oa=0,this.be=null,this.oo=M0,this.hg=ti,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,t&&(Object.assign(this,t),t.column!==void 0?(this.isRow=!1,this.index=t.column):t.row!==void 0&&(this.isRow=!0,this.index=t.row))}jo.prototype.copy=function(){var t=new jo;return t.uq=this.uq,t.Za=this.Za,t.Hc=this.Hc,t.jj=this.jj,t.hj=this.hj,t.Jb=this.Jb,t.oa=this.oa,t.oc=this.oc,t.pa=this.pa,t.hg=this.hg,t.oo=this.oo,this.dg===null?t.dg=null:t.dg=this.dg.J(),t.lo=this.lo,t.mo=this.mo,t.tj=null,this.tj!==null&&(t.separatorDashArray=kn(this.separatorDashArray)),t.Ma=this.Ma,t.Pm=this.Pm,t.be=this.be,t};function Fg(t,e){e.isRow?t.height=e.height:t.width=e.width,t.minimum=e.minimum,t.maximum=e.maximum,t.alignment=e.alignment,t.stretch=e.stretch,t.sizing=e.sizing,t.dg=e.separatorPadding===null?null:e.separatorPadding.J(),t.separatorStroke=e.separatorStroke,t.separatorStrokeWidth=e.separatorStrokeWidth,t.tj=null,e.separatorDashArray&&(t.tj=kn(e.separatorDashArray)),t.background=e.background,t.coversSeparators=e.coversSeparators,t.be=e.be}A=jo.prototype,A.qb=function(t){t.classType===jo&&(this.sizing=t)},A.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+gi(this)},A.wi=function(t){this.Me=t},A.Io=function(t){var e=0,n=this.Me;if(this.index!==t&&(t=this.separatorStroke,t===null&&n!==null&&(t=this.isRow?n.defaultRowSeparatorStroke:n.defaultColumnSeparatorStroke),t!==null&&(e=this.separatorStrokeWidth,isNaN(e)&&(n!==null?e=this.isRow?n.defaultRowSeparatorStrokeWidth:n.defaultColumnSeparatorStrokeWidth:e=0))),t=this.dg,t===null)if(n!==null)t=n.defaultSeparatorPadding;else return e;return e+(this.isRow?t.top:t.left)},A.Wc=function(){var t=0,e=this.Me,n=0,i=this.isRow;if(e!==null&&e.type===Re.Table)for(var r=i?e.rowDefs.length:e.colDefs.length,o=0;o<r;o++){var s=i?e.rowDefs[o]:e.colDefs[o];if(s!==void 0&&s.oa!==0){n=s.index;break}}if(this.index!==n&&(n=this.separatorStroke,n===null&&e!==null&&(n=i?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),n!==null&&(t=this.separatorStrokeWidth,isNaN(t)&&(e!==null?t=i?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth:t=0))),i=this.dg,i===null)if(e!==null)i=e.defaultSeparatorPadding;else return t;return t+(this.isRow?i.top+i.bottom:i.left+i.right)},A.Ob=function(t,e,n){var i=this.Me;if(i!==null&&(i.cb(_r,t,this,e,n,void 0,void 0),this.be!==null&&(e=i.diagram,e!==null&&!e.skipsModelSourceBindings&&(i=i.ih(),i!==null&&(e=i.data,e!==null)))))for(n=this.be.iterator;n.next();)n.value.sp(this,e,t,i)};function Bg(t){if(t.sizing===M0){var e=t.Me;return t.isRow?e.rowSizing:e.columnSizing}return t.sizing}A.bind=function(t,e,n,i){var r=null;return typeof t=="string"?r=new Oo(t,e,n,i):r=t,r.xd=this,t=this.panel,t!==null&&(e=t.ih(),e!==null&&Ty(e)&&Et("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+r+" on "+t)),this.be===null&&(this.be=new Te),this.be.add(r),this},Mn.Object.defineProperties(jo.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(t){this.uq=t}},index:{get:function(){return this.Za},set:function(t){this.Za=t}},height:{get:function(){return this.Hc},set:function(t){var e=this.Hc;e!==t&&(0>t&&rn(t,">= 0",jo,"height"),this.Hc=t,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",e,t))}},width:{get:function(){return this.Hc},set:function(t){var e=this.Hc;e!==t&&(0>t&&rn(t,">= 0",jo,"width"),this.Hc=t,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",e,t))}},minimum:{get:function(){return this.jj},set:function(t){var e=this.jj;e!==t&&((0>t||!isFinite(t))&&rn(t,">= 0",jo,"minimum"),this.jj=t,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",e,t))}},maximum:{get:function(){return this.hj},set:function(t){var e=this.hj;e!==t&&(0>t&&rn(t,">= 0",jo,"maximum"),this.hj=t,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",e,t))}},alignment:{get:function(){return this.Jb},set:function(t){var e=this.Jb;e.D(t)||(this.Jb=t.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",e,t))}},stretch:{get:function(){return this.hg},set:function(t){var e=this.hg;e!==t&&(this.hg=t,this.panel!==null&&this.panel.v(),this.Ob("stretch",e,t))}},separatorPadding:{get:function(){return this.dg},set:function(t){typeof t=="number"&&(t=new ii(t));var e=this.dg;t!==null&&e!==null&&e.D(t)||(t!==null&&(t=t.J()),this.dg=t,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",e,t))}},separatorStroke:{get:function(){return this.lo},set:function(t){var e=this.lo;e!==t&&(t!==null&&dd(t,"RowColumnDefinition.separatorStroke"),t instanceof ur&&t.freeze(),this.lo=t,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",e,t))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(t){var e=this.mo;e!==t&&(this.mo=t,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",e,t))}},separatorDashArray:{get:function(){return this.tj},set:function(t){var e=this.tj;if(e!==t){if(t!==null){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];typeof o=="number"&&0<=o&&isFinite(o)||Et("separatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(e===null)return;t=null}}this.tj=t,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",e,t)}}},background:{get:function(){return this.Ma},set:function(t){var e=this.Ma;e!==t&&(t!==null&&dd(t,"RowColumnDefinition.background"),t instanceof ur&&t.freeze(),this.Ma=t,this.panel!==null&&this.panel.N(),this.Ob("background",e,t))}},coversSeparators:{get:function(){return this.Pm},set:function(t){var e=this.Pm;e!==t&&(this.Pm=t,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",e,t))}},sizing:{get:function(){return this.oo},set:function(t){var e=this.oo;e!==t&&(this.oo=t,this.panel!==null&&this.panel.v(),this.Ob("sizing",e,t))}},actual:{get:function(){return this.oa},set:function(t){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,t),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(t){this.oc=t}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(t){this.pa=t}}}),jo.prototype.computeEffectiveSpacing=jo.prototype.Wc,jo.prototype.computeEffectiveSpacingTop=jo.prototype.Io;var M0=new xe(jo,"Default",0),hp=new xe(jo,"None",1),Ug=new xe(jo,"ProportionalExtra",2);jo.className="RowColumnDefinition",jo.Default=M0,jo.None=hp,jo.ProportionalExtra=Ug;function ai(t,e){Rt.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 t=="string"?this.figure=t:t&&Object.assign(this,t),e&&Object.assign(this,e)}Yn(ai,Rt),ai.prototype.cloneProtected=function(t){Rt.prototype.cloneProtected.call(this,t),t.ua=this.ua,t.Rd=this.Rd,t.an=this.an,t.Ui=this.Ui,t.xc=this.xc,t.ig=this.ig,this.Yg!==null&&(t.Yg=kn(this.Yg)),this.Na!==null&&(t.Na=this.Na.nc?this.Na:this.Na.copy()),t.Un=this.Un,t.Vn=this.Vn,this.fa!==null&&(t.fa=this.fa.copy())};function Hh(t){t.Na===null?t.Na=new P0:t.Na.nc&&(t.Na=t.Na.copy())}A=ai.prototype,A.th=function(){Rt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},A.qb=function(t){t===ye||t===Tn||t===ki||t===ti?this.geometryStretch=t:Rt.prototype.qb.call(this,t)},A.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+gi(this)};function tf(t,e,n,i){var r=n.length;if(!(4>r)){var o=i.measuredBounds,s=Math.max(1,o.width);o=o.height;for(var l=n[0],u=n[1],d,f,y,T,w,N,F=0,nt=bn(),X=2;X<r;X+=2)d=n[X],f=n[X+1],y=d-l,l=f-u,y===0&&(y=.001),T=l/y,w=Math.atan2(l,y),N=Math.sqrt(y*y+l*l),nt.push([y,w,T,N]),F+=N,l=d,u=f;l=n[0],u=n[1],y=i.measuredBounds.width,i instanceof ai&&(y-=i.strokeWidth),1>y&&(y=1),r=n=y,d=s/2,f=d!==0,X=0,N=nt[X],y=N[0],w=N[1],T=N[2],N=N[3];for(var ut=0;.1<=F;){if(ut===0&&(f?(r=n,r-=d,F-=d,f=!1):r=n,r===0&&(r=1)),r>F){En(nt);return}r>N?(ut=r-N,r=N):ut=0;var ht=Math.sqrt(r*r/(1+T*T));if(0>y&&(ht=-ht),l+=ht,u+=T*ht,t.translate(l,u),t.rotate(w),t.translate(-(s/2),-(o/2)),ut===0&&i.hh(t,e),t.translate(s/2,o/2),t.rotate(-w),t.translate(-l,-u),F-=r,N-=r,ut!==0){if(X++,X===nt.length){En(nt);return}N=nt[X],y=N[0],w=N[1],T=N[2],N=N[3],r=ut}}En(nt)}}A.hh=function(t,e){var n=this.xc,i=this.Ui;if(n!==null||i!==null){var r=this.ua;if(r!==null){t.yc();var o=this.actualBounds,s=this.naturalBounds;i!==null&&yo(this,t,i,!0,!1,s,o);var l=this.part,u=this.ig;if(n===null||u!==0||l===null||!this.isPanelMain&&l.Pb()!==this||(u=l.type===Re.Link&&l instanceof Vi&&l.category==="Selection"&&l.adornedObject instanceof ai&&l.adornedPart.Pb()===l.adornedObject?l.adornedObject.strokeWidth:0),u===0&&(n=null),n!==null&&u!==0&&(yo(this,t,n,!1,!1,s,o),t.lineWidth=u,t.lineJoin=this.strokeJoin,t.lineCap=this.strokeCap,t.miterLimit=this.strokeMiterLimit),o=!1,l&&e.Gf("drawShadows")&&(o=l.isShadowed),t.Il===!1&&(o=!1),l=!0,n===null||i!==null&&i!=="transparent"||(l=!1),s=!1,u=this.strokeDashArray,u!==null&&(s=!0,t.js(u,this.strokeDashOffset)),r.type===Oe.j)t.beginPath(),t.moveTo(r.startX,r.startY),t.lineTo(r.endX,r.endY),n!==null&&t.jk(),t.Se();else if(r.type===Oe.u){var d=r.startX;u=r.startY;var f=r.endX,y=r.endY;r=Math.min(d,f);var T=Math.min(u,y);d=Math.abs(f-d),u=Math.abs(y-u),t.beginPath(),t.rect(r,T,d,u),i!==null&&t.ng(i),n!==null&&(l&&o&&Gu(t),t.jk(),l&&o&&oc(t)),t.Se()}else if(r.type===Oe.F)d=r.startX,u=r.startY,f=r.endX,y=r.endY,r=Math.abs(f-d)/2,T=Math.abs(y-u)/2,d=Math.min(d,f)+r,u=Math.min(u,y)+T,t.beginPath(),t.moveTo(d,u-T),t.bezierCurveTo(d+It.wg*r,u-T,d+r,u-It.wg*T,d+r,u),t.bezierCurveTo(d+r,u+It.wg*T,d+It.wg*r,u+T,d,u+T),t.bezierCurveTo(d-It.wg*r,u+T,d-r,u+It.wg*T,d-r,u),t.bezierCurveTo(d-r,u-It.wg*T,d-It.wg*r,u-T,d,u-T),t.closePath(),i!==null&&t.ng(i),n!==null&&(l&&o&&Gu(t),t.jk(),l&&o&&oc(t)),t.Se();else if(r.type===Oe.o)for(r=r.figures,u=r.length,T=0;T<u;T++){d=r.s[T],t.beginPath(),t.moveTo(d.startX,d.startY),f=d.segments.s,y=f.length;for(var w=null,N=0;N<y;N++){var F=f[N];switch(F.type){case Wr:t.moveTo(F.endX,F.endY);break;case gr:t.lineTo(F.endX,F.endY);break;case ko:t.bezierCurveTo(F.point1X,F.point1Y,F.point2X,F.point2Y,F.endX,F.endY);break;case js:t.quadraticCurveTo(F.point1X,F.point1Y,F.endX,F.endY);break;case fo:if(F.radiusX===F.radiusY){var nt=Math.PI/180;t.arc(F.point1X,F.point1Y,F.radiusX,F.startAngle*nt,(F.startAngle+F.sweepAngle)*nt,0>F.sweepAngle,w!==null?w.endX:d.startX,w!==null?w.endY:d.startY)}else if(w=fs(F,d),nt=w.length,nt===0)t.lineTo(F.centerX,F.centerY);else for(var X=0;X<nt;X++){var ut=w[X];X===0&&t.lineTo(ut[0],ut[1]),t.bezierCurveTo(ut[2],ut[3],ut[4],ut[5],ut[6],ut[7])}break;case Zs:if(X=nt=0,w!==null&&w.type===fo){if(w=fs(w,d),ut=w.length,ut===0){t.lineTo(F.endX,F.endY);break}w=w[ut-1]||null,w!==null&&(nt=w[6],X=w[7])}else nt=w!==null?w.endX:d.startX,X=w!==null?w.endY:d.startY;if(w=_s(F,d,nt,X),nt=w.length,nt===0){t.lineTo(F.endX,F.endY);break}for(X=0;X<nt;X++)ut=w[X],t.bezierCurveTo(ut[2],ut[3],ut[4],ut[5],ut[6],ut[7]);break;default:Et("Segment not of valid type: "+F.type)}F.isClosed&&t.closePath(),w=F}f=d.isFilled,o?d.isShadowed?(f===!0&&i!=="transparent"&&i!==null&&t.ng(i,d.isEvenOdd),n!==null&&(f&&l&&Gu(t),t.jk(),f&&l&&oc(t))):(Gu(t),f&&i!=="transparent"&&i!==null&&t.ng(i,d.isEvenOdd),n!==null&&t.jk(),oc(t)):(f&&i!==null&&t.ng(i,d.isEvenOdd),n!==null&&t.jk()),t.Se(T)}if(s&&t.fs(),this.pathPattern!==null){if(n=this.pathPattern,n.measure(1/0,1/0),i=n.measuredBounds,n.arrange(0,0,i.width,i.height),o=this.geometry,t.save(),t.beginPath(),i=bn(),o.type===Oe.j)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.endY),tf(t,e,i,n);else if(o.type===Oe.o)for(o=o.figures.iterator;o.next();){for(l=o.value,i.length=0,i.push(l.startX),i.push(l.startY),s=l.startX,r=l.startY,u=s,T=r,d=l.segments.s,f=d.length,y=0;y<f;y++){switch(N=d[y],N.type){case Wr:tf(t,e,i,n),i.length=0,i.push(N.endX),i.push(N.endY),s=N.endX,r=N.endY,u=s,T=r;break;case gr:i.push(N.endX),i.push(N.endY),s=N.endX,r=N.endY;break;case ko:It.Qe(s,r,N.point1X,N.point1Y,N.point2X,N.point2Y,N.endX,N.endY,.5,i),s=N.endX,r=N.endY;break;case js:It.ep(s,r,N.point1X,N.point1Y,N.endX,N.endY,.5,i),s=N.endX,r=N.endY;break;case fo:if(F=fs(N,l),w=F.length,w===0){i.push(N.centerX),i.push(N.centerY),s=N.centerX,r=N.centerY;break}for(nt=0;nt<w;nt++)X=F[nt],It.Qe(s,r,X[2],X[3],X[4],X[5],X[6],X[7],.5,i),s=X[6],r=X[7];break;case Zs:if(F=_s(N,l,s,r),w=F.length,w===0){i.push(N.endX),i.push(N.endY),s=N.endX,r=N.endY;break}for(nt=0;nt<w;nt++)X=F[nt],It.Qe(s,r,X[2],X[3],X[4],X[5],X[6],X[7],.5,i),s=X[6],r=X[7];break;default:Et("Segment not of valid type: "+N.type)}N.isClosed&&(i.push(u),i.push(T),tf(t,e,i,n))}tf(t,e,i,n)}else if(o.type===Oe.u)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.startY),i.push(o.endX),i.push(o.endY),i.push(o.startX),i.push(o.endY),i.push(o.startX),i.push(o.startY),tf(t,e,i,n);else if(o.type===Oe.F){if(r=new To,r.startX=o.endX,r.startY=(o.startY+o.endY)/2,s=new Oi(fo),s.startAngle=0,s.sweepAngle=360,s.centerX=(o.startX+o.endX)/2,s.centerY=(o.startY+o.endY)/2,s.radiusX=Math.abs(o.startX-o.endX)/2,s.radiusY=Math.abs(o.startY-o.endY)/2,r.add(s),o=fs(s,r),l=o.length,l===0)i.push(s.centerX),i.push(s.centerY);else for(s=r.startX,r=r.startY,u=0;u<l;u++)T=o[u],It.Qe(s,r,T[2],T[3],T[4],T[5],T[6],T[7],.5,i),s=T[6],r=T[7];tf(t,e,i,n)}En(i),t.restore(),t.Vc(!1)}}}},A.kk=function(t,e,n){return!Rt.prototype.kk.call(this,t,e,n)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(t.Hl=this.svg,this.hh(t,e),t.Hl=null,!0)},A.nk=function(t){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Rt.prototype.nk.call(this,t)},A.Dv=function(t,e){if(t.nodeName!=="g")t.setAttributeNS(null,"filter",e);else{t=t.getElementsByTagName("path");for(var n=0;n<t.length;n++)t[n].setAttributeNS(null,"filter",e)}},A.ga=function(t,e){if(e===void 0&&(e=new z),t instanceof vn){t.Mc()&&Et("getDocumentPoint Spot must be a real, specific Spot, not: "+t.toString());var n=this.naturalBounds,i=this.strokeWidth;e.h(t.x*(n.width+i)-i/2+n.x+t.offsetX,t.y*(n.height+i)-i/2+n.y+t.offsetY)}else e.set(t);return this.oe.Ga(e),e},A.mi=function(t){t===void 0&&(t=new Xt);var e=this.naturalBounds,n=this.oe;e=Xt.allocAt(e.x,e.y,e.width,e.height);var i=this.strokeWidth;return e.Bc(i/2,i/2),i=z.allocAt(e.x,e.y).transform(n),t.h(i.x,i.y,0,0),i.h(e.right,e.y).transform(n),Ni(t,i.x,i.y,0,0),i.h(e.right,e.bottom).transform(n),Ni(t,i.x,i.y,0,0),i.h(e.x,e.bottom).transform(n),Ni(t,i.x,i.y,0,0),Xt.free(e),z.free(i),t},A.gh=function(t,e){var n=this.geometry;if(n===null||this.fill===null&&this.stroke===null)return!1;var i=n.bounds,r=this.strokeWidth/2;n.type!==Oe.j||e||(r+=2);var o=Xt.alloc();if(o.assign(i),o.Bc(r+2,r+2),!o.ca(t))return Xt.free(o),!1;if(i=r+1e-4,n.type===Oe.j)return this.stroke===null||(i=(n.endX-n.startX)*(t.x-n.startX)+(n.endY-n.startY)*(t.y-n.startY),0>(n.startX-n.endX)*(t.x-n.endX)+(n.startY-n.endY)*(t.y-n.endY)||0>i)?!1:(Xt.free(o),It.Yb(n.startX,n.startY,n.endX,n.endY,r,t.x,t.y));if(n.type===Oe.u){e=n.startX;var s=n.startY,l=n.endX;if(n=n.endY,o.x=Math.min(e,l),o.y=Math.min(s,n),o.width=Math.abs(l-e),o.height=Math.abs(n-s),this.fill===null){if(o.Bc(-i,-i),o.ca(t))return Xt.free(o),!1;o.Bc(i,i)}return this.stroke!==null&&o.Bc(r,r),t=o.ca(t),Xt.free(o),t}if(n.type===Oe.F){s=n.startX,r=n.startY,l=n.endX;var u=n.endY;if(n=Math.min(s,l),e=Math.min(r,u),s=Math.abs(l-s)/2,r=Math.abs(u-r)/2,n=t.x-(n+s),e=t.y-(e+r),this.fill===null){if(s-=i,r-=i,0>=s||0>=r||1>=n*n/(s*s)+e*e/(r*r))return Xt.free(o),!1;s+=i,r+=i}return this.stroke!==null&&(s+=i,r+=i),Xt.free(o),0>=s||0>=r?!1:1>=n*n/(s*s)+e*e/(r*r)}if(n.type===Oe.o)return Xt.free(o),this.fill===null?ia(n,t.x,t.y,r):Fo(n,t,r,1<this.strokeWidth,e);Et("Unknown Geometry type: "+n.type)},A.Wl=function(t,e,n,i){var r=this.desiredSize,o=this.ig;if(t=Math.max(t,0),e=Math.max(e,0),this.Rd!==null)var s=this.geometry.bounds;else{var l=this.figure,u=D0[l];if(u===void 0){var d=It.Ze[l];typeof d=="string"&&(d=It.Ze[d]),typeof d=="function"?(u=d(null,100,100),D0[l]=u):Et("Unsupported Figure: "+l)}s=u.bounds}l=s.width,u=s.height,d=s.width;var f=s.height;switch(Na(this,!0)){case ye:i=n=0;break;case Ae:d=Math.max(t-o,0),f=Math.max(e-o,0);break;case In:d=Math.max(t-o,0),i=0;break;case Un:n=0,f=Math.max(e-o,0)}isFinite(r.width)&&(d=r.width),isFinite(r.height)&&(f=r.height);var y=this.maxSize,T=this.minSize;switch(n=Math.max(n-o,T.width),i=Math.max(i-o,T.height),d=Math.min(y.width,d),f=Math.min(y.height,f),d=isFinite(d)?Math.max(n,d):Math.max(l,n),f=isFinite(f)?Math.max(i,f):Math.max(u,i),n=O0(this),n){case ye:break;case Ae:l=d,u=f;break;case Tn:n=Math.min(d/l,f/u),isFinite(n)||(n=1),l*=n,u*=n;break;default:Et(n+" is not a valid geometryStretch.")}this.Rd!==null?(l===0&&(l=.001),u===0&&(u=.001),n=this.Rd!==null?this.Rd:this.ua,s=n.bounds,i=l/s.width,s=u/s.height,isFinite(i)||(i=1),isFinite(s)||(s=1),this.ua=i===1&&s===1?n:n.copy().scale(i,s)):this.ua!==null&&It.$(this.ua.Sk,t-o)&&It.$(this.ua.Rk,e-o)||(this.ua=ai.makeGeometry(this,l,u)),s=this.ua.bounds,t===1/0||e===1/0?this.Ge(s.x-o/2,s.y-o/2,t===0&&l===0?0:s.width+o,e===0&&u===0?0:s.height+o):this.Ge(-(o/2),-(o/2),d+o,f+o),r.w()?(d=r.width,f=r.height,d=Math.min(y.width,d),f=Math.min(y.height,f),d=Math.max(T.width,d),f=Math.max(T.height,f),this.dc.h(0,0,d,f)):this.dc.assign(s)};function O0(t){var e=t.geometryStretch;return t.Rd!==null?e===ti?Ae:e:e===ti?D0[t.figure].defaultStretch:e}A.eh=function(t,e,n,i){Js(this,t,e,n,i)},A.rs=function(t,e,n){return this.Sj(t.x,t.y,e.x,e.y,n)},A.Sj=function(t,e,n,i,r){var o=this.transform,s=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*s,u=-o.m12*s,d=-o.m21*s,f=o.m11*s,y=s*(o.m21*o.dy-o.m22*o.dx),T=s*(o.m12*o.dx-o.m11*o.dy);o=t*l+e*d+y,s=t*u+e*f+T,l=n*l+i*d+y,u=n*u+i*f+T,y=this.ig/2,d=this.ua,d===null&&(this.measure(1/0,1/0),d=this.ua);var w=d.bounds;if(f=!1,d.type===Oe.j)if(1.5>=this.strokeWidth)f=It.Ve(d.startX,d.startY,d.endX,d.endY,o,s,l,u,r);else{if(d.startX===d.endX?(i=y,f=0):(e=(d.endY-d.startY)/(d.endX-d.startX),f=y/Math.sqrt(1+e*e),i=f*e),e=bn(),t=new z,It.Ve(d.startX+i,d.startY+f,d.endX+i,d.endY+f,o,s,l,u,t)&&e.push(t),t=new z,It.Ve(d.startX-i,d.startY-f,d.endX-i,d.endY-f,o,s,l,u,t)&&e.push(t),t=new z,It.Ve(d.startX+i,d.startY+f,d.startX-i,d.startY-f,o,s,l,u,t)&&e.push(t),t=new z,It.Ve(d.endX+i,d.endY+f,d.endX-i,d.endY-f,o,s,l,u,t)&&e.push(t),l=e.length,l===0)return En(e),!1;for(f=!0,u=1/0,i=0;i<l;i++)t=e[i],n=(t.x-o)*(t.x-o)+(t.y-s)*(t.y-s),n<u&&(u=n,r.x=t.x,r.y=t.y);En(e)}else if(d.type===Oe.u)f=It.Ff(w.x-y,w.y-y,w.x+w.width+y,w.y+w.height+y,o,s,l,u,r);else if(d.type===Oe.F){e=Xt.allocAt(w.x,w.y,w.width,w.height).Bc(y,y);t:if(e.width===0)f=It.Ve(e.x,e.y,e.x,e.y+e.height,o,s,l,u,r);else if(e.height===0)f=It.Ve(e.x,e.y,e.x+e.width,e.y,o,s,l,u,r);else{if(t=e.width/2,d=e.height/2,i=e.x+t,f=e.y+d,n=9999,o!==l&&(n=(s-u)/(o-l)),9999>Math.abs(n)){if(u=s-f-n*(o-i),0>t*t*n*n+d*d-u*u){r.x=NaN,r.y=NaN,f=!1;break t}y=Math.sqrt(t*t*n*n+d*d-u*u),l=(-(t*t*n*u)+t*d*y)/(d*d+t*t*n*n)+i,t=(-(t*t*n*u)-t*d*y)/(d*d+t*t*n*n)+i,d=n*(l-i)+u+f,u=n*(t-i)+u+f,Math.abs((o-l)*(o-l))+Math.abs((s-d)*(s-d))<Math.abs((o-t)*(o-t))+Math.abs((s-u)*(s-u))?(r.x=l,r.y=d):(r.x=t,r.y=u)}else{if(l=d*d,u=o-i,l-=l/(t*t)*u*u,0>l){r.x=NaN,r.y=NaN,f=!1;break t}u=Math.sqrt(l),l=f+u,u=f-u,Math.abs(l-s)<Math.abs(u-s)?(r.x=o,r.y=l):(r.x=o,r.y=u)}f=!0}Xt.free(e)}else if(d.type===Oe.o){T=z.alloc();var N=l-o,F=u-s,nt=N*N+F*F,X=o,ut=s;if(0<nt&&w.contains(X,ut)&&(T.x=X,T.y=ut,this.ca(T)))for(N!==0&&.5>Math.abs(N)?(F*=.5/N,N=.5):F!==0&&.5>Math.abs(F)&&(N*=.5/F,F=.5),X-=N,ut-=F;w.contains(X,ut);)X-=N,ut-=F;for(r.x=l,r.y=u,F=0;F<d.figures.count;F++){var ht=d.figures.s[F],yt=ht.isFilled?X:o,Nt=ht.isFilled?ut:s,Yt=ht.segments;w=ht.startX,N=ht.startY;for(var Qe=w,xn=N,dn=0;dn<Yt.count;dn++){var De=Yt.s[dn],ge=De.type,Xn=De.endX,Vn=De.endY,Ji=!1;switch(ge){case Wr:Qe=Xn,xn=Vn;break;case gr:Ji=zg(w,N,Xn,Vn,yt,Nt,l,u,T);break;case ko:Ji=It.Eo(w,N,De.point1X,De.point1Y,De.point2X,De.point2Y,Xn,Vn,yt,Nt,l,u,.6,T);break;case js:Ji=It.Eo(w,N,w+2/3*(De.point1X-w),N+2/3*(De.point1Y-N),Xn+2/3*(De.point1X-Xn),Vn+2/3*(De.point1Y-Vn),Xn,Vn,yt,Nt,l,u,.6,T);break;case fo:case Zs:ge=De.type===fo?fs(De,ht):_s(De,ht,w,N);var Br=ge.length;if(Br===0){Ji=zg(w,N,De.type===fo?De.centerX:De.endX,De.type===fo?De.centerY:De.endY,yt,Nt,l,u,T);break}for(Vn=null,Xn=0;Xn<Br;Xn++){if(Vn=ge[Xn],Xn===0&&zg(w,N,Vn[0],Vn[1],yt,Nt,l,u,T)){var os=Hg(yt,Nt,T,nt,r);os<nt&&(nt=os,f=!0)}It.Eo(Vn[0],Vn[1],Vn[2],Vn[3],Vn[4],Vn[5],Vn[6],Vn[7],yt,Nt,l,u,.6,T)&&(os=Hg(yt,Nt,T,nt,r),os<nt&&(nt=os,f=!0))}Xn=Vn[6],Vn=Vn[7];break;default:Et("Unknown Segment type: "+ge)}w=Xn,N=Vn,Ji&&(Ji=Hg(yt,Nt,T,nt,r),Ji<nt&&(nt=Ji,f=!0)),De.isClosed&&(Xn=Qe,Vn=xn,zg(w,N,Xn,Vn,yt,Nt,l,u,T)&&(De=Hg(yt,Nt,T,nt,r),De<nt&&(nt=De,f=!0)))}}o=n-t,s=i-e,l=Math.sqrt(o*o+s*s),l!==0&&(o/=l,s/=l),r.x-=o*y,r.y-=s*y,z.free(T)}else Et("Unknown Geometry type: "+d.type);return f?(this.transform.Ga(r),!0):!1};function Hg(t,e,n,i,r){return t=n.x-t,e=n.y-e,e=t*t+e*e,e<i?(r.x=n.x,r.y=n.y,e):i}function zg(t,e,n,i,r,o,s,l,u){if(It.$(t,n)&&It.$(e,i)||It.$(r,s)&&It.$(o,l))return!1;var d=!1,f=(r-s)*(e-i)-(o-l)*(t-n);return f===0?!1:(u.x=((r*l-o*s)*(t-n)-(r-s)*(t*i-e*n))/f,u.y=((r*l-o*s)*(e-i)-(o-l)*(t*i-e*n))/f,(t>n?t-n:n-t)<(e>i?e-i:i-e)?(t=e<i?e:i,e=e<i?i:e,(u.y>t||It.$(u.y,t))&&(u.y<e||It.$(u.y,e))&&(d=!0)):(e=t<n?t:n,t=t<n?n:t,(u.x>e||It.$(u.x,e))&&(u.x<t||It.$(u.x,t))&&(d=!0)),d)}A.fh=function(t,e){if(e===void 0)return t.Re(this.actualBounds);var n=this.ua;n===null&&(this.measure(1/0,1/0),n=this.ua),n=n.bounds;var i=this.strokeWidth/2,r=!1,o=z.alloc();return o.h(n.x-i,n.y-i),t.ca(e.Ga(o))&&(o.h(n.x-i,n.bottom+i),t.ca(e.Ga(o))&&(o.h(n.right+i,n.bottom+i),t.ca(e.Ga(o))&&(o.h(n.right+i,n.y-i),t.ca(e.Ga(o))&&(r=!0)))),z.free(o),r},A.Yc=function(t,e){if(this.fh(t,e)||e===void 0&&(e=this.transform,t.Re(this.actualBounds)))return!0;var n=jn.alloc();n.set(e),n.Vj();var i=t.left,r=t.right,o=t.top;t=t.bottom;var s=z.alloc();if(s.h(i,o),n.Ga(s),this.gh(s,!0)||(s.h(r,o),n.Ga(s),this.gh(s,!0))||(s.h(i,t),n.Ga(s),this.gh(s,!0))||(s.h(r,t),n.Ga(s),this.gh(s,!0)))return z.free(s),!0;var l=z.alloc(),u=z.alloc();return n.set(e),n.bv(this.transform),n.Vj(),l.x=r,l.y=o,l.transform(n),s.x=i,s.y=o,s.transform(n),e=!1,zh(this,s,l,u)?e=!0:(s.x=r,s.y=t,s.transform(n),zh(this,s,l,u)?e=!0:(l.x=i,l.y=t,l.transform(n),zh(this,s,l,u)?e=!0:(s.x=i,s.y=o,s.transform(n),zh(this,s,l,u)&&(e=!0)))),z.free(s),jn.free(n),z.free(l),z.free(u),e};function zh(t,e,n,i){if(!t.rs(e,n,i))return!1;t=e.x,e=e.y;var r=n.x,o=n.y;return n=i.x,i=i.y,t===r?(e<o?(t=e,e=o):t=o,i>=t&&i<=e):(t<r?(i=t,t=r):i=r,n>=i&&n<=t)}A.tx=function(t,e,n){function i(nt,X){for(var ut=nt.length,ht=0;ht<ut;ht+=2)if(X.zd(nt[ht],nt[ht+1])>r)return!0;return!1}if(n&&this.fill!==null&&this.gh(t,!0))return!0;var r=t.Bf(e),o=r;if(1.5<this.strokeWidth&&(r=this.strokeWidth/2+Math.sqrt(r),r*=r),e=this.ua,e===null&&(this.measure(1/0,1/0),e=this.ua,e===null))return!1;if(!n){var s=e.bounds,l=s.x,u=s.y,d=s.x+s.width;if(s=s.y+s.height,_n(t.x,t.y,l,u)<=r&&_n(t.x,t.y,d,u)<=r&&_n(t.x,t.y,l,s)<=r&&_n(t.x,t.y,d,s)<=r)return!0}if(l=e.startX,u=e.startY,d=e.endX,s=e.endY,e.type===Oe.j){if(n=(l-d)*(t.x-d)+(u-s)*(t.y-s),nn(t.x,t.y,l,u,d,s)<=(0<=(d-l)*(t.x-l)+(s-u)*(t.y-u)&&0<=n?r:o))return!0}else{if(e.type===Oe.u)return e=!1,n&&(e=nn(t.x,t.y,l,u,l,s)<=r||nn(t.x,t.y,l,u,d,u)<=r||nn(t.x,t.y,d,u,d,s)<=r||nn(t.x,t.y,l,s,d,s)<=r),e;if(e.type===Oe.F){e=t.x-(l+d)/2,o=t.y-(u+s)/2;var f=Math.abs(d-l)/2,y=Math.abs(s-u)/2;if(f===0||y===0)return nn(t.x,t.y,l,u,d,s)<=r;if(n){if(t=It.$y(f,y,e,o),t*t<=r)return!0}else return!(_n(e,o,-f,0)>=r||_n(e,o,0,-y)>=r||_n(e,o,0,y)>=r||_n(e,o,f,0)>=r)}else if(e.type===Oe.o){if(d=e.bounds,o=d.x,l=d.y,u=d.x+d.width,d=d.y+d.height,t.x>u&&t.x<o&&t.y>d&&t.y<l&&nn(t.x,t.y,o,l,o,d)>r&&nn(t.x,t.y,o,l,u,l)>r&&nn(t.x,t.y,u,d,o,d)>r&&nn(t.x,t.y,u,d,u,l)>r)return!1;if(o=Math.sqrt(r),n){if(this.fill===null?ia(e,t.x,t.y,o):Fo(e,t,o,!0,!1))return!0}else{for(n=e.figures,e=0;e<n.count;e++){if(o=n.s[e],s=o.startX,f=o.startY,t.zd(s,f)>r)return!1;for(l=o.segments.s,u=l.length,d=0;d<u;d++)switch(y=l[d],y.type){case Wr:case gr:if(s=y.endX,f=y.endY,t.zd(s,f)>r)return!1;break;case ko:var T=bn();if(It.Qe(s,f,y.point1X,y.point1Y,y.point2X,y.point2Y,y.endX,y.endY,.8,T),s=i(T,t),En(T),s||(s=y.endX,f=y.endY,t.zd(s,f)>r))return!1;break;case js:if(T=bn(),It.ep(s,f,y.point1X,y.point1Y,y.endX,y.endY,.8,T),s=i(T,t),En(T),s||(s=y.endX,f=y.endY,t.zd(s,f)>r))return!1;break;case fo:case Zs:T=y.type===fo?fs(y,o):_s(y,o,s,f);var w=T.length;if(w===0){if(s=y.type===fo?y.centerX:y.endX,f=y.type===fo?y.centerY:y.endY,t.zd(s,f)>r)return!1;break}y=null;for(var N=bn(),F=0;F<w;F++)if(y=T[F],N.length=0,It.Qe(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],.8,N),i(N,t))return En(N),!1;En(N),y!==null&&(s=y[6],f=y[7]);break;default:Et("Unknown Segment type: "+y.type)}}return!0}}}return!1},A.qc=function(){this.ua=null},A.kq=function(){return this.ig};function Ny(t){var e=t.diagram;e!==null&&e.undoManager.isUndoingRedoing||(t.segmentOrientation=bp,t.toArrow!=="None"?(t.segmentIndex=-1,t.alignmentFocus=Zo):t.fromArrow!=="None"&&(t.segmentIndex=0,t.alignmentFocus=new vn(1-Zo.x,Zo.y)))}ai.makeGeometry=function(t,e,n){if(t.toArrow!=="None")var i=Wu[t.toArrow];else t.fromArrow!=="None"?i=Wu[t.fromArrow]:(i=It.Ze[t.figure],typeof i=="string"&&(i=It.Ze[i]),i===void 0&&Et("Unknown Shape.figure: "+t.figure),i=i(t,e,n),i.Sk=e,i.Rk=n);if(i===null){var r=It.Ze.Rectangle;typeof r=="function"&&(i=r(t,e,n))}return i};function Ay(t){var e=Wu[t];if(e===void 0){var n=t.toLowerCase();if(n==="none")return"None";if(e=Wu[n],e===void 0){var i=null,r;for(r in It.um)if(r.toLowerCase()===n){i=r;break}if(i!==null)return t=Oe.parse(It.um[i],!1),Wu[i]=t,n!==i&&(Wu[n]=i),i}}return typeof e=="string"?e:e instanceof Oe?t:null}Mn.Object.defineProperties(ai.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(t){var e=this.ua,n=this.Rd;if(e!==t){t!==null?this.Rd=this.ua=t.freeze():this.Rd=this.ua=null;var i=this.part;i!==null&&(i.ag=NaN),this.v(),this.g("geometry",e||n,t),Ns(this)&&(t=this.part,t!==null&&qr(this,t,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(t){t=Oe.parse(t);var e=t.normalize();this.geometry=t,this.position=t=z.allocAt(-e.x,-e.y),z.free(t)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(t){var e=(this.l&1048576)!==0;e!==t&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",e,t))}},fill:{get:function(){return this.Ui},set:function(t){var e=this.Ui;e!==t&&(t!==null&&dd(t,"Shape.fill"),t instanceof ur&&t.freeze(),this.Ui=t,this.N(),this.g("fill",e,t))}},stroke:{get:function(){return this.xc},set:function(t){var e=this.xc;e!==t&&(t!==null&&dd(t,"Shape.stroke"),t instanceof ur&&t.freeze(),this.xc=t,this.N(),this.g("stroke",e,t))}},strokeWidth:{get:function(){return this.ig},set:function(t){var e=this.ig;if(e!==t)if(0<=t){this.ig=t,this.v();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeWidth",e,t)}else rn(t,"value >= 0",ai,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(t){var e=this.strokeCap;e!==t&&(typeof t!="string"||t!=="butt"&&t!=="round"&&t!=="square"?rn(t,'"butt", "round", or "square"',ai,"strokeCap"):(Hh(this),this.Na.Hr=t,this.N(),this.g("strokeCap",e,t)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(t){var e=this.strokeJoin;e!==t&&(typeof t!="string"||t!=="miter"&&t!=="bevel"&&t!=="round"?rn(t,'"miter", "bevel", or "round"',ai,"strokeJoin"):(Hh(this),this.Na.Ir=t,this.N(),this.g("strokeJoin",e,t)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(t){var e=this.strokeMiterLimit;if(e!==t&&1<=t){Hh(this),this.Na.Jr=t,this.N();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeMiterLimit",e,t)}}},strokeDashArray:{get:function(){return this.Yg},set:function(t){var e=this.Yg;if(e!==t){if(t!==null){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];0<=o&&isFinite(o)||Et("strokeDashArray:value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(e===null)return;t=null}}this.Yg=t,this.N(),this.g("strokeDashArray",e,t)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(t){var e=this.strokeDashOffset;e!==t&&0<=t&&(Hh(this),this.Na.uj=t,this.N(),this.g("strokeDashOffset",e,t))}},figure:{get:function(){return this.an},set:function(t){var e=this.an;if(e!==t){var n=It.Ze[t];typeof n=="function"?n=t:(n=It.Ze[t.toLowerCase()])||Et("Unknown Shape.figure: "+t),e!==n&&(t=this.part,t!==null&&(t.ag=NaN),this.an=n,this.Rd=null,this.qc(),this.v(),this.g("figure",e,n))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(t){var e=this.toArrow;if(t===!0?t="Standard":t===!1&&(t=""),e!==t){var n=Ay(t);n===null?Et("Unknown Shape.toArrow: "+t):e!==n&&(this.Ua===null&&(this.Ua=new th),this.Ua.V=n,this.Rd=null,this.qc(),this.v(),Ny(this),this.g("toArrow",e,n))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(t){var e=this.fromArrow;if(t===!0?t="Standard":t===!1&&(t=""),e!==t){var n=Ay(t);n===null?Et("Unknown Shape.fromArrow: "+t):e!==n&&(this.Ua===null&&(this.Ua=new th),this.Ua.j=n,this.Rd=null,this.qc(),this.v(),Ny(this),this.g("fromArrow",e,n))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:_o},set:function(t){var e=this.spot1;e.D(t)||(t=t.J(),Hh(this),this.Na.fg=t,this.v(),this.g("spot1",e,t))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:_o},set:function(t){var e=this.spot2;e.D(t)||(t=t.J(),Hh(this),this.Na.gg=t,this.v(),this.g("spot2",e,t))}},parameter1:{get:function(){return this.Un},set:function(t){var e=this.Un;e!==t&&(this.Un=t,this.qc(),this.v(),this.g("parameter1",e,t))}},parameter2:{get:function(){return this.Vn},set:function(t){var e=this.Vn;e!==t&&(this.Vn=t,this.qc(),this.v(),this.g("parameter2",e,t))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(t){var e=this.pathPattern;e!==t&&(Hh(this),this.Na.br=t,this.N(),this.g("pathPattern",e,t))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:ti},set:function(t){var e=this.geometryStretch;e!==t&&(Hh(this),this.Na.jq=t,this.v(),this.g("geometryStretch",e,t))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(t){var e=this.interval;if(t=Math.round(t),e!==t&&t!==0&&isFinite(t)){this.fa===null&&(this.fa=new Yu),this.fa.Tk=t;var n=this.diagram;n!==null&&this.panel===n.grid&&Nu(n),this.v(),n=this.panel,n!==null&&(n.graduatedIntervals=null),this.g("interval",e,t)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(t){var e=this.graduatedStart;e!==t&&(0>t?t=0:1<t&&(t=1),this.fa===null&&(this.fa=new Yu),this.fa.u=t,this.v(),this.g("graduatedStart",e,t))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(t){var e=this.graduatedEnd;e!==t&&(0>t?t=0:1<t&&(t=1),this.fa===null&&(this.fa=new Yu),this.fa.j=t,this.v(),this.g("graduatedEnd",e,t))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(t){var e=this.graduatedSkip;e!==t&&(this.fa===null&&(this.fa=new Yu),this.fa.o=t,this.v(),this.g("graduatedSkip",e,t))}}}),ai.prototype.intersectsRect=ai.prototype.Yc,ai.prototype.containedInRect=ai.prototype.fh,ai.prototype.getNearestIntersectionPoint=ai.prototype.rs,ai.prototype.getDocumentBounds=ai.prototype.mi,ai.prototype.getDocumentPoint=ai.prototype.ga;var Wu=new Ai,D0=new Ai;ai.className="Shape",ai.getFigureGenerators=function(){var t=new Zt,e;for(e in It.Ze)e!==e.toLowerCase()&&t.add(e,It.Ze[e]);return t.freeze(),t},ai.defineFigureGenerator=function(t,e){var n=t.toLowerCase(),i=It.Ze;i[t]=e,i[n]=t},ai.getArrowheadGeometries=function(){var t=new Zt;for(i in It.um)if(Wu[i]===void 0){var e=Oe.parse(It.um[i],!1);Wu[i]=e,e=i.toLowerCase(),e!==i&&(Wu[e]=i)}for(var n in Wu)if(n!==n.toLowerCase()){var i=Wu[n];i instanceof Oe&&t.add(n,i)}return t.freeze(),t},ai.defineArrowheadGeometry=function(t,e){var n=null;typeof e=="string"?n=Oe.parse(e,!1):n=e,e=t.toLowerCase(),e!=="none"&&t!==e||Et("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+t);var i=Wu;i[t]=n,i[e]=t};function P0(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=ti,this.gg=this.fg=_o}P0.prototype.copy=function(){var t=new P0;return t.Hr=this.Hr,t.Ir=this.Ir,t.Jr=this.Jr,t.uj=this.uj,t.br=this.br,t.jq=this.jq,t.fg=this.fg.J(),t.gg=this.gg.J(),t};function zr(t,e){return Rt.call(this),Yg||(Aa=vo?new Bl(null).context:null,Yg=!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 t=="string"?this.text=t:t&&Object.assign(this,t),e&&Object.assign(this,e),this}Yn(zr,Rt),zr.prototype.cloneProtected=function(t){Rt.prototype.cloneProtected.call(this,t),t.ec=this.ec,t.xc=this.xc,t.Ae=this.Ae,t.Gc=this.Gc,t.Cb=this.Cb,t.Lq=this.Lq,t.Gm=this.Gm,this.fa!==null&&(t.fa=this.fa.copy()),this.da!==null&&(t.da=this.da.nc?this.da:this.da.copy()),t.Ih=this.Ih,t.df=this.df,t.Le=this.Le,t.Qc=this.Qc,t.Qb=this.Qb,t.ze=this.ze};function Ru(t){t.da===null?t.da=new j0:t.da.nc&&(t.da=t.da.copy())}A=zr.prototype,A.th=function(){Rt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function Iy(t,e){t.l=e.l|6144,t.pb=e.opacity,t.Ma=e.background,t.areaBackground=e.areaBackground,t.jd=e.desiredSize.J(),t.minSize=e.minSize.J(),t.maxSize=e.maxSize.J(),e.Lb!==null?t.Lb=e.Lb.copy():t.Lb=null,t.Ca=e.scale,t.Kb=e.angle,t.stretch=e.stretch,t.Kg=e.margin.J(),t.Jb=e.alignment.J(),t.sk=e.alignmentFocus.J(),t.segmentFraction=e.segmentFraction,t.segmentOffset=e.segmentOffset.J(),t.segmentOrientation=e.segmentOrientation,e.tb!==null&&(t.tb=e.tb.copy()),t.shadowVisible=e.shadowVisible,t.ec=e.ec,t.xc=e.xc,t.Ae=e.Ae,t.fa!==null&&(t.fa=e.fa.copy()),e.da!==null&&(t.da=e.da.nc?e.da:e.da.copy()),t.Ih=e.Ih}A.qb=function(t){t.classType===zr?this.wrap=t:Rt.prototype.qb.call(this,t)},A.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},A.v=function(){Rt.prototype.v.call(this)},A.hh=function(t,e){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var n=this.naturalBounds,i=this.actualBounds,r=n.width,o=n.height,s=fp(this),l=t.textAlign=this.textAlign,u=e.tn;l==="start"?l=u?"right":"left":l==="end"&&(l=u?"left":"right"),u=this.isUnderline;var d=this.isStrikethrough;yo(this,t,this.xc,!0,!1,n,i),(u||d)&&yo(this,t,this.xc,!1,!1,n,i),i=0,n=!1;var f=this.oe,y=f.dx-(s*f.m21+f.dx);f=f.dy-(s*f.m22+f.dy);var T=e.scale;switch(8>(y*y+f*f)*T*T&&(n=!0),e.ib!==t&&(n=!1),e.ib instanceof $a&&(n=!1),e.Gf("textGreeking")===!1&&(n=!1),e=this.spacingAbove,y=this.spacingBelow,this.flip){case _i:t.translate(r,0),t.scale(-1,1);break;case fi:t.translate(0,o),t.scale(1,-1);break;case yr:t.translate(r,o),t.scale(-1,-1)}if(t.yc(),f=this.Gc,T=(e+s+y)*f,o>T&&(i=this.verticalAlignment,i=i.y*o-i.y*T+i.offsetY),f===1&&this.ze!==null)y=this.Cb,y>r&&(y=r),this.Oj(this.ze,t,0,i+e,r,s,y,n,l,u,d);else if(this.Qc!==null&&this.Qb!==null)for(T=0;T<f;T++){var w=this.Qc[T];w>r&&(w=r),i+=e,this.Oj(this.Qb[T],t,0,i,r,s,w,n,l,u,d),i+=s+y}switch(this.flip){case _i:t.scale(-1,1),t.translate(-r,0);break;case fi:t.scale(1,-1),t.translate(0,-o);break;case yr:t.scale(-1,-1),t.translate(-r,-o)}}},A.Oj=function(t,e,n,i,r,o,s,l,u,d,f){var y=0;if(l)u==="left"?y=0:u==="right"?y=r-s:u==="center"&&(y=(r-s)/2),e.fillRect(n+y,i+.25*o,s,1);else{if(u==="left"?y=0:u==="right"?y=r:u==="center"&&(y=r/2),r=jg!==null?jg(this,o):.75*o,e.fillText(t,n+y,i+r),t=o/20|0,t===0&&(t=1),u==="right"?y-=s:u==="center"&&(y-=s/2),d){l=Gg!==null?Gg(this,o):.8*o,u=n+y,d=i+l,r=n+y+s,l=i+l;var T=t;e.beginPath(),e.lineWidth=T,e.moveTo(u,d),e.lineTo(r,l),e.stroke(),e.Se(),e instanceof $a&&e.ad.classList.add("gojs-td")}f&&(f=i+o-o/2.2|0,t%2!==0&&(f+=.5),i=n+y,o=f,n=n+y+s,s=f,y=t,e.beginPath(),e.lineWidth=y,e.moveTo(i,o),e.lineTo(n,s),e.stroke(),e.Se(),e instanceof $a&&e.ad.classList.add("gojs-td"))}},A.kk=function(t,e,n){if(!Rt.prototype.kk.call(this,t,e,n))return!1;if(yo(this,t,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(this.svg.getElementsByTagName("text").length===0)return!0;for(e=this.svg.getElementsByClassName("gojs-td"),n=0;n<e.length;n++)ly(t,e[n],!1)}else e=this.svg,e.innerHTML=this.text,ly(t,e,!0);return!0},A.nk=function(t){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Rt.prototype.nk.call(this,t)},A.Dv=function(t,e){if(t.nodeName!=="g")t.setAttributeNS(null,"filter",e);else{t=t.getElementsByTagName("text");for(var n=0;n<t.length;n++)t[n].setAttributeNS(null,"filter",e)}},A.Wl=function(t,e,n,i){var r=this.Gc;this.Ih=t,this.l&=-16777217;var o=this.Ae;Aa!==null&&_y!==o&&(_y=Aa.font=o),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var s;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 l=s=0,u=!1;!u;){var d=o.indexOf(`
|
|
|
`,l);d===-1&&(d=o.length,u=!0),l=o.substr(l,d-l),this.formatting===pp&&(l=l.trim()),s=Math.max(s,iu(l)),l=d+1}o=s}else s=o.indexOf(`
|
|
|
`,0),0<=s&&(o=o.substr(0,s)),o=iu(o);o=Math.min(o,t/this.scale)}else o=this.desiredSize.width;if(this.panel!==null&&(o=Math.min(o,this.panel.maxSize.width)),s=Ry(this,o),isNaN(this.desiredSize.height)?s=Math.min(s,e/this.scale):s=this.desiredSize.height,u=s,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Vg&&(e=this.Ae,e=this.overflow===Vg?Ly(e):0,d=this.spacingAbove+this.spacingBelow,d=Math.max(0,fp(this)+d),u=Math.min(this.maxLines-1,Math.max(Math.floor(u/d+.01)-1,0)),!(u+1>=this.Qb.length))){for(this.l|=16777216,d=this.Qb[u],e=Math.max(1,t-e);iu(d)>e&&1<d.length;)d=d.substr(0,d.length-1);d+=gp,e=iu(d),this.Qb[u]=d,this.Qb=this.Qb.slice(0,u+1),this.Qc[u]=e,this.Qc=this.Qc.slice(0,u+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,e),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===My||isNaN(this.desiredSize.width))&&(o=isNaN(t)?this.Cb:Math.min(t,this.Cb)),o=Math.max(n,o),s=Math.max(i,s),rr(this.dc,o,s),this.Ge(0,0,o,s),this.svg!==null&&r!==this.Gc&&(this.Uc=!0)},A.eh=function(t,e,n,i){Js(this,t,e,n,i)};function dp(t,e,n){t.ze===null?(t.ze=e,t.Cb=n):((t.Qb===null||t.Qc===null)&&(t.Qb=[],t.Qc=[],t.Qb.push(t.ze),t.Qc.push(t.Cb)),t.Qb.push(e),t.Qc.push(n),t.Qb.length>t.maxLines&&(t.l|=16777216))}function _0(t,e,n,i){var r=t.formatting===pp;r&&(e=e.trim());var o=0,s=t.Ae,l=t.spacingAbove+t.spacingBelow;l=Math.max(0,fp(t)+l);var u=t.overflow===Vg?Ly(s):0;if(t.Gc>=t.maxLines)i!==null&&i.h(0,l);else if(s=e,t.wrap===F0){t.Le=1;var d=iu(e);if(u===0||d<=n)t.Cb=Math.max(t.Cb,d),dp(t,e,t.Cb),i!==null&&i.h(d,l);else{for(o=ef(t,s),s=s.substr(o.length),e=ef(t,s),d=iu(o+e);0<e.length&&d<=n;)o+=e,s=s.substr(e.length),e=ef(t,s),d=o+e,r&&(d=d.trim()),d=iu(d);for(r&&(e=e.trim()),o+=e,n=Math.max(1,n-u);iu(o)>n&&1<o.length;)o=o.substr(0,o.length-1);t.l|=16777216,o+=gp;var f=iu(o);t.Cb=f,dp(t,o,f),i!==null&&i.h(f,l)}}else{for(u=0,s.length===0&&(u=1,dp(t,s,0));0<s.length;){for(e=ef(t,s),s=s.substr(e.length);iu(e)>n;){var y=1;for(d=iu(e.substr(0,y)),f=0;d<=n;)y++,f=d,d=iu(e.substr(0,y));if(y===1){var T=d;o=Math.max(o,d)}else T=f,o=Math.max(o,f);if(y--,1>y&&(y=1),dp(t,e.substr(0,y),T),u++,e=e.substr(y),t.Gc+u>t.maxLines)break}for(f=ef(t,s),d=iu(e+f);0<f.length&&d<=n;)e+=f,s=s.substr(f.length),f=ef(t,s),d=e+f,r&&(d=d.trim()),d=iu(d);if(r&&(e=e.trim()),e!==""&&(e[e.length-1]==="\xAD"&&(e=e.substring(0,e.length-1)+"\u2010"),f.length===0?(y=d,o=Math.max(o,d)):(y=f=iu(e),o=Math.max(o,f)),dp(t,e,y),u++,t.Gc+u>t.maxLines))break}t.Le=Math.min(t.maxLines,u),t.Cb=Math.max(t.Cb,o),i!==null&&i.h(t.Cb,l*t.Le)}}function ef(t,e){if(t.wrap===Oy)return e.substr(0,1);for(var n=e.length,i=0,r=O1;i<n&&!r.test(e.charAt(i));)i++;for(t.formatting===Dy&&(n=Math.min(n,i+1));i<n&&r.test(e.charAt(i));)i++;return i>=e.length?e:e.substr(0,i)}function iu(t){return Aa===null?8*t.length:Aa.measureText(t).width}function fp(t){if(t.df!==null)return t.df;var e=t.Ae;if(Aa===null){var n=16;return t.df=n}return H0[e]!==void 0&&5e3>Py?n=H0[e]:(n=1.3*Aa.measureText("M").width,H0[e]=n,Py++),t.df=n}function Ly(t){if(Aa===null)return 6;if(Wg[t]!==void 0&&5e3>z0)var e=Wg[t];else e=Aa.measureText(gp).width,Wg[t]=e,z0++;return e}function Ry(t,e){var n=t.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),i=t.spacingAbove+t.spacingBelow;if(i=Math.max(0,fp(t)+i),n.length===0)return t.Cb=0,t.Gc=1,i;if(!t.isMultiline){var r=n.indexOf(`
|
|
|
`,0);0<=r&&(n=n.substr(0,r))}r=0;for(var o=t.Gc=0,s,l=!1;!l;){if(s=n.indexOf(`
|
|
|
`,o),s===-1&&(s=n.length,l=!0),o<=s){if(o=n.substr(o,s-o),t.wrap!==F0){t.Le=0;var u=Je.alloc();_0(t,o,e,u),r+=u.height,Je.free(u),t.Gc+=t.Le}else _0(t,o,e,null),r+=i,t.Gc++;t.Gc===t.maxLines&&(l=!0)}o=s+1}return t.Lq=r}Mn.Object.defineProperties(zr.prototype,{font:{get:function(){return this.Ae},set:function(t){var e=this.Ae;e!==t&&(this.Ae=t,this.df=null,this.v(),this.g("font",e,t))}},text:{get:function(){return this.ec},set:function(t){var e=this.ec;t!=null?t=t.toString():t="",e!==t&&(this.ec=t,this.v(),this.g("text",e,t),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(t){var e=this.textAlign;e===t||t!=="start"&&t!=="end"&&t!=="left"&&t!=="right"&&t!=="center"||(Ru(this),this.da.Or=t,this.N(),this.g("textAlign",e,t))}},flip:{get:function(){return this.da!==null?this.da.Xf:ye},set:function(t){var e=this.flip;e!==t&&(Ru(this),this.da.Xf=t,this.N(),this.g("flip",e,t))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:ml},set:function(t){var e=this.verticalAlignment;e.D(t)||(t=t.J(),Ru(this),this.da.Yr=t,la(this),this.g("verticalAlignment",e,t))}},naturalBounds:{get:function(){if(!this.dc.w()){var t=Je.alloc();_0(this,this.ec,999999,t);var e=t.width;Je.free(t),t=Ry(this,e);var n=this.desiredSize;isNaN(n.width)||(e=n.width),isNaN(n.height)||(t=n.height),rr(this.dc,e,t)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(t){var e=(this.l&2097152)!==0;e!==t&&(this.l^=2097152,this.v(),this.g("isMultiline",e,t))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(t){var e=(this.l&4194304)!==0;e!==t&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",e,t))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(t){var e=(this.l&8388608)!==0;e!==t&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",e,t))}},wrap:{get:function(){return this.da!==null?this.da.$r:B0},set:function(t){var e=this.wrap;e!==t&&(Ru(this),this.da.$r=t,this.v(),this.g("wrap",e,t))}},overflow:{get:function(){return this.da!==null?this.da.$q:U0},set:function(t){var e=this.overflow;e!==t&&(Ru(this),this.da.$q=t,this.v(),this.g("overflow",e,t))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(t){var e=this.xc;e!==t&&(t!==null&&dd(t,"TextBlock.stroke"),t instanceof ur&&t.freeze(),this.xc=t,this.N(),this.g("stroke",e,t))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return fp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(t){var e=(this.l&1048576)!==0;e!==t&&(this.l^=1048576,this.g("editable",e,t))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(t){var e=this.textEditor;e!==t&&(Ru(this),this.da.Qr=t,this.g("textEditor",e,t))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(t){var e=this.errorFunction;e!==t&&(Ru(this),this.da.Hd=t,this.g("errorFunction",e,t))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(t){var e=this.interval;if(t=Math.round(t),e!==t&&t!==0&&isFinite(t)){this.fa===null&&(this.fa=new Yu),this.fa.Tk=t,this.v();var n=this.panel;n!==null&&(n.graduatedIntervals=null),this.g("interval",e,t)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(t){var e=this.graduatedStart;e!==t&&(0>t?t=0:1<t&&(t=1),this.fa===null&&(this.fa=new Yu),this.fa.u=t,this.v(),this.g("graduatedStart",e,t))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(t){var e=this.graduatedEnd;e!==t&&(0>t?t=0:1<t&&(t=1),this.fa===null&&(this.fa=new Yu),this.fa.j=t,this.v(),this.g("graduatedEnd",e,t))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(t){var e=this.graduatedFunction;e!==t&&(this.fa===null&&(this.fa=new Yu),this.fa.F=t,this.v(),this.g("graduatedFunction",e,t))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(t){var e=this.graduatedSkip;e!==t&&(this.fa===null&&(this.fa=new Yu),this.fa.o=t,this.v(),this.g("graduatedSkip",e,t))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(t){var e=this.textValidation;e!==t&&(Ru(this),this.da.vj=t,this.g("textValidation",e,t))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(t){var e=this.textEdited;e!==t&&(Ru(this),this.da.Pr=t,this.g("textEdited",e,t))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(t){var e=this.spacingAbove;e!==t&&(Ru(this),this.da.Dr=t,this.v(),this.g("spacingAbove",e,t))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(t){var e=this.spacingBelow;e!==t&&(Ru(this),this.da.Er=t,this.v(),this.g("spacingBelow",e,t))}},formatting:{get:function(){return this.da!==null?this.da.gq:pp},set:function(t){var e=this.formatting;e!==t&&(Ru(this),this.da.gq=t,this.v(),this.g("formatting",e,t))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(t){var e=this.maxLines;e!==t&&(t=Math.floor(t),0>=t&&rn(t,"> 0",zr,"maxLines"),Ru(this),this.da.Jq=t,this.v(),this.g("maxLines",e,t))}},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(t){var e=this.Gm;e!==t&&(this.Gm=t,this.g("choices",e,t))}}});var jg=null,Gg=null,F0=new xe(zr,"None",0),My=new xe(zr,"WrapFit",1),B0=new xe(zr,"WrapDesiredSize",2),Oy=new xe(zr,"WrapBreakAll",3),U0=new xe(zr,"OverflowClip",0),Vg=new xe(zr,"OverflowEllipsis",1),pp=new xe(zr,"FormatTrim",0),Dy=new xe(zr,"FormatNone",0),O1=/[ \u200b\u00ad]/,H0=new Ai,Py=0,Wg=new Ai,z0=0,gp="...",_y="",Aa=null,Yg=!1;zr.className="TextBlock";function j0(){this.nc=!1,this.Hd=null,this.Xf=ye,this.gq=pp,this.Jq=1/0,this.$q=U0,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ml,this.$r=B0}j0.prototype.copy=function(){var t=new j0;return t.Hd=this.Hd,t.Xf=this.Xf,t.gq=this.gq,t.Jq=this.Jq,t.$q=this.$q,t.Dr=this.Dr,t.Er=this.Er,t.Or=this.Or,t.Pr=this.Pr,t.Qr=this.Qr,t.vj=this.vj,t.Yr=this.Yr,t.$r=this.$r,t},zr.getEllipsis=function(){return gp},zr.setEllipsis=function(t){gp=t,Wg=new Ai,z0=0},zr.getBaseline=function(){return jg},zr.setBaseline=function(t){jg=t},zr.getUnderline=function(){return Gg},zr.setUnderline=function(t){Gg=t},zr.isValidFont=function(t){if(Yg||(Aa=vo?new Bl(null).context:null,Yg=!0),Aa===null)return!0;var e=Aa.font;if(t===e||t==="10px sans-serif")return!0;Aa.font="10px sans-serif",Aa.font=t;var n=Aa.font;if(n!=="10px sans-serif")return Aa.font=e,!0;Aa.font="19px serif";var i=Aa.font;return Aa.font=t,n=Aa.font,Aa.font=e,n!==i},zr.FormatNone=Dy,zr.FormatTrim=pp,zr.None=F0,zr.OverflowClip=U0,zr.OverflowEllipsis=Vg,zr.WrapBreakAll=Oy,zr.WrapDesiredSize=B0,zr.WrapFit=My;function Yu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Yu.prototype.copy=function(){var t=new Yu;return t.Tk=this.Tk,t.u=this.u,t.j=this.j,t.F=this.F,t.o=this.o,t},Yu.className="GradElementSettings";function Ia(t,e){Rt.call(this),this.Eg=null,this.qo="",this.Xg=Ma,this.Nk=Ae,this.Zg=this.Hd=null,this.Mk=ei,this.Xf=ye,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof t=="string"?this.source=t:t&&Object.assign(this,t),e&&Object.assign(this,e)}var nf;Yn(Ia,Rt),Ia.prototype.cloneProtected=function(t){Rt.prototype.cloneProtected.call(this,t),t.qo=this.qo,t.element=this.Eg,t.Xg=this.Xg.J(),t.Nk=this.Nk,t.Xf=this.Xf,t.Hd=this.Hd,t.Zg=this.Zg,t.Mk=this.Mk.J(),t.en=this.en,t.rl=this.rl},Ia.prototype.qb=function(t){t===ye||t===Tn||t===ki?this.imageStretch=t:Rt.prototype.qb.call(this,t)},Ia.prototype.toString=function(){return"Picture("+this.source+")#"+gi(this)};function rf(t){t===void 0&&(t=""),t!==""?nf[t]&&(delete nf[t],Kg--):(nf=new Ai,Kg=0)}function Fy(t,e){e.qy||(e.Fq=function(n){e.sq=!0,e.ln=!1;var i=e.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value;r.N();var o=e.getAttribute("src")||"",s=r.Og.I(o);if(s!==null)for(var l=s.length,u=0;u<l;u++)o=s[u],r.Xn.add(o),o.Uc=!0,r.$b(),e.hn&&(e.eu===void 0&&(e.eu=n),o.Zg!==null&&o.Zg(o,n))}e.Bg.clear()}t.desiredSize.w()||(zo(t,!1),t.v())},e.Yp=function(n){e.ln=n;var i=e.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value,o=e.getAttribute("src")||"",s=r.Og.I(o);if(s!==null){r=s.length,o=bn();for(var l=0;l<r;l++)o.push(s[l]);if(e.hn)for(l=0;l<r;l++)s=o[l],s.Hd!==null&&s.Hd(s,n);En(o)}}e.Bg.clear()}},e.addEventListener("load",e.Fq),e.addEventListener("error",e.Yp),e.qy=!0)}Ia.prototype.hA=function(){if(this.source!==""){rf(this.source);var t=this.source;this.source="",this.source=t}},Ia.prototype.redraw=function(){this.N(),this.Uc=!0},Ia.prototype.hh=function(t,e){var n=this.Eg;if(n!==null){var i=n.getAttribute("src");if(!(n instanceof HTMLImageElement&&(i===null||i==="")||n.ln instanceof Event&&t instanceof Bh)){var r=t instanceof $a;i=this.naturalBounds;var o=0,s=0,l=this.qn,u=l?+n.width:n.naturalWidth;if(l=l?+n.height:n.naturalHeight,u===void 0&&n.videoWidth&&(u=n.videoWidth),l===void 0&&n.videoHeight&&(l=n.videoHeight),u=u||i.width,l=l||i.height,u!==0&&l!==0){var d=u,f=l;this.sourceRect.w()&&(o=this.Xg.x,s=this.Xg.y,u=this.Xg.width,l=this.Xg.height);var y=u,T=l,w=this.Nk,N=this.Mk;switch(w){case ye:if(this.sourceRect.w())break;y>=i.width&&(o=o+N.offsetX+(y*N.x-i.width*N.x)),T>=i.height&&(s=s+N.offsetY+(T*N.y-i.height*N.y)),u=Math.min(i.width,y),l=Math.min(i.height,T);break;case Ae:y=i.width,T=i.height;break;case Tn:case ki:w===Tn?(w=Math.min(i.height/T,i.width/y),y*=w,T*=w):w===ki&&(w=Math.max(i.height/T,i.width/y),y*=w,T*=w,y>=i.width&&(o=(o+N.offsetX+(y*N.x-i.width*N.x)/y)*u),T>=i.height&&(s=(s+N.offsetY+(T*N.y-i.height*N.y)/T)*l),u*=1/(y/i.width),l*=1/(T/i.height),y=i.width,T=i.height)}w=this.Df()*e.scale;var F=y*w*T*w,nt=u*l/F,X=n.__goCache;w=null;var ut=D1;if(!r){if(n.sq&&X!==void 0&&4<F&&nt>ut*ut)for(X.gi===null&&(Uy(X,4,d,f,n),Uy(X,16,d,f,n)),r=X.gi,d=r.length,f=0;f<d&&r[f].ratio*r[f].ratio<nt;f++)w=r[f];if(!e.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{r=new Bl(null).context;try{r.drawImage(this.Eg,0,0)}catch(ht){this.en=!1}try{r.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ht){this.vl=!0}}if(this.vl)return}}switch(r=y<i.width?N.offsetX+(i.width*N.x-y*N.x):0,N=T<i.height?N.offsetY+(i.height*N.y-T*N.y):0,this.flip){case _i:t.translate(Math.min(i.width,y),0),t.scale(-1,1);break;case fi:t.translate(0,Math.min(i.height,T)),t.scale(1,-1);break;case yr:t.translate(Math.min(i.width,y),Math.min(i.height,T)),t.scale(-1,-1)}if(t.yc(),e.Gf("pictureRatioOptimization")&&!e.$i&&X!==void 0&&w!==null&&w.ratio!==1){t.save(),e=w.ratio;try{t.drawImage(w.source,o/e,s/e,Math.min(w.source.width,u/e),Math.min(w.source.height,l/e),r,N,Math.min(i.width,y),Math.min(i.height,T)),t instanceof $a&&(this.bt=[o/e,s/e,Math.min(w.source.width,u/e),Math.min(w.source.height,l/e),r,N,Math.min(i.width,y),Math.min(i.height,T)])}catch(ht){this.en=!1}t.restore()}else try{t.drawImage(n,o,s,u,l,r,N,Math.min(i.width,y),Math.min(i.height,T)),t instanceof $a&&(this.bt=[o,s,u,l,r,N,Math.min(i.width,y),Math.min(i.height,T)])}catch(ht){this.en=!1}switch(this.flip){case _i:t.scale(-1,1),t.translate(-Math.min(i.width,y),0);break;case fi:t.scale(1,-1),t.translate(0,-Math.min(i.height,T));break;case yr:t.scale(-1,-1),t.translate(-Math.min(i.width,y),-Math.min(i.height,T))}}}}},Ia.prototype.Wl=function(t,e,n,i){var r=this.desiredSize,o=Na(this,!0),s=this.Eg,l=this.qn,u=0,d=0;(l||!this.al&&s&&s.complete)&&(this.al=!0),s===null?(isFinite(r.width)||(t=0),isFinite(r.height)||(e=0)):(u=l?+s.width:s.naturalWidth,d=l?+s.height:s.naturalHeight),isFinite(r.width)||o===Ae||o===In?(isFinite(t)||(this.sourceRect.w()?t=this.sourceRect.width:s!==null&&(t=u)),n=0):s!==null&&this.al!==!1&&(t=this.sourceRect.w()?this.sourceRect.width:u),isFinite(r.height)||o===Ae||o===Un?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.height:s!==null&&(e=d)),i=0):s!==null&&this.al!==!1&&(e=this.sourceRect.w()?this.sourceRect.height:d),isFinite(r.width)&&(t=r.width),isFinite(r.height)&&(e=r.height),r=this.maxSize,o=this.minSize,n=Math.max(n||0,o.width),i=Math.max(i||0,o.height),t=Math.min(r.width,t),e=Math.min(r.height,e),t=Math.max(n,t),e=Math.max(i,e),s===null||s.complete||(isFinite(t)||(t=0),isFinite(e)||(e=0)),rr(this.dc,t,e),this.Ge(0,0,t,e)},Ia.prototype.eh=function(t,e,n,i){Js(this,t,e,n,i)},Mn.Object.defineProperties(Ia.prototype,{element:{get:function(){return this.Eg},set:function(t){var e=this.Eg;if(this.Uc=!0,e!==t){this.qn=t instanceof HTMLCanvasElement;var n=t instanceof HTMLImageElement;t===null||n||t instanceof HTMLVideoElement||this.qn||Et("Picture.element must be an instance of Image, Canvas, or Video, not: "+t);var i=this.diagram;i!==null&&Zf(i,this),this.Eg=t,t!==null&&n&&t.Bg===void 0&&(t.Bg=new Ce),i!==null&&n&&Qc(i,this),t!==null&&(this.qn||t.complete===!0?(t.hn&&(t.ln instanceof Event&&this.Hd!==null?this.Hd(this,t.ln):t.sq===!0&&!t.ln&&this.Zg!==null&&t.eu&&this.Zg(this,t.eu)),t.sq=!0,this.desiredSize.w()||(zo(this,!1),this.v())):n&&Fy(this,t)),this.g("element",e,t),this.N()}}},source:{get:function(){return this.qo},set:function(t){var e=this.qo;if(e!==t){this.Uc=!0,this.qo=t;var n=nf;if(vo){var i=null;if(n[t]!==void 0)i=n[t];else if(t!==""){30<Kg&&(rf(),n=nf),i=Nr("img"),i.hn=!0,Fy(this,i);var r=this.rl;r!==null&&(i.crossOrigin=r(this)),i.src=t,n[t]=i,Kg++}this.element=i,i!==null&&i.__goCache===void 0&&(i.__goCache=new By),this.v(),this.N()}this.g("source",e,t)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(t){if(this.rl!==t&&(this.rl=t,this.element!==null)){var e=this.element.getAttribute("src");t===null&&typeof e=="string"?this.element.crossOrigin=null:t!==null&&(this.element.crossOrigin=t(this)),this.element.src=e}}},sourceRect:{get:function(){return this.Xg},set:function(t){var e=this.Xg;e.D(t)||(this.Xg=t=t.J(),this.N(),this.g("sourceRect",e,t))}},imageStretch:{get:function(){return this.Nk},set:function(t){var e=this.Nk;e!==t&&(this.Nk=t,this.N(),this.g("imageStretch",e,t))}},flip:{get:function(){return this.Xf},set:function(t){var e=this.Xf;e!==t&&(this.Xf=t,this.N(),this.g("flip",e,t))}},imageAlignment:{get:function(){return this.Mk},set:function(t){var e=this.Mk;e.D(t)||(this.Mk=t=t.J(),this.N(),this.g("imageAlignment",e,t))}},errorFunction:{get:function(){return this.Hd},set:function(t){var e=this.Hd;e!==t&&(this.Hd=t,this.g("errorFunction",e,t))}},successFunction:{get:function(){return this.Zg},set:function(t){var e=this.Zg;e!==t&&(this.Zg=t,this.g("successFunction",e,t))}},naturalBounds:{get:function(){return this.dc}}}),Ia.prototype.redraw=Ia.prototype.redraw,Ia.prototype.reloadSource=Ia.prototype.hA;var Kg=0,D1=4;Ia.className="Picture",nf=new Ai,Ia.clearCache=rf;function By(){this.gi=null}function Uy(t,e,n,i,r){t.gi===null&&(t.gi=[]);var o=new Bl(null),s=o.context,l=1/e;o.width=n/e,o.height=i/e,o.width!==0&&o.height!==0&&(e=new Hy(o.Oa,e),n=1,0<t.gi.length&&(n=t.gi[t.gi.length-1],r=n.source,n=n.ratio),s.setTransform(l*n,0,0,l*n,0,0),s.yc(),s.drawImage(r,0,0),t.gi.push(e))}By.className="PictureCacheArray";function Hy(t,e){this.source=t,this.ratio=e}Hy.className="PictureCacheInstance";function of(){this.os=new Oe,this.mc=null}of.prototype.reset=function(t){t!==null?(t.ka(),this.os=t,t.figures.clear()):this.os=new Oe,this.mc=null};function sf(t,e,n,i,r,o){t.mc=new To,t.mc.startX=e,t.mc.startY=n,t.mc.isFilled=i,t.mc.isEvenOdd=o||!1,t.os.figures.add(t.mc),r!==void 0&&(t.mc.isShadowed=r)}function P1(t){var e=t.mc.segments.length;0<e&&t.mc.segments.M(e-1).close()}of.prototype.moveTo=function(t,e,n){n===void 0&&(n=!1);var i=new Oi(Wr);i.endX=t,i.endY=e,n&&i.close(),this.mc.segments.add(i)},of.prototype.lineTo=function(t,e,n){n===void 0&&(n=!1);var i=new Oi(gr);i.endX=t,i.endY=e,n&&i.close(),this.mc.segments.add(i)};function Ac(t,e,n,i,r,o,s){var l;l===void 0&&(l=!1);var u=new Oi(ko);u.point1X=e,u.point1Y=n,u.point2X=i,u.point2Y=r,u.endX=o,u.endY=s,l&&u.close(),t.mc.segments.add(u)}function Zg(t,e,n,i,r){var o;o===void 0&&(o=!1);var s=new Oi(js);s.point1X=e,s.point1Y=n,s.endX=i,s.endY=r,o&&s.close(),t.mc.segments.add(s)}of.prototype.arcTo=function(t,e,n,i,r,o,s){o===void 0&&(o=0),s===void 0&&(s=!1);var l=new Oi(fo);l.startAngle=t,l.sweepAngle=e,l.centerX=n,l.centerY=i,l.radiusX=r,l.radiusY=o!==0?o:r,s&&l.close(),this.mc.segments.add(l)};function _1(t,e,n,i,r,o,s,l){var u;u===void 0&&(u=!1),e=new Oi(Zs,s,l,e,n,i,r,o),u&&e.close(),t.mc.segments.add(e)}function zy(t){var e=$g;return e!==null?($g=null,e.reset(t),e):(e=new of,e.reset(t),e)}var $g=null;of.className="StreamGeometryContext";function Ks(t,e){var n=t.toLowerCase(),i=It.Ze;i[t]=e,i[n]=t}Ks("Rectangle",function(t,e,n){t="r"+e+","+n;var i=It.Mf[t];return i!==void 0||(i=new Oe(Oe.u),i.endX=e,i.endY=n,It.Nf<It.vm&&(It.Mf[t]=i,It.Nf++)),i}),Ks("Square",function(t,e,n){t="s"+e+","+n;var i=It.Mf[t];return i!==void 0||(i=new Oe(Oe.u),i.endX=e,i.endY=n,i.defaultStretch=Tn,It.Nf<It.vm&&(It.Mf[t]=i,It.Nf++)),i}),Ks("RoundedRectangle",function(t,e,n){t=t?t.parameter1:NaN,(isNaN(t)||0>t)&&(t=5),t=Math.min(t,e/3),t=Math.min(t,n/3);var i="rr"+e+","+n+","+t,r=It.Mf[i];if(r!==void 0)return r;var o=t*It.wg;return r=new Oe().add(new To(t,0,!0).add(new Oi(gr,e-t,0)).add(new Oi(ko,e,t,e-o,0,e,o)).add(new Oi(gr,e,n-t)).add(new Oi(ko,e-t,n,e,n-o,e-o,n)).add(new Oi(gr,t,n)).add(new Oi(ko,0,n-t,o,n,0,n-o)).add(new Oi(gr,0,t)).add(new Oi(ko,t,0,0,o,o,0).close())),1<o&&(r.spot1=new vn(0,0,o,o),r.spot2=new vn(1,1,-o,-o)),It.Nf<It.vm&&(It.Mf[i]=r,It.Nf++),r}),Ks("Border","RoundedRectangle"),Ks("Ellipse",function(t,e,n){t="e"+e+","+n;var i=It.Mf[t];return i!==void 0||(i=new Oe(Oe.F),i.endX=e,i.endY=n,i.spot1=vl,i.spot2=Ls,It.Nf<It.vm&&(It.Mf[t]=i,It.Nf++)),i}),Ks("Circle",function(t,e,n){t="c"+e+","+n;var i=It.Mf[t];return i!==void 0||(i=new Oe(Oe.F),i.endX=e,i.endY=n,i.spot1=vl,i.spot2=Ls,i.defaultStretch=Tn,It.Nf<It.vm&&(It.Mf[t]=i,It.Nf++)),i}),Ks("TriangleRight",function(t,e,n){return new Oe().add(new To(0,0).add(new Oi(gr,e,.5*n)).add(new Oi(gr,0,n).close())).pm(0,.25,.5,.75)}),Ks("TriangleDown",function(t,e,n){return new Oe().add(new To(0,0).add(new Oi(gr,e,0)).add(new Oi(gr,.5*e,n).close())).pm(.25,0,.75,.5)}),Ks("TriangleLeft",function(t,e,n){return new Oe().add(new To(e,n).add(new Oi(gr,0,.5*n)).add(new Oi(gr,e,0).close())).pm(.5,.25,1,.75)}),Ks("TriangleUp",function(t,e,n){return new Oe().add(new To(e,n).add(new Oi(gr,0,n)).add(new Oi(gr,.5*e,0).close())).pm(.25,.5,.75,1)}),Ks("Triangle","TriangleUp"),Ks("Diamond",function(t,e,n){return new Oe().add(new To(.5*e,0).add(new Oi(gr,0,.5*n)).add(new Oi(gr,.5*e,n)).add(new Oi(gr,e,.5*n).close())).pm(.25,.25,.75,.75)}),Ks("LineH",function(t,e,n){return t=new Oe(Oe.j),t.startX=0,t.startY=n/2,t.endX=e,t.endY=n/2,t}),Ks("LineV",function(t,e,n){return t=new Oe(Oe.j),t.startX=e/2,t.startY=0,t.endX=e/2,t.endY=n,t}),Ks("None","Rectangle"),Ks("BarH","Rectangle"),Ks("BarV","Rectangle"),Ks("MinusLine","LineH"),Ks("PlusLine",function(t,e,n){return new Oe().add(new To(0,n/2,!1).add(new Oi(gr,e,n/2)).add(new Oi(Wr,e/2,0)).add(new Oi(gr,e/2,n)))}),Ks("XLine",function(t,e,n){return new Oe().add(new To(0,n,!1).add(new Oi(gr,e,0)).add(new Oi(Wr,0,0)).add(new Oi(gr,e,n)))}),Ks("LineRight",function(t,e,n){return new Oe().add(new To(.25*e,0,!1).add(new Oi(gr,.75*e,.5*n)).add(new Oi(gr,.25*e,n)))}),Ks("LineDown",function(t,e,n){return new Oe().add(new To(0,.25*n,!1).add(new Oi(gr,.5*e,.75*n)).add(new Oi(gr,e,.25*n)))}),Ks("LineLeft",function(t,e,n){return new Oe().add(new To(.75*e,0,!1).add(new Oi(gr,.25*e,.5*n)).add(new Oi(gr,.75*e,n)))}),Ks("LineUp",function(t,e,n){return new Oe().add(new To(0,.75*n,!1).add(new Oi(gr,.5*e,.25*n)).add(new Oi(gr,e,.75*n)))}),It.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 G0(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Mr,this.ir=null,this.jr="",this.lr=_o,this.Gq="",this.Hq=vi,this.Pq=an,this.Kq=On,this.Up=null,this.Cq=127,this.zr=An,this.yr="gray",this.Vg=4}G0.prototype.copy=function(){var t=new G0;return t.zq=this.zq,t.Kp=this.Kp,t.tr=this.tr,t.vr=this.vr,t.ur=this.ur,t.oq=this.oq,t.fr=this.fr,t.hr=this.hr,t.gr=this.gr.J(),t.ir=this.ir,t.jr=this.jr,t.lr=this.lr.J(),t.Gq=this.Gq,t.Hq=this.Hq.J(),t.Pq=this.Pq.J(),t.Kq=this.Kq.J(),t.Up=this.Up,t.Cq=this.Cq,t.zr=this.zr.J(),t.yr=this.yr,t.Vg=this.Vg,t};function Rn(t,e){t===void 0||t instanceof Yo||typeof t=="string"?Re.call(this,t):(Re.call(this),t&&(e=t)),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 z(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Xt,this.Rh=null,this.ag=NaN,e&&Object.assign(this,e)}Yn(Rn,Re),Rn.prototype.cloneProtected=function(t){Re.prototype.cloneProtected.call(this,t),t.G=this.G&-4097|49152,t.Tf=this.Tf,this.P!==null&&(t.P=this.P.nc?this.P:this.P.copy()),t.Jg=this.Jg,t.Qf=null,t.ec=this.ec,t.ke.assign(this.ke),t.Ao=this.Ao},A=Rn.prototype,A.Af=function(t){Re.prototype.Af.call(this,t),t.oh(),t.Ug=null,t.nf=null,t.Rh=null},A.toString=function(){var t=ve(this.constructor)+"#"+gi(this);return this.data!==null&&(t+="("+li(this.data)+")"),t};function La(t){t.P===null?t.P=new G0:t.P.nc&&(t.P=t.P.copy())}A.th=function(){Re.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},A.gk=function(t,e,n,i,r,o,s){var l=this.diagram;l!==null&&(t===ao&&e==="elements"?r instanceof Re?Uh(r,function(u){mv(l.partManager,u),Rh(l,u)}):Qc(l,r):t===ho&&e==="elements"&&(r instanceof Re?Uh(r,function(u){vv(l.partManager,u,l)}):Zf(l,r)),l.cb(t,e,n,i,r,o,s))},A.La=function(t){if(Re.prototype.La.call(this,t),this.data!==null){for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];r instanceof Re&&Uh(r,function(o){o.data!==null&&o.La()})}for(e=this.adornments;e.next();)e.value.La(t)}},Rn.prototype.updateRelationshipsFromData=function(){var t;this.data!==null&&((t=this.diagram)===null||t===void 0||t.partManager.updateRelationshipsFromData(this))},Rn.prototype.Pj=function(t){var e=this.Qf;return e===null?null:e.I(t)},Rn.prototype.bh=function(t,e){if(e!==null){var n=null,i=this.Qf;if(i!==null&&(n=i.I(t)),n!==e){if(n!==null){var r=n.diagram;r!==null&&r.remove(n)}i===null&&(this.Qf=i=new Zt),e.Tf!==t&&(e.category=t),i.add(t,e),t=this.diagram,t!==null&&(t.add(e),t=e.adornedObject,t!==null&&(t=t.ih(),t!==null&&(e.data=t.data)))}}},Rn.prototype.Jf=function(t){var e=this.Qf;if(e!==null){var n=e.I(t);if(n!==null){var i=n.diagram;i!==null&&i.remove(n)}e.remove(t),e.count===0&&(this.Qf=null)}},Rn.prototype.Ej=function(){var t=this.Qf;if(t!==null){var e=bn();for(t=t.iterator;t.next();)e.push(t.key);t=e.length;for(var n=0;n<t;n++)this.Jf(e[n]);En(e)}},Rn.prototype.updateAdornments=function(){var t=this.diagram;if(t!==null){for(var e=this.adornments;e.next();){var n=e.value;n.v(),n.placeholder&&n.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(e=this.selectionObject,e!==null&&this.actualBounds.w()&&this.isVisible()&&e.Ed()&&e.actualBounds.w())){if(n=this.Pj("Selection"),n===null){if(n=this.selectionAdornmentTemplate,n===null&&(n=this.ph()?t.linkSelectionAdornmentTemplate:this instanceof Jn?t.groupSelectionAdornmentTemplate:t.nodeSelectionAdornmentTemplate),!(n instanceof Vi))break t;Ul(n),n=n.copy(),n!==null&&(this.ph()&&this.selectionObject===this.path&&(n.type=Re.Link),n.adornedObject=e)}if(n!==null){n.type===Re.Link&&n.v(),this.bh("Selection",n);break t}}this.Jf("Selection")}for(F1(this,t),e=this.adornments;e.next();)e.value.La()}},Rn.prototype.Wb=function(){var t=this.diagram;t!==null&&(t.vd=!0,!(this.G&16384)&&(this.G|=16384))};function V0(t){t.G&16384&&(t.updateAdornments(),t.G&=-16385)}function F1(t,e){e.toolManager.mouseDownTools.each(function(n){n.isEnabled&&n.updateAdornments(t)}),e.toolManager.updateAdornments(t)}function Xg(t){if(eh(t)===!1){Y0(t,!0),t.Uk();var e=t.diagram;e!==null&&(e.De.add(t),e.$b())}}function jy(t){if(t.G|=2097152,eh(t)!==!1){var e=t.position,n=t.location;n.w()&&e.w()||Wy(t,e,n),n=t.Ib;var i=Xt.alloc().assign(n);n.ka(),n.x=e.x,n.y=e.y,n.freeze(),t.Xl(i,n),Xt.free(i),Y0(t,!1)}}Rn.prototype.Ge=function(t,e,n,i){var r=this.uc;r.h(t,e,n,i),this.Lb===null&&(this.Lb=new jn);var o=this.Lb;o.reset(),this.no(o,t,e,n,i),this.Lb=o,o.ws()||o.pp(r)},Rn.prototype.no=function(t,e,n,i,r){if(this.Ca!==1&&t.scale(this.Ca),this.Kb!==0){var o=ei;this.locationSpot.sb()&&(o=this.locationSpot);var s=z.alloc();if(this.locationObject!==this)for(e=this.locationObject,n=e.naturalBounds,s.yi(n.x,n.y,n.width,n.height,o),e.Lb!==null&&e.Lb.Ga(s),s.offset(-e.measuredBounds.x,-e.measuredBounds.y),o=e.panel;o!==null&&o!==this;)o.Lb!==null&&o.Lb.Ga(s),s.offset(-o.measuredBounds.x,-o.measuredBounds.y),o=o.panel;else s.yi(e,n,i,r,o);t.rotate(this.Kb,s.x,s.y),z.free(s)}},Rn.prototype.move=function(t,e){e===!0?this.location=t:this.position=t},Rn.prototype.moveTo=function(t,e,n){t=z.allocAt(t,e),this.move(t,n),z.free(t)},Rn.prototype.isVisible=function(){if(!this.visible)return!1;var t=this.layer;if(t!==null){if(!t.visible)return!1;if(t=t.diagram,t!==null&&t.animationManager.fv(this))return!0}return t=this.containingGroup,!!(t===null||t.isSubGraphExpanded&&t.isVisible())},Rn.prototype.Zb=function(t){var e=this.diagram;t?(this.C(4),this.Wb(),e!==null&&e.De.add(this)):(this.C(8),this.Ej()),this.oh(),e!==null&&(e.Ya(),e.N())},Rn.prototype.fb=function(t){if(this.name===t)return this;var e=this.Rh;if(e===null&&(this.Rh=e=new Zt),e.I(t)!==null)return e.I(t);var n=Re.prototype.fb.call(this,t);return n!==null?(e.set(t,n),n):(e.set(t,null),null)};function Ic(t,e,n,i){i===void 0&&(i=new z),n=n.Mc()?ei:n;var r=e.naturalBounds;if(i.h(r.width*n.x+n.offsetX,r.height*n.y+n.offsetY),e===null||e===t)return i;for(e.transform.Ga(i),e=e.panel;e!==null&&e!==t;)e.transform.Ga(i),e=e.panel;return t.Lb!==null&&t.Lb.Ga(i),i.offset(-t.uc.x,-t.uc.y),i}Rn.prototype.mi=function(t){return t===void 0&&(t=new Xt),t.assign(this.actualBounds)},Rn.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Gy(t){var e=z.alloc(),n=t.locationObject,i=n.naturalBounds,r=n instanceof ai?n.strokeWidth:0;if(e.yi(0,0,i.width+r,i.height+r,t.locationSpot),n!==t)for(e.offset(-r/2,-r/2),n.transform.Ga(e),n=n.panel;n!==null&&n!==t;)n.transform.Ga(e),n=n.panel;return t.Lb!==null&&t.Lb.Ga(e),e.offset(-t.uc.x,-t.uc.y),e}function jh(t,e){var n=t.py;isNaN(t.ag)&&(t.ag=by(t));var i=t.ag,r=2*i;if(!t.isShadowed)return n.h(e.x-1-i,e.y-1-i,e.width+2+r,e.height+2+r),n;i=e.x,r=e.y;var o=e.width;e=e.height;var s=t.shadowBlur;return t=t.shadowOffset,o+=s,e+=s,i-=s/2,r-=s/2,0<t.x?o+=t.x:(i+=t.x,o-=t.x),0<t.y?e+=t.y:(r+=t.y,e-=t.y),n.h(i-1,r-1,o+2,e+2),n}Rn.prototype.arrange=function(){if(ua(this)===!1)jy(this);else{ju(this,!1);var t=this.Ib,e=Xt.alloc();e.assign(t);var n=nh(this);this.eh(0,0,this.uc.width,this.uc.height);var i=this.position;Wy(this,i,this.location),t.ka(),t.x=i.x,t.y=i.y,t.freeze(),this.Xl(e,t),e.D(t)?this.Fd(n):!this.Zc()||It.B(e.width,t.width)&&It.B(e.height,t.height)||0<=this.vw&&this.C(16),Xt.free(e),Y0(this,!1)}},A=Rn.prototype,A.Xl=function(t,e){var n=this.diagram;if(n!==null){var i=!1;if(n.Zi===!1&&t.w()){var r=Xt.alloc();r.assign(n.documentBounds),r.Fv(n.padding),t.x>r.x&&t.y>r.y&&t.right<r.right&&t.bottom<r.bottom&&e.x>r.x&&e.y>r.y&&e.right<r.right&&e.bottom<r.bottom&&(i=!0),Xt.free(r)}!(this.G&65536)&&t.D(e)||Zy(this,i,n),n.N(),!t.w()&&!e.w()||Mi(t,e)||(this instanceof tn&&!n.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},A.zv=function(t,e,n){if(this.ph()||!t.w())return!1;var i=this.diagram;return i!==null&&Vy(this,i,t,e,n),this.pa=t,this.G&=-2097153,!this.ke.w()||i!==null&&!i.animationManager.isTicking&&i.undoManager.isUndoingRedoing||(i=this.ke,this.ke=new z(i.x+(t.x-e),i.y+(t.y-n)),this.g("location",i,this.ke.copy())),eh(this)===!1&&ua(this)===!1&&(Xg(this),jy(this)),!0};function Vy(t,e,n,i,r){e===null||t instanceof Vi||(e=e.animationManager,e.zb&&Dl(e,t,new z(i,r),n))}A.mm=function(t,e,n){var i=this.ke,r=this.pa;if(n){if(i.x===t&&i.y===e)return;eh(this)||ua(this)?r.h(NaN,NaN):r.h(r.x+t-i.x,r.y+e-i.y),i.h(t,e)}else{if(r.x===t&&r.y===e)return;i.h(i.x+t-r.x,i.y+e-r.y),r.h(t,e)}Xg(this)},A.Av=function(){this.G&=-2097153,Xg(this)};function Wy(t,e,n){var i=Gy(t),r=t.diagram,o=n.w(),s=e.w();o&&s?t.G&2097152?Yy(t,e,n,r,i):Ky(t,e,n,r,i):o?Yy(t,e,n,r,i):s&&Ky(t,e,n,r,i),t.G|=2097152,z.free(i),t.Uk()}function Yy(t,e,n,i,r){var o=e.x,s=e.y;e.h(n.x-r.x,n.y-r.y),i!==null&&(n=i.animationManager,(i=n.defaultAnimation.isAnimating)||!n.zb||t instanceof Vi||Dl(n,t,new z(o,s),e),i||e.x===o&&e.y===s||t.g("position",new z(o,s),e.copy()))}function Ky(t,e,n,i,r){var o=n.copy();n.h(e.x+r.x,e.y+r.y),n.D(o)||i===null||t.g("location",o,n.copy())}function Zy(t,e,n){K0(t,!1),t instanceof tn&&Sc(n,t),t.layer.isTemporary||e||n.Ya(),e=t.Ib;var i=n.viewportBounds;i.w()?nh(t)?(ee(e,i)||t.Fd(!1),t.updateAdornments()):t.isVisible()&&e.Yc(i)?(t.Fd(!0),t.updateAdornments()):t.Wb():n.vd=!0}A.si=function(){return!0},A.Zc=function(){return!0},A.ph=function(){return!1},A.Dd=function(){return!0};function W0(t,e,n,i){e.constructor===t.constructor||Qy||(Qy=!0,cn('Should not change the class of the Part when changing category from "'+n+'" to "'+i+'"'),cn(" Old class: "+ve(t.constructor)+", new class: "+ve(e.constructor)+", part: "+t.toString())),t.Ej();var r=t.data;n=t.layerName;var o=t.isSelected,s=t.isHighlighted,l=!0,u=!0,d=!1;t instanceof tn&&(l=t.isTreeLeaf,u=t.isTreeExpanded,d=t.wasTreeExpanded),e.Af(t),e.cloneProtected(t),t.Tf=i,t.svg!==null&&(t.svg.remove(),t.svg=null,t.Uc=!0),t.v(),t.N(),e=t.diagram,i=!0,e!==null&&(i=e.skipsUndoManager,e.skipsUndoManager=!0),t.ub=r,t.G=o?t.G|4096:t.G&-4097,t.G=s?t.G|524288:t.G&-524289,t instanceof tn&&(t.U=l?t.U|4:t.U&-5,t.U=u?t.U|1:t.U&-2,t.U=d?t.U|2:t.U&-3),r!==null&&t.La(),r=t.layerName,r!==n&&(t.Jg=n,t.layerName=r),e!==null&&(e.skipsUndoManager=i),t.Zc()&&t.C(64)}Rn.prototype.canCopy=function(){if(!this.copyable)return!1;var t=this.layer;return t===null?!0:t.allowCopy?(t=t.diagram,t===null?!0:!!t.allowCopy):!1},Rn.prototype.canDelete=function(){if(!this.deletable)return!1;var t=this.layer;return t===null?!0:t.allowDelete?(t=t.diagram,t===null?!0:!!t.allowDelete):!1},Rn.prototype.canEdit=function(){if(!this.textEditable)return!1;var t=this.layer;return t===null?!0:t.allowTextEdit?(t=t.diagram,t===null?!0:!!t.allowTextEdit):!1},Rn.prototype.canGroup=function(){if(!this.groupable)return!1;var t=this.layer;return t===null?!0:t.allowGroup?(t=t.diagram,t===null?!0:!!t.allowGroup):!1},Rn.prototype.canMove=function(){if(!this.movable)return!1;var t=this.layer;return t===null?!0:t.allowMove?(t=t.diagram,t===null?!0:!!t.allowMove):!1},Rn.prototype.canReshape=function(){if(!this.reshapable)return!1;var t=this.layer;return t===null?!0:t.allowReshape?(t=t.diagram,t===null?!0:!!t.allowReshape):!1},Rn.prototype.canResize=function(){if(!this.resizable)return!1;var t=this.layer;return t===null?!0:t.allowResize?(t=t.diagram,t===null?!0:!!t.allowResize):!1},Rn.prototype.canRotate=function(){if(!this.rotatable)return!1;var t=this.layer;return t===null?!0:t.allowRotate?(t=t.diagram,t===null?!0:!!t.allowRotate):!1},Rn.prototype.canSelect=function(){if(!this.selectable)return!1;var t=this.layer;return t===null?!0:t.allowSelect?(t=t.diagram,t===null?!0:!!t.allowSelect):!1};function eh(t){return(t.G&32768)!==0}function Y0(t,e){t.G=e?t.G|32768:t.G&-32769}function K0(t,e){t.G=e?t.G|65536:t.G&-65537}function nh(t){return(t.G&131072)!==0}A=Rn.prototype,A.Fd=function(t){this.G=t?this.G|131072:this.G&-131073};function Qg(t,e){t.G=e?t.G|1048576:t.G&-1048577}A.oh=function(){var t=this.containingGroup;t!==null&&(t.v(),t.placeholder!==null&&t.placeholder.v(),t.Bd())},A.N=function(){var t=this.diagram;t!==null&&!ua(this)&&!eh(this)&&this.isVisible()&&this.Ib.w()&&t.N(jh(this,this.Ib))},A.v=function(){Re.prototype.v.call(this);var t=this.diagram;t!==null&&(t.De.add(this),this instanceof tn&&this.labeledLink!==null&&la(this.labeledLink),t.$b(!0))},A.Vo=function(t){t||(t=this.Ah,t!==null&&q0(t,this))},A.Wo=function(t){t||(t=this.Ah,t!==null&&tv(t,this))},A.Lj=function(){var t=this.data;if(t!==null){var e=this.diagram;e!==null&&(e=e.model,e!==null&&e.cm(t))}},A.oz=function(){return Z0(this,this)};function Z0(t,e){var n=e.containingGroup;return n!==null?1+Z0(t,n):e instanceof tn&&(e=e.labeledLink,e!==null)?Z0(t,e):0}A.sz=function(){return $y(this,this)};function $y(t,e){var n=e.containingGroup;return n!==null||e instanceof tn&&(n=e.labeledLink,n!==null)?$y(t,n):e}A.Td=function(t){return t instanceof Jn?$0(this,this,t):!1};function $0(t,e,n){if(e===n||n===null)return!1;var i=e.containingGroup;return i===null||i!==n&&!$0(t,i,n)?e instanceof tn&&(e=e.labeledLink,e!==null)?$0(t,e,n):!1:!0}A.px=function(t){if(t===null)return null;if(this===t)return this.containingGroup;for(var e=this;e!==null;){if(e instanceof Jn&&Qg(e,!0),e instanceof tn){var n=e.labeledLink;n!==null&&(e=n)}e=e.containingGroup}for(n=null,e=t;e!==null;){if(e.G&1048576){n=e;break}e instanceof tn&&(t=e.labeledLink,t!==null&&(e=t)),e=e.containingGroup}for(e=this;e!==null;)e instanceof Jn&&Qg(e,!1),e instanceof tn&&(t=e.labeledLink,t!==null&&(e=t)),e=e.containingGroup;return n},Rn.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var t=this.layer;return!(t!==null&&t.isTemporary||this instanceof tn&&this.isLinkLabel)},Rn.prototype.C=function(t){if(t===void 0&&(t=16777215),this.isLayoutPositioned&&t&this.layoutConditions){var e=this.layer;e!==null&&e.isTemporary||this instanceof tn&&this.isLinkLabel?e=!1:(e=this.diagram,e=!(e!==null&&e.undoManager.isUndoingRedoing))}else e=!1;if(e)if(e=this.Ah,e!==null){var n=e.layout;n!==null?n.C():e.C(t)}else t=this.diagram,t!==null&&(t=t.layout,t!==null&&t.C())};function Xy(t){return t.isVisible()?(t=t.layer,!(t!==null&&t.isTemporary)):!1}function ih(t,e,n,i,r,o){if(o===void 0&&(o=null),!(t.contains(e)||o!==null&&!o(e)||e instanceof Vi)){if(t.add(e),e instanceof tn){if(n&&e instanceof Jn)for(var s=e.memberParts;s.next();)ih(t,s.value,n,i,r,o);if(r!==!1)for(s=e.linksConnected;s.next();){var l=s.value;if(!t.contains(l)){var u=l.fromNode,d=l.toNode;u=u===null||t.contains(u),d=d===null||t.contains(d),(r?u&&d:u||d)&&ih(t,l,n,i,r,o)}}if(1<i)for(e=e.Ou();e.next();)ih(t,e.value,n,i-1,r,o)}else if(e instanceof Pe)for(e=e.labelNodes;e.next();)ih(t,e.value,n,i,r,o)}}Mn.Object.defineProperties(Rn.prototype,{key:{get:function(){var t=this.diagram;if(t!==null)return t.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?sr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var t=this.Ig;return t==null?null:t.diagram}},layerName:{get:function(){return this.Jg},set:function(t){var e=this.Jg;if(e!==t){var n=this.diagram;if((n===null||n.Qj(t)!==null&&!n.partManager.addsToTemporaryLayer)&&(this.Jg=t,n!==null&&n.Ya(),this.g("layerName",e,t),e=this.layer,e!==null&&e.name!==t&&(n=e.diagram,n!==null&&(t=n.Qj(t),t!==null&&t!==e)))){var i=e.pc(-1,this,!0);if(0<=i&&n.cb(ho,"parts",e,this,null,i,!0),i=t.oi(99999999,this,!0),e.visible!==t.visible&&this.Zb(t.visible),0<=i&&n.cb(ao,"parts",t,null,this,!0,i),i=this.layerChanged,i!==null){var r=n.aa;n.aa=!0,i(this,e,t),n.aa=r}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(t){var e=this.layerChanged;e!==t&&(La(this),this.P.zq=t,this.g("layerChanged",e,t))}},zOrder:{get:function(){return this.Ao},set:function(t){var e=this.Ao;if(e!==t){this.Ao=t;var n=this.layer;n!==null&&Od(n,-1,this),this.g("zOrder",e,t),t=this.diagram,t!==null&&t.N()}}},locationObject:{get:function(){if(this.nf===null){var t=this.locationObjectName;t!==""?(t=this.fb(t),t!==null?this.nf=t:this.nf=this):this instanceof Vi?this.type!==Re.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:an},set:function(t){var e=this.minLocation;e.D(t)||(t=t.J(),La(this),this.P.Pq=t,this.g("minLocation",e,t))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:On},set:function(t){var e=this.maxLocation;e.D(t)||(t=t.J(),La(this),this.P.Kq=t,this.g("maxLocation",e,t))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(t){var e=this.locationObjectName;e!==t&&(La(this),this.P.Gq=t,this.nf=null,this.v(),this.g("locationObjectName",e,t))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:vi},set:function(t){var e=this.locationSpot;e.D(t)||(t=t.J(),La(this),this.P.Hq=t,this.v(),this.g("locationSpot",e,t))}},location:{get:function(){return this.ke},set:function(t){var e=t.x,n=t.y,i=this.ke;if(!(i.x===e||isNaN(i.x)&&isNaN(e))||!(i.y===n||isNaN(i.y)&&isNaN(n))){if(t=t.copy(),e=t,this.ph())e=!1;else{if(this.ke=e,this.G|=2097152,ua(this)===!1&&(Xg(this),n=this.pa,n.w())){var r=this.diagram;if(r===null||r.animationManager.isTicking||!r.undoManager.isUndoingRedoing){var o=n.copy();n.h(n.x+(e.x-i.x),n.y+(e.y-i.y)),Vy(this,r,n,o.x,o.y),this.g("position",o,n.copy())}}e=!0}e&&this.g("location",i,t.copy())}}},category:{get:function(){return this.Tf},set:function(t){var e=this.Tf;if(e!==t){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var n=this.diagram,i=this.data,r=null;if(n!==null&&i!==null&&!(this instanceof Vi)){var o=n.model.undoManager;o.isEnabled&&!o.isUndoingRedoing&&(r=this.clone(),r.O.addAll(this.O))}this.Tf=t,this.g("category",e,t),n===null||i===null||this instanceof Vi?this instanceof Vi&&(r=this.adornedPart,r!==null&&(t=r.Qf,t!==null&&t.remove(e),r.bh(this.category,this))):(o=n.model,o.undoManager.isUndoingRedoing||(this.ph()?(n.partManager.setLinkCategoryForData(i,t),n=n.partManager.findLinkTemplateForCategory(t),n!==null&&(Ul(n),n=n.copy(),n!==null&&W0(this,n,e,t))):(o!==null&&o.jm(i,t),n=Sx(n.partManager,i,t),n!==null&&(Ul(n),n=n.copy(),n===null||n instanceof Pe||(i=this.location.copy(),W0(this,n,e,t),this.location.w()||(this.location=i)))),r!==null&&(e=this.clone(),e.O.addAll(this.O),this.g("self",r,e))))}}},self:{get:function(){return this},set:function(t){W0(this,t,this.category,t.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(t){var e=(this.G&1)!==0;e!==t&&(this.G^=1,this.g("copyable",e,t))}},deletable:{get:function(){return(this.G&2)!==0},set:function(t){var e=(this.G&2)!==0;e!==t&&(this.G^=2,this.g("deletable",e,t))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(t){var e=(this.G&4)!==0;e!==t&&(this.G^=4,this.g("textEditable",e,t),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(t){var e=(this.G&8)!==0;e!==t&&(this.G^=8,this.g("groupable",e,t))}},movable:{get:function(){return(this.G&16)!==0},set:function(t){var e=(this.G&16)!==0;e!==t&&(this.G^=16,this.g("movable",e,t))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(t){var e=(this.G&32)!==0;e!==t&&(this.G^=32,this.g("selectionAdorned",e,t),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(t){var e=(this.G&64)!==0;if(e!==t){this.G^=64;var n=this.diagram;n!==null&&n.Ya(),this.g("isInDocumentBounds",e,t)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(t){var e=(this.G&128)!==0;e!==t&&(this.G^=128,this.g("isLayoutPositioned",e,t),this.C(t?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(t){var e=(this.G&256)!==0;e!==t&&(this.G^=256,this.g("selectable",e,t),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(t){var e=(this.G&512)!==0;e!==t&&(this.G^=512,this.g("reshapable",e,t),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(t){var e=(this.G&1024)!==0;e!==t&&(this.G^=1024,this.g("resizable",e,t),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(t){var e=(this.G&2048)!==0;e!==t&&(this.G^=2048,this.g("rotatable",e,t),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(t){var e=(this.G&4096)!==0;if(e!==t){var n=this.diagram;if(!t||this.canSelect()&&!(n!==null&&n.selection.count>=n.maxSelectionCount)){this.G^=4096;var i=!1;if(n!==null){i=n.skipsUndoManager,n.skipsUndoManager=!0;var r=n.selection;r.ka(),t?r.add(this):r.remove(this),r.freeze()}this.g("isSelected",e,t),this.Wb(),t=this.selectionChanged,t!==null&&t(this),n!==null&&(n.$b(),n.skipsUndoManager=i)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(t){var e=(this.G&524288)!==0;if(e!==t){this.G^=524288;var n=this.diagram;n!==null&&(n=n.highlighteds,n.ka(),t?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",e,t),this.N(),t=this.highlightedChanged,t!==null&&t(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(t){var e=(this.G&8192)!==0;e!==t&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",e,t),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(t){var e=(this.G&262144)!==0;e!==t&&(this.G^=262144,this.g("isAnimated",e,t))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(t){var e=this.highlightedChanged;e!==t&&(La(this),this.P.oq=t,this.g("highlightedChanged",e,t))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(t){var e=this.selectionObjectName;e!==t&&(La(this),this.P.vr=t,this.Ug=null,this.g("selectionObjectName",e,t))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(t){var e=this.selectionAdornmentTemplate;e!==t&&(La(this),this.P.tr=t,this.g("selectionAdornmentTemplate",e,t))}},selectionObject:{get:function(){if(this.Ug===null){var t=this.selectionObjectName;t!==null&&t!==""?(t=this.fb(t),t!==null?this.Ug=t:this.Ug=this):this instanceof Pe?(t=this.path,t!==null?this.Ug=t:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(t){var e=this.selectionChanged;e!==t&&(La(this),this.P.ur=t,this.g("selectionChanged",e,t))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(t){var e=this.resizeAdornmentTemplate;e!==t&&(La(this),this.P.fr=t,this.g("resizeAdornmentTemplate",e,t))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(t){var e=this.resizeObjectName;e!==t&&(La(this),this.P.hr=t,this.g("resizeObjectName",e,t))}},resizeObject:{get:function(){var t=this.resizeObjectName;return t!==""&&(t=this.fb(t),t!==null)?t:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Mr},set:function(t){var e=this.resizeCellSize;e.D(t)||(t=t.J(),La(this),this.P.gr=t,this.g("resizeCellSize",e,t))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(t){var e=this.rotateAdornmentTemplate;e!==t&&(La(this),this.P.ir=t,this.g("rotateAdornmentTemplate",e,t))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(t){var e=this.rotateObjectName;e!==t&&(La(this),this.P.jr=t,this.g("rotateObjectName",e,t))}},rotateObject:{get:function(){var t=this.rotateObjectName;return t!==""&&(t=this.fb(t),t!==null)?t:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:_o},set:function(t){var e=this.rotationSpot;e.D(t)||(t=t.J(),La(this),this.P.lr=t,this.g("rotationSpot",e,t))}},text:{get:function(){return this.ec},set:function(t){var e=this.ec;e!==t&&(this.ec=t,this.g("text",e,t))}},containingGroup:{get:function(){return this.Ah},set:function(t){if(this.Zc()){var e=this.Ah;if(e!==t){t===null||this!==t&&!t.Td(this)||(this===t&&Et("Cannot make a Group a member of itself: "+this.toString()),Et("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+t.toString())),this.C(2);var n=this.diagram;if(e!==null?tv(e,this):this instanceof Jn&&n!==null&&n.ai.remove(this),this.Ah=t,t!==null?q0(t,this):this instanceof Jn&&n!==null&&n.ai.add(this),this.C(1),n!==null&&n.aa){var i=this.data,r=n.model;if(i!==null&&r.Xj()){var o=r.wa(t!==null?t.data:null);r.mp(i,o)}}if(i=this.containingGroupChanged,i!==null&&(r=!0,n!==null&&(r=n.aa,n.aa=!0),i(this,e,t),n!==null&&(n.aa=r)),this instanceof Jn){for(n=new Ce,ih(n,this,!0,0,!0),n=n.iterator;n.next();)if(i=n.value,i instanceof tn)for(i=i.linksConnected;i.next();)af(i.value)}if(this instanceof tn){for(n=this.linksConnected;n.next();)af(n.value);n=this.labeledLink,n!==null&&af(n)}this.g("containingGroup",e,t),t!==null&&(e=t.layer,e!==null&&Od(e,-1,t))}}else Et("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(t){var e=this.containingGroupChanged;e!==t&&(La(this),this.P.Kp=t,this.g("containingGroupChanged",e,t))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof tn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(t){var e=this.layoutConditions;e!==t&&(La(this),this.P.Cq=t,this.g("layoutConditions",e,t))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(t){var e=this.dragComputation;e!==t&&(La(this),this.P.Up=t,this.g("dragComputation",e,t))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:An},set:function(t){var e=this.shadowOffset;e.D(t)||(t=t.J(),La(this),this.P.zr=t,this.N(),this.g("shadowOffset",e,t))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(t){var e=this.shadowColor;e!==t&&(La(this),this.P.yr=t,this.N(),this.g("shadowColor",e,t))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(t){var e=this.shadowBlur;e!==t&&(La(this),this.P.Vg=t,this.N(),this.g("shadowBlur",e,t))}}}),Rn.prototype.invalidateLayout=Rn.prototype.C,Rn.prototype.findCommonContainingGroup=Rn.prototype.px,Rn.prototype.isMemberOf=Rn.prototype.Td,Rn.prototype.findTopLevelPart=Rn.prototype.sz,Rn.prototype.findSubGraphLevel=Rn.prototype.oz,Rn.prototype.ensureBounds=Rn.prototype.Va,Rn.prototype.getDocumentBounds=Rn.prototype.mi,Rn.prototype.findObject=Rn.prototype.fb,Rn.prototype.moveTo=Rn.prototype.moveTo,Rn.prototype.invalidateAdornments=Rn.prototype.Wb,Rn.prototype.clearAdornments=Rn.prototype.Ej,Rn.prototype.removeAdornment=Rn.prototype.Jf,Rn.prototype.addAdornment=Rn.prototype.bh,Rn.prototype.findAdornment=Rn.prototype.Pj,Rn.prototype.updateTargetBindings=Rn.prototype.La;var Qy=!1;Rn.className="Part",Rn.LayoutNone=0,Rn.LayoutAdded=1,Rn.LayoutRemoved=2,Rn.LayoutShown=4,Rn.LayoutHidden=8,Rn.LayoutNodeSized=16,Rn.LayoutGroupLayout=32,Rn.LayoutNodeReplaced=64,Rn.LayoutStandard=127,Rn.LayoutAll=16777215;function Vi(t,e){t===void 0||t instanceof Yo||typeof t=="string"?Rn.call(this,t):(Rn.call(this),t&&(e=t)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,e&&Object.assign(this,e)}Yn(Vi,Rn),Vi.prototype.toString=function(){var t=this.adornedPart;return"Adornment("+this.category+")"+(t!==null?t.toString():"")},Vi.prototype.updateRelationshipsFromData=function(){},Vi.prototype.Ul=function(t){var e=this.adornedObject,n=e==null?void 0:e.part;if(n instanceof Pe&&e instanceof ai){e=n.path,n.Ul(t),t=e.geometry,n=this.O.s,e=n.length;for(var i=0;i<e;i++){var r=n[i];r.isPanelMain&&r instanceof ai&&(r.ua=t)}}},Vi.prototype.si=function(){var t=this.ue;return t===null?!0:(t=t.part,t===null||!ua(t))},Vi.prototype.Zc=function(){return!1},Vi.prototype.gk=function(t,e,n,i,r,o,s){if(t===ao&&e==="elements"){if(r instanceof ha)this.$a===null&&(this.$a=r);else if(r instanceof Re){var l=r.Nl(function(u){return u instanceof ha});l instanceof ha&&this.$a===null&&(this.$a=l)}}else t===ho&&e==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof Re&&this.$a.rg(i)&&(this.$a=null));Rn.prototype.gk.call(this,t,e,n,i,r,o,s)},Vi.prototype.updateAdornments=function(){},Vi.prototype.Lj=function(){},Mn.Object.defineProperties(Vi.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(t){var e=this.adornedPart,n=null;t!==null&&(n=t.part),e===null||t!==null&&e===n||e.Jf(this.category),this.ue=t,n!==null&&n.bh(this.category,this)}},adornedPart:{get:function(){var t=this.ue;return t!==null?t.part:null}},containingGroup:{get:function(){return null}}}),Vi.className="Adornment";function X0(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=mo,this.er=tm,this.Kr=this.ij=this.Nq=this.Mq=null}X0.prototype.copy=function(){var t=new X0;return t.Dq=this.Dq,t.Eq=this.Eq,t.gj=this.gj,t.Vr=this.Vr,t.yp=this.yp.J(),t.er=this.er,t.Mq=this.Mq,t.Nq=this.Nq,t.ij=this.ij,t.Kr=this.Kr,t};function tn(t,e){t===void 0||t instanceof Yo||typeof t=="string"?Rn.call(this,t):(Rn.call(this),t&&(e=t)),this.U=13,this.Ba=null,this.jb=new Te,this.wc=this.af=this.Yk=null,this.ci=!1,e&&Object.assign(this,e)}Yn(tn,Rn),tn.prototype.cloneProtected=function(t){Rn.prototype.cloneProtected.call(this,t),t.U=this.U,this.Ba!==null&&(t.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},A=tn.prototype,A.Af=function(t){Rn.prototype.Af.call(this,t),t.Bd(),t.af=this.af,t.wc=null};function Lc(t){t.Ba===null?t.Ba=new X0:t.Ba.nc&&(t.Ba=t.Ba.copy())}A.th=function(){Rn.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Jy(t,e){e!==null&&(t.af===null&&(t.af=new Ce),t.af.add(e))}function qy(t,e,n,i){if(e===null||t.af===null)return null;for(var r=t.af.iterator;r.next();){var o=r.value;if(o.Ds===t&&o.cv===e&&o.Ox===n&&o.Px===i||o.Ds===e&&o.cv===t&&o.Ox===i&&o.Px===n)return o}return null}A.Lz=function(t,e,n){e==null&&(e=""),n==null&&(n=""),t=qy(this,t,e,n),t!==null&&t.Sl()},A.gk=function(t,e,n,i,r,o,s){t===ao&&e==="elements"?this.wc=null:t===ho&&e==="elements"&&(this.wc=null),Rn.prototype.gk.call(this,t,e,n,i,r,o,s)},A.Bd=function(t){for(var e=this.linksConnected;e.next();){var n=e.value;t!==void 0&&t.contains(n)||(Xa(n.fromPort),Xa(n.toPort),n.bb())}};function tx(t,e){for(t=t.linksConnected;t.next();){var n=t.value;(n.fromPort===e||n.toPort===e)&&(Xa(n.fromPort),Xa(n.toPort),n.bb())}}function Xa(t){if(t!==null){var e=t.Zn;e!==null&&e.Sl(),t=t.part,e=t.containingGroup,e===null||t.isVisible()||Xa(e.port)}}A.si=function(){return!0},tn.prototype.getAvoidableRect=function(t){return t.set(this.actualBounds),t.Co(this.avoidableMargin),t},tn.prototype.findVisibleNode=function(){for(var t=this;t!==null&&!t.isVisible();)t=t.containingGroup;return t},tn.prototype.isVisible=function(){if(!Rn.prototype.isVisible.call(this))return!1;var t=!0,e=wc,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren,e=n.treeCollapsePolicy),e===wc){if(t=this.pg(),t!==null&&!t.isTreeExpanded)return!1}else if(e===Ho){if(t=t?this.Oo():this.Po(),0<t.count&&t.all(function(i){return!i.isTreeExpanded}))return!1}else if(e===Wd&&(t=t?this.Oo():this.Po(),0<t.count&&t.any(function(i){return!i.isTreeExpanded})))return!1;return t=this.labeledLink,t!==null?t.isVisible():!0},tn.prototype.Zb=function(t){Rn.prototype.Zb.call(this,t);for(var e=this.linksConnected;e.next();){var n=e.value;if(t&&this.containingGroup!==null){var i=n.To(this);i===null||i.Td(this.containingGroup)||n.bb()}n.Zb(t)}},tn.prototype.qx=function(){var t=new Ce,e=new Ce;return ex(this,this,t,e),e.iterator};function ex(t,e,n,i){if(e!==null&&!n.has(e)){n.add(e);var r=!0,o=t.diagram;o!==null&&(r=o.isTreePathToChildren),e.linksConnected.each(function(s){s.isTreeLink?(r?s.fromNode===e:s.toNode===e)&&ex(t,r?s.toNode:s.fromNode,n,i):i.add(s)})}}tn.prototype.findLinksConnected=function(t){if(t===void 0&&(t=null),t===null)return this.jb.iterator;var e=new qi(this.jb),n=this;return e.predicate=function(i){return i.fromNode===n&&i.fromPortId===t||i.toNode===n&&i.toPortId===t},e},A=tn.prototype,A.Mo=function(t){t===void 0&&(t=null);var e=new qi(this.jb),n=this;return e.predicate=function(i){return i.fromNode!==n?!1:t===null?!0:i.fromPortId===t},e},A.Sd=function(t){t===void 0&&(t=null);var e=new qi(this.jb),n=this;return e.predicate=function(i){return i.toNode!==n?!1:t===null?!0:i.toPortId===t},e},A.Mu=function(t){t===void 0&&(t=null);for(var e=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode===this?(t===null||r.fromPortId===t)&&(r=r.toNode,e!==null?e.add(r):n!==null&&n!==r?(e=new Ce,e.add(n),e.add(r)):n=r):r.toNode!==this||t!==null&&r.toPortId!==t||(r=r.fromNode,e!==null?e.add(r):n!==null&&n!==r?(e=new Ce,e.add(n),e.add(r)):n=r)}return e!==null?e.iterator:n!==null?new ji(n):sr},A.Po=function(t){t===void 0&&(t=null);for(var e=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode!==this||t!==null&&r.fromPortId!==t||(r=r.toNode,e!==null?e.add(r):n!==null&&n!==r?(e=new Ce,e.add(n),e.add(r)):n=r)}return e!==null?e.iterator:n!==null?new ji(n):sr},A.Oo=function(t){t===void 0&&(t=null);for(var e=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.toNode!==this||t!==null&&r.toPortId!==t||(r=r.fromNode,e!==null?e.add(r):n!==null&&n!==r?(e=new Ce,e.add(n),e.add(r)):n=r)}return e!==null?e.iterator:n!==null?new ji(n):sr},A.jz=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var i=new qi(this.jb),r=this;return i.predicate=function(o){return!((o.fromNode!==r||o.toNode!==t||e!==null&&o.fromPortId!==e||n!==null&&o.toPortId!==n)&&(o.fromNode!==t||o.toNode!==r||n!==null&&o.fromPortId!==n||e!==null&&o.toPortId!==e))},i},A.kz=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var i=new qi(this.jb),r=this;return i.predicate=function(o){return!(o.fromNode!==r||o.toNode!==t||e!==null&&o.fromPortId!==e||n!==null&&o.toPortId!==n)},i};function Jg(t,e,n){Xa(n);var i=t.jb.contains(e);if(i||t.jb.add(e),!i||e.fromNode===e.toNode){var r=t.linkConnected;if(r!==null){var o=!0,s=t.diagram;s!==null&&(o=s.aa,s.aa=!0),r(t,e,n),s!==null&&(s.aa=o)}}!i&&e.isTreeLink&&(n=e.fromNode,e=e.toNode,n!==null&&e!==null&&n!==e&&(i=!0,t=t.diagram,t!==null&&(i=t.isTreePathToChildren),r=i?e:n,o=i?n:e,r.ci||(r.ci=o),!o.isTreeLeaf||t!==null&&t.undoManager.isUndoingRedoing||(i?n===o&&(o.isTreeLeaf=!1):e===o&&(o.isTreeLeaf=!1))))}function qg(t,e,n){Xa(n);var i=t.jb.remove(e),r=null;if(i||e.toNode===e.fromNode){var o=t.linkDisconnected;if(r=t.diagram,o!==null){var s=!0;r!==null&&(s=r.aa,r.aa=!0),o(t,e,n),r!==null&&(r.aa=s)}}i&&e.isTreeLink&&(n=!0,r!==null&&(n=r.isTreePathToChildren),t=n?e.toNode:e.fromNode,e=n?e.fromNode:e.toNode,t!==null&&(t.ci=!1),e===null||e.isTreeLeaf||(e.jb.count===0?(e.ci=null,r!==null&&r.undoManager.isUndoingRedoing||(e.isTreeLeaf=!0)):mp(e)))}function mp(t){if(t.ci=!1,t.jb.count!==0){var e=!0,n=t.diagram;if(n===null||!n.undoManager.isUndoingRedoing){for(n!==null&&(e=n.isTreePathToChildren),n=t.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink){if(e){if(i.fromNode===t){t.isTreeLeaf=!1;return}}else if(i.toNode===t){t.isTreeLeaf=!1;return}}}t.isTreeLeaf=!0}}}tn.prototype.updateRelationshipsFromData=function(){var t=this.diagram;t!==null&&t.partManager.updateRelationshipsFromData(this)},A=tn.prototype,A.Vo=function(t){Rn.prototype.Vo.call(this,t),t||(mp(this),t=this.Yk,t!==null&&cx(t,this))},A.Wo=function(t){Rn.prototype.Wo.call(this,t),t||(t=this.Yk,t!==null&&t.wd!==null&&(t.wd.remove(this),t.v()))},A.Lj=function(){if(0<this.jb.count){var t=this.diagram;if(t!==null)for(var e=t.commandHandler!==null?t.commandHandler.deletesConnectedLinks:!0,n=this.jb.copy().iterator;n.next();){var i=n.value;e?t.remove(i):(i.fromNode===this&&(i.fromNode=null),i.toNode===this&&(i.toNode=null))}}this.labeledLink=null,Rn.prototype.Lj.call(this)},A.ns=function(t){if(this.wc===null){if(t===""&&this.Te===!1)return this;nx(this)}var e=this.wc.I(t);return e!==null||t!==""&&(e=this.wc.I(""),e!==null)?e:this};function nx(t){t.wc===null?t.wc=new Zt:t.wc.clear(),t.qm(t,function(e,n){ix(e,n)}),t.wc.count===0&&t.wc.add("",t)}function ix(t,e){var n=e.portId;n!==null&&t.wc!==null&&t.wc.add(n,e)}function Q0(t,e,n){var i=e.portId;if(i!==null&&(t.wc!==null&&t.wc.remove(i),e=t.diagram,e!==null&&n)){for(n=null,t=t.findLinksConnected(i);t.next();)i=t.value,n===null&&(n=bn()),n.push(i);if(n!==null){for(t=0;t<n.length;t++)e.remove(n[t]);En(n)}}}A.Nz=function(t){if(t===null||t===this)return!1;var e=!0,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren),n=this,e)for(;n!==t;){e=null;for(var i=n.jb.iterator;i.next();){var r=i.value;if(r.isTreeLink&&(e=r.fromNode,e!==n&&e!==this))break}if(e===this||e===null||e===n)return!1;n=e}else for(;n!==t;){for(e=null,i=n.jb.iterator;i.next()&&(r=i.value,!r.isTreeLink||(e=r.toNode,e===n||e===this)););if(e===this||e===null||e===n)return!1;n=e}return!0},A.xz=function(){var t=!0,e=this.diagram;if(e!==null&&(t=e.isTreePathToChildren),e=this,t)for(;;){t=null;for(var n=e.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink&&(t=i.fromNode,t!==e&&t!==this))break}if(t===this)return this;if(t===null||t===e)return e;e=t}else for(;;){for(t=null,n=e.jb.iterator;n.next()&&(i=n.value,!i.isTreeLink||(t=i.toNode,t===e||t===this)););if(t===this)return this;if(t===null||t===e)return e;e=t}},A.gz=function(t){if(t===null)return null;if(this===t)return this;for(var e=this;e!==null;)Qg(e,!0),e=e.pg();var n=null;for(e=t;e!==null;){if(e.G&1048576){n=e;break}e=e.pg()}for(e=this;e!==null;)Qg(e,!1),e=e.pg();return n},A.kh=function(){var t=!0,e=this.diagram;if(e!==null&&(t=e.isTreePathToChildren),e=this.jb.iterator,t){for(;e.next();)if(t=e.value,t.isTreeLink&&t.fromNode!==this)return t}else for(;e.next();)if(t=e.value,t.isTreeLink&&t.toNode!==this)return t;return null},A.pg=function(){var t=this.ci;if(t===null)return null;if(t instanceof tn)return t;t=this.diagram,t=t!==null?t.isTreePathToChildren:!0;for(var e=this.jb.iterator;e.next();){var n=e.value;if(n.isTreeLink&&(n=t?n.fromNode:n.toNode,n!==this))return this.ci=n}return this.ci=null},A.vz=function(){function t(n,i){i.add(n);var r=n.kh();r!==null&&(i.add(r),n=n.pg(),n!==null&&t(n,i))}var e=new Ce;return t(this,e),e},A.uz=function(){return rx(this,this)};function rx(t,e){return e=e.pg(),e===null?0:1+rx(t,e)}A.Qo=function(){var t=!0,e=this.diagram;e!==null&&(t=e.isTreePathToChildren),e=new qi(this.jb);var n=this;return e.predicate=t?function(i){return!!(i.isTreeLink&&i.fromNode===n)}:function(i){return!!(i.isTreeLink&&i.toNode===n)},e},A.Ou=function(){var t=!0,e=this.diagram;e!==null&&(t=e.isTreePathToChildren);var n=e=null,i=this.jb.iterator;if(t)for(;i.next();)t=i.value,t.isTreeLink&&t.fromNode===this&&(t=t.toNode,e!==null?e.add(t):n!==null&&n!==t?(e=new Te,e.add(n),e.add(t)):n=t);else for(;i.next();)t=i.value,t.isTreeLink&&t.toNode===this&&(t=t.fromNode,e!==null?e.add(t):n!==null&&n!==t?(e=new Te,e.add(n),e.add(t)):n=t);return e!==null?e.iterator:n!==null?new ji(n):sr},A.wz=function(t){t===void 0&&(t=1/0);var e=new Ce;return ih(e,this,!1,t,!0),e},tn.prototype.collapseTree=function(t){t===void 0&&(t=1),1>t&&(t=1);var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var n=new Ce;n.add(this),ox(this,n,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===wc),e.Ue=!1}};function ox(t,e,n,i,r,o,s){if(1<i)for(var l=n?t.Mo():t.Sd();l.next();){var u=l.value;u.isTreeLink&&(u=u.To(t),u===null||u===t||e.contains(u)||(e.add(u),ox(u,e,n,i-1,r,o,s)))}else sx(t,e,n,r,o,s)}function sx(t,e,n,i,r,o){for(var s=r===t?!0:t.isTreeExpanded,l=n?t.Mo():t.Sd(),u={};l.next();){var d=l.value;if(d.isTreeLink&&(d=d.To(t),d!==null&&d!==t)){var f=e.contains(d);if(f||e.add(d),s){var y=n?d.Oo():d.Po();u.uv=t,y.all(function(T){return function(w){return w===T.uv||!w.isTreeExpanded}}(u))&&i.Aj(d,r),d.oh(),d.Zb(!1)}d.isTreeExpanded&&(d.wasTreeExpanded=d.isTreeExpanded,f||sx(d,e,n,i,r,o))}u={uv:u.uv}}t.isTreeExpanded=!1}tn.prototype.expandTree=function(t){t===void 0&&(t=2),2>t&&(t=2);var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var n=new Ce;n.add(this),ax(this,n,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===wc),e.Ue=!1}};function ax(t,e,n,i,r,o,s){for(var l=o===t?!1:t.isTreeExpanded,u=n?t.Mo():t.Sd(),d={};u.next();){var f=u.value;if(f.isTreeLink&&(l||f.fd||f.bb(),f=f.To(t),f!==null&&f!==t&&!e.contains(f))){if(e.add(f),!l){f.Zb(!0),f.oh();var y=n?f.Oo():f.Po();d.vv=t,y.all(function(T){return function(w){return w===T.vv||!w.isTreeExpanded}}(d))&&r.Cj(f,o)}(2<i||f.wasTreeExpanded)&&(f.wasTreeExpanded=!1,ax(f,e,n,i-1,r,o,s))}d={vv:d.vv}}t.isTreeExpanded=!0}Mn.Object.defineProperties(tn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:tm},set:function(t){var e=this.portSpreading;e!==t&&(Lc(this),this.Ba.er=t,this.g("portSpreading",e,t),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(t){var e=(this.U&8)!==0;if(e!==t){this.U^=8;var n=this.diagram;n!==null&&Sc(n,this),this.g("avoidable",e,t)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:mo},set:function(t){typeof t=="number"&&(t=new ii(t));var e=this.avoidableMargin;if(!e.D(t)){t=t.J(),Lc(this),this.Ba.yp=t;var n=this.diagram;n!==null&&Sc(n,this),this.g("avoidableMargin",e,t)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(t){var e=this.linkConnected;e!==t&&(Lc(this),this.Ba.Dq=t,this.g("linkConnected",e,t))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(t){var e=this.linkDisconnected;e!==t&&(Lc(this),this.Ba.Eq=t,this.g("linkDisconnected",e,t))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(t){var e=this.linkValidation;e!==t&&(Lc(this),this.Ba.gj=t,this.g("linkValidation",e,t))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(t){var e=this.Yk;if(e!==t){var n=this.diagram,i=this.data;if(e!==null){if(e.wd!==null&&(e.wd.remove(this),e.v()),n!==null&&i!==null&&!n.undoManager.isUndoingRedoing){var r=e.data,o=n.model;if(r!==null&&o.ri()){var s=o.wa(i);s!==void 0&&o.Qx(r,s)}}this.containingGroup=null}this.Yk=t,t!==null&&(cx(t,this),n===null||i===null||n.undoManager.isUndoingRedoing||(r=t.data,n=n.model,r!==null&&n.ri()&&(i=n.wa(i),i!==void 0&&n.Bu(r,i))),this.containingGroup=t.containingGroup),la(this),this.g("labeledLink",e,t)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&nx(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(t){var e=(this.U&1)!==0;if(e!==t){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",e,t),e=this.treeExpandedChanged,e!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),e(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?this.Zb(t):t?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(t){var e=(this.U&2)!==0;e!==t&&(this.U^=2,this.g("wasTreeExpanded",e,t))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(t){var e=this.treeExpandedChanged;e!==t&&(Lc(this),this.Ba.Vr=t,this.g("treeExpandedChanged",e,t))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(t){var e=(this.U&4)!==0;e!==t&&(this.U^=4,this.g("isTreeLeaf",e,t))}}}),tn.prototype.expandTree=tn.prototype.expandTree,tn.prototype.collapseTree=tn.prototype.collapseTree,tn.prototype.findTreeParts=tn.prototype.wz,tn.prototype.findTreeChildrenNodes=tn.prototype.Ou,tn.prototype.findTreeChildrenLinks=tn.prototype.Qo,tn.prototype.findTreeLevel=tn.prototype.uz,tn.prototype.findTreeParentChain=tn.prototype.vz,tn.prototype.findTreeParentNode=tn.prototype.pg,tn.prototype.findTreeParentLink=tn.prototype.kh,tn.prototype.findCommonTreeParent=tn.prototype.gz,tn.prototype.findTreeRoot=tn.prototype.xz,tn.prototype.isInTreeOf=tn.prototype.Nz,tn.prototype.findPort=tn.prototype.ns,tn.prototype.findLinksTo=tn.prototype.kz,tn.prototype.findLinksBetween=tn.prototype.jz,tn.prototype.findNodesInto=tn.prototype.Oo,tn.prototype.findNodesOutOf=tn.prototype.Po,tn.prototype.findNodesConnected=tn.prototype.Mu,tn.prototype.findLinksInto=tn.prototype.Sd,tn.prototype.findLinksOutOf=tn.prototype.Mo,tn.prototype.findExternalTreeLinksConnected=tn.prototype.qx,tn.prototype.invalidateConnectedLinks=tn.prototype.Bd,tn.prototype.invalidateLinkBundle=tn.prototype.Lz;var B1=new xe(tn,"SpreadingNone",10),tm=new xe(tn,"SpreadingEvenly",11),J0=new xe(tn,"SpreadingPacked",12);tn.className="Node",tn.SpreadingNone=B1,tn.SpreadingEvenly=tm,tn.SpreadingPacked=J0;function Jn(t,e){t===void 0||t instanceof Yo||typeof t=="string"?tn.call(this,t):(tn.call(this),t&&(e=t)),this.U|=4608,this.Gn=new Ce,this.$a=null,this.Sc=new oo,this.Sc.group=this,this.gl=new Ce,this.tb=this.$p=null,e&&Object.assign(this,e)}Yn(Jn,tn),Jn.prototype.cloneProtected=function(t){tn.prototype.cloneProtected.call(this,t),this.U=this.U&-32769;var e=t.Nl(function(n){return n instanceof ha});e instanceof ha?t.$a=e:t.$a=null,this.Sc!==null?(t.Sc=this.Sc.copy(),t.Sc.group=t):(t.Sc!==null&&(t.Sc.group=null),t.Sc=null),this.tb!==null&&(t.tb=this.tb.copy())},A=Jn.prototype,A.Af=function(t){tn.prototype.Af.call(this,t);var e=t.Rj();for(t=t.memberParts;t.next();){var n=t.value;if(n.v(),n.C(8),n.Ej(),n instanceof tn)n.Bd(e);else if(n instanceof Pe)for(n=n.labelNodes;n.next();)n.value.Bd(e)}},A.gk=function(t,e,n,i,r,o,s){if(t===ao&&e==="elements"){if(r instanceof ha)this.$a===null?this.$a=r:this.$a!==r&&Et("Cannot insert a second Placeholder into the visual tree of a Group.");else if(r instanceof Re){var l=r.Nl(function(u){return u instanceof ha});l instanceof ha&&(this.$a===null?this.$a=l:this.$a!==l&&Et("Cannot insert a second Placeholder into the visual tree of a Group."))}}else t===ho&&e==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof Re&&this.$a.rg(i)&&(this.$a=null));tn.prototype.gk.call(this,t,e,n,i,r,o,s)},A.Xl=function(t,e){tn.prototype.Xl.call(this,t,e),this.isClipping&&this.type!==Re.Spot&&this.isSubGraphExpanded&&(t=this.resizeObject,t instanceof Re&&(t=t.Pb()),this.tb===null&&(this.tb=new Xt),t.mi(this.tb),t instanceof ai&&this.tb.Bc(-t.strokeWidth,-t.strokeWidth))},A.eh=function(t,e,n,i){this.nf=this.$a,tn.prototype.eh.call(this,t,e,n,i)},A.Va=function(){var t=this;t.isSubGraphExpanded&&this.memberParts.each(function(e){!t.computesBoundsIncludingLinks&&e instanceof Pe||e.Va()}),tn.prototype.Va.call(this)},A.si=function(){if(!tn.prototype.si.call(this))return!1;for(var t=this.memberParts;t.next();){var e=t.value;if(e instanceof tn){if(e.isVisible()&&ua(e))return!1}else if(e instanceof Pe&&e.isVisible()&&ua(e)&&e.fromNode!==this&&e.toNode!==this)return!1}return!0};function q0(t,e){if(t.Gn.add(e)){e instanceof Jn&&t.gl.add(e);var n=t.memberAdded;if(n!==null){var i=!0,r=t.diagram;r!==null&&(i=r.aa,r.aa=!0),n(t,e),r!==null&&(r.aa=i)}t.isVisible()&&t.isSubGraphExpanded||e.Zb(!1)}e instanceof Pe&&!t.computesBoundsIncludingLinks||(e=t.$a,e===null&&(e=t),e.v())}function tv(t,e){if(t.Gn.remove(e)){e instanceof Jn&&t.gl.remove(e);var n=t.memberRemoved;if(n!==null){var i=!0,r=t.diagram;r!==null&&(i=r.aa,r.aa=!0),n(t,e),r!==null&&(r.aa=i)}t.isVisible()&&t.isSubGraphExpanded||e.Zb(!0)}e instanceof Pe&&!t.computesBoundsIncludingLinks||(e=t.$a,e===null&&(e=t),e.v())}A.Lj=function(){if(0<this.Gn.count){var t=this.diagram;if(t!==null)for(var e=this.Gn.copy().iterator;e.next();)t.remove(e.value)}tn.prototype.Lj.call(this)},Jn.prototype.canAddMembers=function(t){var e=this.diagram;if(e===null)return!1;for(e=e.commandHandler,t=ne(t).iterator;t.next();)if(!e.isValidMember(this,t.value))return!1;return!0},Jn.prototype.addMembers=function(t,e){var n=this.diagram;if(n===null)return!1;n=n.commandHandler;var i=!0;for(t=ne(t).iterator;t.next();){var r=t.value;!e||n.isValidMember(this,r)?r.containingGroup=this:i=!1}return i},Jn.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var t=this.layer;return t===null||!t.allowUngroup?!1:(t=t.diagram,!!(t===null||t.allowUngroup))},A=Jn.prototype,A.Bd=function(t){var e=(this.U&65536)!==0;if(tn.prototype.Bd.call(this,t),!e)for(!(this.U&65536)&&(this.U=this.U^65536),e=this.Lu();e.next();){var n=e.value;if(t===void 0||!t.contains(n)){var i=n.fromNode;i!==null&&i!==this&&i.Td(this)&&!i.isVisible()?(Xa(n.fromPort),Xa(n.toPort),n.bb()):(i=n.toNode,i!==null&&i!==this&&i.Td(this)&&!i.isVisible()&&(Xa(n.fromPort),Xa(n.toPort),n.bb()))}}},A.Lu=function(){var t=this.diagram!==null&&this.diagram.Pw;if(t&&this.$p!==null)return this.$p.iterator;var e=this.Rj();e.add(this);for(var n=new Ce,i=e.iterator;i.next();){var r=i.value;if(r instanceof tn)for(r=r.linksConnected;r.next();){var o=r.value;e.contains(o)||n.add(o)}}return t&&(this.$p=n),n.iterator},A.iz=function(){var t=this.Rj();t.add(this);for(var e=new Ce,n=t.iterator;n.next();){var i=n.value;if(i instanceof tn)for(i=i.linksConnected;i.next();){var r=i.value,o=r.fromNode;o===null||t.contains(o)&&o!==this||e.add(o),r=r.toNode,r===null||t.contains(r)&&r!==this||e.add(r)}}return e.iterator},A.hz=function(){function t(n,i){n!==null&&(i.add(n),t(n.containingGroup,i))}var e=new Ce;return t(this,e),e},A.Rj=function(){var t=new Ce;return ih(t,this,!0,0,!0),t.remove(this),t},A.Zb=function(t){tn.prototype.Zb.call(this,t);for(var e=this.memberParts;e.next();)e.value.Zb(t)},Jn.prototype.collapseSubGraph=function(){var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var e=this.Rj();lx(this,e,t,this),t.Ue=!1}};function lx(t,e,n,i){for(var r=t.memberParts;r.next();){var o=r.value;if(o.Zb(!1),o instanceof Jn&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,lx(o,e,n,i)),o instanceof tn)o.Bd(e),n.Aj(o,i);else if(o instanceof Pe)for(o=o.labelNodes;o.next();)o.value.Bd(e)}t.isSubGraphExpanded=!1}Jn.prototype.expandSubGraph=function(){var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var e=this.Rj();ux(this,e,t,this),t.Ue=!1}};function ux(t,e,n,i){for(var r=t.memberParts;r.next();){var o=r.value;if(o.Zb(!0),o instanceof Jn&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,ux(o,e,n,i)),o instanceof tn)o.Bd(e),n.Cj(o,i);else if(o instanceof Pe)for(o=o.labelNodes;o.next();)o.value.Bd(e)}t.isSubGraphExpanded=!0}Jn.prototype.move=function(t,e){e===void 0&&(e=!1);var n=e?this.location:this.position,i=n.x;n=n.y;var r=t.x,o=t.y;if(!(i===r||isNaN(i)&&isNaN(r))||!(n===o||isNaN(n)&&isNaN(o))){for(i=r-(isNaN(i)?0:i),n=o-(isNaN(n)?0:n),o=z.alloc(),tn.prototype.move.call(this,t,e),t=new Ce,e=this.Rj().iterator;e.next();)r=e.value,r instanceof Pe&&(r.suspendsRouting&&t.add(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(r.suspendsRouting=!0);for(e.reset();e.next();)if(r=e.value,!(r.ph()||r instanceof tn&&r.isLinkLabel)){var s=r.position,l=r.location;s.w()?(o.x=s.x+i,o.y=s.y+n,r.position=o):l.w()&&(o.x=l.x+i,o.y=l.y+n,r.location=o)}for(e.reset();e.next();)r=e.value,r instanceof Pe&&(r.suspendsRouting=t.contains(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(s=r.position,o.x=s.x+i,o.y=s.y+n,o.w()?r.move(o):r.bb(),nv(r)&&r.bb());z.free(o)}},Mn.Object.defineProperties(Jn.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(t){var e=(this.U&2048)!==0;e!==t&&(this.U^=2048,this.g("computesBoundsAfterDrag",e,t))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(t){var e=(this.U&4096)!==0;e!==t&&(this.U^=4096,this.g("computesBoundsIncludingLinks",e,t))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(t){var e=(this.U&8192)!==0;e!==t&&(this.U^=8192,this.g("computesBoundsIncludingLocation",e,t))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(t){var e=(this.U&16384)!==0;e!==t&&(this.U^=16384,this.g("handlesDragDropForMembers",e,t))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(t){var e=this.Sc;if(e!==t){t!==null&&t.diagram!==null&&t.diagram.layout===t&&Et("A layout cannot be both the Diagram.layout and a Group.layout: "+t),e!==null&&(e.diagram=null,e.group=null),this.Sc=t;var n=this.diagram;t!==null&&(t.diagram=n,t.group=this),n!==null&&(n.xh=!0),this.g("layout",e,t),n!==null&&n.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(t){var e=this.memberAdded;e!==t&&(Lc(this),this.Ba.Mq=t,this.g("memberAdded",e,t))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(t){var e=this.memberRemoved;e!==t&&(Lc(this),this.Ba.Nq=t,this.g("memberRemoved",e,t))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(t){var e=this.memberValidation;e!==t&&(Lc(this),this.Ba.ij=t,this.g("memberValidation",e,t))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(t){var e=(this.U&256)!==0;e!==t&&(this.U^=256,this.g("ungroupable",e,t))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(t){var e=(this.U&512)!==0;if(e!==t){this.U^=512;var n=this.diagram;if(this.g("isSubGraphExpanded",e,t),e=this.subGraphExpandedChanged,e!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),e(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(r){r.updateAdornments()})):t?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(t){var e=(this.U&1024)!==0;e!==t&&(this.U^=1024,this.g("wasSubGraphExpanded",e,t))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(t){var e=this.subGraphExpandedChanged;e!==t&&(Lc(this),this.Ba.Kr=t,this.g("subGraphExpandedChanged",e,t))}},rh:{get:function(){return(this.U&32768)!==0},set:function(t){(this.U&32768)!==0!==t&&(this.U^=32768)}}}),Jn.prototype.expandSubGraph=Jn.prototype.expandSubGraph,Jn.prototype.collapseSubGraph=Jn.prototype.collapseSubGraph,Jn.prototype.findSubGraphParts=Jn.prototype.Rj,Jn.prototype.findContainingGroupChain=Jn.prototype.hz,Jn.prototype.findExternalNodesConnected=Jn.prototype.iz,Jn.prototype.findExternalLinksConnected=Jn.prototype.Lu,Jn.prototype.ensureBounds=Jn.prototype.Va,Jn.className="Group";function ha(t){Rt.call(this),this.yb=Vo,this.ko=new Xt(NaN,NaN,NaN,NaN),t&&Object.assign(this,t)}Yn(ha,Rt),ha.prototype.cloneProtected=function(t){Rt.prototype.cloneProtected.call(this,t),t.yb=this.yb.J(),t.ko=this.ko.copy()},ha.prototype.gh=function(t){if(this.background===null&&this.areaBackground===null)return!1;var e=this.naturalBounds;return Gr(0,0,e.width,e.height,t.x,t.y)},ha.prototype.Wl=function(){var t=this.part;if(t!==null&&(t instanceof Jn||t instanceof Vi)||Et("Placeholder is not inside a Group or Adornment."),t instanceof Jn){var e=this.computeBorder(this.ko),n=this.minSize,i=this.dc;for(rr(i,(isFinite(n.width)?Math.max(n.width,e.width):e.width)||0,(isFinite(n.height)?Math.max(n.height,e.height):e.height)||0),this.Ge(0,0,i.width,i.height),i=t.memberParts,n=!1;i.next();)if(i.value.isVisible()){n=!0;break}i=t.diagram,!n||i===null||i.animationManager.Xu(t)||isNaN(e.x)||isNaN(e.y)||(n=z.alloc(),n.xi(e,t.locationSpot),n.D(t.location)||(t.location=n),z.free(n))}else{e=this.dc,n=this.yb,i=n.left+n.right;var r=n.top+n.bottom,o=t.adornedObject;t.angle=o.li();var s=0;o instanceof ai&&(s=o.strokeWidth);var l=o.Df(),u=o.naturalBounds,d=(u.width+s)*l;s=(u.height+s)*l,t.type!==Re.Link&&(l=o.ga(t.category==="Selection"?vi:t.locationSpot,z.alloc()),t.location=l,z.free(l)),isNaN(d)||isNaN(s)?(t=o.ga(vi,z.alloc()),d=Xt.allocAt(t.x,t.y,0,0),d.Ye(o.ga(tr,t)),d.Ye(o.ga(Yi,t)),d.Ye(o.ga(So,t)),rr(e,d.width+i||0,d.height+r||0),this.Ge(-n.left,-n.top,e.width,e.height),z.free(t),Xt.free(d)):(rr(e,d+i||0,s+r||0),this.Ge(-n.left,-n.top,e.width,e.height))}},ha.prototype.eh=function(t,e,n,i){this.actualBounds.h(t,e,n,i)},ha.prototype.computeBorder=function(t){var e=this.part,n=e.diagram,i=n===null||!n.animationManager.isAnimating;if(n!==null&&e instanceof Jn&&!e.layer.isTemporary&&e.computesBoundsAfterDrag&&this.ko.w()){var r=n.toolManager.findTool("Dragging");if(r===n.currentTool&&(n=r.computeBorder(e,this.ko,t),n!==null))return n}n=Xt.alloc(),r=this.computeMemberBounds(n);var o=this.yb;return e instanceof Jn&&!e.isSubGraphExpanded?t.h(r.x-o.left,r.y-o.top,0,0):t.h(r.x-o.left,r.y-o.top,Math.max(r.width+o.left+o.right,0),Math.max(r.height+o.top+o.bottom,0)),Xt.free(n),i&&e instanceof Jn&&e.computesBoundsIncludingLocation&&e.location.w()&&t.Ye(e.location),t},ha.prototype.computeMemberBounds=function(t){if(!(this.part instanceof Jn))return t.h(0,0,0,0),t;for(var e=this.part,n=1/0,i=1/0,r=-1/0,o=-1/0,s=e.memberParts;s.next();){var l=s.value;if(l.isVisible()){if(l instanceof Pe&&(!e.computesBoundsIncludingLinks||hl(l)||l.fromNode===e||l.toNode===e))continue;l=l.actualBounds,l.left<n&&(n=l.left),l.top<i&&(i=l.top),l.right>r&&(r=l.right),l.bottom>o&&(o=l.bottom)}}return isFinite(n)&&isFinite(i)?t.h(n,i,r-n,o-i):(e=e.location,t.h(e.x,e.y,0,0)),t},Mn.Object.defineProperties(ha.prototype,{padding:{get:function(){return this.yb},set:function(t){typeof t=="number"&&(t=new ii(t));var e=this.yb;e.D(t)||(this.yb=t=t.J(),this.g("padding",e,t),this.v())}}}),ha.className="Placeholder";function Pe(t){Rn.call(this,Re.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=da,this.Om=0,this.Qm=da,this.Rm=NaN,this.qj=ov,this.po=.5,this.wd=null,this.Nb=new Te().freeze(),this.Tg=this.Mg=null,this.ml=new Xt,this.ua=new Oe,this.u=this.o=this.Sf=this.Wf=null,this.su=new z,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],t&&Object.assign(this,t)}Yn(Pe,Rn),Pe.prototype.cloneProtected=function(t){Rn.prototype.cloneProtected.call(this,t),t.Qa=this.Qa&-113,t.ff=this.ff,t.gn=this.gn,t.vf=this.vf,t.uo=this.uo,t.qk=this.qk,t.Om=this.Om,t.Qm=this.Qm,t.Rm=this.Rm,t.qj=this.qj,t.po=this.po,this.ba!==null&&(t.ba=this.ba.copy())},A=Pe.prototype,A.Af=function(t){Rn.prototype.Af.call(this,t),this.ff=t.ff,this.vf=t.vf,t.Mg=null,t.bb(),t.Sf=this.Sf;var e=t.fromPort;e!==null&&Xa(e),t=t.toPort,t!==null&&Xa(t)},A.qb=function(t){t.classType===Pe?(t.value&2)===2?this.routing=t:t===fl||t===Mc||t===uf?this.curve=t:t===xp||t===sm||t===am?this.adjusting=t:t!==ov&&t!==da&&Et("Unknown Link enum value for a Link property: "+t):Rn.prototype.qb.call(this,t)},A.Xc=function(){this.ba===null&&(this.ba=new op)},A.si=function(){var t=this.fromNode;if(t!==null){var e=t.findVisibleNode();if(e!==null&&(t=e),ua(t)||eh(t))return!1}return t=this.toNode,!(t!==null&&(e=t.findVisibleNode(),e!==null&&(t=e),ua(t)||eh(t)))},A.zv=function(){return!1},A.Av=function(){},A.Zc=function(){return!1},Pe.prototype.computeAngle=function(t,e,n){return Pe.computeAngle(e,n)},Pe.computeAngle=function(t,e){switch(t){default:case da:t=0;break;case bp:t=e;break;case Ep:t=e+90;break;case Sp:t=e-90;break;case sv:t=e+180;break;case lm:t=It.bp(e),90<t&&270>t&&(t-=180);break;case Tp:t=It.bp(e+90),90<t&&270>t&&(t-=180);break;case wp:t=It.bp(e-90),90<t&&270>t&&(t-=180);break;case um:if(t=It.bp(e),45<t&&135>t||225<t&&315>t)return 0;90<t&&270>t&&(t-=180)}return It.bp(t)};function af(t){var e=t.fromNode,n=t.toNode,i=null;if(e!==null?i=n!==null?e.px(n):e.containingGroup:n!==null?i=n.containingGroup:i=null,e=i,n=t.Ah,n!==e){n!==null&&tv(n,t),t.Ah=e,e!==null&&q0(e,t);var r=t.containingGroupChanged;if(r!==null){var o=!0,s=t.diagram;s!==null&&(o=s.aa,s.aa=!0),r(t,n,e),s!==null&&(s.aa=o)}!t.fd||t.Lw!==n&&t.Mw!==n||t.bb()}if(t.isLabeledLink)for(t=t.labelNodes;t.next();)t.value.containingGroup=i}A=Pe.prototype,A.oh=function(){var t=this.containingGroup;t!==null&&this.fromNode!==t&&this.toNode!==t&&t.computesBoundsIncludingLinks&&Rn.prototype.oh.call(this)},A.To=function(t){var e=this.fromNode;return t===e?this.toNode:e},A.Cz=function(t){var e=this.fromPort;return t===e?this.toPort:e};function cx(t,e){t.wd===null&&(t.wd=new Ce),t.wd.add(e),t.v()}A.Vo=function(t){if(Rn.prototype.Vo.call(this,t),Gh(this)&&this.Xo(this.actualBounds),!t){t=this.ef;var e=null;t!==null&&(e=this.fromPort,Jg(t,this,e));var n=this.uf;if(n!==null){var i=this.toPort;n===t&&i===e||Jg(n,this,i)}vp(this)}},A.Wo=function(t){if(Rn.prototype.Wo.call(this,t),Gh(this)&&this.Xo(this.actualBounds),!t){t=this.ef;var e=null;t!==null&&(e=this.fromPort,qg(t,this,e));var n=this.uf;if(n!==null){var i=this.toPort;n===t&&i===e||qg(n,this,i)}yp(this)}},A.Lj=function(){if(this.fd=!0,this.wd!==null){var t=this.diagram;if(t!==null)for(var e=this.wd.copy().iterator;e.next();)t.remove(e.value)}this.data!==null&&(t=this.diagram,t!==null&&t.partManager.removeDataForLink(this))},Pe.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var t=this.diagram;t!==null&&t.partManager.updateRelationshipsFromData(this)}},Pe.prototype.move=function(t,e){var n=e?this.location:this.position,i=n.x;isNaN(i)&&(i=0);var r=n.y;for(isNaN(r)&&(r=0),i=t.x-i,r=t.y-r,e===!0?Rn.prototype.move.call(this,t,!1):(t=z.allocAt(n.x+i,n.y+r),Rn.prototype.move.call(this,t,!1),z.free(t)),Rc(this,i,r),t=this.labelNodes;t.next();)e=t.value,n=e.position,e.moveTo(n.x+i,n.y+r)},Pe.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var t=this.layer;return t===null?!0:t.allowRelink?(t=t.diagram,!!(t===null||t.allowRelink)):!1},Pe.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var t=this.layer;return t===null?!0:t.allowRelink?(t=t.diagram,!!(t===null||t.allowRelink)):!1},Pe.prototype.computeMidPoint=function(t){var e=this.pointsCount;if(e===0)return t.assign(mn),t;if(e===1)return t.assign(this.i(0)),t;if(e===2){var n=this.i(0),i=this.i(1);return t.h((n.x+i.x)/2,(n.y+i.y)/2),t}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===fl))return this.ua.Pu(.5,t),t.add(this.i(0)),n=this.ua.figures.first(),t.offset(-n.startX,-n.startY),t;if(this.computeCurve()===fl){if(e===3){n=this.i(0),i=this.i(1);var r=this.i(2);return It.ax(n.x,n.y,i.x,i.y,i.x,i.y,r.x,r.y,t),t}if(i=(e-1)/3|0,n=3*(i/2|0),i%2===1){i=this.i(n),r=this.i(n+1);var o=this.i(n+2);n=this.i(n+3),It.ax(i.x,i.y,r.x,r.y,o.x,o.y,n.x,n.y,t)}else t.assign(this.i(n));return t}var s=this.flattenedLengths;for(n=this.flattenedTotalLength,r=o=i=0;i<n/2&&o<e&&(r=s[o],!(i+r>n/2));)i+=r,o++;return e=this.i(o),o=this.i(o+1),1>Math.abs(e.x-o.x)?e.y>o.y?t.h(e.x,e.y-(n/2-i)):t.h(e.x,e.y+(n/2-i)):1>Math.abs(e.y-o.y)?e.x>o.x?t.h(e.x-(n/2-i),e.y):t.h(e.x+(n/2-i),e.y):(n=(n/2-i)/r,t.h(e.x+n*(o.x-e.x),e.y+n*(o.y-e.y))),t},Pe.prototype.computeMidAngle=function(){var t=this.pointsCount;if(2>t)return NaN;if(t===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===fl))return this.ua.wx(.5);if(this.computeCurve()===fl&&4<=t){var e=(t-1)/3|0,n=3*(e/2|0);if(e%2===1){n=Math.floor(n),t=this.i(n),e=this.i(n+1);var i=this.i(n+2);return n=this.i(n+3),It.My(t.x,t.y,e.x,e.y,i.x,i.y,n.x,n.y)}if(0<n&&n+1<t)return this.i(n-1).ab(this.i(n+1))}e=this.flattenedLengths,i=this.flattenedTotalLength;var r=0;n=0;for(var o;r<i/2&&n<t&&(o=e[n],!(r+o>i/2));)r+=o,n++;if(e=this.i(n),i=this.i(n+1),1>Math.abs(e.x-i.x)&&1>Math.abs(e.y-i.y)){if(0<n&&n+2<t)return this.i(n-1).ab(this.i(n+2))}else{if(1>Math.abs(e.x-i.x))return e.y>i.y?270:90;if(1>Math.abs(e.y-i.y))return e.x>i.x?180:0}return e.ab(i)},A=Pe.prototype,A.i=function(t){return this.Nb.s[t]},A.dd=function(t,e){this.Nb.cd(t,e)},A.L=function(t,e,n){this.Nb.cd(t,new z(e,n))},A.Kz=function(t,e){this.Nb.Gb(t,e)},A.m=function(t,e,n){this.Nb.Gb(t,new z(e,n))},A.ne=function(t){this.Nb.add(t)},A.yf=function(t,e){this.Nb.add(new z(t,e))},A.pv=function(t){this.Nb.mb(t)},A.Fj=function(){this.Nb.clear()};function Rc(t,e,n){if(e!==0||n!==0)if(t.pointsCount===0)t.defaultFromPoint&&t.defaultFromPoint.offset(e,n),t.defaultToPoint&&t.defaultToPoint.offset(e,n);else{for(var i=t.fd,r=new Te,o=t.Nb.iterator;o.next();){var s=o.value;r.add(new z(s.x+e,s.y+n).freeze())}r.freeze(),o=t.Nb,t.Nb=r,s=t.diagram,isNaN(e)||isNaN(n)||s!==null&&s.animationManager.zb?t.v():(t.ke.h(t.ke.x+e,t.ke.y+n),t.pa.h(t.pa.x+e,t.pa.y+n),la(t)),i?em(t):(t.defaultFromPoint&&(t.defaultFromPoint=t.i(0)),t.defaultToPoint&&(t.defaultToPoint=t.i(t.pointsCount-1))),s!==null&&s.animationManager.zb&&h(s.animationManager,t,r),t.g("points",o,r)}}A.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},A.zf=function(){if(this.Mg!==null){for(var t=this.Mg,e=this.Nb,n=1/0,i=1/0,r=t.s,o=r.length,s=0;s<o;s++){var l=r[s];n=Math.min(l.x,n),i=Math.min(l.y,i)}l=s=1/0;for(var u=e.s,d=u.length,f=0;f<d;f++){var y=u[f];s=Math.min(y.x,s),l=Math.min(y.y,l),y.freeze()}if(e.freeze(),d===o){for(o=0;o<d;o++)if(f=r[o],y=u[o],f.x-n!==y.x-s||f.y-i!==y.y-l){this.qc();break}}else this.qc();this.Mg=null,n=this.diagram,n!==null&&n.animationManager.zb&&h(n.animationManager,this,e),em(this),this.g("points",t,e)}},A.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function em(t){t.Nb.count===0?t.fd=!1:(t.fd=!0,t.cq=null,t.vt=NaN,t.defaultFromPoint=t.i(0),t.defaultToPoint=t.i(t.pointsCount-1),om(t,!1))}A.bb=function(){if(!this.suspendsRouting){var t=this.diagram;if(t){if(t.As.contains(this)||t.undoManager.isUndoingRedoing||(t=t.animationManager,t.isTicking&&!t.isAnimating))return;this.Tg===null||t.isTicking||(this.Tg=null)}t=this.path,t!==null&&(this.fd=!1,this.v(),t.v())}},A.vg=function(){if(!this.fd&&!this.computingPoints){var t=!0;try{this.computingPoints=!0,this.uh(),t=this.computePoints()}catch(e){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,t?this.zf():this.rv()}}},Pe.prototype.computePoints=function(){if(this.diagram===null)return!1;var t=this.fromNode,e=null;if(t===null?(gd||(gd=new tn,gd.desiredSize=Ui,gd.Va()),this.defaultFromPoint&&(gd.location=this.defaultFromPoint,gd.Va(),e=t=gd)):e=this.fromPort,e!==null&&!t.isVisible()){var n=t.findVisibleNode();n!==null&&n!==t?(t=n,e=n.port):t=n}if(this.Lw=t,t===null||!t.location.w())return!1;for(;!(e===null||e.actualBounds.w()&&e.Ed());)e=e.panel;if(e===null)return!1;var i=this.toNode,r=null;if(i===null?(md||(md=new tn,md.desiredSize=Ui,md.Va()),this.defaultToPoint&&(md.location=this.defaultToPoint,md.Va(),r=i=md)):r=this.toPort,r===null||i.isVisible()||(n=i.findVisibleNode(),n!==null&&n!==i?(i=n,r=n.port):i=n),this.Mw=i,i===null||!i.location.w())return!1;for(;!(r===null||r.actualBounds.w()&&r.Ed());)r=r.panel;if(r===null)return!1;var o=this.pointsCount,s=this.computeSpot(!0,e);n=this.computeSpot(!1,r);var l=lf(s),u=lf(n),d=e===r&&e!==null,f=this.isOrthogonal,y=this.curve===fl;this.Wf=d&&!f?y=!0:!1;var T=this.computeAdjusting()===da||d;if(!f&&!d&&l&&u){if(l=!1,!T&&3<=o&&(T=this.getLinkPoint(t,e,s,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,t,e),l=this.adjustPoints(0,T,o-1,u))&&(T=this.getLinkPoint(t,e,s,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,t,e),this.adjustPoints(0,T,o-1,u)),!l)if(this.Fj(),y){o=this.getLinkPoint(t,e,s,!0,!1,i,r),T=this.getLinkPoint(i,r,n,!1,!1,t,e),l=T.x-o.x,u=T.y-o.y,d=this.computeCurviness(),y=f=0;var w=o.x+l/3,N=o.y+u/3,F=w,nt=N;It.B(u,0)?nt=0<l?nt-d:nt+d:(f=-l/u,y=Math.sqrt(d*d/(f*f+1)),0>d&&(y=-y),F=(0>u?-1:1)*y+w,nt=f*(F-w)+N),w=o.x+2*l/3,N=o.y+2*u/3;var X=w,ut=N;It.B(u,0)?ut=0<l?ut-d:ut+d:(X=(0>u?-1:1)*y+w,ut=f*(X-w)+N),this.Fj(),this.ne(o),this.yf(F,nt),this.yf(X,ut),this.ne(T),this.dd(0,this.getLinkPoint(t,e,s,!0,!1,i,r)),this.dd(3,this.getLinkPoint(i,r,n,!1,!1,t,e))}else o=i,T=r,i=this.getLinkPoint(t,e,s,!0,!1,o,T),r=this.getLinkPoint(o,T,n,!1,!1,t,e),this.hasCurviness()?(T=r.x-i.x,n=r.y-i.y,s=this.computeCurviness(),t=i.x+T/2,e=i.y+n/2,o=t,l=e,It.B(n,0)?l=0<T?l-s:l+s:(T=-T/n,o=Math.sqrt(s*s/(T*T+1)),0>s&&(o=-o),o=(0>n?-1:1)*o+t,l=T*(o-t)+e),this.ne(i),this.yf(o,l),this.ne(r)):(this.ne(i),this.ne(r),l=Xt.alloc(),e.mi(l),u=l.ca(r),T.mi(l),d=l.ca(i),(u||d)&&(s=e.ga(im(s),new z),this.dd(0,this.getLinkPointFromPoint(t,e,s,r,!0,s)),n=T.ga(im(n),new z),this.dd(1,this.getLinkPointFromPoint(o,T,n,i,!1,n))),Xt.free(l))}else{y=this.isAvoiding,T&&(f&&y||d)&&this.Fj();var ht=d?this.computeCurviness():0;y=this.getLinkPoint(t,e,s,!0,f,i,r),w=F=N=0,(f||!l||d)&&(nt=this.computeEndSegmentLength(t,e,s,!0),w=this.getLinkDirection(t,e,y,s,!0,f,i,r),d&&(l||s.D(n)||!f&&s.x+n.x===1&&s.y+n.y===1)&&(w-=f?90:30,0>ht&&(w-=180)),0>w?w+=360:360<=w&&(w-=360),d&&(nt+=Math.abs(ht)*(f?1:2)),w===0?N=nt:w===90?F=nt:w===180?N=-nt:w===270?F=-nt:(N=nt*Math.cos(w*Math.PI/180),F=nt*Math.sin(w*Math.PI/180)),s.Mc()&&d&&(nt=e.ga(ei,z.alloc()),X=z.allocAt(nt.x+1e3*N,nt.y+1e3*F),this.getLinkPointFromPoint(t,e,nt,X,!0,y),z.free(nt),z.free(X))),nt=this.getLinkPoint(i,r,n,!1,f,t,e);var yt=ut=X=0;if(f||!u||d){var Nt=this.computeEndSegmentLength(i,r,n,!1);yt=this.getLinkDirection(i,r,nt,n,!1,f,t,e),d&&(u||s.D(n)||!f&&s.x+n.x===1&&s.y+n.y===1)&&(yt+=f?0:30,0>ht&&(yt+=180)),0>yt?yt+=360:360<=yt&&(yt-=360),d&&(Nt+=Math.abs(ht)*(f?1:2)),yt===0?X=Nt:yt===90?ut=Nt:yt===180?X=-Nt:yt===270?ut=-Nt:(X=Nt*Math.cos(yt*Math.PI/180),ut=Nt*Math.sin(yt*Math.PI/180)),n.Mc()&&d&&(n=r.ga(ei,z.alloc()),s=z.allocAt(n.x+1e3*X,n.y+1e3*ut),this.getLinkPointFromPoint(i,r,n,s,!1,nt),z.free(n),z.free(s))}n=y,(f||!l||d)&&(n=new z(y.x+N,y.y+F)),s=nt,(f||!u||d)&&(s=new z(nt.x+X,nt.y+ut)),!T&&!f&&l&&3<o&&this.adjustPoints(0,y,o-2,s)?this.dd(o-1,nt):!T&&!f&&u&&3<o&&this.adjustPoints(1,n,o-1,nt)?this.dd(0,y):!T&&(f?6<=o:4<o)&&this.adjustPoints(1,n,o-2,s)?(this.dd(0,y),this.dd(o-1,nt)):(this.Fj(),this.ne(y),(f||!l||d)&&this.ne(n),f&&this.addOrthoPoints(n,w,s,yt,t,i),(f||!u||d)&&this.ne(s),this.ne(nt))}return!0};function ev(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?(e.x>=t.x?e.x=t.x+9e9:e.x=t.x-9e9,e.y=t.y):(e.y>=t.y?e.y=t.y+9e9:e.y=t.y-9e9,e.x=t.x),e}Pe.prototype.getLinkPointFromPoint=function(t,e,n,i,r,o){if(o===void 0&&(o=new z),t===null||e===null)return o.assign(n),o;if(t.isVisible()||(r=t.findVisibleNode(),r!==null&&r!==t&&(e=r.port)),t=null,r=e.panel,r===null||r.se()||(r=r.panel),r===null){r=i.x,i=i.y;var s=n.x;n=n.y}else{t=r.oe,r=1/(t.m11*t.m22-t.m12*t.m21),s=t.m22*r;var l=-t.m12*r,u=-t.m21*r,d=t.m11*r,f=r*(t.m21*t.dy-t.m22*t.dx),y=r*(t.m12*t.dx-t.m11*t.dy);r=i.x*s+i.y*u+f,i=i.x*l+i.y*d+y,s=n.x*s+n.y*u+f,n=n.x*l+n.y*d+y}return e.Sj(r,i,s,n,o),t!==null&&o.transform(t),o};function nm(t,e){var n=e.Zn;return n===null&&(n=new vd,n.port=e,n.node=e.part,e.Zn=n),yx(n,t)}Pe.prototype.getLinkPoint=function(t,e,n,i,r,o,s,l){if(l===void 0&&(l=new z),n.sb()&&!lf(n))return e.ga(n,l),l;if(n.$c()){var u=nm(this,e);if(u!==null){if(l.assign(u.Zo),r&&this.routing===dx){var d=nm(this,s);if(d!==null&&u.Gl<d.Gl){u=z.alloc(),d=z.alloc();var f=new Xt(e.ga(vi,u),e.ga(tr,d)),y=this.computeSpot(!i,s);t=this.getLinkPoint(o,s,y,!i,r,t,e,d),(n.Hf(xs)||n.Hf(eo))&&t.y>=f.y&&t.y<=f.y+f.height?l.y=t.y:(n.Hf($r)||n.Hf(hs))&&t.x>=f.x&&t.x<=f.x+f.width&&(l.x=t.x),z.free(u),z.free(d)}}return l}}return n=e.ga(im(n),z.alloc()),this.pointsCount>(r?6:2)?(s=i?this.i(1):this.i(this.pointsCount-2),r&&(s=ev(n,s.copy()))):(u=this.computeSpot(!i,s),o=z.alloc(),s=s.ga(im(u),o),r&&(s=ev(n,s)),z.free(o)),this.getLinkPointFromPoint(t,e,n,s,i,l),z.free(n),l},Pe.prototype.getLinkDirection=function(t,e,n,i,r,o,s,l){t:if(i.sb())var u=i.x>i.y?i.x>1-i.y?0:i.x<1-i.y?270:315:i.x<i.y?i.x>1-i.y?90:i.x<1-i.y?180:135:.5>i.x?225:.5<i.x?45:0;else{if(i.$c()&&(u=nm(this,e),u!==null))switch(u.Nc){case 1:u=270;break t;case 2:u=180;break t;default:case 4:u=0;break t;case 8:u=90;break t}u=e.ga(ei,z.alloc()),this.pointsCount>(o?6:2)?(l=r?this.i(1):this.i(this.pointsCount-2),l=o?ev(u,l.copy()):n):(n=z.alloc(),l=l.ga(ei,n),z.free(n)),n=Math.abs(l.x-u.x)>Math.abs(l.y-u.y)?l.x>=u.x?0:180:l.y>=u.y?90:270,z.free(u),u=n}return i.Mc()&&s.Td(t)&&(u+=180,360<=u&&(u-=360)),lf(i)||(t=e.li(),t===0)||(45<=t&&135>t?u+=90:135<=t&&225>t?u+=180:225<=t&&315>t&&(u+=270),360<=u&&(u-=360)),u},Pe.prototype.computeEndSegmentLength=function(t,e,n,i){return e!==null&&n.$c()&&(t=nm(this,e),t!==null)?t.Ju:(t=i?this.fromEndSegmentLength:this.toEndSegmentLength,e!==null&&isNaN(t)&&(t=i?e.fromEndSegmentLength:e.toEndSegmentLength),isNaN(t)&&(t=10),t)},Pe.prototype.computeSpot=function(t,e){return e===void 0&&(e=null),t?(t=e||this.fromPort,t===null?t=ei:(e=this.fromSpot,e.Xb()&&(e=t.fromSpot),t=e===_o?qn:e)):(t=e||this.toPort,t===null?t=ei:(e=this.toSpot,e.Xb()&&(e=t.toSpot),t=e===_o?qn:e)),t};function lf(t){return t===qn||t.x===.5&&t.y===.5}function im(t){return t.x===.5&&t.y===.5?t:ei}Pe.prototype.computeOtherPoint=function(t,e){return this.computeAdjusting()!==da&&4<this.pointsCount?this.computeMidPoint(new z):(t=e.Zn,t=t!==null?yx(t,this):null,t!==null?t.Zo:e.ga(ei))},Pe.prototype.computeShortLength=function(t){if(t){if(t=this.fromShortLength,isNaN(t)){var e=this.fromPort;e!==null&&(t=e.fromShortLength)}return isNaN(t)?0:t}return t=this.toShortLength,isNaN(t)&&(e=this.toPort,e!==null&&(t=e.toShortLength)),isNaN(t)?0:t},Pe.prototype.Cf=function(t,e,n,i,r,o){if(this.pickable===!1)return!1;e===void 0&&(e=null),n===void 0&&(n=null);var s=o;if(o===void 0&&(s=jn.alloc(),s.reset()),s.multiply(this.transform),this.fh(t,s))return C0(this,e,n,r),o===void 0&&jn.free(s),!0;if(this.Yc(t,s)){var l=!1;if(!this.isAtomic)for(var u=this.O.s,d=u.length;d--;){var f=u[d];if(f.visible||f===this.locationObject){var y=f.actualBounds,T=this.naturalBounds;if(!(y.x>T.width||y.y>T.height||0>y.x+y.width||0>y.y+y.height)){if(y=jn.alloc(),y.set(s),f instanceof Re)l=f.Cf(t,e,n,i,r,y);else if(this.path===f){if(f instanceof ai)if(l=t,T=i,f.pickable===!1)l=!1;else if(y.multiply(f.transform),T)t:{var w=l,N=y;if(f.fh(w,N))l=!0;else{if(N===void 0&&(N=f.transform,w.Re(f.actualBounds))){l=!0;break t}l=w.left,T=w.right;var F=w.top;w=w.bottom;var nt=z.alloc(),X=z.alloc(),ut=z.alloc(),ht=jn.alloc();ht.set(N),ht.bv(f.transform),ht.Vj(),X.x=T,X.y=F,X.transform(ht),nt.x=l,nt.y=F,nt.transform(ht),N=!1,zh(f,nt,X,ut)?N=!0:(nt.x=T,nt.y=w,nt.transform(ht),zh(f,nt,X,ut)?N=!0:(X.x=l,X.y=w,X.transform(ht),zh(f,nt,X,ut)?N=!0:(nt.x=l,nt.y=F,nt.transform(ht),zh(f,nt,X,ut)&&(N=!0)))),jn.free(ht),z.free(nt),z.free(X),z.free(ut),l=N}}else l=f.fh(l,y)}else l=rs(f,t,i,y);l&&(T=f,e!==null&&(T=e(f)),T&&(n===null||n(T))&&r.add(T)),jn.free(y)}}}return o===void 0&&jn.free(s),l||this.background!==null||this.areaBackground!==null}return o===void 0&&jn.free(s),!1},Pe.prototype.computeCurve=function(){if(this.Wf===null){var t=this.fromPort,e=this.isOrthogonal;this.Wf=t!==null&&t===this.toPort&&!e}return this.Wf?fl:this.curve},Pe.prototype.computeCorner=function(){if(this.curve===fl)return 0;var t=this.corner;return(isNaN(t)||0>t)&&(t=10),t},Pe.prototype.findMidLabel=function(){for(var t=this.path,e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];if(r!==t&&!r.isPanelMain&&(r.segmentIndex===-1/0||isNaN(r.segmentIndex)))return r}for(t=this.labelNodes;t.next();)if(e=t.value,e.segmentIndex===-1/0||isNaN(e.segmentIndex))return e;return null},Pe.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var t=px;t=Math.max(t,this.computeThickness());var e=this.fromPort,n=this.toPort;if(e!==null&&n!==null){var i=this.findMidLabel();if(i!==null){var r=i.naturalBounds,o=i.margin,s=isNaN(r.width)?30:r.width*i.scale+o.left+o.right;r=isNaN(r.height)?14:r.height*i.scale+o.top+o.bottom,i=i.segmentOrientation,i===bp||i===lm||i===sv?t=Math.max(t,r):i===Sp||i===wp||i===Ep||i===Tp?t=Math.max(t,s):(e=e.ga(ei).ab(n.ga(ei))/180*Math.PI,t=Math.max(t,Math.abs(Math.sin(e)*s)+Math.abs(Math.cos(e)*r)+1)),this.curve===fl&&(t*=1.333)}}return t},Pe.prototype.arrangeBundledLinks=function(t,e){if(e)for(e=0;e<t.length;e++){var n=t[e];n.computeAdjusting()===da&&n.bb()}},Pe.prototype.computeCurviness=function(){var t=this.curviness;if(isNaN(t)){t=fx;var e=this.Sf;if(e!==null){for(var n=bn(),i=0,r=e.links,o=0;o<r.length;o++){var s=r[o].computeSpacing();n.push(s),i+=s}for(i=-i/2,o=0;o<r.length;o++){if(r[o]===this){t=i+n[o]/2;break}i+=n[o]}e.Ds===this.fromNode&&(t=-t),En(n)}}return t},Pe.prototype.computeThickness=function(){if(!this.isVisible())return 0;var t=this.path;return t!==null?Math.max(t.strokeWidth,1):1},Pe.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Pe.prototype.adjustPoints=function(t,e,n,i){var r=this.computeAdjusting();if(this.isOrthogonal){if(r===sm)return!1;r===am&&(r=xp)}switch(r){case sm:var o=this.i(t),s=this.i(n);if(!o.Xa(e)||!s.Xa(i)){r=o.x,o=o.y;var l=s.x-r,u=s.y-o,d=Math.sqrt(l*l+u*u);if(!It.$(d,0)){if(It.$(l,0))var f=0>u?-Math.PI/2:Math.PI/2;else f=Math.atan(u/Math.abs(l)),0>l&&(f=Math.PI-f);s=e.x;var y=e.y;l=i.x-s;var T=i.y-y;for(u=Math.sqrt(l*l+T*T),It.$(l,0)?T=0>T?-Math.PI/2:Math.PI/2:(T=Math.atan(T/Math.abs(l)),0>l&&(T=Math.PI-T)),d=u/d,f=T-f,this.dd(t,e),t+=1;t<n;t++)e=this.i(t),l=e.x-r,u=e.y-o,e=Math.sqrt(l*l+u*u),It.$(e,0)||(It.$(l,0)?u=0>u?-Math.PI/2:Math.PI/2:(u=Math.atan(u/Math.abs(l)),0>l&&(u=Math.PI-u)),l=u+f,e*=d,this.L(t,s+e*Math.cos(l),y+e*Math.sin(l)));this.dd(n,i)}}return!0;case am:if(o=this.i(t),y=this.i(n),!o.Xa(e)||!y.Xa(i)){r=o.x,o=o.y,s=y.x,y=y.y,d=(s-r)*(s-r)+(y-o)*(y-o),l=e.x,f=e.y,u=i.x,T=i.y;var w=1;if(u-l!==0){var N=(T-f)/(u-l);w=Math.sqrt(1+1/(N*N))}else N=9e9;for(this.dd(t,e),t+=1;t<n;t++){e=this.i(t);var F=e.x,nt=e.y,X=.5;d!==0&&(X=((r-F)*(r-s)+(o-nt)*(o-y))/d);var ut=r+X*(s-r),ht=o+X*(y-o);e=Math.sqrt((F-ut)*(F-ut)+(nt-ht)*(nt-ht)),nt<N*(F-ut)+ht&&(e=-e),0<N&&(e=-e),F=l+X*(u-l),X=f+X*(T-f),N!==0?(e=F+e/w,this.L(t,e,X-(e-F)/N)):this.L(t,F,X+e)}this.dd(n,i)}return!0;case xp:t:{if(this.isOrthogonal&&(r=this.i(t),o=this.i(t+1),s=this.i(t+2),l=o.x,f=o.y,y=l,d=f,It.B(r.y,o.y)?It.B(o.x,s.x)?f=e.y:It.B(o.y,s.y)&&(l=e.x):It.B(r.x,o.x)&&(It.B(o.y,s.y)?l=e.x:It.B(o.x,s.x)&&(f=e.y)),this.L(t+1,l,f),r=this.i(n),o=this.i(n-1),s=this.i(n-2),l=o.x,f=o.y,u=l,T=f,It.B(r.y,o.y)?It.B(o.x,s.x)?f=i.y:It.B(o.y,s.y)&&(l=i.x):It.B(r.x,o.x)&&(It.B(o.y,s.y)?l=i.x:It.B(o.x,s.x)&&(f=i.y)),this.L(n-1,l,f),nv(this))){this.L(t+1,y,d),this.L(n-1,u,T),n=!1;break t}this.dd(t,e),this.dd(n,i),n=!0}return n;default:return!1}},Pe.prototype.addOrthoPoints=function(t,e,n,i,r,o){0>e?e+=360:360<=e&&(e-=360),0>i?i+=360:360<=i&&(i-=360);var s=i;e=315<=e||45>e?0:45<=e&&135>e?90:135<=e&&225>e?180:270,i=315<=i||45>i?0:45<=i&&135>i?90:135<=i&&225>i?180:270;var l=r.actualBounds.copy(),u=o.actualBounds.copy();if(l.w()&&u.w()){l.Bc(Cp,Cp),u.Bc(Cp,Cp),l.Ye(t),u.Ye(n);var d=z.alloc(),f=z.alloc();e===0?n.x>t.x||i===270&&n.y<t.y&&u.right>t.x||i===90&&n.y>t.y&&u.right>t.x?(d.h(n.x,t.y),f.h(n.x,(t.y+n.y)/2),i===180?(d.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1),f.x=d.x,f.y=n.y):i===270&&n.y<t.y||i===90&&n.y>t.y?(d.x=t.x<u.left?this.computeMidOrthoPosition(t.x,t.y,u.left,n.y,!1):t.x<u.right&&(i===270&&t.y<u.top||i===90&&t.y>u.bottom)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):u.right,f.x=d.x,f.y=n.y):i===0&&t.x<u.left&&t.y>u.top&&t.y<u.bottom&&(d.x=t.x,d.y=t.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),f.y=d.y)):(d.h(t.x,n.y),f.h((t.x+n.x)/2,n.y),(i===180||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===180&&(u.ca(t)||l.ca(n))?d.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):n.y<t.y&&(i===180||i===90)?d.y=this.computeMidOrthoPosition(t.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>t.y&&(i===180||i===270)&&(d.y=this.computeMidOrthoPosition(t.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),f.x=n.x,f.y=d.y),d.y>l.top&&d.y<l.bottom&&(n.x>=l.left&&n.x<=t.x||t.x<=u.right&&t.x>=n.x?(i===90||i===270)&&(d.h(Math.max((t.x+n.x)/2,t.x),t.y),f.h(d.x,n.y)):(d.y=i===270||(i===0||i===180)&&n.y<t.y?Math.min(n.y,i===0?l.top:Math.min(l.top,u.top)):Math.max(n.y,i===0?l.bottom:Math.max(l.bottom,u.bottom)),f.x=n.x,f.y=d.y))):e===180?n.x<t.x||i===270&&n.y<t.y&&u.left<t.x||i===90&&n.y>t.y&&u.left<t.x?(d.h(n.x,t.y),f.h(n.x,(t.y+n.y)/2),i===0?(d.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1),f.x=d.x,f.y=n.y):i===270&&n.y<t.y||i===90&&n.y>t.y?(d.x=t.x>u.right?this.computeMidOrthoPosition(t.x,t.y,u.right,n.y,!1):t.x>u.left&&(i===270&&t.y<u.top||i===90&&t.y>u.bottom)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):u.left,f.x=d.x,f.y=n.y):i===180&&t.x>u.right&&t.y>u.top&&t.y<u.bottom&&(d.x=t.x,d.y=t.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),f.y=d.y)):(d.h(t.x,n.y),f.h((t.x+n.x)/2,n.y),(i===0||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===0&&(u.ca(t)||l.ca(n))?d.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):n.y<t.y&&(i===0||i===90)?d.y=this.computeMidOrthoPosition(t.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>t.y&&(i===0||i===270)&&(d.y=this.computeMidOrthoPosition(t.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),f.x=n.x,f.y=d.y),d.y>l.top&&d.y<l.bottom&&(n.x<=l.right&&n.x>=t.x||t.x>=u.left&&t.x<=n.x?(i===90||i===270)&&(d.h(Math.min((t.x+n.x)/2,t.x),t.y),f.h(d.x,n.y)):(d.y=i===270||(i===0||i===180)&&n.y<t.y?Math.min(n.y,i===180?l.top:Math.min(l.top,u.top)):Math.max(n.y,i===180?l.bottom:Math.max(l.bottom,u.bottom)),f.x=n.x,f.y=d.y))):e===90?n.y>t.y||i===180&&n.x<t.x&&u.bottom>t.y||i===0&&n.x>t.x&&u.bottom>t.y?(d.h(t.x,n.y),f.h((t.x+n.x)/2,n.y),i===270?(d.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0),f.x=n.x,f.y=d.y):i===180&&n.x<t.x||i===0&&n.x>t.x?(d.y=t.y<u.top?this.computeMidOrthoPosition(t.x,t.y,n.x,u.top,!0):t.y<u.bottom&&(i===180&&t.x<u.left||i===0&&t.x>u.right)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):u.bottom,f.x=n.x,f.y=d.y):i===90&&t.y<u.top&&t.x>u.left&&t.x<u.right&&(d.x=t.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),d.y=t.y,f.x=d.x)):(d.h(n.x,t.y),f.h(n.x,(t.y+n.y)/2),(i===270||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===270&&(u.ca(t)||l.ca(n))?d.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):n.x<t.x&&(i===270||i===0)?d.x=this.computeMidOrthoPosition(l.left,t.y,Math.max(n.x,u.right),n.y,!1):n.x>t.x&&(i===270||i===180)&&(d.x=this.computeMidOrthoPosition(l.right,t.y,Math.min(n.x,u.left),n.y,!1)),f.x=d.x,f.y=n.y),d.x>l.left&&d.x<l.right&&(n.y>=l.top&&n.y<=t.y||t.y<=u.bottom&&t.y>=n.y?(i===0||i===180)&&(d.h(t.x,Math.max((t.y+n.y)/2,t.y)),f.h(n.x,d.y)):(d.x=i===180||(i===90||i===270)&&n.x<t.x?Math.min(n.x,i===90?l.left:Math.min(l.left,u.left)):Math.max(n.x,i===90?l.right:Math.max(l.right,u.right)),f.x=d.x,f.y=n.y))):n.y<t.y||i===180&&n.x<t.x&&u.top<t.y||i===0&&n.x>t.x&&u.top<t.y?(d.h(t.x,n.y),f.h((t.x+n.x)/2,n.y),i===90?(d.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0),f.x=n.x,f.y=d.y):i===180&&n.x<t.x||i===0&&n.x>=t.x?(d.y=t.y>u.bottom?this.computeMidOrthoPosition(t.x,t.y,n.x,u.bottom,!0):t.y>u.top&&(i===180&&t.x<u.left||i===0&&t.x>u.right)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):u.top,f.x=n.x,f.y=d.y):i===270&&t.y>u.bottom&&t.x>u.left&&t.x<u.right&&(d.x=t.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),d.y=t.y,f.x=d.x)):(d.h(n.x,t.y),f.h(n.x,(t.y+n.y)/2),(i===90||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===90&&(u.ca(t)||l.ca(n))?d.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):n.x<t.x&&(i===90||i===0)?d.x=this.computeMidOrthoPosition(l.left,t.y,Math.max(n.x,u.right),n.y,!1):n.x>t.x&&(i===90||i===180)&&(d.x=this.computeMidOrthoPosition(l.right,t.y,Math.min(n.x,u.left),n.y,!1)),f.x=d.x,f.y=n.y),d.x>l.left&&d.x<l.right&&(n.y<=l.bottom&&n.y>=t.y||t.y>=u.top&&t.y<=n.y?(i===0||i===180)&&(d.h(t.x,Math.min((t.y+n.y)/2,t.y)),f.h(n.x,d.y)):(d.x=i===180||(i===90||i===270)&&n.x<t.x?Math.min(n.x,i===270?l.left:Math.min(l.left,u.left)):Math.max(n.x,i===270?l.right:Math.max(l.right,u.right)),f.x=d.x,f.y=n.y)));var y=n;if(this.isAvoiding){var T=this.diagram;if(T===null||r===o||this.layer.isTemporary||!zd(T)||l.ca(y)&&!o.Td(r)||u.ca(t)&&!r.Td(o))e=!1;else{var w=jd(T,!0,this.containingGroup,null);if(this.segmentIndex!==17&&w.Yj(Math.min(t.x,d.x),Math.min(t.y,d.y),Math.abs(t.x-d.x),Math.abs(t.y-d.y))&&w.Yj(Math.min(d.x,f.x),Math.min(d.y,f.y),Math.abs(d.x-f.x),Math.abs(d.y-f.y))&&w.Yj(Math.min(f.x,y.x),Math.min(f.y,y.y),Math.abs(f.x-y.x),Math.abs(f.y-y.y)))e=!1;else{r=t,o=y;var N=n=null;if(T.isVirtualized){T=w.bounds.copy(),T.Bc(-w.Ho,-w.Go);var F=z.alloc();cf(w,t.x,t.y)||(It.Ff(T.x,T.y,T.x+T.width,T.y+T.height,t.x,t.y,d.x,d.y,F)?(n=t=F.copy(),e=F.ab(d)):It.Ff(T.x,T.y,T.x+T.width,T.y+T.height,d.x,d.y,f.x,f.y,F)?(n=t=F.copy(),e=F.ab(f)):It.Ff(T.x,T.y,T.x+T.width,T.y+T.height,f.x,f.y,y.x,y.y,F)&&(n=t=F.copy(),e=F.ab(y))),cf(w,y.x,y.y)||(It.Ff(T.x,T.y,T.x+T.width,T.y+T.height,y.x,y.y,f.x,f.y,F)?(N=y=F.copy(),i=f.ab(F)):It.Ff(T.x,T.y,T.x+T.width,T.y+T.height,f.x,f.y,d.x,d.y,F)?(N=y=F.copy(),i=d.ab(F)):It.Ff(T.x,T.y,T.x+T.width,T.y+T.height,d.x,d.y,t.x,t.y,F)&&(N=y=F.copy(),i=t.ab(F))),z.free(F)}l=l.copy().ed(u),l.Bc(w.Ho*w.Os,w.Go*w.Os),mx(w,t,e,y,i,l,!0),u=Ku(w,y.x,y.y),!w.abort&&u>=hf&&(gx(w),l.Bc(w.Ho*w.Hx,w.Go*w.Ix),mx(w,t,e,y,i,l,!1),u=Ku(w,y.x,y.y)),!w.abort&&u<hf&&Ku(w,y.x,y.y)!==Oc?(iv(this,w,y.x,y.y,i,!0,s),l=this.i(2),4>this.pointsCount?(e===0||e===180?(l.x=t.x,l.y=y.y):(l.x=y.x,l.y=t.y),this.L(2,l.x,l.y),this.m(3,l.x,l.y)):(s=this.i(3),e===0||e===180?It.B(l.x,s.x)?(l=e===0?Math.max(l.x,t.x):Math.min(l.x,t.x),this.L(2,l,t.y),this.L(3,l,s.y)):It.B(l.y,s.y)?(Math.abs(t.y-l.y)<=w.Go/2&&(this.L(2,l.x,t.y),this.L(3,s.x,t.y)),this.m(2,l.x,t.y)):this.L(2,t.x,l.y):(e===90||e===270)&&(It.B(l.y,s.y)?(l=e===90?Math.max(l.y,t.y):Math.min(l.y,t.y),this.L(2,t.x,l),this.L(3,s.x,l)):It.B(l.x,s.x)?(Math.abs(t.x-l.x)<=w.Ho/2&&(this.L(2,t.x,l.y),this.L(3,t.x,s.y)),this.m(2,t.x,l.y)):this.L(2,l.x,t.y))),n!==null&&(t=this.i(1),s=this.i(2),t.x!==s.x&&t.y!==s.y?e===0||e===180?this.m(2,t.x,s.y):this.m(2,s.x,t.y):e===0||e===180?this.m(2,r.x,n.y):this.m(2,n.x,r.y)),N!==null&&(i===0||i===180?this.yf(o.x,N.y):this.yf(N.x,o.y)),e=!0):e=!1}}}else e=!1;e||(this.ne(d.copy()),this.ne(f.copy())),z.free(d),z.free(f)}},Pe.prototype.computeMidOrthoPosition=function(t,e,n,i,r){var o=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(o=this.computeCurviness()),r?(e+i)/2+o:(t+n)/2+o};function nv(t){if(t.diagram===null||!t.isAvoiding||!zd(t.diagram))return!1;var e=t.points.s,n=e.length;if(4>n)return!1;t=jd(t.diagram,!0,t.containingGroup,null);for(var i=1;i<n-2;i++){var r=e[i],o=e[i+1];if(!t.Yj(Math.min(r.x,o.x),Math.min(r.y,o.y),Math.abs(r.x-o.x),Math.abs(r.y-o.y)))return!0}return!1}function iv(t,e,n,i,r,o,s){var l=e.Ho,u=e.Go,d=Ku(e,n,i),f=n,y=i;for(r===0?f+=l:r===90?y+=u:r===180?f-=l:y-=u,r!==s&&d>Vh&&Ku(e,f,y)!==d-1&&(Ku(e,n-l,i)===d-1?(r=180,f=n-l,y=i):Ku(e,n+l,i)===d-1?(r=0,f=n+l,y=i):Ku(e,n,i-u)===d-1?(r=270,f=n,y=i-u):Ku(e,n,i+u)===d-1&&(r=90,f=n,y=i+u));d>Vh&&Ku(e,f,y)===d-1;)n=f,i=y,r===0?f+=l:r===90?y+=u:r===180?f-=l:y-=u,--d;o?d>Vh&&(r===180||r===0?n=Math.floor(n/l)*l+l/2:(r===90||r===270)&&(i=Math.floor(i/u)*u+u/2)):(n=Math.floor(n/l)*l+l/2,i=Math.floor(i/u)*u+u/2),d>Vh&&(o=r,s=n,f=i,r===0?(o=90,f+=u):r===90?(o=180,s-=l):r===180?(o=270,f-=u):r===270&&(o=0,s+=l),Ku(e,s,f)===d-1?iv(t,e,s,f,o,!1,o):(s=n,f=i,r===0?(o=270,f-=u):r===90?(o=0,s+=l):r===180?(o=90,f+=u):r===270&&(o=180,s-=l),Ku(e,s,f)===d-1&&iv(t,e,s,f,o,!1,o))),t.yf(n,i)}Pe.prototype.ez=function(t){var e=t.x;t=t.y;for(var n=this.i(0),i=this.i(1),r=nn(e,t,n.x,n.y,i.x,i.y),o=0,s=1;s<this.pointsCount-1;s++){n=this.i(s+1);var l=nn(e,t,i.x,i.y,n.x,n.y);i=n,l<r&&(o=s,r=l)}return o},Pe.prototype.qc=function(){this.lk=!1,this.v()},Pe.prototype.Ul=function(t){if(!(!t&&(this.fd===!1||(t=this.Pb(),this.lk&&(t===null||t.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),t=this.path,t!==null)){t.ua=this.ua;for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];r!==t&&r.isPanelMain&&r instanceof ai&&(r.ua=this.ua)}}},Pe.prototype.makeGeometry=function(){var t=this.ua,e=this.pointsCount,n=!1,i=this.diagram;i!==null&&Gh(this)&&i.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(i.animationManager.isAnimating||i.currentTool!==i.toolManager)&&(n=!0);var r=this.i(0).copy(),o=r.copy();i=this.Nb.s;var s=this.computeCurve();if(s===fl&&3<=e&&!It.$(this.smoothness,0))if(e===3){var l=this.i(1);i=Math.min(r.x,l.x);var u=Math.min(r.y,l.y);l=this.i(2),i=Math.min(i,l.x),u=Math.min(u,l.y)}else{if(this.isOrthogonal)for(u=0;u<e;u++)l=i[u],o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);else for(i=3;i<e;i+=3)i+3>=e&&(i=e-1),u=this.i(i),o.x=Math.min(u.x,o.x),o.y=Math.min(u.y,o.y);i=o.x,u=o.y}else{for(u=0;u<e;u++)l=i[u],o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);i=o.x,u=o.y}if(i-=this.su.x,u-=this.su.y,r.x-=i,r.y-=u,e!==2||Gh(this)){if(t.type=Oe.o,l=zy(t),this.computeShortLength(!0)!==0&&(r=fd(this,r,!0,o)),sf(l,r.x,r.y,!1),s===fl&&3<=e&&!It.$(this.smoothness,0))if(e===3)n=this.i(1),e=n.x-i,n=n.y-u,r=this.i(2).copy(),r.x-=i,r.y-=u,this.computeShortLength(!1)!==0&&(r=fd(this,r,!1,o)),Ac(l,e,n,e,n,r.x,r.y);else if(this.isOrthogonal){e=z.allocAt(i,u),n=z.alloc(),n.assign(this.i(1)),o=z.allocAt(i,u),r=z.allocAt(i,u),s=this.i(0);for(var d,f=this.smoothness/3,y=1;y<this.pointsCount-1;y++){d=this.i(y);var T=s,w=d,N=this.i(rv(this,d,y,!1));if((!It.$(T.x,w.x)||!It.$(w.x,N.x))&&(!It.$(T.y,w.y)||!It.$(w.y,N.y))){var F=f;isNaN(F)&&(F=this.smoothness/3);var nt=T.x;T=T.y;var X=w.x;w=w.y;var ut=N.x;N=N.y;var ht=F*rm(nt,T,X,w);F*=rm(X,w,ut,N),It.$(T,w)&&It.$(X,ut)&&(X>nt?N>w?(o.x=X-ht,o.y=w-ht,r.x=X+F,r.y=w+F):(o.x=X-ht,o.y=w+ht,r.x=X+F,r.y=w-F):N>w?(o.x=X+ht,o.y=w-ht,r.x=X-F,r.y=w+F):(o.x=X+ht,o.y=w+ht,r.x=X-F,r.y=w-F)),It.$(nt,X)&&It.$(w,N)&&(w>T?(ut>X?(o.x=X-ht,o.y=w-ht,r.x=X+F):(o.x=X+ht,o.y=w-ht,r.x=X-F),r.y=w+F):(ut>X?(o.x=X-ht,o.y=w+ht,r.x=X+F):(o.x=X+ht,o.y=w+ht,r.x=X-F),r.y=w-F)),(It.$(nt,X)&&It.$(X,ut)||It.$(T,w)&&It.$(w,N))&&(nt=.5*(nt+ut),T=.5*(T+N),o.x=nt,o.y=T,r.x=nt,r.y=T),(y===1||y===2&&It.$(s.x,this.i(0).x)&&It.$(s.y,this.i(0).y))&&(n.x=.5*(s.x+d.x),n.y=.5*(s.y+d.y)),Ac(l,n.x-i,n.y-u,o.x-i,o.y-u,d.x-i,d.y-u),e.set(o),n.set(r),s=d}}d=s.x,s=s.y,f=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(f=fd(this,f.copy(),!1,Xe)),d=.5*(d+f.x),s=.5*(s+f.y),Ac(l,r.x-i,r.y-u,d-i,s-u,f.x-i,f.y-u),z.free(e),z.free(n),z.free(o),z.free(r)}else for(n=3;n<e;n+=3)o=this.i(n-2),n+3>=e&&(n=e-1),r=this.i(n-1),s=this.i(n),n===e-1&&this.computeShortLength(!1)!==0&&(s=fd(this,s.copy(),!1,Xe)),Ac(l,o.x-i,o.y-u,r.x-i,r.y-u,s.x-i,s.y-u);else{for(o=z.alloc(),o.assign(this.i(0)),r=z.alloc(),r.assign(o),s=this.computeCorner(),y=1,d=0;y<e;){if(y=rv(this,o,y,1<y),f=this.i(y),y>=e-1){if(!o.D(f))this.computeShortLength(!1)!==0&&(f=fd(this,f.copy(),!1,Xe)),pd(this,l,-i,-u,o,f,n);else if(d===0)for(y=1;y<e;)r.assign(o),f=this.i(y++),pd(this,l,-i,-u,o,f,n),o.assign(f);break}if(d=rv(this,f,y+1,y<e-3),y=-i,nt=-u,T=f,X=this.i(d),F=n,It.B(o.y,T.y)&&It.B(T.x,X.x))if(N=Math.min(s,Math.abs(T.x-r.x)/2),N=ht=Math.min(N,Math.abs(X.y-T.y)/2),It.B(N,0))pd(this,l,y,nt,o,T,F),o.assign(T);else{var yt=T.x,Nt=T.y;w=yt,ut=Nt,T.x>o.x?yt=T.x-N:yt=T.x+N,X.y>T.y?ut=T.y+ht:ut=T.y-ht,X=z.allocAt(yt,Nt),pd(this,l,y,nt,o,X,F),z.free(X),Zg(l,T.x+y,T.y+nt,w+y,ut+nt),o.h(w,ut)}else It.B(o.x,T.x)&&It.B(T.y,X.y)?(N=Math.min(s,Math.abs(T.y-r.y)/2),N=ht=Math.min(N,Math.abs(X.x-T.x)/2),It.B(ht,0)?(pd(this,l,y,nt,o,T,F),o.assign(T)):(yt=T.x,Nt=T.y,w=yt,ut=Nt,T.y>o.y?Nt=T.y-N:Nt=T.y+N,X.x>T.x?w=T.x+ht:w=T.x-ht,X=z.allocAt(yt,Nt),pd(this,l,y,nt,o,X,F),z.free(X),Zg(l,T.x+y,T.y+nt,w+y,ut+nt),o.h(w,ut))):(pd(this,l,y,nt,o,T,F),o.assign(T));r.assign(f),y=d}z.free(o)}$g=l}else l=this.i(1).copy(),l.x-=i,l.y-=u,this.computeShortLength(!0)!==0&&(r=fd(this,r,!0,o)),this.computeShortLength(!1)!==0&&(l=fd(this,l,!1,o)),t.type=Oe.j,t.startX=r.x,t.startY=r.y,t.endX=l.x,t.endY=l.y;return this.lk=!0,t};function rm(t,e,n,i){return t=n-t,isNaN(t)||t===1/0||t===-1/0?NaN:(0>t&&(t=-t),e=i-e,isNaN(e)||e===1/0||e===-1/0?NaN:(0>e&&(e=-e),It.$(t,0)?e:It.$(e,0)?t:Math.sqrt(t*t+e*e)))}function fd(t,e,n,i){var r=t.pointsCount;if(2>r)return e;if(n){var o=t.i(1);if(n=o.x-i.x,o=o.y-i.y,i=rm(e.x,e.y,n,o),i===0)return e;r=r===2?.5*i:i,t=t.computeShortLength(!0),t>r&&(t=r),r=t*(o-e.y)/i,e.x+=t*(n-e.x)/i,e.y+=r}else{if(o=t.i(r-2),n=o.x-i.x,o=o.y-i.y,i=rm(e.x,e.y,n,o),i===0)return e;r=r===2?.5*i:i,t=t.computeShortLength(!1),t>r&&(t=r),r=t*(e.y-o)/i,e.x-=t*(e.x-n)/i,e.y-=r}return e}function rv(t,e,n,i){for(var r=t.pointsCount,o=e;It.$(e.x,o.x)&&It.$(e.y,o.y);){if(n>=r)return r-1;o=t.i(n++)}if(!It.$(e.x,o.x)&&!It.$(e.y,o.y))return n-1;for(var s=o;It.$(e.x,o.x)&&It.$(o.x,s.x)&&(!i||(e.y>=o.y?o.y>=s.y:o.y<=s.y))||It.$(e.y,o.y)&&It.$(o.y,s.y)&&(!i||(e.x>=o.x?o.x>=s.x:o.x<=s.x));){if(n>=r)return r-1;s=t.i(n++)}return n-2}Pe.prototype.computeJumpLength=function(){return 10};function pd(t,e,n,i,r,o,s){if(!s&&Gh(t)){s=t.computeJumpLength();var l=s/2,u=[],d=0;if(t.isVisible()&&(d=U1(t,r,o,u)),0<d){if(It.B(r.y,o.y))if(r.x<o.x)for(var f=0;f<d;){var y=Math.max(r.x,Math.min(u[f++]-l,o.x-s));e.lineTo(y+n,o.y+i);for(var T=y+n,w=Math.min(y+s,o.x);f<d&&(y=u[f],y<w+s);)f++,w=Math.min(y+l,o.x);y=o.y-s+i,w+=n;var N=o.y+i;t.curve===Mc?sf(e,w,N,!1):Ac(e,T,y,w,y,w,N)}else for(--d;0<=d;){for(f=Math.min(r.x,Math.max(u[d--]+l,o.x+s)),e.lineTo(f+n,o.y+i),T=f+n,y=Math.max(f-s,o.x);0<=d&&(f=u[d],f>y-s);)d--,y=Math.max(f-l,o.x);f=o.y-s+i,y+=n,w=o.y+i,t.curve===Mc?sf(e,y,w,!1):Ac(e,T,f,y,f,y,w)}else if(It.B(r.x,o.x))if(r.y<o.y)for(f=0;f<d;){for(y=Math.max(r.y,Math.min(u[f++]-l,o.y-s)),e.lineTo(o.x+n,y+i),T=y+i,y=Math.min(y+s,o.y);f<d&&(w=u[f],w<y+s);)f++,y=Math.min(w+l,o.y);w=o.x-s+n,N=o.x+n,y+=i,t.curve===Mc?sf(e,N,y,!1):Ac(e,w,T,w,y,N,y)}else for(--d;0<=d;){for(f=Math.min(r.y,Math.max(u[d--]+l,o.y+s)),e.lineTo(o.x+n,f+i),T=f+i,f=Math.max(f-s,o.y);0<=d&&(y=u[d],y>f-s);)d--,f=Math.max(y-l,o.y);y=o.x-s+n,w=o.x+n,f+=i,t.curve===Mc?sf(e,w,f,!1):Ac(e,y,T,y,f,w,f)}}}e.lineTo(o.x+n,o.y+i)}function U1(t,e,n,i){var r=t.diagram;if(r===null||e.D(n))return 0;for(r=r.layers;r.next();){var o=r.value;if(o!==null&&o.visible){o=o.Pa.s;for(var s=o.length,l=0;l<s;l++){var u=o[l];if(u instanceof Pe){if(u===t)return 0<i.length&&i.sort(function(f,y){return f-y}),i.length;if(u.isVisible()&&Gh(u)){var d=u.routeBounds;d.w()&&t.routeBounds.Yc(d)&&!t.usesSamePort(u)&&(d=u.path,d!==null&&d.Ed()&&H1(e,n,i,u))}}}}}return 0<i.length&&i.sort(function(f,y){return f-y}),i.length}function H1(t,e,n,i){for(var r=It.B(t.y,e.y),o=i.pointsCount,s=i.i(0),l=z.alloc(),u=1;u<o;u++){var d=i.i(u);if(u<o-1){var f=i.i(u+1);if(s.y===d.y&&d.y===f.y){if(d.x>s.x&&f.x>=d.x||d.x<s.x&&f.x<=d.x)continue}else if(s.x===d.x&&d.x===f.x&&(d.y>s.y&&f.y>=d.y||d.y<s.y&&f.y<=d.y))continue}t:{f=t.x;var y=t.y,T=e.x,w=e.y,N=s.x;s=s.y;var F=d.x,nt=d.y;if(It.B(f,T)){if(!It.B(y,w)&&It.B(s,nt)&&Math.min(y,w)<s&&Math.max(y,w)>s&&Math.min(N,F)<f&&Math.max(N,F)>f&&!It.B(N,F)){l.x=f,l.y=s,f=!0;break t}}else if(It.B(y,w)&&It.B(N,F)&&Math.min(f,T)<N&&Math.max(f,T)>N&&Math.min(s,nt)<y&&Math.max(s,nt)>y&&!It.B(s,nt)){l.x=N,l.y=y,f=!0;break t}l.x=0,l.y=0,f=!1}f&&(r?n.push(l.x):n.push(l.y)),s=d}z.free(l)}function Gh(t){return t=t.curve,t===uf||t===Mc}function om(t,e){(e||Gh(t))&&(e=t.diagram,e===null||e.animationManager.isTicking||e.Eh.contains(t)||t.ml.width===0&&t.ml.height===0||e.Eh.add(t,t.ml.copy()))}Pe.prototype.Xo=function(t){var e=this.layer;if(e!==null&&e.visible&&!e.isTemporary){var n=e.diagram;if(n!==null&&!n.animationManager.isTicking){var i=!1;for(n=n.layers;n.next();){var r=n.value;if(r.visible){if(r===e){i=!0;var o=!1;r=r.Pa.s;for(var s=r.length,l=0;l<s;l++){var u=r[l];u instanceof Pe&&(u===this?o=!0:o&&hx(this,u,t))}}else if(i)for(o=r.Pa.s,r=o.length,s=0;s<r;s++)l=o[s],l instanceof Pe&&hx(this,l,t)}}}}};function hx(t,e,n){if(e!==null&&e.lk&&e.fd&&Gh(e)){var i=e.routeBounds;i.w()&&(t.routeBounds.Yc(i)||n.Yc(i))&&(t.usesSamePort(e)||e.qc())}}Pe.prototype.usesSamePort=function(t){var e=this.pointsCount,n=t.pointsCount;if(0<e&&0<n){var i=this.i(0),r=t.i(0);if(i.Xa(r)||(e=this.i(e-1),t=t.i(n-1),e.Xa(t)||i.Xa(t)||e.Xa(r)))return!0}else if(this.fromNode===t.fromNode||this.toNode===t.toNode||this.fromNode===t.toNode||this.toNode===t.fromNode)return!0;return!1},Pe.prototype.isVisible=function(){if(!Rn.prototype.isVisible.call(this))return!1;var t=this.containingGroup,e=!0,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren),n=this.fromNode,n!==null){if(this.isTreeLink&&e&&!n.isTreeExpanded)return!1;if(n===t)return!0;for(var i=n;i!==null;){if(i.labeledLink===this)return!0;i=i.containingGroup}if(n=n.findVisibleNode(),n===null||n===t)return!1}if(n=this.toNode,n!==null){if(this.isTreeLink&&!e&&!n.isTreeExpanded)return!1;if(n===t)return!0;for(e=n;e!==null;){if(e.labeledLink===this)return!0;e=e.containingGroup}if(e=n.findVisibleNode(),e===null||e===t)return!1}return!0},Pe.prototype.Zb=function(t){if(Rn.prototype.Zb.call(this,t),t&&om(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var e=this.wd.iterator;e.next();)e.value.Zb(t)},Pe.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?xp:this.qk};function vp(t){var e=t.ef;if(e!==null){var n=t.uf;if(n!==null&&isNaN(t.curviness)){for(var i=t.ff,r=t.vf,o=t=null,s=e.jb.s,l=s.length,u=0;u<l;u++){var d=s[u];(d.ef===e&&d.ff===i&&d.uf===n&&d.vf===r||d.ef===n&&d.ff===r&&d.uf===e&&d.vf===i)&&(o===null?o=d:(t===null&&(t=[],t.push(o)),t.push(d)))}if(t!==null){for(o=qy(e,n,i,r),o===null&&(o=new cm(e,i,n,r),Jy(e,o),Jy(n,o)),o.links=t,e=0;e<t.length;e++)t[e].Sf=o;o.Sl()}}}}function yp(t){var e=t.Sf;e!==null&&isNaN(t.curviness)&&(t.Sf=null,t=e.links.indexOf(t),0<=t&&(R(e.links,t),e.Sl()))}Pe.prototype.ph=function(){return!0},Mn.Object.defineProperties(Pe.prototype,{fromNode:{get:function(){return this.ef},set:function(t){var e=this.ef;if(e!==t){var n=this.fromPort;e!==null&&(this.uf!==e&&qg(e,this,n),yp(this),this.C(2)),this.ef=t,t!==null&&this.Zb(t.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setFromNodeForLink(this,t,e);var r=this.fromPort,o=this.fromPortChanged;if(o!==null){var s=!0;i!==null&&(s=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=s)}t!==null&&(this.uf!==t&&Jg(t,this,r),vp(this),this.C(1)),this.g("fromNode",e,t),af(this)}}},fromPortId:{get:function(){return this.ff},set:function(t){var e=this.ff;if(e!==t){var n=this.fromPort;n!==null&&Xa(n),yp(this),this.ff=t;var i=this.fromPort;i!==null&&Xa(i);var r=this.diagram;if(r!==null){var o=this.data,s=r.model;o!==null&&s.ri()&&s.xv(o,t)}n!==i&&(this.Wf=null,this.bb(),o=this.fromPortChanged,o!==null&&(s=!0,r!==null&&(s=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=s))),vp(this),this.g("fromPortId",e,t)}}},fromPort:{get:function(){var t=this.ef;return t===null?null:t.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(t){var e=this.gn;e!==t&&(this.gn=t,this.g("fromPortChanged",e,t))}},toNode:{get:function(){return this.uf},set:function(t){var e=this.uf;if(e!==t){var n=this.toPort;e!==null&&(this.ef!==e&&qg(e,this,n),yp(this),this.C(2)),this.uf=t,t!==null&&this.Zb(t.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setToNodeForLink(this,t,e);var r=this.toPort,o=this.toPortChanged;if(o!==null){var s=!0;i!==null&&(s=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=s)}t!==null&&(this.ef!==t&&Jg(t,this,r),vp(this),this.C(1)),this.g("toNode",e,t),af(this)}}},toPortId:{get:function(){return this.vf},set:function(t){var e=this.vf;if(e!==t){var n=this.toPort;n!==null&&Xa(n),yp(this),this.vf=t;var i=this.toPort;i!==null&&Xa(i);var r=this.diagram;if(r!==null){var o=this.data,s=r.model;o!==null&&s.ri()&&s.Cv(o,t)}n!==i&&(this.Wf=null,this.bb(),o=this.toPortChanged,o!==null&&(s=!0,r!==null&&(s=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=s))),vp(this),this.g("toPortId",e,t)}}},toPort:{get:function(){var t=this.uf;return t===null?null:t.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(t){var e=this.uo;e!==t&&(this.uo=t,this.g("toPortChanged",e,t))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:_o},set:function(t){var e=this.fromSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.Xi=t,this.g("fromSpot",e,t),(e.$c()||t.$c())&&this.fromNode!==null&&Xa(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(t){var e=this.fromEndSegmentLength;e!==t&&(0>t&&rn(t,">= 0",Pe,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=t,this.g("fromEndSegmentLength",e,t),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(t){var e=this.fromShortLength;e!==t&&(this.Xc(),this.ba.Wi=t,this.qc(),this.g("fromShortLength",e,t))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:_o},set:function(t){var e=this.toSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.yj=t,this.g("toSpot",e,t),(e.$c()||t.$c())&&this.toNode!==null&&Xa(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(t){var e=this.toEndSegmentLength;e!==t&&(0>t&&rn(t,">= 0",Pe,"toEndSegmentLength"),this.Xc(),this.ba.wj=t,this.g("toEndSegmentLength",e,t),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(t){var e=this.toShortLength;e!==t&&(this.Xc(),this.ba.xj=t,this.qc(),this.g("toShortLength",e,t))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?sr:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(t){var e=(this.Qa&1)!==0;e!==t&&(this.Qa^=1,this.g("relinkableFrom",e,t),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(t){var e=(this.Qa&2)!==0;e!==t&&(this.Qa^=2,this.g("relinkableTo",e,t),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(t){var e=(this.Qa&4)!==0;e!==t&&(this.Qa^=4,this.g("resegmentable",e,t),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(t){var e=(this.Qa&8)!==0;e!==t&&(this.Qa^=8,this.g("isTreeLink",e,t),this.fromNode!==null&&mp(this.fromNode),this.toNode!==null&&mp(this.toNode))}},path:{get:function(){var t=this.Pb();return t instanceof ai?t:null}},routeBounds:{get:function(){this.vg();var t=this.ml,e=1/0,n=1/0,i=this.pointsCount;if(i===0)t.h(NaN,NaN,0,0);else{if(i===1)i=this.i(0),e=Math.min(i.x,e),n=Math.min(i.y,n),t.h(i.x,i.y,0,0);else if(i===2){i=this.i(0);var r=this.i(1);e=Math.min(i.x,r.x),n=Math.min(i.y,r.y),t.h(i.x,i.y,0,0),t.Ye(r)}else if(this.computeCurve()===fl&&3<=i&&!this.isOrthogonal)if(r=this.i(0),e=r.x,n=r.y,t.h(e,n,0,0),i===3){i=this.i(1),e=Math.min(i.x,e),n=Math.min(i.y,n);var o=this.i(2);e=Math.min(o.x,e),n=Math.min(o.y,n),It.Dl(r.x,r.y,i.x,i.y,i.x,i.y,o.x,o.y,.5,t)}else for(o=3;o<i;o+=3){var s=this.i(o-2);o+3>=i&&(o=i-1);var l=this.i(o-1),u=this.i(o);It.Dl(r.x,r.y,s.x,s.y,l.x,l.y,u.x,u.y,.5,t),e=Math.min(u.x,e),n=Math.min(u.y,n),r=u}else for(r=this.i(0),o=this.i(1),e=Math.min(r.x,o.x),n=Math.min(r.y,o.y),t.h(r.x,r.y,0,0),t.Ye(o),r=2;r<i;r++)o=this.i(r),e=Math.min(o.x,e),n=Math.min(o.y,n),t.Ye(o);this.su.h(e-t.x,n-t.y)}return t}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new z)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||em(this);for(var t=this.cq=[],e=this.pointsCount,n=0;n<e-1;n++){var i=this.i(n),r=this.i(n+1);It.$(i.x,r.x)?(i=r.y-i.y,0>i&&(i=-i)):It.$(i.y,r.y)?(i=r.x-i.x,0>i&&(i=-i)):i=Math.sqrt(i.Bf(r)),t.push(i)}}return this.cq}},flattenedTotalLength:{get:function(){var t=this.vt;if(isNaN(t)){for(var e=this.flattenedLengths,n=e.length,i=t=0;i<n;i++)t+=e[i];this.vt=t}return t}},points:{get:function(){return this.Nb},set:function(t){var e=this.Nb;if(e!==t){var n=null;if(Array.isArray(t)){var i=t.length%2===0;if(i){for(var r=0;r<t.length;r++)if(typeof t[r]!="number"||isNaN(t[r])){i=!1;break}}if(i)for(n=new Te,i=0;i<t.length/2;i++)r=new z(t[2*i],t[2*i+1]).freeze(),n.add(r);else{for(i=!0,r=0;r<t.length;r++){var o=t[r];if(!Ut(o)||typeof o.x!="number"||isNaN(o.x)||typeof o.y!="number"||isNaN(o.y)){i=!1;break}}if(i)for(n=new Te,i=0;i<t.length;i++)r=t[i],n.add(new z(r.x,r.y).freeze())}}else if(t instanceof Te)for(n=t.copy(),t=n.iterator;t.next();)t.value.freeze();else Et("Link.points value is not an instance of List or Array: "+t);n.freeze(),this.Nb=n,this.qc(),em(this),t=this.diagram,t!==null&&(t.pi||t.undoManager.isUndoingRedoing||t.As.add(this),t.animationManager.zb&&h(t.animationManager,this,n)),this.g("points",e,n)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(t){(this.Qa&16)!==0!==t&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(t){(this.Qa&32)!==0!==t&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(t){(this.Qa&64)!==0!==t&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(t){this.o=t.copy()}},defaultToPoint:{get:function(){return this.u},set:function(t){this.u=t.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(t){(this.Qa&128)!==0!==t&&(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||!lf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var t=this.pointsCount;return t===0?0:2>=t?t-1:this.isOrthogonal||!lf(this.computeSpot(!1))?t-2:t-1}},adjusting:{get:function(){return this.qk},set:function(t){var e=this.qk;e!==t&&(this.qk=t,this.g("adjusting",e,t))}},corner:{get:function(){return this.Om},set:function(t){var e=this.Om;e!==t&&(this.Om=t,this.qc(),this.g("corner",e,t))}},curve:{get:function(){return this.Qm},set:function(t){var e=this.Qm;e!==t&&(this.Qm=t,this.bb(),this.qc(),om(this,e===Mc||e===uf||t===Mc||t===uf),this.g("curve",e,t))}},curviness:{get:function(){return this.Rm},set:function(t){var e=this.Rm;e!==t&&(this.Rm=t,this.bb(),this.qc(),this.g("curviness",e,t))}},routing:{get:function(){return this.qj},set:function(t){var e=this.qj;e!==t&&(this.qj=t,this.Wf=null,this.bb(),om(this,(e.value&2)===2||(t.value&2)===2),this.g("routing",e,t))}},smoothness:{get:function(){return this.po},set:function(t){var e=this.po;e!==t&&(this.po=t,this.qc(),this.g("smoothness",e,t))}},key:{get:function(){var t=this.diagram;if(t!==null&&t.model.ri())return t.model.Ac(this.data)}}}),Pe.prototype.invalidateOtherJumpOvers=Pe.prototype.Xo,Pe.prototype.findClosestSegment=Pe.prototype.ez,Pe.prototype.updateRoute=Pe.prototype.vg,Pe.prototype.invalidateRoute=Pe.prototype.bb,Pe.prototype.rollbackRoute=Pe.prototype.rv,Pe.prototype.commitRoute=Pe.prototype.zf,Pe.prototype.startRoute=Pe.prototype.uh,Pe.prototype.clearPoints=Pe.prototype.Fj,Pe.prototype.removePoint=Pe.prototype.pv,Pe.prototype.addPointAt=Pe.prototype.yf,Pe.prototype.addPoint=Pe.prototype.ne,Pe.prototype.insertPointAt=Pe.prototype.m,Pe.prototype.insertPoint=Pe.prototype.Kz,Pe.prototype.setPointAt=Pe.prototype.L,Pe.prototype.setPoint=Pe.prototype.dd,Pe.prototype.getPoint=Pe.prototype.i,Pe.prototype.getOtherPort=Pe.prototype.Cz,Pe.prototype.getOtherNode=Pe.prototype.To;var gd=null,md=null,ov=new xe(Pe,"Normal",1),z1=new xe(Pe,"Orthogonal",2),j1=new xe(Pe,"AvoidsNodes",6),dx=new xe(Pe,"AvoidsNodesStraight",7),da=new xe(Pe,"None",0),fl=new xe(Pe,"Bezier",9),Mc=new xe(Pe,"JumpGap",10),uf=new xe(Pe,"JumpOver",11),xp=new xe(Pe,"End",17),sm=new xe(Pe,"Scale",18),am=new xe(Pe,"Stretch",19),bp=new xe(Pe,"OrientAlong",21),Ep=new xe(Pe,"OrientPlus90",22),Sp=new xe(Pe,"OrientMinus90",23),sv=new xe(Pe,"OrientOpposite",24),lm=new xe(Pe,"OrientUpright",25),Tp=new xe(Pe,"OrientPlus90Upright",26),wp=new xe(Pe,"OrientMinus90Upright",27),um=new xe(Pe,"OrientUpright45",28),fx=16,px=14,Cp=8;Pe.className="Link",Pe.Normal=ov,Pe.Orthogonal=z1,Pe.AvoidsNodes=j1,Pe.AvoidsNodesStraight=dx,Pe.None=da,Pe.Bezier=fl,Pe.JumpGap=Mc,Pe.JumpOver=uf,Pe.End=xp,Pe.Scale=sm,Pe.Stretch=am,Pe.OrientAlong=bp,Pe.OrientPlus90=Ep,Pe.OrientMinus90=Sp,Pe.OrientOpposite=sv,Pe.OrientUpright=lm,Pe.OrientPlus90Upright=Tp,Pe.OrientMinus90Upright=wp,Pe.OrientUpright45=um,Pe.EndSegmentStep=8,Pe.CurvinessStart=fx,Pe.SpacingMin=px,Pe.OrthoShortCut=Cp;function cm(t,e,n,i){Gn(this),this.Fe=this.qq=!1,this.Ds=t,this.Ox=e,this.cv=n,this.Px=i,this.links=[]}cm.prototype.Sl=function(){if(!this.qq){var t=this.links;0<t.length&&(t=t[0].diagram,t!==null&&(t.ow.add(this),this.Fe=t.undoManager.isUndoingRedoing))}this.qq=!0},cm.prototype.Nv=function(){if(this.qq){this.qq=!1;var t=this.links;if(0<t.length){var e=t[0],n=e.diagram;n=n===null||n.pi&&!this.Fe,this.Fe=!1,e.arrangeBundledLinks(t,n),t.length===1&&(e.Sf=null,t.length=0)}t.length===0&&(t=this.Ds,this!==null&&t.af!==null&&t.af.remove(this),t=this.cv,this!==null&&t.af!==null&&t.af.remove(this))}},cm.className="LinkBundle";function kp(t){Gn(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=t.width,this.sc=t.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}kp.prototype.initialize=function(t){if(!(0>=t.width||0>=t.height)){var e=t.y,n=t.x+t.width,i=t.y+t.height;if(this.Nd=Math.floor((t.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((e-this.sc)/this.sc)*this.sc,this.En=Math.ceil((n+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((i+2*this.sc)/this.sc)*this.sc,t=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),e=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<t-1||this.ei<e-1){for(n=[],i=0;i<=t;i++)n[i]=new Uint32Array(e);this.ac=n,this.di=t-1,this.ei=e-1}if(t=av,this.ac!==null)for(e=0;e<=this.di;e++)if(n=this.ac[e],n.fill)n.fill(t);else for(i=0;i<=this.ei;i++)n[i]=t}};function cf(t,e,n){return t.Nd<=e&&e<=t.En&&t.Od<=n&&n<=t.Fn}function Ku(t,e,n){return cf(t,e,n)?(e-=t.Nd,e/=t.rc,n-=t.Od,n/=t.sc,t.ac[e|0][n|0]):av}function gx(t){if(t.ac!==null)for(var e=0;e<=t.di;e++)for(var n=t.ac[e],i=0;i<=t.ei;i++)n[i]>=Vh&&(n[i]=av)}kp.prototype.Yj=function(t,e,n,i){if(t>this.En||t+n<this.Nd||e>this.Fn||e+i<this.Od)return!0;t=(t-this.Nd)/this.rc|0,e=(e-this.Od)/this.sc|0,n=Math.max(0,n)/this.rc+1|0;var r=Math.max(0,i)/this.sc+1|0;if(0>t&&(n+=t,t=0),0>e&&(r+=e,e=0),0>n||0>r)return!0;for(i=Math.min(t+n-1,this.di)|0,n=Math.min(e+r-1,this.ei)|0;t<=i;t++){r=this.ac[t];for(var o=e;o<=n;o++)if(r[o]===Oc)return!1}return!0};function Zu(t,e,n,i,r,o,s,l,u){if(!(e<o||e>s||n<l||n>u)){var d=e|0,f=n|0,y=t.ac[d][f];if(y>=Vh&&y<hf)for(r?f+=i:d+=i,y+=1;o<=d&&d<=s&&l<=f&&f<=u&&!(y>=t.ac[d][f]);)t.ac[d][f]=y,y+=1,r?f+=i:d+=i;if(d=r?f:d,r)if(0<i)for(n+=i;n<d;n+=i)Zu(t,e,n,1,!r,o,s,l,u),Zu(t,e,n,-1,!r,o,s,l,u);else for(n+=i;n>d;n+=i)Zu(t,e,n,1,!r,o,s,l,u),Zu(t,e,n,-1,!r,o,s,l,u);else if(0<i)for(e+=i;e<d;e+=i)Zu(t,e,n,1,!r,o,s,l,u),Zu(t,e,n,-1,!r,o,s,l,u);else for(e+=i;e>d;e+=i)Zu(t,e,n,1,!r,o,s,l,u),Zu(t,e,n,-1,!r,o,s,l,u)}}function hm(t,e,n,i,r,o,s,l,u){e|=0,n|=0;var d=Oc,f=Vh;for(t.ac[e][n]=f;d===Oc&&e>o&&e<s&&n>l&&n<u;)f+=1,t.ac[e][n]=f,r?n+=i:e+=i,d=t.ac[e][n]}function dm(t,e,n,i,r,o,s,l,u){e|=0,n|=0;var d=Oc,f=hf;for(t.ac[e][n]=f;d===Oc&&e>o&&e<s&&n>l&&n<u;)t.ac[e][n]=f,r?n+=i:e+=i,d=t.ac[e][n]}function mx(t,e,n,i,r,o,s){if(t.ac!==null){t.abort=!1;var l=e.x,u=e.y;if(cf(t,l,u)){l-=t.Nd,l/=t.rc,u-=t.Od,u/=t.sc;var d=i.x,f=i.y;if(cf(t,d,f))if(d-=t.Nd,d/=t.rc,f-=t.Od,f/=t.sc,1>=Math.abs(l-d)&&1>=Math.abs(u-f))t.abort=!0;else{var y=o.x;i=o.y,e=o.x+o.width;var T=o.y+o.height;y-=t.Nd,y/=t.rc,i-=t.Od,i/=t.sc,e-=t.Nd,e/=t.rc,T-=t.Od,T/=t.sc,o=Math.max(0,Math.min(t.di,y|0)),e=Math.min(t.di,Math.max(0,e|0)),y=Math.max(0,Math.min(t.ei,i|0)),T=Math.min(t.ei,Math.max(0,T|0)),i=t.ac,l|=0,u|=0,d|=0,f|=0;var w=n===0||n===90?1:-1;if(n=n===90||n===270,i[l][u]===Oc?(hm(t,l,u,w,n,o,e,y,T),hm(t,l,u,1,!n,o,e,y,T),hm(t,l,u,-1,!n,o,e,y,T)):hm(t,l,u,w,n,l,u,l,u),i[d][f]===Oc?(dm(t,d,f,r===0||r===90?1:-1,r===90||r===270,o,e,y,T),dm(t,d,f,1,!(r===90||r===270),o,e,y,T),dm(t,d,f,-1,!(r===90||r===270),o,e,y,T)):dm(t,d,f,w,n,d,f,d,f),n=bn(),s&&vx(t,d,f,r,l,u,n))for((n[0]!==d||n[1]!==f)&&(n.unshift(f),n.unshift(d)),(n[n.length-2]!==l||n[n.length-1]!==u)&&(n.push(l),n.push(u)),t=Vh,r=n[n.length-2],s=n[n.length-1],i[r][s]=t++,o=n.length-4;0<=o;o-=2)for(r=n[o+2],s=n[o+3],e=n[o],d=n[o+1];e>r?r++:e<r?r--:d>s?s++:d<s&&s--,i[r][s]=t++,r!==e||s!==d;);else Zu(t,l,u,1,!1,o,e,y,T),Zu(t,l,u,-1,!1,o,e,y,T),Zu(t,l,u,1,!0,o,e,y,T),Zu(t,l,u,-1,!0,o,e,y,T);En(n)}}}}function vx(t,e,n,i,r,o,s){for(var l=t.ac,u=e,d=n;;){if(u===r&&d===o)return!0;var f=u,y=d;if(i===0)if(f<r)f++;else break;else if(i===90)if(y<o)y++;else break;else if(i===180)if(f>r)f--;else break;else if(y>o)y--;else break;var T=l[f][y];if(T===0||T===lv)break;u=f,d=y}for(;;){if(f=i,y=u,T=d,i===0?T<o?(f=90,T++):T>o&&(f=270,T--):i===90?y<r?(f=0,y++):y>r&&(f=180,y--):i===180?T<o?(f=90,T++):T>o&&(f=270,T--):y<r?(f=0,y++):y>r&&(f=180,y--),y=l[y][T],f!==i&&y!==0&&y!==lv){if(s.push(u),s.push(d),vx(t,u,d,f,r,o,s))return!0;s.pop(),s.pop()}if(l[u][d]=lv,i===0){if(u===e)return!1;u--}else if(i===90){if(d===n)return!1;d--}else if(i===180){if(u===e)return!1;u++}else{if(d===n)return!1;d++}}}Mn.Object.defineProperties(kp.prototype,{bounds:{get:function(){return new Xt(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(t){0<t&&t!==this.rc&&(this.rc=t,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(t){0<t&&t!==this.sc&&(this.sc=t,this.initialize(this.bounds))}}});var Oc=0,Vh=1,hf=999999,av=hf+1,lv=hf+2;kp.className="PositionArray";function vd(){Gn(this),this.port=this.node=null,this.pe=[],this.ap=!1}vd.prototype.toString=function(){for(var t=this.pe,e=this.node.toString()+" "+t.length.toString()+":",n=0;n<t.length;n++){var i=t[n];i!==null&&(e+=`
|
|
|
`+i.toString())}return e};function G1(t,e,n,i){switch(e=e.offsetY,e){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(e){case 9:return 180<n?270:90;case 6:return 90<n&&270>=n?180:0}switch(t=180*Math.atan2(t.height,t.width)/Math.PI,e){case 3:return n>t&&n<=180+t?180:270;case 5:return n>180-t&&n<=360-t?270:0;case 12:return n>t&&n<=180+t?90:0;case 10:return n>180-t&&n<=360-t?180:90;case 7:return 90<n&&n<=180+t?180:n>180+t&&n<=360-t?270:0;case 13:return 180<n&&n<=360-t?270:n>t&&180>=n?90:0;case 14:return n>t&&n<=180-t?90:n>180-t&&270>=n?180:0;case 11:return n>180-t&&n<=180+t?180:n>180+t?270:90}return i&&e!==15&&(n-=15,0>n&&(n+=360)),n>t&&n<180-t?90:n>=180-t&&n<=180+t?180:n>180+t&&n<360-t?270:0}vd.prototype.Sl=function(){this.pe.length=0};function yx(t,e){var n=t.pe;if(n.length===0){t:if(!t.ap){n=t.ap,t.ap=!0;var i=null,r=t.node,o=r instanceof Jn?r:null;if(o===null||o.isSubGraphExpanded)var s=r.isTreeExpanded?r.findLinksConnected(t.port.portId):r.qx();else{if(!o.actualBounds.w()){t.ap=n;break t}i=o,s=i.Lu()}o=t.pe.length=0;var l=t.port.ga(vi,z.alloc()),u=t.port.ga(tr,z.alloc());for(r=Xt.allocAt(l.x,l.y,0,0),r.Ye(u),z.free(l),z.free(u),l=z.allocAt(r.x+r.width/2,r.y+r.height/2),u=t.port.li(),s=s.iterator;s.next();){var d=s.value;if(d.isVisible()&&d.fromPort!==d.toPort){var f=d.fromPort===t.port||d.fromNode!==null&&d.fromNode.Td(i),y=d.computeSpot(f,t.port);if(y.$c()&&(f=f?d.toPort:d.fromPort,f!==null)){var T=f.part;if(T!==null){var w=T.findVisibleNode();w!==null&&w!==T&&(T=w,f=T.port),f=d.computeOtherPoint(T,f),T=l.ab(f),T-=u,0>T?T+=360:360<=T&&(T-=360),y=G1(r,y,T,d.isOrthogonal),y===0?(y=4,180<T&&(T-=360)):y===90?(y=8,270<T&&(T-=360)):y===180?y=2:(y=1,90>T&&(T+=360)),w=t.pe[o],w===void 0?(w=new uv(d,T,y),t.pe[o]=w):(w.link=d,w.angle=T,w.Nc=y),w.hv.set(f),o++}}}}for(z.free(l),t.pe.sort(vd.prototype.j),u=t.pe.length,i=-1,o=l=0;o<u;o++)s=t.pe[o],s!==void 0&&(s.Nc!==i&&(i=s.Nc,l=0),s.Uo=l,l++);for(i=-1,l=0,o=u-1;0<=o;o--)u=t.pe[o],u!==void 0&&(u.Nc!==i&&(i=u.Nc,l=u.Uo+1),u.Gl=l);if(o=t.pe,y=t.port,i=t.node.portSpreading,l=z.alloc(),u=z.alloc(),s=z.alloc(),d=z.alloc(),y.ga(vi,l),y.ga(Yi,u),y.ga(tr,s),y.ga(So,d),w=T=f=y=0,i===J0)for(var N=0;N<o.length;N++){var F=o[N];if(F!==null){var nt=F.link.computeThickness();switch(F.Nc){case 8:T+=nt;break;case 2:w+=nt;break;case 1:y+=nt;break;default:case 4:f+=nt}}}var X=N=0,ut=1,ht=F=0;for(nt=0;nt<o.length;nt++){var yt=o[nt];if(yt!==null){if(N!==yt.Nc){switch(N=yt.Nc,N){case 8:var Nt=s;X=d;break;case 2:Nt=d,X=l;break;case 1:Nt=l,X=u;break;default:case 4:Nt=u,X=s}switch(F=X.x-Nt.x,ht=X.y-Nt.y,N){case 8:T>Math.abs(F)?(ut=Math.abs(F)/T,T=Math.abs(F)):ut=1;break;case 2:w>Math.abs(ht)?(ut=Math.abs(ht)/w,w=Math.abs(ht)):ut=1;break;case 1:y>Math.abs(F)?(ut=Math.abs(F)/y,y=Math.abs(F)):ut=1;break;default:case 4:f>Math.abs(ht)?(ut=Math.abs(ht)/f,f=Math.abs(ht)):ut=1}X=0}var Yt=yt.Zo;if(i===J0){switch(yt=yt.link.computeThickness(),yt*=ut,Yt.set(Nt),N){case 8:Yt.x=Nt.x+F/2+T/2-X-yt/2;break;case 2:Yt.y=Nt.y+ht/2+w/2-X-yt/2;break;case 1:Yt.x=Nt.x+F/2-y/2+X+yt/2;break;default:case 4:Yt.y=Nt.y+ht/2-f/2+X+yt/2}X+=yt}else{var Qe=.5;i===tm&&(Qe=(yt.Uo+1)/(yt.Gl+1)),Yt.x=Nt.x+F*Qe,Yt.y=Nt.y+ht*Qe}}}for(z.free(l),z.free(u),z.free(s),z.free(d),Nt=t.pe,o=0;o<Nt.length;o++)i=Nt[o],i!==null&&(i.Ju=t.computeEndSegmentLength(i));t.ap=n,Xt.free(r)}n=t.pe}for(t=0;t<n.length;t++)if(r=n[t],r!==null&&r.link===e)return r;return null}vd.prototype.j=function(t,e){return t===e?0:t===null?-1:e===null?1:t.Nc<e.Nc?-1:t.Nc>e.Nc?1:t.angle<e.angle?-1:t.angle>e.angle?1:0},vd.prototype.computeEndSegmentLength=function(t){var e=t.link,n=e.computeEndSegmentLength(this.node,this.port,qn,e.fromPort===this.port),i=t.Uo;if(0>i)return n;var r=t.Gl;if(1>=r||!e.isOrthogonal)return n;e=t.hv;var o=t.Zo;return(t.Nc===2||t.Nc===8)&&(i=r-1-i),((t=t.Nc===2||t.Nc===4)?e.y<o.y:e.x<o.x)?n+8*i:(t?e.y===o.y:e.x===o.x)?n:n+8*(r-1-i)},vd.className="Knot";function uv(t,e,n){this.link=t,this.angle=e,this.Nc=n,this.hv=new z,this.Gl=this.Uo=0,this.Zo=new z,this.Ju=0}uv.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()},uv.className="LinkInfo";function oo(t){Gn(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new z(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,t&&Object.assign(this,t)}oo.prototype.cloneProtected=function(t){t.sn=this.sn,t.Gh=this.Gh,t.yn=this.yn,t.Am.assign(this.Am),t.vn=this.vn,t.un=this.un,t.Em=this.Em,t.xn=!0},oo.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},oo.prototype.qb=function(){},oo.prototype.toString=function(){var t=ve(this.constructor);return t+="(",this.group!==null&&(t+=" in "+this.group),this.diagram!==null&&(t+=" for "+this.diagram),t+")"},oo.prototype.C=function(){if(this.isValidLayout){var t=this.diagram;if(t!==null&&!t.undoManager.isUndoingRedoing){var e=t.animationManager;!e.isTicking&&(e.defaultAnimation.isAnimating&&e.Cc(),this.isOngoing&&t.pi||this.isInitial&&!t.pi)&&(this.isValidLayout=!1,t.$b())}}},oo.prototype.createNetwork=function(){return new jr(this)},oo.prototype.makeNetwork=function(t){var e=this.createNetwork();return t instanceof Kt?(e.lg(t.nodes,!0),e.lg(t.links,!0)):t instanceof Jn?e.lg(t.memberParts):e.lg(t.iterator),e},oo.prototype.updateParts=function(){this.isValidLayout=!0;var t=this.diagram;if(t===null&&this.network!==null)for(var e=this.network.vertexes.iterator;e.next();){var n=e.value.node;if(n!==null&&(t=n.diagram,t!==null))break}try{t!==null&&t.Ea("Layout"),this.commitLayout()}finally{t!==null&&t.eb("Layout")}},oo.prototype.commitLayout=function(){if(this.network!==null){for(var t=this.network.vertexes.iterator;t.next();)t.value.commit();if(this.isRouting)for(t=this.network.edges.iterator;t.next();)t.value.commit()}},oo.prototype.doLayout=function(t){var e=new Ce;t instanceof Kt?(rh(this,e,t.nodes,!0,this.rh,!0,!1,!0),rh(this,e,t.parts,!0,this.rh,!0,!1,!0)):t instanceof Jn?rh(this,e,t.memberParts,!1,this.rh,!0,!1,!0):e.addAll(t.iterator),0<e.count&&(t=this.diagram,t!==null&&t.Ea("Layout"),this.doMinimalNoNetworkLayout(e),t!==null&&t.eb("Layout")),this.isValidLayout=!0},oo.prototype.doMinimalNoNetworkLayout=function(t){var e=Math.ceil(Math.sqrt(t.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var n=this.arrangementOrigin.x,i=n,r=this.arrangementOrigin.y,o=0,s=0;for(t=t.iterator;t.next();){var l=t.value;Np(l);var u=l.measuredBounds,d=u.width;u=u.height,l.moveTo(i,r),l instanceof Jn&&(l.rh=!1),i+=Math.max(d,50)+20,s=Math.max(s,Math.max(u,50)),o>=e-1?(o=0,i=n,r+=s+20,s=0):o++}},oo.prototype.doMinimalNetworkLayout=function(){var t=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var e=this.arrangementOrigin.x,n=e,i=this.arrangementOrigin.y,r=0,o=0,s=this.network.vertexes.iterator;s.next();){var l=s.value.node;if(!(l===null||l instanceof Pe)&&(Np(l),this.rh(l))){var u=l.measuredBounds,d=u.width;u=u.height,l.moveTo(n,i),l instanceof Jn&&(l.rh=!1),n+=Math.max(d,50)+20,o=Math.max(o,Math.max(u,50)),r>=t-1?(r=0,n=e,i+=o+20,o=0):r++}}},oo.prototype.rh=function(t){return!!(!t.location.w()||t instanceof Jn&&t.rh)};function rh(t,e,n,i,r,o,s,l){for(n=n.iterator;n.next();){var u=n.value;i&&!u.isTopLevel||r!==null&&!r(u)||!u.canLayout()||(o&&u instanceof tn?u.isLinkLabel||(u instanceof Jn&&u.layout===null?rh(t,e,u.memberParts,!1,r,o,s,l):(Np(u),e.add(u))):s&&u instanceof Pe?e.add(u):!l||!u.Zc()||u instanceof tn||(Np(u),e.add(u)))}}function Np(t){var e=t.actualBounds;(e.width===0||e.height===0||isNaN(e.width)||isNaN(e.height))&&t.Va()}oo.prototype.ni=function(t,e){var n=this.boundsComputation;return n!==null?(e||(e=new Xt),n(t,this,e)):e?(e.set(t.actualBounds),e):t.actualBounds},oo.prototype.ex=function(t){var e=new Ce;return t instanceof Kt?(rh(this,e,t.nodes,!0,null,!0,!0,!0),rh(this,e,t.links,!0,null,!0,!0,!0),rh(this,e,t.parts,!0,null,!0,!0,!0)):t instanceof Jn?rh(this,e,t.memberParts,!1,null,!0,!0,!0):rh(this,e,t.iterator,!1,null,!0,!0,!0),e},oo.prototype.initialOrigin=function(t){var e=this.group;if(e!==null){var n=e.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(t),e=e.placeholder,e!==null&&(n=e.ga(vi),(isNaN(n.x)||isNaN(n.y))&&n.set(t),t=e.padding,n.x+=t.left,n.y+=t.top),n}return t},Mn.Object.defineProperties(oo.prototype,{diagram:{get:function(){return this.H},set:function(t){this.H=t}},group:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t,t!==null&&(this.H=t.diagram))}},isOngoing:{get:function(){return this.sn},set:function(t){this.sn!==t&&(this.sn=t)}},isInitial:{get:function(){return this.Gh},set:function(t){this.Gh=t,t||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(t){this.yn!==t&&(this.yn=t)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(t){this.vn!==t&&(this.vn=t)}},isRealtime:{get:function(){return this.un},set:function(t){this.un!==t&&(this.un=t)}},isValidLayout:{get:function(){return this.xn},set:function(t){this.xn!==t&&(this.xn=t,t||(t=this.diagram,t!==null&&(t.xh=!0)))}},network:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t,t!==null&&(t.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(t){this.Em!==t&&(this.Em=t,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(t){this.Am.D(t)||(this.Am.assign(t),this.C())}}}),oo.prototype.collectParts=oo.prototype.ex,oo.prototype.getLayoutBounds=oo.prototype.ni,oo.prototype.invalidateLayout=oo.prototype.C,oo.className="Layout";function jr(t){Gn(this),this.Sc=t,this.wf=new Ce,this.ye=new Ce,this.Es=new Zt,this.zs=new Zt}jr.prototype.clear=function(){if(this.wf)for(var t=this.wf.iterator;t.next();)t.value.clear();if(this.ye)for(t=this.ye.iterator;t.next();)t.value.clear();this.wf=new Ce,this.ye=new Ce,this.Es=new Zt,this.zs=new Zt},jr.prototype.toString=function(t){t===void 0&&(t=0);var e="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=t)return e;if(e+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<t){for(var n=this.wf.iterator;n.next();)e+=`
|
|
|
`+n.value.toString(t-1);for(n=this.ye.iterator;n.next();)e+=`
|
|
|
`+n.value.toString(t-1)}return e},jr.prototype.createVertex=function(){return new Ko(this)},jr.prototype.createEdge=function(){return new Qa(this)},jr.prototype.lg=function(t,e,n){if(t!==null){for(e===void 0&&(e=!1),n===void 0&&(n=null),n===null&&(n=function(s){if(s instanceof tn)return!s.isLinkLabel;if(s instanceof Pe){var l=s.fromNode;return l===null||l.isLinkLabel?!1:(s=s.toNode,!(s===null||s.isLinkLabel))}return!1}),t=t.iterator;t.next();){var i=t.value;if(i instanceof tn&&(!e||i.isTopLevel)&&i.canLayout()&&n(i)){if(i instanceof Jn&&i.layout===null)this.lg(i.memberParts,!1);else if(this.ki(i)===null){var r=this.createVertex();r.node=i,this.dh(r)}}}for(t.reset();t.next();)if(i=t.value,i instanceof Pe&&(!e||i.isTopLevel)&&i.canLayout()&&n(i)&&this.Lo(i)===null){var o=i.fromNode;r=i.toNode,o!==null&&r!==null&&o!==r&&(o=this.findGroupVertex(o),r=this.findGroupVertex(r),o!==null&&r!==null&&this.Zj(o,r,i))}}},jr.prototype.findGroupVertex=function(t){if(t===null)return null;var e=t.findVisibleNode();if(e===null)return null;if(t=this.ki(e),t!==null)return t;for(e=e.containingGroup;e!==null;){if(t=this.ki(e),t!==null)return t;e=e.containingGroup}return null},A=jr.prototype,A.dh=function(t){if(t!==null){this.wf.add(t);var e=t.node;e!==null&&this.Es.add(e,t),t.network=this}},A.Bl=function(t){if(t===null)return null;var e=this.ki(t);return e===null&&(e=this.createVertex(),e.node=t,this.dh(e)),e},A.Iu=function(t){if(t!==null&&xx(this,t)){for(var e=t.tg,n=e.count-1;0<=n;n--){var i=e.M(n);this.Mj(i)}for(e=t.mg,t=e.count-1;0<=t;t--)n=e.M(t),this.Mj(n)}};function xx(t,e){if(e===null)return!1;var n=t.wf.remove(e);return n&&(e=e.node,e!==null&&t.Es.remove(e)),n}A.Zy=function(t){t!==null&&(t=this.ki(t),t!==null&&this.Iu(t))},A.ki=function(t){return t===null?null:this.Es.I(t)},A.Bo=function(t){if(t!==null){cv(this,t);var e=t.toVertex;e!==null&&e.Cl(t),e=t.fromVertex,e!==null&&e.zl(t)}};function cv(t,e){if(e!==null){t.ye.add(e);var n=e.link;n!==null&&t.Lo(n)===null&&t.zs.add(n,e),e.network=t}}A.Dy=function(t){if(t===null)return null;var e=t.fromNode,n=t.toNode,i=this.Lo(t);return i===null?(i=this.createEdge(),i.link=t,e!==null&&(i.fromVertex=this.Bl(e)),n!==null&&(i.toVertex=this.Bl(n)),this.Bo(i)):(e!==null?i.fromVertex=this.Bl(e):i.fromVertex=null,n!==null?i.toVertex=this.Bl(n):i.toVertex=null),i},A.Mj=function(t){if(t!==null){var e=t.toVertex;e!==null&&e.Kl(t),e=t.fromVertex,e!==null&&e.Jl(t),hv(this,t)}};function hv(t,e){e!==null&&t.ye.remove(e)&&(e=e.link,e!==null&&t.zs.remove(e))}A.Yy=function(t){t!==null&&(t=this.Lo(t),t!==null&&this.Mj(t))},A.Lo=function(t){return t===null?null:this.zs.I(t)},A.Zj=function(t,e,n){if(t===null||e===null)return null;if(t.network===this&&e.network===this){var i=this.createEdge();return i.link=n,i.fromVertex=t,i.toVertex=e,this.Bo(i),i}return null},A.gm=function(t){if(t!==null){var e=t.fromVertex,n=t.toVertex;e!==null&&n!==null&&(e.Jl(t),n.Kl(t),t.gm(),e.Cl(t),n.zl(t))}},A.Ko=function(){for(var t=bn(),e=this.ye.iterator;e.next();){var n=e.value;n.fromVertex===n.toVertex&&t.push(n)}for(e=t.length,n=0;n<e;n++)this.Mj(t[n]);En(t)},jr.prototype.deleteArtificialVertexes=function(){for(var t=bn(),e=this.wf.iterator;e.next();){var n=e.value;n.node===null&&n.data===null&&t.push(n)}for(n=t.length,e=0;e<n;e++)this.Iu(t[e]);for(e=bn(),n=this.ye.iterator;n.next();){var i=n.value;i.link===null&&i.data===null&&e.push(i)}for(n=e.length,i=0;i<n;i++)this.Mj(e[i]);En(t),En(e)};function V1(t){for(var e=bn(),n=t.ye.iterator;n.next();){var i=n.value;i.fromVertex!==null&&i.toVertex!==null||e.push(i)}for(n=e.length,i=0;i<n;i++)t.Mj(e[i]);En(e)}jr.prototype.Zx=function(t){t===void 0&&(t=!0),t&&(this.deleteArtificialVertexes(),V1(this),this.Ko()),t=new Te;for(var e=!0;e;){e=!1;for(var n=this.wf.iterator;n.next();){var i=n.value;if(0<i.tg.count||0<i.mg.count){e=this.layout.createNetwork(),t.add(e),dv(this,e,i),e=!0;break}}}return t.sort(function(r,o){return r===null||o===null||r===o?0:o.vertexes.count-r.vertexes.count}),t};function dv(t,e,n){if(n!==null&&n.network!==e){xx(t,n),e.dh(n);for(var i=n.sourceEdges;i.next();){var r=i.value;r.network!==e&&(hv(t,r),cv(e,r),dv(t,e,r.fromVertex))}for(i=n.destinationEdges;i.next();)n=i.value,n.network!==e&&(hv(t,n),cv(e,n),dv(t,e,n.toVertex))}}jr.prototype.dz=function(){for(var t=new Ce,e=this.wf.iterator;e.next();)t.add(e.value.node);for(e=this.ye.iterator;e.next();)t.add(e.value.link);return t},Mn.Object.defineProperties(jr.prototype,{layout:{get:function(){return this.Sc},set:function(t){t!==null&&(this.Sc=t)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),jr.prototype.findAllParts=jr.prototype.dz,jr.prototype.splitIntoSubNetworks=jr.prototype.Zx,jr.prototype.deleteSelfEdges=jr.prototype.Ko,jr.prototype.reverseEdge=jr.prototype.gm,jr.prototype.linkVertexes=jr.prototype.Zj,jr.prototype.findEdge=jr.prototype.Lo,jr.prototype.deleteLink=jr.prototype.Yy,jr.prototype.deleteEdge=jr.prototype.Mj,jr.prototype.addLink=jr.prototype.Dy,jr.prototype.addEdge=jr.prototype.Bo,jr.prototype.findVertex=jr.prototype.ki,jr.prototype.deleteNode=jr.prototype.Zy,jr.prototype.deleteVertex=jr.prototype.Iu,jr.prototype.addNode=jr.prototype.Bl,jr.prototype.addVertex=jr.prototype.dh,jr.prototype.addParts=jr.prototype.lg,jr.className="LayoutNetwork";function Ko(t){Gn(this),this.ob=t,this.j=new Xt(0,0,10,10).freeze(),this.o=new z(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Te,this.mg=new Te}Ko.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Te,this.mg=new Te},Ko.prototype.toString=function(t){t===void 0&&(t=0);var e="LayoutVertex#"+gi(this);if(0<t&&(e+=this.node!==null?"("+this.node.toString()+")":"",1<t)){t="";for(var n=!0,i=this.tg.iterator;i.next();){var r=i.value;n?n=!1:t+=",",t+=r.toString(0)}for(r="",n=!0,i=this.mg.iterator;i.next();){var o=i.value;n?n=!1:r+=",",r+=o.toString(0)}e+=" sources: "+t+" destinations: "+r}return e},Ko.prototype.commit=function(){var t=this.ub;if(t!==null){var e=this.bounds,n=t.bounds;Ut(n)?(n.x=e.x,n.y=e.y,n.width=e.width,n.height=e.height):t.bounds=e.copy()}else if(t=this.node,t!==null){if(e=this.bounds,!(t instanceof Jn)){n=Xt.alloc(),t.Va();var i=this.network.layout.ni(t,n),r=t.locationObject.ga(ei);if(i.w()&&r.w()){t.moveTo(e.x+this.focusX-(r.x-i.x),e.y+this.focusY-(r.y-i.y)),Xt.free(n);return}Xt.free(n)}t.moveTo(e.x,e.y)}},Ko.prototype.Cl=function(t){t!==null&&(this.tg.contains(t)||this.tg.add(t))},Ko.prototype.Kl=function(t){t!==null&&this.tg.remove(t)},Ko.prototype.zl=function(t){t!==null&&(this.mg.contains(t)||this.mg.add(t))},Ko.prototype.Jl=function(t){t!==null&&this.mg.remove(t)};function fv(t,e){return t=t.Sh,e=e.Sh,t?e?(t=t.text,e=e.text,t<e?-1:t>e?1:0):1:e!==null?-1:0}Mn.Object.defineProperties(Ko.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(t){if(this.ub=t,t!==null&&t.bounds){var e=t.bounds;t=e.x;var n=e.y,i=e.width;e=e.height,this.o.h(i/2,e/2),this.j.h(t,n,i,e)}}},node:{get:function(){return this.Sh},set:function(t){if(this.Sh!==t){this.Sh=t,t.Va();var e=this.network.layout,n=Xt.alloc(),i=e.ni(t,n);e=i.x;var r=i.y,o=i.width;if(i=i.height,isNaN(e)&&(e=0),isNaN(r)&&(r=0),this.j.h(e,r,o,i),Xt.free(n),!(t instanceof Jn)&&(t=t.locationObject.ga(ei),t.w())){this.o.h(t.x-e,t.y-r);return}this.o.h(o/2,i/2)}}},bounds:{get:function(){return this.j},set:function(t){this.j.D(t)||this.j.assign(t)}},focus:{get:function(){return this.o},set:function(t){this.o.D(t)||this.o.assign(t)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(t){var e=this.j;e.x+this.o.x!==t&&(e.ka(),e.x=t-this.o.x,e.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(t){var e=this.j;e.y+this.o.y!==t&&(e.ka(),e.y=t-this.o.y,e.freeze())}},focusX:{get:function(){return this.o.x},set:function(t){var e=this.o;e.x!==t&&(e.ka(),e.x=t,e.freeze())}},focusY:{get:function(){return this.o.y},set:function(t){var e=this.o;e.y!==t&&(e.ka(),e.y=t,e.freeze())}},x:{get:function(){return this.j.x},set:function(t){var e=this.j;e.x!==t&&(e.ka(),e.x=t,e.freeze())}},y:{get:function(){return this.j.y},set:function(t){var e=this.j;e.y!==t&&(e.ka(),e.y=t,e.freeze())}},width:{get:function(){return this.j.width},set:function(t){var e=this.j;e.width!==t&&(e.ka(),e.width=t,e.freeze())}},height:{get:function(){return this.j.height},set:function(t){var e=this.j;e.height!==t&&(e.ka(),e.height=t,e.freeze())}},network:{get:function(){return this.ob},set:function(t){this.ob=t}},sourceVertexes:{get:function(){for(var t=new Ce,e=this.sourceEdges;e.next();)t.add(e.value.fromVertex);return t.iterator}},destinationVertexes:{get:function(){for(var t=new Ce,e=this.destinationEdges;e.next();)t.add(e.value.toVertex);return t.iterator}},vertexes:{get:function(){for(var t=new Ce,e=this.sourceEdges;e.next();)t.add(e.value.fromVertex);for(e=this.destinationEdges;e.next();)t.add(e.value.toVertex);return t.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var t=new Te,e=this.sourceEdges;e.next();)t.add(e.value);for(e=this.destinationEdges;e.next();)t.add(e.value);return t.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Ko.prototype.deleteDestinationEdge=Ko.prototype.Jl,Ko.prototype.addDestinationEdge=Ko.prototype.zl,Ko.prototype.deleteSourceEdge=Ko.prototype.Kl,Ko.prototype.addSourceEdge=Ko.prototype.Cl,Ko.className="LayoutVertex",Ko.standardComparer=fv,Ko.smartComparer=function(t,e){if(t!==null){if(e!==null){t=t.Sh;var n=e.Sh;if(t!==null){if(n!==null){for(e=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),t=n.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),n=0;n<e.length;n++)if(t[n]!==""&&t[n]!==void 0){var i=parseFloat(e[n]),r=parseFloat(t[n]);if(isNaN(i))if(isNaN(r)){if(e[n].localeCompare(t[n])!==0)return e[n].localeCompare(t[n])}else return 1;else{if(isNaN(r))return-1;if(i-r!==0)return i-r}}else if(e[n]!=="")return 1;return t[n]!==""&&t[n]!==void 0?-1:0}return 1}return n!==null?-1:0}return 1}return e!==null?-1:0};function Qa(t){Gn(this),this.nb=t,this.qd=this.kd=this.$k=this.ub=null}Qa.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Qa.prototype.toString=function(t){t===void 0&&(t=0);var e="LayoutEdge#"+gi(this);return 0<t&&(e+=this.$k!==null?"("+this.$k.toString()+")":"",1<t&&(e+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),e},Qa.prototype.gm=function(){var t=this.kd;this.kd=this.qd,this.qd=t},Qa.prototype.commit=function(){},Qa.prototype.Ax=function(t){return this.qd===t?this.kd:this.kd===t?this.qd:null},Mn.Object.defineProperties(Qa.prototype,{network:{get:function(){return this.nb},set:function(t){this.nb=t}},data:{get:function(){return this.ub},set:function(t){this.ub!==t&&(this.ub=t)}},link:{get:function(){return this.$k},set:function(t){this.$k!==t&&(this.$k=t)}},fromVertex:{get:function(){return this.kd},set:function(t){this.kd!==t&&(this.kd=t)}},toVertex:{get:function(){return this.qd},set:function(t){this.qd!==t&&(this.qd=t)}}}),Qa.prototype.getOtherVertex=Qa.prototype.Ax,Qa.className="LayoutEdge";function Ss(t){oo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Je(NaN,NaN).freeze(),this.tf=new Je(10,10).freeze(),this.Jb=Ap,this.Rb=pm,this.nd=Ip,this.hd=bx,t&&Object.assign(this,t)}Yn(Ss,oo),Ss.prototype.cloneProtected=function(t){oo.prototype.cloneProtected.call(this,t),t.zo=this.zo,t.yo=this.yo,t.yg.assign(this.yg),t.tf.assign(this.tf),t.Jb=this.Jb,t.Rb=this.Rb,t.nd=this.nd,t.hd=this.hd},Ss.prototype.qb=function(t){t.classType===Ss?t===Ip||t===mm||t===pv||t===gm?this.sorting=t:t===pm||t===vu?this.arrangement=t:t===Ap||t===fm?this.alignment=t:Et("Unknown enum value: "+t):oo.prototype.qb.call(this,t)},Ss.prototype.doLayout=function(t){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var e=this.ex(t);t=this.diagram;for(var n=e.copy().iterator;n.next();){var i=n.value;if(!i.ph()||i.fromNode===null&&i.toNode===null){if(i.Va(),i instanceof Jn)for(i=i.memberParts;i.next();)e.remove(i.value)}else e.remove(i)}var r=e.Fa();if(r.length!==0){switch(this.sorting){case gm:r.reverse();break;case Ip:r.sort(this.comparer);break;case mm:r.sort(this.comparer),r.reverse()}var o=this.wrappingColumn;isNaN(o)&&(o=0);var s=this.wrappingWidth;switch(isNaN(s)&&t!==null?(e=t.padding,s=Math.max(t.viewportBounds.width-e.left-e.right,0)):s=Math.max(this.wrappingWidth,0),0>=o&&0>=s&&(o=1),e=this.spacing.width,isFinite(e)||(e=0),n=this.spacing.height,isFinite(n)||(n=0),t!==null&&t.Ea("Layout"),i=[],this.alignment){case fm:var l=e,u=n,d=Xt.alloc(),f=Math.max(this.cellSize.width,1);if(!isFinite(f))for(var y=f=0;y<r.length;y++){var T=this.ni(r[y],d);f=Math.max(f,T.width)}if(f=Math.max(f+l,1),y=Math.max(this.cellSize.height,1),!isFinite(y))for(T=y=0;T<r.length;T++){var w=this.ni(r[T],d);y=Math.max(y,w.height)}y=Math.max(y+u,1),T=this.arrangement;for(var N=w=this.arrangementOrigin.x,F=this.arrangementOrigin.y,nt=0,X=0,ut=0;ut<r.length;ut++){var ht=r[ut],yt=this.ni(ht,d),Nt=Math.ceil((yt.width+l)/f)*f,Yt=Math.ceil((yt.height+u)/y)*y;switch(T){case vu:var Qe=Math.abs(N-yt.width);break;default:Qe=N+yt.width}switch((0<o&&nt>o-1||0<s&&0<nt&&Qe-w>s)&&(i.push(new Xt(0,F,s+l,X)),nt=0,N=w,F+=X,X=0),X=Math.max(X,Yt),T){case vu:yt=-yt.width;break;default:yt=0}switch(ht.moveTo(N+yt,F),T){case vu:N-=Nt;break;default:N+=Nt}nt++}i.push(new Xt(0,F,s+l,X)),Xt.free(d);break;case Ap:for(u=s,f=o,y=e,T=n,s=Xt.alloc(),w=Math.max(this.cellSize.width,1),o=F=d=0,l=z.alloc(),N=0;N<r.length;N++)X=r[N],nt=this.ni(X,s),X=Ic(X,X.locationObject,X.locationSpot,l),d=Math.max(d,X.x),F=Math.max(F,nt.width-X.x),o=Math.max(o,X.y);switch(N=this.arrangement,N){case vu:d+=y;break;default:F+=y}w=isFinite(w)?Math.max(w+y,1):Math.max(d+F,1);var xn=X=this.arrangementOrigin.x;for(ut=this.arrangementOrigin.y,F=0,u>=d&&(u-=d),d=ht=0,Nt=Math.max(this.cellSize.height,1),yt=o=0,Yt=!0,nt=z.alloc(),Qe=0;Qe<r.length;Qe++){var dn=r[Qe],De=this.ni(dn,s),ge=Ic(dn,dn.locationObject,dn.locationSpot,l);if(0<F)switch(N){case vu:xn=(xn-X-(De.width-ge.x))/w,xn=It.$(Math.round(xn),xn)?Math.round(xn):Math.floor(xn),xn=xn*w+X;break;default:xn=(xn-X+ge.x)/w,xn=It.$(Math.round(xn),xn)?Math.round(xn):Math.ceil(xn),xn=xn*w+X}else switch(N){case vu:ht=xn+ge.x+De.width;break;default:ht=xn-ge.x}switch(N){case vu:var Xn=-(xn+ge.x)+ht;break;default:Xn=xn+De.width-ge.x-ht}if(0<f&&F>f-1||0<u&&0<F&&Xn>u){for(i.push(new Xt(0,Yt?ut-o:ut,u+y,yt+o+T)),xn=0;xn<F&&Qe!==F;xn++){Xn=r[Qe-F+xn];var Vn=Ic(Xn,Xn.locationObject,Xn.locationSpot,nt);Xn.moveTo(Xn.position.x,Xn.position.y+o-Vn.y)}yt+=T,ut=Yt?ut+yt:ut+(yt+o),F=yt=o=0,xn=X,Yt=!1}switch(xn===X&&(d=N===vu?Math.max(d,De.width-ge.x):Math.min(d,-ge.x)),o=Math.max(o,ge.y),yt=Math.max(yt,De.height-ge.y),isFinite(Nt)&&(yt=Math.max(yt,Math.max(De.height,Nt)-ge.y)),Yt?dn.moveTo(xn-ge.x,ut-ge.y):dn.moveTo(xn-ge.x,ut),N){case vu:xn-=ge.x+y;break;default:xn+=De.width-ge.x+y}F++}if(i.push(new Xt(0,ut,u+y,(Yt?yt:yt+o)+T)),r.length!==F)for(u=0;u<F;u++)f=r[r.length-F+u],y=Ic(f,f.locationObject,f.locationSpot,l),f.moveTo(f.position.x,f.position.y+o-y.y);if(z.free(l),z.free(nt),N===vu)for(r=0;r<i.length;r++)o=i[r],o.width+=d,o.x-=d;else for(r=0;r<i.length;r++)o=i[r],o.x>d&&(o.width+=o.x-d,o.x=d);Xt.free(s)}for(l=o=s=r=0;l<i.length;l++)u=i[l],r=Math.min(r,u.x),s=Math.min(s,u.y),o=Math.max(o,u.x+u.width);this.arrangement===vu?this.commitLayers(i,new z(r+e/2-(o+r),s-n/2)):this.commitLayers(i,new z(r-e/2,s-n/2)),t!==null&&t.eb("Layout"),this.isValidLayout=!0}},Ss.prototype.commitLayers=function(){};function bx(t,e){return t=t.text,e=e.text,t<e?-1:t>e?1:0}Mn.Object.defineProperties(Ss.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(t){this.zo!==t&&(0<t||isNaN(t))&&(this.zo=t,this.isViewportSized=isNaN(t),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(t){this.yo!==t&&(0<t||isNaN(t))&&(this.yo=t,this.C())}},cellSize:{get:function(){return this.yg},set:function(t){this.yg.D(t)||(this.yg.assign(t),this.C())}},spacing:{get:function(){return this.tf},set:function(t){this.tf.D(t)||(this.tf.assign(t),this.C())}},alignment:{get:function(){return this.Jb},set:function(t){this.Jb===t||t!==Ap&&t!==fm||(this.Jb=t,this.C())}},arrangement:{get:function(){return this.Rb},set:function(t){this.Rb===t||t!==pm&&t!==vu||(this.Rb=t,this.C())}},sorting:{get:function(){return this.nd},set:function(t){this.nd===t||t!==pv&&t!==gm&&t!==Ip&&t!==mm||(this.nd=t,this.C())}},comparer:{get:function(){return this.hd},set:function(t){this.hd!==t&&(this.hd=t,this.C())}}});var fm=new xe(Ss,"Position",0),Ap=new xe(Ss,"Location",1),pm=new xe(Ss,"LeftToRight",2),vu=new xe(Ss,"RightToLeft",3),pv=new xe(Ss,"Forward",4),gm=new xe(Ss,"Reverse",5),Ip=new xe(Ss,"Ascending",6),mm=new xe(Ss,"Descending",7);Ss.className="GridLayout",Ss.standardComparer=bx,Ss.smartComparer=function(t,e){if(t!==null){if(e!==null){t=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),e=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var n=0;n<t.length;n++)if(e[n]!==""&&e[n]!==void 0){var i=parseFloat(t[n]),r=parseFloat(e[n]);if(isNaN(i))if(isNaN(r)){if(t[n].localeCompare(e[n])!==0)return t[n].localeCompare(e[n])}else return 1;else{if(isNaN(r))return-1;if(i-r!==0)return i-r}}else if(t[n]!=="")return 1;return e[n]!==""&&e[n]!==void 0?-1:0}return 1}return e!==null?-1:0},Ss.Position=fm,Ss.Location=Ap,Ss.LeftToRight=pm,Ss.RightToLeft=vu,Ss.Forward=pv,Ss.Reverse=gm,Ss.Ascending=Ip,Ss.Descending=mm;function hr(){this.On=new Ce,this.Dn=new Ce,this.Pa=new Ce,this.cf=new Zt,this.bf=new Zt,this.aj=new Zt,this.H=null,this.tp=!1}A=hr.prototype,A.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},A.Xe=function(t){this.H=t},A.oi=function(t){if(t instanceof tn){if(this.On.add(t),t instanceof Jn){var e=t.containingGroup;e===null?this.H.ai.add(t):e.gl.add(t),e=t.layout,e!==null&&(e.diagram=this.H)}}else t instanceof Pe?this.Dn.add(t):t instanceof Vi||this.Pa.add(t);e=t.data,e===null||t instanceof Vi||(t instanceof Pe?this.bf.add(e,t):this.cf.add(e,t))},A.pc=function(t){if(t.Ej(),t instanceof tn){if(this.On.remove(t),t instanceof Jn){var e=t.containingGroup;e===null?this.H.ai.remove(t):e.gl.remove(t),e=t.layout,e!==null&&(e.diagram=null)}}else t instanceof Pe?this.Dn.remove(t):t instanceof Vi||this.Pa.remove(t);e=t.data,e===null||t instanceof Vi||(t instanceof Pe?this.bf.remove(e):this.cf.remove(e))},A.Wd=function(){var t=this.H;if(t!==null){for(var e=t.nodeTemplateMap.iterator;e.next();){var n=e.value,i=e.key;(!n.Zc()||n instanceof Jn)&&Et('Invalid node template in Diagram.nodeTemplateMap: template for "'+i+'" must be a Node or a simple Part, not a Group or Link: '+n)}for(e=t.groupTemplateMap.iterator;e.next();)n=e.value,i=e.key,n instanceof Jn||Et('Invalid group template in Diagram.groupTemplateMap: template for "'+i+'" must be a Group, not a normal Node or Link: '+n);for(e=t.linkTemplateMap.iterator;e.next();)n=e.value,i=e.key,n instanceof Pe||Et('Invalid link template in Diagram.linkTemplateMap: template for "'+i+'" must be a Link, not a normal Node or simple Part: '+n);for(e=bn(),n=t.selection.iterator;n.next();)(i=n.value.data)&&e.push(i);for(n=bn(),t=t.highlighteds.iterator;t.next();)(i=t.value.data)&&n.push(i);for(t=bn(),i=this.nodes.iterator;i.next();){var r=i.value;r.data!==null&&(t.push(r.data),t.push(r.location))}for(i=this.links.iterator;i.next();)r=i.value,r.data!==null&&(t.push(r.data),t.push(r.location));for(i=this.parts.iterator;i.next();)r=i.value,r.data!==null&&(t.push(r.data),t.push(r.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),i=0;i<e.length;i++)r=this.Lc(e[i]),r!==null&&(r.isSelected=!0);for(i=0;i<n.length;i++)r=this.Lc(n[i]),r!==null&&(r.isHighlighted=!0);for(i=0;i<t.length;i+=2)r=this.Lc(t[i]),r!==null&&(r.location=t[i+1]);En(e),En(n),En(t)}},hr.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},hr.prototype.addModeledParts=function(t,e){var n=this,i=this.diagram.model;t.forEach(function(r){i.lb(r)&&Ex(n,r,!1)}),t.forEach(function(r){i.lb(r)&&n.resolveReferencesForData(r)}),e!==!1&&Ud(this.diagram,!1)};function Ex(t,e,n){if(e!=null&&!t.diagram.undoManager.isUndoingRedoing&&!t.cf.contains(e)){n===void 0&&(n=!0);t:{if(e!=null&&!t.H.undoManager.isUndoingRedoing&&!t.cf.contains(e)){var i=t.Ro(e),r=Sx(t,e,i);if(r!==null&&(Ul(r),r=r.copy(),r!==null)){var o=t.diagram.skipsModelSourceBindings;t.diagram.skipsModelSourceBindings=!0,r.Tf=i,r.ub=e,t.tp&&(r.Jg="Tool"),t.diagram.add(r),r.ub=null,r.data=e,t.diagram.skipsModelSourceBindings=o,i=r;break t}}i=null}i!==null&&n&&t.resolveReferencesForData(e)}}hr.prototype.insertLink=function(){return null},hr.prototype.resolveReferencesForData=function(){},hr.prototype.Ro=function(t){return this.H.model.Ro(t)};function Sx(t,e,n){t=t.H;var i=t.model;return i.Xj()&&i.Yu(e)?(e=t.groupTemplateMap.I(n),e===null&&(e=t.groupTemplateMap.I(""),e===null&&(Cx||(Cx=!0,cn('No Group template found for category "'+n+'"'),cn(" Using default group template")),e=t.ly))):(e=t.nodeTemplateMap.I(n),e===null&&(e=t.nodeTemplateMap.I(""),e===null&&(wx||(wx=!0,cn('No Node template found for category "'+n+'"'),cn(" Using default node template")),e=t.ny))),e}hr.prototype.getLinkCategoryForData=function(){return""},hr.prototype.setLinkCategoryForData=function(){},hr.prototype.setFromNodeForLink=function(){},hr.prototype.setToNodeForLink=function(){},hr.prototype.findLinkTemplateForCategory=function(t){var e=this.H,n=e.linkTemplateMap.I(t);return n===null&&(n=e.linkTemplateMap.I(""),n===null&&(kx||(kx=!0,cn('No Link template found for category "'+t+'"'),cn(" Using default link template")),n=e.my)),n},hr.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},hr.prototype.Gs=function(t){var e=this;t.forEach(function(n){e.ip(n)})},hr.prototype.ip=function(t){t=this.Lc(t),t!==null&&(Gf(this.diagram,t,!1),this.unresolveReferencesForPart(t))},hr.prototype.unresolveReferencesForPart=function(){},hr.prototype.removeDataForLink=function(){},hr.prototype.findPartForKey=function(t){return t==null?null:(t=this.H.model.hc(t),t!==null?this.cf.I(t):null)},hr.prototype.Vb=function(t){return t==null||(t=this.H.model.hc(t),t===null)?null:(t=this.cf.I(t),t instanceof tn?t:null)},hr.prototype.findLinkForKey=function(){return null},A=hr.prototype,A.Lc=function(t){if(t===null)return null;var e=this.cf.I(t);return e!==null?e:e=this.bf.I(t)},A.ii=function(t){return t===null?null:(t=this.cf.I(t),t instanceof tn?t:null)},A.Kc=function(t){return t===null?null:this.bf.I(t)},A.ms=function(t){for(var e=0;e<arguments.length;++e);e=new Ce;for(var n=this.On.iterator;n.next();){var i=n.value,r=i.data;if(r!==null)for(var o=0;o<arguments.length;o++){var s=arguments[o];if(Ut(s)&&gv(this,r,s)){e.add(i);break}}}return e.iterator},A.ls=function(t){for(var e=0;e<arguments.length;++e);e=new Ce;for(var n=this.Dn.iterator;n.next();){var i=n.value,r=i.data;if(r!==null)for(var o=0;o<arguments.length;o++){var s=arguments[o];if(Ut(s)&&gv(this,r,s)){e.add(i);break}}}return e.iterator};function gv(t,e,n){for(var i in n){var r=e[i],o=n[i];if(Ye(o)){if(!Ye(r)||r.length<o.length)return!1;for(var s=0;s<r.length;s++){var l=o[s];if(l!==void 0&&!Tx(t,r[s],l))return!1}}else if(!Tx(t,r,o))return!1}return!0}function Tx(t,e,n){if(typeof n=="function"){if(!n(e))return!1}else if(n instanceof RegExp){if(!e||!n.test(e.toString()))return!1}else if(Ut(e)&&Ut(n)){if(!gv(t,e,n))return!1}else if(e!==n)return!1;return!0}hr.prototype.doModelChanged=function(t){if(this.H){var e=this.H;if(t.model===e.model){var n=t.change;if(e.doModelChanged(t),e.aa){e.aa=!1;try{var i=t.modelChange;if(i!=="")if(n===_r){if(i==="nodeCategory"){var r=this.Lc(t.object),o=t.newValue;r!==null&&typeof o=="string"&&(r.category=o)}else i==="nodeDataArray"&&(this.Gs(t.oldValue),this.addModeledParts(t.newValue));e.isModified=!0}else if(n===ao){var s=t.newValue;i==="nodeDataArray"&&Ut(s)&&Ex(this,s),e.isModified=!0}else if(n===ho){var l=t.oldValue;i==="nodeDataArray"&&Ut(l)&&this.ip(l),e.isModified=!0}else n===ps&&(i==="SourceChanged"?t.object!==null?this.updateDataBindings(t.object,t.propertyName):(this.rp(),this.updateAllTargetBindings()):i==="ModelDisplaced"&&this.Wd());else if(n===_r){var u=t.propertyName,d=t.object;d===e.model?(u==="nodeKeyProperty"||u==="nodeCategoryProperty")&&(e.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(d,u),e.isModified=!0}else if(n===ao||n===ho){var f=t.change===ao,y=f?t.newParam:t.oldParam,T=f?t.newValue:t.oldValue,w=this.aj.I(t.object);if(Array.isArray(w))for(t=0;t<w.length;t++){var N=w[t];if(f)Pg(N,T,y,!0);else if(!(0>y)){var F=y+cp(N);N.pc(F,!0),I0(N,F,y)}}e.isModified=!0}}finally{e.aa=!0}}}}},hr.prototype.updateAllTargetBindings=function(t){t===void 0&&(t="");for(var e=this.parts.iterator;e.next();)e.value.La(t);for(e=this.nodes.iterator;e.next();)e.value.La(t);for(e=this.links.iterator;e.next();)e.value.La(t)},hr.prototype.rp=function(){for(var t=this.H.model,e=new Ce,n=t.nodeDataArray,i=0;i<n.length;i++)e.add(n[i]);var r=[];for(this.nodes.each(function(s){s.data===null||e.contains(s.data)||r.push(s.data)}),this.parts.each(function(s){s.data===null||e.contains(s.data)||r.push(s.data)}),r.forEach(function(s){Px(t,s,!1)}),i=0;i<n.length;i++){var o=n[i];this.Lc(o)===null&&Dx(t,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()},hr.prototype.refreshDataBoundLinks=function(){},hr.prototype.updateRelationshipsFromData=function(){},hr.prototype.updateDataBindings=function(t,e){if(typeof e=="string"){var n=this.Lc(t);if(n!==null)n.La(e);else{n=null;for(var i=this.aj.iterator;i.next();){for(var r=i.value,o=0;o<r.length;o++){var s=r[o].sx(t);s!==null&&(n===null&&(n=bn()),n.push(s))}if(n!==null)break}if(n!==null){for(i=0;i<n.length;i++)n[i].La(e);En(n)}}t===this.diagram.model.modelData&&this.updateAllTargetBindings(e)}};function mv(t,e){var n=e.Hh;if(Ye(n)){var i=t.aj.I(n);if(i===null)i=[],i.push(e),t.aj.add(n,i);else{for(t=0;t<i.length;t++)if(i[t]===e)return;i.push(e)}}}function vv(t,e,n){Uh(e,function(s){s=s.O.s;for(var l=s.length,u=0;u<l;u++)Zf(n,s[u])});var i=e.Hh;if(Ye(i)){var r=t.aj.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),r.length===0&&t.aj.remove(i);break}}}}hr.prototype.Kj=function(t,e,n){n===void 0&&(n=!1);var i=new Zt;if(Ye(t))for(var r=0;r<t.length;r++)vm(this,t[r],e,i,n);else for(t=t.iterator;t.next();)vm(this,t.value,e,i,n);if(e!==null){n=e.model,t=e.toolManager.findTool("Dragging"),t=t!==null?t.dragOptions.dragsLink:e.Wm.dragsLink,r=new Ce;for(var o=new Zt,s=i.iterator;s.next();){var l=s.value;if(l instanceof Pe)t||l.fromNode!==null&&l.toNode!==null||r.add(l);else if(l instanceof tn&&l.data!==null&&n.Tl()){var u=l;l=s.key;var d=l.pg();d!==null&&(d=i.I(d),d!==null?(n.qe(u.data,n.wa(d.data)),u=e.Kc(u.data),l=l.kh(),l!==null&&u!==null&&o.add(l,u)):n.qe(u.data,void 0))}}if(0<r.count&&e.Is(r,!1),0<o.count)for(n=o.iterator;n.next();)i.add(n.key,n.value)}if(e!==null&&this.H!==null&&(e=e.model,n=e.afterCopyFunction,n!==null)){var f=new Zt;i.each(function(y){y.key.data!==null&&f.add(y.key.data,y.value.data)}),n(f,e,this.H.model)}for(e=i.iterator;e.next();)e.value.La();return i};function vm(t,e,n,i,r){if(e===null||r&&!e.canCopy())return null;if(i.contains(e))return i.I(e);var o=t.copyPartData(e,n);if(!(o instanceof Rn))return null;if(o.isSelected=!1,o.isHighlighted=!1,i.add(e,o),e instanceof tn){for(var s=e.linksConnected;s.next();){var l=s.value;if(l.fromNode===e){var u=i.I(l);u!==null&&(u.fromNode=o)}l.toNode===e&&(l=i.I(l),l!==null&&(l.toNode=o))}if(e instanceof Jn&&o instanceof Jn)for(e=e.memberParts;e.next();)s=vm(t,e.value,n,i,r),s instanceof Pe||s===null||(s.containingGroup=o)}else if(e instanceof Pe&&o instanceof Pe)for(s=e.fromNode,s!==null&&(s=i.I(s),s!==null&&(o.fromNode=s)),s=e.toNode,s!==null&&(s=i.I(s),s!==null&&(o.toNode=s)),e=e.labelNodes;e.next();)s=vm(t,e.value,n,i,r),s!==null&&s instanceof tn&&(s.labeledLink=o);return o}hr.prototype.copyPartData=function(t,e){var n=null,i=t.data;if(i!==null&&e!==null){var r=e.model;t instanceof Pe||(i=r.copyNodeData(i),Ut(i)&&(r.xf(i),n=e.Lc(i)))}else Ul(t),n=t.copy(),n!==null&&(r=this.H,e!==null?e.add(n):i!==null&&r!==null&&r.commandHandler!==null&&r.commandHandler.copiesClipboardData&&(e=r.model,r=null,n instanceof Pe||(r=e.copyNodeData(i)),Ut(r)&&(n.data=r)));return n},Mn.Object.defineProperties(hr.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(t){this.tp=t}}}),hr.prototype.updateAllRelationshipsFromData=hr.prototype.rp,hr.prototype.findLinksByExample=hr.prototype.ls,hr.prototype.findNodesByExample=hr.prototype.ms,hr.prototype.findLinkForData=hr.prototype.Kc,hr.prototype.findNodeForData=hr.prototype.ii,hr.prototype.findPartForData=hr.prototype.Lc,hr.prototype.findNodeForKey=hr.prototype.Vb,hr.prototype.removeModeledPart=hr.prototype.ip,hr.prototype.removeModeledParts=hr.prototype.Gs,hr.prototype.rebuildParts=hr.prototype.Wd;var wx=!1,Cx=!1,kx=!1;hr.className="PartManager";function ls(t){hr.apply(this,arguments)}Yn(ls,hr),ls.prototype.addAllModeledParts=function(){var t=this.diagram.model;this.addModeledParts(t.nodeDataArray),Nx(this,t.linkDataArray)},ls.prototype.addModeledParts=function(t){for(hr.prototype.addModeledParts.call(this,t,!1),t=this.links.iterator;t.next();)af(t.value);Ud(this.diagram,!1)};function Nx(t,e){e.forEach(function(n){Ax(t,n)}),Ud(t.diagram,!1)}function Ax(t,e){if(e!=null&&!t.diagram.undoManager.isUndoingRedoing&&!t.bf.contains(e)){var n=t.getLinkCategoryForData(e),i=t.findLinkTemplateForCategory(n);if(i!==null){Ul(i);var r=i.copy();if(r!==null){i=t.diagram.skipsModelSourceBindings,t.diagram.skipsModelSourceBindings=!0,r.Tf=n,r.ub=e,n=t.diagram.model;var o=Em(n,e,!0);o!==""&&(r.fromPortId=o),o=pl(n,e,!0),o!==void 0&&(o=t.Vb(o),o instanceof tn&&(r.fromNode=o)),o=Em(n,e,!1),o!==""&&(r.toPortId=o),o=pl(n,e,!1),o!==void 0&&(o=t.Vb(o),o instanceof tn&&(r.toNode=o)),n=n.Ef(e),Array.isArray(n)&&n.forEach(function(s){s=t.Vb(s),s!==null&&(s.labeledLink=r)}),t.tp&&(r.Jg="Tool"),t.diagram.add(r),r.ub=null,r.data=e,t.diagram.skipsModelSourceBindings=i}}}}ls.prototype.removeAllModeledParts=function(){var t=this.diagram.model;Ix(this,t.linkDataArray),this.Gs(t.nodeDataArray)};function Ix(t,e){e.forEach(function(n){t.ip(n)})}ls.prototype.getLinkCategoryForData=function(t){return this.diagram.model.ps(t)},ls.prototype.setLinkCategoryForData=function(t,e){return this.diagram.model.lp(t,e)},ls.prototype.setFromNodeForLink=function(t,e){var n=this.diagram.model;n.wv(t.data,n.wa(e!==null?e.data:null))},ls.prototype.setToNodeForLink=function(t,e){var n=this.diagram.model;n.Bv(t.data,n.wa(e!==null?e.data:null))},ls.prototype.removeDataForLink=function(t){this.diagram.model.bm(t.data)},ls.prototype.findPartForKey=function(t){var e=hr.prototype.findPartForKey.call(this,t);return e===null&&(t=this.diagram.model.jh(t),t!==null)?this.bf.I(t):e},ls.prototype.findLinkForKey=function(t){return t==null?null:(t=this.diagram.model.jh(t),t!==null?this.bf.I(t):null)},ls.prototype.doModelChanged=function(t){var e=this;if(hr.prototype.doModelChanged.call(this,t),this.diagram){var n=this.diagram;if(t.model===n.model){var i=t.change;if(n.aa){n.aa=!1;try{var r=t.modelChange;if(r!==""){if(i===_r){if(r==="linkFromKey"){var o=this.Kc(t.object);if(o!==null){var s=this.Vb(t.newValue);o.fromNode=s}}else if(r==="linkToKey"){var l=this.Kc(t.object);if(l!==null){var u=this.Vb(t.newValue);l.toNode=u}}else if(r==="linkFromPortId"){var d=this.Kc(t.object);if(d!==null){var f=t.newValue;typeof f=="string"&&(d.fromPortId=f)}}else if(r==="linkToPortId"){var y=this.Kc(t.object);if(y!==null){var T=t.newValue;typeof T=="string"&&(y.toPortId=T)}}else if(r==="nodeGroupKey"){var w=this.Lc(t.object);if(w!==null){var N=t.newValue;if(N!==void 0){var F=this.Vb(N);F instanceof Jn?w.containingGroup=F:w.containingGroup=null}else w.containingGroup=null}}else if(r==="linkLabelKeys"){var nt=this.Kc(t.object);if(nt!==null){var X=t.oldValue,ut=t.newValue;Array.isArray(X)&&X.forEach(function(ge){0<=ut.indexOf(ge)||(ge=e.Vb(ge),ge!==null&&(ge.labeledLink=null))}),Array.isArray(ut)&&ut.forEach(function(ge){ge=e.Vb(ge),ge!==null&&(ge.labeledLink=nt)})}}else if(r==="linkCategory"){var ht=this.Kc(t.object),yt=t.newValue;ht!==null&&typeof yt=="string"&&(ht.category=yt)}else r==="linkDataArray"&&(Ix(this,t.oldValue),Nx(this,t.newValue));n.isModified=!0}else if(i===ao){var Nt=t.newValue;if(r==="linkDataArray"&&typeof Nt=="object"&&Nt!==null)Ax(this,Nt);else if(r==="linkLabelKeys"&&sh(Nt)){var Yt=this.Kc(t.object),Qe=this.Vb(Nt);Yt!==null&&Qe!==null&&(Qe.labeledLink=Yt)}n.isModified=!0}else if(i===ho){var xn=t.oldValue;if(r==="linkDataArray"&&typeof xn=="object"&&xn!==null)this.ip(xn);else if(r==="linkLabelKeys"&&sh(xn)){var dn=this.Vb(xn);dn!==null&&(dn.labeledLink=null)}n.isModified=!0}}else if(i===_r){var De=t.propertyName;t.object!==n.model||De!=="linkFromKeyProperty"&&De!=="linkToKeyProperty"&&De!=="linkFromPortIdProperty"&&De!=="linkToPortIdProperty"&&De!=="linkLabelKeysProperty"&&De!=="nodeIsGroupProperty"&&De!=="nodeGroupKeyProperty"&&De!=="linkCategoryProperty"||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},ls.prototype.refreshDataBoundLinks=function(){var t=this,e=this.diagram.model,n=new Ce,i=e.linkDataArray;i.forEach(function(o){n.add(o)});var r=[];this.links.each(function(o){o.data===null||n.contains(o.data)||r.push(o.data)}),r.forEach(function(o){zx(e,o,!1)}),i.forEach(function(o){t.Kc(o)===null&&Hx(e,o,!1)})},ls.prototype.updateRelationshipsFromData=function(t){var e=t.data;if(e!==null){var n=t.diagram;if(n!==null){var i=n.model;if(t instanceof Pe){var r=pl(i,e,!0);if(r=n.Vb(r),t.fromNode=r,r=pl(i,e,!1),r=n.Vb(r),t.toNode=r,e=i.Ef(e),0<e.length||0<t.labelNodes.count){if(e.length===1&&t.labelNodes.count===1){r=e[0];var o=t.labelNodes.first();if(i.wa(o.data)===r)return}r=new Ce().addAll(e);var s=new Ce;t.labelNodes.each(function(l){l.data!==null&&(l=i.wa(l.data),l!==void 0&&s.add(l))}),e=s.copy(),e.hp(r),r=r.copy(),r.hp(s),(0<e.count||0<r.count)&&(e.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink===t&&(l.labeledLink=null)}),r.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink!==t&&(l.labeledLink=t)}))}}else!(t instanceof Vi)&&(e=i.lh(e),e=n.findPartForKey(e),e===null||e instanceof Jn)&&(t.containingGroup=e)}}},ls.prototype.resolveReferencesForData=function(t){var e=this.diagram.model,n=e.wa(t);if(n!==void 0){var i=Lp(e,n),r=this.Lc(t);if(i!==null&&r!==null){i=i.iterator;for(var o={};i.next();){var s=i.value;e.lb(s)?r instanceof Jn&&e.lh(s)===n&&(s=this.Lc(s),s!==null&&(s.containingGroup=r)):(o.link=this.Kc(s),o.link!==null&&r instanceof tn&&(pl(e,s,!0)===n&&(o.link.fromNode=r),pl(e,s,!1)===n&&(o.link.toNode=r),s=e.Ef(s),Array.isArray(s)&&s.some(function(l){return function(u){return u===n?(r.labeledLink=l.link,!0):!1}}(o)))),o={link:o.link}}xu(e,n)}t=e.lh(t),t!==void 0&&(t=this.Vb(t),t instanceof Jn&&(r.containingGroup=t))}},ls.prototype.unresolveReferencesForPart=function(t){var e=this.diagram.model;if(t instanceof tn){var n=e.wa(t.data);if(n!==void 0){for(var i=t.linksConnected;i.next();)yu(e,n,i.value.data);if(t.isLinkLabel&&(i=t.labeledLink,i!==null&&yu(e,n,i.data)),t instanceof Jn)for(t=t.memberParts;t.next();)i=t.value.data,e.lb(i)&&yu(e,n,i)}}},ls.prototype.copyPartData=function(t,e){var n=hr.prototype.copyPartData.call(this,t,e);if(t instanceof Pe)if(t=t.data,t!==null&&e!==null){var i=e.model;t=i.Jo(t),typeof t=="object"&&t!==null&&(i.fi(t),n=e.Kc(t))}else n!==null&&(e=this.diagram,t!==null&&e!==null&&e.commandHandler!==null&&e.commandHandler.copiesClipboardData&&(e=e.model.Jo(t),typeof e=="object"&&e!==null&&(n.data=e)));return n},ls.prototype.insertLink=function(t,e,n,i){var r=this.diagram,o=r.model,s=r.toolManager.findTool("Linking"),l="";if(t!==null&&(e===null&&(e=t),l=e.portId,l===null&&(l="")),e="",n!==null&&(i===null&&(i=n),e=i.portId,e===null&&(e="")),i=s.archetypeLinkData,i instanceof Pe){if(Ul(i),o=i.copy(),o!==null)return o.fromNode=t,o.fromPortId=l,o.toNode=n,o.toPortId=e,r.add(o),t=s.archetypeLabelNodeData,t instanceof tn&&(Ul(t),t=t.copy(),t!==null&&(t.labeledLink=o,r.add(t))),o}else if(i!==null&&(i=o.Jo(i),typeof i=="object"&&i!==null))return t!==null&&ff(o,i,o.wa(t.data),!0),pf(o,i,l,!0),n!==null&&ff(o,i,o.wa(n.data),!1),pf(o,i,e,!1),o.fi(i),t=s.archetypeLabelNodeData,t===null||t instanceof tn||(t=o.copyNodeData(t),typeof t=="object"&&t!==null&&(o.xf(t),t=o.wa(t),t!==void 0&&o.Bu(i,t))),r.Kc(i);return null},ls.prototype.findLinkForKey=ls.prototype.findLinkForKey,ls.prototype.findPartForKey=ls.prototype.findPartForKey,ls.prototype.removeAllModeledParts=ls.prototype.removeAllModeledParts,ls.prototype.addModeledParts=ls.prototype.addModeledParts,ls.prototype.addAllModeledParts=ls.prototype.addAllModeledParts,ls.className="GraphLinksPartManager";function Al(){hr.apply(this,arguments),this.Sg=null}Yn(Al,hr);function ym(t,e,n){if(e!==null&&n!==null&&n.kh()===null){var i=t.diagram.toolManager.findTool("Linking"),r=e,o=n;if(t.diagram.isTreePathToChildren||(r=n,o=e),(i===null||!Ms(i,r,o,null,!0))&&(e=t.getLinkCategoryForData(n.data),i=t.findLinkTemplateForCategory(e),i!==null&&(Ul(i),i=i.copy(),i!==null))){var s=t.diagram.skipsModelSourceBindings;t.diagram.skipsModelSourceBindings=!0,i.Tf=e,i.ub=n.data,i.fromNode=r,i.toNode=o,t.diagram.add(i),i.ub=null,i.data=n.data,t.diagram.skipsModelSourceBindings=s}}}Al.prototype.getLinkCategoryForData=function(t){return this.diagram.model.ss(t)},Al.prototype.setLinkCategoryForData=function(t,e){this.diagram.model.Ms(t,e)},Al.prototype.setFromNodeForLink=function(t,e,n){var i=this.diagram.model;if(n===void 0&&(n=null),e=e!==null?e.data:null,this.diagram.isTreePathToChildren)i.qe(t.data,i.wa(e));else{var r=this.Sg;this.Sg=t,n!==null&&i.qe(n.data,void 0),i.qe(e,i.wa(t.toNode!==null?t.toNode.data:null)),this.Sg=r}},Al.prototype.setToNodeForLink=function(t,e,n){var i=this.diagram.model;if(n===void 0&&(n=null),e=e!==null?e.data:null,this.diagram.isTreePathToChildren){var r=this.Sg;this.Sg=t,n!==null&&i.qe(n.data,void 0),i.qe(e,i.wa(t.fromNode!==null?t.fromNode.data:null)),this.Sg=r}else i.qe(t.data,i.wa(e))},Al.prototype.removeDataForLink=function(t){this.diagram.model.qe(t.data,void 0)},Al.prototype.findLinkForKey=function(t){return t==null?null:(t=this.diagram.model.hc(t),t!==null?this.bf.I(t):null)},Al.prototype.doModelChanged=function(t){if(hr.prototype.doModelChanged.call(this,t),this.diagram){var e=this.diagram;if(t.model===e.model){var n=t.change;if(e.aa){e.aa=!1;try{var i=t.modelChange;if(i!==""){if(n===_r){if(i==="nodeParentKey"){var r=t.object,o=this.Vb(t.newValue),s=this.ii(r);if(this.Sg!==null)o!==null&&(this.Sg.data=r,this.Sg.category=this.getLinkCategoryForData(r));else if(s!==null){var l=s.kh();l!==null?o===null?e.remove(l):e.isTreePathToChildren?l.fromNode=o:l.toNode=o:ym(this,o,s)}}else if(i==="parentLinkCategory"){var u=this.ii(t.object),d=t.newValue;if(u!==null&&typeof d=="string"){var f=u.kh();f!==null&&(f.category=d)}}e.isModified=!0}}else if(n===_r){var y=t.propertyName;t.object===e.model&&y==="nodeParentKeyProperty"&&(e.undoManager.isUndoingRedoing||this.Wd()),e.isModified=!0}}finally{e.aa=!0}}}}},Al.prototype.updateRelationshipsFromData=function(t){var e=t.data;if(e!==null){var n=t.diagram;if(n!==null){var i=n.model;t instanceof tn&&(e=i.mh(e),e=n.Vb(e),i=t.pg(),e!==i&&(i=t.kh(),e!==null?i!==null?n.isTreePathToChildren?i.fromNode=e:i.toNode=e:ym(this,e,t):i!==null&&Gf(n,i,!1)))}}},Al.prototype.updateDataBindings=function(t,e){hr.prototype.updateDataBindings.call(this,t,e),typeof e=="string"&&this.Lc(t)!==null&&(t=this.Kc(t),t!==null&&t.La(e))},Al.prototype.resolveReferencesForData=function(t){var e=this.diagram.model,n=e.wa(t);if(n!==void 0){var i=Lp(e,n),r=this.Lc(t);if(i!==null&&r!==null){for(i=i.iterator;i.next();){var o=i.value;e.lb(o)&&r instanceof tn&&e.mh(o)===n&&ym(this,r,this.ii(o))}xu(e,n)}t=e.mh(t),t!==void 0&&r instanceof tn&&(t=this.Vb(t),ym(this,t,r))}},Al.prototype.unresolveReferencesForPart=function(t){var e=this.diagram.model;if(t instanceof tn){var n=e.wa(t.data),i=this.Kc(t.data);if(i!==null){i.isSelected=!1,i.isHighlighted=!1;var r=i.layer;if(r!==null){var o=r.pc(-1,i,!1);0<=o&&this.diagram.cb(ho,"parts",r,i,null,o,null),o=i.layerChanged,o!==null&&o(i,r,null)}}for(i=this.diagram.isTreePathToChildren,t=t.linksConnected;t.next();)r=t.value,r=(i?r.toNode:r.fromNode).data,e.lb(r)&&yu(e,n,r)}},Al.prototype.insertLink=function(t,e,n){e=this.diagram.model;var i=t,r=n;return this.diagram.isTreePathToChildren||(i=n,r=t),i!==null&&r!==null?(e.qe(r.data,e.wa(i.data)),r.kh()):null},Al.prototype.findLinkForKey=Al.prototype.findLinkForKey,Al.className="TreePartManager";function wn(t,e){this.kl=new Ce,this.il=new Ce,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Gn(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Zt,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 Zt,this.Lt=new Te,this.Wg=!1,this.o=null,this.undoManager=new Tr,t!==void 0&&(Ye(t)?this.nodeDataArray=t:e=t),e&&(Object.assign(this,e),t=e.Changed)&&(delete this.Changed,this.Pe(t))}wn.prototype.cloneProtected=function(t){t.xa=this.xa,t.Sm=this.Sm,t.Gg=this.Gg,t.Th=this.Th,t.bl=this.bl,t.Bk=this.Bk,t.Km=this.Km,t.Jm=this.Jm,t.Mm=this.Mm,t.xm=this.xm,t.lj=this.lj},wn.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},wn.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},wn.prototype.toString=function(t){if(t===void 0&&(t=0),1<t)return this.np();var e=(this.name!==""?this.name:"")+" Model";if(0<t){e+=`
|
|
|
node data:`,t=this.nodeDataArray;for(var n=t.length,i=0;i<n;i++){var r=t[i];e+=" "+this.wa(r)+":"+li(r)}}return e},wn.prototype.xA=function(t){t.change!==ps&&Et("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+t.toString());var e=t.object;return t.isTransactionFinished&&e instanceof wo?(Rx(this,e),t=this.Qv(e,t.propertyName==="FinishedUndo"),this.vh=null,t):null},wn.prototype.Qv=function(t,e){var n=this,i=!1,r=new Ce,o=new Ce,s=new Ce,l=this.vh;t.changes.each(function(y){y.model===n&&(y.modelChange==="nodeDataArray"?y.change===ao?r.add(y.newValue):y.change===ho&&s.add(y.oldValue):n.lb(y.object)?o.add(y.object):y.change!==_r||n.modelData!==y.object&&y.propertyName!=="modelData"?y.object!==null&&(l&&l.contains(y.object)?l.get(y.object).each(function(T){n.lb(T)&&o.add(T)}):y.object instanceof wn||n.ri()&&n.Jc(y.object)||Mx(n,y.object).each(function(T){o.add(T)})):i=!0)});var u=this.il;u.clear(),r.each(function(y){u.add(n.wa(y)),e||o.add(y)});var d=this.kl;d.clear(),s.each(function(y){d.add(n.wa(y)),e&&o.add(y)}),t=n.cloneDeep(o.Fa());var f=null;return i&&(f===null&&(f={}),f.modelData=this.cloneDeep(this.modelData)),0<u.count&&(f===null&&(f={}),e?f.removedNodeKeys=u.Fa():f.insertedNodeKeys=u.Fa()),0<t.length&&(f===null&&(f={}),f.modifiedNodeData=t),0<d.count&&(f===null&&(f={}),e?f.insertedNodeKeys=d.Fa():f.removedNodeKeys=d.Fa()),d.clear(),u.clear(),f},wn.prototype.cloneDeep=function(t){return df(this,t,!0)};function df(t,e,n,i,r,o){function s(y,T){l?(y.__gohashid===void 0&&o.push(y),i.set(y,T)):(y=pr++,i.set(y,T),r.set(y,e))}if(!Ut(e))return e;o||(o=[]);var l=Object.isExtensible(e);if(i||(i=new Zt),l){var u=i.get(e);if(u)return u}else for(r||(r=new Zt),u=r.iterator;u.next();){var d=u.key;if(u.value===e&&(d=i.get(d)))return d}if(Array.isArray(e)){u=[],s(e,u);for(var f=0;f<e.length;f++)u.push(df(t,e[f],!1,i,r,o))}else if(e instanceof z||e instanceof Je||e instanceof Xt||e instanceof ii||e instanceof vn)u=e.copy(),s(e,u);else{if(e instanceof ur||e instanceof Oe||e instanceof xe)return e;if(e instanceof Te)u=new Te().addAll(df(t,e.Fa(),!1,i,r,o)),s(e,u);else if(e instanceof Ce)u=new Ce().addAll(df(t,e.Fa(),!1,i,r,o)),s(e,u);else if(e instanceof Zt)u=new Zt().addAll(df(t,e.Fa(),!1,i,r,o)),s(e,u);else if(e instanceof Date)u=new Date(e.getTime()),s(e,u);else if(e instanceof RegExp)u=new RegExp(e),s(e,u),u.lastIndex=e.lastIndex;else if(typeof e.copy=="function")u=e.copy(),s(e,u);else for(f in u={},s(e,u),e)f!=="__gohashid"&&(u[f]=df(t,e[f],!1,i,r,o))}return n&&o.forEach(function(y){delete y.__gohashid}),u}A=wn.prototype,A.quote=function(t){return JSON.stringify(t).replace(/[\u007F-\uFFFF]/g,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).substr(-4)})},A.rm=function(){var t="";return this.name!==""&&(t+=`,
|
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(t+=`,
|
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(t+=`,
|
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(t+=`,
|
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(t+=`,
|
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(t+=`,
|
|
|
"copiesArrayObjects": true`),this.copiesKey||(t+=`,
|
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(t+=`,
|
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),t},A.gp=function(t){t.name&&(this.name=t.name),t.dataFormat&&(this.dataFormat=t.dataFormat),t.isReadOnly&&(this.isReadOnly=!0),t.nodeKeyProperty&&(this.nodeKeyProperty=t.nodeKeyProperty),t.copiesArrays&&(this.copiesArrays=!0),t.copiesArrayObjects&&(this.copiesArrayObjects=!0),t.copiesKey===!1&&(this.copiesKey=!1),t.nodeCategoryProperty&&(this.nodeCategoryProperty=t.nodeCategoryProperty)};function Lx(t,e){e=e.modelData,Ut(e)&&(t.dm(e),t.modelData=e)}A.Rv=function(){var t=this.modelData,e=!1,n;for(n in t)if(!Ox(n,t[n])){e=!0;break}return t="",e&&(t=`,
|
|
|
"modelData": `+yv(this,this.modelData)),t+`,
|
|
|
"nodeDataArray": `+oh(this,this.nodeDataArray,!0)},A.kv=function(t){Lx(this,t),t=t.nodeDataArray,Ye(t)&&(this.dm(t),this.nodeDataArray=t)};function Rx(t,e){function n(r,o){if((o=o.part)&&(o=o.data,r!==o)){var s=i.get(r);s===null?(s=new Ce,s.add(o),i.add(r,s)):s.add(o)}}var i=t.vh;i===null&&(i=new Zt,e.changes.each(function(r){if(r.diagram!==null){var o=r.change;o===_r?(r=r.object.panel)&&(o=r.data)&&n(o,r):(o===ao||o===ho)&&(r=r.object,(o=r.itemArray)&&n(o,r))}}),t.vh=i)}function Mx(t,e){for(var n=new Ce,i=0;i<t.nodeDataArray.length;i++){var r=t.nodeDataArray[i];xm(t,e,r,r,n)}return n}function xm(t,e,n,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++){var s=n[o];if(s===e)return r.add(i),!0;if(xm(t,e,s,i,r))return!0}else if(Ut(n)&&Object.getPrototypeOf(n)===Object.prototype)for(o in n){if(s=n[o],s===e)return r.add(i),!0;if(xm(t,e,s,i,r))return!0}return!1}A.Pv=function(t,e){var n=this,i=!1,r=new Ce,o=new Ce,s=new Ce,l=this.vh;t.changes.each(function(f){f.model===n&&(f.modelChange==="nodeDataArray"?f.change===ao?r.add(f.newValue):f.change===ho&&s.add(f.oldValue):n.lb(f.object)?o.add(f.object):f.change!==_r||n.modelData!==f.object&&f.propertyName!=="modelData"?f.object!==null&&(l&&l.contains(f.object)?l.get(f.object).each(function(y){n.lb(y)&&o.add(y)}):f.object instanceof wn||n.ri()&&n.Jc(f.object)||Mx(n,f.object).each(function(y){o.add(y)})):i=!0)});var u=this.il;u.clear(),r.each(function(f){u.add(n.wa(f)),e||o.add(f)});var d=this.kl;return d.clear(),s.each(function(f){d.add(n.wa(f)),e&&o.add(f)}),t="",i&&(t+=`,
|
|
|
"modelData": `+yv(this,this.modelData)),0<u.count&&(t+=(e?this.Yv:this.Wv)+oh(this,u.Fa(),!0)),0<o.count&&(t+=this.jy+oh(this,o.Fa(),!0)),0<d.count&&(t+=(e?this.Wv:this.Yv)+oh(this,d.Fa(),!0)),d.clear(),u.clear(),t},A.fp=function(t){(t.name!==void 0&&t.name!==this.name||t.dataFormat!==void 0&&t.dataFormat!==this.dataFormat||t.isReadOnly!==void 0&&t.isReadOnly!==this.isReadOnly||t.nodeKeyProperty!==void 0&&t.nodeKeyProperty!==this.nodeKeyProperty||t.copiesArrays!==void 0&&t.copiesArrays!==this.copiesArrays||t.copiesArrayObjects!==void 0&&t.copiesArrayObjects!==this.copiesArrayObjects||t.copiesKey!==void 0&&t.copiesKey!==this.copiesKey||t.nodeCategoryProperty!==void 0&&t.nodeCategoryProperty!==this.nodeCategoryProperty)&&Et("applyIncrementalJson cannot change Model properties"),Lx(this,t);var e=t.insertedNodeKeys,n=t.modifiedNodeData,i=new Zt;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r],s=this.wa(o);s!=null&&i.set(s,o)}if(Array.isArray(e))for(r=e.length,o=0;o<r;o++){s=e[o];var l=this.hc(s);l===null&&(l=(l=i.get(s))?l:this.copyNodeData({}),this.km(l,s),this.xf(l))}if(Array.isArray(n)){for(e=n.length,i=0;i<e;i++)if(r=n[i],o=this.wa(r),o=this.hc(o),o!==null){for(var u in r)u==="__gohashid"||u===this.nodeKeyProperty||this.Wj()&&u===this.nodeIsGroupProperty||this.setDataProperty(o,u,r[u]);this.lm(r,o)}}if(t=t.removedNodeKeys,Array.isArray(t))for(n=t.length,u=0;u<n;u++)e=this.hc(t[u]),e!==null&&this.cm(e)},A.$x=function(t,e){t.change!==ps&&Et("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+t.toString());var n=t.object;return t.isTransactionFinished&&n instanceof wo?(e===void 0&&(e=Rp(this,this)),Rx(this,n),t=this.Pv(n,t.propertyName==="FinishedUndo"),this.vh=null,e==="2"?'{ "incremental": 2'+t+"}":'{ "class": '+this.quote(e)+', "incremental": 1'+this.rm()+t+"}"):'{ "incremental": 0 }'},A.yA=function(t,e){return this.$x(t,e)},A.np=function(t){return t===void 0&&(t=Rp(this,this)),'{ "class": '+this.quote(t)+this.rm()+this.Rv()+"}"},A.toJSON=function(t){return this.np(t)},A.Zw=function(t){var e=null;if(typeof t=="string")try{e=sn.JSON.parse(t)}catch(i){}else typeof t=="object"?e=t:Et("Unable to modify a Model from: "+t);var n=e.incremental;typeof n!="number"&&Et("Unable to apply non-incremental changes to Model: "+t),n!==0&&(this.Ea("applyIncrementalJson"),this.fp(e),this.eb("applyIncrementalJson"))},A.Ky=function(t){return this.Zw(t)},wn.constructGraphLinksModel=function(){return new wn},A=wn.prototype,A.dm=function(t){if(Ye(t))for(var e=t.length,n=0;n<e;n++){var i=t[n];if(Ut(i)){var r=n;i=this.dm(i),Array.isArray(t)?t[r]=i:Et("Cannot replace an object in an HTMLCollection or NodeList at "+r)}}else if(Ut(t)){for(e in t)if(n=t[e],Ut(n)&&(n=this.dm(n),t[e]=n,e==="points"&&Array.isArray(n))){for(r=n.length%2===0,i=0;i<n.length;i++)if(typeof n[i]!="number"){r=!1;break}if(r){for(r=new Te,i=0;i<n.length/2;i++)r.add(new z(n[2*i],n[2*i+1]));r.freeze(),t[e]=r}}return W1(t)}return t},A.sm=function(t){return t===void 0?"undefined":t===null?"null":t===!0?"true":t===!1?"false":typeof t=="string"?this.quote(t):typeof t=="number"?t===1/0?"9e9999":t===-1/0?"-9e9999":isNaN(t)?'{"class":"NaN"}':t.toString():t instanceof Date?'{"class":"Date", "value":"'+t.toJSON()+'"}':t instanceof Number?this.sm(t.valueOf()):Ye(t)?oh(this,t):Ut(t)?yv(this,t):typeof t=="function"?"null":t.toString()};function oh(t,e,n){n===void 0&&(n=!1);var i=e.length;if(0>=i)return"[]";var r=new Lr;r.add("["),n&&1<i&&r.add(`
|
|
|
`);for(var o=0;o<i;o++){var s=e[o];s!==void 0&&(0<o&&(r.add(","),n&&r.add(`
|
|
|
`)),r.add(t.sm(s)))}return n&&1<i&&r.add(`
|
|
|
`),r.add("]"),r.toString()}function Ox(t,e){return e===void 0||t==="__gohashid"||t[0]==="_"||typeof e=="function"}function fa(t){return isNaN(t)?"NaN":t===1/0?"9e9999":t===-1/0?"-9e9999":t}function yv(t,e){var n=e;if(n instanceof z)e={class:"go.Point",x:fa(n.x),y:fa(n.y)};else if(n instanceof Je)e={class:"go.Size",width:fa(n.width),height:fa(n.height)};else if(n instanceof Xt)e={class:"go.Rect",x:fa(n.x),y:fa(n.y),width:fa(n.width),height:fa(n.height)};else if(n instanceof ii)e={class:"go.Margin",top:fa(n.top),right:fa(n.right),bottom:fa(n.bottom),left:fa(n.left)};else if(n instanceof vn)n.sb()?e={class:"go.Spot",x:fa(n.x),y:fa(n.y),offsetX:fa(n.offsetX),offsetY:fa(n.offsetY)}:e={class:"go.Spot",enum:n.toString()};else if(n instanceof ur){if(e={class:"go.Brush",type:n.type.name},n.type===kc?e.color=n.color:(n.type===ac||n.type===kl)&&(e.start=n.start,e.end=n.end,n.type===kl&&(n.startRadius!==0&&(e.startRadius=fa(n.startRadius)),isNaN(n.endRadius)||(e.endRadius=fa(n.endRadius)))),n.colorStops!==null){var i={};for(n=n.colorStops.iterator;n.next();)i[n.key]=n.value;e.colorStops=i}}else n instanceof Oe?(e={class:"go.Geometry",type:n.type.name},n.startX!==0&&(e.startX=fa(n.startX)),n.startY!==0&&(e.startY=fa(n.startY)),n.endX!==0&&(e.endX=fa(n.endX)),n.endY!==0&&(e.endY=fa(n.endY)),n.spot1.D(vi)||(e.spot1=n.spot1),n.spot2.D(tr)||(e.spot2=n.spot2),n.type===Oe.o&&(e.path=Oe.ia(n))):n instanceof xe&&(e={class:"go.EnumValue",classType:Rp(t,n.classType),name:n.name});i="{",n=!0;for(var r in e){var o=Lo(e,r);if(!Ox(r,o))if(n?n=!1:i+=",",i+=t.quote(r)+":",r==="points"&&o instanceof Te){var s="[";for(o=o.iterator;o.next();){var l=o.value;1<s.length&&(s+=","),s+=t.sm(l.x),s+=",",s+=t.sm(l.y)}s+="]",i+=s}else i+=t.sm(o)}return i+"}"}function pa(t){return typeof t=="number"?t:t==="NaN"?NaN:t==="9e9999"?1/0:t==="-9e9999"?-1/0:parseFloat(t)}function W1(t){if(typeof t!="object")return t;var e=t.class||"";if(e==="NaN")return NaN;if(e==="Date")return new Date(t.value);if(e.indexOf("go.")!==0)return t;e=e.substr(3);var n=t;if(e==="Point")n=new z(pa(t.x),pa(t.y));else if(e==="Size")n=new Je(pa(t.width),pa(t.height));else if(e==="Rect")n=new Xt(pa(t.x),pa(t.y),pa(t.width),pa(t.height));else if(e==="Margin")n=new ii(pa(t.top),pa(t.right),pa(t.bottom),pa(t.left));else if(e==="Spot")typeof t.enum=="string"?n=Xr(t.enum):n=new vn(pa(t.x),pa(t.y),pa(t.offsetX),pa(t.offsetY));else if(e==="Brush"){if(n=new ur,n.type=xr(ur,t.type),typeof t.color=="string"&&(n.color=t.color),t.start instanceof vn&&(n.start=t.start),t.end instanceof vn&&(n.end=t.end),typeof t.startRadius=="number"&&(n.startRadius=pa(t.startRadius)),typeof t.endRadius=="number"&&(n.endRadius=pa(t.endRadius)),t=t.colorStops,Ut(t))for(var i in t)n.addColorStop(parseFloat(i),t[i])}else e==="Geometry"?(n=null,typeof t.path=="string"?n=Oe.parse(t.path):n=new Oe,n.type=xr(Oe,t.type),typeof t.startX=="number"&&(n.startX=pa(t.startX)),typeof t.startY=="number"&&(n.startY=pa(t.startY)),typeof t.endX=="number"&&(n.endX=pa(t.endX)),typeof t.endY=="number"&&(n.endY=pa(t.endY)),t.spot1 instanceof vn&&(n.spot1=t.spot1),t.spot2 instanceof vn&&(n.spot2=t.spot2)):e==="EnumValue"&&(i=t.classType,i.indexOf("go.")===0&&(i=i.substr(3)),i=bv(i),typeof i=="function"&&(n=xr(i,t.name)));return n}A.Pe=function(t){return this.Lt.add(t),this},A.ik=function(t){this.Lt.remove(t)},A.ds=function(t){this.skipsUndoManager||this.undoManager.Tu(t);for(var e=this.Lt,n=e.length,i=0;i<n;i++)e.M(i)(t)},A.cb=function(t,e,n,i,r,o,s){Go(this,"",t,e,n,i,r,o,s)},A.g=function(t,e,n,i,r){Go(this,"",_r,t,this,e,n,i,r)},A.Fs=function(t,e,n,i,r,o){Go(this,"",_r,e,t,n,i,r,o)};function Go(t,e,n,i,r,o,s,l,u){l===void 0&&(l=null),u===void 0&&(u=null);var d=new Qr;d.model=t,d.change=n,d.modelChange=e,d.propertyName=i,d.object=r,d.oldValue=o,d.oldParam=l,d.newValue=s,d.newParam=u,t.ds(d)}wn.prototype.changeState=function(t,e){if(t!==null&&t.model===this)if(t.change===_r){var n=t.object,i=t.propertyName,r=t.I(e);i===this.nodeKeyProperty&&this.lb(n)&&(e=t.I(!e),e!==void 0&&this.kb.remove(e),r!==void 0&&this.kb.add(r,n)),no(n,i,r)}else t.change===ao?(n=t.newParam,t.modelChange==="nodeDataArray"?(t=t.newValue,Ut(t)&&typeof n=="number"&&(i=this.wa(t),e?(this.Tc[n]===t&&R(this.Tc,n),i!==void 0&&this.kb.remove(i)):(this.Tc[n]!==t&&te(this.Tc,n,t),i!==void 0&&this.kb.add(i,t)))):t.modelChange===""?((i=t.object)&&!Ye(i)&&t.propertyName&&(i=Lo(t.object,t.propertyName)),Ye(i)&&typeof n=="number"&&(t=t.newValue,e?R(i,n):te(i,n,t))):Et("unknown ChangedEvent.Insert modelChange: "+t.toString())):t.change===ho?(n=t.oldParam,t.modelChange==="nodeDataArray"?(t=t.oldValue,Ut(t)&&typeof n=="number"&&(i=this.wa(t),e?(this.Tc[n]!==t&&te(this.Tc,n,t),i!==void 0&&this.kb.add(i,t)):(this.Tc[n]===t&&R(this.Tc,n),i!==void 0&&this.kb.remove(i)))):t.modelChange===""?((i=t.object)&&!Ye(i)&&t.propertyName&&(i=Lo(t.object,t.propertyName)),Ye(i)&&typeof n=="number"&&(t=t.oldValue,e?te(i,n,t):R(i,n))):Et("unknown ChangedEvent.Remove modelChange: "+t.toString())):t.change!==ps&&Et("unknown ChangedEvent: "+t.toString())},wn.prototype.Ea=function(t){return this.undoManager.Ea(t)},wn.prototype.eb=function(t){return this.undoManager.eb(t)},wn.prototype.Kf=function(){return this.undoManager.Kf()},wn.prototype.commit=function(t,e){e===void 0&&(e="");var n=this.skipsUndoManager;e===null&&(this.skipsUndoManager=!0,e=""),this.undoManager.Ea(e);var i=!1;try{t(this),i=!0}finally{i?this.undoManager.eb(e):this.undoManager.Kf(),this.skipsUndoManager=n}},A=wn.prototype,A.La=function(t,e){e===void 0&&(e=""),Go(this,"SourceChanged",ps,e,t,null,null)},A.wa=function(t){if(t!==null){var e=this.Th;if(e!==""&&(e=Lo(t,e),e!==void 0)){if(sh(e))return e;Et("Key value for node data "+t+" is not a number or a string: "+e)}}},A.km=function(t,e){if(t!==null){var n=this.Th;if(n!=="")if(this.lb(t)){var i=Lo(t,n);i!==e&&this.hc(e)===null&&(no(t,n,e),i!==void 0&&this.kb.remove(i),this.kb.add(e,t),Go(this,"nodeKey",_r,n,t,i,e),typeof n=="string"&&this.La(t,n),this.jp(i,e))}else no(t,n,e)}};function sh(t){return typeof t=="number"||typeof t=="string"}A.lb=function(t){var e=this.wa(t);return e===void 0?!1:this.kb.I(e)===t},A.hc=function(t){return t===null&&Et("Model.findNodeDataForKey:key must not be null"),t!==void 0&&sh(t)?this.kb.I(t):null},A.$u=function(t){if(t!==null){var e=this.Th;if(e!==""){var n=this.wa(t);if(n===void 0||this.kb.contains(n)){var i=this.bl;if(i!==null&&(n=i(this,t),n!=null&&!this.kb.contains(n))){no(t,e,n);return}if(typeof n=="string"){for(i=2;this.kb.contains(n+i);)i++;no(t,e,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.kb.count-1;this.kb.contains(n);)n--;no(t,e,n)}}}}},A.xf=function(t){t!==null&&(Ri(t),this.lb(t)||Dx(this,t,!0))};function Dx(t,e,n){var i=t.wa(e);(i===void 0||t.kb.I(i)!==e)&&(t.$u(e),i=t.wa(e),i===void 0&&Et("Model.makeNodeDataKeyUnique failed on "+e+". Data not added to Model."),t.kb.add(i,e),i=null,n&&(i=t.Tc.length,te(t.Tc,i,e)),Go(t,"nodeDataArray",ao,"nodeDataArray",t,null,e,null,i),t.fm(e),t.em(e))}A.Fy=function(t){if(Ye(t))for(var e=t.length,n=0;n<e;n++)this.xf(t[n]);else for(t=t.iterator;t.next();)this.xf(t.value)},A.cm=function(t){t!==null&&Px(this,t,!0)};function Px(t,e,n){var i=t.wa(e);if(i!==void 0&&t.kb.remove(i),i=null,n){t:if(n=t.Tc,Array.isArray(n))i=n.indexOf(e);else{i=n.length;for(var r=0;r<i;r++)if(n[r]===e){i=r;break t}i=-1}if(0>i)return;R(t.Tc,i)}Go(t,"nodeDataArray",ho,"nodeDataArray",t,e,null,i,null),t.qp(e)}A.nA=function(t){if(Ye(t))for(var e=t.length,n=0;n<e;n++)this.cm(t[n]);else for(t=t.iterator;t.next();)this.cm(t.value)},A.$z=function(t){if(t!==this.nodeDataArray&&Ye(t)){var e=this.kl;e.clear(),e.addAll(this.kb.iteratorKeys);var n=this.il;n.clear();for(var i=t.length,r=0;r<i;r++){var o=t[r],s=this.wa(o);if(s!==void 0){n.add(s);var l=this.hc(s);l!==o&&(l!==null?(this.Do(l,o),this.lm(o,l)):(o=this.cloneDeep(o),this.km(o,s),this.xf(o)))}else s=this.cloneDeep(o),this.xf(s),n.add(this.wa(s))}for(t=e.iterator;t.next();)i=t.value,n.contains(i)||(i=this.hc(i))&&this.cm(i);e.clear(),n.clear()}},A.jp=function(t,e){e!==void 0&&(t=Lp(this,t),t instanceof Ce&&this.Vf.add(e,t))},A.Lv=function(){},A.fm=function(){},A.em=function(){},A.qp=function(){};function yu(t,e,n){if(e!==void 0){var i=t.Vf.I(e);i===null&&(i=new Ce,t.Vf.add(e,i)),i.add(n)}}function xu(t,e,n){if(e!==void 0){var i=t.Vf.I(e);i instanceof Ce&&(n==null?t.Vf.remove(e):(i.remove(n),i.count===0&&t.Vf.remove(e)))}}function Lp(t,e){return e===void 0?null:(t=t.Vf.I(e),t instanceof Ce?t:null)}A.Qy=function(t){t===void 0?this.Vf.clear():this.Vf.remove(t)},wn.prototype.copyNodeData=function(t){if(t===null)return null;var e=this.Bk;return t=e!==null?e(t,this):bm(this,t,!0),Ut(t)&&Gn(t),t};function bm(t,e,n){if(t.copiesArrays&&Array.isArray(e)){var i=[];for(n=0;n<e.length;n++){var r=bm(t,e[n],t.copiesArrayObjects);i.push(r)}return Gn(i),i}if(n&&Ut(e)){n=(n=e.constructor)?new n:{},r=t.copiesKey||typeof t.nodeKeyProperty!="string"?null:t.nodeKeyProperty;for(i in e)if(i==="__gohashid")n.__gohashid=void 0;else if(i===r)n[r]=void 0;else{var o=Lo(e,i),s=Rp(t,o);s==="GraphObject"||s==="Diagram"||s==="Layer"||s==="RowColumnDefinition"||s==="AnimationManager"||s==="Tool"||s==="CommandHandler"||s==="Layout"||s==="InputEvent"||s==="DiagramEvent"||o instanceof wn||o instanceof Tr||o instanceof wo||o instanceof Qr||(o=bm(t,o,!1)),no(n,i,o)}return Gn(n),n}return e instanceof z||e instanceof Je||e instanceof Xt||e instanceof vn||e instanceof ii?e.copy():e}wn.prototype.setDataProperty=function(t,e,n){if(this.lb(t)){if(e===this.nodeKeyProperty){this.km(t,n);return}if(e===this.nodeCategoryProperty){this.jm(t,n);return}}else!_x&&t instanceof Rt&&(_x=!0,cn('Model.setDataProperty is modifying a GraphObject, "'+t.toString()+'"'),cn(" Is that really your intent?"));var i=Lo(t,e);i!==n&&(no(t,e,n),this.Fs(t,e,i,n))},A=wn.prototype,A.set=function(t,e,n){this.setDataProperty(t,e,n)},A.Do=function(t,e){if(e){var n=this.lb(t),i;for(i in e)i==="__gohashid"||n&&i===this.nodeKeyProperty||this.setDataProperty(t,i,e[i])}},A.Ay=function(t,e){this.ts(t,-1,e)},A.ts=function(t,e,n){0>e&&(e=t.length),te(t,e,n),Go(this,"",ao,"",t,null,n,null,e)},A.ov=function(t,e){e===void 0&&(e=-1),t===this.Tc&&Et("Model.removeArrayItem should not be called on the Model.nodeDataArray"),e===-1&&(e=t.length-1);var n=t[e];R(t,e),Go(this,"",ho,"",t,n,null,e,null)},A.Ro=function(t){if(t===null)return"";var e=this.lj;if(e===""||(e=Lo(t,e),e===void 0))return"";if(typeof e=="string")return e;Et("getCategoryForNodeData found a non-string category for "+t+": "+e)},A.jm=function(t,e){if(t!==null){var n=this.lj;if(n!=="")if(this.lb(t)){var i=Lo(t,n);i===void 0&&(i=""),i!==e&&(no(t,n,e),Go(this,"nodeCategory",_r,n,t,i,e))}else no(t,n,e)}},A.lm=function(t,e){this.jm(e,this.Ro(t))},A.Tl=function(){return!1},A.Wj=function(){return!1},A.ri=function(){return!1},A.xs=function(){return!1},A.Xj=function(){return!1};function xv(){return new wn}function Rp(t,e){if(typeof e=="function"){if(e.className)return e.className;if(e.name)return e.name}else if(typeof e=="object"&&e!==null&&e.constructor)return Rp(t,e.constructor);return typeof e}function bv(t){return ru[t]?ru[t]:sn.go!==void 0&&sn.go[t]?sn.go[t]:null}function Lo(t,e){if(!t||!e)return null;try{if(typeof e=="function")var n=e(t);else typeof t.getAttribute=="function"?(n=t.getAttribute(e),n===null&&(n=void 0)):n=t[e]}catch(i){}return n}function no(t,e,n){if(t&&e)try{typeof e=="function"?e(t,n):typeof t.setAttribute=="function"?t.setAttribute(e,n):t[e]=n}catch(i){}}Mn.Object.defineProperties(wn.prototype,{name:{get:function(){return this.xa},set:function(t){var e=this.xa;e!==t&&(this.xa=t,this.g("name",e,t))}},dataFormat:{get:function(){return this.Sm},set:function(t){var e=this.Sm;e!==t&&(this.Sm=t,this.g("dataFormat",e,t))}},isReadOnly:{get:function(){return this.Gg},set:function(t){var e=this.Gg;e!==t&&(this.Gg=t,this.g("isReadOnly",e,t))}},modelData:{get:function(){return this.j},set:function(t){var e=this.j;e!==t&&(this.j=t,this.g("modelData",e,t),this.La(t))}},undoManager:{get:function(){return this.o},set:function(t){var e=this.o;e!==t&&(e!==null&&e.Rx(this),this.o=t,t!==null&&t.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(t){this.Wg=t}},nodeKeyProperty:{get:function(){return this.Th},set:function(t){var e=this.Th;e!==t&&(t===""&&Et("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Et("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=t,this.g("nodeKeyProperty",e,t))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(t){var e=this.bl;e!==t&&(this.bl=t,this.g("makeUniqueKeyFunction",e,t))}},nodeDataArray:{get:function(){return this.Tc},set:function(t){var e=this.Tc;if(e!==t){this.kb.clear(),this.Lv();for(var n=t.length,i=0;i<n;i++){var r=t[i];Ut(r)||Et("Model.nodeDataArray must only contain Objects, not: "+r),Ri(r)}for(this.Tc=t,i=new Te,r=0;r<n;r++){var o=t[r],s=this.wa(o);s===void 0||this.kb.I(s)!==null?i.add(o):this.kb.add(s,o)}for(i=i.iterator;i.next();)r=i.value,this.$u(r),o=this.wa(r),o!==void 0&&this.kb.add(o,r);for(Go(this,"nodeDataArray",_r,"nodeDataArray",this,e,t),e=0;e<n;e++)i=t[e],this.fm(i),this.em(i);Array.isArray(t)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(t){var e=this.Bk;e!==t&&(this.Bk=t,this.g("copyNodeDataFunction",e,t))}},copiesArrays:{get:function(){return this.Km},set:function(t){var e=this.Km;e!==t&&(this.Km=t,this.g("copiesArrays",e,t))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(t){var e=this.Jm;e!==t&&(this.Jm=t,this.g("copiesArrayObjects",e,t))}},copiesKey:{get:function(){return this.Mm},set:function(t){var e=this.Mm;e!==t&&(this.Mm=t,this.g("copiesKey",e,t))}},afterCopyFunction:{get:function(){return this.xm},set:function(t){var e=this.xm;e!==t&&(this.xm=t,this.g("afterCopyFunction",e,t))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(t){var e=this.lj;e!==t&&(this.lj=t,this.g("nodeCategoryProperty",e,t))}},type:{get:function(){return"Model"}}}),wn.prototype.setCategoryForNodeData=wn.prototype.jm,wn.prototype.getCategoryForNodeData=wn.prototype.Ro,wn.prototype.removeArrayItem=wn.prototype.ov,wn.prototype.insertArrayItem=wn.prototype.ts,wn.prototype.addArrayItem=wn.prototype.Ay,wn.prototype.assignAllDataProperties=wn.prototype.Do,wn.prototype.set=wn.prototype.set,wn.prototype.clearUnresolvedReferences=wn.prototype.Qy,wn.prototype.mergeNodeDataArray=wn.prototype.$z,wn.prototype.removeNodeDataCollection=wn.prototype.nA,wn.prototype.removeNodeData=wn.prototype.cm,wn.prototype.addNodeDataCollection=wn.prototype.Fy,wn.prototype.addNodeData=wn.prototype.xf,wn.prototype.makeNodeDataKeyUnique=wn.prototype.$u,wn.prototype.findNodeDataForKey=wn.prototype.hc,wn.prototype.containsNodeData=wn.prototype.lb,wn.prototype.setKeyForNodeData=wn.prototype.km,wn.prototype.getKeyForNodeData=wn.prototype.wa,wn.prototype.updateTargetBindings=wn.prototype.La,wn.prototype.commit=wn.prototype.commit,wn.prototype.rollbackTransaction=wn.prototype.Kf,wn.prototype.commitTransaction=wn.prototype.eb,wn.prototype.startTransaction=wn.prototype.Ea,wn.prototype.raiseDataChanged=wn.prototype.Fs,wn.prototype.raiseChanged=wn.prototype.g,wn.prototype.raiseChangedEvent=wn.prototype.cb,wn.prototype.removeChangedListener=wn.prototype.ik,wn.prototype.addChangedListener=wn.prototype.Pe,wn.prototype.writeJsonValue=wn.prototype.sm,wn.prototype.replaceJsonObjects=wn.prototype.dm,wn.prototype.applyIncrementalJSON=wn.prototype.Ky,wn.prototype.applyIncrementalJson=wn.prototype.Zw,wn.prototype.toJSON=wn.prototype.toJSON,wn.prototype.toJson=wn.prototype.np,wn.prototype.toIncrementalJSON=wn.prototype.yA,wn.prototype.toIncrementalJson=wn.prototype.$x,wn.prototype.toIncrementalData=wn.prototype.xA,wn.prototype.clear=wn.prototype.clear;var _x=!1,ru={};wn.className="Model",wn.fromJSON=wn.fromJson=function(t,e){e===void 0&&(e=null);var n=null;if(typeof t=="string")try{n=sn.JSON.parse(t)}catch(o){}else typeof t=="object"?n=t:Et("Unable to construct a Model from: "+t);if(e===null){t=null;var i=n.class;if(typeof i=="string")try{var r=null;i.indexOf("go.")===0?(i=i.substr(3),r=bv(i)):(r=bv(i),r===null&&(r=sn[i])),typeof r=="function"&&(t=new r)}catch(o){}t===null||t instanceof wn?e=t:Et("Unable to construct a Model of declared class: "+n.class)}return e===null&&(e=wn.constructGraphLinksModel()),e.gp(n),e.kv(n),e},wn.safePropertyValue=Lo,wn.safePropertySet=no,ru.Brush=ur,ru.ChangedEvent=Qr,ru.Geometry=Oe,ru.Margin=ii,ru.Panel=Re,ru.Point=z,ru.Rect=Xt,ru.Size=Je,ru.Spot=vn,ru.Transaction=wo,ru.UndoManager=Tr;function Oo(t,e,n,i){Gn(this),this._isFrozen=!1,t===void 0&&(t=""),e===void 0&&(e=t),n===void 0&&(n=null),this.j=-1,this.xd=null,this.xl=t,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=e,this.Im=n,i===void 0?(this.el=Bx,this.wk=null):(this.el=Mp,this.wk=i),this.st=new Ce}Oo.prototype.copy=function(){var t=new Oo;return t.xl=this.xl,t.to=this.to,t.wl=this.wl,t.Cr=this.Cr,t.wn=this.wn,t.sl=this.sl,t.Im=this.Im,t.el=this.el,t.wk=this.wk,t},A=Oo.prototype,A.qb=function(t){t.classType===Oo&&(this.mode=t)},A.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},A.freeze=function(){return this._isFrozen=!0,this},A.ka=function(){return this._isFrozen=!1,this},A.Kx=function(t){return t===void 0&&(t=null),this.mode=Mp,this.backConverter=t,this},A.cp=function(t){return t===void 0&&(t=""),this.sourceName=t,this.isToModel=!1,this},A.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function Fx(t,e,n){return t=t.sourceName,t===null||t===""?e:t==="/"?n.part:t==="."?n:t===".."?n.panel:e.fb(t)}A.Mv=function(t,e,n){var i=this.sl;if(n===void 0||i===""||i===n){n=this.xl;var r=this.Im;if(r===null&&n==="")cn("Binding error: target property is the empty string: "+this.toString());else{var o=e;if(i!==""&&(o=Lo(e,i)),o!==void 0)if(r===null)n!==""&&no(t,n,o);else try{if(n!==""){var s=r(o,t);no(t,n,s)}else r(o,t)}catch(l){}}}},A.sp=function(t,e,n,i){if(this.el===Mp){var r=this.xl;if(n===void 0||r===n){n=this.sl;var o=this.wk,s=t;if(r!==""&&(s=Lo(t,r)),s!==void 0&&!this.st.contains(t))try{this.st.add(t);var l=i!==null?i.diagram:null,u=l!==null?l.model:null;if(o===null){if(n!=="")u!==null?u.setDataProperty(e,n,s):no(e,n,s);else if(u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var d=i.itemIndex,f=i.panel.itemArray;u.ov(f,d),u.ts(f,d,s)}}else try{if(n!==""){var y=o(s,e,u);u!==null?u.setDataProperty(e,n,y):no(e,n,y)}else{var T=o(s,e,u);if(T!==void 0&&u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var w=i.itemIndex,N=i.panel.itemArray;u.ov(N,w),u.ts(N,w,T)}}}catch(F){}}finally{this.st.remove(t)}}}},Mn.Object.defineProperties(Oo.prototype,{Ai:{get:function(){return this.j},set:function(t){this._isFrozen&&Wt(this),this.j=t}},targetProperty:{get:function(){return this.xl},set:function(t){this._isFrozen&&Wt(this),this.xl=t}},sourceName:{get:function(){return this.Cr},set:function(t){this._isFrozen&&Wt(this),this.Cr=t,t!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(t){this._isFrozen&&Wt(this),this.wn=t}},sourceProperty:{get:function(){return this.sl},set:function(t){this._isFrozen&&Wt(this),this.sl=t}},converter:{get:function(){return this.Im},set:function(t){this._isFrozen&&Wt(this),this.Im=t}},backConverter:{get:function(){return this.wk},set:function(t){this._isFrozen&&Wt(this),this.wk=t}},mode:{get:function(){return this.el},set:function(t){this._isFrozen&&Wt(this),this.el=t}}}),Oo.prototype.updateSource=Oo.prototype.sp,Oo.prototype.updateTarget=Oo.prototype.Mv,Oo.prototype.ofModel=Oo.prototype.dA,Oo.prototype.ofObject=Oo.prototype.cp,Oo.prototype.makeTwoWay=Oo.prototype.Kx;var Y1="Binding",Bx=new xe(Oo,"OneWay",1),Mp=new xe(Oo,"TwoWay",2);Oo.className="Binding",Oo.parseEnum=function(t,e){return function(n){return n=xr(t,n),n===null?e:n}},Oo.toString=li,Oo.OneWay=Bx,Oo.TwoWay=Mp;function Ii(t,e,n){wn.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Ce,this.wb=new Zt,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,e!==void 0&&(this.linkDataArray=e),t!==void 0&&(Ye(t)?this.nodeDataArray=t:n=t),n&&(Object.assign(this,n),t=n.Changed)&&(delete this.Changed,this.Pe(t))}Yn(Ii,wn),Ii.constructGraphLinksModel=wn.constructGraphLinksModel,Ii.prototype.cloneProtected=function(t){wn.prototype.cloneProtected.call(this,t),t.Jh=this.Jh,t.cl=this.cl,t.Ak=this.Ak,t.lf=this.lf,t.mf=this.mf,t.ej=this.ej,t.fj=this.fj,t.dj=this.dj,t.je=this.je,t.jl=this.jl,t.Je=this.Je,t.Lm=this.Lm},A=Ii.prototype,A.clear=function(){wn.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},A.toString=function(t){if(t===void 0&&(t=0),2<=t)return this.np();var e=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<t){e+=`
|
|
|
node data:`,t=this.nodeDataArray;var n=t.length,i;for(i=0;i<n;i++){var r=t[i];e+=" "+this.wa(r)+":"+li(r)}for(e+=`
|
|
|
link data:`,t=this.linkDataArray,n=t.length,i=0;i<n;i++)r=t[i],e+=" "+pl(this,r,!0)+"-->"+pl(this,r,!1)}return e},A.Qv=function(t,e){this.linkKeyProperty===""&&Et("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=wn.prototype.Qv.call(this,t,e),i=this,r=new Ce,o=new Ce,s=new Ce,l=this.vh;t.changes.each(function(f){f.model===i&&(f.modelChange==="linkDataArray"?f.change===ao?r.add(f.newValue):f.change===ho&&s.add(f.oldValue):i.Jc(f.object)?o.add(f.object):f.object!==null&&(f.object!==null&&l&&l.contains(f.object)?l.get(f.object).each(function(y){i.Jc(y)&&o.add(y)}):f.object instanceof wn||i.lb(f.object)||Ux(i,f.object).each(function(y){o.add(y)})))});var u=this.il;u.clear(),r.each(function(f){u.add(i.Ac(f)),e||o.add(f)});var d=this.kl;return d.clear(),s.each(function(f){d.add(i.Ac(f)),e&&o.add(f)}),t=i.cloneDeep(o.Fa()),0<u.count&&(n===null&&(n={}),e?n.removedLinkKeys=u.Fa():n.insertedLinkKeys=u.Fa()),0<t.length&&(n===null&&(n={}),n.modifiedLinkData=t),0<d.count&&(n===null&&(n={}),e?n.insertedLinkKeys=d.Fa():n.removedLinkKeys=d.Fa()),d.clear(),u.clear(),n},A.rm=function(){var t=wn.prototype.rm.call(this),e="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(e+=`,
|
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(e+=`,
|
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(e+=`,
|
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(e+=`,
|
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(e+=`,
|
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(e+=`,
|
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(e+=`,
|
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(e+=`,
|
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(e+=`,
|
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),t+e},A.gp=function(t){wn.prototype.gp.call(this,t),t.linkKeyProperty&&(this.linkKeyProperty=t.linkKeyProperty),t.linkFromKeyProperty&&(this.linkFromKeyProperty=t.linkFromKeyProperty),t.linkToKeyProperty&&(this.linkToKeyProperty=t.linkToKeyProperty),t.linkFromPortIdProperty&&(this.linkFromPortIdProperty=t.linkFromPortIdProperty),t.linkToPortIdProperty&&(this.linkToPortIdProperty=t.linkToPortIdProperty),t.linkCategoryProperty&&(this.linkCategoryProperty=t.linkCategoryProperty),t.linkLabelKeysProperty&&(this.linkLabelKeysProperty=t.linkLabelKeysProperty),t.nodeIsGroupProperty&&(this.nodeIsGroupProperty=t.nodeIsGroupProperty),t.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=t.nodeGroupKeyProperty)},A.Rv=function(){var t=wn.prototype.Rv.call(this),e=`,
|
|
|
"linkDataArray": `+oh(this,this.linkDataArray,!0);return t+e},A.kv=function(t){wn.prototype.kv.call(this,t),t=t.linkDataArray,Array.isArray(t)&&(this.dm(t),this.linkDataArray=t)};function Ux(t,e){for(var n=new Ce,i=0;i<t.linkDataArray.length;i++){var r=t.linkDataArray[i];xm(t,e,r,r,n)}return n}A.Pv=function(t,e){this.linkKeyProperty===""&&Et("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=wn.prototype.Pv.call(this,t,e),i=this,r=new Ce,o=new Ce,s=new Ce,l=this.vh;t.changes.each(function(f){f.model===i&&(f.modelChange==="linkDataArray"?f.change===ao?r.add(f.newValue):f.change===ho&&s.add(f.oldValue):i.Jc(f.object)?o.add(f.object):f.object!==null&&(f.object!==null&&l&&l.contains(f.object)?l.get(f.object).each(function(y){i.Jc(y)&&o.add(y)}):f.object instanceof wn||i.lb(f.object)||Ux(i,f.object).each(function(y){o.add(y)})))});var u=this.il;u.clear(),r.each(function(f){u.add(i.Ac(f)),e||o.add(f)});var d=this.kl;return d.clear(),s.each(function(f){d.add(i.Ac(f)),e&&o.add(f)}),t=n,0<u.count&&(t+=(e?this.Xv:this.Vv)+oh(this,u.Fa(),!0)),0<o.count&&(t+=this.iy+oh(this,o.Fa(),!0)),0<d.count&&(t+=(e?this.Vv:this.Xv)+oh(this,d.Fa(),!0)),d.clear(),u.clear(),t},A.fp=function(t){(t.linkCategoryProperty!==void 0&&t.linkCategoryProperty!==this.linkCategoryProperty||t.linkKeyProperty!==void 0&&t.linkKeyProperty!==this.linkKeyProperty||t.linkFromKeyProperty!==void 0&&t.linkFromKeyProperty!==this.linkFromKeyProperty||t.linkToKeyProperty!==void 0&&t.linkToKeyProperty!==this.linkToKeyProperty||t.linkFromPortIdProperty!==void 0&&t.linkFromPortIdProperty!==this.linkFromPortIdProperty||t.linkToPortIdProperty!==void 0&&t.linkToPortIdProperty!==this.linkToPortIdProperty||t.linkLabelKeysProperty!==void 0&&t.linkLabelKeysProperty!==this.linkLabelKeysProperty||t.nodeIsGroupProperty!==void 0&&t.nodeIsGroupProperty!==this.nodeIsGroupProperty||t.nodeGroupKeyProperty!==void 0&&t.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&Et("applyIncrementalJson cannot change Model properties"),wn.prototype.fp.call(this,t);var e=t.insertedLinkKeys;if(Array.isArray(e))for(var n=e.length,i=0;i<n;i++){var r=e[i],o=this.jh(r);o===null&&(o=this.Jo({}),this.Ks(o,r),this.fi(o))}if(e=t.modifiedLinkData,Array.isArray(e)){for(n=e.length,i=0;i<n;i++)if(r=e[i],o=this.Ac(r),o=this.jh(o),o!==null){for(var s in r)s!=="__gohashid"&&s!==this.linkKeyProperty&&this.setDataProperty(o,s,r[s]);jx(this,r,o)}}if(t=t.removedLinkKeys,Array.isArray(t))for(s=t.length,e=0;e<s;e++)n=this.jh(t[e]),n!==null&&this.bm(n)},Ii.prototype.changeState=function(t,e){if(t!==null&&t.model===this){if(t.change===_r){var n=t.object,i=t.propertyName;if(i===this.linkKeyProperty&&this.Jc(n)){var r=t.I(e);e=t.I(!e),e!==void 0&&this.wb.remove(e),r!==void 0&&this.wb.add(r,n),no(n,i,r);return}}else if(t.change===ao){if(n=t.newParam,t.modelChange==="linkDataArray"){t=t.newValue,Ut(t)&&typeof n=="number"&&(i=this.Ac(t),e?(this.$f.remove(t),this.md[n]===t&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)):(this.$f.add(t),this.md[n]!==t&&this.md.splice(n,0,t),i!==void 0&&this.wb.add(i,t)));return}if(t.modelChange==="linkLabelKeys"){i=this.Ef(t.object),Array.isArray(i)&&typeof n=="number"&&(e?(n=i.indexOf(t.newValue),0<=n&&i.splice(n,1)):0>i.indexOf(t.newValue)&&i.splice(n,0,t.newValue));return}}else if(t.change===ho){if(n=t.oldParam,t.modelChange==="linkDataArray"){t=t.oldValue,Ut(t)&&typeof n=="number"&&(i=this.Ac(t),e?(this.$f.add(t),this.md[n]!==t&&this.md.splice(n,0,t),i!==void 0&&this.wb.add(i,t)):(this.$f.remove(t),this.md[n]===t&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)));return}if(t.modelChange==="linkLabelKeys"){i=this.Ef(t.object),Array.isArray(i)&&typeof n=="number"&&(e?0>i.indexOf(t.newValue)&&i.splice(n,0,t.newValue):(n=i.indexOf(t.newValue),0<=n&&i.splice(n,1)));return}}wn.prototype.changeState.call(this,t,e)}},A=Ii.prototype,A.Vl=function(t){if(t!==void 0){var e=this.Ri;if(e!==null){var n=this.hc(t);n===null&&(n=this.copyNodeData(e),no(n,this.nodeKeyProperty,t),this.xf(n))}return t}},A.yx=function(t){return pl(this,t,!0)},A.wv=function(t,e){ff(this,t,e,!0)},A.Bx=function(t){return pl(this,t,!1)},A.Bv=function(t,e){ff(this,t,e,!1)};function pl(t,e,n){if(e!==null&&(t=n?t.lf:t.mf,t!==""&&(t=Lo(e,t),t!==void 0))){if(sh(t))return t;Et((n?"FromKey":"ToKey")+" value for link data "+e+" is not a number or a string: "+t)}}function ff(t,e,n,i){if(n===null&&(n=void 0),e!==null){var r=i?t.lf:t.mf;if(r!=="")if(n=t.Vl(n),t.Jc(e)){var o=Lo(e,r);o!==n&&(xu(t,o,e),no(e,r,n),t.hc(n)===null&&yu(t,n,e),Go(t,i?"linkFromKey":"linkToKey",_r,r,e,o,n),typeof r=="string"&&t.La(e,r))}else no(e,r,n)}}A.zx=function(t){return Em(this,t,!0)},A.xv=function(t,e){pf(this,t,e,!0)},A.Cx=function(t){return Em(this,t,!1)},A.Cv=function(t,e){pf(this,t,e,!1)};function Em(t,e,n){return e===null||(t=n?t.ej:t.fj,t==="")?"":(e=Lo(e,t),e===void 0?"":e)}function pf(t,e,n,i){if(e!==null){var r=i?t.ej:t.fj;if(r!=="")if(t.Jc(e)){var o=Lo(e,r);o===void 0&&(o=""),o!==n&&(no(e,r,n),Go(t,i?"linkFromPortId":"linkToPortId",_r,r,e,o,n),typeof r=="string"&&t.La(e,r))}else no(e,r,n)}}A.Ef=function(t){if(t===null)return Sm;var e=this.je;return e===""?Sm:(t=Lo(t,e),t===void 0?Sm:t)},A.Ls=function(t,e){if(t!==null){var n=this.je;if(n!=="")if(this.Jc(t)){var i=Lo(t,n);if(i===void 0&&(i=Sm),i!==e){if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)xu(this,i[o],t);for(no(t,n,e),r=e.length,o=0;o<r;o++){var s=e[o];this.hc(s)===null&&yu(this,s,t)}Go(this,"linkLabelKeys",_r,n,t,i,e),typeof n=="string"&&this.La(t,n)}}else no(t,n,e)}},A.Bu=function(t,e){if(e!=null&&t!==null){var n=this.je;if(n!==""){var i=Lo(t,n);if(i===void 0)n=[],n.push(e),this.Ls(t,n);else if(Array.isArray(i)){var r=i.indexOf(e);0<=r||(r=i.length,i.push(e),this.Jc(t)&&(this.hc(e)===null&&yu(this,e,t),Go(this,"linkLabelKeys",ao,n,t,null,e,null,r)))}else Et(n+" property is not an Array; cannot addLabelKeyForLinkData: "+t)}}},A.Qx=function(t,e){if(e!=null&&t!==null){var n=this.je;if(n!==""){var i=Lo(t,n);if(Array.isArray(i)){var r=i.indexOf(e);0>r||(i.splice(r,1),this.Jc(t)&&(xu(this,e,t),Go(this,"linkLabelKeys",ho,n,t,e,null,r,null)))}else i!==void 0&&Et(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+t)}}},A.Ac=function(t){if(t!==null){var e=this.Jh;if(e!==""&&(e=Lo(t,e),e!==void 0)){if(sh(e))return e;Et("Key value for link data "+t+" is not a number or a string: "+e)}}},A.Ks=function(t,e){if(t!==null){var n=this.Jh;if(n!=="")if(this.Jc(t)){var i=Lo(t,n);i!==e&&this.jh(e)===null&&(no(t,n,e),i!==void 0&&this.wb.remove(i),this.wb.add(e,t),Go(this,"linkKey",_r,n,t,i,e),typeof n=="string"&&this.La(t,n))}else no(t,n,e)}},A.jh=function(t){return t===null&&Et("GraphLinksModel.findLinkDataForKey:key must not be null"),t!==void 0&&sh(t)?this.wb.I(t):null},A.Bs=function(t){if(t!==null){var e=this.Jh;if(e!==""){var n=this.Ac(t);if(n===void 0||this.wb.contains(n)){var i=this.cl;if(i!==null&&(n=i(this,t),n!=null&&!this.wb.contains(n))){no(t,e,n);return}if(typeof n=="string"){for(i=2;this.wb.contains(n+i);)i++;no(t,e,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.wb.count-1;this.wb.contains(n);)n--;no(t,e,n)}}}}},A.Jc=function(t){return t===null?!1:this.$f.contains(t)},A.fi=function(t){t!==null&&(Ri(t),this.Jc(t)||Hx(this,t,!0))};function Hx(t,e,n){if(t.linkKeyProperty!==""){var i=t.Ac(e);if(i!==void 0&&t.wb.I(i)===e)return;t.Bs(e),i=t.Ac(e),i===void 0&&Et("GraphLinksModel.makeLinkDataKeyUnique failed on "+e+". Data not added to model."),t.wb.add(i,e)}t.$f.add(e),i=null,n&&(i=t.md.length,t.md.splice(i,0,e)),Go(t,"linkDataArray",ao,"linkDataArray",t,null,e,null,i),Ev(t,e)}A.Ey=function(t){if(Array.isArray(t))for(var e=t.length,n=0;n<e;n++)this.fi(t[n]);else for(t=t.iterator;t.next();)this.fi(t.value)},A.bm=function(t){t!==null&&zx(this,t,!0)};function zx(t,e,n){t.$f.remove(e);var i=t.Ac(e);if(i!==void 0&&t.wb.remove(i),i=null,n){if(i=t.md.indexOf(e),0>i)return;t.md.splice(i,1)}if(Go(t,"linkDataArray",ho,"linkDataArray",t,e,null,i,null),n=pl(t,e,!0),xu(t,n,e),n=pl(t,e,!1),xu(t,n,e),i=t.Ef(e),Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],xu(t,n,e)}A.lA=function(t){if(Array.isArray(t))for(var e=t.length,n=0;n<e;n++)this.bm(t[n]);else for(t=t.iterator;t.next();)this.bm(t.value)},A.Zz=function(t){if(this.linkKeyProperty===""&&Et("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),t!==this.linkDataArray&&Ye(t)){var e=this.kl;e.clear(),e.addAll(this.wb.iteratorKeys);var n=this.il;n.clear();for(var i=t.length,r=0;r<i;r++){var o=t[r],s=this.Ac(o);if(s!==void 0){n.add(s);var l=this.jh(s);l!==o&&(l!==null?(this.Do(l,o),jx(this,o,l)):(o=this.cloneDeep(o),this.Ks(o,s),this.fi(o)))}else s=this.cloneDeep(o),this.fi(s),n.add(this.Ac(s))}for(t=e.iterator;t.next();)i=t.value,n.contains(i)||(i=this.jh(i))&&this.bm(i);e.clear(),n.clear()}};function Ev(t,e){var n=pl(t,e,!0);n=t.Vl(n),t.hc(n)===null&&yu(t,n,e),n=pl(t,e,!1),n=t.Vl(n),t.hc(n)===null&&yu(t,n,e);var i=t.Ef(e);if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],t.hc(n)===null&&yu(t,n,e)}A.Jo=function(t){if(t===null)return null;var e=this.Ak;return t=e!==null?e(t,this):bm(this,t,!0),Ut(t)&&(Gn(t),this.lf!==""&&no(t,this.lf,void 0),this.mf!==""&&no(t,this.mf,void 0),this.je!==""&&no(t,this.je,[])),t},A.Yu=function(t){if(t===null)return!1;var e=this.jl;return e===""?!1:!!Lo(t,e)},A.lh=function(t){if(t!==null){var e=this.Je;if(e!==""&&(e=Lo(t,e),e!==void 0)){if(sh(e))return e;Et("GroupKey value for node data "+t+" is not a number or a string: "+e)}}},A.mp=function(t,e){if(e===null&&(e=void 0),t!==null){var n=this.Je;if(n!=="")if(this.lb(t)){var i=Lo(t,n);i!==e&&(xu(this,i,t),no(t,n,e),this.hc(e)===null&&yu(this,e,t),Go(this,"nodeGroupKey",_r,n,t,i,e),typeof n=="string"&&this.La(t,n))}else no(t,n,e)}},Ii.prototype.copyNodeData=function(t){return t===null?null:(t=wn.prototype.copyNodeData.call(this,t),this.Ij||this.Je===""||Lo(t,this.Je)===void 0||no(t,this.Je,void 0),t)},Ii.prototype.setDataProperty=function(t,e,n){if(this.lb(t)){if(e===this.nodeKeyProperty){this.km(t,n);return}if(e===this.nodeCategoryProperty){this.jm(t,n);return}if(e===this.nodeGroupKeyProperty){this.mp(t,n);return}}else if(this.Jc(t)){if(e===this.linkFromKeyProperty){ff(this,t,n,!0);return}if(e===this.linkToKeyProperty){ff(this,t,n,!1);return}if(e===this.linkFromPortIdProperty){pf(this,t,n,!0);return}if(e===this.linkToPortIdProperty){pf(this,t,n,!1);return}if(e===this.linkKeyProperty){this.Ks(t,n);return}if(e===this.linkCategoryProperty){this.lp(t,n);return}if(e===this.linkLabelKeysProperty){this.Ls(t,n);return}}var i=Lo(t,e);i!==n&&(no(t,e,n),this.Fs(t,e,i,n))},A=Ii.prototype,A.Do=function(t,e){if(e){var n=this.lb(t),i=this.Jc(t),r;for(r in e)r==="__gohashid"||n&&r===this.nodeKeyProperty||n&&r===this.nodeIsGroupProperty&&Lo(t,r)===e[r]||i&&r===this.linkKeyProperty||this.setDataProperty(t,r,e[r])}},A.jp=function(t,e){wn.prototype.jp.call(this,t,e);for(var n=this.kb.iterator;n.next();)this.qv(n.value,t,e);for(n=this.$f.iterator;n.next();){var i=n.value,r=t,o=e;if(pl(this,i,!0)===r){var s=this.lf;no(i,s,o),Go(this,"linkFromKey",_r,s,i,r,o),typeof s=="string"&&this.La(i,s)}if(pl(this,i,!1)===r&&(s=this.mf,no(i,s,o),Go(this,"linkToKey",_r,s,i,r,o),typeof s=="string"&&this.La(i,s)),s=this.Ef(i),Array.isArray(s))for(var l=s.length,u=this.je,d=0;d<l;d++)s[d]===r&&(s[d]=o,Go(this,"linkLabelKeys",ao,u,i,r,o,d,d))}},A.qv=function(t,e,n){if(this.lh(t)===e){var i=this.Je;no(t,i,n),Go(this,"nodeGroupKey",_r,i,t,e,n),typeof i=="string"&&this.La(t,i)}},A.Lv=function(){wn.prototype.Lv.call(this);for(var t=this.linkDataArray,e=t.length,n=0;n<e;n++)Ev(this,t[n])},A.fm=function(t){wn.prototype.fm.call(this,t),t=this.wa(t);var e=Lp(this,t);if(e!==null){var n=bn();for(e=e.iterator;e.next();){var i=e.value;if(this.lb(i)){if(this.lh(i)===t){var r=this.Je;Go(this,"nodeGroupKey",_r,r,i,t,t),typeof r=="string"&&this.La(i,r),n.push(i)}}else if(pl(this,i,!0)===t&&(r=this.lf,Go(this,"linkFromKey",_r,r,i,t,t),typeof r=="string"&&this.La(i,r),n.push(i)),pl(this,i,!1)===t&&(r=this.mf,Go(this,"linkToKey",_r,r,i,t,t),typeof r=="string"&&this.La(i,r),n.push(i)),r=this.Ef(i),Array.isArray(r))for(var o=r.length,s=this.je,l=0;l<o;l++)r[l]===t&&(Go(this,"linkLabelKeys",ao,s,i,t,t,l,l),n.push(i))}for(e=0;e<n.length;e++)xu(this,t,n[e]);En(n)}},A.em=function(t){wn.prototype.em.call(this,t);var e=this.lh(t);this.hc(e)===null&&yu(this,e,t)},A.qp=function(t){wn.prototype.qp.call(this,t);var e=this.lh(t);xu(this,e,t)},A.ps=function(t){if(t===null)return"";var e=this.dj;if(e===""||(e=Lo(t,e),e===void 0))return"";if(typeof e=="string")return e;Et("getCategoryForLinkData found a non-string category for "+t+": "+e)},Ii.prototype.getLinkCategoryForData=function(t){return this.ps(t)},Ii.prototype.lp=function(t,e){if(t!==null){var n=this.dj;if(n!=="")if(this.Jc(t)){var i=Lo(t,n);i===void 0&&(i=""),i!==e&&(no(t,n,e),Go(this,"linkCategory",_r,n,t,i,e),typeof n=="string"&&this.La(t,n))}else no(t,n,e)}},Ii.prototype.setLinkCategoryForData=function(t,e){this.lp(t,e)},A=Ii.prototype,A.lm=function(t,e){wn.prototype.lm.call(this,t,e),this.mp(e,this.lh(t))};function jx(t,e,n){t.lp(n,t.ps(e)),t.wv(n,t.yx(e)),t.Bv(n,t.Bx(e)),t.Ls(n,t.Ef(e)),t.xv(n,t.zx(e)),t.Cv(n,t.Cx(e))}A.Wj=function(){return!0},A.ri=function(){return!0},A.xs=function(){return!0},A.Xj=function(){return!0},Mn.Object.defineProperties(Ii.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(t){var e=this.Ri;e!==t&&(this.Ri=t,this.g("archetypeNodeData",e,t))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(t){var e=this.lf;e!==t&&(this.lf=t,this.g("linkFromKeyProperty",e,t))}},linkToKeyProperty:{get:function(){return this.mf},set:function(t){var e=this.mf;e!==t&&(this.mf=t,this.g("linkToKeyProperty",e,t))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(t){var e=this.ej;e!==t&&(this.ej=t,this.g("linkFromPortIdProperty",e,t))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(t){var e=this.fj;e!==t&&(this.fj=t,this.g("linkToPortIdProperty",e,t))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(t){var e=this.je;e!==t&&(this.je=t,this.g("linkLabelKeysProperty",e,t))}},linkDataArray:{get:function(){return this.md},set:function(t){var e=this.md;if(e!==t){this.wb.clear();for(var n=t.length,i=0;i<n;i++){var r=t[i];Ut(r)||Et("GraphLinksModel.linkDataArray must only contain Objects, not: "+r),Ri(r)}if(this.md=t,this.linkKeyProperty!==""){for(i=new Te,r=0;r<n;r++){var o=t[r],s=this.Ac(o);s===void 0||this.wb.I(s)!==null?i.add(o):this.wb.add(s,o)}for(i=i.iterator;i.next();)r=i.value,this.Bs(r),o=this.Ac(r),o!==void 0&&this.wb.add(o,r)}for(i=new Ce,r=0;r<n;r++)i.add(t[r]);for(this.$f=i,Go(this,"linkDataArray",_r,"linkDataArray",this,e,t),e=0;e<n;e++)Ev(this,t[e])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(t){var e=this.Jh;if(e!==t){this.Jh=t,this.wb.clear();for(var n=this.linkDataArray.length,i=0;i<n;i++){var r=this.linkDataArray[i],o=this.Ac(r);o===void 0&&(this.Bs(r),o=this.Ac(r)),o!==void 0&&this.wb.add(o,r)}this.g("linkKeyProperty",e,t)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(t){var e=this.cl;e!==t&&(this.cl=t,this.g("makeUniqueLinkKeyFunction",e,t))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(t){var e=this.Ak;e!==t&&(this.Ak=t,this.g("copyLinkDataFunction",e,t))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(t){var e=this.jl;e!==t&&(this.jl=t,this.g("nodeIsGroupProperty",e,t))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(t){var e=this.Je;e!==t&&(this.Je=t,this.g("nodeGroupKeyProperty",e,t))}},Ij:{get:function(){return this.Lm},set:function(t){this.Lm!==t&&(this.Lm=t)}},linkCategoryProperty:{get:function(){return this.dj},set:function(t){var e=this.dj;e!==t&&(this.dj=t,this.g("linkCategoryProperty",e,t))}},type:{get:function(){return"GraphLinksModel"}}}),Ii.prototype.setCategoryForLinkData=Ii.prototype.lp,Ii.prototype.getCategoryForLinkData=Ii.prototype.ps,Ii.prototype.assignAllDataProperties=Ii.prototype.Do,Ii.prototype.setGroupKeyForNodeData=Ii.prototype.mp,Ii.prototype.getGroupKeyForNodeData=Ii.prototype.lh,Ii.prototype.isGroupForNodeData=Ii.prototype.Yu,Ii.prototype.copyLinkData=Ii.prototype.Jo,Ii.prototype.mergeLinkDataArray=Ii.prototype.Zz,Ii.prototype.removeLinkDataCollection=Ii.prototype.lA,Ii.prototype.removeLinkData=Ii.prototype.bm,Ii.prototype.addLinkDataCollection=Ii.prototype.Ey,Ii.prototype.addLinkData=Ii.prototype.fi,Ii.prototype.containsLinkData=Ii.prototype.Jc,Ii.prototype.makeLinkDataKeyUnique=Ii.prototype.Bs,Ii.prototype.findLinkDataForKey=Ii.prototype.jh,Ii.prototype.setKeyForLinkData=Ii.prototype.Ks,Ii.prototype.getKeyForLinkData=Ii.prototype.Ac,Ii.prototype.removeLabelKeyForLinkData=Ii.prototype.Qx,Ii.prototype.addLabelKeyForLinkData=Ii.prototype.Bu,Ii.prototype.setLabelKeysForLinkData=Ii.prototype.Ls,Ii.prototype.getLabelKeysForLinkData=Ii.prototype.Ef,Ii.prototype.setToPortIdForLinkData=Ii.prototype.Cv,Ii.prototype.getToPortIdForLinkData=Ii.prototype.Cx,Ii.prototype.setFromPortIdForLinkData=Ii.prototype.xv,Ii.prototype.getFromPortIdForLinkData=Ii.prototype.zx,Ii.prototype.setToKeyForLinkData=Ii.prototype.Bv,Ii.prototype.getToKeyForLinkData=Ii.prototype.Bx,Ii.prototype.setFromKeyForLinkData=Ii.prototype.wv,Ii.prototype.getFromKeyForLinkData=Ii.prototype.yx,Ii.prototype.clear=Ii.prototype.clear;var Sm=Object.freeze([]);Ii.className="GraphLinksModel",ru.GraphLinksModel=Ii,wn.constructGraphLinksModel=wn.constructGraphLinksModel=function(){return new Ii},wn.initDiagramModel=xv=function(){return new Ii};function ga(t,e){wn.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",t!==void 0&&(Ye(t)?this.nodeDataArray=t:e=t),e&&(Object.assign(this,e),t=e.Changed)&&(delete this.Changed,this.Pe(t))}Yn(ga,wn),ga.constructGraphLinksModel=wn.constructGraphLinksModel,ga.prototype.cloneProtected=function(t){wn.prototype.cloneProtected.call(this,t),t.Ke=this.Ke,t.Nm=this.Nm,t.nj=this.nj},A=ga.prototype,A.toString=function(t){if(t===void 0&&(t=0),2<=t)return this.np();var e=(this.name!==""?this.name:"")+" TreeModel";if(0<t){e+=`
|
|
|
node data:`,t=this.nodeDataArray;for(var n=t.length,i=0;i<n;i++){var r=t[i];e+=" "+this.wa(r)+":"+li(r)}}return e},A.rm=function(){var t=wn.prototype.rm.call(this),e="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(e+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),t+e},A.gp=function(t){wn.prototype.gp.call(this,t),t.nodeParentKeyProperty&&(this.nodeParentKeyProperty=t.nodeParentKeyProperty)},A.fp=function(t){t.nodeParentKeyProperty!==void 0&&t.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Et("applyIncrementalJson cannot change Model properties"),wn.prototype.fp.call(this,t)},A.Vl=function(t){return t},A.mh=function(t){if(t!==null){var e=this.Ke;if(e!==""&&(e=Lo(t,e),e!==void 0)){if(sh(e))return e;Et("ParentKey value for node data "+t+" is not a number or a string: "+e)}}},A.qe=function(t,e){if(e===null&&(e=void 0),t!==null){var n=this.Ke;if(n!=="")if(e=this.Vl(e),this.lb(t)){var i=Lo(t,n);i!==e&&(xu(this,i,t),no(t,n,e),this.hc(e)===null&&yu(this,e,t),Go(this,"nodeParentKey",_r,n,t,i,e),typeof n=="string"&&this.La(t,n))}else no(t,n,e)}},A.ss=function(t){if(t===null)return"";var e=this.nj;return e===""||(e=Lo(t,e),e===void 0)?"":typeof e=="string"?e:(Et("getParentLinkCategoryForNodeData found a non-string category for "+t+": "+e),"")},ga.prototype.getLinkCategoryForData=function(t){return this.ss(t)},ga.prototype.Ms=function(t,e){if(t!==null){var n=this.nj;if(n!=="")if(this.lb(t)){var i=Lo(t,n);i===void 0&&(i=""),i!==e&&(no(t,n,e),Go(this,"parentLinkCategory",_r,n,t,i,e),typeof n=="string"&&this.La(t,n))}else no(t,n,e)}},ga.prototype.setLinkCategoryForData=function(t,e){this.Ms(t,e)},ga.prototype.copyNodeData=function(t){return t===null?null:(t=wn.prototype.copyNodeData.call(this,t),this.Jj||this.Ke===""||Lo(t,this.Ke)===void 0||no(t,this.Ke,void 0),t)},ga.prototype.setDataProperty=function(t,e,n){if(this.lb(t)){if(e===this.nodeKeyProperty){this.km(t,n);return}if(e===this.nodeCategoryProperty){this.jm(t,n);return}if(e===this.nodeParentKeyProperty){this.qe(t,n);return}}var i=Lo(t,e);i!==n&&(no(t,e,n),this.Fs(t,e,i,n))},A=ga.prototype,A.jp=function(t,e){wn.prototype.jp.call(this,t,e);for(var n=this.kb.iterator;n.next();)this.qv(n.value,t,e)},A.qv=function(t,e,n){if(this.mh(t)===e){var i=this.Ke;no(t,i,n),Go(this,"nodeParentKey",_r,i,t,e,n),typeof i=="string"&&this.La(t,i)}},A.fm=function(t){wn.prototype.fm.call(this,t),t=this.wa(t);var e=Lp(this,t);if(e!==null){var n=bn();for(e=e.iterator;e.next();){var i=e.value;if(this.lb(i)&&this.mh(i)===t){var r=this.Ke;Go(this,"nodeParentKey",_r,r,i,t,t),typeof r=="string"&&this.La(i,r),n.push(i)}}for(e=0;e<n.length;e++)xu(this,t,n[e]);En(n)}},A.em=function(t){wn.prototype.em.call(this,t);var e=this.mh(t);e=this.Vl(e),this.hc(e)===null&&yu(this,e,t)},A.qp=function(t){wn.prototype.qp.call(this,t);var e=this.mh(t);xu(this,e,t)},A.lm=function(t,e){wn.prototype.lm.call(this,t,e),this.Ms(e,this.ss(t)),this.qe(e,this.mh(t))},A.Tl=function(){return!0},A.xs=function(){return!0},Mn.Object.defineProperties(ga.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(t){var e=this.Ke;e!==t&&(this.Ke=t,this.g("nodeParentKeyProperty",e,t))}},Jj:{get:function(){return this.Nm},set:function(t){this.Nm!==t&&(this.Nm=t)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(t){var e=this.nj;e!==t&&(this.nj=t,this.g("parentLinkCategoryProperty",e,t))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(t){this.parentLinkCategoryProperty=t}},type:{get:function(){return"TreeModel"}}}),ga.prototype.setParentLinkCategoryForNodeData=ga.prototype.Ms,ga.prototype.getParentLinkCategoryForNodeData=ga.prototype.ss,ga.prototype.setParentKeyForNodeData=ga.prototype.qe,ga.prototype.getParentKeyForNodeData=ga.prototype.mh,ga.className="TreeModel",ru.TreeModel=ga;function co(t){oo.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ou,this.Ti=0,this.Zv=new z,this.Jp=this.me=0,this.Xr=new _p,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ou,this.K=ma,this.nd=mf,this.hd=fv,this.tf=6,this.Nn=Im,t&&Object.assign(this,t)}Yn(co,oo),co.prototype.cloneProtected=function(t){oo.prototype.cloneProtected.call(this,t),t.eo=this.eo,t.Cm=this.Cm,t.ro=this.ro,t.ul=this.ul,t.Rb=this.Rb,t.K=this.K,t.nd=this.nd,t.hd=this.hd,t.tf=this.tf,t.Nn=this.Nn},co.prototype.qb=function(t){t.classType===co?t===Nm||t===Am||t===Cm||t===km||t===mf?this.sorting=t:t===Wh||t===gf||t===ma||t===lh?this.direction=t:t===Dc||t===ah||t===ou||t===su?this.arrangement=t:(t===yd||t===Im)&&(this.nodeDiameterFormula=t):oo.prototype.qb.call(this,t)},co.prototype.createNetwork=function(){return new vf(this)},co.prototype.doLayout=function(t){if(this.network===null&&(this.network=this.makeNetwork(t)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),t=this.network.vertexes,1>=t.count)t.count===1&&(t=t.first(),t.centerX=0,t.centerY=0);else{var e=new Te;e.addAll(t.iterator),t=new Te;var n=new Te,i=this.sort(e),r,o,s=this.Jp,l=this.arrangement,u=this.nodeDiameterFormula,d=this.radius;(!isFinite(d)||0>=d)&&(d=NaN);var f=this.aspectRatio;(!isFinite(f)||0>=f)&&(f=1);var y=this.startAngle;isFinite(y)||(y=0);var T=this.sweepAngle;if((!isFinite(T)||360<T||1>T)&&(T=360),e=this.spacing,isFinite(e)||(e=NaN),l===su&&u===yd?l=ou:l===su&&u!==yd&&(l=this.arrangement),(this.direction===Wh||this.direction===gf)&&this.sorting!==mf){for(u=0;!(u>=i.length)&&(t.add(i.M(u)),!(u+1>=i.length));u+=2)n.add(i.M(u+1));this.direction===Wh?(this.arrangement===su&&t.reverse(),i=new Te,i.addAll(t),i.addAll(n)):(this.arrangement===su&&n.reverse(),i=new Te,i.addAll(n),i.addAll(t))}u=i.length;for(var w=o=r=0;w<i.length;w++){var N=y+T*o*(this.direction===ma?1:-1)/u,F=i.M(w).diameter;isNaN(F)&&(F=uh(i.M(w),N)),360>T&&(w===0||w===i.length-1)&&(F/=2),r+=F,o++}if(isNaN(d)||l===su){if(isNaN(e)&&(e=6),l!==ou&&l!==su){for(o=-1/0,s=0;s<u;s++)w=i.M(s),r=i.M(s===u-1?0:s+1),isNaN(w.diameter)&&uh(w,0),isNaN(r.diameter)&&uh(r,0),o=Math.max(o,(w.diameter+r.diameter)/2);s=o+e,l===Dc?d=(o+e)/(2*Math.PI/u):d=Tm(this,s*(360<=T?u:u-1),f,y*Math.PI/180,T*Math.PI/180)}else d=Tm(this,r+(360<=T?u:u-1)*(l!==su?e:1.6*e),f,y*Math.PI/180,T*Math.PI/180);o=d*f}else if(o=d*f,w=Sv(this,d,o,y*Math.PI/180,T*Math.PI/180),isNaN(e))(l===ou||l===su)&&(e=(w-r)/(360<=T?u:u-1));else if(l===ou||l===su)w=(w-r)/(360<=T?u:u-1),w<e?(d=Tm(this,r+e*(360<=T?u:u-1),f,y*Math.PI/180,T*Math.PI/180),o=d*f):e=w;else{for(s=-1/0,r=0;r<u;r++)N=i.M(r),F=i.M(r===u-1?0:r+1),isNaN(N.diameter)&&uh(N,0),isNaN(F.diameter)&&uh(F,0),s=Math.max(s,(N.diameter+F.diameter)/2);s+=e,r=Tm(this,s*(360<=T?u:u-1),f,y*Math.PI/180,T*Math.PI/180),r>d?(d=r,o=d*f):s=w/(360<=T?u:u-1)}if(this.kw=l,this.lc=d,this.Zm=f,this.lw=y,this.Wp=T,this.Ti=e,this.me=o,this.Jp=s,e=i,i=this.kw,l=this.lc,d=this.lw,f=this.Wp,y=this.Ti,T=this.me,u=this.Jp,this.direction!==Wh&&this.direction!==gf||i!==su)if(this.direction===Wh||this.direction===gf){switch(s=0,i){case ah:s=180*wm(this,l,T,d,u)/Math.PI;break;case ou:u=e=0,s=t.first(),s!==null&&(e=uh(s,Math.PI/2)),s=n.first(),s!==null&&(u=uh(s,Math.PI/2)),s=180*wm(this,l,T,d,y+(e+u)/2)/Math.PI;break;case Dc:s=f/e.length}if(this.direction===Wh){switch(i){case ah:Pp(this,t,d,lh);break;case ou:Dp(this,t,d,lh);break;case Dc:Op(this,t,f/2,d,lh)}switch(i){case ah:Pp(this,n,d+s,ma);break;case ou:Dp(this,n,d+s,ma);break;case Dc:Op(this,n,f/2,d+s,ma)}}else{switch(i){case ah:Pp(this,n,d,lh);break;case ou:Dp(this,n,d,lh);break;case Dc:Op(this,n,f/2,d,lh)}switch(i){case ah:Pp(this,t,d+s,ma);break;case ou:Dp(this,t,d+s,ma);break;case Dc:Op(this,t,f/2,d+s,ma)}}}else switch(i){case ah:Pp(this,e,d,this.direction);break;case ou:Dp(this,e,d,this.direction);break;case Dc:Op(this,e,f,d,this.direction);break;case su:Gx(this,e,f,d,this.direction)}else Gx(this,e,f,d-f/2,ma)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Op(t,e,n,i,r){var o=t.Wp,s=t.lc;t=t.me,i=i*Math.PI/180,n=n*Math.PI/180;for(var l=e.length,u=0;u<l;u++){var d=i+(r===ma?u*n/(360<=o?l:l-1):-(u*n)/l),f=e.M(u),y=s*Math.tan(d)/t;y=Math.sqrt((s*s+t*t*y*y)/(1+y*y)),f.centerX=y*Math.cos(d),f.centerY=y*Math.sin(d),f.actualAngle=180*d/Math.PI}}function Dp(t,e,n,i){var r=t.lc,o=t.me,s=t.Ti;n=n*Math.PI/180;for(var l=e.length,u=0;u<l;u++){var d=e.M(u),f=e.M(u===l-1?0:u+1),y=o*Math.sin(n);d.centerX=r*Math.cos(n),d.centerY=y,d.actualAngle=180*n/Math.PI,isNaN(d.diameter)&&uh(d,0),isNaN(f.diameter)&&uh(f,0),d=wm(t,r,o,i===ma?n:-n,(d.diameter+f.diameter)/2+s),n+=i===ma?d:-d}}function Pp(t,e,n,i){var r=t.lc,o=t.me,s=t.Jp;n=n*Math.PI/180;for(var l=e.length,u=0;u<l;u++){var d=e.M(u);d.centerX=r*Math.cos(n),d.centerY=o*Math.sin(n),d.actualAngle=180*n/Math.PI,d=wm(t,r,o,i===ma?n:-n,s),n+=i===ma?d:-d}}function Gx(t,e,n,i,r){var o=t.Wp;if(t.mj=0,t.Xr=new _p,360>n){for(o=i+(r===ma?o:-o);0>o;)o+=360;o%=360,180<o&&(o-=360),o*=Math.PI/180,t.gt=o,Wx(t,e,n,i,r)}else Vx(t,e,n,i,r);t.Xr.commit(e)}function Vx(t,e,n,i,r){var o=t.lc,s=t.Ti,l=t.Zm,u=o*Math.cos(i*Math.PI/180),d=t.me*Math.sin(i*Math.PI/180),f=e.Fa();if(f.length===3)f[0].centerX=o,f[0].centerY=0,f[1].centerX=f[0].centerX-f[0].width/2-f[1].width/2-s,f[1].y=f[0].y,f[2].centerX=(f[0].centerX+f[1].centerX)/2,f[2].y=f[0].y-f[2].height-s;else if(f.length===4)f[0].centerX=o,f[0].centerY=0,f[2].centerX=-f[0].centerX,f[2].centerY=f[0].centerY,f[1].centerX=0,f[1].y=Math.min(f[0].y,f[2].y)-f[1].height-s,f[3].centerX=0,f[3].y=Math.max(f[0].y+f[0].height+s,f[2].y+f[2].height+s);else{o=z.alloc();for(var y=0;y<f.length&&(f[y].centerX=u,f[y].centerY=d,!(y>=f.length-1));y++)Yx(t,u,d,f,y,r,o)||Kx(t,u,d,f,y,r,o),u=o.x,d=o.y;if(z.free(o),t.mj++,!(23<t.mj)){u=f[0].centerX,d=f[0].centerY,o=f[f.length-1].centerX,y=f[f.length-1].centerY;var T=Math.abs(u-o)-((f[0].width+f[f.length-1].width)/2+s),w=Math.abs(d-y)-((f[0].height+f[f.length-1].height)/2+s);s=0,1>Math.abs(w)?Math.abs(u-o)<(f[0].width+f[f.length-1].width)/2&&(s=0):s=0<w?w:1>Math.abs(T)?0:T,u=Math.abs(o)>Math.abs(y)?0<o!=d>y:0<y!=u<o,(u=r===ma?u:!u)&&(s=-Math.abs(s),s=Math.min(s,-f[f.length-1].width),s=Math.min(s,-f[f.length-1].height)),t.Xr.compare(s,f),1<Math.abs(s)&&(t.lc=8>t.mj?t.lc-s/(2*Math.PI):5>f.length&&10<s?t.lc/2:t.lc-(0<s?1.7:-2.3),t.me=t.lc*l,Vx(t,e,n,i,r))}}}function Wx(t,e,n,i,r){for(var o=t.lc,s=t.me,l=t.Zm,u=o*Math.cos(i*Math.PI/180),d=s*Math.sin(i*Math.PI/180),f=z.alloc(),y=e.Fa(),T=0;T<y.length&&(y[T].centerX=u,y[T].centerY=d,!(T>=y.length-1));T++)Yx(t,u,d,y,T,r,f)||Kx(t,u,d,y,T,r,f),u=f.x,d=f.y;if(z.free(f),t.mj++,!(23<t.mj)){if(u=Math.atan2(d,u),u=r===ma?t.gt-u:u-t.gt,u=Math.abs(u)<Math.abs(u-2*Math.PI)?u:u-2*Math.PI,o=u*(o+s)/2,s=t.Xr,Math.abs(o)<Math.abs(s.Pl))for(s.Pl=o,s.mk=[],s.tm=[],u=0;u<y.length;u++)s.mk[u]=y[u].bounds.x,s.tm[u]=y[u].bounds.y;1<Math.abs(o)&&(t.lc=8>t.mj?t.lc-o/(2*Math.PI):t.lc-(0<o?1.7:-2.3),t.me=t.lc*l,Wx(t,e,n,i,r))}}function Yx(t,e,n,i,r,o,s){var l=t.lc,u=t.me,d=0;t=(i[r].width+i[r+1].width)/2+t.Ti;var f=!1;if(0<=n!=(o===ma)){if(o=e+t,o>l){if(o=e-t,o<-l)return s.x=o,s.y=d,!1;f=!0}}else if(o=e-t,o<-l){if(o=e+t,o>l)return s.x=o,s.y=d,!1;f=!0}return d=Math.sqrt(1-Math.min(1,o*o/(l*l)))*u,0>n!==f&&(d=-d),Math.abs(n-d)>(i[r].height+i[r+1].height)/2?(s.x=o,s.y=d,!1):(s.x=o,s.y=d,!0)}function Kx(t,e,n,i,r,o,s){var l=t.lc,u=t.me,d=0;if(t=(i[r].height+i[r+1].height)/2+t.Ti,i=!1,0<=e!=(o===ma)){if(o=n-t,o<-u){if(o=n+t,o>u){s.x=d,s.y=o;return}i=!0}}else if(o=n+t,o>u){if(o=n-t,o<-u){s.x=d,s.y=o;return}i=!0}d=Math.sqrt(1-Math.min(1,o*o/(u*u)))*l,0>e!==i&&(d=-d),s.x=d,s.y=o}co.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},co.prototype.commitNodes=function(){var t=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,e=t?this.group.location.copy():null,n=this.actualCenter;t?n=new z(0,0):(n.x=this.arrangementOrigin.x+this.lc,n.y=this.arrangementOrigin.y+this.me);for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;r.x+=n.x,r.y+=n.y,r.commit()}t&&(this.group.Va(),t=this.group.position.copy(),n=this.group.location.copy(),e=e.re(n.re(t)),this.group.move(e),this.Zv=e.re(t))},co.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()};function Sv(t,e,n,i,r){var o=t.ty;if(.001>Math.abs(t.Zm-1))return i!==void 0&&r!==void 0?r*e:2*Math.PI*e;t=e>n?Math.sqrt(e*e-n*n)/e:Math.sqrt(n*n-e*e)/n;for(var s=0,l=i!==void 0&&r!==void 0?r/(o+1):Math.PI/(2*(o+1)),u=0,d=0;d<=o;d++){i!==void 0&&r!==void 0?u=i+d*r/o:u=d*Math.PI/(2*o);var f=Math.sin(u);s+=Math.sqrt(1-t*t*f*f)*l}return i!==void 0&&r!==void 0?(e>n?e:n)*s:4*(e>n?e:n)*s}function Tm(t,e,n,i,r){return e/(i!==void 0&&r!==void 0?Sv(t,1,n,i,r):Sv(t,1,n))}function wm(t,e,n,i,r){if(.001>Math.abs(t.Zm-1))return r/e;var o=e>n?Math.sqrt(e*e-n*n)/e:Math.sqrt(n*n-e*e)/n,s=0;t=2*Math.PI/(700*t.network.vertexes.count),e>n&&(i+=Math.PI/2);for(var l=0;;l++){var u=Math.sin(i+l*t);if(s+=(e>n?e:n)*Math.sqrt(1-o*o*u*u)*t,s>=r)return l*t}}co.prototype.sort=function(t){switch(this.sorting){case Cm:break;case km:t.reverse();break;case Nm:t.sort(this.comparer);break;case Am:t.sort(this.comparer),t.reverse();break;case mf:return this.ak(K1(t));default:Et("Invalid sorting type.")}return t};function K1(t){for(var e=[],n=0;n<t.length;n++)e.push(0);n=new Te;for(var i=0;i<t.length;i++){var r=-1,o=-1;if(i===0)for(var s=0;s<t.length;s++){var l=t.M(s).edgesCount;l>r&&(r=l,o=s)}else for(s=0;s<t.length;s++)l=e[s],l>r&&(r=l,o=s);for(n.add(t.M(o)),e[o]=-1,o=t.M(o),s=o.sourceEdges;s.next();)r=t.indexOf(s.value.fromVertex),0>r||0<=e[r]&&e[r]++;for(o=o.destinationEdges;o.next();)r=t.indexOf(o.value.toVertex),0>r||0<=e[r]&&e[r]++}return n}co.prototype.ak=function(t){for(var e=[],n=0;n<t.length;n++){var i=t.M(n);e[n]=[];for(var r,o=i.destinationEdges;o.next();)r=t.indexOf(o.value.toVertex),r!==n&&0>e[n].indexOf(r)&&e[n].push(r);for(i=i.sourceEdges;i.next();)r=t.indexOf(i.value.fromVertex),r!==n&&0>e[n].indexOf(r)&&e[n].push(r)}for(o=[],n=0;n<e.length;n++)o[n]=0;n=[];var s=[],l=[];i=[],r=new Te;for(var u=0,d=0;d<e.length;d++){var f=e[d].length;if(f===1)i.push(d);else if(f===0)r.add(t.M(d));else{if(u===0)n.push(d);else{for(var y=f=1/0,T=-1,w=[],N=0;N<n.length;N++)0>e[n[N]].indexOf(n[N===n.length-1?0:N+1])&&w.push(N===n.length-1?0:N+1);if(w.length===0)for(N=0;N<n.length;N++)w.push(N);for(N=0;N<w.length;N++){for(var F=w[N],nt=e[d],X=0,ut=0;ut<s.length;ut++){var ht=o[s[ut]],yt=o[l[ut]];if(ht<yt){var Nt=ht;ht=yt}else Nt=yt;if(Nt<F&&F<=ht)for(yt=0;yt<nt.length;yt++){var Yt=nt[yt];0>n.indexOf(Yt)||Nt<o[Yt]&&o[Yt]<ht||Nt===o[Yt]||ht===o[Yt]||X++}else for(yt=0;yt<nt.length;yt++)Yt=nt[yt],0>n.indexOf(Yt)||Nt<o[Yt]&&o[Yt]<ht&&Nt!==o[Yt]&&ht!==o[Yt]&&X++}for(nt=X,ut=X=0;ut<e[d].length;ut++)Nt=n.indexOf(e[d][ut]),0<=Nt&&(Nt=Math.abs(F-(Nt>=F?Nt+1:Nt)),X+=Nt<n.length+1-Nt?Nt:n.length+1-Nt);for(ut=0;ut<s.length;ut++)Nt=o[s[ut]],ht=o[l[ut]],Nt>=F&&Nt++,ht>=F&&ht++,Nt>ht&&(yt=ht,ht=Nt,Nt=yt),ht-Nt<(n.length+2)/2==(Nt<F&&F<=ht)&&X++;(nt<f||nt===f&&X<y)&&(f=nt,y=X,T=F)}for(n.splice(T,0,d),f=0;f<n.length;f++)o[n[f]]=f;for(f=0;f<e[d].length;f++)y=e[d][f],0<=n.indexOf(y)&&(s.push(d),l.push(y))}u++}}for(s=n.length;;){for(o=!0,l=0;l<i.length;l++)if(u=i[l],d=e[u][0],f=n.indexOf(d),0<=f){for(T=y=0;T<e[d].length;T++)w=n.indexOf(e[d][T]),0>w||w===f||(N=w>f?w-f:f-w,y+=w<f!=N>s-N?1:-1);n.splice(0>y?f:f+1,0,u),i.splice(l,1),l--}else o=!1;if(o)break;n.push(i[0]),i.splice(0,1)}for(e=0;e<n.length;e++)r.add(t.M(n[e]));return r},Mn.Object.defineProperties(co.prototype,{radius:{get:function(){return this.eo},set:function(t){this.eo!==t&&(0<t||isNaN(t))&&(this.eo=t,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(t){this.Cm!==t&&0<t&&(this.Cm=t,this.C())}},startAngle:{get:function(){return this.ro},set:function(t){this.ro!==t&&(this.ro=t,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(t){this.ul!==t&&(0<t&&360>=t?this.ul=t:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(t){this.Rb===t||t!==su&&t!==ou&&t!==ah&&t!==Dc||(this.Rb=t,this.C())}},direction:{get:function(){return this.K},set:function(t){this.K===t||t!==ma&&t!==lh&&t!==Wh&&t!==gf||(this.K=t,this.C())}},sorting:{get:function(){return this.nd},set:function(t){this.nd===t||t!==Cm&&t!==km&&t!==Nm&&!Am&&t!==mf||(this.nd=t,this.C())}},comparer:{get:function(){return this.hd},set:function(t){this.hd!==t&&(this.hd=t,this.C())}},spacing:{get:function(){return this.tf},set:function(t){this.tf!==t&&(this.tf=t,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(t){this.Nn===t||t!==Im&&t!==yd||(this.Nn=t,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 ou=new xe(co,"ConstantSpacing",0),ah=new xe(co,"ConstantDistance",1),Dc=new xe(co,"ConstantAngle",2),su=new xe(co,"Packed",3),ma=new xe(co,"Clockwise",4),lh=new xe(co,"Counterclockwise",5),Wh=new xe(co,"BidirectionalLeft",6),gf=new xe(co,"BidirectionalRight",7),Cm=new xe(co,"Forwards",8),km=new xe(co,"Reverse",9),Nm=new xe(co,"Ascending",10),Am=new xe(co,"Descending",11),mf=new xe(co,"Optimized",12),Im=new xe(co,"Pythagorean",13),yd=new xe(co,"Circular",14);co.className="CircularLayout",co.ConstantSpacing=ou,co.ConstantDistance=ah,co.ConstantAngle=Dc,co.Packed=su,co.Clockwise=ma,co.Counterclockwise=lh,co.BidirectionalLeft=Wh,co.BidirectionalRight=gf,co.Forwards=Cm,co.Reverse=km,co.Ascending=Nm,co.Descending=Am,co.Optimized=mf,co.Pythagorean=Im,co.Circular=yd;function _p(){this.Pl=-1/0,this.tm=this.mk=null}_p.prototype.compare=function(t,e){if(0<t&&0>this.Pl||Math.abs(t)<Math.abs(this.Pl)&&!(0>t&&0<this.Pl))for(this.Pl=t,this.mk=[],this.tm=[],t=0;t<e.length;t++)this.mk[t]=e[t].bounds.x,this.tm[t]=e[t].bounds.y},_p.prototype.commit=function(t){if(this.mk!==null&&this.tm!==null)for(var e=0;e<this.mk.length;e++){var n=t.M(e);n.x=this.mk[e],n.y=this.tm[e]}},_p.className="VertexArrangement";function vf(t){jr.call(this,t)}Yn(vf,jr),vf.prototype.createVertex=function(){return new Fp(this)},vf.prototype.createEdge=function(){return new Lm(this)},vf.className="CircularNetwork";function Fp(t){Ko.call(this,t),this.u=this.Si=NaN}Yn(Fp,Ko);function uh(t,e){var n=t.network;if(n===null)return NaN;if(n=n.layout,n===null)return NaN;if(n.arrangement===su)if(n.nodeDiameterFormula===yd)t.Si=Math.max(t.width,t.height);else{if(n=Math.abs(Math.sin(e)),e=Math.abs(Math.cos(e)),n===0)return t.width;if(e===0)return t.height;t.Si=Math.min(t.height/n,t.width/e)}else t.Si=n.nodeDiameterFormula===yd?Math.max(t.width,t.height):Math.sqrt(t.width*t.width+t.height*t.height);return t.Si}Mn.Object.defineProperties(Fp.prototype,{diameter:{get:function(){return this.Si},set:function(t){this.Si!==t&&(this.Si=t)}},actualAngle:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}}}),Fp.className="CircularVertex";function Lm(t){Qa.call(this,t)}Yn(Lm,Qa),Lm.className="CircularEdge";function Ps(t){oo.call(this),this.ah=null,this.An=0,this.$d=new Je(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,t&&Object.assign(this,t)}Yn(Ps,oo),Ps.prototype.cloneProtected=function(t){oo.prototype.cloneProtected.call(this,t),t.$d.assign(this.$d),t.Bm=this.Bm,t.sf=this.sf,t.td=this.td,t.dl=this.dl,t.$m=this.$m,t.Zf=this.Zf,t.In=this.In,t.fo=this.fo,t.Hk=this.Hk,t.Gk=this.Gk,t.Ek=this.Ek,t.Fk=this.Fk,t.Vm=this.Vm,t.Um=this.Um},Ps.prototype.createNetwork=function(){return new xd(this)},Ps.prototype.doLayout=function(t){if(this.network===null&&(this.network=this.makeNetwork(t)),t=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var e=this.network.vertexes.iterator;e.next();){var n=e.value;n.charge=this.electricalCharge(n),n.mass=this.gravitationalMass(n)}for(e=this.network.edges.iterator;e.next();)n=e.value,n.stiffness=this.springStiffness(n),n.length=this.springLength(n);if(this.Cu(),this.An=0,this.needsClusterLayout()){e=this.network,n=e.Zx();for(var i=n.iterator;i.next();){this.network=i.value;for(var r=this.network.vertexes.iterator;r.next();){var o=r.value;o.Vd=o.vertexes.count,o.sh=1,o.Hj=null,o.We=null}Zx(this,0,t)}this.network=e;var s=i=n.iterator;i=this.arrangementSpacing;var l=s.count,u=!0;o=r=0;for(var d=bn(),f=0;f<l+e.vertexes.count+2;f++)d[f]=null;l=0,s.reset();for(var y=Xt.alloc();s.next();)if(f=s.value,this.computeBounds(f,y),u)u=!1,r=y.x+y.width/2,o=y.y+y.height/2,d[0]=new z(y.x+y.width+i.width,y.y),d[1]=new z(y.x,y.y+y.height+i.height),l=2;else{var T=$x(d,l,r,o,y.width,y.height,i),w=d[T],N=new z(w.x+y.width+i.width,w.y),F=new z(w.x,w.y+y.height+i.height);for(T+1<l&&d.splice(T+1,0,null),d[T]=N,d[T+1]=F,l++,T=w.x-y.x,w=w.y-y.y,f=f.vertexes.iterator;f.next();)N=f.value,N.centerX+=T,N.centerY+=w}for(Xt.free(y),f=e.vertexes.iterator;f.next();)s=f.value,T=s.bounds,2>l?(r=T.x+T.width/2,o=T.y+T.height/2,d[0]=new z(T.x+T.width+i.width,T.y),d[1]=new z(T.x,T.y+T.height+i.height),l=2):(u=$x(d,l,r,o,T.width,T.height,i),y=d[u],w=new z(y.x+T.width+i.width,y.y),T=new z(y.x,y.y+T.height+i.height),u+1<l&&d.splice(u+1,0,null),d[u]=w,d[u+1]=T,l++,s.centerX=y.x+s.width/2,s.centerY=y.y+s.height/2);for(En(d),i=n.iterator;i.next();){for(n=i.value,r=n.vertexes.iterator;r.next();)e.dh(r.value);for(n=n.edges.iterator;n.next();)e.Bo(n.value)}}Qx(this,t),this.updateParts()}this.dl=t,this.network=null,this.isValidLayout=!0},Ps.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var t=0,e=0,n=this.network.vertexes.first().bounds,i=this.network.vertexes.iterator;i.next();){if(i.value.bounds.Yc(n)&&(t++,2<t))return!0;if(10<e)break;e++}return!1},Ps.prototype.computeBounds=function(t,e){var n=!0;for(t=t.vertexes.iterator;t.next();){var i=t.value;n?(n=!1,e.set(i.bounds)):e.ed(i.bounds)}return e};function Zx(t,e,n){if(Z1(t,e)){var i=t.Zf;t.Zf*=1+1/(e+1);var r=$1(t,e),o=Math.max(0,Math.max(Math.min(t.network.vertexes.count,n*(e+1)/11),10));for(t.maxIterations+=o,Zx(t,e+1,n),Qx(t,o),X1(t,r),e=r.vertexes.Fa(),e.sort(function(s,l){return s===null||l===null||s===l?0:l.Vd-s.Vd}),n=0;n<e.length;n++)Q1(t,e[n]);t.Zf=i}}function Z1(t,e){if(10<e||3>t.network.vertexes.count)return!1;for(t.ah=t.network.vertexes.Fa(),t=t.ah,t.sort(function(n,i){return n===null||i===null||n===i?0:i.Vd-n.Vd}),e=t.length-1;0<=e&&1>=t[e].Vd;)e--;return 1<t.length-e}function $1(t,e){for(var n=t.network,i=new xd(t),r=0;r<t.ah.length;r++){var o=t.ah[r];if(1<o.Vd){i.dh(o);var s=new Jx;s.Rs=o.Vd,s.Ss=o.width,s.Qs=o.height,s.Sv=o.focus.x,s.Tv=o.focus.y,o.We===null&&(o.We=new Te),o.We.add(s),o.sv=o.We.count-1}else break}for(o=n.edges.iterator;o.next();){var l=o.value;r=l.fromVertex,s=l.toVertex,r.network===i&&s.network===i?i.Bo(l):r.network===i?(l=r.Hj,l===null&&(l=new Te,r.Hj=l),l.add(s),r.Vd--,r.sh+=s.sh):s.network===i&&(l=s.Hj,l===null&&(l=new Te,s.Hj=l),l.add(r),s.Vd--,s.sh+=r.sh)}for(r=i.edges.iterator;r.next();)o=r.value,o.length*=Math.max(1,It.sqrt((o.fromVertex.sh+o.toVertex.sh)/(4*e+1)));for(e=i.vertexes.iterator;e.next();){r=e.value;var u=r.Hj;if(u!==null&&0<u.count&&(s=r.We.M(r.We.count-1).Rs-r.Vd,!(0>=s))){for(var d=l=0,f=u.count-s;f<u.count;f++){var y=u.M(f),T=null;for(o=y.edges.iterator;o.next();){var w=o.value;if(w.Ax(y)===r){T=w;break}}T!==null&&(d+=T.length,l+=y.width*y.height)}o=r.centerX,u=r.centerY,f=r.width,y=r.height,T=r.focus,w=f*y,1>w&&(w=1),l=It.sqrt((l+w+d*d*4/(s*s))/w),s=(l-1)*f/2,l=(l-1)*y/2,r.bounds=new Xt(o-T.x-s,u-T.y-l,f+2*s,y+2*l),r.focus=new z(T.x+s,T.y+l)}}return t.network=i,n}function X1(t,e){for(var n=t.network.vertexes.iterator;n.next();){var i=n.value;if(i.network=e,i.We!==null){var r=i.We.M(i.sv);i.Vd=r.Rs;var o=r.Sv,s=r.Tv;i.bounds=new Xt(i.centerX-o,i.centerY-s,r.Ss,r.Qs),i.focus=new z(o,s),i.sv--}}for(n=t.network.edges.iterator;n.next();)n.value.network=e;t.network=e}function Q1(t,e){var n=e.Hj;if(n!==null&&n.count!==0){var i=e.centerX,r=e.centerY,o=e.width,s=e.height;e.We!==null&&0<e.We.count&&(s=e.We.M(0),o=s.Ss,s=s.Qs),o=It.sqrt(o*o+s*s)/2;for(var l=!1,u=s=0,d=0,f=e.vertexes.iterator;f.next();){var y=f.value;1>=y.Vd?u++:(l=!0,d++,s+=Math.atan2(e.centerY-y.centerY,e.centerX-y.centerX))}if(u!==0){for(0<d&&(s/=d),d=e=0,e=l?2*Math.PI/(u+1):2*Math.PI/u,u%2===0&&(d=e/2),1<n.count&&n.sort(function(w,N){return w===null||N===null||w===N?0:N.width*N.height-w.width*w.height}),l=u%2===0?0:1,n=n.iterator;n.next();)if(u=n.value,!(1<u.Vd||t.isFixed(u))){for(f=null,y=u.edges.iterator;y.next();){f=y.value;break}y=u.width;var T=u.height;y=It.sqrt(y*y+T*T)/2,f=o+f.length+y,y=s+(e*(l/2>>1)+d)*(l%2===0?1:-1),u.centerX=i+f*Math.cos(y),u.centerY=r+f*Math.sin(y),l++}}}}function $x(t,e,n,i,r,o,s){var l=9e19,u=-1,d=0;t:for(;d<e;d++){var f=t[d],y=f.x-n,T=f.y-i;if(y=y*y+T*T,y<l){for(T=d-1;0<=T;T--)if(t[T].y>f.y&&t[T].x-f.x<r+s.width)continue t;for(T=d+1;T<e;T++)if(t[T].x>f.x&&t[T].y-f.y<o+s.height)continue t;u=d,l=y}}return u}Ps.prototype.Cu=function(){if(this.comments)for(var t=this.network.vertexes.iterator;t.next();)this.addComments(t.value)},Ps.prototype.addComments=function(t){var e=t.node;if(e!==null)for(e=e.Mu();e.next();){var n=e.value;if(n.category==="Comment"&&n.isVisible()){var i=this.network.ki(n);i===null&&(i=this.network.Bl(n)),i.charge=this.defaultCommentElectricalCharge,n=null;for(var r=i.destinationEdges;r.next();){var o=r.value;if(o.toVertex===t){n=o;break}}if(n===null){for(r=i.sourceEdges;r.next();)if(o=r.value,o.fromVertex===t){n=o;break}}n===null&&(n=this.network.Zj(t,i,null)),n.length=this.defaultCommentSpringLength}}};function Xx(t,e){var n=t.bounds,i=n.x;t=n.y;var r=n.width;n=n.height;var o=e.bounds,s=o.x;e=o.y;var l=o.width;return o=o.height,i+r<s?t>e+o?(n=i+r-s,t=t-e-o,It.sqrt(n*n+t*t)):t+n<e?(i=i+r-s,t=t+n-e,It.sqrt(i*i+t*t)):s-(i+r):i>s+l?t>e+o?(n=i-s-l,t=t-e-o,It.sqrt(n*n+t*t)):t+n<e?(i=i-s-l,t=t+n-e,It.sqrt(i*i+t*t)):i-(s+l):t>e+o?t-(e+o):t+n<e?e-(t+n):.1}function Qx(t,e){for(t.ah=null,e=t.An+e;t.An<e&&(t.An++,J1(t)););t.ah=null}function J1(t){t.ah===null&&(t.ah=t.network.vertexes.Fa());var e=t.ah;if(0>=e.length)return!1;var n=e[0];n.forceX=0,n.forceY=0;for(var i=n.centerX,r=i,o=n=n.centerY,s=1;s<e.length;s++){var l=e[s];l.forceX=0,l.forceY=0;var u=l.centerX;l=l.centerY,i=Math.min(i,u),r=Math.max(r,u),n=Math.min(n,l),o=Math.max(o,l)}(r=r-i>o-n)?e.sort(function(F,nt){return F===null||nt===null||F===nt?0:F.centerX-nt.centerX}):e.sort(function(F,nt){return F===null||nt===null||F===nt?0:F.centerY-nt.centerY}),n=t.Zf;var d=i=l=0;for(o=0;o<e.length;o++){s=e[o],i=s.bounds,l=s.focus,u=i.x+l.x;var f=i.y+l.y;i=s.charge*t.electricalFieldX(u,f),d=s.charge*t.electricalFieldY(u,f),i+=s.mass*t.gravitationalFieldX(u,f),d+=s.mass*t.gravitationalFieldY(u,f),s.forceX+=i,s.forceY+=d;for(var y=o+1;y<e.length;y++){var T=e[y];if(T!==s){i=T.bounds,l=T.focus,d=i.x+l.x;var w=i.y+l.y;if(u-d>n||d-u>n){if(r)break}else if(f-w>n||w-f>n){if(!r)break}else{var N=Xx(s,T);1>N?(i=t.randomNumberGenerator,i===null&&(t.randomNumberGenerator=i=new Rm),N=i.random(),l=i.random(),u>d?(i=Math.abs(T.bounds.right-s.bounds.x),i=(1+i)*N):u<d?(i=Math.abs(T.bounds.x-s.bounds.right),i=-(1+i)*N):(i=Math.max(T.width,s.width),i=(1+i)*N-i/2),f>w?(d=Math.abs(T.bounds.bottom-s.bounds.y),d=(1+d)*l):u<d?(d=Math.abs(T.bounds.y-s.bounds.bottom),d=-(1+d)*l):(d=Math.max(T.height,s.height),d=(1+d)*l-d/2)):(l=-(s.charge*T.charge)/(N*N),i=(d-u)/N*l,d=(w-f)/N*l),s.forceX+=i,s.forceY+=d,T.forceX-=i,T.forceY-=d}}}}for(r=t.network.edges.iterator;r.next();)l=r.value,n=l.fromVertex,o=l.toVertex,s=n.bounds,u=n.focus,i=s.x+u.x,s=s.y+u.y,f=o.bounds,y=o.focus,u=f.x+y.x,f=f.y+y.y,y=Xx(n,o),1>y?(y=t.randomNumberGenerator,y===null&&(t.randomNumberGenerator=y=new Rm),l=y.random(),y=y.random(),i=(i>u?1:-1)*(1+(o.width>n.width?o.width:n.width))*l,d=(s>f?1:-1)*(1+(o.height>n.height?o.height:n.height))*y):(l=l.stiffness*(y-l.length),i=(u-i)/y*l,d=(f-s)/y*l),n.forceX+=i,n.forceY+=d,o.forceX-=i,o.forceY-=d;for(r=i=0;r<e.length;r++)n=e[r],t.isFixed(n)?t.moveFixedVertex(n):i=Math.max(i,t.moveVertex(n)||0);return i>t.epsilonDistance*t.epsilonDistance}Ps.prototype.moveVertex=function(t){var e=t.forceX,n=t.forceY,i=this.moveLimit;return e<-i?e=-i:e>i&&(e=i),n<-i?n=-i:n>i&&(n=i),t.centerX+=e,t.centerY+=n,e*e+n*n},Ps.prototype.moveFixedVertex=function(){},Ps.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ps.prototype.yv=function(){if(this.setsPortSpots)for(var t=this.network.edges.iterator;t.next();){var e=t.value.link;e!==null&&(e.fromSpot=_o,e.toSpot=_o)}},Ps.prototype.commitNodes=function(){var t=0,e=0;if(this.arrangesToOrigin){var n=Xt.alloc();this.computeBounds(this.network,n),e=this.arrangementOrigin,t=e.x-n.x,e=e.y-n.y,Xt.free(n)}n=Xt.alloc();for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;(t!==0||e!==0)&&(n.assign(r.bounds),n.x+=t,n.y+=e,r.bounds=n),r.commit()}Xt.free(n)},Ps.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},Ps.prototype.springStiffness=function(t){return t=t.stiffness,isNaN(t)?this.Hk:t},Ps.prototype.springLength=function(t){return t=t.length,isNaN(t)?this.Gk:t},Ps.prototype.electricalCharge=function(t){return t=t.charge,isNaN(t)?this.Ek:t},Ps.prototype.electricalFieldX=function(){return 0},Ps.prototype.electricalFieldY=function(){return 0},Ps.prototype.gravitationalMass=function(t){return t=t.mass,isNaN(t)?this.Fk:t},Ps.prototype.gravitationalFieldX=function(){return 0},Ps.prototype.gravitationalFieldY=function(){return 0},Ps.prototype.isFixed=function(t){return t.isFixed},Mn.Object.defineProperties(Ps.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(t){this.$d.D(t)||(this.$d.assign(t),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(t){this.Bm!==t&&(this.Bm=t,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(t){this.sf!==t&&(this.sf=t,this.C())}},comments:{get:function(){return this.td},set:function(t){this.td!==t&&(this.td=t,this.C())}},maxIterations:{get:function(){return this.dl},set:function(t){this.dl!==t&&0<=t&&(this.dl=t,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(t){this.$m!==t&&0<t&&(this.$m=t,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(t){this.Zf!==t&&1<t&&(this.Zf=t,this.C())}},moveLimit:{get:function(){return this.In},set:function(t){this.In!==t&&1<t&&(this.In=t,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(t){this.fo!==t&&(t!==null&&typeof t.random!="function"&&Et('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+t),this.fo=t)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(t){this.Hk!==t&&(this.Hk=t,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(t){this.Gk!==t&&(this.Gk=t,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(t){this.Ek!==t&&(this.Ek=t,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(t){this.Fk!==t&&(this.Fk=t,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(t){this.Vm!==t&&(this.Vm=t,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(t){this.Um!==t&&(this.Um=t,this.C())}}}),Ps.className="ForceDirectedLayout";function Jx(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Jx.className="ForceDirectedSubnet";function xd(t){jr.call(this,t)}Yn(xd,jr),xd.prototype.createVertex=function(){return new Bp(this)},xd.prototype.createEdge=function(){return new Up(this)},xd.className="ForceDirectedNetwork";function Bp(t){Ko.call(this,t),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}Yn(Bp,Ko),Mn.Object.defineProperties(Bp.prototype,{isFixed:{get:function(){return this.ia},set:function(t){this.ia!==t&&(this.ia=t)}},charge:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},mass:{get:function(){return this.Ha},set:function(t){this.Ha!==t&&(this.Ha=t)}},forceX:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}},forceY:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t)}}}),Bp.className="ForceDirectedVertex";function Up(t){Qa.call(this,t),this.j=this.o=NaN}Yn(Up,Qa),Mn.Object.defineProperties(Up.prototype,{stiffness:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t)}},length:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t)}}}),Up.className="ForceDirectedEdge";function Rm(){var t=0;t===void 0&&(t=42),this.seed=t,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Rm.prototype.random=function(){var t=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<t?this.seed=t:this.seed=t+this.ey,this.seed*this.by},Rm.className="RandomNumberGenerator";function dr(t){oo.call(this),this.kc=this.ie=25,this.K=0,this.Dk=_m,this.Zk=Fm,this.Qk=Bm,this.bj=4,this.rk=Um,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 z,this.He=[],this.He.length=100,this.xw=this.ve=0,t&&Object.assign(this,t)}Yn(dr,oo),dr.prototype.cloneProtected=function(t){oo.prototype.cloneProtected.call(this,t),t.ie=this.ie,t.kc=this.kc,t.K=this.K,t.Dk=this.Dk,t.Zk=this.Zk,t.Qk=this.Qk,t.bj=this.bj,t.rk=this.rk,t.bg=this.bg,t.sf=this.sf,t.Cn=this.Cn,t.ve=this.ve},dr.prototype.qb=function(t){t.classType===dr?t.name.indexOf("Aggressive")===0?this.aggressiveOption=t:t.name.indexOf("Cycle")===0?this.cycleRemoveOption=t:t.name.indexOf("Init")===0?this.initializeOption=t:t.name.indexOf("Layer")===0?this.layeringOption=t:Et("Unknown enum value: "+t):oo.prototype.qb.call(this,t)},dr.prototype.createNetwork=function(){return new xf(this)},dr.prototype.doLayout=function(t){for(this.network===null&&(this.network=this.makeNetwork(t)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,t=0;t<this.He.length;t++)this.He[t]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==zp&&this.removeCycles(),t=this.network.vertexes.iterator;t.next();)t.value.layer=-1;for(this.Ia=-1,this.assignLayers(),t.reset();t.next();)this.Ia=Math.max(this.Ia,t.value.layer);this.cycleRemoveOption===zp&&this.removeCycles(),t=this.network;for(var e=[],n=t.edges.iterator;n.next();){var i=n.value;i.valid=!1,e.push(i)}for(n=0;n<e.length;n++){i=e[n];var r=i.fromVertex,o=i.toVertex;if(!(i.valid||(r.node===null&&r.data===null||o.node===null&&o.data===null)&&r.layer===o.layer)){var s=0,l=0,u=0,d=0;if(i.link!==null){if(l=i.link,l===null)continue;var f=r.node;if(s=o.node,f===null||s===null)continue;var y=l.fromNode;u=l.toNode;for(var T=l.fromPort;T!==null&&!T.Ed();)T=T.panel;for(l=l.toPort;l!==null&&!l.Ed();)l=l.panel;if(i.rev){d=y;var w=T;y=u,T=l,u=d,l=w}var N=r.focus;d=o.focus;var F=i.rev?o.bounds:r.bounds;w=z.alloc(),f!==y?F.w()&&y.isVisible()?y.actualBounds.w()?(Ic(y,T,ei,w),w.x+=y.actualBounds.x-F.x,w.y+=y.actualBounds.y-F.y):(Ic(y,T,ei,w),w.w()||w.assign(N)):w.assign(N):F.w()?(Ic(y,T,ei,w),w.w()||w.assign(N)):w.assign(N),y=i.rev?r.bounds:o.bounds,f=z.alloc(),s!==u?y.w()&&u.isVisible()?u.actualBounds.w()?(Ic(u,l,ei,f),f.x+=u.actualBounds.x-y.x,f.y+=u.actualBounds.y-y.y):(Ic(u,l,ei,f),f.w()||f.assign(d)):f.assign(d):y.w()?(Ic(u,l,ei,f),f.w()||f.assign(d)):f.assign(d),this.K===90||this.K===270?(s=Math.round((w.x-N.x)/this.kc),u=w.x,l=Math.round((f.x-d.x)/this.kc),d=f.x):(s=Math.round((w.y-N.y)/this.kc),u=w.y,l=Math.round((f.y-d.y)/this.kc),d=f.y),z.free(w),z.free(f),i.portFromColOffset=s,i.portFromPos=u,i.portToColOffset=l,i.portToPos=d}else i.portFromColOffset=0,i.portFromPos=0,i.portToColOffset=0,i.portToPos=0;if(w=r.layer,f=o.layer,y=0,F=i.link,F!==null){var nt=F.fromPort,X=F.toPort;if(nt!==null&&X!==null){var ut=F.fromNode;if(T=F.toNode,ut!==null&&T!==null){var ht=Pm(this,!0),yt=Pm(this,!1),Nt=this.setsPortSpots?ht:F.computeSpot(!0,nt);N=this.setsPortSpots?yt:F.computeSpot(!1,X);var Yt=F.isOrthogonal;Nt.$c()&&Nt.Hf(yt)&&N.$c()&&N.Hf(ht)?y=0:(ht=F.getLinkPoint(ut,nt,Nt,!0,Yt,T,X,z.alloc()),yt=F.getLinkDirection(ut,nt,ht,Nt,!0,Yt,T,X),z.free(ht),Nt.ys()||yt!==a1(this,i,!0)?this.setsPortSpots&&ut!==null&&ut.ports.count===1&&i.rev&&(y+=1):y+=1,Nt=F.getLinkPoint(T,X,N,!1,Yt,ut,nt,z.alloc()),F=F.getLinkDirection(T,X,Nt,N,!1,Yt,ut,nt),z.free(Nt),N.ys()||F!==a1(this,i,!1)?this.setsPortSpots&&T!==null&&T.ports.count===1&&i.rev&&(y+=2):y+=2)}}}if(T=y,y=T===1||T===3,(T=T===2||T===3)&&(N=t.createVertex(),N.node=null,N.Dj=1,N.layer=w,N.near=r,t.dh(N),r=t.Zj(r,N,i.link),r.valid=!1,r.rev=i.rev,r.portFromColOffset=s,r.portToColOffset=0,r.portFromPos=u,r.portToPos=0,r=N),F=1,y&&F--,w-f>F&&0<w){for(i.valid=!1,N=t.createVertex(),N.node=null,N.Dj=2,N.layer=w-1,t.dh(N),r=t.Zj(r,N,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=T?0:s,r.portToColOffset=0,r.portFromPos=T?0:u,r.portToPos=0,r=N,w--;w-f>F&&0<w;)N=t.createVertex(),N.node=null,N.Dj=3,N.layer=w-1,t.dh(N),r=t.Zj(r,N,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=0,r.portFromPos=0,r.portToPos=0,r=N,w--;r=t.Zj(N,o,i.link),r.valid=!y,y&&(N.near=o),r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=l,r.portFromPos=0,r.portToPos=d}else i.valid=!0}}for(t=this.tc=[],e=0;e<=this.Ia;e++)t[e]=0;for(e=this.network.vertexes.iterator;e.next();)e.value.index=-1;for(this.initializeIndices(),this.Iq=-1,n=this.Md=this.Hn=0;n<=this.Ia;n++)t[n]>t[this.Md]&&(this.Iq=t[n]-1,this.Md=n),t[n]<t[this.Hn]&&(this.Hn=n);for(this.fl=[],n=0;n<t.length;n++)this.fl[n]=[];for(e.reset();e.next();)t=e.value,this.fl[t.layer][t.index]=t;for(this.Ra=-1,t=0;t<=this.Ia;t++){for(e=ch(this,t),n=0,i=this.tc[t],o=0;o<i;o++)r=e[o],n+=this.nodeMinColumnSpace(r,!0),r.column=n,n+=1,n+=this.nodeMinColumnSpace(r,!1);this.Ra=Math.max(this.Ra,n-1),hh(this,t,e)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},dr.prototype.linkMinLength=function(){return 1};function Tv(t){var e=t.fromVertex.node||t.fromVertex.data;return t=t.toVertex.node||t.toVertex.data,e===null&&t===null?8:e===null||t===null?4:1}dr.prototype.nodeMinLayerSpace=function(t,e){return t.node===null&&t.data===null?0:this.K===90||this.K===270?e?t.focus.y+10:t.bounds.height-t.focus.y+10:e?t.focus.x+10:t.bounds.width-t.focus.x+10},dr.prototype.nodeMinColumnSpace=function(t,e){if(t.node===null&&t.data===null)return 0;var n=e?t.ev:t.dv;return n!==null?n:(n=this.K,n===90||n===270?e?t.ev=t.focus.x/this.kc+1|0:t.dv=(t.bounds.width-t.focus.x)/this.kc+1|0:e?t.ev=t.focus.y/this.kc+1|0:t.dv=(t.bounds.height-t.focus.y)/this.kc+1|0)};function Ra(t){t.kj===null&&(t.kj=[]);for(var e=0,n=t.network.vertexes.iterator;n.next();){var i=n.value;t.kj[e]=i.layer,e++,t.kj[e]=i.column,e++,t.kj[e]=i.index,e++}return t.kj}function Il(t,e){var n=0;for(t=t.network.vertexes.iterator;t.next();){var i=t.value;i.layer=e[n],n++,i.column=e[n],n++,i.index=e[n],n++}}function qx(t,e,n){var i=ch(t,e),r=t.tc[e];(t.Jn===null||t.Jn.length<r*r)&&(t.Jn=[]);for(var o=t.Jn,s=0;s<r;s++){var l=0,u=i[s],d=u.near;if(d!==null&&d.layer===u.layer)if(u=d.index,u>s)for(var f=s+1;f<u;f++){var y=i[f];y.near===d&&y.Dj===d.Dj||l++}else for(f=s-1;f>u;f--)y=i[f],y.near===d&&y.Dj===d.Dj||l++;var T;if(0<=n)for(u=i[s].sourceEdgesArrayAccess,d=0;d<u.length;d++){var w=u[d];if(w.valid&&w.fromVertex.layer!==e)for(y=w.fromVertex.index,f=w.portToPos,w=w.portFromPos,T=d+1;T<u.length;T++){var N=u[T];if(N.valid&&N.fromVertex.layer!==e){var F=N.fromVertex.index,nt=N.portToPos;N=N.portFromPos,f<nt&&(y>F||y===F&&w>N)&&l++,nt<f&&(F>y||F===y&&N>w)&&l++}}}if(0>=n){for(u=i[s].destinationEdgesArrayAccess,d=0;d<u.length;d++)if(w=u[d],w.valid&&w.toVertex.layer!==e)for(y=w.toVertex.index,f=w.portToPos,w=w.portFromPos,T=d+1;T<u.length;T++)N=u[T],N.valid&&N.toVertex.layer!==e&&(F=N.toVertex.index,nt=N.portToPos,N=N.portFromPos,w<N&&(y>F||y===F&&f>nt)&&l++,N<w&&(F>y||F===y&&nt>f)&&l++)}for(o[s*r+s]=l,u=s+1;u<r;u++){var X=0,ut=0;if(0<=n){l=i[s].sourceEdgesArrayAccess;var ht=i[u].sourceEdgesArrayAccess;for(d=0;d<l.length;d++)if(w=l[d],w.valid&&w.fromVertex.layer!==e)for(y=w.fromVertex.index,w=w.portFromPos,T=0;T<ht.length;T++)N=ht[T],N.valid&&N.fromVertex.layer!==e&&(F=N.fromVertex.index,N=N.portFromPos,(y<F||y===F&&w<N)&&ut++,(F<y||F===y&&N<w)&&X++)}if(0>=n){for(l=i[s].destinationEdgesArrayAccess,ht=i[u].destinationEdgesArrayAccess,d=0;d<l.length;d++)if(w=l[d],w.valid&&w.toVertex.layer!==e)for(y=w.toVertex.index,f=w.portToPos,T=0;T<ht.length;T++)N=ht[T],N.valid&&N.toVertex.layer!==e&&(F=N.toVertex.index,nt=N.portToPos,(y<F||y===F&&f<nt)&&ut++,(F<y||F===y&&nt<f)&&X++)}o[s*r+u]=X,o[u*r+s]=ut}}return hh(t,e,i),o}dr.prototype.countCrossings=function(){for(var t=0,e=0;e<=this.Ia;e++)for(var n=qx(this,e,1),i=this.tc[e],r=0;r<i;r++)for(var o=r;o<i;o++)t+=n[r*i+o];return t};function Mm(t){for(var e=0,n=0;n<=t.Ia;n++){for(var i=t,r=n,o=ch(i,r),s=i.tc[r],l=0,u=0;u<s;u++){var d=o[u].destinationEdgesArrayAccess;if(d!==null)for(var f=0;f<d.length;f++){var y=d[f];if(y.valid&&y.toVertex.layer!==r){var T=y.fromVertex.column+y.portFromColOffset,w=y.toVertex.column+y.portToColOffset;l+=(Math.abs(T-w)+1)*Tv(y)}}}hh(i,r,o),e+=l}return e}dr.prototype.normalize=function(){var t=1/0;this.Ra=-1;for(var e=this.network.vertexes.iterator;e.next();){var n=e.value;t=Math.min(t,n.column-this.nodeMinColumnSpace(n,!0)),this.Ra=Math.max(this.Ra,n.column+this.nodeMinColumnSpace(n,!1))}for(e.reset();e.next();)e.value.column-=t;this.Ra-=t};function wv(t,e,n){for(var i=ch(t,e),r=t.tc[e],o=[],s=0;s<r;s++){var l=i[s],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var d=null;0<=n&&(d=l.destinationEdgesArrayAccess);var f=0,y=0,T=l.near;if(T!==null&&T.layer===l.layer&&(f+=T.column-1,y++),u!==null)for(T=0;T<u.length;T++){l=u[T];var w=l.fromVertex;l.valid&&!l.rev&&w.layer!==e&&(f+=w.column,y++)}if(d!==null)for(u=0;u<d.length;u++)l=d[u],T=l.toVertex,l.valid&&!l.rev&&T.layer!==e&&(f+=T.column,y++);o[s]=y===0?-1:f/y}return hh(t,e,i),o}function t1(t,e,n){for(var i=ch(t,e),r=t.tc[e],o=[],s=0;s<r;s++){var l=i[s],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var d=null;0<=n&&(d=l.destinationEdgesArrayAccess);var f=0,y=[],T=l.near;if(T!==null&&T.layer===l.layer&&(y[f]=T.column-1,f++),l=void 0,u!==null)for(T=0;T<u.length;T++){l=u[T];var w=l.fromVertex;l.valid&&!l.rev&&w.layer!==e&&(y[f]=w.column+l.portFromColOffset,f++)}if(d!==null)for(u=0;u<d.length;u++)l=d[u],T=l.toVertex,l.valid&&!l.rev&&T.layer!==e&&(y[f]=T.column+l.portToColOffset,f++);f===0?o[s]=-1:(y.sort(function(N,F){return N-F}),d=f>>1,o[s]=f&1?y[d]:y[d-1]+y[d]>>1)}return hh(t,e,i),o}function Hp(t,e,n,i,r,o){if(e.component===i){if(e.component=n,r)for(var s=e.destinationEdges;s.next();){var l=s.value,u=l.toVertex,d=e.layer-u.layer;l=t.linkMinLength(l),d===l&&Hp(t,u,n,i,r,o)}if(o)for(s=e.sourceEdges;s.next();)l=s.value,u=l.fromVertex,d=u.layer-e.layer,l=t.linkMinLength(l),d===l&&Hp(t,u,n,i,r,o)}}function Cv(t,e,n,i,r,o){if(e.component===i){if(e.component=n,r)for(var s=e.destinationEdges;s.next();)Cv(t,s.value.toVertex,n,i,r,o);if(o)for(e=e.sourceEdges;e.next();)Cv(t,e.value.fromVertex,n,i,r,o)}}dr.prototype.removeCycles=function(){for(var t=this.network.edges.iterator;t.next();)t.value.rev=!1;switch(this.Dk){default:case Av:t=this.network;var e=0,n=t.vertexes.count-1,i=[];i.length=n+1;for(var r=t.vertexes.iterator;r.next();)r.value.valid=!0;for(;q1(t)!==null;){for(r=e1(t);r!==null;)i[n]=r,n--,r.valid=!1,r=e1(t);for(r=n1(t);r!==null;)i[e]=r,e++,r.valid=!1,r=n1(t);r=null;for(var o=0,s=this.network.vertexes.iterator;s.next();){var l=s.value;if(l.valid){for(var u=0,d=l.destinationEdges;d.next();)d.value.toVertex.valid&&u++;d=0;for(var f=l.sourceEdges;f.next();)f.value.fromVertex.valid&&d++;(r===null||o<u-d)&&(r=l,o=u-d)}}r!==null&&(i[e]=r,e++,r.valid=!1)}for(e=0;e<t.vertexes.count;e++)i[e].index=e;for(i=t.edges.iterator;i.next();)e=i.value,e.fromVertex.index>e.toVertex.index&&(t.gm(e),e.rev=!0);break;case _m:for(i=this.network.vertexes.iterator;i.next();)t=i.value,t.Ll=-1,t.finish=-1;for(t=this.network.edges.iterator;t.next();)t.value.forest=!1;for(this.Kn=0,i.reset();i.next();)e=i.value,e.sourceEdges.count===0&&kv(this,e);for(i.reset();i.next();)e=i.value,e.Ll===-1&&kv(this,e);for(t.reset();t.next();)i=t.value,i.forest||(e=i.fromVertex,n=e.finish,r=i.toVertex,o=r.finish,r.Ll<e.Ll&&n<o&&(this.network.gm(i),i.rev=!0));break;case zp:for(t=this.network,e=t.vertexes.iterator,i=1/0;e.next();)i=Math.min(i,e.value.layer);if(1/0>i){if(0>i)for(e.reset();e.next();)e.value.layer-=i;for(i=[],e.reset();e.next();)n=e.value,r=i[n.layer],r===void 0?i[n.layer]=[n]:r.push(n);for(n=e=0;n<i.length;n++)if(r=i[n],!r||r.length===0)e++;else if(0<n)for(o=0;o<r.length;o++)r[o].layer-=e;for(i=t.edges.iterator;i.next();)e=i.value,e.fromVertex.layer<e.toVertex.layer&&(t.gm(e),e.rev=!0)}}};function q1(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid)return e}return null}function e1(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var n=!0,i=e.destinationEdges;i.next();)if(i.value.toVertex.valid){n=!1;break}if(n)return e}}return null}function n1(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var n=!0,i=e.sourceEdges;i.next();)if(i.value.fromVertex.valid){n=!1;break}if(n)return e}}return null}function kv(t,e){e.Ll=t.Kn,t.Kn++;for(var n=e.destinationEdges;n.next();){var i=n.value,r=i.toVertex;r.Ll===-1&&(i.forest=!0,kv(t,r))}e.finish=t.Kn,t.Kn++}dr.prototype.assignLayers=function(){switch(this.Zk){case Iv:i1(this);break;case Lv:for(var t,e=this.network.vertexes.iterator;e.next();)t=o1(this,e.value),this.Ia=Math.max(t,this.Ia);for(e.reset();e.next();)t=e.value,t.layer=this.Ia-t.layer;break;default:case Fm:for(i1(this),e=this.network.vertexes.iterator;e.next();)e.value.valid=!1;for(e.reset();e.next();)t=e.value,t.sourceEdges.count===0&&s1(this,t);for(t=1/0,e.reset();e.next();)t=Math.min(t,e.value.layer);for(this.Ia=-1,e.reset();e.next();){var n=e.value;n.layer-=t,this.Ia=Math.max(this.Ia,n.layer)}}};function i1(t){for(var e=t.network.vertexes.iterator;e.next();){var n=r1(t,e.value);t.Ia=Math.max(n,t.Ia)}}function r1(t,e){var n=0;if(e.layer===-1){for(var i=e.destinationEdges;i.next();){var r=i.value,o=r.toVertex;r=t.linkMinLength(r),n=Math.max(n,r1(t,o)+r)}e.layer=n}else n=e.layer;return n}function o1(t,e){var n=0;if(e.layer===-1){for(var i=e.sourceEdges;i.next();){var r=i.value,o=r.fromVertex;r=t.linkMinLength(r),n=Math.max(n,o1(t,o)+r)}e.layer=n}else n=e.layer;return n}function s1(t,e){if(!e.valid){e.valid=!0;for(var n=e.destinationEdges;n.next();)s1(t,n.value.toVertex);for(n=t.network.vertexes.iterator;n.next();)n.value.component=-1;for(var i=e.sourceEdgesArrayAccess,r=i.length,o=0;o<r;o++){var s=i[o],l=s.fromVertex,u=s.toVertex;s=t.linkMinLength(s),l.layer-u.layer>s&&Hp(t,l,0,-1,!0,!1)}for(Hp(t,e,1,-1,!0,!0);e.component!==0;){for(o=0,i=1/0,l=0,u=null,s=t.network.vertexes.iterator;s.next();){var d=s.value;if(d.component===1){var f=0,y=!1,T=d.sourceEdgesArrayAccess;r=T.length;for(var w=0;w<r;w++){var N=T[w],F=N.fromVertex;f+=1,F.component!==1&&(o+=1,F=F.layer-d.layer,N=t.linkMinLength(N),i=Math.min(i,F-N))}for(T=d.destinationEdgesArrayAccess,r=T.length,w=0;w<r;w++)N=T[w].toVertex,--f,N.component!==1?--o:y=!0;(u===null||f<l)&&!y&&(u=d,l=f)}}if(0<o){for(n.reset();n.next();)r=n.value,r.component===1&&(r.layer+=i);e.component=0}else u.component=0}for(n=t.network.vertexes.iterator;n.next();)n.value.component=-1;for(Hp(t,e,1,-1,!0,!1);e.component!==0;){for(i=0,r=1/0,o=0,l=null,u=t.network.vertexes.iterator;u.next();)if(s=u.value,s.component===1){for(d=0,f=!1,T=s.sourceEdgesArrayAccess,y=T.length,w=0;w<y;w++)N=T[w].fromVertex,d+=1,N.component!==1?i+=1:f=!0;for(T=s.destinationEdgesArrayAccess,y=T.length,w=0;w<y;w++)N=T[w],F=N.toVertex,--d,F.component!==1&&(--i,F=s.layer-F.layer,N=t.linkMinLength(N),r=Math.min(r,F-N));(l===null||d>o)&&!f&&(l=s,o=d)}if(0>i){for(n.reset();n.next();)i=n.value,i.component===1&&(i.layer-=r);e.component=0}else l.component=0}}}function a1(t,e,n){return t.K===90?n&&!e.rev||!n&&e.rev?270:90:t.K===180?n&&!e.rev||!n&&e.rev?0:180:t.K===270?n&&!e.rev||!n&&e.rev?90:270:n&&!e.rev||!n&&e.rev?180:0}dr.prototype.initializeIndices=function(){switch(this.Qk){default:case Mv:for(var t=this.network.vertexes.iterator;t.next();){var e=t.value,n=e.layer;e.index=this.tc[n],this.tc[n]++}break;case Bm:for(t=this.network.vertexes.iterator,e=this.Ia;0<=e;e--)for(t.reset();t.next();)n=t.value,n.layer===e&&n.index===-1&&l1(this,n);break;case Rv:for(t=this.network.vertexes.iterator,e=0;e<=this.Ia;e++)for(t.reset();t.next();)n=t.value,n.layer===e&&n.index===-1&&u1(this,n)}};function l1(t,e){var n=e.layer;for(e.index=t.tc[n],t.tc[n]++,e=e.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var i=0;i<e.length-1;i++){var r=e[i],o=e[i+1];r.portFromColOffset>o.portFromColOffset&&(n=!0,e[i]=o,e[i+1]=r)}}for(n=0;n<e.length;n++)i=e[n],i.valid&&(i=i.toVertex,i.index===-1&&l1(t,i))}function u1(t,e){var n=e.layer;e.index=t.tc[n],t.tc[n]++,e=e.sourceEdgesArrayAccess;for(var i=!0;i;)for(i=!1,n=0;n<e.length-1;n++){var r=e[n],o=e[n+1];r.portToColOffset>o.portToColOffset&&(i=!0,e[n]=o,e[n+1]=r)}for(n=0;n<e.length;n++)i=e[n],i.valid&&(i=i.fromVertex,i.index===-1&&u1(t,i))}dr.prototype.reduceCrossings=function(){var t=this.countCrossings(),e=Ra(this),n,i;for(n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Om(this,i,1),Hl(this,i,1);var r=this.countCrossings();for(r<t&&(t=r,e=Ra(this)),i=this.Ia;0<=i;i--)Om(this,i,-1),Hl(this,i,-1);r=this.countCrossings(),r<t&&(t=r,e=Ra(this))}for(Il(this,e),n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Om(this,i,0),Hl(this,i,0);for(r=this.countCrossings(),r<t&&(t=r,e=Ra(this)),i=this.Ia;0<=i;i--)Om(this,i,0),Hl(this,i,0);r=this.countCrossings(),r<t&&(t=r,e=Ra(this))}Il(this,e);var o,s,l;switch(this.rk){case Ov:break;case Dv:for(l=t+1;(i=this.countCrossings())<l;)for(l=i,n=this.Ia;0<=n;n--)for(s=0;s<=n;s++){for(o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hl(this,i,-1)||o;for(r=this.countCrossings(),r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hl(this,i,1)||o;for(r=this.countCrossings(),r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hl(this,i,1)||o;for(r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hl(this,i,-1)||o;for(r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hl(this,i,0)||o;for(r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hl(this,i,0)||o;r>=t?Il(this,e):(t=r,e=Ra(this))}break;default:case Um:for(n=this.Ia,s=0,l=t+1;(i=this.countCrossings())<l;){for(l=i,o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hl(this,i,-1)||o;for(r=this.countCrossings(),r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hl(this,i,1)||o;for(r=this.countCrossings(),r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hl(this,i,1)||o;for(r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hl(this,i,-1)||o;for(r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hl(this,i,0)||o;for(r>=t?Il(this,e):(t=r,e=Ra(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hl(this,i,0)||o;r>=t?Il(this,e):(t=r,e=Ra(this))}}Il(this,e)};function Om(t,e,n){var i=ch(t,e),r=t.tc[e],o=t1(t,e,n),s=wv(t,e,n);for(n=0;n<r;n++)s[n]===-1&&(s[n]=i[n].column),o[n]===-1&&(o[n]=i[n].column);for(var l=!0,u;l;)for(l=!1,n=0;n<r-1;n++)(o[n+1]<o[n]||o[n+1]===o[n]&&s[n+1]<s[n])&&(l=!0,u=o[n],o[n]=o[n+1],o[n+1]=u,u=s[n],s[n]=s[n+1],s[n+1]=u,u=i[n],i[n]=i[n+1],i[n+1]=u);for(n=o=0;n<r;n++)u=i[n],u.index=n,o+=t.nodeMinColumnSpace(u,!0),u.column=o,o+=1,o+=t.nodeMinColumnSpace(u,!1);hh(t,e,i)}function Hl(t,e,n){var i=ch(t,e),r=t.tc[e];n=qx(t,e,n);var o,s=[];for(o=0;o<r;o++)s[o]=-1;var l=[];for(o=0;o<r;o++)l[o]=-1;for(var u=!1,d=!0;d;)for(d=!1,o=0;o<r-1;o++){var f=n[i[o].index*r+i[o+1].index],y=n[i[o+1].index*r+i[o].index],T=0,w=0,N=i[o].column,F=i[o+1].column,nt=t.nodeMinColumnSpace(i[o],!0),X=t.nodeMinColumnSpace(i[o],!1),ut=t.nodeMinColumnSpace(i[o+1],!0),ht=t.nodeMinColumnSpace(i[o+1],!1);nt=N-nt+ut,X=F-X+ht;var yt=i[o].sourceEdges.iterator;for(yt.reset();yt.next();)if(ut=yt.value,ht=ut.fromVertex,ut.valid&&ht.layer===e){for(ut=0;i[ut]!==ht;)ut++;ut<o&&(T+=2*(o-ut),w+=2*(o+1-ut)),ut===o+1&&(T+=1),ut>o+1&&(T+=4*(ut-o),w+=4*(ut-(o+1)))}for(yt=i[o].destinationEdges.iterator,yt.reset();yt.next();)if(ut=yt.value,ht=ut.toVertex,ut.valid&&ht.layer===e){for(ut=0;i[ut]!==ht;)ut++;ut===o+1&&(w+=1)}for(yt=i[o+1].sourceEdges.iterator,yt.reset();yt.next();)if(ut=yt.value,ht=ut.fromVertex,ut.valid&&ht.layer===e){for(ut=0;i[ut]!==ht;)ut++;ut<o&&(T+=2*(o+1-ut),w+=2*(o-ut)),ut===o&&(w+=1),ut>o+1&&(T+=4*(ut-(o+1)),w+=4*(ut-o))}for(yt=i[o+1].destinationEdges.iterator,yt.reset();yt.next();)if(ut=yt.value,ht=ut.toVertex,ut.valid&&ht.layer===e){for(ut=0;i[ut]!==ht;)ut++;ut===o&&(T+=1)}ut=ht=0,yt=s[i[o].index];var Nt=l[i[o].index],Yt=s[i[o+1].index],Qe=l[i[o+1].index];yt!==-1&&(ht+=Math.abs(yt-N),ut+=Math.abs(yt-X)),Nt!==-1&&(ht+=Math.abs(Nt-N),ut+=Math.abs(Nt-X)),Yt!==-1&&(ht+=Math.abs(Yt-F),ut+=Math.abs(Yt-nt)),Qe!==-1&&(ht+=Math.abs(Qe-F),ut+=Math.abs(Qe-nt)),(w<T-.5||w===T&&y<f-.5||w===T&&y===f&&ut<ht-.5)&&(d=u=!0,i[o].column=X,i[o+1].column=nt,f=i[o],i[o]=i[o+1],i[o+1]=f)}for(o=0;o<r;o++)i[o].index=o;return hh(t,e,i),u}dr.prototype.straightenAndPack=function(){if(this.ve===0){var t=(this.bg&1)!==0,e=(this.bg&ab)!==0;if(1e3<this.network.edges.count&&e&&(t=!1),t){var n=[];for(e=0;e<=this.Ia;e++)n[e]=0;for(var i,r=this.network.vertexes.iterator;r.next();){var o=r.value;e=o.layer,i=o.column,o=this.nodeMinColumnSpace(o,!1),n[e]=Math.max(n[e],i+o)}for(r.reset();r.next();)o=r.value,e=o.layer,i=o.column,o.column=(8*(this.Ra-n[e])>>1)+8*i;this.Ra*=8}if(this.bg&2)for(n=!0;n;){for(n=!1,e=this.Md+1;e<=this.Ia;e++)n=yf(this,e,1)||n;for(e=this.Md-1;0<=e;e--)n=yf(this,e,-1)||n;n=yf(this,this.Md,0)||n}if(this.bg&4){for(e=this.Md+1;e<=this.Ia;e++)Nv(this,e,1);for(e=this.Md-1;0<=e;e--)Nv(this,e,-1);Nv(this,this.Md,0)}if(t&&(c1(this,-1),c1(this,1)),this.bg&2)for(n=!0;n;){for(n=!1,n=yf(this,this.Md,0)||n,e=this.Md+1;e<=this.Ia;e++)n=yf(this,e,0)||n;for(e=this.Md-1;0<=e;e--)n=yf(this,e,0)||n}}else ib(this)};function yf(t,e,n){for(var i=!1;tb(t,e,n);)i=!0;return i}function tb(t,e,n){var i,r=ch(t,e),o=t.tc[e],s=wv(t,e,-1);if(0<n)for(i=0;i<o;i++)s[i]=-1;var l=wv(t,e,1);if(0>n)for(i=0;i<o;i++)l[i]=-1;for(var u=!1,d=!0;d;)for(d=!1,i=0;i<o;i++){var f=r[i].column,y=t.nodeMinColumnSpace(r[i],!0),T=t.nodeMinColumnSpace(r[i],!1),w=0;0>i-1||f-r[i-1].column-1>y+t.nodeMinColumnSpace(r[i-1],!1)?w=f-1:w=f,y=i+1>=o||r[i+1].column-f-1>T+t.nodeMinColumnSpace(r[i+1],!0)?f+1:f;var N=T=0,F=0;if(0>=n)for(var nt=r[i].sourceEdges.iterator;nt.next();){var X=nt.value,ut=X.fromVertex;if(X.valid&&ut.layer!==e){var ht=Tv(X),yt=X.portFromColOffset;X=X.portToColOffset,ut=ut.column,T+=(Math.abs(f+X-(ut+yt))+1)*ht,N+=(Math.abs(w+X-(ut+yt))+1)*ht,F+=(Math.abs(y+X-(ut+yt))+1)*ht}}if(0<=n)for(nt=r[i].destinationEdges.iterator;nt.next();)X=nt.value,ut=X.toVertex,X.valid&&ut.layer!==e&&(ht=Tv(X),yt=X.portFromColOffset,X=X.portToColOffset,ut=ut.column,T+=(Math.abs(f+yt-(ut+X))+1)*ht,N+=(Math.abs(w+yt-(ut+X))+1)*ht,F+=(Math.abs(y+yt-(ut+X))+1)*ht);X=yt=ht=0,nt=s[r[i].index],ut=l[r[i].index],nt!==-1&&(ht+=Math.abs(nt-f),yt+=Math.abs(nt-w),X+=Math.abs(nt-y)),ut!==-1&&(ht+=Math.abs(ut-f),yt+=Math.abs(ut-w),X+=Math.abs(ut-y)),N<T||N===T&&yt<ht?(d=u=!0,r[i].column=w):(F<T||F===T&&X<ht)&&(d=u=!0,r[i].column=y)}return hh(t,e,r),t.normalize(),u}function Nv(t,e,n){var i=ch(t,e),r=t.tc[e],o=t1(t,e,n),s=[];for(n=0;n<r;n++)s[n]=o[n];for(o=!0;o;)for(o=!1,n=0;n<r;n++){var l=i[n].column,u=t.nodeMinColumnSpace(i[n],!0),d=t.nodeMinColumnSpace(i[n],!1),f=0;if(s[n]===-1)if(n===0&&n===r-1)f=l;else if(n===0){var y=i[n+1].column;y-l===d+t.nodeMinColumnSpace(i[n+1],!0)?f=l-1:f=l}else n===r-1?(y=i[n-1].column,f=l-y===u+t.nodeMinColumnSpace(i[n-1],!1)?l+1:l):(y=i[n-1].column,u=y+t.nodeMinColumnSpace(i[n-1],!1)+u+1,y=i[n+1].column,d=y-t.nodeMinColumnSpace(i[n+1],!0)-d-1,f=(u+d)/2|0);else n===0&&n===r-1?f=s[n]:n===0?(y=i[n+1].column,d=y-t.nodeMinColumnSpace(i[n+1],!0)-d-1,f=Math.min(s[n],d)):n===r-1?(y=i[n-1].column,u=y+t.nodeMinColumnSpace(i[n-1],!1)+u+1,f=Math.max(s[n],u)):(y=i[n-1].column,u=y+t.nodeMinColumnSpace(i[n-1],!1)+u+1,y=i[n+1].column,d=y-t.nodeMinColumnSpace(i[n+1],!0)-d-1,u<s[n]&&s[n]<d?f=s[n]:u>=s[n]?f=u:d<=s[n]&&(f=d));f!==l&&(o=!0,i[n].column=f)}hh(t,e,i),t.normalize()}function eb(t,e){for(var n=!0,i=t.network.vertexes.iterator;i.next();){var r=i.value,o=t.nodeMinColumnSpace(r,!0),s=t.nodeMinColumnSpace(r,!1);if(r.column-o<=e&&r.column+s>=e){n=!1;break}}if(t=!1,n)for(i.reset();i.next();)n=i.value,n.column>e&&(--n.column,t=!0);return t}function nb(t,e){var n=e+1,i,r=[],o=[];for(i=0;i<=t.Ia;i++)r[i]=!1,o[i]=!1;for(var s=t.network.vertexes.iterator;s.next();){i=s.value;var l=i.column-t.nodeMinColumnSpace(i,!0),u=i.column+t.nodeMinColumnSpace(i,!1);l<=e&&u>=e&&(r[i.layer]=!0),l<=n&&u>=n&&(o[i.layer]=!0)}for(l=!0,n=!1,i=0;i<=t.Ia;i++)l=l&&!(r[i]&&o[i]);if(l)for(s.reset();s.next();)t=s.value,t.column>e&&(--t.column,n=!0);return n}function c1(t,e){for(var n=0;n<=t.Ra;n++)for(;eb(t,n););for(t.normalize(),n=0;n<t.Ra;n++)for(;nb(t,n););t.normalize();var i;if(0<e)for(n=0;n<=t.Ra;n++){var r=Ra(t),o=Mm(t);for(i=o+1;o<i;){i=o,h1(t,n,1);var s=Mm(t);s>o?Il(t,r):s<o&&(o=s,r=Ra(t))}}if(0>e)for(n=t.Ra;0<=n;n--)for(r=Ra(t),o=Mm(t),i=o+1;o<i;)i=o,h1(t,n,-1),s=Mm(t),s>o?Il(t,r):s<o&&(o=s,r=Ra(t));t.normalize()}function h1(t,e,n){t.le=0;for(var i=t.network.vertexes.iterator;i.next();)i.value.component=-1;if(0<n)for(i.reset();i.next();){var r=i.value;r.column-t.nodeMinColumnSpace(r,!0)<=e&&(r.component=t.le)}if(0>n)for(i.reset();i.next();)r=i.value,r.column+t.nodeMinColumnSpace(r,!1)>=e&&(r.component=t.le);for(t.le++,i.reset();i.next();)e=i.value,e.component===-1&&(Cv(t,e,t.le,-1,!0,!0),t.le++);var o;for(e=[],o=0;o<t.le*t.le;o++)e[o]=!1;for(r=[],o=0;o<(t.Ia+1)*(t.Ra+1);o++)r[o]=-1;for(i.reset();i.next();){o=i.value;for(var s=o.layer,l=Math.max(0,o.column-t.nodeMinColumnSpace(o,!0)),u=Math.min(t.Ra,o.column+t.nodeMinColumnSpace(o,!1));l<=u;l++)r[s*(t.Ra+1)+l]=o.component}for(o=0;o<=t.Ia;o++){if(0<n)for(s=0;s<t.Ra;s++)r[o*(t.Ra+1)+s]!==-1&&r[o*(t.Ra+1)+s+1]!==-1&&r[o*(t.Ra+1)+s]!==r[o*(t.Ra+1)+s+1]&&(e[r[o*(t.Ra+1)+s]*t.le+r[o*(t.Ra+1)+s+1]]=!0);if(0>n)for(s=t.Ra;0<s;s--)r[o*(t.Ra+1)+s]!==-1&&r[o*(t.Ra+1)+s-1]!==-1&&r[o*(t.Ra+1)+s]!==r[o*(t.Ra+1)+s-1]&&(e[r[o*(t.Ra+1)+s]*t.le+r[o*(t.Ra+1)+s-1]]=!0)}for(r=[],o=0;o<t.le;o++)r[o]=!0;for(s=[],s.push(0);s.length!==0;)if(u=s[s.length-1],s.pop(),r[u])for(r[u]=!1,o=0;o<t.le;o++)e[u*t.le+o]&&s.splice(0,0,o);if(0<n)for(i.reset();i.next();)t=i.value,r[t.component]&&--t.column;if(0>n)for(i.reset();i.next();)n=i.value,r[n.component]&&(n.column+=1)}function ib(t){for(var e=bn(),n=t.fl.length,i=0;i<=n;i++)e[i]=[];for(i=t.network.vertexes.iterator;i.next();){var r=i.value;e[n-r.layer][r.index]=r}n=new Ce,rb(e,n);var o=null,s=null,l=null,u=null,d=(t.ve&1)!==0,f=(t.ve&2)!==0,y=(t.ve&4)!==0,T=(t.ve&8)!==0;for(d&&(t.verticalAlignment(e,n,!0),o=Dm(t,e,!0,!1)),e.reverse(),y&&(t.verticalAlignment(e,n,!1),l=Dm(t,e,!1,!1)),i=gn(e),r=i.next();!r.done;r=i.next())r.value.reverse();T&&(t.verticalAlignment(e,n,!1),u=Dm(t,e,!1,!0)),e.reverse(),f&&(t.verticalAlignment(e,n,!0),s=Dm(t,e,!0,!0)),En(e),t.u(o,s,l,u),t.network.vertexes.each(function(w){var N=bn();d&&N.push(o.get(w)),f&&N.push(s.get(w)),y&&N.push(l.get(w)),T&&N.push(u.get(w)),N.sort(function(nt,X){return nt-X});var F=N.length;F=(N[Math.floor((F-1)/2)]+N[Math.ceil((F-1)/2)])/2,En(N),w.zc=F})}function rb(t,e){for(var n=t.length,i=1;i<n-1;i++)for(var r=0,o=0,s=t[i],l=t[i+1],u=0;o<l.length;u++){var d=l[u];t:{if(d.node===null){var f=Pv(d);if(0<f.length){f=f[0].node===null;break t}}f=!1}var y=f;if(u===l.length-1||y){for(f=s.length-1,y&&(f=Pv(d)[0].index);o<=u;){if(d=l[o],!d.bo){y=[];for(var T=gn(d.sourceEdgesArrayAccess),w=T.next();!w.done;w=T.next())w=w.value,w.valid&&y.push(w);d.bo=y}for(d=gn(d.bo),y=d.next();!y.done;y=d.next())y=y.value,T=y.fromVertex.index,(T<r||T>f)&&e.add(y);o++}r=f}}}dr.prototype.verticalAlignment=function(t,e,n){ob(t),t=gn(t);for(var i=t.next();!i.done;i=t.next()){var r=-1;i=gn(i.value);for(var o=i.next();!o.done;o=i.next()){o=o.value;var s=n?Pv(o):lb(o),l=s.length;if(0<l){s.sort(function(y,T){return y.vi-T.vi});var u=(l-1)/2;for(l=Math.floor(u),u=Math.ceil(u);l<=u;l++)if(o.align===o){var d=s[l],f=void 0;f=n?Hm(d,o):Hm(o,d),!e.contains(f)&&r<d.vi&&(d.align=o,o.root=d.root,o.align=d.root,r=d.vi)}}}}};function ob(t){for(var e=0;e<t.length;e++)for(var n=t[e],i=0;i<n.length;i++){var r=n[i];r.root=r,r.align=r,r.Tz=e,r.vi=i}}function Dm(t,e,n,i){for(var r=t.K===90||t.K===270,o=gn(e),s=o.next();!s.done;s=o.next()){var l=gn(s.value);for(s=l.next();!s.done;s=l.next())s=s.value,s.sd=s,s.shift=1/0,s.zc=NaN,s.qg=0}for(s=t.K===90||t.K===270,o=gn(e),l=o.next();!l.done;l=o.next()){l=gn(l.value);for(var u=l.next();!u.done;u=l.next())if(u=u.value,u.root===u){for(var d=0,f=u;f.align!==u;){var y=f.align,T=s?f.width:f.height,w=s?y.width:y.height;if(n){var N=Hm(f,y),F=N.portFromPos,nt=N.portToPos;N.link!==null&&(f.node&&f.node!==N.link.fromNode&&(F=s?f.focusX:f.focusY),y.node&&y.node!==N.link.toNode&&(nt=s?y.focusX:y.focusY))}else N=Hm(y,f),F=N.portToPos,nt=N.portFromPos,N.link!==null&&(f.node&&f.node!==N.link.toNode&&(F=s?f.focusX:f.focusY),y.node&&y.node!==N.link.fromNode&&(nt=s?y.focusX:y.focusY));T=i?f.qg+(T-F)-(w-nt):f.qg+F-nt,y.qg=T,d=Math.min(d,T),f=f.align}f=u;do f.qg=f.qg-d,f=f.align;while(f!==u)}}for(n=gn(e),s=n.next();!s.done;s=n.next())for(o=gn(s.value),s=o.next();!s.done;s=o.next())s=s.value,s.root===s&&d1(t,s,e);for(n=0;n<e.length;n++)if(!(0>=e[n].length)&&(s=e[n][0],s.sd===s)){s.sd.shift===1/0&&(s.sd.shift=0),s=n,l=0;do{for(o=e[s][l];o.align!==o.root;)o=o.align,s++,0<o.vi&&(l=f1(o,e),l.sd.shift=Math.min(l.sd.shift,o.sd.shift+o.zc+o.qg-(l.zc+l.qg+(r?l.width:l.height)+t.columnSpacing)));l=o.vi+1}while(s<e.length&&l<e[s].length&&o.sd===e[s][l].sd)}for(t=new Zt,e=gn(e),s=e.next();!s.done;s=e.next())for(n=gn(s.value),s=n.next();!s.done;s=n.next())s=s.value,s.zc=s.zc+s.sd.shift+s.qg,o=r?s.width:s.height,t.add(s,i?-s.zc-o:s.zc);return t}function d1(t,e,n){if(isNaN(e.zc)){e.zc=0;var i=e;do{if(0<i.vi){var r=f1(i,n),o=r.root;d1(t,o,n),e.sd===e&&(e.sd=o.sd);var s=t.K===90||t.K===270?r.width:r.height;e.sd===o.sd&&(e.zc=Math.max(e.zc,o.zc+r.qg+s-i.qg+t.columnSpacing))}i=i.align}while(i!==e);for(;i.align!==e;)i=i.align,i.zc=e.zc,i.sd=e.sd}}function f1(t,e){var n=t.Tz;return t=t.vi,1>t&&Et("Could not determine previous vertex in layer"),e[n][t-1]}dr.prototype.u=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];n=-1;for(var i=bn(),r=bn(),o=1/0,s=0;4>s;s++)if(e[s]){var l=sb(this,e[s],i,r,s);l<o&&(n=s,o=l)}for(o={},s=0;4>s;o={delta:o.delta},s++)e[s]&&(o.delta=s===0||s===2?i[n]-i[s]:r[n]-r[s],o.delta!==0&&e[s].each(function(u){return function(d){d.value+=u.delta}}(o)));En(i),En(r)};function sb(t,e,n,i,r){if(!e||e.count===0)return n[r]=0,i[r]=0,1/0;var o=1/0,s=-1/0;return e.each(function(l){var u=l.key;l=l.value,u=t.K===90||t.K===270?u.width:u.height,l<o&&(o=l),l+u>s&&(s=l+u)}),n[r]=o,i[r]=s,s-o}dr.prototype.commitLayout=function(){if(this.setsPortSpots)for(var t=Pm(this,!0),e=Pm(this,!1),n=this.network.edges.iterator;n.next();){var i=n.value.link;i!==null&&(i.fromSpot=t,i.toSpot=e)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Pm(t,e){return t.K===270?e?ds:as:t.K===90?e?as:ds:t.K===180?e?Cs:Zo:e?Zo:Cs}dr.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var t=0;t<=this.Ia;t++)this.he[t]=0,this.Ld[t]=0,this.Kd[t]=0,this.Ta[t]=0;for(t=this.network.vertexes.iterator;t.next();){var e=t.value,n=e.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(e,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(e,!1))}e=0,n=this.ie;for(var i=0;i<=this.Ia;i++){var r=n;0>=this.he[i]+this.Ld[i]&&(r=0),0<i&&(e+=r/2),this.K===90||this.K===0?(e+=this.Ld[i],this.Kd[i]=e,e+=this.he[i]):(e+=this.he[i],this.Kd[i]=e,e+=this.Ld[i]),i<this.Ia&&(e+=r/2),this.Ta[i]=e}for(n=e,e=this.arrangementOrigin,i=0;i<=this.Ia;i++)this.K===270?this.Kd[i]=e.y+this.Kd[i]:this.K===90?(this.Kd[i]=e.y+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]):this.K===180?this.Kd[i]=e.x+this.Kd[i]:(this.Kd[i]=e.x+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]);n=this.ve!==0,t.reset(),i=this.K===270||this.K===90;for(var o=1/0,s=r=1/0,l=-1/0;t.next();){var u=t.value,d=u.layer,f=u.column|0;i?(s=e.x+this.kc*f,d=this.Kd[d]):(s=this.Kd[d],d=e.y+this.kc*f),u.centerX=s,u.centerY=d,n&&isFinite(u.zc)&&(i?u.node?u.x=e.x+u.zc:u.centerX=e.x+u.zc:u.node?u.y=e.y+u.zc:u.centerY=e.y+u.zc),o=Math.min(u.x,o),r=Math.min(u.y,r),i?(s=o,l=Math.max(l,u.bounds.right)):(s=r,l=Math.max(l,u.bounds.bottom))}for(this.xw=l-s,o=e.x-o,e=e.y-r,this.Rf=new z(n&&i?0:o,n&&!i?0:e),t.reset();t.next();)n=t.value,n.x+=o,n.y+=e,n.commit()},dr.prototype.Gu=function(){for(var t=0,e=this.ie,n=0;n<=this.Ia;n++)t+=this.he[n],t+=this.Ld[n];t+=this.Ia*e,e=[],n=this.ve!==0?this.xw:this.kc*this.Ra;for(var i=this.maxLayer;0<=i;i--)this.K===270?i===0?e.push(new Xt(0,0,n,Math.abs(this.Ta[0]))):e.push(new Xt(0,this.Ta[i-1],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===90?i===0?e.push(new Xt(0,this.Ta[0],n,Math.abs(this.Ta[0]-t))):e.push(new Xt(0,this.Ta[i],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===180?i===0?e.push(new Xt(0,0,Math.abs(this.Ta[0]),n)):e.push(new Xt(this.Ta[i-1],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n)):i===0?e.push(new Xt(this.Ta[0],0,Math.abs(this.Ta[0]-t),n)):e.push(new Xt(this.Ta[i],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n));this.commitLayers(e,this.Rf)},dr.prototype.commitLayers=function(){},dr.prototype.commitLinks=function(){for(var t=this.network.edges.iterator,e;t.next();)e=t.value.link,e!==null&&(e.uh(),e.Fj(),e.zf());for(t.reset();t.next();)e=t.value.link,e!==null&&e.vg();for(t.reset();t.next();){var n=t.value;if(e=n.link,e!==null){e.uh();var i=e,r=i.fromNode,o=i.toNode,s=i.fromPort,l=i.toPort;if(r!==null){var u=r.findVisibleNode();u!==null&&u!==r&&(r=u,s=u.port)}o!==null&&(u=o.findVisibleNode(),u!==null&&u!==o&&(o=u,l=u.port));var d=e.computeSpot(!0,s);u=e.computeSpot(!1,l);var f=n.fromVertex,y=n.toVertex;if(n.valid)e.curve===fl&&e.pointsCount===4&&(f.column===y.column&&this.alignOption===0?(n=e.getLinkPoint(r,s,d,!0,!1,o,l),l=e.getLinkPoint(o,l,u,!1,!1,r,s),n.w()||n.set(r.actualBounds.center),l.w()||l.set(o.actualBounds.center),e.Fj(),e.yf(n.x,n.y),e.yf((2*n.x+l.x)/3,(2*n.y+l.y)/3),e.yf((n.x+2*l.x)/3,(n.y+2*l.y)/3),e.yf(l.x,l.y)):(n=i=!1,s!==null&&d===qn&&(i=!0),l!==null&&u===qn&&(n=!0),(i||n)&&(u=null,i&&(u=e.getLinkPointFromPoint(r,s,s.ga(ei),e.i(3),!0),u.w()||u.set(r.actualBounds.center),e.L(0,u.x,u.y)),r=null,n&&(r=e.getLinkPointFromPoint(o,l,l.ga(ei),e.i(0),!1),r.w()||r.set(o.actualBounds.center),e.L(3,r.x,r.y)),u&&(o=e.i(2),e.L(1,(2*u.x+o.x)/3,(2*u.y+o.y)/3)),r&&(o=e.i(1),e.L(2,(2*r.x+o.x)/3,(2*r.y+o.y)/3))))),e.zf();else if(f.layer===y.layer)e.zf();else{var T=!1,w=!1,N=this.ie,F=e.firstPickIndex+1;if(e.isOrthogonal){w=!0;var nt=e.pointsCount;4<nt&&e.points.removeRange(2,nt-3)}else if(e.curve===fl)T=!0,nt=e.pointsCount,4<nt&&e.points.removeRange(2,nt-3),nt===4&&(F=2);else{nt=e.pointsCount;var X=d===qn,ut=u===qn;2<nt&&X&&ut?e.points.removeRange(1,nt-2):3<nt&&X&&!ut?e.points.removeRange(1,nt-3):3<nt&&!X&&ut?e.points.removeRange(2,nt-2):4<nt&&!X&&!ut&&e.points.removeRange(2,nt-3)}if(n.rev){for(;y!==null&&f!==y;){var ht=nt=null;for(X=y.sourceEdges.iterator;X.next()&&(ut=X.value,ut.link!==n.link||(nt=ut.fromVertex,ht=ut.toVertex,nt.node!==null)););if(nt===null)break;if(nt!==f){X=e.i(F-1).x,ut=e.i(F-1).y;var yt=nt.centerX,Nt=nt.centerY;if(w)this.K===180||this.K===0?F===e.firstPickIndex+1?(e.m(F++,X,ut),e.m(F++,X,Nt)):(ht!==null?ht.centerY:ut)!==Nt&&(ht=this.Ta[nt.layer-1]+this.Rf.x,e.m(F++,ht,ut),e.m(F++,ht,Nt)):F===e.firstPickIndex+1?(e.m(F++,X,ut),e.m(F++,yt,ut)):(ht!==null?ht.centerX:X)!==yt&&(ht=this.Ta[nt.layer-1]+this.Rf.y,e.m(F++,X,ht),e.m(F++,yt,ht));else if(F===e.firstPickIndex+1){ht=Math.max(10,this.he[y.layer]);var Yt=Math.max(10,this.Ld[y.layer]);if(T)this.K===180?yt<=y.bounds.x?(y=y.bounds.x,e.m(F++,y-ht,Nt),e.m(F++,y,Nt),e.m(F++,y+Yt,Nt)):(e.m(F++,yt-ht,Nt),e.m(F++,yt,Nt),e.m(F++,yt+Yt,Nt)):this.K===90?Nt>=y.bounds.bottom?(y=y.bounds.y+y.bounds.height,e.m(F++,yt,y+Yt),e.m(F++,yt,y),e.m(F++,yt,y-ht)):(e.m(F++,yt,Nt+Yt),e.m(F++,yt,Nt),e.m(F++,yt,Nt-ht)):this.K===270?Nt<=y.bounds.y?(y=y.bounds.y,e.m(F++,yt,y-ht),e.m(F++,yt,y),e.m(F++,yt,y+Yt)):(e.m(F++,yt,Nt-ht),e.m(F++,yt,Nt),e.m(F++,yt,Nt+Yt)):this.K===0&&(yt>=y.bounds.right?(y=y.bounds.x+y.bounds.width,e.m(F++,y+Yt,Nt),e.m(F++,y,Nt),e.m(F++,y-ht,Nt)):(e.m(F++,yt+Yt,Nt),e.m(F++,yt,Nt),e.m(F++,yt-ht,Nt)));else{e.m(F++,X,ut);var Qe=0;this.K===180||this.K===0?((this.K===180?yt>=y.bounds.right:yt<=y.bounds.x)&&(Qe=(this.K===0?-ht:Yt)/2),e.m(F++,X+Qe,Nt)):((this.K===270?Nt>=y.bounds.bottom:Nt<=y.bounds.y)&&(Qe=(this.K===90?-ht:Yt)/2),e.m(F++,yt,ut+Qe)),e.m(F++,yt,Nt)}}else ht=Math.max(10,this.he[nt.layer]),Yt=Math.max(10,this.Ld[nt.layer]),T?this.K===180?(e.m(F++,yt-ht-N,Nt),e.m(F++,Math.min(yt-ht+N/2,yt),Nt),e.m(F++,yt,Nt),e.m(F++,yt,Nt),e.m(F++,Math.max(yt+Yt-N/2,yt),Nt),e.m(F++,yt+Yt+N,Nt)):this.K===90?(e.m(F++,yt,Nt+Yt+N),e.m(F++,yt,Math.max(Nt+Yt-N/2,Nt)),e.m(F++,yt,Nt),e.m(F++,yt,Nt),e.m(F++,yt,Math.min(Nt-ht+N/2,Nt)),e.m(F++,yt,Nt-ht-N)):this.K===270?(e.m(F++,yt,Nt-ht-N),e.m(F++,yt,Math.min(Nt-ht+N/2,Nt)),e.m(F++,yt,Nt),e.m(F++,yt,Nt),e.m(F++,yt,Math.max(Nt+Yt-N/2,Nt)),e.m(F++,yt,Nt+Yt+N)):(e.m(F++,yt+Yt+N,Nt),e.m(F++,Math.max(yt+Yt-N/2,yt),Nt),e.m(F++,yt,Nt),e.m(F++,yt,Nt),e.m(F++,Math.min(yt-ht+N/2,yt),Nt),e.m(F++,yt-ht-N,Nt)):e.m(F++,yt,Nt)}y=nt}(l===null||d!==qn||w)&&(X=e.i(F-1).x,ut=e.i(F-1).y,yt=e.i(F).x,Nt=e.i(F).y,w?(N=this.Ld[f.layer],this.K===180||this.K===0?(w=ut,w>=f.bounds.y&&w<=f.bounds.bottom&&(this.K===180?yt>=f.bounds.x:yt<=f.bounds.right)&&(y=f.centerX+(this.K===180?-N:N),w<f.bounds.y+f.bounds.height/2?w=f.bounds.y-this.kc/2:w=f.bounds.bottom+this.kc/2,e.m(F++,y,ut),e.m(F++,y,w)),e.m(F++,yt,w)):(w=X,w>=f.bounds.x&&w<=f.bounds.right&&(this.K===270?Nt>=f.bounds.y:Nt<=f.bounds.bottom)&&(y=f.centerY+(this.K===270?-N:N),w<f.bounds.x+f.bounds.width/2?w=f.bounds.x-this.kc/2:w=f.bounds.right+this.kc/2,e.m(F++,X,y),e.m(F++,w,y)),e.m(F++,w,Nt)),e.m(F++,yt,Nt)):T?(ht=Math.max(10,this.he[f.layer]),Yt=Math.max(10,this.Ld[f.layer]),this.K===180&&yt>=f.bounds.x?(y=f.bounds.x+f.bounds.width,e.L(F-2,y,ut),e.L(F-1,y+Yt,ut)):this.K===90&&Nt<=f.bounds.bottom?(y=f.bounds.y,e.L(F-2,X,y),e.L(F-1,X,y-ht)):this.K===270&&Nt>=f.bounds.y?(y=f.bounds.y+f.bounds.height,e.L(F-2,X,y),e.L(F-1,X,y+Yt)):this.K===0&&yt<=f.bounds.right&&(y=f.bounds.x,e.L(F-2,y,ut),e.L(F-1,y-ht,ut))):(ht=Math.max(10,this.he[f.layer]),Yt=Math.max(10,this.Ld[f.layer]),w=0,this.K===180||this.K===0?((this.K===180?yt<=f.bounds.x:yt>=f.bounds.right)&&(w=(this.K===0?Yt:-ht)/2),e.m(F++,yt+w,ut)):((this.K===270?Nt<=f.bounds.y:Nt>=f.bounds.bottom)&&(w=(this.K===90?Yt:-ht)/2),e.m(F++,X,Nt+w)),e.m(F++,yt,Nt)))}else{for(;f!==null&&f!==y;){for(ht=nt=null,f=f.destinationEdges.iterator;f.next()&&(X=f.value,X.link!==n.link||(nt=X.toVertex,ht=X.fromVertex,ht.node!==null&&(ht=null),nt.node!==null)););if(nt===null)break;nt!==y&&(X=e.i(F-1).x,ut=e.i(F-1).y,yt=nt.centerX,Nt=nt.centerY,w?this.K===180||this.K===0?(ht!==null?ht.centerY:ut)!==Nt&&(ht=this.Ta[nt.layer]+this.Rf.x,F===e.firstPickIndex+1&&(ht=this.K===0?Math.max(ht,X):Math.min(ht,X)),e.m(F++,ht,ut),e.m(F++,ht,Nt)):(ht!==null?ht.centerX:X)!==yt&&(ht=this.Ta[nt.layer]+this.Rf.y,F===e.firstPickIndex+1&&(ht=this.K===90?Math.max(ht,ut):Math.min(ht,ut)),e.m(F++,X,ht),e.m(F++,yt,ht)):(ht=Math.max(10,this.he[nt.layer]),Yt=Math.max(10,this.Ld[nt.layer]),T?this.K===180?(e.m(F++,yt+Yt+N,Nt),e.m(F++,Math.max(yt+Yt-N/2,yt),Nt),e.m(F++,yt,Nt),e.m(F++,yt,Nt),e.m(F++,Math.min(yt-ht+N/2,yt),Nt),e.m(F++,yt-ht-N,Nt)):this.K===90?(e.m(F++,yt,Nt-ht-N),e.m(F++,yt,Math.min(Nt-ht+N/2,Nt)),e.m(F++,yt,Nt),e.m(F++,yt,Nt),e.m(F++,yt,Math.max(Nt+Yt-N/2,Nt)),e.m(F++,yt,Nt+Yt+N)):this.K===270?(e.m(F++,yt,Nt+Yt+N),e.m(F++,yt,Math.max(Nt+Yt-N/2,Nt)),e.m(F++,yt,Nt),e.m(F++,yt,Nt),e.m(F++,yt,Math.min(Nt-ht+N/2,Nt)),e.m(F++,yt,Nt-ht-N)):(e.m(F++,yt-ht-N,Nt),e.m(F++,Math.min(yt-ht+N/2,yt),Nt),e.m(F++,yt,Nt),e.m(F++,yt,Nt),e.m(F++,Math.max(yt+Yt-N/2,yt),Nt),e.m(F++,yt+Yt+N,Nt)):this.K===180?(e.m(F++,yt+Yt,Nt),e.m(F++,yt-ht,Nt)):this.K===90?(e.m(F++,yt,Nt-ht),e.m(F++,yt,Nt+Yt)):this.K===270?(e.m(F++,yt,Nt+Yt),e.m(F++,yt,Nt-ht)):(e.m(F++,yt-ht,Nt),e.m(F++,yt+Yt,Nt)))),f=nt}w&&(X=e.i(F-1).x,ut=e.i(F-1).y,yt=e.i(F).x,Nt=e.i(F).y,this.K===180||this.K===0?ut!==Nt&&(ht=this.K===0?Math.min(Math.max((yt+X)/2,this.Ta[y.layer]+this.Rf.x),yt):Math.max(Math.min((yt+X)/2,this.Ta[y.layer]+this.Rf.x),yt),e.m(F++,ht,ut),e.m(F++,ht,Nt)):X!==yt&&(ht=this.K===90?Math.min(Math.max((Nt+ut)/2,this.Ta[y.layer]+this.Rf.y),Nt):Math.max(Math.min((Nt+ut)/2,this.Ta[y.layer]+this.Rf.y),Nt),e.m(F++,X,ht),e.m(F++,yt,ht)))}i!==null&&T&&4<=e.pointsCount&&(s!==null&&(s=d===qn?e.getLinkPointFromPoint(r,s,s.ga(ei),e.i(3),!0):e.i(0),d===qn&&(d=e.i(2),i=e.i(3),this.direction===90||this.direction===270?(e.L(1,(s.x+d.x)/2,d.y),e.L(2,i.x,(d.y+i.y)/2)):(e.L(1,d.x,(s.y+d.y)/2),e.L(2,(d.x+i.x)/2,i.y))),s.w()||s.set(r.actualBounds.center),e.L(0,s.x,s.y)),l!==null&&(r=u===qn?e.getLinkPointFromPoint(o,l,l.ga(ei),e.i(e.pointsCount-4),!1):e.i(e.pointsCount-1),u===qn&&(l=e.i(e.pointsCount-3),u=e.i(e.pointsCount-4),this.direction===90||this.direction===270?(e.L(e.pointsCount-2,(r.x+l.x)/2,l.y),e.L(e.pointsCount-2,u.x,(l.y+u.y)/2)):(e.L(e.pointsCount-2,l.x,(r.y+l.y)/2),e.L(e.pointsCount-3,(l.x+u.x)/2,u.y))),r.w()||r.set(o.actualBounds.center),e.L(e.pointsCount-1,r.x,r.y))),e.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},dr.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var t=new Te,e=this.network.edges.iterator;e.next();){var n=e.value.link;n!==null&&n.isOrthogonal&&!t.contains(n)&&t.add(n)}if(0<t.count)if(this.K===90||this.K===270){for(e=0,n=[],t=t.iterator;t.next();){var i=t.value;if(i!==null&&i.isOrthogonal)for(var r=2;r<i.pointsCount-3;r++){var o=i.i(r),s=i.i(r+1);if(this.B(o.y,s.y)&&!this.B(o.x,s.x)){var l=new dh;l.layer=Math.floor(o.y/2);var u=i.i(0),d=i.i(i.pointsCount-1);if(l.first=u.x*u.x+u.y,l.jc=d.x*d.x+d.y,l.rd=Math.min(o.x,s.x),l.Ic=Math.max(o.x,s.x),l.index=r,l.link=i,r+2<i.pointsCount){u=i.i(r-1),d=i.i(r+2);var f=0;u.y<o.y?f=d.y<o.y?3:o.x<s.x?2:1:u.y>o.y&&(f=d.y>o.y?0:s.x<o.x?2:1),l.j=f}n.push(l)}}}if(1<n.length)for(n.sort(this.Vx),t=0;t<n.length;){for(o=n[t].layer,i=t+1;i<n.length&&n[i].layer===o;)i++;if(1<i-t)for(o=t;o<i;){for(s=n[o].Ic,r=t+1;r<i&&n[r].rd<s;)s=Math.max(s,n[r].Ic),r++;if(s=r-o,1<s){for(this.zi(n,this.Js,o,o+s),f=1,l=n[o].jc,u=o;u<r;u++)d=n[u],d.jc!==l&&(f++,l=d.jc);this.zi(n,this.Ux,o,o+s);var y=1;for(l=n[o].first,u=o;u<r;u++)d=n[u],d.first!==l&&(y++,l=d.first);for(u=!0,d=y,f<y?(u=!1,d=f,l=n[o].jc,this.zi(n,this.Js,o,o+s)):l=n[o].first,f=0,y=o;y<r;y++){var T=n[y];(u?T.first:T.jc)!==l&&(f++,l=u?T.first:T.jc);var w=T.link;o=w.i(T.index),s=w.i(T.index+1);var N=this.linkSpacing*(f-(d-1)/2);e++,w.uh(),w.L(T.index,o.x,o.y+N),w.L(T.index+1,s.x,s.y+N),w.zf()}}o=r}t=i}}else{for(e=0,n=[],t=t.iterator;t.next();)if(i=t.value,i!==null&&i.isOrthogonal)for(r=2;r<i.pointsCount-3;r++)o=i.i(r),s=i.i(r+1),this.B(o.x,s.x)&&!this.B(o.y,s.y)&&(l=new dh,l.layer=Math.floor(o.x/2),u=i.i(0),d=i.i(i.pointsCount-1),l.first=u.x+u.y*u.y,l.jc=d.x+d.y*d.y,l.rd=Math.min(o.y,s.y),l.Ic=Math.max(o.y,s.y),l.index=r,l.link=i,r+2<i.pointsCount&&(u=i.i(r-1),d=i.i(r+2),f=0,u.x<o.x?f=d.x<o.x?3:o.y<s.y?2:1:u.x>o.x&&(f=d.x>o.x?0:s.y<o.y?2:1),l.j=f),n.push(l));if(1<n.length)for(n.sort(this.Vx),t=0;t<n.length;){for(o=n[t].layer,i=t+1;i<n.length&&n[i].layer===o;)i++;if(1<i-t)for(o=t;o<i;){for(s=n[o].Ic,r=t+1;r<i&&n[r].rd<s;)s=Math.max(s,n[r].Ic),r++;if(s=r-o,1<s){for(this.zi(n,this.Js,o,o+s),f=1,l=n[o].jc,u=o;u<r;u++)d=n[u],d.jc!==l&&(f++,l=d.jc);for(this.zi(n,this.Ux,o,o+s),y=1,l=n[o].first,u=o;u<r;u++)d=n[u],d.first!==l&&(y++,l=d.first);for(u=!0,d=y,f<y?(u=!1,d=f,l=n[o].jc,this.zi(n,this.Js,o,o+s)):l=n[o].first,f=0,y=o;y<r;y++)T=n[y],(u?T.first:T.jc)!==l&&(f++,l=u?T.first:T.jc),w=T.link,o=w.i(T.index),s=w.i(T.index+1),N=this.linkSpacing*(f-(d-1)/2),e++,w.uh(),w.L(T.index,o.x+N,o.y),w.L(T.index+1,s.x+N,s.y),w.zf()}o=r}t=i}}}},A=dr.prototype,A.Vx=function(t,e){return t instanceof dh&&e instanceof dh&&t!==e?t.layer<e.layer?-1:t.layer>e.layer?1:t.rd<e.rd?-1:t.rd>e.rd?1:t.Ic<e.Ic?-1:t.Ic>e.Ic?1:0:0},A.Ux=function(t,e){return t instanceof dh&&e instanceof dh&&t!==e?t.first<e.first?-1:t.first>e.first||t.j<e.j?1:t.j>e.j||t.rd<e.rd?-1:t.rd>e.rd?1:t.Ic<e.Ic?-1:t.Ic>e.Ic?1:0:0},A.Js=function(t,e){return t instanceof dh&&e instanceof dh&&t!==e?t.jc<e.jc?-1:t.jc>e.jc||t.j<e.j?1:t.j>e.j||t.rd<e.rd?-1:t.rd>e.rd?1:t.Ic<e.Ic?-1:t.Ic>e.Ic?1:0:0},A.B=function(t,e){return t-=e,-1<t&&1>t},A.zi=function(t,e,n,i){var r=t.length,o=i-n;if(!(1>=o))if((0>n||n>=r-1)&&Et("not in range 0 <= from < length: "+n),o===2)i=t[n],r=t[n+1],0<e(i,r)&&(t[n]=r,t[n+1]=i);else if(n===0)if(i>=r)t.sort(e);else for(n=t.slice(0,i),n.sort(e),e=0;e<i;e++)t[e]=n[e];else if(i>=r)for(i=t.slice(n),i.sort(e),e=n;e<r;e++)t[e]=i[e-n];else for(r=t.slice(n,i),r.sort(e),e=n;e<i;e++)t[e]=r[e-n]};function ch(t,e){var n=t.tc[e];if(n>=t.He.length){for(var i=[],r=0;r<t.He.length;r++)i[r]=t.He[r];t.He=i}for(t.He[n]===void 0||t.He[n]===null?i=[]:(i=t.He[n],t.He[n]=null),t=t.fl[e],e=0;e<t.length;e++)n=t[e],i[n.index]=n;return i}function hh(t,e,n){t.He[t.tc[e]]=n}Mn.Object.defineProperties(dr.prototype,{layerSpacing:{get:function(){return this.ie},set:function(t){this.ie!==t&&0<=t&&(this.ie=t,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(t){this.kc!==t&&0<t&&(this.kc=t,this.C())}},direction:{get:function(){return this.K},set:function(t){this.K!==t&&(t===0||t===90||t===180||t===270?(this.K=t,this.C()):Et("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(t){this.Dk===t||t!==Av&&t!==_m&&t!==zp||(this.Dk=t,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(t){this.Zk===t||t!==Fm&&t!==Iv&&t!==Lv||(this.Zk=t,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(t){this.Qk===t||t!==Bm&&t!==Rv&&t!==Mv||(this.Qk=t,this.C())}},iterations:{get:function(){return this.bj},set:function(t){this.bj!==t&&0<=t&&(this.bj=t,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(t){this.rk===t||t!==Ov&&t!==Um&&t!==Dv||(this.rk=t,this.C())}},packOption:{get:function(){return this.bg},set:function(t){this.bg!==t&&0<=t&&8>t&&(this.bg=t,this.C())}},alignOption:{get:function(){return this.ve},set:function(t){this.ve!==t&&0<=t&&16>t&&(this.ve=t,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(t){this.sf!==t&&(this.sf=t,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(t){this.Cn!==t&&0<=t&&(this.Cn=t,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 _m=new xe(dr,"CycleDepthFirst",0),Av=new xe(dr,"CycleGreedy",1),zp=new xe(dr,"CycleFromLayers",2),Fm=new xe(dr,"LayerOptimalLinkLength",0),Iv=new xe(dr,"LayerLongestPathSink",1),Lv=new xe(dr,"LayerLongestPathSource",2),Bm=new xe(dr,"InitDepthFirstOut",0),Rv=new xe(dr,"InitDepthFirstIn",1),Mv=new xe(dr,"InitNaive",2),Ov=new xe(dr,"AggressiveNone",0),Um=new xe(dr,"AggressiveLess",1),Dv=new xe(dr,"AggressiveMore",2),ab=8;dr.className="LayeredDigraphLayout",dr.CycleDepthFirst=_m,dr.CycleGreedy=Av,dr.CycleFromLayers=zp,dr.LayerOptimalLinkLength=Fm,dr.LayerLongestPathSink=Iv,dr.LayerLongestPathSource=Lv,dr.InitDepthFirstOut=Bm,dr.InitDepthFirstIn=Rv,dr.InitNaive=Mv,dr.AggressiveNone=Ov,dr.AggressiveLess=Um,dr.AggressiveMore=Dv,dr.PackNone=0,dr.PackExpand=1,dr.PackStraighten=2,dr.PackMedian=4,dr.PackAll=15,dr.AlignNone=0,dr.AlignUpperLeft=1,dr.AlignUpperRight=2,dr.AlignLowerLeft=4,dr.AlignLowerRight=8,dr.AlignAll=15;function dh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}dh.className="SegInfo";function xf(t){jr.call(this,t)}Yn(xf,jr),xf.prototype.createVertex=function(){return new Ll(this)},xf.prototype.createEdge=function(){return new jp(this)},xf.className="LayeredDigraphNetwork";function Ll(t){Ko.call(this,t),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}Yn(Ll,Ko);function p1(t,e){return t.index-e.index}function Hm(t,e){if(!t.$n){for(var n=[],i=gn(t.destinationEdgesArrayAccess),r=i.next();!r.done;r=i.next())r=r.value,r.valid&&n.push(r);t.$n=n}for(t=gn(t.$n),n=t.next();!n.done;n=t.next())if(n=n.value,n.toVertex===e)return n;Et("Unable to find destination edge to given vertex")}function Pv(t){if(!t.co){for(var e=[],n=gn(t.sourceEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&e.push(i.fromVertex);e.sort(p1),t.co=e}return t.co}function lb(t){if(!t.ao){for(var e=[],n=gn(t.destinationEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&e.push(i.toVertex);e.sort(p1),t.ao=e}return t.ao}Ll.prototype.Cl=function(t){Ko.prototype.Cl.call(this,t),this.bo=this.co=null},Ll.prototype.Kl=function(t){Ko.prototype.Kl.call(this,t),this.bo=this.co=null},Ll.prototype.zl=function(t){Ko.prototype.zl.call(this,t),this.$n=this.ao=null},Ll.prototype.Jl=function(t){Ko.prototype.Jl.call(this,t),this.$n=this.ao=null},Mn.Object.defineProperties(Ll.prototype,{layer:{get:function(){return this.Ig},set:function(t){this.Ig!==t&&(this.Ig=t)}},column:{get:function(){return this.Ag},set:function(t){this.Ag!==t&&(this.Ag=t)}},index:{get:function(){return this.Za},set:function(t){this.Za!==t&&(this.Za=t)}},component:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},near:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}}}),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 jp(t){Qa.call(this,t),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Yn(jp,Qa),Mn.Object.defineProperties(jp.prototype,{fromVertex:{get:function(){return this.kd},set:function(t){this.kd!==t&&(this.kd=t)}},toVertex:{get:function(){return this.qd},set:function(t){this.qd!==t&&(this.qd=t)}},valid:{get:function(){return this.Ha},set:function(t){this.Ha!==t&&(this.Ha=t)}},rev:{get:function(){return this.ia},set:function(t){this.ia!==t&&(this.ia=t)}},forest:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t)}},portFromPos:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},portToPos:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t)}},portFromColOffset:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t)}},portToColOffset:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}}}),jp.className="LayeredDigraphEdge";function yi(t){oo.call(this),this.Ub=new Ce,this.Wn=Vm,this.ud=$u,this.vo=Ym,this.Bq=Yv,this.$v=[],this.td=!0,this.Rb=Km,this.$d=new Je(10,10).freeze();var e=new Td(this);this.W=new zl(e),this.Y=new zl(e),this.ru=[],t&&Object.assign(this,t)}Yn(yi,oo),yi.prototype.cloneProtected=function(t){oo.prototype.cloneProtected.call(this,t),t.Wn=this.Wn,t.vo=this.vo,t.Bq=this.Bq,t.td=this.td,t.Rb=this.Rb,t.$d.assign(this.$d),t.W.copyInheritedPropertiesFrom(this.W),t.Y.copyInheritedPropertiesFrom(this.Y)},yi.prototype.qb=function(t){t.classType===yi?t.name.indexOf("Alignment")===0?this.alignment=t:t.name.indexOf("Arrangement")===0?this.arrangement=t:t.name.indexOf("Compaction")===0?this.compaction=t:t.name.indexOf("Path")===0?this.path=t:t.name.indexOf("Sorting")===0?this.sorting=t:t.name.indexOf("Style")===0?this.treeStyle=t:Et("Unknown enum value: "+t):oo.prototype.qb.call(this,t)},yi.prototype.createNetwork=function(){return new Td(this)},yi.prototype.makeNetwork=function(t){function e(i){if(i instanceof tn)return!i.isLinkLabel&&i.category!=="Comment";if(i instanceof Pe){var r=i.fromNode;return r===null||r.isLinkLabel||r.category==="Comment"?!1:(i=i.toNode,!(i===null||i.isLinkLabel||i.category==="Comment"))}return!1}var n=this.createNetwork();return t instanceof Kt?(n.lg(t.nodes,!0,e),n.lg(t.links,!0,e)):t instanceof Jn?n.lg(t.memberParts,!1,e):n.lg(t.iterator,!1,e),n},yi.prototype.doLayout=function(t){this.network===null&&(this.network=this.makeNetwork(t)),this.arrangement!==Zm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var e=this.diagram;if(e===null&&t instanceof Kt&&(e=t),this.path===Vm&&e!==null?this.ud=e.isTreePathToChildren?$u:Ed:this.ud=this.path===Vm?$u:this.path,0<this.network.vertexes.count){for(this.network.Ko(),t=this.network.vertexes.iterator;t.next();)e=t.value,e.initialized=!1,e.level=0,e.parent=null,e.children=[];if(0<this.Ub.count){for(t=new Ce,e=this.Ub.iterator;e.next();){var n=e.value;n instanceof tn?(n=this.network.ki(n),n!==null&&t.add(n)):n instanceof zl&&t.add(n)}this.Ub=t}for(this.Ub.count===0&&this.findRoots(),t=this.Ub.copy().iterator;t.next();)e=t.value,e.initialized||(e.initialized=!0,_v(this,e));for(e=this.network.vertexes,t=null;t=ub(e),0<t.count;)e=g1(this,t),e!==null&&this.Ub.add(e),e.initialized=!0,_v(this,e),e=t;for(t=this.Ub.iterator;t.next();)e=t.value,e instanceof zl&&v1(this,e);for(t=this.Ub.iterator;t.next();)e=t.value,e instanceof zl&&y1(this,e);for(t=this.Ub.iterator;t.next();)e=t.value,e instanceof zl&&x1(this,e);if(this.Cu(),this.layerStyle===$m){for(t=[],e=this.network.vertexes.iterator;e.next();){n=e.value;var i=n.parent;i===null&&(i=n),i=i.angle===0||i.angle===180;var r=t[n.level];r===void 0&&(r=0),t[n.level]=Math.max(r,i?n.width:n.height)}for(e=0;e<t.length;e++)t[e]===void 0&&(t[e]=0);for(this.$v=t,e=this.network.vertexes.iterator;e.next();)n=e.value,i=n.parent,i===null&&(i=n),i.angle===0||i.angle===180?(i.angle===180&&(n.focusX+=t[n.level]-n.width),n.width=t[n.level]):(i.angle===270&&(n.focusY+=t[n.level]-n.height),n.height=t[n.level])}else if(this.layerStyle===Kv)for(t=this.network.vertexes.iterator;t.next();){for(e=t.value,n=e.angle===0||e.angle===180,i=-1,r=0;r<e.children.length;r++){var o=e.children[r];i=Math.max(i,n?o.width:o.height)}if(0<=i)for(r=0;r<e.children.length;r++)o=e.children[r],n?(e.angle===180&&(o.focusX+=i-o.width),o.width=i):(e.angle===270&&(o.focusY+=i-o.height),o.height=i)}for(t=this.Ub.iterator;t.next();)e=t.value,e instanceof zl&&this.layoutTree(e);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Ce,this.isValidLayout=!0};function ub(t){var e=new Ce;for(t=t.iterator;t.next();){var n=t.value;n.initialized||e.add(n)}return e}yi.prototype.findRoots=function(){for(var t=this.network.vertexes,e=t.iterator;e.next();){var n=e.value;switch(this.ud){case $u:n.sourceEdges.count===0&&this.Ub.add(n);break;case Ed:n.destinationEdges.count===0&&this.Ub.add(n);break;default:Et("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(t=g1(this,t),t!==null&&this.Ub.add(t))};function g1(t,e){var n=999999,i=null;for(e=e.iterator;e.next();){var r=e.value;switch(t.ud){case $u:r.sourceEdges.count<n&&(n=r.sourceEdges.count,i=r);break;case Ed:r.destinationEdges.count<n&&(n=r.destinationEdges.count,i=r);break;default:Et("Unhandled path value "+t.ud.toString())}}return i}function _v(t,e){if(e!==null){switch(t.ud){case $u:if(0<e.destinationEdges.count){for(var n=new Te,i=e.destinationVertexes;i.next();){var r=i.value;m1(t,e,r)&&n.add(r)}0<n.count&&(e.children=n.Fa())}break;case Ed:if(0<e.sourceEdges.count){for(n=new Te,i=e.sourceVertexes;i.next();)r=i.value,m1(t,e,r)&&n.add(r);0<n.count&&(e.children=n.Fa())}break;default:Et("Unhandled path value"+t.ud.toString())}for(n=e.children,i=n.length,r=0;r<i;r++){var o=n[r];o.initialized=!0,o.level=e.level+1,o.parent=e,t.Ub.remove(o)}for(e=0;e<i;e++)_v(t,n[e])}}function m1(t,e,n){if(n.initialized){if(e===null)var i=!1;else{for(i=e.parent;i!==null&&i!==n;)i=i.parent;i=i===n}if(i||n.level>e.level)return!1;t.removeChild(n.parent,n)}return!0}yi.prototype.removeChild=function(t,e){if(t!==null&&e!==null){for(var n=t.children,i=0,r=0;r<n.length;r++)n[r]===e&&i++;if(0<i){i=Array(n.length-i);for(var o=r=0;o<n.length;o++)n[o]!==e&&(i[r++]=n[o]);t.children=i}}};function v1(t,e){if(e!==null){t.initializeTreeVertexValues(e),e.alignment===Ju&&t.sortTreeVertexChildren(e);for(var n=0,i=e.childrenCount,r=0,o=e.children,s=o.length,l=0;l<s;l++){var u=o[l];v1(t,u),n+=u.descendantCount+1,i=Math.max(i,u.maxChildrenCount),r=Math.max(r,u.maxGenerationCount)}e.descendantCount=n,e.maxChildrenCount=i,e.maxGenerationCount=0<i?r+1:0}}function cb(t,e){switch(t.vo){default:case Ym:return e.parent!==null?e.parent:t.W;case Vv:return e.parent===null?t.W:e.parent.parent===null?t.Y:e.parent;case Gv:return e.parent!==null?e.parent.parent!==null?e.parent.parent:t.Y:t.W;case jv:var n=!0;if(e.childrenCount===0)n=!1;else for(var i=e.children,r=i.length,o=0;o<r;o++)if(0<i[o].childrenCount){n=!1;break}return n&&e.parent!==null?t.Y:e.parent!==null?e.parent:t.W}}yi.prototype.initializeTreeVertexValues=function(t){if(t.copyInheritedPropertiesFrom(cb(this,t)),t.parent!==null&&t.parent.alignment===Ju){for(var e=t.angle,n=t.parent.children,i=0;i<n.length&&t!==n[i];)i++;i%2===0?i!==n.length-1&&(e=e===90?180:e===180?270:e===270?180:270):e=e===90?0:e===180?90:e===270?0:90,t.angle=e}t.initialized=!0};function y1(t,e){if(e!==null){t.assignTreeVertexValues(e),e=e.children;for(var n=e.length,i=0;i<n;i++)y1(t,e[i])}}yi.prototype.assignTreeVertexValues=function(){};function x1(t,e){if(e!==null){e.alignment!==Ju&&t.sortTreeVertexChildren(e),e=e.children;for(var n=e.length,i=0;i<n;i++)x1(t,e[i])}}yi.prototype.sortTreeVertexChildren=function(t){switch(t.sorting){case bf:break;case Vp:t.children.reverse();break;case Wp:t.children.sort(t.comparer);break;case Yp:t.children.sort(t.comparer),t.children.reverse();break;default:Et("Unhandled sorting value "+t.sorting.toString())}},yi.prototype.Cu=function(){if(this.comments)for(var t=this.network.vertexes.iterator;t.next();)this.addComments(t.value)},yi.prototype.addComments=function(t){var e=t.angle,n=t.parent,i=0,r=!1;n!==null&&(i=n.angle,r=n.alignment,r=fh(r)),e=e===90||e===270,i=i===90||i===270,n=t.childrenCount===0;var o=0,s=0,l=0,u=t.commentSpacing;if(t.node!==null)for(var d=t.node.Mu();d.next();){var f=d.value;f.category==="Comment"&&f.canLayout()&&(t.comments===null&&(t.comments=[]),t.comments.push(f),f.Va(),f=f.measuredBounds,e&&!n||!r&&!i&&n||r&&i&&n?(o=Math.max(o,f.width),s+=f.height+Math.abs(l)):(o+=f.width+Math.abs(l),s=Math.max(s,f.height)),l=u)}t.comments!==null&&(e&&!n||!r&&!i&&n||r&&i&&n?(o+=Math.abs(t.commentMargin),s=Math.max(0,s-t.height)):(s+=Math.abs(t.commentMargin),o=Math.max(0,o-t.width)),r=Xt.allocAt(0,0,t.bounds.width+o,t.bounds.height+s),t.bounds=r,Xt.free(r))};function fh(t){return t===Pc||t===Ju||t===_c||t===cc}function Gp(t){return t===Pc||t===Ju}function Fv(t){var e=t.parent;if(e!==null){var n=e.alignment;if(fh(n)){if(Gp(n)){for(e=e.children,n=0;n<e.length&&t!==e[n];)n++;return n%2===0}if(n===_c)return!0}}return!1}yi.prototype.layoutComments=function(t){if(t.comments!==null){var e=t.node.measuredBounds,n=t.parent,i=t.angle,r=0,o=!1;n!==null&&(r=n.angle,o=n.alignment,o=fh(o)),i=i===90||i===270,n=r===90||r===270;for(var s=t.childrenCount===0,l=Fv(t),u=0,d=t.comments,f=d.length,y=z.alloc(),T=0;T<f;T++){var w=d[T],N=w.measuredBounds;if(i&&!s||!o&&!n&&s||o&&n&&s){if(135<r&&!o||n&&l)if(0<=t.commentMargin)for(y.h(t.bounds.x-t.commentMargin-N.width,t.bounds.y+u),w.move(y),w=w.Sd();w.next();){var F=w.value;F.fromSpot=Cs,F.toSpot=Zo}else for(y.h(t.bounds.x+2*t.focus.x-t.commentMargin,t.bounds.y+u),w.move(y),w=w.Sd();w.next();)F=w.value,F.fromSpot=Zo,F.toSpot=Cs;else if(0<=t.commentMargin)for(y.h(t.bounds.x+2*t.focus.x+t.commentMargin,t.bounds.y+u),w.move(y),w=w.Sd();w.next();)F=w.value,F.fromSpot=Zo,F.toSpot=Cs;else for(y.h(t.bounds.x+t.commentMargin-N.width,t.bounds.y+u),w.move(y),w=w.Sd();w.next();)F=w.value,F.fromSpot=Cs,F.toSpot=Zo;u=0<=t.commentSpacing?u+(N.height+t.commentSpacing):u+(t.commentSpacing-N.height)}else{if(135<r&&!o||!n&&l)if(0<=t.commentMargin)for(y.h(t.bounds.x+u,t.bounds.y-t.commentMargin-N.height),w.move(y),w=w.Sd();w.next();)F=w.value,F.fromSpot=ds,F.toSpot=as;else for(y.h(t.bounds.x+u,t.bounds.y+2*t.focus.y-t.commentMargin),w.move(y),w=w.Sd();w.next();)F=w.value,F.fromSpot=as,F.toSpot=ds;else if(0<=t.commentMargin)for(y.h(t.bounds.x+u,t.bounds.y+2*t.focus.y+t.commentMargin),w.move(y),w=w.Sd();w.next();)F=w.value,F.fromSpot=as,F.toSpot=ds;else for(y.h(t.bounds.x+u,t.bounds.y+t.commentMargin-N.height),w.move(y),w=w.Sd();w.next();)F=w.value,F.fromSpot=ds,F.toSpot=as;u=0<=t.commentSpacing?u+(N.width+t.commentSpacing):u+(t.commentSpacing-N.width)}}if(z.free(y),e=u-t.commentSpacing-(i?e.height:e.width),this.ud===$u)for(t=t.destinationEdges;t.next();)r=t.value.link,r===null||r.isAvoiding||(r.fromEndSegmentLength=0<e?e:NaN);else for(t=t.sourceEdges;t.next();)r=t.value.link,r===null||r.isAvoiding||(r.toEndSegmentLength=0<e?e:NaN)}},yi.prototype.layoutTree=function(t){if(t!==null){for(var e=t.children,n=e.length,i=0;i<n;i++)this.layoutTree(e[i]);switch(t.compaction){case Wm:b1(this,t);break;case Kp:if(t.alignment===Ju)b1(this,t);else if(t.childrenCount===0)i=t.parent,n=!1,e=0,i!==null&&(e=i.angle,n=i.alignment,n=fh(n)),i=Fv(t),t.S.h(0,0),t.Da.h(t.width,t.height),t.parent===null||t.comments===null||(e!==180&&e!==270||n)&&!i?t.la.h(0,0):e===180&&!n||(e===90||e===270)&&i?t.la.h(t.width-2*t.focus.x,0):t.la.h(0,t.height-2*t.focus.y),t.Yo=null,t.kp=null;else{var r=au(t);e=r===90||r===270;var o=0,s=t.children,l=s.length;for(n=0;n<l;n++)i=s[n],o=Math.max(o,e?i.Da.width:i.Da.height);var u=t.alignment;i=u===Xu;var d=u===Qu,f=fh(u),y=Math.max(0,t.breadthLimit);n=this.computeLayerSpacing(t);var T=t.nodeSpacing,w=this.computeNodeIndent(t),N=t.rowSpacing,F=0;(i||d||t.hm||t.im&&t.maxGenerationCount===1)&&(F=Math.max(0,t.rowIndent)),i=t.width;var nt=t.height,X=0,ut=0,ht=0,yt=null,Nt=null,Yt=0,Qe=0,xn=0,dn=0,De=0,ge=0,Xn=0,Vn=0;if(f&&!Gp(u)&&135<r&&s.reverse(),Gp(u))if(1<l)for(var Ji=0;Ji<l;Ji++)Ji%2===0&&Ji!==l-1&&(Vn=Math.max(Vn,e?s[Ji].Da.width:s[Ji].Da.height));else l===1&&(Vn=e?s[0].Da.width:s[0].Da.height);if(f){switch(u){case Pc:ut=135>r?E1(this,t,s,Vn,X,ut):S1(this,t,s,Vn,X,ut),Vn=ut.x,X=ut.width,ut=ut.height;break;case _c:for(yt=0;yt<l;yt++)Nt=s[yt],y=Nt.Da,ht=ge===0?0:N,e?(Nt.S.h(o-y.width,dn+ht),X=Math.max(X,y.width),ut=Math.max(ut,dn+ht+y.height),dn+=ht+y.height):(Nt.S.h(xn+ht,o-y.height),X=Math.max(X,xn+ht+y.width),ut=Math.max(ut,y.height),xn+=ht+y.width),ge++;break;case cc:for(yt=0;yt<l;yt++)Nt=s[yt],o=Nt.Da,y=ge===0?0:N,e?(Nt.S.h(T/2+t.focus.x,dn+y),X=Math.max(X,o.width),ut=Math.max(ut,dn+y+o.height),dn+=y+o.height):(Nt.S.h(xn+y,T/2+t.focus.y),X=Math.max(X,xn+y+o.width),ut=Math.max(ut,o.height),xn+=y+o.width),ge++}yt=Ua(this,2),Nt=Ua(this,2),e?(yt[0].h(0,0),yt[1].h(0,ut),Nt[0].h(X,0)):(yt[0].h(0,0),yt[1].h(X,0),Nt[0].h(0,ut)),Nt[1].h(X,ut)}else for(Ji=0;Ji<l;Ji++){var Br=s[Ji],os=Br.Da;if(e){0<y&&0<ge&&xn+T+os.width>y&&(xn<o&&Yh(t,u,o-xn,0,Xn,Ji-1),De++,ge=0,Xn=Ji,ht=ut,xn=0,dn=135<r?-ut-N:ut+N),jm(this,Br,0,dn);var us=0;if(ge===0)yt=Br.Yo,Nt=Br.kp,Yt=os.width,Qe=os.height,(yt===null||Nt===null||r!==au(Br))&&(yt=Ua(this,2),Nt=Ua(this,2),yt[0].h(0,0),yt[1].h(0,Qe),Nt[0].h(Yt,0),Nt[1].h(Yt,Qe));else{var qs=bn();Qe=T1(this,t,Br,yt,Nt,Yt,Qe,qs),us=Qe.x,yt=qs[0],Nt=qs[1],Yt=Qe.width,Qe=Qe.height,En(qs),xn<os.width&&0>us&&(bd(t,-us,0,Xn,Ji-1),Gm(yt,-us,0),Gm(Nt,-us,0),us=0)}Br.S.h(us,dn),X=Math.max(X,Yt),ut=Math.max(ut,ht+(De===0?0:N)+os.height),xn=Yt}else 0<y&&0<ge&&dn+T+os.height>y&&(dn<o&&Yh(t,u,0,o-dn,Xn,Ji-1),De++,ge=0,Xn=Ji,ht=X,dn=0,xn=135<r?-X-N:X+N),jm(this,Br,xn,0),us=0,ge===0?(yt=Br.Yo,Nt=Br.kp,Yt=os.width,Qe=os.height,(yt===null||Nt===null||r!==au(Br))&&(yt=Ua(this,2),Nt=Ua(this,2),yt[0].h(0,0),yt[1].h(Yt,0),Nt[0].h(0,Qe),Nt[1].h(Yt,Qe))):(qs=bn(),Qe=T1(this,t,Br,yt,Nt,Yt,Qe,qs),us=Qe.x,yt=qs[0],Nt=qs[1],Yt=Qe.width,Qe=Qe.height,En(qs),dn<os.height&&0>us&&(bd(t,0,-us,Xn,Ji-1),Gm(yt,0,-us),Gm(Nt,0,-us),us=0)),Br.S.h(xn,us),ut=Math.max(ut,Qe),X=Math.max(X,ht+(De===0?0:N)+os.width),dn=Qe;ge++}switch(0<De&&(e?(ut+=Math.max(0,n),xn<X&&Yh(t,u,X-xn,0,Xn,l-1),0<F&&(d||bd(t,F,0,0,l-1),X+=F)):(X+=Math.max(0,n),dn<ut&&Yh(t,u,0,ut-dn,Xn,l-1),0<F&&(d||bd(t,0,F,0,l-1),ut+=F))),F=d=0,u){case Ef:e?d+=X/2-t.focus.x-w/2:F+=ut/2-t.focus.y-w/2;break;case Sd:0<De?e?d+=X/2-t.focus.x-w/2:F+=ut/2-t.focus.y-w/2:e?(Vn=s[0].S.x+s[0].la.x,d+=Vn+(s[l-1].S.x+s[l-1].la.x+2*s[l-1].focus.x-Vn)/2-t.focus.x-w/2):(Vn=s[0].S.y+s[0].la.y,F+=Vn+(s[l-1].S.y+s[l-1].la.y+2*s[l-1].focus.y-Vn)/2-t.focus.y-w/2);break;case Xu:e?(d-=w,X+=w):(F-=w,ut+=w);break;case Qu:e?(d+=X-t.width+w,X+=w):(F+=ut-t.height+w,ut+=w);break;case Pc:e?1<l?d+=Vn+T/2-t.focus.x:d+=s[0].focus.x-t.focus.x+s[0].la.x:1<l?F+=Vn+T/2-t.focus.y:F+=s[0].focus.y-t.focus.y+s[0].la.y;break;case _c:e?d+=X+T/2-t.focus.x:F+=ut+T/2-t.focus.y;break;case cc:break;default:ut=this.customAlignment(t,d,F,X,ut),d=ut[0],F=ut[1],X=ut[2],ut=ut[3]}for(w=0;w<l;w++)Vn=s[w],e?Vn.S.h(Vn.S.x+Vn.la.x-d,Vn.S.y+(135<r?(f?-ut:-Vn.Da.height)+Vn.la.y-n:nt+n+Vn.la.y)):Vn.S.h(Vn.S.x+(135<r?(f?-X:-Vn.Da.width)+Vn.la.x-n:i+n+Vn.la.x),Vn.S.y+Vn.la.y-F);if(l=s=0,f?e?(X=Bv(t,X,d),0>d&&(d=0),135<r&&(F+=ut+n),ut+=nt+n,u===cc&&(s+=T/2+t.focus.x),l+=nt+n):(135<r&&(d+=X+n),X+=i+n,ut=Uv(t,ut,F),0>F&&(F=0),u===cc&&(l+=T/2+t.focus.y),s+=i+n):e?(t.comments===null?i>X&&(X=Hv(u,i-X,0),s=X.x,l=X.y,X=i,d=0):X=Bv(t,X,d),0>d&&(s-=d,d=0),135<r&&(F+=ut+n),ut=Math.max(Math.max(ut,nt),ut+nt+n),l+=nt+n):(135<r&&(d+=X+n),X=Math.max(Math.max(X,i),X+i+n),t.comments===null?nt>ut&&(ut=Hv(u,0,nt-ut),s=ut.x,l=ut.y,ut=nt,F=0):ut=Uv(t,ut,F),0>F&&(l-=F,F=0),s+=i+n),0<De)r=Ua(this,4),De=Ua(this,4),e?(r[2].h(0,nt+n),r[3].h(r[2].x,ut),De[2].h(X,r[2].y),De[3].h(De[2].x,r[3].y)):(r[2].h(i+n,0),r[3].h(X,r[2].y),De[2].h(r[2].x,ut),De[3].h(r[3].x,De[2].y));else{for(r=Ua(this,yt.length+2),De=Ua(this,Nt.length+2),u=0;u<yt.length;u++)f=yt[u],r[u+2].h(f.x+s,f.y+l);for(u=0;u<Nt.length;u++)f=Nt[u],De[u+2].h(f.x+s,f.y+l)}e?(r[0].h(d,0),r[1].h(r[0].x,nt),r[2].y<r[1].y&&(r[2].x>r[0].x?r[2].assign(r[1]):r[1].assign(r[2])),r[3].y<r[2].y&&(r[3].x>r[0].x?r[3].assign(r[2]):r[2].assign(r[3])),De[0].h(d+i,0),De[1].h(De[0].x,nt),De[2].y<De[1].y&&(De[2].x<De[0].x?De[2].assign(De[1]):De[1].assign(De[2])),De[3].y<De[2].y&&(De[3].x<De[0].x?De[3].assign(De[2]):De[2].assign(De[3])),r[2].y-=n/2,De[2].y-=n/2):(r[0].h(0,F),r[1].h(i,r[0].y),r[2].x<r[1].x&&(r[2].y>r[0].y?r[2].assign(r[1]):r[1].assign(r[2])),r[3].x<r[2].x&&(r[3].y>r[0].y?r[3].assign(r[2]):r[2].assign(r[3])),De[0].h(0,F+nt),De[1].h(i,De[0].y),De[2].x<De[1].x&&(De[2].y<De[0].y?De[2].assign(De[1]):De[1].assign(De[2])),De[3].x<De[2].x&&(De[3].y<De[0].y?De[3].assign(De[2]):De[2].assign(De[3])),r[2].x-=n/2,De[2].x-=n/2),bu(this,yt),bu(this,Nt),t.Yo=r,t.kp=De,t.la.h(d,F),t.Da.h(X,ut)}break;default:Et("Unhandled compaction value "+t.compaction.toString())}}};function b1(t,e){if(e.childrenCount===0){var n=!1,i=0;e.parent!==null&&(i=e.parent.angle,n=e.parent.alignment,n=fh(n));var r=Fv(e);e.S.h(0,0),e.Da.h(e.width,e.height),e.parent===null||e.comments===null||(i!==180&&i!==270||n)&&!r?e.la.h(0,0):i===180&&!n||(i===90||i===270)&&r?e.la.h(e.width-2*e.focus.x,0):e.la.h(0,e.height-2*e.focus.y)}else{i=au(e),n=i===90||i===270;var o=0;r=e.children;for(var s=r.length,l=0;l<s;l++){var u=r[l];o=Math.max(o,n?u.Da.width:u.Da.height)}var d=e.alignment,f=d===Xu,y=d===Qu;l=fh(d);var T=Math.max(0,e.breadthLimit);u=t.computeLayerSpacing(e);var w=e.nodeSpacing,N=t.computeNodeIndent(e),F=f||y?0:N/2,nt=e.rowSpacing,X=0;(f||y||e.hm||e.im&&e.maxGenerationCount===1)&&(X=Math.max(0,e.rowIndent)),f=e.width;var ut=e.height,ht=0,yt=0,Nt=0,Yt=0,Qe=0,xn=0,dn=0,De=0,ge=0,Xn=0;if(l&&!Gp(d)&&135<i&&r.reverse(),Gp(d))if(1<s)for(var Vn=0;Vn<s;Vn++){var Ji=r[Vn],Br=Ji.Da;Vn%2===0&&Vn!==s-1?ge=Math.max(ge,(n?Br.width:Br.height)+t.computeBusNodeSpacing(Ji)-w):Vn%2!==0&&(Xn=Math.max(Xn,(n?Br.width:Br.height)+t.computeBusNodeSpacing(Ji)-w))}else s===1&&(ge=n?r[0].Da.width:r[0].Da.height);if(l)switch(d){case Pc:case Ju:yt=135>i?E1(t,e,r,ge,ht,yt):S1(t,e,r,ge,ht,yt),ge=yt.x,ht=yt.width,yt=yt.height;break;case _c:for(T=0;T<s;T++)F=r[T],Nt=F.Da,Xn=dn===0?0:nt,n?(F.S.h(o-Nt.width,Qe+Xn),ht=Math.max(ht,Nt.width),yt=Math.max(yt,Qe+Xn+Nt.height),Qe+=Xn+Nt.height):(F.S.h(Yt+Xn,o-Nt.height),ht=Math.max(ht,Yt+Xn+Nt.width),yt=Math.max(yt,Nt.height),Yt+=Xn+Nt.width),dn++;break;case cc:for(o=0;o<s;o++)T=r[o],F=T.Da,Nt=dn===0?0:nt,n?(T.S.h(w/2+e.focus.x,Qe+Nt),ht=Math.max(ht,F.width),yt=Math.max(yt,Qe+Nt+F.height),Qe+=Nt+F.height):(T.S.h(Yt+Nt,w/2+e.focus.y),ht=Math.max(ht,Yt+Nt+F.width),yt=Math.max(yt,F.height),Yt+=Nt+F.width),dn++}else for(Xn=0;Xn<s;Xn++)Vn=r[Xn],Ji=Vn.Da,n?(0<T&&0<dn&&Yt+w+Ji.width>T&&(Yt<o&&Yh(e,d,o-Yt,0,De,Xn-1),xn++,dn=0,De=Xn,Nt=yt,Yt=0,Qe=135<i?-yt-nt:yt+nt),Br=dn===0?F:w,jm(t,Vn,0,Qe),Vn.S.h(Yt+Br,Qe),ht=Math.max(ht,Yt+Br+Ji.width),yt=Math.max(yt,Nt+(xn===0?0:nt)+Ji.height),Yt+=Br+Ji.width):(0<T&&0<dn&&Qe+w+Ji.height>T&&(Qe<o&&Yh(e,d,0,o-Qe,De,Xn-1),xn++,dn=0,De=Xn,Nt=ht,Qe=0,Yt=135<i?-ht-nt:ht+nt),Br=dn===0?F:w,jm(t,Vn,Yt,0),Vn.S.h(Yt,Qe+Br),yt=Math.max(yt,Qe+Br+Ji.height),ht=Math.max(ht,Nt+(xn===0?0:nt)+Ji.width),Qe+=Br+Ji.height),dn++;switch(0<xn&&(n?(yt+=Math.max(0,u),Yt<ht&&Yh(e,d,ht-Yt,0,De,s-1),0<X&&(y||bd(e,X,0,0,s-1),ht+=X)):(ht+=Math.max(0,u),Qe<yt&&Yh(e,d,0,yt-Qe,De,s-1),0<X&&(y||bd(e,0,X,0,s-1),yt+=X))),X=y=0,d){case Ef:n?y+=ht/2-e.focus.x-N/2:X+=yt/2-e.focus.y-N/2;break;case Sd:0<xn?n?y+=ht/2-e.focus.x-N/2:X+=yt/2-e.focus.y-N/2:n?(t=r[0].S.x+r[0].la.x,y+=t+(r[s-1].S.x+r[s-1].la.x+2*r[s-1].focus.x-t)/2-e.focus.x-N/2):(t=r[0].S.y+r[0].la.y,X+=t+(r[s-1].S.y+r[s-1].la.y+2*r[s-1].focus.y-t)/2-e.focus.y-N/2);break;case Xu:n?(y-=N,ht+=N):(X-=N,yt+=N);break;case Qu:n?(y+=ht-e.width+N,ht+=N):(X+=yt-e.height+N,yt+=N);break;case Pc:case Ju:n?1<s?y+=ge+w/2-e.focus.x:y+=r[0].focus.x-e.focus.x+r[0].la.x:1<s?X+=ge+w/2-e.focus.y:X+=r[0].focus.y-e.focus.y+r[0].la.y;break;case _c:n?y+=ht+w/2-e.focus.x:X+=yt+w/2-e.focus.y;break;case cc:break;default:t=t.customAlignment(e,y,X,ht,yt),y=t[0],X=t[1],ht=t[2],yt=t[3]}for(t=0;t<s;t++)N=r[t],n?N.S.h(N.S.x+N.la.x-y,N.S.y+(135<i?(l?-yt:-N.Da.height)+N.la.y-u:ut+u+N.la.y)):N.S.h(N.S.x+(135<i?(l?-ht:-N.Da.width)+N.la.x-u:f+u+N.la.x),N.S.y+N.la.y-X);n?(ht=Bv(e,ht,y),0>y&&(y=0),135<i&&(X+=yt+u),yt=Math.max(Math.max(yt,ut),yt+ut+u)):(135<i&&(y+=ht+u),ht=Math.max(Math.max(ht,f),ht+f+u),yt=Uv(e,yt,X),0>X&&(X=0)),e.la.h(y,X),e.Da.h(ht,yt)}}yi.prototype.customAlignment=function(t,e,n,i,r){return[e,n,i,r]};function E1(t,e,n,i,r,o){var s=n.length;if(s===0)return new Xt(i,0,r,o);if(s===1)return e=n[0],r=e.Da.width,o=e.Da.height,new Xt(i,0,r,o);for(var l=e.nodeSpacing,u=e.rowSpacing,d=au(e)===90,f=0,y=0,T=0,w=0;w<s;w++)if(!(w%2!==0||1<s&&w===s-1)){var N=n[w],F=N.Da,nt=f===0?0:u;if(d){var X=t.computeBusNodeSpacing(N)-l;N.S.h(i-(F.width+X),T+nt),r=Math.max(r,F.width+X),o=Math.max(o,T+nt+F.height),T+=nt+F.height}else X=t.computeBusNodeSpacing(N)-l,N.S.h(y+nt,i-(F.height+X)),o=Math.max(o,F.height+X),r=Math.max(r,y+nt+F.width),y+=nt+F.width;f++}for(f=0,N=y,w=T,d?(y=i+l,T=0):(y=0,T=i+l),F=0;F<s;F++)if(F%2!==0){nt=n[F],X=nt.Da;var ut=f===0?0:u;if(d){var ht=t.computeBusNodeSpacing(nt)-l;nt.S.h(y+ht,T+ut),r=Math.max(r,y+X.width+ht),o=Math.max(o,T+ut+X.height),T+=ut+X.height}else ht=t.computeBusNodeSpacing(nt)-l,nt.S.h(y+ut,T+ht),r=Math.max(r,y+ut+X.width),o=Math.max(o,T+X.height+ht),y+=ut+X.width;f++}return 1<s&&s%2===1&&(n=n[s-1],s=n.Da,t=t.computeBusLastRowSpacing(n,d?Math.max(Math.abs(w),Math.abs(T)):Math.max(Math.abs(N),Math.abs(y))),d?(n.S.h(i+l/2-n.focus.x-n.la.x,o+t),d=i+l/2-n.focus.x-n.la.x,r=Math.max(r,d+s.width),0>d&&(r-=d),o=Math.max(o,Math.max(w,T)+t+s.height),0>n.S.x&&(i=zm(e,n.S.x,!1,i,l))):(n.S.h(r+t,i+l/2-n.focus.y-n.la.y),r=Math.max(r,Math.max(N,y)+t+s.width),T=i+l/2-n.focus.y-n.la.y,o=Math.max(o,T+s.height),0>T&&(o-=T),0>n.S.y&&(i=zm(e,n.S.y,!0,i,l)))),new Xt(i,0,r,o)}function S1(t,e,n,i,r,o){var s=n.length;if(s===0)return new Xt(i,0,r,o);if(s===1)return n=n[0],r=n.Da.width,o=n.Da.height,new Xt(i,0,r,o);for(var l=e.nodeSpacing,u=e.rowSpacing,d=au(e)===270,f=0,y=0,T=0,w=0;w<s;w++)if(!(w%2!==0||1<s&&w===s-1)){var N=n[w],F=N.Da,nt=f===0?0:u;if(d){var X=t.computeBusNodeSpacing(N)-l;T-=nt+F.height,N.S.h(i-(F.width+X),T),r=Math.max(r,F.width+X),o=Math.max(o,Math.abs(T))}else X=t.computeBusNodeSpacing(N)-l,y-=nt+F.width,N.S.h(y,i-(F.height+X)),o=Math.max(o,F.height+X),r=Math.max(r,Math.abs(y));f++}for(f=0,N=y,w=T,d?(y=i+l,T=0):(y=0,T=i+l),F=0;F<s;F++)if(F%2!==0){nt=n[F],X=nt.Da;var ut=f===0?0:u;if(d){var ht=t.computeBusNodeSpacing(nt)-l;T-=ut+X.height,nt.S.h(y+ht,T),r=Math.max(r,y+X.width+ht),o=Math.max(o,Math.abs(T))}else ht=t.computeBusNodeSpacing(nt)-l,y-=ut+X.width,nt.S.h(y,T+ht),o=Math.max(o,T+X.height+ht),r=Math.max(r,Math.abs(y));f++}for(1<s&&s%2===1&&(u=n[s-1],f=u.Da,t=t.computeBusLastRowSpacing(u,d?Math.max(Math.abs(w),Math.abs(T)):Math.max(Math.abs(N),Math.abs(y))),d?(u.S.h(i+l/2-u.focus.x-u.la.x,-o-f.height-t),y=i+l/2-u.focus.x-u.la.x,r=Math.max(r,y+f.width),0>y&&(r-=y),o=Math.max(o,Math.abs(Math.min(w,T))+t+f.height),0>u.S.x&&(i=zm(e,u.S.x,!1,i,l))):(u.S.h(-r-f.width-t,i+l/2-u.focus.y-u.la.y),r=Math.max(r,Math.abs(Math.min(N,y))+t+f.width),T=i+l/2-u.focus.y-u.la.y,o=Math.max(o,T+f.height),0>T&&(o-=T),0>u.S.y&&(i=zm(e,u.S.y,!0,i,l)))),e=0;e<s;e++)l=n[e],d?l.S.h(l.S.x,l.S.y+o):l.S.h(l.S.x+r,l.S.y);return new Xt(i,0,r,o)}yi.prototype.computeBusNodeSpacing=function(t){return t.parent===null?0:t.parent.nodeSpacing},yi.prototype.computeBusLastRowSpacing=function(t){return t.parent===null?0:t.parent.rowSpacing};function zm(t,e,n,i,r){t=t.children;for(var o=t.length,s=0;s<o;s++)n?t[s].S.h(t[s].S.x,t[s].S.y-e):t[s].S.h(t[s].S.x-e,t[s].S.y);return e=t[o-1],Math.max(i,n?e.la.y+e.focus.y-r/2:e.la.x+e.focus.x-r/2)}function Bv(t,e,n){switch(t.alignment){case Sd:case Ef:return n+t.width>e&&(e=n+t.width),0>n&&(e-=n),e;case Xu:return t.width>e?t.width:e;case Qu:return 2*t.focus.x>e?t.width:e+t.width-2*t.focus.x;case Pc:case Ju:return Math.max(t.width,Math.max(e,n+t.width)-Math.min(0,n));case _c:return t.width-t.focus.x+t.nodeSpacing/2+e;case cc:return Math.max(t.width,t.focus.x+t.nodeSpacing/2+e);default:return e}}function Uv(t,e,n){switch(t.alignment){case Sd:case Ef:return n+t.height>e&&(e=n+t.height),0>n&&(e-=n),e;case Xu:return t.height>e?t.height:e;case Qu:return 2*t.focus.y>e?t.height:e+t.height-2*t.focus.y;case Pc:case Ju:return Math.max(t.height,Math.max(e,n+t.height)-Math.min(0,n));case _c:return t.height-t.focus.y+t.nodeSpacing/2+e;case cc:return Math.max(t.height,t.focus.y+t.nodeSpacing/2+e);default:return e}}function Hv(t,e,n){switch(t){case Ef:e/=2,n/=2;break;case Sd:e/=2,n/=2;break;case Xu:n=e=0;break;case Qu:break;default:Et("Unhandled alignment value "+t.toString())}return new z(e,n)}function Yh(t,e,n,i,r,o){e=Hv(e,n,i),bd(t,e.x,e.y,r,o)}function bd(t,e,n,i,r){if(e!==0||n!==0)for(t=t.children;i<=r;i++){var o=t[i].S;o.x+=e,o.y+=n}}function jm(t,e,n,i){var r=e.parent;switch(t.ud){case $u:for(t=e.sourceEdges;t.next();)e=t.value,e.fromVertex===r&&e.relativePoint.h(n,i);break;case Ed:for(t=e.destinationEdges;t.next();)e=t.value,e.toVertex===r&&e.relativePoint.h(n,i);break;default:Et("Unhandled path value "+t.ud.toString())}}function Gm(t,e,n){for(var i=0;i<t.length;i++){var r=t[i];r.x+=e,r.y+=n}}function T1(t,e,n,i,r,o,s,l){var u=au(e),d=u===90||u===270,f=e.nodeSpacing;e=i;var y=r;i=o;var T=s,w=n.Yo,N=n.kp;s=n.Da;var F=d?Math.max(T,s.height):Math.max(i,s.width);if((w===null||u!==au(n))&&(w=Ua(t,2),N=Ua(t,2),d?(w[0].h(0,0),w[1].h(0,s.height),N[0].h(s.width,0),N[1].h(N[0].x,w[1].y)):(w[0].h(0,0),w[1].h(s.width,0),N[0].h(0,s.height),N[1].h(w[1].x,N[0].y))),d){if(T=9999999,!(y===null||2>y.length||w===null||2>w.length))for(r=n=0;n<y.length&&r<w.length;){o=y[n];var nt=w[r];u=nt.x,d=nt.y,u+=i;var X=o;n+1<y.length&&(X=y[n+1]);var ut=nt;nt=ut.x,ut=ut.y,r+1<w.length&&(ut=w[r+1],nt=ut.x,ut=ut.y,nt+=i);var ht=T;o.y===d?ht=u-o.x:o.y>d&&o.y<ut?ht=u+(o.y-d)/(ut-d)*(nt-u)-o.x:d>o.y&&d<X.y&&(ht=u-(o.x+(d-o.y)/(X.y-o.y)*(X.x-o.x))),ht<T&&(T=ht),X.y<=o.y?n++:ut<=d?r++:(X.y<=ut&&n++,ut<=X.y&&r++)}if(T=i-T,T+=f,n=w,r=T,e===null||2>e.length||n===null||2>n.length)i=null;else{for(f=Ua(t,e.length+n.length),i=o=u=0;o<n.length&&n[o].y<e[0].y;)d=n[o++],f[i++].h(d.x+r,d.y);for(;u<e.length;)d=e[u++],f[i++].h(d.x,d.y);for(u=e[e.length-1].y;o<n.length&&n[o].y<=u;)o++;for(;o<n.length&&n[o].y>u;)d=n[o++],f[i++].h(d.x+r,d.y);for(n=Ua(t,i),u=0;u<i;u++)n[u].assign(f[u]);bu(t,f),i=n}if(o=N,u=T,y===null||2>y.length||o===null||2>o.length)r=null;else{for(f=Ua(t,y.length+o.length),r=d=n=0;n<y.length&&y[n].y<o[0].y;)X=y[n++],f[r++].h(X.x,X.y);for(;d<o.length;)X=o[d++],f[r++].h(X.x+u,X.y);for(o=o[o.length-1].y;n<y.length&&y[n].y<=o;)n++;for(;n<y.length&&y[n].y>o;)u=y[n++],f[r++].h(u.x,u.y);for(o=Ua(t,r),n=0;n<r;n++)o[n].assign(f[n]);bu(t,f),r=o}return o=Math.max(0,T)+s.width,s=F,bu(t,e),bu(t,w),bu(t,y),bu(t,N),l[0]=i,l[1]=r,new Xt(T,0,o,s)}if(i=9999999,!(y===null||2>y.length||w===null||2>w.length))for(r=n=0;n<y.length&&r<w.length;)o=y[n],nt=w[r],u=nt.x,d=nt.y,d+=T,X=o,n+1<y.length&&(X=y[n+1]),ut=nt,nt=ut.x,ut=ut.y,r+1<w.length&&(ut=w[r+1],nt=ut.x,ut=ut.y,ut+=T),ht=i,o.x===u?ht=d-o.y:o.x>u&&o.x<nt?ht=d+(o.x-u)/(nt-u)*(ut-d)-o.y:u>o.x&&u<X.x&&(ht=d-(o.y+(u-o.x)/(X.x-o.x)*(X.y-o.y))),ht<i&&(i=ht),X.x<=o.x?n++:nt<=u?r++:(X.x<=nt&&n++,nt<=X.x&&r++);if(T-=i,T+=f,n=w,r=T,e===null||2>e.length||n===null||2>n.length)i=null;else{for(f=Ua(t,e.length+n.length),i=o=u=0;o<n.length&&n[o].x<e[0].x;)d=n[o++],f[i++].h(d.x,d.y+r);for(;u<e.length;)d=e[u++],f[i++].h(d.x,d.y);for(u=e[e.length-1].x;o<n.length&&n[o].x<=u;)o++;for(;o<n.length&&n[o].x>u;)d=n[o++],f[i++].h(d.x,d.y+r);for(n=Ua(t,i),u=0;u<i;u++)n[u].assign(f[u]);bu(t,f),i=n}if(o=N,u=T,y===null||2>y.length||o===null||2>o.length)r=null;else{for(f=Ua(t,y.length+o.length),r=d=n=0;n<y.length&&y[n].x<o[0].x;)X=y[n++],f[r++].h(X.x,X.y);for(;d<o.length;)X=o[d++],f[r++].h(X.x,X.y+u);for(o=o[o.length-1].x;n<y.length&&y[n].x<=o;)n++;for(;n<y.length&&y[n].x>o;)u=y[n++],f[r++].h(u.x,u.y);for(o=Ua(t,r),n=0;n<r;n++)o[n].assign(f[n]);bu(t,f),r=o}return o=F,s=Math.max(0,T)+s.height,bu(t,e),bu(t,w),bu(t,y),bu(t,N),l[0]=i,l[1]=r,new Xt(T,0,o,s)}function Ua(t,e){if(t=t.ru[e],t!==void 0&&(t=t.pop(),t!==void 0))return t;t=[];for(var n=0;n<e;n++)t[n]=new z;return t}function bu(t,e){var n=e.length,i=t.ru[n];i===void 0&&(i=[],t.ru[n]=i),i.push(e)}yi.prototype.arrangeTrees=function(){if(this.Rb===Zm)for(var t=this.Ub.iterator;t.next();){var e=t.value;if(e instanceof zl){var n=e.node;if(n!==null){var i=n.position;n=i.x,i=i.y,isFinite(n)||(n=0),isFinite(i)||(i=0),zv(this,e,n,i)}}}else{for(t=[],e=this.Ub.iterator;e.next();)n=e.value,n instanceof zl&&t.push(n);switch(this.sorting){case bf:break;case Vp:t.reverse();break;case Wp:t.sort(this.comparer);break;case Yp:t.sort(this.comparer),t.reverse();break;default:Et("Unhandled sorting value "+this.sorting.toString())}for(n=this.arrangementOrigin,e=n.x,n=n.y,i=0;i<t.length;i++){var r=t[i];switch(zv(this,r,e+r.la.x,n+r.la.y),this.Rb){case Km:n+=r.Da.height+this.$d.height;break;case Wv:e+=r.Da.width+this.$d.width;break;default:Et("Unhandled arrangement value "+this.Rb.toString())}}}};function zv(t,e,n,i){if(e!==null){e.x=n,e.y=i,e=e.children;for(var r=e.length,o=0;o<r;o++){var s=e[o];zv(t,s,n+s.S.x,i+s.S.y)}}}yi.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},yi.prototype.commitNodes=function(){for(var t=this.network.vertexes.iterator;t.next();)t.value.commit();for(t.reset();t.next();)this.layoutComments(t.value)},yi.prototype.Gu=function(){if(this.layerStyle===$m){for(var t=this.$v,e=[],n=null,i=this.network.vertexes.iterator;i.next();){var r=i.value;n===null?n=r.bounds.copy():n.ed(r.bounds);var o=e[r.level];o===void 0?o=this.computeLayerSpacing(r):o=Math.max(o,this.computeLayerSpacing(r)),e[r.level]=o}for(i=0;i<e.length;i++)e[i]===void 0&&(e[i]=0);if(this.angle===90||this.angle===270?(n.Bc(this.nodeSpacing/2,this.layerSpacing),i=new z(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),i=new z(-this.layerSpacing/2,-this.nodeSpacing/2)),r=[],n=this.angle===90||this.angle===270?n.width:n.height,o=0,this.angle===180||this.angle===270)for(var s=0;s<t.length;s++)o+=t[s]+e[s];for(s=0;s<t.length;s++){var l=t[s]+e[s];this.angle===270?(o-=l,r.push(new Xt(0,o,n,l))):this.angle===90?(r.push(new Xt(0,o,n,l)),o+=l):this.angle===180?(o-=l,r.push(new Xt(o,0,l,n))):(r.push(new Xt(o,0,l,n)),o+=l)}this.commitLayers(r,i)}},yi.prototype.commitLayers=function(){},yi.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},yi.prototype.yv=function(){for(var t=this.Ub.iterator;t.next();){var e=t.value;e instanceof zl&&w1(this,e)}};function w1(t,e){if(e!==null){t.setPortSpots(e),e=e.children;for(var n=e.length,i=0;i<n;i++)w1(t,e[i])}}yi.prototype.setPortSpots=function(t){var e=t.alignment;if(fh(e)){var n=this.ud===$u,i=au(t);switch(i){case 0:var r=Zo;break;case 90:r=as;break;case 180:r=Cs;break;default:r=ds}var o=t.children,s=o.length;switch(e){case Pc:case Ju:for(e=0;e<s;e++){var l=o[e];if(l=(n?l.sourceEdges:l.destinationEdges).first(),l!==null&&(l=l.link,l!==null)){var u=i===90||i===270?Cs:ds;if(s===1||e===s-1&&s%2===1)switch(i){case 0:u=Cs;break;case 90:u=ds;break;case 180:u=Zo;break;default:u=as}else e%2===0&&(u=i===90||i===270?Zo:as);n?(t.setsPortSpot&&(l.fromSpot=r),t.setsChildPortSpot&&(l.toSpot=u)):(t.setsPortSpot&&(l.fromSpot=u),t.setsChildPortSpot&&(l.toSpot=r))}}break;case _c:for(i=i===90||i===270?Zo:as,o=n?t.destinationEdges:t.sourceEdges;o.next();)s=o.value.link,s!==null&&(n?(t.setsPortSpot&&(s.fromSpot=r),t.setsChildPortSpot&&(s.toSpot=i)):(t.setsPortSpot&&(s.fromSpot=i),t.setsChildPortSpot&&(s.toSpot=r)));break;case cc:for(i=i===90||i===270?Cs:ds,o=n?t.destinationEdges:t.sourceEdges;o.next();)s=o.value.link,s!==null&&(n?(t.setsPortSpot&&(s.fromSpot=r),t.setsChildPortSpot&&(s.toSpot=i)):(t.setsPortSpot&&(s.fromSpot=i),t.setsChildPortSpot&&(s.toSpot=r)))}}else if(n=au(t),this.ud===$u){for(r=t.destinationEdges;r.next();)if(i=r.value.link,i!==null){if(t.setsPortSpot)if(t.portSpot.Xb())switch(n){case 0:i.fromSpot=Zo;break;case 90:i.fromSpot=as;break;case 180:i.fromSpot=Cs;break;default:i.fromSpot=ds}else i.fromSpot=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Xb())switch(n){case 0:i.toSpot=Cs;break;case 90:i.toSpot=ds;break;case 180:i.toSpot=Zo;break;default:i.toSpot=as}else i.toSpot=t.childPortSpot}}else for(r=t.sourceEdges;r.next();)if(i=r.value.link,i!==null){if(t.setsPortSpot)if(t.portSpot.Xb())switch(n){case 0:i.toSpot=Zo;break;case 90:i.toSpot=as;break;case 180:i.toSpot=Cs;break;default:i.toSpot=ds}else i.toSpot=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Xb())switch(n){case 0:i.fromSpot=Cs;break;case 90:i.fromSpot=ds;break;case 180:i.fromSpot=Zo;break;default:i.fromSpot=as}else i.fromSpot=t.childPortSpot}};function au(t){return t=t.angle,45>=t?0:135>=t?90:225>=t?180:315>=t?270:0}yi.prototype.computeLayerSpacing=function(t){var e=au(t);e=e===90||e===270;var n=t.layerSpacing;if(0<t.layerSpacingParentOverlap){var i=Math.min(1,t.layerSpacingParentOverlap);n-=e?t.height*i:t.width*i}return n<(e?-t.height:-t.width)&&(n=e?-t.height:-t.width),n},yi.prototype.computeNodeIndent=function(t){var e=au(t),n=t.nodeIndent;if(0<t.nodeIndentPastParent){var i=Math.min(1,t.nodeIndentPastParent);n+=e===90||e===270?t.width*i:t.height*i}return n=Math.max(0,n)},Mn.Object.defineProperties(yi.prototype,{roots:{get:function(){return this.Ub},set:function(t){this.Ub!==t&&(this.Ub=t,this.C())}},path:{get:function(){return this.Wn},set:function(t){this.Wn!==t&&(this.Wn=t,this.C())}},treeStyle:{get:function(){return this.vo},set:function(t){this.Rb===t||t!==Ym&&t!==Gv&&t!==jv&&t!==Vv||(this.vo=t,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(t){this.Rb===t||t!==Yv&&t!==Kv&&t!==$m||(this.Bq=t,this.C())}},comments:{get:function(){return this.td},set:function(t){this.td!==t&&(this.td=t,this.C())}},arrangement:{get:function(){return this.Rb},set:function(t){this.Rb===t||t!==Km&&t!==Wv&&t!==Zm||(this.Rb=t,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(t){this.$d.D(t)||(this.$d.assign(t),this.C())}},rootDefaults:{get:function(){return this.W},set:function(t){this.W!==t&&(this.W=t,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(t){this.Y!==t&&(this.Y=t,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(t){this.W.sorting===t||t!==bf&&t!==Vp&&t!==Wp&&!Yp||(this.W.sorting=t,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(t){this.W.comparer!==t&&(this.W.comparer=t,this.C())}},angle:{get:function(){return this.W.angle},set:function(t){this.W.angle!==t&&(t===0||t===90||t===180||t===270?(this.W.angle=t,this.C()):Et("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(t){this.W.alignment!==t&&(this.W.alignment=t,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(t){this.W.nodeIndent!==t&&0<=t&&(this.W.nodeIndent=t,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(t){this.W.nodeIndentPastParent!==t&&0<=t&&1>=t&&(this.W.nodeIndentPastParent=t,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(t){this.W.nodeSpacing!==t&&(this.W.nodeSpacing=t,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(t){this.W.layerSpacing!==t&&(this.W.layerSpacing=t,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(t){this.W.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.W.layerSpacingParentOverlap=t,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(t){this.W.compaction===t||t!==Wm&&t!==Kp||(this.W.compaction=t,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(t){this.W.breadthLimit!==t&&0<=t&&(this.W.breadthLimit=t,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(t){this.W.rowSpacing!==t&&(this.W.rowSpacing=t,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(t){this.W.rowIndent!==t&&0<=t&&(this.W.rowIndent=t,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(t){this.W.commentSpacing!==t&&(this.W.commentSpacing=t,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(t){this.W.commentMargin!==t&&(this.W.commentMargin=t,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(t){this.W.setsPortSpot!==t&&(this.W.setsPortSpot=t,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(t){this.W.portSpot.D(t)||(this.W.portSpot=t,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(t){this.W.setsChildPortSpot!==t&&(this.W.setsChildPortSpot=t,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(t){this.W.childPortSpot.D(t)||(this.W.childPortSpot=t,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(t){this.Y.sorting===t||t!==bf&&t!==Vp&&t!==Wp&&!Yp||(this.Y.sorting=t,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(t){this.Y.comparer!==t&&(this.Y.comparer=t,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(t){this.Y.angle===t||t!==0&&t!==90&&t!==180&&t!==270||(this.Y.angle=t,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(t){this.Y.alignment!==t&&(this.Y.alignment=t,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(t){this.Y.nodeIndent!==t&&0<=t&&(this.Y.nodeIndent=t,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(t){this.Y.nodeIndentPastParent!==t&&0<=t&&1>=t&&(this.Y.nodeIndentPastParent=t,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(t){this.Y.nodeSpacing!==t&&(this.Y.nodeSpacing=t,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(t){this.Y.layerSpacing!==t&&(this.Y.layerSpacing=t,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(t){this.Y.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.Y.layerSpacingParentOverlap=t,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(t){this.Y.compaction===t||t!==Wm&&t!==Kp||(this.Y.compaction=t,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(t){this.Y.breadthLimit!==t&&0<=t&&(this.Y.breadthLimit=t,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(t){this.Y.rowSpacing!==t&&(this.Y.rowSpacing=t,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(t){this.Y.rowIndent!==t&&0<=t&&(this.Y.rowIndent=t,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(t){this.Y.commentSpacing!==t&&(this.Y.commentSpacing=t,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(t){this.Y.commentMargin!==t&&(this.Y.commentMargin=t,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(t){this.Y.setsPortSpot!==t&&(this.Y.setsPortSpot=t,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(t){this.Y.portSpot.D(t)||(this.Y.portSpot=t,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(t){this.Y.setsChildPortSpot!==t&&(this.Y.setsChildPortSpot=t,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(t){this.Y.childPortSpot.D(t)||(this.Y.childPortSpot=t,this.C())}}});var Vm=new xe(yi,"PathDefault",-1),$u=new xe(yi,"PathDestination",0),Ed=new xe(yi,"PathSource",1),bf=new xe(yi,"SortingForwards",10),Vp=new xe(yi,"SortingReverse",11),Wp=new xe(yi,"SortingAscending",12),Yp=new xe(yi,"SortingDescending",13),Ef=new xe(yi,"AlignmentCenterSubtrees",20),Sd=new xe(yi,"AlignmentCenterChildren",21),Xu=new xe(yi,"AlignmentStart",22),Qu=new xe(yi,"AlignmentEnd",23),Pc=new xe(yi,"AlignmentBus",24),Ju=new xe(yi,"AlignmentBusBranching",25),_c=new xe(yi,"AlignmentTopLeftBus",26),cc=new xe(yi,"AlignmentBottomRightBus",27),Wm=new xe(yi,"CompactionNone",30),Kp=new xe(yi,"CompactionBlock",31),Ym=new xe(yi,"StyleLayered",40),jv=new xe(yi,"StyleLastParents",41),Gv=new xe(yi,"StyleAlternating",42),Vv=new xe(yi,"StyleRootOnly",43),Km=new xe(yi,"ArrangementVertical",50),Wv=new xe(yi,"ArrangementHorizontal",51),Zm=new xe(yi,"ArrangementFixedRoots",52),Yv=new xe(yi,"LayerIndividual",60),Kv=new xe(yi,"LayerSiblings",61),$m=new xe(yi,"LayerUniform",62);yi.className="TreeLayout",yi.PathDefault=Vm,yi.PathDestination=$u,yi.PathSource=Ed,yi.SortingForwards=bf,yi.SortingReverse=Vp,yi.SortingAscending=Wp,yi.SortingDescending=Yp,yi.AlignmentCenterSubtrees=Ef,yi.AlignmentCenterChildren=Sd,yi.AlignmentStart=Xu,yi.AlignmentEnd=Qu,yi.AlignmentBus=Pc,yi.AlignmentBusBranching=Ju,yi.AlignmentTopLeftBus=_c,yi.AlignmentBottomRightBus=cc,yi.CompactionNone=Wm,yi.CompactionBlock=Kp,yi.StyleLayered=Ym,yi.StyleLastParents=jv,yi.StyleAlternating=Gv,yi.StyleRootOnly=Vv,yi.ArrangementVertical=Km,yi.ArrangementHorizontal=Wv,yi.ArrangementFixedRoots=Zm,yi.LayerIndividual=Yv,yi.LayerSiblings=Kv,yi.LayerUniform=$m;function Td(t){jr.call(this,t)}Yn(Td,jr),Td.prototype.createVertex=function(){return new zl(this)},Td.prototype.createEdge=function(){return new Sf(this)},Td.className="TreeNetwork";function zl(t){Ko.call(this,t),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new z(0,0),this.Da=new Je(0,0),this.la=new z(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=bf,this.hd=fv,this.Kb=0,this.Jb=Sd,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Kp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=_o,this.wr=!0,this.Dp=_o}Yn(zl,Ko),zl.prototype.copyInheritedPropertiesFrom=function(t){t!==null&&(this.nd=t.sorting,this.hd=t.comparer,this.Kb=t.angle,this.Jb=t.alignment,this.Uq=t.nodeIndent,this.Vq=t.nodeIndentPastParent,this.Wq=t.nodeSpacing,this.ie=t.layerSpacing,this.Aq=t.layerSpacingParentOverlap,this.Hp=t.compaction,this.Ap=t.breadthLimit,this.nr=t.rowSpacing,this.mr=t.rowIndent,this.Gp=t.commentSpacing,this.Fp=t.commentMargin,this.xr=t.setsPortSpot,this.dr=t.portSpot,this.wr=t.setsChildPortSpot,this.Dp=t.childPortSpot)},Mn.Object.defineProperties(zl.prototype,{initialized:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t)}},parent:{get:function(){return this.hb},set:function(t){this.hb!==t&&(this.hb=t)}},children:{get:function(){return this.u},set:function(t){if(this.u!==t){if(t!==null)for(var e=t.length,n=0;n<e;n++);this.u=t}}},level:{get:function(){return this.ia},set:function(t){this.ia!==t&&(this.ia=t)}},descendantCount:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}},maxChildrenCount:{get:function(){return this.Ha},set:function(t){this.Ha!==t&&(this.Ha=t)}},maxGenerationCount:{get:function(){return this.nb},set:function(t){this.nb!==t&&(this.nb=t)}},comments:{get:function(){return this.td},set:function(t){if(this.td!==t){if(t!==null)for(var e=t.length,n=0;n<e;n++);this.td=t}}},sorting:{get:function(){return this.nd},set:function(t){this.nd!==t&&(this.nd=t)}},comparer:{get:function(){return this.hd},set:function(t){this.hd!==t&&(this.hd=t)}},angle:{get:function(){return this.Kb},set:function(t){this.Kb!==t&&(this.Kb=t)}},alignment:{get:function(){return this.Jb},set:function(t){this.Jb!==t&&(this.Jb=t)}},nodeIndent:{get:function(){return this.Uq},set:function(t){this.Uq!==t&&(this.Uq=t)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(t){this.Vq!==t&&(this.Vq=t)}},nodeSpacing:{get:function(){return this.Wq},set:function(t){this.Wq!==t&&(this.Wq=t)}},layerSpacing:{get:function(){return this.ie},set:function(t){this.ie!==t&&(this.ie=t)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(t){this.Aq!==t&&(this.Aq=t)}},compaction:{get:function(){return this.Hp},set:function(t){this.Hp!==t&&(this.Hp=t)}},breadthLimit:{get:function(){return this.Ap},set:function(t){this.Ap!==t&&(this.Ap=t)}},rowSpacing:{get:function(){return this.nr},set:function(t){this.nr!==t&&(this.nr=t)}},rowIndent:{get:function(){return this.mr},set:function(t){this.mr!==t&&(this.mr=t)}},commentSpacing:{get:function(){return this.Gp},set:function(t){this.Gp!==t&&(this.Gp=t)}},commentMargin:{get:function(){return this.Fp},set:function(t){this.Fp!==t&&(this.Fp=t)}},setsPortSpot:{get:function(){return this.xr},set:function(t){this.xr!==t&&(this.xr=t)}},portSpot:{get:function(){return this.dr},set:function(t){this.dr.D(t)||(this.dr=t)}},setsChildPortSpot:{get:function(){return this.wr},set:function(t){this.wr!==t&&(this.wr=t)}},childPortSpot:{get:function(){return this.Dp},set:function(t){this.Dp.D(t)||(this.Dp=t)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(t){this.S.set(t)}},subtreeSize:{get:function(){return this.Da},set:function(t){this.Da.set(t)}},subtreeOffset:{get:function(){return this.la},set:function(t){this.la.set(t)}}}),zl.className="TreeVertex";function Sf(t){Qa.call(this,t),this.$t=new z(0,0)}Yn(Sf,Qa),Sf.prototype.commit=function(){var t=this.link;if(t!==null&&!t.isAvoiding){var e=this.network.layout,n=null,i=null;switch(e.ud){case $u:n=this.fromVertex,i=this.toVertex;break;case Ed:n=this.toVertex,i=this.fromVertex;break;default:Et("Unhandled path value "+e.ud.toString())}if(n!==null&&i!==null){var r=this.$t;if(r.x!==0||r.y!==0||n.qA){i=n.bounds;var o=au(n),s=e.computeLayerSpacing(n),l=n.rowSpacing;t.vg();var u=t.curve===fl,d=t.isOrthogonal,f;if(t.uh(),d||u){for(f=2;4<t.pointsCount;)t.pv(2);var y=t.i(1),T=t.i(2)}else{for(f=1;3<t.pointsCount;)t.pv(1);y=t.i(0),T=t.i(t.pointsCount-1)}var w=t.i(t.pointsCount-1);o===0?(n.alignment===Qu?(o=i.bottom+r.y,r.y===0&&y.y>w.y+n.rowIndent&&(o=Math.min(o,Math.max(y.y,o-e.computeNodeIndent(n))))):n.alignment===Xu?(o=i.top+r.y,r.y===0&&y.y<w.y-n.rowIndent&&(o=Math.max(o,Math.min(y.y,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(t.m(f,y.x,o),f++,t.m(f,i.right+s,o),f++,t.m(f,i.right+s+(r.x-l)/3,o),f++,t.m(f,i.right+s+2*(r.x-l)/3,o),f++,t.m(f,i.right+s+(r.x-l),o),f++,t.m(f,T.x,o)):(d&&(t.m(f,i.right+s/2,y.y),f++),t.m(f,i.right+s/2,o),f++,t.m(f,i.right+s+r.x-(d?l/2:l),o),f++,d&&t.m(f,t.i(f-1).x,T.y))):o===90?(n.alignment===Qu?(o=i.right+r.x,r.x===0&&y.x>w.x+n.rowIndent&&(o=Math.min(o,Math.max(y.x,o-e.computeNodeIndent(n))))):n.alignment===Xu?(o=i.left+r.x,r.x===0&&y.x<w.x-n.rowIndent&&(o=Math.max(o,Math.min(y.x,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(t.m(f,o,y.y),f++,t.m(f,o,i.bottom+s),f++,t.m(f,o,i.bottom+s+(r.y-l)/3),f++,t.m(f,o,i.bottom+s+2*(r.y-l)/3),f++,t.m(f,o,i.bottom+s+(r.y-l)),f++,t.m(f,o,T.y)):(d&&(t.m(f,y.x,i.bottom+s/2),f++),t.m(f,o,i.bottom+s/2),f++,t.m(f,o,i.bottom+s+r.y-(d?l/2:l)),f++,d&&t.m(f,T.x,t.i(f-1).y))):o===180?(n.alignment===Qu?(o=i.bottom+r.y,r.y===0&&y.y>w.y+n.rowIndent&&(o=Math.min(o,Math.max(y.y,o-e.computeNodeIndent(n))))):n.alignment===Xu?(o=i.top+r.y,r.y===0&&y.y<w.y-n.rowIndent&&(o=Math.max(o,Math.min(y.y,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(t.m(f,y.x,o),f++,t.m(f,i.left-s,o),f++,t.m(f,i.left-s+(r.x+l)/3,o),f++,t.m(f,i.left-s+2*(r.x+l)/3,o),f++,t.m(f,i.left-s+(r.x+l),o),f++,t.m(f,T.x,o)):(d&&(t.m(f,i.left-s/2,y.y),f++),t.m(f,i.left-s/2,o),f++,t.m(f,i.left-s+r.x+(d?l/2:l),o),f++,d&&t.m(f,t.i(f-1).x,T.y))):o===270?(n.alignment===Qu?(o=i.right+r.x,r.x===0&&y.x>w.x+n.rowIndent&&(o=Math.min(o,Math.max(y.x,o-e.computeNodeIndent(n))))):n.alignment===Xu?(o=i.left+r.x,r.x===0&&y.x<w.x-n.rowIndent&&(o=Math.max(o,Math.min(y.x,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(t.m(f,o,y.y),f++,t.m(f,o,i.top-s),f++,t.m(f,o,i.top-s+(r.y+l)/3),f++,t.m(f,o,i.top-s+2*(r.y+l)/3),f++,t.m(f,o,i.top-s+(r.y+l)),f++,t.m(f,o,T.y)):(d&&(t.m(f,y.x,i.top-s/2),f++),t.m(f,o,i.top-s/2),f++,t.m(f,o,i.top-s+r.y+(d?l/2:l)),f++,d&&t.m(f,T.x,t.i(f-1).y))):Et("Invalid angle "+o),t.zf()}else r=i,t=this.link,i=this.network.layout,e=au(n),e!==au(r)&&(s=i.computeLayerSpacing(n),l=n.bounds,n=r.bounds,e===0&&n.left-l.right<s+1||e===90&&n.top-l.bottom<s+1||e===180&&l.left-n.right<s+1||e===270&&l.top-n.bottom<s+1||(t.vg(),n=t.curve===fl,r=t.isOrthogonal,i=fh(this.fromVertex.alignment),t.uh(),e===0?(e=l.right+s/2,n?t.pointsCount===4&&(n=t.i(3).y,t.L(1,e-20,t.i(1).y),t.m(2,e-20,n),t.m(3,e,n),t.m(4,e+20,n),t.L(5,t.i(5).x,n)):r?i?t.L(3,t.i(2).x,t.i(4).y):t.pointsCount===6&&(t.L(2,e,t.i(2).y),t.L(3,e,t.i(3).y)):t.pointsCount===4?t.m(2,e,t.i(2).y):t.pointsCount===3?t.L(1,e,t.i(2).y):t.pointsCount===2&&t.m(1,e,t.i(1).y)):e===90?(e=l.bottom+s/2,n?t.pointsCount===4&&(n=t.i(3).x,t.L(1,t.i(1).x,e-20),t.m(2,n,e-20),t.m(3,n,e),t.m(4,n,e+20),t.L(5,n,t.i(5).y)):r?i?t.L(3,t.i(2).x,t.i(4).y):t.pointsCount===6&&(t.L(2,t.i(2).x,e),t.L(3,t.i(3).x,e)):t.pointsCount===4?t.m(2,t.i(2).x,e):t.pointsCount===3?t.L(1,t.i(2).x,e):t.pointsCount===2&&t.m(1,t.i(1).x,e)):e===180?(e=l.left-s/2,n?t.pointsCount===4&&(n=t.i(3).y,t.L(1,e+20,t.i(1).y),t.m(2,e+20,n),t.m(3,e,n),t.m(4,e-20,n),t.L(5,t.i(5).x,n)):r?i?t.L(3,t.i(2).x,t.i(4).y):t.pointsCount===6&&(t.L(2,e,t.i(2).y),t.L(3,e,t.i(3).y)):t.pointsCount===4?t.m(2,e,t.i(2).y):t.pointsCount===3?t.L(1,e,t.i(2).y):t.pointsCount===2&&t.m(1,e,t.i(1).y)):e===270&&(e=l.top-s/2,n?t.pointsCount===4&&(n=t.i(3).x,t.L(1,t.i(1).x,e+20),t.m(2,n,e+20),t.m(3,n,e),t.m(4,n,e-20),t.L(5,n,t.i(5).y)):r?i?t.L(3,t.i(2).x,t.i(4).y):t.pointsCount===6&&(t.L(2,t.i(2).x,e),t.L(3,t.i(3).x,e)):t.pointsCount===4?t.m(2,t.i(2).x,e):t.pointsCount===3?t.L(1,t.i(2).x,e):t.pointsCount===2&&t.m(1,t.i(1).x,e)),t.zf()))}}},Mn.Object.defineProperties(Sf.prototype,{fromVertex:{get:function(){return this.kd},set:function(t){this.kd!==t&&(this.kd=t)}},toVertex:{get:function(){return this.qd},set:function(t){this.qd!==t&&(this.qd=t)}},relativePoint:{get:function(){return this.$t},set:function(t){this.$t.set(t)}}}),Sf.className="TreeEdge",Dr.prototype.initializeStandardTools=function(){this.gb("Action",new ae,this.mouseDownTools),this.gb("Relinking",new oa,this.mouseDownTools),this.gb("LinkReshaping",new M,this.mouseDownTools),this.gb("Rotating",new be,this.mouseDownTools),this.gb("Resizing",new Vt,this.mouseDownTools),this.gb("Linking",new Fs,this.mouseMoveTools),this.gb("Dragging",new Fr,this.mouseMoveTools),this.gb("DragSelecting",new Ue,this.mouseMoveTools),this.gb("Panning",new fe,this.mouseMoveTools),this.gb("ContextMenu",new Cr,this.mouseUpTools),this.gb("TextEditing",new Di,this.mouseUpTools),this.gb("ClickCreating",new We,this.mouseUpTools),this.gb("ClickSelecting",new Ne,this.mouseUpTools)},Lu("Horizontal",new wg),Lu("Spot",new kg),Lu("Table",new Ag),Lu("Viewbox",new Rg),Lu("TableRow",new Ig),Lu("TableColumn",new Lg),Lu("Graduated",new up),Lu("Grid",new lp),Vd.add("GraphLinksModel",ls),Vd.add("TreeModel",Al);var Xm=sn.go,Zv={get licenseKey(){return Kt.licenseKey},set licenseKey(t){Kt.licenseKey=t},get version(){return Kt.version},Group:Jn,EnumValue:xe,List:Te,Set:Ce,Map:Zt,Point:z,Size:Je,Rect:Xt,Margin:ii,Spot:vn,Geometry:Oe,PathFigure:To,PathSegment:Oi,InputEvent:es,DiagramEvent:yl,ChangedEvent:Qr,Model:wn,GraphLinksModel:Ii,TreeModel:ga,Binding:Oo,Transaction:wo,UndoManager:Tr,CommandHandler:et,Tool:Ci,DraggingTool:Fr,DraggingInfo:rc,DraggingOptions:c,LinkingBaseTool:uo,LinkingTool:Fs,RelinkingTool:oa,LinkReshapingTool:M,ResizingTool:Vt,RotatingTool:be,ClickSelectingTool:Ne,ActionTool:ae,ClickCreatingTool:We,HTMLInfo:Pi,ContextMenuTool:Cr,DragSelectingTool:Ue,PanningTool:fe,TextEditingTool:Di,ToolManager:Dr,Animation:ln,AnimationManager:Os,AnimationTrigger:wa,Layer:ms,Diagram:Kt,Palette:v,Overview:x,Brush:ur,GraphObject:Rt,Panel:Re,RowColumnDefinition:jo,Shape:ai,TextBlock:zr,Picture:Ia,Part:Rn,Adornment:Vi,Node:tn,Link:Pe,Placeholder:ha,Layout:oo,LayoutNetwork:jr,LayoutVertex:Ko,LayoutEdge:Qa,GridLayout:Ss,PanelLayout:Yo,CircularLayout:co,CircularNetwork:vf,CircularVertex:Fp,CircularEdge:Lm,ForceDirectedLayout:Ps,ForceDirectedNetwork:xd,ForceDirectedVertex:Bp,ForceDirectedEdge:Up,LayeredDigraphLayout:dr,LayeredDigraphNetwork:xf,LayeredDigraphVertex:Ll,LayeredDigraphEdge:jp,TreeLayout:yi,TreeNetwork:Td,TreeVertex:zl,TreeEdge:Sf};typeof Xm=="object"&&Xm.version&&cn("WARNING: a `go` object on the root object is already defined. "+("Debug"in Xm?"debug ":"")+"version: "+Xm.version+", replaced with version: "+Zv.version),Kt.prototype.go=Zv,sn.go=Zv,typeof j.exports=="object"&&(j.exports=typeof p.g!="undefined"?p.g.go:self.go)}();var E=typeof p.g!="undefined"?p.g.go:self.go;const I=typeof p.g!="undefined"?p.g.go:self.go,D=I.Group,P=I.EnumValue,V=I.List,C=I.Set,Z=I.Map,lt=I.Point,J=I.Size,Y=I.Rect,Mt=I.Margin,ct=I.Spot,$t=I.Geometry,Ft=I.PathFigure,_t=I.PathSegment,Ct=I.InputEvent,xt=I.DiagramEvent,St=I.ChangedEvent,ft=I.Model,vt=I.GraphLinksModel,ot=I.TreeModel,st=I.Binding,q=I.Transaction,wt=I.UndoManager,Bt=I.CommandHandler,pt=I.Tool,Ht=I.DraggingTool,At=I.DraggingInfo,gt=I.LinkingBaseTool,Pt=I.LinkingTool,kt=I.RelinkingTool,Gt=I.LinkReshapingTool,ue=I.ResizingTool,le=I.RotatingTool,re=I.ClickSelectingTool,pe=I.ActionTool,Dt=I.ClickCreatingTool,rt=I.HTMLInfo,Q=I.ContextMenuTool,ie=I.DragSelectingTool,ce=I.PanningTool,oe=I.TextEditingTool,pn=I.ToolManager,Ze=I.Animation,Nn=I.AnimationManager,me=I.AnimationTrigger,on=I.Layer,un=I.Diagram,Ln=I.Palette,Dn=I.Overview,K=I.Brush,O=I.GraphObject,k=I.Panel,H=I.RowColumnDefinition,tt=I.Shape,_=I.TextBlock,at=I.TextBlockMetrics,se=I.Picture,Ve=I.Part,Ke=I.Adornment,qt=I.Node,he=I.Link,de=I.Placeholder,Fe=I.Layout,$e=I.LayoutNetwork,Ee=I.LayoutVertex,zt=I.LayoutEdge,Be=I.GridLayout,Ge=I.PanelLayout,Ie=I.CircularLayout,ze=I.CircularNetwork,Cn=I.CircularVertex,je=I.CircularEdge,bt=I.ForceDirectedLayout,hn=I.ForceDirectedNetwork,Sn=I.ForceDirectedVertex,Jt=I.ForceDirectedEdge,Hn=I.LayeredDigraphLayout,ri=I.LayeredDigraphNetwork,Qn=I.LayeredDigraphVertex,we=I.LayeredDigraphEdge,wi=I.TreeLayout,xi=I.TreeNetwork,Bn=I.TreeVertex,Kn=I.TreeEdge,Ei=I.version},46963:function(j){"use strict";j.exports=p;var S=/[#.]/g;function p(E,I){for(var D=E||"",P=I||"div",V={},C=0,Z,lt,J;C<D.length;)S.lastIndex=C,J=S.exec(D),Z=D.slice(C,J?J.index:D.length),Z&&(lt?lt==="#"?V.id=Z:V.className?V.className.push(Z):V.className=[Z]:P=Z,C+=Z.length),J&&(lt=J[0],C++);return{type:"element",tagName:P,properties:V,children:[]}}},5641:function(j,S,p){"use strict";var E=p(88914),I=p(47178),D=p(46963),P=p(92848).Q,V=p(58951).Q;j.exports=Z;var C={}.hasOwnProperty;function Z(_t,Ct,xt){var St=xt?Ft(xt):null;return ft;function ft(ot,st){var q=D(ot,Ct),wt=Array.prototype.slice.call(arguments,2),Bt=q.tagName.toLowerCase(),pt;if(q.tagName=St&&C.call(St,Bt)?St[Bt]:Bt,st&<(st,q)&&(wt.unshift(st),st=null),st)for(pt in st)vt(q.properties,pt,st[pt]);return Y(q.children,wt),q.tagName==="template"&&(q.content={type:"root",children:q.children},q.children=[]),q}function vt(ot,st,q){var wt,Bt,pt;q==null||q!==q||(wt=E(_t,st),Bt=wt.property,pt=q,typeof pt=="string"&&(wt.spaceSeparated?pt=P(pt):wt.commaSeparated?pt=V(pt):wt.commaOrSpaceSeparated&&(pt=P(V(pt).join(" ")))),Bt==="style"&&typeof q!="string"&&(pt=$t(pt)),Bt==="className"&&ot.className&&(pt=ot.className.concat(pt)),ot[Bt]=Mt(wt,Bt,pt))}}function lt(_t,Ct){return typeof _t=="string"||"length"in _t||J(Ct.tagName,_t)}function J(_t,Ct){var xt=Ct.type;return _t==="input"||!xt||typeof xt!="string"?!1:typeof Ct.children=="object"&&"length"in Ct.children?!0:(xt=xt.toLowerCase(),_t==="button"?xt!=="menu"&&xt!=="submit"&&xt!=="reset"&&xt!=="button":"value"in Ct)}function Y(_t,Ct){var xt,St;if(typeof Ct=="string"||typeof Ct=="number"){_t.push({type:"text",value:String(Ct)});return}if(typeof Ct=="object"&&"length"in Ct){for(xt=-1,St=Ct.length;++xt<St;)Y(_t,Ct[xt]);return}if(typeof Ct!="object"||!("type"in Ct))throw new Error("Expected node, nodes, or string, got `"+Ct+"`");_t.push(Ct)}function Mt(_t,Ct,xt){var St,ft,vt;if(typeof xt!="object"||!("length"in xt))return ct(_t,Ct,xt);for(ft=xt.length,St=-1,vt=[];++St<ft;)vt[St]=ct(_t,Ct,xt[St]);return vt}function ct(_t,Ct,xt){var St=xt;return _t.number||_t.positiveNumber?!isNaN(St)&&St!==""&&(St=Number(St)):(_t.boolean||_t.overloadedBoolean)&&typeof St=="string"&&(St===""||I(xt)===I(Ct))&&(St=!0),St}function $t(_t){var Ct=[],xt;for(xt in _t)Ct.push([xt,_t[xt]].join(": "));return Ct.join("; ")}function Ft(_t){for(var Ct=_t.length,xt=-1,St={},ft;++xt<Ct;)ft=_t[xt],St[ft.toLowerCase()]=ft;return St}},82073:function(j,S,p){"use strict";var E=p(18795),I=p(5641),D=I(E,"div");D.displayName="html",j.exports=D},43621:function(j,S,p){"use strict";j.exports=p(82073)},93193:function(j){var S=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,p=/\n/g,E=/^\s*/,I=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,D=/^:\s*/,P=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,V=/^[;\s]*/,C=/^\s+|\s+$/g,Z=`
|
|
|
`,lt="/",J="*",Y="",Mt="comment",ct="declaration";j.exports=function(Ft,_t){if(typeof Ft!="string")throw new TypeError("First argument must be a string");if(!Ft)return[];_t=_t||{};var Ct=1,xt=1;function St(gt){var Pt=gt.match(p);Pt&&(Ct+=Pt.length);var kt=gt.lastIndexOf(Z);xt=~kt?gt.length-kt:xt+gt.length}function ft(){var gt={line:Ct,column:xt};return function(Pt){return Pt.position=new vt(gt),wt(),Pt}}function vt(gt){this.start=gt,this.end={line:Ct,column:xt},this.source=_t.source}vt.prototype.content=Ft;var ot=[];function st(gt){var Pt=new Error(_t.source+":"+Ct+":"+xt+": "+gt);if(Pt.reason=gt,Pt.filename=_t.source,Pt.line=Ct,Pt.column=xt,Pt.source=Ft,_t.silent)ot.push(Pt);else throw Pt}function q(gt){var Pt=gt.exec(Ft);if(Pt){var kt=Pt[0];return St(kt),Ft=Ft.slice(kt.length),Pt}}function wt(){q(E)}function Bt(gt){var Pt;for(gt=gt||[];Pt=pt();)Pt!==!1&>.push(Pt);return gt}function pt(){var gt=ft();if(!(lt!=Ft.charAt(0)||J!=Ft.charAt(1))){for(var Pt=2;Y!=Ft.charAt(Pt)&&(J!=Ft.charAt(Pt)||lt!=Ft.charAt(Pt+1));)++Pt;if(Pt+=2,Y===Ft.charAt(Pt-1))return st("End of comment missing");var kt=Ft.slice(2,Pt-2);return xt+=2,St(kt),Ft=Ft.slice(Pt),xt+=2,gt({type:Mt,comment:kt})}}function Ht(){var gt=ft(),Pt=q(I);if(Pt){if(pt(),!q(D))return st("property missing ':'");var kt=q(P),Gt=gt({type:ct,property:$t(Pt[0].replace(S,Y)),value:kt?$t(kt[0].replace(S,Y)):Y});return q(V),Gt}}function At(){var gt=[];Bt(gt);for(var Pt;Pt=Ht();)Pt!==!1&&(gt.push(Pt),Bt(gt));return gt}return wt(),At()};function $t(Ft){return Ft?Ft.replace(C,Y):Y}},91241:function(j){"use strict";j.exports=S;function S(p){var E=typeof p=="string"?p.charCodeAt(0):p;return E>=97&&E<=122||E>=65&&E<=90}},21127:function(j,S,p){"use strict";var E=p(91241),I=p(22347);j.exports=D;function D(P){return E(P)||I(P)}},22347:function(j){"use strict";j.exports=S;function S(p){var E=typeof p=="string"?p.charCodeAt(0):p;return E>=48&&E<=57}},65207:function(j){"use strict";j.exports=S;function S(p){var E=typeof p=="string"?p.charCodeAt(0):p;return E>=97&&E<=102||E>=65&&E<=70||E>=48&&E<=57}},24334:function(j,S,p){var E,I;(function(D,P){j.exports=P(D)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof p.g!="undefined"?p.g:this,function(D){"use strict";D=D||{};var P=D.Base64,V="2.6.4",C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=function(kt){for(var Gt={},ue=0,le=kt.length;ue<le;ue++)Gt[kt.charAt(ue)]=ue;return Gt}(C),lt=String.fromCharCode,J=function(kt){if(kt.length<2){var Gt=kt.charCodeAt(0);return Gt<128?kt:Gt<2048?lt(192|Gt>>>6)+lt(128|Gt&63):lt(224|Gt>>>12&15)+lt(128|Gt>>>6&63)+lt(128|Gt&63)}else{var Gt=65536+(kt.charCodeAt(0)-55296)*1024+(kt.charCodeAt(1)-56320);return lt(240|Gt>>>18&7)+lt(128|Gt>>>12&63)+lt(128|Gt>>>6&63)+lt(128|Gt&63)}},Y=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Mt=function(kt){return kt.replace(Y,J)},ct=function(kt){var Gt=[0,2,1][kt.length%3],ue=kt.charCodeAt(0)<<16|(kt.length>1?kt.charCodeAt(1):0)<<8|(kt.length>2?kt.charCodeAt(2):0),le=[C.charAt(ue>>>18),C.charAt(ue>>>12&63),Gt>=2?"=":C.charAt(ue>>>6&63),Gt>=1?"=":C.charAt(ue&63)];return le.join("")},$t=D.btoa&&typeof D.btoa=="function"?function(kt){return D.btoa(kt)}:function(kt){if(kt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return kt.replace(/[\s\S]{1,3}/g,ct)},Ft=function(kt){return $t(Mt(String(kt)))},_t=function(kt){return kt.replace(/[+\/]/g,function(Gt){return Gt=="+"?"-":"_"}).replace(/=/g,"")},Ct=function(kt,Gt){return Gt?_t(Ft(kt)):Ft(kt)},xt=function(kt){return Ct(kt,!0)},St;D.Uint8Array&&(St=function(kt,Gt){for(var ue="",le=0,re=kt.length;le<re;le+=3){var pe=kt[le],Dt=kt[le+1],rt=kt[le+2],Q=pe<<16|Dt<<8|rt;ue+=C.charAt(Q>>>18)+C.charAt(Q>>>12&63)+(typeof Dt!="undefined"?C.charAt(Q>>>6&63):"=")+(typeof rt!="undefined"?C.charAt(Q&63):"=")}return Gt?_t(ue):ue});var ft=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,vt=function(kt){switch(kt.length){case 4:var Gt=(7&kt.charCodeAt(0))<<18|(63&kt.charCodeAt(1))<<12|(63&kt.charCodeAt(2))<<6|63&kt.charCodeAt(3),ue=Gt-65536;return lt((ue>>>10)+55296)+lt((ue&1023)+56320);case 3:return lt((15&kt.charCodeAt(0))<<12|(63&kt.charCodeAt(1))<<6|63&kt.charCodeAt(2));default:return lt((31&kt.charCodeAt(0))<<6|63&kt.charCodeAt(1))}},ot=function(kt){return kt.replace(ft,vt)},st=function(kt){var Gt=kt.length,ue=Gt%4,le=(Gt>0?Z[kt.charAt(0)]<<18:0)|(Gt>1?Z[kt.charAt(1)]<<12:0)|(Gt>2?Z[kt.charAt(2)]<<6:0)|(Gt>3?Z[kt.charAt(3)]:0),re=[lt(le>>>16),lt(le>>>8&255),lt(le&255)];return re.length-=[0,0,2,1][ue],re.join("")},q=D.atob&&typeof D.atob=="function"?function(kt){return D.atob(kt)}:function(kt){return kt.replace(/\S{1,4}/g,st)},wt=function(kt){return q(String(kt).replace(/[^A-Za-z0-9\+\/]/g,""))},Bt=function(kt){return ot(q(kt))},pt=function(kt){return String(kt).replace(/[-_]/g,function(Gt){return Gt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ht=function(kt){return Bt(pt(kt))},At;D.Uint8Array&&(At=function(kt){return Uint8Array.from(wt(pt(kt)),function(Gt){return Gt.charCodeAt(0)})});var gt=function(){var kt=D.Base64;return D.Base64=P,kt};if(D.Base64={VERSION:V,atob:wt,btoa:$t,fromBase64:Ht,toBase64:Ct,utob:Mt,encode:Ct,encodeURI:xt,btou:ot,decode:Ht,noConflict:gt,fromUint8Array:St,toUint8Array:At},typeof Object.defineProperty=="function"){var Pt=function(kt){return{value:kt,enumerable:!1,writable:!0,configurable:!0}};D.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Pt(function(){return Ht(this)})),Object.defineProperty(String.prototype,"toBase64",Pt(function(kt){return Ct(this,kt)})),Object.defineProperty(String.prototype,"toBase64URI",Pt(function(){return Ct(this,!0)}))}}return D.Meteor&&(Base64=D.Base64),j.exports?j.exports.Base64=D.Base64:(E=[],I=function(){return D.Base64}.apply(S,E),I!==void 0&&(j.exports=I)),{Base64:D.Base64}})},2859:function(j,S,p){"use strict";p.d(S,{hP:function(){return Dn}});var E=function(K,O){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,H){k.__proto__=H}||function(k,H){for(var tt in H)Object.prototype.hasOwnProperty.call(H,tt)&&(k[tt]=H[tt])})(K,O)};function I(K,O){function k(){this.constructor=K}E(K,O),K.prototype=O===null?Object.create(O):(k.prototype=O.prototype,new k)}function D(K,O,k,H){return new(k||(k=Promise))(function(tt,_){function at(Ke){try{Ve(H.next(Ke))}catch(qt){_(qt)}}function se(Ke){try{Ve(H.throw(Ke))}catch(qt){_(qt)}}function Ve(Ke){var qt;Ke.done?tt(Ke.value):(qt=Ke.value,qt instanceof k?qt:new k(function(he){he(qt)})).then(at,se)}Ve((H=H.apply(K,O||[])).next())})}function P(K,O){var k,H,tt,_,at={label:0,sent:function(){if(1&tt[0])throw tt[1];return tt[1]},trys:[],ops:[]};return _={next:se(0),throw:se(1),return:se(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function se(Ve){return function(Ke){return function(qt){if(k)throw new TypeError("Generator is already executing.");for(;at;)try{if(k=1,H&&(tt=2&qt[0]?H.return:qt[0]?H.throw||((tt=H.return)&&tt.call(H),0):H.next)&&!(tt=tt.call(H,qt[1])).done)return tt;switch(H=0,tt&&(qt=[2&qt[0],tt.value]),qt[0]){case 0:case 1:tt=qt;break;case 4:return at.label++,{value:qt[1],done:!1};case 5:at.label++,H=qt[1],qt=[0];continue;case 7:qt=at.ops.pop(),at.trys.pop();continue;default:if(tt=at.trys,!((tt=tt.length>0&&tt[tt.length-1])||qt[0]!==6&&qt[0]!==2)){at=0;continue}if(qt[0]===3&&(!tt||qt[1]>tt[0]&&qt[1]<tt[3])){at.label=qt[1];break}if(qt[0]===6&&at.label<tt[1]){at.label=tt[1],tt=qt;break}if(tt&&at.label<tt[2]){at.label=tt[2],at.ops.push(qt);break}tt[2]&&at.ops.pop(),at.trys.pop();continue}qt=O.call(K,at)}catch(he){qt=[6,he],H=0}finally{k=tt=0}if(5&qt[0])throw qt[1];return{value:qt[0]?qt[1]:void 0,done:!0}}([Ve,Ke])}}}function V(){for(var K=0,O=0,k=arguments.length;O<k;O++)K+=arguments[O].length;var H=Array(K),tt=0;for(O=0;O<k;O++)for(var _=arguments[O],at=0,se=_.length;at<se;at++,tt++)H[tt]=_[at];return H}var C=function(){function K(){}return K.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},K.setAttributes=function(O,k){for(var H=0,tt=k;H<tt.length;H++){var _=tt[H],at=_[0],se=_[1];O.setAttribute(at,se)}},K.createRect=function(O,k,H){var tt=document.createElementNS("http://www.w3.org/2000/svg","rect");return tt.setAttribute("width",O.toString()),tt.setAttribute("height",k.toString()),H&&K.setAttributes(tt,H),tt},K.createLine=function(O,k,H,tt,_){var at=document.createElementNS("http://www.w3.org/2000/svg","line");return at.setAttribute("x1",O.toString()),at.setAttribute("y1",k.toString()),at.setAttribute("x2",H.toString()),at.setAttribute("y2",tt.toString()),_&&K.setAttributes(at,_),at},K.createPolygon=function(O,k){var H=document.createElementNS("http://www.w3.org/2000/svg","polygon");return H.setAttribute("points",O),k&&K.setAttributes(H,k),H},K.createCircle=function(O,k){var H=document.createElementNS("http://www.w3.org/2000/svg","circle");return H.setAttribute("cx",(O/2).toString()),H.setAttribute("cy",(O/2).toString()),H.setAttribute("r",O.toString()),k&&K.setAttributes(H,k),H},K.createEllipse=function(O,k,H){var tt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return tt.setAttribute("cx",(O/2).toString()),tt.setAttribute("cy",(k/2).toString()),tt.setAttribute("rx",(O/2).toString()),tt.setAttribute("ry",(k/2).toString()),H&&K.setAttributes(tt,H),tt},K.createGroup=function(O){var k=document.createElementNS("http://www.w3.org/2000/svg","g");return O&&K.setAttributes(k,O),k},K.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},K.createMarker=function(O,k,H,tt,_,at,se){var Ve=document.createElementNS("http://www.w3.org/2000/svg","marker");return K.setAttributes(Ve,[["id",O],["orient",k],["markerWidth",H.toString()],["markerHeight",tt.toString()],["refX",_.toString()],["refY",at.toString()]]),Ve.appendChild(se),Ve},K.createText=function(O){var k=document.createElementNS("http://www.w3.org/2000/svg","text");return k.setAttribute("x","0"),k.setAttribute("y","0"),O&&K.setAttributes(k,O),k},K.createTSpan=function(O,k){var H=document.createElementNS("http://www.w3.org/2000/svg","tspan");return H.textContent=O,k&&K.setAttributes(H,k),H},K.createImage=function(O){var k=document.createElementNS("http://www.w3.org/2000/svg","image");return O&&K.setAttributes(k,O),k},K.createPoint=function(O,k){var H=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return H.x=O,H.y=k,H},K.createPath=function(O,k){var H=document.createElementNS("http://www.w3.org/2000/svg","path");return H.setAttribute("d",O),k&&K.setAttributes(H,k),H},K}(),Z=function(){function K(){}return K.addKey=function(O){K.key=O},Object.defineProperty(K,"isLicensed",{get:function(){return!!K.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(K.key)},enumerable:!1,configurable:!0}),K}(),lt=function(){function K(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return K.prototype.rasterize=function(O,k,H){var tt=this;return new Promise(function(_){var at=H!==void 0?H:document.createElement("canvas");O===null&&(tt.markersOnly=!0,tt.naturalSize=!1);var se=document.createElementNS("http://www.w3.org/2000/svg","svg");se.setAttribute("xmlns","http://www.w3.org/2000/svg"),se.setAttribute("width",k.width.baseVal.valueAsString),se.setAttribute("height",k.height.baseVal.valueAsString),se.setAttribute("viewBox","0 0 "+k.viewBox.baseVal.width.toString()+" "+k.viewBox.baseVal.height.toString()),se.innerHTML=k.innerHTML,tt.naturalSize===!0?(se.width.baseVal.value=O.naturalWidth,se.height.baseVal.value=O.naturalHeight):tt.width!==void 0&&tt.height!==void 0&&(se.width.baseVal.value=tt.width,se.height.baseVal.value=tt.height),at.width=se.width.baseVal.value,at.height=se.height.baseVal.value;var Ve=se.outerHTML,Ke=at.getContext("2d");tt.markersOnly!==!0&&Ke.drawImage(O,0,0,at.width,at.height);var qt=window.URL,he=new Image(at.width,at.height);he.setAttribute("crossOrigin","anonymous");var de=new Blob([Ve],{type:"image/svg+xml"}),Fe=qt.createObjectURL(de);he.onload=function(){Ke.drawImage(he,0,0),qt.revokeObjectURL(Fe);var $e=at.toDataURL(tt.imageType,tt.imageQuality);_($e)},he.src=Fe})},K}(),J=function(){},Y=function(){function K(O){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+O+"_"}return Object.defineProperty(K.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(K.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(K.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),K.prototype.addClass=function(O){return this.styleSheet===void 0&&this.addStyleSheet(),O.name=""+this.classNamePrefix+O.localName,this.classes.push(O),this.styleSheet.sheet.insertRule("."+O.name+" {"+O.style+"}",this.styleSheet.sheet.cssRules.length),O},K.prototype.addRule=function(O){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(O),this.styleSheet.sheet.insertRule(O.selector+" {"+O.style+"}",this.styleSheet.sheet.cssRules.length)},K.prototype.addStyleSheet=function(){var O;this.styleSheet=document.createElement("style"),((O=this.styleSheetRoot)!==null&&O!==void 0?O:document.head).appendChild(this.styleSheet),this.addRule(new Mt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Mt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Mt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ct("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ct("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},K.prototype.removeStyleSheet=function(){var O;this.styleSheet&&(((O=this.styleSheetRoot)!==null&&O!==void 0?O:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},K}(),Mt=function(K,O){this.selector=K,this.style=O},ct=function(K,O){this.localName=K,this.style=O},$t=function(){function K(O,k,H,tt,_){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=O,this.displayMode=k,this.markerItems=H,this.uiStyleSettings=tt,this.styles=_,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return K.prototype.show=function(O){var k=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=O,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var H=document.createElement("div");H.className=this.toolbarBlockStyleClass.name,H.style.whiteSpace="nowrap",this.uiContainer.appendChild(H),this.addActionButton(H,'<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(H,'<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(H,'<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(H,'<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(H,'<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(H,'<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(H,'<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(H,'<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(_){var at=document.createElement("div");at.className=""+k.toolbarButtonStyleClass.name,at.setAttribute("data-type-name",_.typeName),at.innerHTML=_.icon,at.addEventListener("click",function(){k.markerToolbarButtonClicked(at,_)}),k.buttons.push(at),k.markerButtons.push(at)}),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 tt=document.createElement("div");tt.className=this.toolbarBlockStyleClass.name,tt.style.whiteSpace="nowrap",tt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(tt),this.addActionButton(tt,'<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(tt,'<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()},K.prototype.addButtonClickListener=function(O){this.buttonClickListeners.push(O)},K.prototype.removeButtonClickListener=function(O){this.buttonClickListeners.indexOf(O)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(O),1)},K.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},K.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var O=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var k=0;k<this.markerButtons.length;k++)k<O||k===O&&this.markerButtons.length-1===O?this.markerButtonBlock.appendChild(this.markerButtons[k]):(k===O&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[k]))}},K.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")},K.prototype.resetButtonStyles=function(){var O=this;this.buttons.forEach(function(k){k.className=k.className.replace(O.uiStyleSettings.toolbarButtonStyleColorsClassName?O.uiStyleSettings.toolbarButtonStyleColorsClassName:O.toolbarButtonStyleColorsClass.name,"").trim(),k.className=k.className.replace(O.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?O.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:O.toolbarActiveButtonStyleColorsClass.name,"").trim(),k.className+=" "+(O.uiStyleSettings.toolbarButtonStyleColorsClassName?O.uiStyleSettings.toolbarButtonStyleColorsClassName:O.toolbarButtonStyleColorsClass.name)})},K.prototype.addActionButton=function(O,k,H){var tt=this,_=document.createElement("div");switch(_.className=""+this.toolbarButtonStyleClass.name,_.innerHTML=k,_.setAttribute("data-action",H),_.addEventListener("click",function(){tt.actionToolbarButtonClicked(_,H)}),H){case"select":_.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":_.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":_.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":_.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":_.style.fill=this.uiStyleSettings.closeButtonColor}O.appendChild(_),this.buttons.push(_)},K.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ct("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 ct("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ct("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ct("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 ct("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var O=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ct("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*O)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*O)+`px;
|
|
|
padding: `+O+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ct("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ct("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Mt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Mt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},K.prototype.markerToolbarButtonClicked=function(O,k){this.setActiveButton(O),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(H){return H("marker",k)}),this.markerButtonOverflowBlock.style.display="none"},K.prototype.actionToolbarButtonClicked=function(O,k){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(H){return H("action",k)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},K.prototype.setActiveButton=function(O){this.resetButtonStyles(),O.className=O.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),O.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},K.prototype.setActiveMarkerButton=function(O){var k=this.markerButtons.find(function(H){return H.getAttribute("data-type-name")===O});k&&this.setActiveButton(k)},K.prototype.setCurrentMarker=function(O){var k=this;this.currentMarker=O,this.buttons.filter(function(H){return/delete|notes/.test(H.getAttribute("data-action"))}).forEach(function(H){k.currentMarker===void 0?(H.style.fillOpacity="0.4",H.style.pointerEvents="none"):(H.style.fillOpacity="1",H.style.pointerEvents="all")})},K}(),Ft=function(){function K(O,k,H,tt){this.panels=[],this.panelButtons=[],this.markerjsContainer=O,this.displayMode=k,this.uiStyleSettings=H,this.styles=tt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return K.prototype.addStyles=function(){var O;this.toolboxStyleClass=this.styles.addClass(new ct("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 ct("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var k=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ct("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ct("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ct("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 ct("toolbox-panel-row_colors",`
|
|
|
background-color: `+((O=this.uiStyleSettings.toolboxBackgroundColor)!==null&&O!==void 0?O:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ct("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
|
|
|
padding: `+k+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ct("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ct("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Mt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Mt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},K.prototype.show=function(O){var k;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=O,this.uiContainer.className=this.toolboxStyleClass.name+" "+((k=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},K.prototype.setPanelButtons=function(O){var k,H,tt=this;this.panels=O,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((k=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((H=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&H!==void 0?H:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(_){var at;_.uiStyleSettings=tt.uiStyleSettings;var se=document.createElement("div");se.className=tt.toolboxButtonStyleClass.name+" "+((at=tt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&at!==void 0?at:tt.toolboxButtonStyleColorsClass.name),se.innerHTML=_.icon,se.title=_.title,se.addEventListener("click",function(){tt.panelButtonClick(_)}),tt.panelButtons.push(se),tt.buttonRow.appendChild(se)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},K.prototype.panelButtonClick=function(O){var k=this,H=-1;if(O!==this.activePanel){H=this.panels.indexOf(O),this.panelRow.innerHTML="";var tt=O.getUi();tt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(tt),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=O}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){k.displayMode==="inline"?k.panelRow.style.display="none":k.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(_,at){var se,Ve;_.className=k.toolboxButtonStyleClass.name+" "+(at===H?""+((se=k.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&se!==void 0?se:k.toolboxActiveButtonStyleColorsClass.name):""+((Ve=k.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve:k.toolboxButtonStyleColorsClass.name))})},K}(),_t=function(K,O){this.title=K,this.icon=O},Ct=function(K){function O(k,H,tt,_){var at=K.call(this,k,_||'<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 at.colors=[],at.addTransparent=!1,at.colorBoxes=[],at.colors=H,at.currentColor=tt,at.setCurrentColor=at.setCurrentColor.bind(at),at.getColorBox=at.getColorBox.bind(at),at}return I(O,K),O.prototype.getUi=function(){var k=this,H=document.createElement("div");return H.style.overflow="hidden",H.style.whiteSpace="nowrap",this.colors.forEach(function(tt){var _=k.getColorBox(tt);H.appendChild(_),k.colorBoxes.push(_)}),H},O.prototype.getColorBox=function(k){var H=this,tt=this.uiStyleSettings.toolbarHeight/4,_=this.uiStyleSettings.toolbarHeight-tt,at=document.createElement("div");at.style.display="inline-block",at.style.boxSizing="content-box",at.style.width=_-2+"px",at.style.height=_-2+"px",at.style.padding="1px",at.style.marginRight="2px",at.style.marginBottom="2px",at.style.borderWidth="2px",at.style.borderStyle="solid",at.style.borderRadius=(_+2)/2+"px",at.style.borderColor=k===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",at.addEventListener("click",function(){H.setCurrentColor(k,at)});var se=document.createElement("div");return se.style.display="inline-block",se.style.width=_-2+"px",se.style.height=_-2+"px",se.style.backgroundColor=k,se.style.borderRadius=_/2+"px",k==="transparent"&&(se.style.fill=this.uiStyleSettings.toolboxAccentColor,se.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>`),at.appendChild(se),at},O.prototype.setCurrentColor=function(k,H){var tt=this;this.currentColor=k,this.colorBoxes.forEach(function(_){_.style.borderColor=_===H?tt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},O}(_t),xt=function(){function K(O,k,H){this._state="new",this._isSelected=!1,this._container=O,this._overlayContainer=k,this.globalSettings=H,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(K.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),K.prototype.ownsTarget=function(O){return!1},Object.defineProperty(K.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),K.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},K.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},K.prototype.pointerDown=function(O,k){},K.prototype.dblClick=function(O,k){},K.prototype.manipulate=function(O){},K.prototype.pointerUp=function(O){this.stateChanged()},K.prototype.dispose=function(){},K.prototype.addMarkerVisualToContainer=function(O){this.container.childNodes.length>0?this.container.insertBefore(O,this.container.childNodes[0]):this.container.appendChild(O)},K.prototype.getState=function(){return{typeName:K.typeName,state:this.state,notes:this.notes}},K.prototype.restoreState=function(O){this._state=O.state,this.notes=O.notes},K.prototype.scale=function(O,k){},K.prototype.colorChanged=function(O){this.onColorChanged&&this.onColorChanged(O),this.stateChanged()},K.prototype.fillColorChanged=function(O){this.onFillColorChanged&&this.onFillColorChanged(O),this.stateChanged()},K.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var O=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),O.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(O)&&this.onStateChanged(this)}},K.typeName="MarkerBase",K}(),St=function(){function K(){this.findGripByVisual=this.findGripByVisual.bind(this)}return K.prototype.findGripByVisual=function(O){return this.topLeft.ownsTarget(O)?this.topLeft:this.topCenter.ownsTarget(O)?this.topCenter:this.topRight.ownsTarget(O)?this.topRight:this.centerLeft.ownsTarget(O)?this.centerLeft:this.centerRight.ownsTarget(O)?this.centerRight:this.bottomLeft.ownsTarget(O)?this.bottomLeft:this.bottomCenter.ownsTarget(O)?this.bottomCenter:this.bottomRight.ownsTarget(O)?this.bottomRight:void 0},K}(),ft=function(){function K(){this.GRIP_SIZE=10,this.visual=C.createGroup(),this.visual.appendChild(C.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(C.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return K.prototype.ownsTarget=function(O){return O===this.visual||O===this.visual.childNodes[0]||O===this.visual.childNodes[1]},K}(),vt=function(){function K(){}return K.toITransformMatrix=function(O){return{a:O.a,b:O.b,c:O.c,d:O.d,e:O.e,f:O.f}},K.toSVGMatrix=function(O,k){return O.a=k.a,O.b=k.b,O.c=k.c,O.d=k.d,O.e=k.e,O.f=k.f,O},K}(),ot=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.left=0,_.top=0,_.width=0,_.height=0,_.defaultSize={x:50,y:20},_.offsetX=0,_.offsetY=0,_.rotationAngle=0,_.CB_DISTANCE=10,_._suppressMarkerCreateEvent=!1,_.container.transform.baseVal.appendItem(C.createTransform()),_.setupControlBox(),_}return I(O,K),Object.defineProperty(O.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"visual",{get:function(){return this._visual},set:function(k){this._visual=k;var H=C.createTransform();this._visual.transform.baseVal.appendItem(H)},enumerable:!1,configurable:!0}),O.prototype.ownsTarget=function(k){return!!K.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.state==="new"&&(this.left=k.x,this.top=k.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var tt=this.unrotatePoint(k);if(this.manipulationStartX=tt.x,this.manipulationStartY=tt.y,this.offsetX=tt.x-this.left,this.offsetY=tt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(H),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(H)){this.activeGrip=this.rotatorGrip;var _=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=_.x-this.width/2,this.top=_.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var at=this.container.transform.baseVal.getItem(0);at.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(at,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},O.prototype.pointerUp=function(k){var H=this.state;K.prototype.pointerUp.call(this,k),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(k),this._state="select",H==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},O.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},O.prototype.manipulate=function(k){var H=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+(H.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(H.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(H):this.state==="rotate"&&this.rotate(k)},O.prototype.resize=function(k){var H=this.manipulationStartLeft,tt=this.manipulationStartWidth,_=this.manipulationStartTop,at=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:H=this.manipulationStartLeft+k.x-this.manipulationStartX,tt=this.manipulationStartWidth+this.manipulationStartLeft-H;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:tt=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:_=this.manipulationStartTop+k.y-this.manipulationStartY,at=this.manipulationStartHeight+this.manipulationStartTop-_;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:at=this.manipulationStartHeight+k.y-this.manipulationStartY}tt>=0?(this.left=H,this.width=tt):(this.left=H+tt,this.width=-tt),at>=0?(this.top=_,this.height=at):(this.top=_+at,this.height=-at),this.setSize()},O.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},O.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var H=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*H,this.applyRotation()}},O.prototype.applyRotation=function(){var k=this.container.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(k,0)},O.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var H=this.container.getCTM(),tt=C.createPoint(k.x,k.y);return{x:(tt=tt.matrixTransform(H)).x,y:tt.y}},O.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var H=this.container.getCTM();H=H.inverse();var tt=C.createPoint(k.x,k.y);return{x:(tt=tt.matrixTransform(H)).x,y:tt.y}},O.prototype.select=function(){K.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},O.prototype.deselect=function(){K.prototype.deselect.call(this),this.controlBox.style.display="none"},O.prototype.setupControlBox=function(){this.controlBox=C.createGroup();var k=C.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=C.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=C.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 St,this.addControlGrips(),this.controlBox.style.display="none"},O.prototype.adjustControlBox=function(){var k=this.controlBox.transform.baseVal.getItem(0);k.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(k,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()},O.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()},O.prototype.createGrip=function(){var k=new ft;return k.visual.transform.baseVal.appendItem(C.createTransform()),this.controlBox.appendChild(k.visual),k},O.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,H=-k/2,tt=H,_=(this.width+this.CB_DISTANCE)/2-k/2,at=(this.height+this.CB_DISTANCE)/2-k/2,se=this.height+this.CB_DISTANCE-k/2,Ve=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,H,tt),this.positionGrip(this.controlGrips.topCenter.visual,_,tt),this.positionGrip(this.controlGrips.topRight.visual,Ve,tt),this.positionGrip(this.controlGrips.centerLeft.visual,H,at),this.positionGrip(this.controlGrips.centerRight.visual,Ve,at),this.positionGrip(this.controlGrips.bottomLeft.visual,H,se),this.positionGrip(this.controlGrips.bottomCenter.visual,_,se),this.positionGrip(this.controlGrips.bottomRight.visual,Ve,se),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,_,tt-3*this.CB_DISTANCE)},O.prototype.positionGrip=function(k,H,tt){var _=k.transform.baseVal.getItem(0);_.setTranslate(H,tt),k.transform.baseVal.replaceItem(_,0)},O.prototype.hideControlBox=function(){this.controlBox.style.display="none"},O.prototype.showControlBox=function(){this.controlBox.style.display=""},O.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:vt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:vt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},K.prototype.getState.call(this))},O.prototype.restoreState=function(k){K.prototype.restoreState.call(this,k);var H=k;this.left=H.left,this.top=H.top,this.width=H.width,this.height=H.height,this.rotationAngle=H.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,H.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,H.containerTransformMatrix))},O.prototype.scale=function(k,H){K.prototype.scale.call(this,k,H);var tt=this.rotatePoint({x:this.left,y:this.top}),_=this.unrotatePoint({x:tt.x*k,y:tt.y*H});this.left=_.x,this.top=_.y,this.width=this.width*k,this.height=this.height*H,this.adjustControlBox()},O}(xt),st=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.fillColor="transparent",_.strokeColor="transparent",_.strokeWidth=0,_.strokeDasharray="",_.opacity=1,_.setStrokeColor=_.setStrokeColor.bind(_),_.setFillColor=_.setFillColor.bind(_),_.setStrokeWidth=_.setStrokeWidth.bind(_),_.setStrokeDasharray=_.setStrokeDasharray.bind(_),_.createVisual=_.createVisual.bind(_),_}return I(O,K),O.prototype.ownsTarget=function(k){return!(!K.prototype.ownsTarget.call(this,k)&&k!==this.visual)},O.prototype.createVisual=function(){this.visual=C.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)},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},O.prototype.manipulate=function(k){K.prototype.manipulate.call(this,k)},O.prototype.resize=function(k){K.prototype.resize.call(this,k),this.setSize()},O.prototype.setSize=function(){K.prototype.setSize.call(this),C.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},O.prototype.pointerUp=function(k){K.prototype.pointerUp.call(this,k),this.setSize()},O.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&C.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},O.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&C.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},O.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&C.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},O.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&C.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},O.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},K.prototype.getState.call(this))},O.prototype.restoreState=function(k){var H=k;this.fillColor=H.fillColor,this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.opacity=H.opacity,this.createVisual(),K.prototype.restoreState.call(this,k),this.setSize()},O.prototype.scale=function(k,H){K.prototype.scale.call(this,k,H),this.setSize()},O.title="Rectangle marker",O}(ot),q=function(K){function O(k,H,tt,_){var at=K.call(this,k,_||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return at.widths=[],at.widthBoxes=[],at.widths=H,at.currentWidth=tt,at.setCurrentWidth=at.setCurrentWidth.bind(at),at}return I(O,K),O.prototype.getUi=function(){var k=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",this.widths.forEach(function(tt){var _=document.createElement("div");_.style.display="flex",_.style.flexGrow="2",_.style.alignItems="center",_.style.justifyContent="space-between",_.style.padding="5px",_.style.borderWidth="2px",_.style.borderStyle="solid",_.style.borderColor=tt===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",_.addEventListener("click",function(){k.setCurrentWidth(tt,_)}),H.appendChild(_);var at=document.createElement("div");at.innerText=tt.toString(),at.style.marginRight="5px",_.appendChild(at);var se=document.createElement("div");se.style.minHeight="20px",se.style.flexGrow="2",se.style.display="flex",se.style.alignItems="center";var Ve=document.createElement("hr");Ve.style.minWidth="20px",Ve.style.border="0px",Ve.style.borderTop=tt+"px solid "+k.uiStyleSettings.toolboxColor,Ve.style.flexGrow="2",se.appendChild(Ve),_.appendChild(se),k.widthBoxes.push(_)}),H},O.prototype.setCurrentWidth=function(k,H){var tt=this;this.currentWidth=k,this.widthBoxes.forEach(function(_){_.style.borderColor=_===H?tt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},O}(_t),wt=function(K){function O(k,H,tt,_){var at=K.call(this,k,_||'<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 at.styles=[],at.styleBoxes=[],at.styles=H,at.currentStyle=tt,at.setCurrentStyle=at.setCurrentStyle.bind(at),at}return I(O,K),O.prototype.getUi=function(){var k=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",this.styles.forEach(function(tt){var _=document.createElement("div");_.style.display="flex",_.style.alignItems="center",_.style.justifyContent="space-between",_.style.padding="5px",_.style.borderWidth="2px",_.style.borderStyle="solid",_.style.overflow="hidden",_.style.maxWidth=100/k.styles.length-5+"%",_.style.borderColor=tt===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",_.addEventListener("click",function(){k.setCurrentStyle(tt,_)}),H.appendChild(_);var at=document.createElement("div");at.style.minHeight="20px",at.style.flexGrow="2",at.style.overflow="hidden";var se=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+k.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(tt!==""?'stroke-dasharray="'+tt+'"':"")+` />
|
|
|
</svg>`;at.innerHTML=se,_.appendChild(at),k.styleBoxes.push(_)}),H},O.prototype.setCurrentStyle=function(k,H){var tt=this;this.currentStyle=k,this.styleBoxes.forEach(function(_){_.style.borderColor=_===H?tt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},O}(_t),Bt=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.strokeColor=tt.defaultColor,_.strokeWidth=tt.defaultStrokeWidth,_.strokeDasharray=tt.defaultStrokeDasharray,_.strokePanel=new Ct("Line color",tt.defaultColorSet,tt.defaultColor),_.strokePanel.onColorChanged=_.setStrokeColor,_.strokeWidthPanel=new q("Line width",tt.defaultStrokeWidths,tt.defaultStrokeWidth),_.strokeWidthPanel.onWidthChanged=_.setStrokeWidth,_.strokeStylePanel=new wt("Line style",tt.defaultStrokeDasharrays,tt.defaultStrokeDasharray),_.strokeStylePanel.onStyleChanged=_.setStrokeDasharray,_}return I(O,K),Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=K.prototype.getState.call(this);return k.typeName=O.typeName,k},O.typeName="FrameMarker",O.title="Frame marker",O.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',O}(st),pt=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"},Ht=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.x1=0,_.y1=0,_.x2=0,_.y2=0,_.defaultLength=50,_.manipulationStartX=0,_.manipulationStartY=0,_.manipulationStartX1=0,_.manipulationStartY1=0,_.manipulationStartX2=0,_.manipulationStartY2=0,_.setupControlBox(),_}return I(O,K),O.prototype.ownsTarget=function(k){return!!K.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.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(H)?this.activeGrip=this.grip1:this.grip2.ownsTarget(H)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},O.prototype.pointerUp=function(k){var H=this.state;K.prototype.pointerUp.call(this,k),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(k),this._state="select",H==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},O.prototype.adjustVisual=function(){},O.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},O.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},O.prototype.select=function(){K.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},O.prototype.deselect=function(){K.prototype.deselect.call(this),this.controlBox.style.display="none"},O.prototype.setupControlBox=function(){this.controlBox=C.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},O.prototype.adjustControlBox=function(){this.positionGrips()},O.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},O.prototype.createGrip=function(){var k=new ft;return k.visual.transform.baseVal.appendItem(C.createTransform()),this.controlBox.appendChild(k.visual),k},O.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},O.prototype.positionGrip=function(k,H,tt){var _=k.transform.baseVal.getItem(0);_.setTranslate(H,tt),k.transform.baseVal.replaceItem(_,0)},O.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},K.prototype.getState.call(this))},O.prototype.restoreState=function(k){K.prototype.restoreState.call(this,k);var H=k;this.x1=H.x1,this.y1=H.y1,this.x2=H.x2,this.y2=H.y2},O.prototype.scale=function(k,H){K.prototype.scale.call(this,k,H),this.x1=this.x1*k,this.y1=this.y1*H,this.x2=this.x2*k,this.y2=this.y2*H,this.adjustVisual(),this.adjustControlBox()},O}(xt),At=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.strokeColor="transparent",_.strokeWidth=0,_.strokeDasharray="",_.setStrokeColor=_.setStrokeColor.bind(_),_.setStrokeWidth=_.setStrokeWidth.bind(_),_.setStrokeDasharray=_.setStrokeDasharray.bind(_),_.strokeColor=tt.defaultColor,_.strokeWidth=tt.defaultStrokeWidth,_.strokeDasharray=tt.defaultStrokeDasharray,_.strokePanel=new Ct("Line color",tt.defaultColorSet,tt.defaultColor),_.strokePanel.onColorChanged=_.setStrokeColor,_.strokeWidthPanel=new q("Line width",tt.defaultStrokeWidths,tt.defaultStrokeWidth),_.strokeWidthPanel.onWidthChanged=_.setStrokeWidth,_.strokeStylePanel=new wt("Line style",tt.defaultStrokeDasharrays,tt.defaultStrokeDasharray),_.strokeStylePanel.onStyleChanged=_.setStrokeDasharray,_}return I(O,K),O.prototype.ownsTarget=function(k){return!(!K.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},O.prototype.createVisual=function(){this.visual=C.createGroup(),this.selectorLine=C.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=C.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)},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},O.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()),C.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),C.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),C.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},O.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},O.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},O.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},K.prototype.getState.call(this));return k.typeName=O.typeName,k},O.prototype.restoreState=function(k){K.prototype.restoreState.call(this,k);var H=k;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.createVisual(),this.adjustVisual()},O.typeName="LineMarker",O.title="Line marker",O.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',O}(Ht),gt=function(K){function O(k,H,tt,_){var at=K.call(this,k,_||'<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 at.fonts=[],at.fontBoxes=[],at.fonts=H,at.currentFont=tt,at.setCurrentFont=at.setCurrentFont.bind(at),at}return I(O,K),O.prototype.getUi=function(){var k=this,H=document.createElement("div");return H.style.overflow="hidden",H.style.flexGrow="2",this.fonts.forEach(function(tt){var _=document.createElement("div");_.style.display="inline-block",_.style.alignItems="center",_.style.justifyContent="space-between",_.style.padding="5px",_.style.borderWidth="2px",_.style.borderStyle="solid",_.style.overflow="hidden",_.style.maxWidth=100/k.fonts.length-5+"%",_.style.borderColor=tt===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",_.addEventListener("click",function(){k.setCurrentFont(tt,_)}),H.appendChild(_);var at=document.createElement("div");at.style.display="flex",at.style.minHeight="20px",at.style.flexGrow="2",at.style.fontFamily=tt,at.style.overflow="hidden";var se=document.createElement("div");se.style.whiteSpace="nowrap",se.style.overflow="hidden",se.style.textOverflow="ellipsis",se.innerHTML="The quick brown fox jumps over the lazy dog",at.appendChild(se),_.appendChild(at),k.fontBoxes.push(_)}),H},O.prototype.setCurrentFont=function(k,H){var tt=this;this.currentFont=k,this.fontBoxes.forEach(function(_){_.style.borderColor=_===H?tt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},O}(_t),Pt=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.color="transparent",_.padding=5,_.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",_.text=_.DEFAULT_TEXT,_.isMoved=!1,_.color=tt.defaultColor,_.fontFamily=tt.defaultFontFamily,_.defaultSize={x:100,y:30},_.setColor=_.setColor.bind(_),_.setFont=_.setFont.bind(_),_.renderText=_.renderText.bind(_),_.sizeText=_.sizeText.bind(_),_.textEditDivClicked=_.textEditDivClicked.bind(_),_.showTextEditor=_.showTextEditor.bind(_),_.setSize=_.setSize.bind(_),_.positionTextEditor=_.positionTextEditor.bind(_),_.colorPanel=new Ct("Color",tt.defaultColorSet,tt.defaultColor),_.colorPanel.onColorChanged=_.setColor,_.fontFamilyPanel=new gt("Font",tt.defaultFontFamilies,tt.defaultFontFamily),_.fontFamilyPanel.onFontChanged=_.setFont,_}return I(O,K),O.prototype.ownsTarget=function(k){if(K.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var H=!1;return this.textElement.childNodes.forEach(function(tt){tt===k&&(H=!0)}),H},O.prototype.createVisual=function(){this.visual=C.createGroup(),this.bgRectangle=C.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=C.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(C.createTransform()),this.textElement.transform.baseVal.appendItem(C.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},O.prototype.renderText=function(){var k=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(H){k.textElement.appendChild(C.createTSpan(H.trim()===""?" ":H.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},O.prototype.getTextScale=function(){var k=this.textElement.getBBox(),H=1;if(k.width>0&&k.height>0){var tt=(1*this.width-this.width*this.padding*2/100)/k.width,_=(1*this.height-this.height*this.padding*2/100)/k.height;H=Math.min(tt,_)}return H},O.prototype.getTextPosition=function(k){var H=this.textElement.getBBox(),tt=0,_=0;return H.width>0&&H.height>0&&(tt=(this.width-H.width*k)/2,_=this.height/2-H.height*k/2),{x:tt,y:_}},O.prototype.sizeText=function(){var k=this.textElement.getBBox(),H=this.getTextScale(),tt=this.getTextPosition(H);tt.y-=k.y*H,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+tt.x+"px, "+tt.y+"px) scale("+H+", "+H+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(tt.x,tt.y),this.textElement.transform.baseVal.getItem(1).setScale(H,H))},O.prototype.manipulate=function(k){K.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},O.prototype.resize=function(k){K.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},O.prototype.setSize=function(){K.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(C.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),C.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},O.prototype.pointerUp=function(k){var H=this.state;H==="creating"&&(this._suppressMarkerCreateEvent=!0),K.prototype.pointerUp.call(this,k),this.setSize(),(H==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},O.prototype.showTextEditor=function(){var k=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(H){H.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var H=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&H>.9;)H-=.1,k.textEditor.style.fontSize=Math.max(H,.9)+"em"}),this.textEditor.addEventListener("keyup",function(H){H.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(H){if(H.clipboardData){var tt=H.clipboardData.getData("text"),_=window.getSelection();if(!_.rangeCount)return!1;_.deleteFromDocument(),_.getRangeAt(0).insertNode(document.createTextNode(tt)),H.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},O.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var k=this.getTextScale(),H=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),tt=this.textElement.getBBox(),_={x:tt.width*k,y:tt.height*k};H.x-=_.x/2,H.y-=_.y/2,this.textEditor.style.top=H.y+"px",this.textEditor.style.left=H.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-H.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},O.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},O.prototype.select=function(){K.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},O.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),K.prototype.deselect.call(this)},O.prototype.dblClick=function(k,H){K.prototype.dblClick.call(this,k,H),this.showTextEditor()},O.prototype.setColor=function(k){this.textElement&&C.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},O.prototype.setFont=function(k){this.textElement&&C.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},O.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},O.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},K.prototype.getState.call(this));return k.typeName=O.typeName,k},O.prototype.restoreState=function(k){var H=k;this.color=H.color,this.fontFamily=H.fontFamily,this.padding=H.padding,this.text=H.text,this.createVisual(),K.prototype.restoreState.call(this,k),this.setSize()},O.prototype.scale=function(k,H){K.prototype.scale.call(this,k,H),this.setSize(),this.sizeText(),this.positionTextEditor()},O.typeName="TextMarker",O.title="Text marker",O.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>',O}(ot),kt=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.color="transparent",_.lineWidth=3,_.drawing=!1,_.pixelRatio=1,_.color=tt.defaultColor,_.lineWidth=tt.defaultStrokeWidth,_.pixelRatio=tt.freehandPixelRatio,_.setColor=_.setColor.bind(_),_.addCanvas=_.addCanvas.bind(_),_.finishCreation=_.finishCreation.bind(_),_.setLineWidth=_.setLineWidth.bind(_),_.colorPanel=new Ct("Color",tt.defaultColorSet,tt.defaultColor),_.colorPanel.onColorChanged=_.setColor,_.lineWidthPanel=new q("Line width",tt.defaultStrokeWidths,tt.defaultStrokeWidth),_.lineWidthPanel.onWidthChanged=_.setLineWidth,_}return I(O,K),O.prototype.ownsTarget=function(k){return!(!K.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},O.prototype.createVisual=function(){this.visual=C.createGroup(),this.drawingImage=C.createImage(),this.visual.appendChild(this.drawingImage);var k=C.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},O.prototype.pointerDown=function(k,H){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(k.x,k.y),this.drawing=!0):K.prototype.pointerDown.call(this,k,H)},O.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):K.prototype.manipulate.call(this,k)},O.prototype.resize=function(k){K.prototype.resize.call(this,k),C.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),C.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},O.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):K.prototype.pointerUp.call(this,k)},O.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)},O.prototype.select=function(){this.state==="creating"&&this.finishCreation(),K.prototype.select.call(this)},O.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),K.prototype.deselect.call(this)},O.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),H=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],tt=H[0],_=H[1],at=H[2],se=H[3],Ve=!1,Ke=0;Ke<this.canvasElement.height;Ke++)for(var qt=0;qt<this.canvasElement.width;qt++)k.data[Ke*this.canvasElement.width*4+4*qt+3]>0&&(Ve=!0,Ke<_&&(_=Ke),qt<tt&&(tt=qt),Ke>se&&(se=Ke),qt>at&&(at=qt));if(Ve){this.left=tt/this.pixelRatio,this.top=_/this.pixelRatio,this.width=(at-tt)/this.pixelRatio,this.height=(se-_)/this.pixelRatio;var he=document.createElement("canvas");he.width=at-tt,he.height=se-_,he.getContext("2d").putImageData(this.canvasContext.getImageData(tt,_,at-tt,se-_),0,0),this.drawingImgUrl=he.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},O.prototype.setDrawingImage=function(){C.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),C.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},O.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},O.prototype.setLineWidth=function(k){this.lineWidth=k},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=Object.assign({drawingImgUrl:this.drawingImgUrl},K.prototype.getState.call(this));return k.typeName=O.typeName,k},O.prototype.restoreState=function(k){this.createVisual(),K.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},O.prototype.scale=function(k,H){K.prototype.scale.call(this,k,H),this.setDrawingImage()},O.typeName="FreehandMarker",O.title="Freehand marker",O.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>',O}(ot),Gt=function(K){function O(k,H,tt){var _=K.call(this,k,tt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return _.typeBoxes=[],_.currentType=H,_.setCurrentType=_.setCurrentType.bind(_),_}return I(O,K),O.prototype.getUi=function(){var k=this,H=document.createElement("div");H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2";for(var tt=function(se){var Ve="both";switch(se){case 0:Ve="both";break;case 1:Ve="start";break;case 2:Ve="end";break;case 3:Ve="none"}var Ke=document.createElement("div");if(Ke.style.display="flex",Ke.style.flexGrow="2",Ke.style.alignItems="center",Ke.style.justifyContent="space-between",Ke.style.padding="5px",Ke.style.borderWidth="2px",Ke.style.borderStyle="solid",Ke.style.borderColor=Ve===_.currentType?_.uiStyleSettings.toolboxAccentColor:"transparent",Ke.addEventListener("click",function(){k.setCurrentType(Ve,Ke)}),H.appendChild(Ke),Ve==="both"||Ve==="start"){var qt=document.createElement("div");qt.style.display="flex",qt.style.alignItems="center",qt.style.minHeight="20px",qt.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="`+(_.uiStyleSettings!==void 0?_.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,qt.style.marginLeft="5px",Ke.appendChild(qt)}var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.minHeight="20px",he.style.flexGrow="2";var de=document.createElement("hr");if(de.style.minWidth="20px",de.style.border="0px",de.style.borderTop="3px solid "+(_.uiStyleSettings!==void 0?_.uiStyleSettings.toolboxColor:"#eeeeee"),de.style.flexGrow="2",he.appendChild(de),Ke.appendChild(he),Ve==="both"||Ve==="end"){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.minHeight="20px",Fe.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="`+(_.uiStyleSettings!==void 0?_.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Fe.style.marginRight="5px",Ke.appendChild(Fe)}_.typeBoxes.push(Ke)},_=this,at=0;at<4;at++)tt(at);return H},O.prototype.setCurrentType=function(k,H){var tt=this;this.currentType=k,this.typeBoxes.forEach(function(_){_.style.borderColor=_===H?tt.uiStyleSettings!==void 0?tt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},O}(_t),ue=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.arrowType="end",_.arrowBaseHeight=10,_.arrowBaseWidth=10,_.getArrowPoints=_.getArrowPoints.bind(_),_.setArrowType=_.setArrowType.bind(_),_.arrowTypePanel=new Gt("Arrow type","end"),_.arrowTypePanel.onArrowTypeChanged=_.setArrowType,_}return I(O,K),O.prototype.ownsTarget=function(k){return!(!K.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},O.prototype.getArrowPoints=function(k,H){var tt=this.arrowBaseWidth+2*this.strokeWidth,_=this.arrowBaseHeight+2*this.strokeWidth;return k-tt/2+","+(H+_/2)+" "+k+","+(H-_/2)+" "+(k+tt/2)+","+(H+_/2)},O.prototype.createTips=function(){this.arrow1=C.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(C.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=C.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(C.createTransform()),this.visual.appendChild(this.arrow2)},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.state==="creating"&&this.createTips()},O.prototype.adjustVisual=function(){if(K.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",C.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),C.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var k=0;Math.abs(this.x1-this.x2)>.1&&(k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var H=this.arrow1.transform.baseVal.getItem(0);H.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(H,0);var tt=this.arrow2.transform.baseVal.getItem(0);tt.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(tt,0)}},O.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},K.prototype.getState.call(this));return k.typeName=O.typeName,k},O.prototype.restoreState=function(k){K.prototype.restoreState.call(this,k);var H=k;this.arrowType=H.arrowType,this.createTips(),this.adjustVisual()},O.typeName="ArrowMarker",O.title="Arrow marker",O.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',O}(At),le=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.fillColor=tt.defaultFillColor,_.strokeWidth=0,_.fillPanel=new Ct("Color",tt.defaultColorSet,tt.defaultFillColor),_.fillPanel.onColorChanged=_.setFillColor,_}return I(O,K),Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=K.prototype.getState.call(this);return k.typeName=O.typeName,k},O.typeName="CoverMarker",O.title="Cover marker",O.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',O}(st),re=function(K){function O(k,H,tt,_){var at=K.call(this,k,_||'<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 at.opacities=[],at.opacityBoxes=[],at.opacities=H,at.currentOpacity=tt,at.setCurrentOpacity=at.setCurrentOpacity.bind(at),at}return I(O,K),O.prototype.getUi=function(){var k=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",H.style.justifyContent="space-between",this.opacities.forEach(function(tt){var _=document.createElement("div");_.style.display="flex",_.style.alignItems="center",_.style.justifyContent="center",_.style.padding="5px",_.style.borderWidth="2px",_.style.borderStyle="solid",_.style.borderColor=tt===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",_.addEventListener("click",function(){k.setCurrentOpacity(tt,_)}),H.appendChild(_);var at=document.createElement("div");at.innerText=100*tt+"%",_.appendChild(at),k.opacityBoxes.push(_)}),H},O.prototype.setCurrentOpacity=function(k,H){var tt=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(_){_.style.borderColor=_===H?tt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},O}(_t),pe=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.setOpacity=_.setOpacity.bind(_),_.fillColor=tt.defaultHighlightColor,_.strokeWidth=0,_.opacity=tt.defaultHighlightOpacity,_.fillPanel=new Ct("Color",tt.defaultColorSet,_.fillColor),_.fillPanel.onColorChanged=_.setFillColor,_.opacityPanel=new re("Opacity",tt.defaultOpacitySteps,_.opacity),_.opacityPanel.onOpacityChanged=_.setOpacity,_}return I(O,K),O.prototype.setOpacity=function(k){this.opacity=k,this.visual&&C.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=K.prototype.getState.call(this);return k.typeName=O.typeName,k},O.typeName="HighlightMarker",O.title="Highlight marker",O.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>',O}(le),Dt='<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>',rt='<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>',Q=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.bgColor="transparent",_.tipPosition={x:0,y:0},_.tipBase1Position={x:0,y:0},_.tipBase2Position={x:0,y:0},_.tipMoving=!1,_.color=tt.defaultStrokeColor,_.bgColor=tt.defaultFillColor,_.fontFamily=tt.defaultFontFamily,_.defaultSize={x:100,y:30},_.setBgColor=_.setBgColor.bind(_),_.getTipPoints=_.getTipPoints.bind(_),_.positionTip=_.positionTip.bind(_),_.setTipPoints=_.setTipPoints.bind(_),_.colorPanel=new Ct("Text color",tt.defaultColorSet,_.color,Dt),_.colorPanel.onColorChanged=_.setColor,_.bgColorPanel=new Ct("Fill color",tt.defaultColorSet,_.bgColor,rt),_.bgColorPanel.onColorChanged=_.setBgColor,_.fontFamilyPanel=new gt("Font",tt.defaultFontFamilies,tt.defaultFontFamily),_.fontFamilyPanel.onFontChanged=_.setFont,_.tipGrip=new ft,_.tipGrip.visual.transform.baseVal.appendItem(C.createTransform()),_.controlBox.appendChild(_.tipGrip.visual),_}return I(O,K),O.prototype.ownsTarget=function(k){return K.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},O.prototype.createTip=function(){C.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=C.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},O.prototype.pointerDown=function(k,H){this.state==="new"&&K.prototype.pointerDown.call(this,k,H),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(H)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):K.prototype.pointerDown.call(this,k,H)},O.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,K.prototype.pointerUp.call(this,k);else{var H=this.state==="creating";K.prototype.pointerUp.call(this,k),this.setTipPoints(H),this.positionTip()}},O.prototype.manipulate=function(k){if(this.tipMoving){var H=this.unrotatePoint(k);this.tipPosition={x:H.x-this.manipulationStartLeft,y:H.y-this.manipulationStartTop},this.positionTip()}else K.prototype.manipulate.call(this,k)},O.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(C.setAttributes(this.bgRectangle,[["fill",k]]),C.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},O.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},O.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var H=Math.min(this.height/2,15),tt=this.height/5;k&&(this.tipPosition={x:H+tt/2,y:this.height+20});var _=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?_<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(tt=this.width/5,H=Math.min(this.width/2,15),this.tipBase1Position={x:H,y:0},this.tipBase2Position={x:H+tt,y:0}):(this.tipBase1Position={x:0,y:H},this.tipBase2Position={x:0,y:H+tt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?_<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(tt=this.width/5,H=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-H-tt,y:0},this.tipBase2Position={x:this.width-H,y:0}):(this.tipBase1Position={x:this.width,y:H},this.tipBase2Position={x:this.width,y:H+tt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?_<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(tt=this.width/5,H=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-H-tt,y:this.height},this.tipBase2Position={x:this.width-H,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-H-tt},this.tipBase2Position={x:this.width,y:this.height-H}):_<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(tt=this.width/5,H=Math.min(this.width/2,15),this.tipBase1Position={x:H,y:this.height},this.tipBase2Position={x:H+tt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-H},this.tipBase2Position={x:0,y:this.height-H-tt})},O.prototype.resize=function(k){K.prototype.resize.call(this,k),this.positionTip()},O.prototype.positionTip=function(){C.setAttributes(this.tip,[["points",this.getTipPoints()]]);var k=this.tipGrip.visual.transform.baseVal.getItem(0);k.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(k,0)},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),O.prototype.select=function(){this.positionTip(),K.prototype.select.call(this)},O.prototype.getState=function(){var k=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},K.prototype.getState.call(this));return k.typeName=O.typeName,k},O.prototype.restoreState=function(k){var H=k;this.bgColor=H.bgColor,this.tipPosition=H.tipPosition,K.prototype.restoreState.call(this,k),this.createTip(),this.setTipPoints()},O.prototype.scale=function(k,H){K.prototype.scale.call(this,k,H),this.tipPosition={x:this.tipPosition.x*k,y:this.tipPosition.y*H},this.positionTip()},O.typeName="CalloutMarker",O.title="Callout marker",O.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>',O}(Pt),ie=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.fillColor="transparent",_.strokeColor="transparent",_.strokeWidth=0,_.strokeDasharray="",_.opacity=1,_.strokeColor=tt.defaultColor,_.strokeWidth=tt.defaultStrokeWidth,_.strokeDasharray=tt.defaultStrokeDasharray,_.fillColor=tt.defaultFillColor,_.setStrokeColor=_.setStrokeColor.bind(_),_.setFillColor=_.setFillColor.bind(_),_.setStrokeWidth=_.setStrokeWidth.bind(_),_.setStrokeDasharray=_.setStrokeDasharray.bind(_),_.setOpacity=_.setOpacity.bind(_),_.createVisual=_.createVisual.bind(_),_.strokePanel=new Ct("Line color",V(tt.defaultColorSet,["transparent"]),tt.defaultColor),_.strokePanel.onColorChanged=_.setStrokeColor,_.fillPanel=new Ct("Fill color",V(tt.defaultColorSet,["transparent"]),_.fillColor,rt),_.fillPanel.onColorChanged=_.setFillColor,_.strokeWidthPanel=new q("Line width",tt.defaultStrokeWidths,tt.defaultStrokeWidth),_.strokeWidthPanel.onWidthChanged=_.setStrokeWidth,_.strokeStylePanel=new wt("Line style",tt.defaultStrokeDasharrays,tt.defaultStrokeDasharray),_.strokeStylePanel.onStyleChanged=_.setStrokeDasharray,_.opacityPanel=new re("Opacity",tt.defaultOpacitySteps,_.opacity),_.opacityPanel.onOpacityChanged=_.setOpacity,_}return I(O,K),O.prototype.ownsTarget=function(k){return!(!K.prototype.ownsTarget.call(this,k)&&k!==this.visual)},O.prototype.createVisual=function(){this.visual=C.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)},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},O.prototype.manipulate=function(k){K.prototype.manipulate.call(this,k)},O.prototype.resize=function(k){K.prototype.resize.call(this,k),this.setSize()},O.prototype.setSize=function(){K.prototype.setSize.call(this),C.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},O.prototype.pointerUp=function(k){K.prototype.pointerUp.call(this,k),this.setSize()},O.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&C.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},O.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&C.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},O.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&C.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},O.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&C.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},O.prototype.setOpacity=function(k){this.opacity=k,this.visual&&C.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},K.prototype.getState.call(this));return k.typeName=O.typeName,k},O.prototype.restoreState=function(k){var H=k;this.fillColor=H.fillColor,this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.opacity=H.opacity,this.createVisual(),K.prototype.restoreState.call(this,k),this.setSize()},O.prototype.scale=function(k,H){K.prototype.scale.call(this,k,H),this.setSize()},O.typeName="EllipseMarker",O.title="Ellipse marker",O.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>',O}(ot),ce=function(K){function O(k,H,tt){return K.call(this,k,H,tt)||this}return I(O,K),Object.defineProperty(O.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),O.prototype.ownsTarget=function(k){return!(!K.prototype.ownsTarget.call(this,k)&&k!==this.tip1&&k!==this.tip2)},O.prototype.createTips=function(){this.tip1=C.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(C.createTransform()),this.visual.appendChild(this.tip1),this.tip2=C.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(C.createTransform()),this.visual.appendChild(this.tip2)},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.state==="creating"&&this.createTips()},O.prototype.adjustVisual=function(){if(K.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(C.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()]]),C.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 k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.tip1.transform.baseVal.getItem(0);H.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(H,0);var tt=this.tip2.transform.baseVal.getItem(0);tt.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(tt,0)}},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=K.prototype.getState.call(this);return k.typeName=O.typeName,k},O.prototype.restoreState=function(k){K.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},O.typeName="MeasurementMarker",O.title="Measurement marker",O.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>',O}(At),oe=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.strokePanel.colors=tt.defaultColorSet,_.fillColor="transparent",_}return I(O,K),Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=K.prototype.getState.call(this);return k.typeName=O.typeName,k},O.typeName="EllipseFrameMarker",O.title="Ellipse frame marker",O.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>',O}(ie),pn=function(){function K(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(K.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),K.prototype.addUndoStep=function(O){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(O)||(this.undoStack.push(O),JSON.stringify(this.lastRedoStep)!==JSON.stringify(O)&&this.redoStack.splice(0,this.redoStack.length))},K.prototype.replaceLastUndoStep=function(O){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=O)},K.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},K.prototype.undo=function(){if(this.undoStack.length>1){var O=this.undoStack.pop();return O!==void 0&&this.redoStack.push(O),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},K.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},K}(),Ze=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.strokeColor="transparent",_.strokeWidth=0,_.strokeDasharray="",_.curveX=0,_.curveY=0,_.manipulationStartCurveX=0,_.manipulationStartCurveY=0,_.setStrokeColor=_.setStrokeColor.bind(_),_.setStrokeWidth=_.setStrokeWidth.bind(_),_.setStrokeDasharray=_.setStrokeDasharray.bind(_),_.positionGrips=_.positionGrips.bind(_),_.addControlGrips=_.addControlGrips.bind(_),_.adjustVisual=_.adjustVisual.bind(_),_.setupControlBox=_.setupControlBox.bind(_),_.resize=_.resize.bind(_),_.strokeColor=tt.defaultColor,_.strokeWidth=tt.defaultStrokeWidth,_.strokeDasharray=tt.defaultStrokeDasharray,_.strokePanel=new Ct("Line color",tt.defaultColorSet,tt.defaultColor),_.strokePanel.onColorChanged=_.setStrokeColor,_.strokeWidthPanel=new q("Line width",tt.defaultStrokeWidths,tt.defaultStrokeWidth),_.strokeWidthPanel.onWidthChanged=_.setStrokeWidth,_.strokeStylePanel=new wt("Line style",tt.defaultStrokeDasharrays,tt.defaultStrokeDasharray),_.strokeStylePanel.onStyleChanged=_.setStrokeDasharray,_}return I(O,K),O.prototype.ownsTarget=function(k){return!(!K.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},O.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},O.prototype.createVisual=function(){this.visual=C.createGroup(),this.selectorCurve=C.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=C.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)},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(H)&&(this.activeGrip=this.curveGrip,this._state="resize")},O.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),C.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),C.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),C.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},O.prototype.setupControlBox=function(){K.prototype.setupControlBox.call(this),this.curveControlLine1=C.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=C.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)},O.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,K.prototype.addControlGrips.call(this)},O.prototype.positionGrips=function(){K.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/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()))},O.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),K.prototype.manipulate.call(this,k)},O.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),K.prototype.resize.call(this,k),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},O.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},O.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},O.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},O.prototype.scale=function(k,H){this.curveX=this.curveX*k,this.curveY=this.curveY*H,K.prototype.scale.call(this,k,H)},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},K.prototype.getState.call(this));return k.typeName=O.typeName,k},O.prototype.restoreState=function(k){K.prototype.restoreState.call(this,k);var H=k;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.curveX=H.curveX,this.curveY=H.curveY,this.createVisual(),this.adjustVisual()},O.typeName="CurveMarker",O.title="Curve marker",O.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>',O}(Ht),Nn=function(K){function O(k,H,tt){var _=K.call(this,k,H,tt)||this;return _.fillColor="transparent",_.strokeColor="transparent",_.strokeWidth=0,_.strokeDasharray="",_.textColor="transparent",_.fontSize="1rem",_.isMoved=!1,_.captionText="Caption",_.PADDING=5,_.captionBoxWidth=0,_.captionBoxHeight=0,_.strokeColor=tt.defaultColor,_.strokeWidth=tt.defaultStrokeWidth,_.strokeDasharray=tt.defaultStrokeDasharray,_.fillColor=tt.defaultFillColor,_.textColor=tt.defaultStrokeColor,_.fontFamily=tt.defaultFontFamily,_.fontSize=tt.defaultCaptionFontSize,_.captionText=tt.defaultCaptionText,_.setStrokeColor=_.setStrokeColor.bind(_),_.setFillColor=_.setFillColor.bind(_),_.setStrokeWidth=_.setStrokeWidth.bind(_),_.setStrokeDasharray=_.setStrokeDasharray.bind(_),_.createVisual=_.createVisual.bind(_),_.sizeCaption=_.sizeCaption.bind(_),_.setCaptionText=_.setCaptionText.bind(_),_.showTextEditor=_.showTextEditor.bind(_),_.positionTextEditor=_.positionTextEditor.bind(_),_.finishTextEditing=_.finishTextEditing.bind(_),_.setFont=_.setFont.bind(_),_.setTextColor=_.setTextColor.bind(_),_.strokePanel=new Ct("Line color",V(tt.defaultColorSet,["transparent"]),_.strokeColor),_.strokePanel.onColorChanged=_.setStrokeColor,_.fillPanel=new Ct("Fill color",V(tt.defaultColorSet,["transparent"]),_.fillColor,rt),_.fillPanel.onColorChanged=_.setFillColor,_.strokeWidthPanel=new q("Line width",tt.defaultStrokeWidths,tt.defaultStrokeWidth),_.strokeWidthPanel.onWidthChanged=_.setStrokeWidth,_.strokeStylePanel=new wt("Line style",tt.defaultStrokeDasharrays,tt.defaultStrokeDasharray),_.strokeStylePanel.onStyleChanged=_.setStrokeDasharray,_.fontFamilyPanel=new gt("Font",tt.defaultFontFamilies,tt.defaultFontFamily),_.fontFamilyPanel.onFontChanged=_.setFont,_.textColorPanel=new Ct("Text color",tt.defaultColorSet,_.textColor,Dt),_.textColorPanel.onColorChanged=_.setTextColor,_}return I(O,K),O.prototype.ownsTarget=function(k){return!(!K.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.frame&&k!==this.captionBg&&k!==this.captionElement)},O.prototype.createVisual=function(){this.visual=C.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=C.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=C.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=C.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()},O.prototype.setCaptionText=function(k){this.captionText=k,this.captionElement.textContent=this.captionText,this.sizeCaption()},O.prototype.pointerDown=function(k,H){K.prototype.pointerDown.call(this,k,H),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},O.prototype.manipulate=function(k){K.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},O.prototype.resize=function(k){K.prototype.resize.call(this,k),this.setSize()},O.prototype.sizeCaption=function(){var k=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=k.width+2*this.PADDING,this.captionBoxHeight=k.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),C.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')"]]),C.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')"]])},O.prototype.showTextEditor=function(){var k=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(H){H.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(H){H.key==="Enter"&&k.finishTextEditing(k.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(H){H.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){k.finishTextEditing(k.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){k.finishTextEditing(k.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},O.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"))},O.prototype.finishTextEditing=function(k){this.setCaptionText(k.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},O.prototype.setFont=function(k){this.captionElement&&C.setAttributes(this.captionElement,[["font-family",k]]),this.fontFamily=k,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},O.prototype.setTextColor=function(k){this.captionElement&&C.setAttributes(this.captionElement,[["fill",k]]),this.textColor=k,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},O.prototype.setSize=function(){K.prototype.setSize.call(this),C.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},O.prototype.pointerUp=function(k){K.prototype.pointerUp.call(this,k),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},O.prototype.dblClick=function(k,H){K.prototype.dblClick.call(this,k,H),this.showTextEditor()},O.prototype.setStrokeColor=function(k){this.strokeColor=k,this.frame&&C.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},O.prototype.setFillColor=function(k){this.fillColor=k,this.captionBg&&C.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},O.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.frame&&C.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},O.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.frame&&C.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(O.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),O.prototype.getState=function(){var k=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},K.prototype.getState.call(this));return k.typeName=this.typeName,k},O.prototype.restoreState=function(k){var H=k;this.fillColor=H.fillColor,this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.textColor=H.textColor,this.fontFamily=H.fontFamily,this.captionText=H.captionText,this.fontSize=H.fontSize,this.createVisual(),K.prototype.restoreState.call(this,k),this.setSize()},O.prototype.scale=function(k,H){K.prototype.scale.call(this,k,H),this.setSize()},O.typeName="CaptionFrameMarker",O.title="Caption frame marker",O.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>',O}(ot),me=function(){function K(O,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=O,this.cancelable=k}return Object.defineProperty(K.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),K.prototype.preventDefault=function(){this._defaultPrevented=!0},K}(),on=function(K){function O(k,H,tt){var _=K.call(this,k,!1)||this;return _.dataUrl=H,_.state=tt,_}return I(O,K),O}(me),un=function(K){function O(k,H,tt){tt===void 0&&(tt=!1);var _=K.call(this,k,tt)||this;return _.marker=H,_}return I(O,K),O}(me),Ln=function(){function K(){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 K.prototype.addEventListener=function(O,k){this[O].push(k)},K.prototype.removeEventListener=function(O,k){var H=this[O].indexOf(k);H>-1&&this[O].splice(H,1)},K}(),Dn=function(){function K(O){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new pt,this._isOpen=!1,this.undoRedoManager=new pn,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 Ln,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=K.instanceCounter++,this.styles=new Y(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=O,this.targetRoot=document.body,this.width=O.clientWidth,this.height=O.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(K.prototype,"ALL_MARKER_TYPES",{get:function(){return[Bt,kt,ue,Pt,oe,ie,pe,Q,ce,le,At,Ze,Nn]},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Bt,kt,ue,Pt,ie,pe,Q]},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Bt,kt,ue,Pt,pe]},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(O){var k=this;this._availableMarkerTypes.splice(0),O.forEach(function(H){if(typeof H=="string"){var tt=k.ALL_MARKER_TYPES.find(function(_){return _.typeName===H});tt!==void 0&&k._availableMarkerTypes.push(tt)}else k._availableMarkerTypes.push(H)})},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(O){this._zoomLevel=O,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(K.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),K.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Z.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},K.prototype.show=function(){var O=this;this.styles.styleSheetRoot===void 0&&J.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=J.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new me(O))})},K.prototype.render=function(){return D(this,void 0,void 0,function(){var O;return P(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(O=new lt).naturalSize=this.renderAtNaturalSize,O.imageType=this.renderImageType,O.imageQuality=this.renderImageQuality,O.markersOnly=this.renderMarkersOnly,O.width=this.renderWidth,O.height=this.renderHeight,[4,O.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,O.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},K.prototype.close=function(O){var k=this;if(O===void 0&&(O=!1),this.isOpen){var H=!1;O||this.eventListeners.beforeclose.forEach(function(tt){var _=new me(k,!0);tt(_),_.defaultPrevented&&(H=!0)}),H||(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(tt){return tt(new me(k))}),this.detachEvents(),this._isOpen=!1)}},K.prototype.addMarkersToToolbar=function(){for(var O,k=[],H=0;H<arguments.length;H++)k[H]=arguments[H];(O=this._availableMarkerTypes).push.apply(O,k)},K.prototype.addRenderEventListener=function(O){this.addEventListener("render",function(k){O(k.dataUrl,k.state)})},K.prototype.removeRenderEventListener=function(O){},K.prototype.addCloseEventListener=function(O){this.addEventListener("close",function(){O()})},K.prototype.removeCloseEventListener=function(O){},K.prototype.setupResizeObserver=function(){var O=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){O.resize(O.target.clientWidth,O.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return O.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},K.prototype.onPopupTargetResize=function(){var O=1*this.target.clientWidth/this.target.clientHeight,k=this.editorCanvas.clientWidth/O>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*O:this.editorCanvas.clientWidth,H=k<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/O;this.resize(k,H)},K.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},K.prototype.resize=function(O,k){this._isResizing=!0;var H=O/this.imageWidth,tt=k/this.imageHeight;this.imageWidth=Math.round(O),this.imageHeight=Math.round(k),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(H,tt),this._isResizing=!1},K.prototype.scaleMarkers=function(O,k){var H,tt=this;this._currentMarker&&this._currentMarker instanceof Pt?this._currentMarker.scale(O,k):(H=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(_){_!==tt._currentMarker&&_.scale(O,k)}),H!==void 0&&this.setCurrentMarker(H)},K.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"},K.prototype.setTopLeft=function(){var O=this.editingTarget.getBoundingClientRect(),k=this.editorCanvas.getBoundingClientRect();this.left=O.left-k.left,this.top=O.top-k.top},K.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)},K.prototype.addDefs=function(){for(var O,k=[],H=0;H<arguments.length;H++)k[H]=arguments[H];this.defs=C.createDefs(),this.addDefsToImage(),(O=this.defs).append.apply(O,k)},K.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},K.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)},K.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},K.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},K.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)},K.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},K.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)},K.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 O=document.createElement("a");O.href="https://markerjs.com/",O.target="_blank",O.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>',O.title="Powered by marker.js",O.style.display="grid",O.style.alignItems="center",O.style.justifyItems="center",O.style.padding="3px",O.style.width="20px",O.style.height="20px",this.logoUI.appendChild(O),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},K.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")},K.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"},K.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},K.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 O=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=O+"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 $t(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 Ft(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},K.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},K.prototype.removeMarker=function(O){this.markerImage.removeChild(O.container),this.markers.indexOf(O)>-1&&this.markers.splice(this.markers.indexOf(O),1),O.dispose()},K.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())},K.prototype.toolbarButtonClicked=function(O,k){if(O==="marker"&&k!==void 0)this.createNewMarker(k);else if(O==="action")switch(k){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()}},K.prototype.deleteSelectedMarker=function(){var O=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(tt){var _=new un(O,O._currentMarker,!0);tt(_),_.defaultPrevented&&(k=!0)}),!k){var H=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(tt){return tt(new un(O,H))})}}},K.prototype.clear=function(){var O=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(at){var se=new un(O,void 0,!0);at(se),se.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var H=function(at){var se=tt.markers[at];tt.setCurrentMarker(tt.markers[at]),tt._currentMarker.dispose(),tt.markerImage.removeChild(tt._currentMarker.container),tt.markers.splice(tt.markers.indexOf(tt._currentMarker),1),tt.eventListeners.markerdelete.forEach(function(Ve){return Ve(new un(O,se))})},tt=this,_=this.markers.length-1;_>=0;_--)H(_);this.addUndoStep()}},Object.defineProperty(K.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),K.prototype.showNotesEditor=function(){var O;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=(O=this._currentMarker.notes)!==null&&O!==void 0?O:"",this.overlayContainer.appendChild(this.notesArea))},K.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)},K.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},K.prototype.addUndoStep=function(){var O=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),H=this.undoRedoManager.getLastUndoStep();if(!H||H.width===k.width&&H.height===k.height){var tt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),tt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(_){return _(new me(O))})}else this.undoRedoManager.replaceLastUndoStep(k),this.eventListeners.statechange.forEach(function(_){return _(new me(O))})}},K.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},K.prototype.undoStep=function(){var O=this,k=this.undoRedoManager.undo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(H){return H(new me(O))}))},K.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},K.prototype.redoStep=function(){var O=this,k=this.undoRedoManager.redo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(H){return H(new me(O))}))},K.prototype.stepZoom=function(){var O=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=O<this.zoomSteps.length-1?this.zoomSteps[O+1]:this.zoomSteps[0]},K.prototype.panTo=function(O){this.contentDiv.scrollBy({left:this.prevPanPoint.x-O.x,top:this.prevPanPoint.y-O.y}),this.prevPanPoint=O},K.prototype.startRenderAndClose=function(){return D(this,void 0,void 0,function(){var O,k,H=this;return P(this,function(tt){switch(tt.label){case 0:return[4,this.render()];case 1:return O=tt.sent(),k=this.getState(),this.eventListeners.render.forEach(function(_){return _(new on(H,O,k))}),this.close(!0),[2]}})})},K.prototype.getState=function(O){O===!0&&this.setCurrentMarker();var k={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(H){return k.markers.push(H.getState())}),k},K.prototype.restoreState=function(O){var k=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);O.markers.forEach(function(H){var tt=k._availableMarkerTypes.find(function(at){return at.typeName===H.typeName});if(tt!==void 0){var _=k.addNewMarker(tt);_.restoreState(H),k.markers.push(_)}}),O.width&&O.height&&(O.width!==this.imageWidth||O.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/O.width,this.imageHeight/O.height),this.eventListeners.restorestate.forEach(function(H){return H(new me(k))})},K.prototype.addNewMarker=function(O){var k=C.createGroup();return this.markerImage.appendChild(k),new O(k,this.overlayContainer,this.settings)},K.prototype.createNewMarker=function(O){var k,H=this;(k=typeof O=="string"?this._availableMarkerTypes.find(function(tt){return tt.typeName===O}):O)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(k),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(k.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(tt){return tt(new un(H,H._currentMarker))}))},K.prototype.markerCreated=function(O){var k=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(O),this.setCurrentMarker(O),O instanceof kt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(kt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(H){return H(new un(k,k._currentMarker))})},K.prototype.colorChanged=function(O){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=O,this.settings.defaultStrokeColor=O)},K.prototype.fillColorChanged=function(O){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=O)},K.prototype.markerStateChanged=function(O){var k=this;this.eventListeners.markerchange.forEach(function(H){return H(new un(k,O))})},K.prototype.setCurrentMarker=function(O){var k=this;this._currentMarker!==O&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(H){return H(new un(k,k._currentMarker))})),this._currentMarker=O,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(H){return H(new un(k,k._currentMarker))}))},K.prototype.onPointerDown=function(O){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||O.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var k=this.markers.find(function(H){return H.ownsTarget(O.target)});k!==void 0?(this.setCurrentMarker(k),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(O.clientX,O.clientY),O.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:O.clientX,y:O.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(O.clientX,O.clientY))},K.prototype.onDblClick=function(O){if(this._isFocused||this.focus(),this.mode==="select"){var k=this.markers.find(function(H){return H.ownsTarget(O.target)});k!==void 0&&k!==this._currentMarker&&this.setCurrentMarker(k),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(O.clientX,O.clientY),O.target):this.setCurrentMarker()}},K.prototype.onPointerMove=function(O){this.touchPoints!==1&&O.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||O.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(O.clientX,O.clientY)):this.zoomLevel>1&&this.panTo({x:O.clientX,y:O.clientY}))},K.prototype.onPointerUp=function(O){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(O.clientX,O.clientY)),this.isDragging=!1,this.addUndoStep()},K.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},K.prototype.onKeyUp=function(O){this._currentMarker===void 0||this.notesArea!==void 0||O.key!=="Delete"&&O.key!=="Backspace"||this.deleteSelectedMarker()},K.prototype.clientToLocalCoordinates=function(O,k){var H=this.markerImage.getBoundingClientRect();return{x:(O-H.left)/this.zoomLevel,y:(k-H.top)/this.zoomLevel}},K.prototype.onWindowResize=function(){this.positionUI()},K.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var O=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=O+"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()},K.prototype.addLicenseKey=function(O){Z.addKey(O)},K.prototype.addEventListener=function(O,k){this.eventListeners.addEventListener(O,k)},K.prototype.removeEventListener=function(O,k){this.eventListeners.removeEventListener(O,k)},K.prototype.renderState=function(O){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(O),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(K.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),K.prototype.focus=function(){var O=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(k){return k(new me(O))}))},K.prototype.blur=function(){var O=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new me(O))}))},K.instanceCounter=0,K}()},67842:function(j){"use strict";var S,p=59;j.exports=E;function E(I){var D="&"+I+";",P;return S=S||document.createElement("i"),S.innerHTML=D,P=S.textContent,P.charCodeAt(P.length-1)===p&&I!=="semi"||P===D?!1:P}},12256:function(j,S,p){"use strict";var E=p(47854),I=p(80501),D=p(22347),P=p(65207),V=p(21127),C=p(67842);j.exports=pe;var Z={}.hasOwnProperty,lt=String.fromCharCode,J=Function.prototype,Y={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Mt=9,ct=10,$t=12,Ft=32,_t=38,Ct=59,xt=60,St=61,ft=35,vt=88,ot=120,st=65533,q="named",wt="hexadecimal",Bt="decimal",pt={};pt[wt]=16,pt[Bt]=10;var Ht={};Ht[q]=V,Ht[Bt]=D,Ht[wt]=P;var At=1,gt=2,Pt=3,kt=4,Gt=5,ue=6,le=7,re={};re[At]="Named character references must be terminated by a semicolon",re[gt]="Numeric character references must be terminated by a semicolon",re[Pt]="Named character references cannot be empty",re[kt]="Numeric character references cannot be empty",re[Gt]="Named character references must be known",re[ue]="Numeric character references cannot be disallowed",re[le]="Numeric character references cannot be outside the permissible Unicode range";function pe(ie,ce){var oe={},pn,Ze;ce||(ce={});for(Ze in Y)pn=ce[Ze],oe[Ze]=pn==null?Y[Ze]:pn;return(oe.position.indent||oe.position.start)&&(oe.indent=oe.position.indent||[],oe.position=oe.position.start),Dt(ie,oe)}function Dt(ie,ce){var oe=ce.additional,pn=ce.nonTerminated,Ze=ce.text,Nn=ce.reference,me=ce.warning,on=ce.textContext,un=ce.referenceContext,Ln=ce.warningContext,Dn=ce.position,K=ce.indent||[],O=ie.length,k=0,H=-1,tt=Dn.column||1,_=Dn.line||1,at="",se=[],Ve,Ke,qt,he,de,Fe,$e,Ee,zt,Be,Ge,Ie,ze,Cn,je,bt,hn,Sn,Jt;for(typeof oe=="string"&&(oe=oe.charCodeAt(0)),bt=Hn(),Ee=me?ri:J,k--,O++;++k<O;)if(de===ct&&(tt=K[H]||1),de=ie.charCodeAt(k),de===_t){if($e=ie.charCodeAt(k+1),$e===Mt||$e===ct||$e===$t||$e===Ft||$e===_t||$e===xt||$e!==$e||oe&&$e===oe){at+=lt(de),tt++;continue}for(ze=k+1,Ie=ze,Jt=ze,$e===ft?(Jt=++Ie,$e=ie.charCodeAt(Jt),$e===vt||$e===ot?(Cn=wt,Jt=++Ie):Cn=Bt):Cn=q,Ve="",Ge="",he="",je=Ht[Cn],Jt--;++Jt<O&&($e=ie.charCodeAt(Jt),!!je($e));)he+=lt($e),Cn===q&&Z.call(E,he)&&(Ve=he,Ge=E[he]);qt=ie.charCodeAt(Jt)===Ct,qt&&(Jt++,Ke=Cn===q?C(he):!1,Ke&&(Ve=he,Ge=Ke)),Sn=1+Jt-ze,!qt&&!pn||(he?Cn===q?(qt&&!Ge?Ee(Gt,1):(Ve!==he&&(Jt=Ie+Ve.length,Sn=1+Jt-Ie,qt=!1),qt||(zt=Ve?At:Pt,ce.attribute?($e=ie.charCodeAt(Jt),$e===St?(Ee(zt,Sn),Ge=null):V($e)?Ge=null:Ee(zt,Sn)):Ee(zt,Sn))),Fe=Ge):(qt||Ee(gt,Sn),Fe=parseInt(he,pt[Cn]),rt(Fe)?(Ee(le,Sn),Fe=lt(st)):Fe in I?(Ee(ue,Sn),Fe=I[Fe]):(Be="",Q(Fe)&&Ee(ue,Sn),Fe>65535&&(Fe-=65536,Be+=lt(Fe>>>10|55296),Fe=56320|Fe&1023),Fe=Be+lt(Fe))):Cn!==q&&Ee(kt,Sn)),Fe?(Qn(),bt=Hn(),k=Jt-1,tt+=Jt-ze+1,se.push(Fe),hn=Hn(),hn.offset++,Nn&&Nn.call(un,Fe,{start:bt,end:hn},ie.slice(ze-1,Jt)),bt=hn):(he=ie.slice(ze-1,Jt),at+=he,tt+=he.length,k=Jt-1)}else de===10&&(_++,H++,tt=0),de===de?(at+=lt(de),tt++):Qn();return se.join("");function Hn(){return{line:_,column:tt,offset:k+(Dn.offset||0)}}function ri(we,wi){var xi=Hn();xi.column+=wi,xi.offset+=wi,me.call(Ln,re[we],xi,we)}function Qn(){at&&(se.push(at),Ze&&Ze.call(on,at,{start:bt,end:Hn()}),at="")}}function rt(ie){return ie>=55296&&ie<=57343||ie>1114111}function Q(ie){return ie>=1&&ie<=8||ie===11||ie>=13&&ie<=31||ie>=127&&ie<=159||ie>=64976&&ie<=65007||(ie&65535)===65535||(ie&65535)===65534}},68398:function(j,S,p){var E=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var I=function(D){var P=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,V=0,C={},Z={manual:D.Prism&&D.Prism.manual,disableWorkerMessageHandler:D.Prism&&D.Prism.disableWorkerMessageHandler,util:{encode:function St(ft){return ft instanceof lt?new lt(ft.type,St(ft.content),ft.alias):Array.isArray(ft)?ft.map(St):ft.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(St){return Object.prototype.toString.call(St).slice(8,-1)},objId:function(St){return St.__id||Object.defineProperty(St,"__id",{value:++V}),St.__id},clone:function St(ft,vt){vt=vt||{};var ot,st;switch(Z.util.type(ft)){case"Object":if(st=Z.util.objId(ft),vt[st])return vt[st];ot={},vt[st]=ot;for(var q in ft)ft.hasOwnProperty(q)&&(ot[q]=St(ft[q],vt));return ot;case"Array":return st=Z.util.objId(ft),vt[st]?vt[st]:(ot=[],vt[st]=ot,ft.forEach(function(wt,Bt){ot[Bt]=St(wt,vt)}),ot);default:return ft}},getLanguage:function(St){for(;St;){var ft=P.exec(St.className);if(ft)return ft[1].toLowerCase();St=St.parentElement}return"none"},setLanguage:function(St,ft){St.className=St.className.replace(RegExp(P,"gi"),""),St.classList.add("language-"+ft)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(ot){var St=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(ot.stack)||[])[1];if(St){var ft=document.getElementsByTagName("script");for(var vt in ft)if(ft[vt].src==St)return ft[vt]}return null}},isActive:function(St,ft,vt){for(var ot="no-"+ft;St;){var st=St.classList;if(st.contains(ft))return!0;if(st.contains(ot))return!1;St=St.parentElement}return!!vt}},languages:{plain:C,plaintext:C,text:C,txt:C,extend:function(St,ft){var vt=Z.util.clone(Z.languages[St]);for(var ot in ft)vt[ot]=ft[ot];return vt},insertBefore:function(St,ft,vt,ot){ot=ot||Z.languages;var st=ot[St],q={};for(var wt in st)if(st.hasOwnProperty(wt)){if(wt==ft)for(var Bt in vt)vt.hasOwnProperty(Bt)&&(q[Bt]=vt[Bt]);vt.hasOwnProperty(wt)||(q[wt]=st[wt])}var pt=ot[St];return ot[St]=q,Z.languages.DFS(Z.languages,function(Ht,At){At===pt&&Ht!=St&&(this[Ht]=q)}),q},DFS:function St(ft,vt,ot,st){st=st||{};var q=Z.util.objId;for(var wt in ft)if(ft.hasOwnProperty(wt)){vt.call(ft,wt,ft[wt],ot||wt);var Bt=ft[wt],pt=Z.util.type(Bt);pt==="Object"&&!st[q(Bt)]?(st[q(Bt)]=!0,St(Bt,vt,null,st)):pt==="Array"&&!st[q(Bt)]&&(st[q(Bt)]=!0,St(Bt,vt,wt,st))}}},plugins:{},highlightAll:function(St,ft){Z.highlightAllUnder(document,St,ft)},highlightAllUnder:function(St,ft,vt){var ot={callback:vt,container:St,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Z.hooks.run("before-highlightall",ot),ot.elements=Array.prototype.slice.apply(ot.container.querySelectorAll(ot.selector)),Z.hooks.run("before-all-elements-highlight",ot);for(var st=0,q;q=ot.elements[st++];)Z.highlightElement(q,ft===!0,ot.callback)},highlightElement:function(St,ft,vt){var ot=Z.util.getLanguage(St),st=Z.languages[ot];Z.util.setLanguage(St,ot);var q=St.parentElement;q&&q.nodeName.toLowerCase()==="pre"&&Z.util.setLanguage(q,ot);var wt=St.textContent,Bt={element:St,language:ot,grammar:st,code:wt};function pt(At){Bt.highlightedCode=At,Z.hooks.run("before-insert",Bt),Bt.element.innerHTML=Bt.highlightedCode,Z.hooks.run("after-highlight",Bt),Z.hooks.run("complete",Bt),vt&&vt.call(Bt.element)}if(Z.hooks.run("before-sanity-check",Bt),q=Bt.element.parentElement,q&&q.nodeName.toLowerCase()==="pre"&&!q.hasAttribute("tabindex")&&q.setAttribute("tabindex","0"),!Bt.code){Z.hooks.run("complete",Bt),vt&&vt.call(Bt.element);return}if(Z.hooks.run("before-highlight",Bt),!Bt.grammar){pt(Z.util.encode(Bt.code));return}if(ft&&D.Worker){var Ht=new Worker(Z.filename);Ht.onmessage=function(At){pt(At.data)},Ht.postMessage(JSON.stringify({language:Bt.language,code:Bt.code,immediateClose:!0}))}else pt(Z.highlight(Bt.code,Bt.grammar,Bt.language))},highlight:function(St,ft,vt){var ot={code:St,grammar:ft,language:vt};if(Z.hooks.run("before-tokenize",ot),!ot.grammar)throw new Error('The language "'+ot.language+'" has no grammar.');return ot.tokens=Z.tokenize(ot.code,ot.grammar),Z.hooks.run("after-tokenize",ot),lt.stringify(Z.util.encode(ot.tokens),ot.language)},tokenize:function(St,ft){var vt=ft.rest;if(vt){for(var ot in vt)ft[ot]=vt[ot];delete ft.rest}var st=new Mt;return ct(st,st.head,St),Y(St,st,ft,st.head,0),Ft(st)},hooks:{all:{},add:function(St,ft){var vt=Z.hooks.all;vt[St]=vt[St]||[],vt[St].push(ft)},run:function(St,ft){var vt=Z.hooks.all[St];if(!(!vt||!vt.length))for(var ot=0,st;st=vt[ot++];)st(ft)}},Token:lt};D.Prism=Z;function lt(St,ft,vt,ot){this.type=St,this.content=ft,this.alias=vt,this.length=(ot||"").length|0}lt.stringify=function St(ft,vt){if(typeof ft=="string")return ft;if(Array.isArray(ft)){var ot="";return ft.forEach(function(pt){ot+=St(pt,vt)}),ot}var st={type:ft.type,content:St(ft.content,vt),tag:"span",classes:["token",ft.type],attributes:{},language:vt},q=ft.alias;q&&(Array.isArray(q)?Array.prototype.push.apply(st.classes,q):st.classes.push(q)),Z.hooks.run("wrap",st);var wt="";for(var Bt in st.attributes)wt+=" "+Bt+'="'+(st.attributes[Bt]||"").replace(/"/g,""")+'"';return"<"+st.tag+' class="'+st.classes.join(" ")+'"'+wt+">"+st.content+"</"+st.tag+">"};function J(St,ft,vt,ot){St.lastIndex=ft;var st=St.exec(vt);if(st&&ot&&st[1]){var q=st[1].length;st.index+=q,st[0]=st[0].slice(q)}return st}function Y(St,ft,vt,ot,st,q){for(var wt in vt)if(!(!vt.hasOwnProperty(wt)||!vt[wt])){var Bt=vt[wt];Bt=Array.isArray(Bt)?Bt:[Bt];for(var pt=0;pt<Bt.length;++pt){if(q&&q.cause==wt+","+pt)return;var Ht=Bt[pt],At=Ht.inside,gt=!!Ht.lookbehind,Pt=!!Ht.greedy,kt=Ht.alias;if(Pt&&!Ht.pattern.global){var Gt=Ht.pattern.toString().match(/[imsuy]*$/)[0];Ht.pattern=RegExp(Ht.pattern.source,Gt+"g")}for(var ue=Ht.pattern||Ht,le=ot.next,re=st;le!==ft.tail&&!(q&&re>=q.reach);re+=le.value.length,le=le.next){var pe=le.value;if(ft.length>St.length)return;if(!(pe instanceof lt)){var Dt=1,rt;if(Pt){if(rt=J(ue,re,St,gt),!rt||rt.index>=St.length)break;var oe=rt.index,Q=rt.index+rt[0].length,ie=re;for(ie+=le.value.length;oe>=ie;)le=le.next,ie+=le.value.length;if(ie-=le.value.length,re=ie,le.value instanceof lt)continue;for(var ce=le;ce!==ft.tail&&(ie<Q||typeof ce.value=="string");ce=ce.next)Dt++,ie+=ce.value.length;Dt--,pe=St.slice(re,ie),rt.index-=re}else if(rt=J(ue,0,pe,gt),!rt)continue;var oe=rt.index,pn=rt[0],Ze=pe.slice(0,oe),Nn=pe.slice(oe+pn.length),me=re+pe.length;q&&me>q.reach&&(q.reach=me);var on=le.prev;Ze&&(on=ct(ft,on,Ze),re+=Ze.length),$t(ft,on,Dt);var un=new lt(wt,At?Z.tokenize(pn,At):pn,kt,pn);if(le=ct(ft,on,un),Nn&&ct(ft,le,Nn),Dt>1){var Ln={cause:wt+","+pt,reach:me};Y(St,ft,vt,le.prev,re,Ln),q&&Ln.reach>q.reach&&(q.reach=Ln.reach)}}}}}}function Mt(){var St={value:null,prev:null,next:null},ft={value:null,prev:St,next:null};St.next=ft,this.head=St,this.tail=ft,this.length=0}function ct(St,ft,vt){var ot=ft.next,st={value:vt,prev:ft,next:ot};return ft.next=st,ot.prev=st,St.length++,st}function $t(St,ft,vt){for(var ot=ft.next,st=0;st<vt&&ot!==St.tail;st++)ot=ot.next;ft.next=ot,ot.prev=ft,St.length-=st}function Ft(St){for(var ft=[],vt=St.head.next;vt!==St.tail;)ft.push(vt.value),vt=vt.next;return ft}if(!D.document)return D.addEventListener&&(Z.disableWorkerMessageHandler||D.addEventListener("message",function(St){var ft=JSON.parse(St.data),vt=ft.language,ot=ft.code,st=ft.immediateClose;D.postMessage(Z.highlight(ot,Z.languages[vt],vt)),st&&D.close()},!1)),Z;var _t=Z.util.currentScript();_t&&(Z.filename=_t.src,_t.hasAttribute("data-manual")&&(Z.manual=!0));function Ct(){Z.manual||Z.highlightAll()}if(!Z.manual){var xt=document.readyState;xt==="loading"||xt==="interactive"&&_t&&_t.defer?document.addEventListener("DOMContentLoaded",Ct):window.requestAnimationFrame?window.requestAnimationFrame(Ct):window.setTimeout(Ct,16)}return Z}(E);j.exports&&(j.exports=I),typeof p.g!="undefined"&&(p.g.Prism=I)},88914:function(j,S,p){"use strict";var E=p(47178),I=p(19095),D=p(1969),P="data";j.exports=lt;var V=/^data[-\w.:]+$/i,C=/-[a-z]/g,Z=/[A-Z]/g;function lt($t,Ft){var _t=E(Ft),Ct=Ft,xt=D;return _t in $t.normal?$t.property[$t.normal[_t]]:(_t.length>4&&_t.slice(0,4)===P&&V.test(Ft)&&(Ft.charAt(4)==="-"?Ct=J(Ft):Ft=Y(Ft),xt=I),new xt(Ct,Ft))}function J($t){var Ft=$t.slice(5).replace(C,ct);return P+Ft.charAt(0).toUpperCase()+Ft.slice(1)}function Y($t){var Ft=$t.slice(4);return C.test(Ft)?$t:(Ft=Ft.replace(Z,Mt),Ft.charAt(0)!=="-"&&(Ft="-"+Ft),P+Ft)}function Mt($t){return"-"+$t.toLowerCase()}function ct($t){return $t.charAt(1).toUpperCase()}},18795:function(j,S,p){"use strict";var E=p(83576),I=p(8179),D=p(59780),P=p(68244),V=p(20019),C=p(38567);j.exports=E([D,I,P,V,C])},20019:function(j,S,p){"use strict";var E=p(70167),I=p(79318),D=E.booleanish,P=E.number,V=E.spaceSeparated;j.exports=I({transform:C,properties:{ariaActiveDescendant:null,ariaAtomic:D,ariaAutoComplete:null,ariaBusy:D,ariaChecked:D,ariaColCount:P,ariaColIndex:P,ariaColSpan:P,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:D,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:D,ariaFlowTo:V,ariaGrabbed:D,ariaHasPopup:null,ariaHidden:D,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:P,ariaLive:null,ariaModal:D,ariaMultiLine:D,ariaMultiSelectable:D,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:P,ariaPressed:D,ariaReadOnly:D,ariaRelevant:null,ariaRequired:D,ariaRoleDescription:V,ariaRowCount:P,ariaRowIndex:P,ariaRowSpan:P,ariaSelected:D,ariaSetSize:P,ariaSort:null,ariaValueMax:P,ariaValueMin:P,ariaValueNow:P,ariaValueText:null,role:null}});function C(Z,lt){return lt==="role"?lt:"aria-"+lt.slice(4).toLowerCase()}},38567:function(j,S,p){"use strict";var E=p(70167),I=p(79318),D=p(85804),P=E.boolean,V=E.overloadedBoolean,C=E.booleanish,Z=E.number,lt=E.spaceSeparated,J=E.commaSeparated;j.exports=I({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:D,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:J,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:P,allowPaymentRequest:P,allowUserMedia:P,alt:null,as:null,async:P,autoCapitalize:null,autoComplete:lt,autoFocus:P,autoPlay:P,capture:P,charSet:null,checked:P,cite:null,className:lt,cols:Z,colSpan:null,content:null,contentEditable:C,controls:P,controlsList:lt,coords:Z|J,crossOrigin:null,data:null,dateTime:null,decoding:null,default:P,defer:P,dir:null,dirName:null,disabled:P,download:V,draggable:C,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:P,formTarget:null,headers:lt,height:Z,hidden:P,high:Z,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:J,inputMode:null,integrity:null,is:null,isMap:P,itemId:null,itemProp:lt,itemRef:lt,itemScope:P,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:P,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:P,muted:P,name:null,nonce:null,noModule:P,noValidate:P,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:P,optimum:Z,pattern:null,ping:lt,placeholder:null,playsInline:P,poster:null,preload:null,readOnly:P,referrerPolicy:null,rel:lt,required:P,reversed:P,rows:Z,rowSpan:Z,sandbox:lt,scope:null,scoped:P,seamless:P,selected:P,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:C,src:null,srcDoc:null,srcLang:null,srcSet:J,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:P,useMap:null,value:C,width:Z,wrap:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:P,declare:P,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:P,noHref:P,noShade:P,noWrap:P,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:C,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:P,disableRemotePlayback:P,prefix:null,property:null,results:Z,security:null,unselectable:null}})},85804:function(j,S,p){"use strict";var E=p(56432);j.exports=I;function I(D,P){return E(D,P.toLowerCase())}},56432:function(j){"use strict";j.exports=S;function S(p,E){return E in p?p[E]:E}},79318:function(j,S,p){"use strict";var E=p(47178),I=p(44347),D=p(19095);j.exports=P;function P(V){var C=V.space,Z=V.mustUseProperty||[],lt=V.attributes||{},J=V.properties,Y=V.transform,Mt={},ct={},$t,Ft;for($t in J)Ft=new D($t,Y(lt,$t),J[$t],C),Z.indexOf($t)!==-1&&(Ft.mustUseProperty=!0),Mt[$t]=Ft,ct[E($t)]=$t,ct[E(Ft.attribute)]=$t;return new I(Mt,ct,C)}},19095:function(j,S,p){"use strict";var E=p(1969),I=p(70167);j.exports=V,V.prototype=new E,V.prototype.defined=!0;var D=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],P=D.length;function V(Z,lt,J,Y){var Mt=-1,ct;for(C(this,"space",Y),E.call(this,Z,lt);++Mt<P;)ct=D[Mt],C(this,ct,(J&I[ct])===I[ct])}function C(Z,lt,J){J&&(Z[lt]=J)}},1969:function(j){"use strict";j.exports=p;var S=p.prototype;S.space=null,S.attribute=null,S.property=null,S.boolean=!1,S.booleanish=!1,S.overloadedBoolean=!1,S.number=!1,S.commaSeparated=!1,S.spaceSeparated=!1,S.commaOrSpaceSeparated=!1,S.mustUseProperty=!1,S.defined=!1;function p(E,I){this.property=E,this.attribute=I}},83576:function(j,S,p){"use strict";var E=p(97270),I=p(44347);j.exports=D;function D(P){for(var V=P.length,C=[],Z=[],lt=-1,J,Y;++lt<V;)J=P[lt],C.push(J.property),Z.push(J.normal),Y=J.space;return new I(E.apply(null,C),E.apply(null,Z),Y)}},44347:function(j){"use strict";j.exports=p;var S=p.prototype;S.space=null,S.normal={},S.property={};function p(E,I,D){this.property=E,this.normal=I,D&&(this.space=D)}},70167:function(j,S){"use strict";var p=0;S.boolean=E(),S.booleanish=E(),S.overloadedBoolean=E(),S.number=E(),S.spaceSeparated=E(),S.commaSeparated=E(),S.commaOrSpaceSeparated=E();function E(){return Math.pow(2,++p)}},8179:function(j,S,p){"use strict";var E=p(79318);j.exports=E({space:"xlink",transform:I,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function I(D,P){return"xlink:"+P.slice(5).toLowerCase()}},59780:function(j,S,p){"use strict";var E=p(79318);j.exports=E({space:"xml",transform:I,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function I(D,P){return"xml:"+P.slice(3).toLowerCase()}},68244:function(j,S,p){"use strict";var E=p(79318),I=p(85804);j.exports=E({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:I,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(j){"use strict";j.exports=S;function S(p){return p.toLowerCase()}},66042:function(j,S,p){"use strict";p.d(S,{Z:function(){return Pt}});var E=p(98506),I=p(16886),D=p(43403),P=p(34280),V=p(59301),C=V.createContext(null),Z=V.createContext({}),lt=C,J=p(52873),Y=p(67711),Mt=p(92310),ct=p.n(Mt),$t=p(77900),Ft=p(10228),_t=p(26112),Ct=p(33346),xt=p(8654),St=["prefixCls","className","containerRef"],ft=function(Gt){var ue=Gt.prefixCls,le=Gt.className,re=Gt.containerRef,pe=(0,Ct.Z)(Gt,St),Dt=V.useContext(Z),rt=Dt.panel,Q=(0,xt.x1)(rt,re);return V.createElement("div",(0,Y.Z)({className:ct()("".concat(ue,"-content"),le),role:"dialog",ref:Q},(0,_t.Z)(Gt,{aria:!0}),{"aria-modal":"true"},pe))},vt=ft,ot=p(48736);function st(kt){return typeof kt=="string"&&String(Number(kt))===kt?((0,ot.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(kt)):kt}function q(kt){warning(!("wrapperClassName"in kt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!kt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var wt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Bt(kt,Gt){var ue,le,re,pe=kt.prefixCls,Dt=kt.open,rt=kt.placement,Q=kt.inline,ie=kt.push,ce=kt.forceRender,oe=kt.autoFocus,pn=kt.keyboard,Ze=kt.classNames,Nn=kt.rootClassName,me=kt.rootStyle,on=kt.zIndex,un=kt.className,Ln=kt.id,Dn=kt.style,K=kt.motion,O=kt.width,k=kt.height,H=kt.children,tt=kt.mask,_=kt.maskClosable,at=kt.maskMotion,se=kt.maskClassName,Ve=kt.maskStyle,Ke=kt.afterOpenChange,qt=kt.onClose,he=kt.onMouseEnter,de=kt.onMouseOver,Fe=kt.onMouseLeave,$e=kt.onClick,Ee=kt.onKeyDown,zt=kt.onKeyUp,Be=kt.styles,Ge=kt.drawerRender,Ie=V.useRef(),ze=V.useRef(),Cn=V.useRef();V.useImperativeHandle(Gt,function(){return Ie.current});var je=function(gn){var $n=gn.keyCode,Fi=gn.shiftKey;switch($n){case Ft.Z.TAB:{if($n===Ft.Z.TAB){if(!Fi&&document.activeElement===Cn.current){var Ki;(Ki=ze.current)===null||Ki===void 0||Ki.focus({preventScroll:!0})}else if(Fi&&document.activeElement===ze.current){var pi;(pi=Cn.current)===null||pi===void 0||pi.focus({preventScroll:!0})}}break}case Ft.Z.ESC:{qt&&pn&&(gn.stopPropagation(),qt(gn));break}}};V.useEffect(function(){if(Dt&&oe){var Pn;(Pn=Ie.current)===null||Pn===void 0||Pn.focus({preventScroll:!0})}},[Dt]);var bt=V.useState(!1),hn=(0,I.Z)(bt,2),Sn=hn[0],Jt=hn[1],Hn=V.useContext(lt),ri;typeof ie=="boolean"?ri=ie?{}:{distance:0}:ri=ie||{};var Qn=(ue=(le=(re=ri)===null||re===void 0?void 0:re.distance)!==null&&le!==void 0?le:Hn==null?void 0:Hn.pushDistance)!==null&&ue!==void 0?ue:180,we=V.useMemo(function(){return{pushDistance:Qn,push:function(){Jt(!0)},pull:function(){Jt(!1)}}},[Qn]);V.useEffect(function(){if(Dt){var Pn;Hn==null||(Pn=Hn.push)===null||Pn===void 0||Pn.call(Hn)}else{var gn;Hn==null||(gn=Hn.pull)===null||gn===void 0||gn.call(Hn)}},[Dt]),V.useEffect(function(){return function(){var Pn;Hn==null||(Pn=Hn.pull)===null||Pn===void 0||Pn.call(Hn)}},[]);var wi=tt&&V.createElement($t.default,(0,Y.Z)({key:"mask"},at,{visible:Dt}),function(Pn,gn){var $n=Pn.className,Fi=Pn.style;return V.createElement("div",{className:ct()("".concat(pe,"-mask"),$n,Ze==null?void 0:Ze.mask,se),style:(0,E.Z)((0,E.Z)((0,E.Z)({},Fi),Ve),Be==null?void 0:Be.mask),onClick:_&&Dt?qt:void 0,ref:gn})}),xi=typeof K=="function"?K(rt):K,Bn={};if(Sn&&Qn)switch(rt){case"top":Bn.transform="translateY(".concat(Qn,"px)");break;case"bottom":Bn.transform="translateY(".concat(-Qn,"px)");break;case"left":Bn.transform="translateX(".concat(Qn,"px)");break;default:Bn.transform="translateX(".concat(-Qn,"px)");break}rt==="left"||rt==="right"?Bn.width=st(O):Bn.height=st(k);var Kn={onMouseEnter:he,onMouseOver:de,onMouseLeave:Fe,onClick:$e,onKeyDown:Ee,onKeyUp:zt},Ei=V.createElement($t.default,(0,Y.Z)({key:"panel"},xi,{visible:Dt,forceRender:ce,onVisibleChanged:function(gn){Ke==null||Ke(gn)},removeOnLeave:!1,leavedClassName:"".concat(pe,"-content-wrapper-hidden")}),function(Pn,gn){var $n=Pn.className,Fi=Pn.style,Ki=V.createElement(vt,(0,Y.Z)({id:Ln,containerRef:gn,prefixCls:pe,className:ct()(un,Ze==null?void 0:Ze.content),style:(0,E.Z)((0,E.Z)({},Dn),Be==null?void 0:Be.content)},(0,_t.Z)(kt,{aria:!0}),Kn),H);return V.createElement("div",(0,Y.Z)({className:ct()("".concat(pe,"-content-wrapper"),Ze==null?void 0:Ze.wrapper,$n),style:(0,E.Z)((0,E.Z)((0,E.Z)({},Bn),Fi),Be==null?void 0:Be.wrapper)},(0,_t.Z)(kt,{data:!0})),Ge?Ge(Ki):Ki)}),A=(0,E.Z)({},me);return on&&(A.zIndex=on),V.createElement(lt.Provider,{value:we},V.createElement("div",{className:ct()(pe,"".concat(pe,"-").concat(rt),Nn,(0,J.Z)((0,J.Z)({},"".concat(pe,"-open"),Dt),"".concat(pe,"-inline"),Q)),style:A,tabIndex:-1,ref:Ie,onKeyDown:je},wi,V.createElement("div",{tabIndex:0,ref:ze,style:wt,"aria-hidden":"true","data-sentinel":"start"}),Ei,V.createElement("div",{tabIndex:0,ref:Cn,style:wt,"aria-hidden":"true","data-sentinel":"end"})))}var pt=V.forwardRef(Bt),Ht=pt,At=function(Gt){var ue=Gt.open,le=ue===void 0?!1:ue,re=Gt.prefixCls,pe=re===void 0?"rc-drawer":re,Dt=Gt.placement,rt=Dt===void 0?"right":Dt,Q=Gt.autoFocus,ie=Q===void 0?!0:Q,ce=Gt.keyboard,oe=ce===void 0?!0:ce,pn=Gt.width,Ze=pn===void 0?378:pn,Nn=Gt.mask,me=Nn===void 0?!0:Nn,on=Gt.maskClosable,un=on===void 0?!0:on,Ln=Gt.getContainer,Dn=Gt.forceRender,K=Gt.afterOpenChange,O=Gt.destroyOnClose,k=Gt.onMouseEnter,H=Gt.onMouseOver,tt=Gt.onMouseLeave,_=Gt.onClick,at=Gt.onKeyDown,se=Gt.onKeyUp,Ve=Gt.panelRef,Ke=V.useState(!1),qt=(0,I.Z)(Ke,2),he=qt[0],de=qt[1],Fe=V.useState(!1),$e=(0,I.Z)(Fe,2),Ee=$e[0],zt=$e[1];(0,P.Z)(function(){zt(!0)},[]);var Be=Ee?le:!1,Ge=V.useRef(),Ie=V.useRef();(0,P.Z)(function(){Be&&(Ie.current=document.activeElement)},[Be]);var ze=function(Sn){var Jt;if(de(Sn),K==null||K(Sn),!Sn&&Ie.current&&!((Jt=Ge.current)!==null&&Jt!==void 0&&Jt.contains(Ie.current))){var Hn;(Hn=Ie.current)===null||Hn===void 0||Hn.focus({preventScroll:!0})}},Cn=V.useMemo(function(){return{panel:Ve}},[Ve]);if(!Dn&&!he&&!Be&&O)return null;var je={onMouseEnter:k,onMouseOver:H,onMouseLeave:tt,onClick:_,onKeyDown:at,onKeyUp:se},bt=(0,E.Z)((0,E.Z)({},Gt),{},{open:Be,prefixCls:pe,placement:rt,autoFocus:ie,keyboard:oe,width:Ze,mask:me,maskClosable:un,inline:Ln===!1,afterOpenChange:ze,ref:Ge},je);return V.createElement(Z.Provider,{value:Cn},V.createElement(D.Z,{open:Be||Dn||he,autoDestroy:!1,getContainer:Ln,autoLock:me&&(Be||he)},V.createElement(Ht,bt)))},gt=At,Pt=gt},91574:function(j,S,p){"use strict";p.d(S,{Z:function(){return $e}});var E=p(67711),I=p(98506),D=p(52873),P=p(16886),V=p(26420),C=p(33346),Z=p(92310),lt=p.n(Z),J=/margin|padding|width|height|max|min|offset/,Y={left:!0,top:!0},Mt={cssFloat:1,styleFloat:1,float:1};function ct(Ee){return Ee.nodeType===1?Ee.ownerDocument.defaultView.getComputedStyle(Ee,null):{}}function $t(Ee,zt,Be){if(zt=zt.toLowerCase(),Be==="auto"){if(zt==="height")return Ee.offsetHeight;if(zt==="width")return Ee.offsetWidth}return zt in Y||(Y[zt]=J.test(zt)),Y[zt]?parseFloat(Be)||0:Be}function Ft(Ee,zt){var Be=arguments.length,Ge=ct(Ee);return zt=Mt[zt]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":zt,Be===1?Ge:$t(Ee,zt,Ge[zt]||Ee.style[zt])}function _t(Ee,zt,Be){var Ge=arguments.length;if(zt=Mt[zt]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":zt,Ge===3)return typeof Be=="number"&&J.test(zt)&&(Be="".concat(Be,"px")),Ee.style[zt]=Be,Be;for(var Ie in zt)zt.hasOwnProperty(Ie)&&_t(Ee,Ie,zt[Ie]);return ct(Ee)}function Ct(Ee){return Ee===document.body?document.documentElement.clientWidth:Ee.offsetWidth}function xt(Ee){return Ee===document.body?window.innerHeight||document.documentElement.clientHeight:Ee.offsetHeight}function St(){var Ee=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),zt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ee,height:zt}}function ft(){var Ee=document.documentElement.clientWidth,zt=window.innerHeight||document.documentElement.clientHeight;return{width:Ee,height:zt}}function vt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ot(Ee){var zt=Ee.getBoundingClientRect(),Be=document.documentElement;return{left:zt.left+(window.pageXOffset||Be.scrollLeft)-(Be.clientLeft||document.body.clientLeft||0),top:zt.top+(window.pageYOffset||Be.scrollTop)-(Be.clientTop||document.body.clientTop||0)}}var st=p(18929),q=p(59301),wt=p(55311),Bt=p(8224),pt=p(10228),Ht=p(43403),At=p(77900),gt=q.createContext(null),Pt=function(zt){var Be=zt.visible,Ge=zt.maskTransitionName,Ie=zt.getContainer,ze=zt.prefixCls,Cn=zt.rootClassName,je=zt.icons,bt=zt.countRender,hn=zt.showSwitch,Sn=zt.showProgress,Jt=zt.current,Hn=zt.transform,ri=zt.count,Qn=zt.scale,we=zt.minScale,wi=zt.maxScale,xi=zt.closeIcon,Bn=zt.onActive,Kn=zt.onClose,Ei=zt.onZoomIn,A=zt.onZoomOut,Pn=zt.onRotateRight,gn=zt.onRotateLeft,$n=zt.onFlipX,Fi=zt.onFlipY,Ki=zt.onReset,pi=zt.toolbarRender,so=zt.zIndex,Zi=zt.image,or=(0,q.useContext)(gt),Yn=je.rotateLeft,Mn=je.rotateRight,fr=je.zoomIn,Li=je.zoomOut,Xi=je.close,sn=je.left,zn=je.right,Wi=je.flipX,Ur=je.flipY,Nr="".concat(ze,"-operations-operation");q.useEffect(function(){var ve=function(Wn){Wn.keyCode===pt.Z.ESC&&Kn()};return Be&&window.addEventListener("keydown",ve),function(){window.removeEventListener("keydown",ve)}},[Be]);var Et=function(li,Wn){li.preventDefault(),li.stopPropagation(),Bn(Wn)},Wt=q.useCallback(function(ve){var li=ve.type,Wn=ve.disabled,ni=ve.onClick,yn=ve.icon;return q.createElement("div",{key:li,className:lt()(Nr,"".concat(ze,"-operations-operation-").concat(li),(0,D.Z)({},"".concat(ze,"-operations-operation-disabled"),!!Wn)),onClick:ni},yn)},[Nr,ze]),rn=hn?Wt({icon:sn,onClick:function(li){return Et(li,-1)},type:"prev",disabled:Jt===0}):void 0,cn=hn?Wt({icon:zn,onClick:function(li){return Et(li,1)},type:"next",disabled:Jt===ri-1}):void 0,Ut=Wt({icon:Ur,onClick:Fi,type:"flipY"}),Ye=Wt({icon:Wi,onClick:$n,type:"flipX"}),kn=Wt({icon:Yn,onClick:gn,type:"rotateLeft"}),te=Wt({icon:Mn,onClick:Pn,type:"rotateRight"}),R=Wt({icon:Li,onClick:A,type:"zoomOut",disabled:Qn<=we}),bn=Wt({icon:fr,onClick:Ei,type:"zoomIn",disabled:Qn===wi}),En=q.createElement("div",{className:"".concat(ze,"-operations")},Ut,Ye,kn,te,R,bn);return q.createElement(At.default,{visible:Be,motionName:Ge},function(ve){var li=ve.className,Wn=ve.style;return q.createElement(Ht.Z,{open:!0,getContainer:Ie!=null?Ie:document.body},q.createElement("div",{className:lt()("".concat(ze,"-operations-wrapper"),li,Cn),style:(0,I.Z)((0,I.Z)({},Wn),{},{zIndex:so})},xi===null?null:q.createElement("button",{className:"".concat(ze,"-close"),onClick:Kn},xi||Xi),hn&&q.createElement(q.Fragment,null,q.createElement("div",{className:lt()("".concat(ze,"-switch-left"),(0,D.Z)({},"".concat(ze,"-switch-left-disabled"),Jt===0)),onClick:function(yn){return Et(yn,-1)}},sn),q.createElement("div",{className:lt()("".concat(ze,"-switch-right"),(0,D.Z)({},"".concat(ze,"-switch-right-disabled"),Jt===ri-1)),onClick:function(yn){return Et(yn,1)}},zn)),q.createElement("div",{className:"".concat(ze,"-footer")},Sn&&q.createElement("div",{className:"".concat(ze,"-progress")},bt?bt(Jt+1,ri):"".concat(Jt+1," / ").concat(ri)),pi?pi(En,(0,I.Z)((0,I.Z)({icons:{prevIcon:rn,nextIcon:cn,flipYIcon:Ut,flipXIcon:Ye,rotateLeftIcon:kn,rotateRightIcon:te,zoomOutIcon:R,zoomInIcon:bn},actions:{onActive:Bn,onFlipY:Fi,onFlipX:$n,onRotateLeft:gn,onRotateRight:Pn,onZoomOut:A,onZoomIn:Ei,onReset:Ki,onClose:Kn},transform:Hn},or?{current:Jt,total:ri}:{}),{},{image:Zi})):En)))})},kt=Pt,Gt=p(13697),ue=p(16089),le={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function re(Ee,zt,Be,Ge){var Ie=(0,q.useRef)(null),ze=(0,q.useRef)([]),Cn=(0,q.useState)(le),je=(0,P.Z)(Cn,2),bt=je[0],hn=je[1],Sn=function(Qn){hn(le),(0,Gt.Z)(le,bt)||Ge==null||Ge({transform:le,action:Qn})},Jt=function(Qn,we){Ie.current===null&&(ze.current=[],Ie.current=(0,ue.Z)(function(){hn(function(wi){var xi=wi;return ze.current.forEach(function(Bn){xi=(0,I.Z)((0,I.Z)({},xi),Bn)}),Ie.current=null,Ge==null||Ge({transform:xi,action:we}),xi})})),ze.current.push((0,I.Z)((0,I.Z)({},bt),Qn))},Hn=function(Qn,we,wi,xi,Bn){var Kn=Ee.current,Ei=Kn.width,A=Kn.height,Pn=Kn.offsetWidth,gn=Kn.offsetHeight,$n=Kn.offsetLeft,Fi=Kn.offsetTop,Ki=Qn,pi=bt.scale*Qn;pi>Be?(pi=Be,Ki=Be/bt.scale):pi<zt&&(pi=Bn?pi:zt,Ki=pi/bt.scale);var so=wi!=null?wi:innerWidth/2,Zi=xi!=null?xi:innerHeight/2,or=Ki-1,Yn=or*Ei*.5,Mn=or*A*.5,fr=or*(so-bt.x-$n),Li=or*(Zi-bt.y-Fi),Xi=bt.x-(fr-Yn),sn=bt.y-(Li-Mn);if(Qn<1&&pi===1){var zn=Pn*pi,Wi=gn*pi,Ur=ft(),Nr=Ur.width,Et=Ur.height;zn<=Nr&&Wi<=Et&&(Xi=0,sn=0)}Jt({x:Xi,y:sn,scale:pi},we)};return{transform:bt,resetTransform:Sn,updateTransform:Jt,dispatchZoomChange:Hn}}var pe=p(48736);function Dt(Ee,zt,Be,Ge){var Ie=zt+Be,ze=(Be-Ge)/2;if(Be>Ge){if(zt>0)return(0,D.Z)({},Ee,ze);if(zt<0&&Ie<Ge)return(0,D.Z)({},Ee,-ze)}else if(zt<0||Ie>Ge)return(0,D.Z)({},Ee,zt<0?ze:-ze);return{}}function rt(Ee,zt,Be,Ge){var Ie=ft(),ze=Ie.width,Cn=Ie.height,je=null;return Ee<=ze&&zt<=Cn?je={x:0,y:0}:(Ee>ze||zt>Cn)&&(je=(0,I.Z)((0,I.Z)({},Dt("x",Be,Ee,ze)),Dt("y",Ge,zt,Cn))),je}var Q=1,ie=1;function ce(Ee,zt,Be,Ge,Ie,ze,Cn){var je=Ie.rotate,bt=Ie.scale,hn=Ie.x,Sn=Ie.y,Jt=(0,q.useState)(!1),Hn=(0,P.Z)(Jt,2),ri=Hn[0],Qn=Hn[1],we=(0,q.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),wi=function(A){!zt||A.button!==0||(A.preventDefault(),A.stopPropagation(),we.current={diffX:A.pageX-hn,diffY:A.pageY-Sn,transformX:hn,transformY:Sn},Qn(!0))},xi=function(A){Be&&ri&&ze({x:A.pageX-we.current.diffX,y:A.pageY-we.current.diffY},"move")},Bn=function(){if(Be&&ri){Qn(!1);var A=we.current,Pn=A.transformX,gn=A.transformY,$n=hn!==Pn&&Sn!==gn;if(!$n)return;var Fi=Ee.current.offsetWidth*bt,Ki=Ee.current.offsetHeight*bt,pi=Ee.current.getBoundingClientRect(),so=pi.left,Zi=pi.top,or=je%180!==0,Yn=rt(or?Ki:Fi,or?Fi:Ki,so,Zi);Yn&&ze((0,I.Z)({},Yn),"dragRebound")}},Kn=function(A){if(!(!Be||A.deltaY==0)){var Pn=Math.abs(A.deltaY/100),gn=Math.min(Pn,ie),$n=Q+gn*Ge;A.deltaY>0&&($n=Q/$n),Cn($n,"wheel",A.clientX,A.clientY)}};return(0,q.useEffect)(function(){var Ei,A,Pn,gn;if(zt){Pn=(0,Bt.Z)(window,"mouseup",Bn,!1),gn=(0,Bt.Z)(window,"mousemove",xi,!1);try{window.top!==window.self&&(Ei=(0,Bt.Z)(window.top,"mouseup",Bn,!1),A=(0,Bt.Z)(window.top,"mousemove",xi,!1))}catch($n){(0,pe.Kp)(!1,"[rc-image] ".concat($n))}}return function(){var $n,Fi,Ki,pi;($n=Pn)===null||$n===void 0||$n.remove(),(Fi=gn)===null||Fi===void 0||Fi.remove(),(Ki=Ei)===null||Ki===void 0||Ki.remove(),(pi=A)===null||pi===void 0||pi.remove()}},[Be,ri,hn,Sn,je,zt]),{isMoving:ri,onMouseDown:wi,onMouseMove:xi,onMouseUp:Bn,onWheel:Kn}}function oe(Ee){return new Promise(function(zt){if(!Ee){zt(!1);return}var Be=document.createElement("img");Be.onerror=function(){return zt(!1)},Be.onload=function(){return zt(!0)},Be.src=Ee})}function pn(Ee){var zt=Ee.src,Be=Ee.isCustomPlaceholder,Ge=Ee.fallback,Ie=(0,q.useState)(Be?"loading":"normal"),ze=(0,P.Z)(Ie,2),Cn=ze[0],je=ze[1],bt=(0,q.useRef)(!1),hn=Cn==="error";(0,q.useEffect)(function(){var ri=!0;return oe(zt).then(function(Qn){!Qn&&ri&&je("error")}),function(){ri=!1}},[zt]),(0,q.useEffect)(function(){Be&&!bt.current?je("loading"):hn&&je("normal")},[zt]);var Sn=function(){je("normal")},Jt=function(Qn){bt.current=!1,Cn==="loading"&&Qn!==null&&Qn!==void 0&&Qn.complete&&(Qn.naturalWidth||Qn.naturalHeight)&&(bt.current=!0,Sn())},Hn=hn&&Ge?{src:Ge}:{onLoad:Sn,src:zt};return[Jt,Hn,Cn]}function Ze(Ee,zt){var Be=Ee.x-zt.x,Ge=Ee.y-zt.y;return Math.hypot(Be,Ge)}function Nn(Ee,zt,Be,Ge){var Ie=Ze(Ee,Be),ze=Ze(zt,Ge);if(Ie===0&&ze===0)return[Ee.x,Ee.y];var Cn=Ie/(Ie+ze),je=Ee.x+Cn*(zt.x-Ee.x),bt=Ee.y+Cn*(zt.y-Ee.y);return[je,bt]}function me(Ee,zt,Be,Ge,Ie,ze,Cn){var je=Ie.rotate,bt=Ie.scale,hn=Ie.x,Sn=Ie.y,Jt=(0,q.useState)(!1),Hn=(0,P.Z)(Jt,2),ri=Hn[0],Qn=Hn[1],we=(0,q.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),wi=function(A){we.current=(0,I.Z)((0,I.Z)({},we.current),A)},xi=function(A){if(zt){A.stopPropagation(),Qn(!0);var Pn=A.touches,gn=Pn===void 0?[]:Pn;gn.length>1?wi({point1:{x:gn[0].clientX,y:gn[0].clientY},point2:{x:gn[1].clientX,y:gn[1].clientY},eventType:"touchZoom"}):wi({point1:{x:gn[0].clientX-hn,y:gn[0].clientY-Sn},eventType:"move"})}},Bn=function(A){var Pn=A.touches,gn=Pn===void 0?[]:Pn,$n=we.current,Fi=$n.point1,Ki=$n.point2,pi=$n.eventType;if(gn.length>1&&pi==="touchZoom"){var so={x:gn[0].clientX,y:gn[0].clientY},Zi={x:gn[1].clientX,y:gn[1].clientY},or=Nn(Fi,Ki,so,Zi),Yn=(0,P.Z)(or,2),Mn=Yn[0],fr=Yn[1],Li=Ze(so,Zi)/Ze(Fi,Ki);Cn(Li,"touchZoom",Mn,fr,!0),wi({point1:so,point2:Zi,eventType:"touchZoom"})}else pi==="move"&&(ze({x:gn[0].clientX-Fi.x,y:gn[0].clientY-Fi.y},"move"),wi({eventType:"move"}))},Kn=function(){if(Be){if(ri&&Qn(!1),wi({eventType:"none"}),Ge>bt)return ze({x:0,y:0,scale:Ge},"touchZoom");var A=Ee.current.offsetWidth*bt,Pn=Ee.current.offsetHeight*bt,gn=Ee.current.getBoundingClientRect(),$n=gn.left,Fi=gn.top,Ki=je%180!==0,pi=rt(Ki?Pn:A,Ki?A:Pn,$n,Fi);pi&&ze((0,I.Z)({},pi),"dragRebound")}};return(0,q.useEffect)(function(){var Ei;return Be&&zt&&(Ei=(0,Bt.Z)(window,"touchmove",function(A){return A.preventDefault()},{passive:!1})),function(){var A;(A=Ei)===null||A===void 0||A.remove()}},[Be,zt]),{isTouching:ri,onTouchStart:xi,onTouchMove:Bn,onTouchEnd:Kn}}var on=["fallback","src","imgRef"],un=["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"],Ln=function(zt){var Be=zt.fallback,Ge=zt.src,Ie=zt.imgRef,ze=(0,C.Z)(zt,on),Cn=pn({src:Ge,fallback:Be}),je=(0,P.Z)(Cn,2),bt=je[0],hn=je[1];return q.createElement("img",(0,E.Z)({ref:function(Jt){Ie.current=Jt,bt(Jt)}},ze,hn))},Dn=function(zt){var Be=zt.prefixCls,Ge=zt.src,Ie=zt.alt,ze=zt.imageInfo,Cn=zt.fallback,je=zt.movable,bt=je===void 0?!0:je,hn=zt.onClose,Sn=zt.visible,Jt=zt.icons,Hn=Jt===void 0?{}:Jt,ri=zt.rootClassName,Qn=zt.closeIcon,we=zt.getContainer,wi=zt.current,xi=wi===void 0?0:wi,Bn=zt.count,Kn=Bn===void 0?1:Bn,Ei=zt.countRender,A=zt.scaleStep,Pn=A===void 0?.5:A,gn=zt.minScale,$n=gn===void 0?1:gn,Fi=zt.maxScale,Ki=Fi===void 0?50:Fi,pi=zt.transitionName,so=pi===void 0?"zoom":pi,Zi=zt.maskTransitionName,or=Zi===void 0?"fade":Zi,Yn=zt.imageRender,Mn=zt.imgCommonProps,fr=zt.toolbarRender,Li=zt.onTransform,Xi=zt.onChange,sn=(0,C.Z)(zt,un),zn=(0,q.useRef)(),Wi=(0,q.useContext)(gt),Ur=Wi&&Kn>1,Nr=Wi&&Kn>=1,Et=(0,q.useState)(!0),Wt=(0,P.Z)(Et,2),rn=Wt[0],cn=Wt[1],Ut=re(zn,$n,Ki,Li),Ye=Ut.transform,kn=Ut.resetTransform,te=Ut.updateTransform,R=Ut.dispatchZoomChange,bn=ce(zn,bt,Sn,Pn,Ye,te,R),En=bn.isMoving,ve=bn.onMouseDown,li=bn.onWheel,Wn=me(zn,bt,Sn,$n,Ye,te,R),ni=Wn.isTouching,yn=Wn.onTouchStart,jt=Wn.onTouchMove,ui=Wn.onTouchEnd,Ir=Ye.rotate,xe=Ye.scale,xr=lt()((0,D.Z)({},"".concat(Be,"-moving"),En));(0,q.useEffect)(function(){rn||cn(!0)},[rn]);var Lr=function(){kn("close")},Ai=function(){R(Q+Pn,"zoomIn")},Rr=function(){R(Q/(Q+Pn),"zoomOut")},nr=function(){te({rotate:Ir+90},"rotateRight")},sr=function(){te({rotate:Ir-90},"rotateLeft")},ji=function(){te({flipX:!Ye.flipX},"flipX")},qi=function(){te({flipY:!Ye.flipY},"flipY")},ir=function(){kn("reset")},Te=function(pr){var Bi=xi+pr;!Number.isInteger(Bi)||Bi<0||Bi>Kn-1||(cn(!1),kn(pr<0?"prev":"next"),Xi==null||Xi(Bi,xi))},cr=function(pr){!Sn||!Ur||(pr.keyCode===pt.Z.LEFT?Te(-1):pr.keyCode===pt.Z.RIGHT&&Te(1))},Ce=function(pr){Sn&&(xe!==1?te({x:0,y:0,scale:1},"doubleClick"):R(Q+Pn,"doubleClick",pr.clientX,pr.clientY))};(0,q.useEffect)(function(){var gi=(0,Bt.Z)(window,"keydown",cr,!1);return function(){gi.remove()}},[Sn,Ur,xi]);var Gn=q.createElement(Ln,(0,E.Z)({},Mn,{width:zt.width,height:zt.height,imgRef:zn,className:"".concat(Be,"-img"),alt:Ie,style:{transform:"translate3d(".concat(Ye.x,"px, ").concat(Ye.y,"px, 0) scale3d(").concat(Ye.flipX?"-":"").concat(xe,", ").concat(Ye.flipY?"-":"").concat(xe,", 1) rotate(").concat(Ir,"deg)"),transitionDuration:(!rn||ni)&&"0s"},fallback:Cn,src:Ge,onWheel:li,onMouseDown:ve,onDoubleClick:Ce,onTouchStart:yn,onTouchMove:jt,onTouchEnd:ui,onTouchCancel:ui})),Ri=(0,I.Z)({url:Ge,alt:Ie},ze);return q.createElement(q.Fragment,null,q.createElement(wt.Z,(0,E.Z)({transitionName:so,maskTransitionName:or,closable:!1,keyboard:!0,prefixCls:Be,onClose:hn,visible:Sn,classNames:{wrapper:xr},rootClassName:ri,getContainer:we},sn,{afterClose:Lr}),q.createElement("div",{className:"".concat(Be,"-img-wrapper")},Yn?Yn(Gn,(0,I.Z)({transform:Ye,image:Ri},Wi?{current:xi}:{})):Gn)),q.createElement(kt,{visible:Sn,transform:Ye,maskTransitionName:or,closeIcon:Qn,getContainer:we,prefixCls:Be,rootClassName:ri,icons:Hn,countRender:Ei,showSwitch:Ur,showProgress:Nr,current:xi,count:Kn,scale:xe,minScale:$n,maxScale:Ki,toolbarRender:fr,onActive:Te,onZoomIn:Ai,onZoomOut:Rr,onRotateRight:nr,onRotateLeft:sr,onFlipX:ji,onFlipY:qi,onClose:hn,onReset:ir,zIndex:sn.zIndex!==void 0?sn.zIndex+1:void 0,image:Ri}))},K=Dn,O=p(15142),k=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function H(Ee){var zt=q.useState({}),Be=(0,P.Z)(zt,2),Ge=Be[0],Ie=Be[1],ze=q.useCallback(function(je,bt){return Ie(function(hn){return(0,I.Z)((0,I.Z)({},hn),{},(0,D.Z)({},je,bt))}),function(){Ie(function(hn){var Sn=(0,I.Z)({},hn);return delete Sn[je],Sn})}},[]),Cn=q.useMemo(function(){return Ee?Ee.map(function(je){if(typeof je=="string")return{data:{src:je}};var bt={};return Object.keys(je).forEach(function(hn){["src"].concat((0,O.Z)(k)).includes(hn)&&(bt[hn]=je[hn])}),{data:bt}}):Object.keys(Ge).reduce(function(je,bt){var hn=Ge[bt],Sn=hn.canPreview,Jt=hn.data;return Sn&&je.push({data:Jt,id:bt}),je},[])},[Ee,Ge]);return[Cn,ze,!!Ee]}var tt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],_=["src"],at=function(zt){var Be,Ge=zt.previewPrefixCls,Ie=Ge===void 0?"rc-image-preview":Ge,ze=zt.children,Cn=zt.icons,je=Cn===void 0?{}:Cn,bt=zt.items,hn=zt.preview,Sn=zt.fallback,Jt=(0,V.Z)(hn)==="object"?hn:{},Hn=Jt.visible,ri=Jt.onVisibleChange,Qn=Jt.getContainer,we=Jt.current,wi=Jt.movable,xi=Jt.minScale,Bn=Jt.maxScale,Kn=Jt.countRender,Ei=Jt.closeIcon,A=Jt.onChange,Pn=Jt.onTransform,gn=Jt.toolbarRender,$n=Jt.imageRender,Fi=(0,C.Z)(Jt,tt),Ki=H(bt),pi=(0,P.Z)(Ki,3),so=pi[0],Zi=pi[1],or=pi[2],Yn=(0,st.Z)(0,{value:we}),Mn=(0,P.Z)(Yn,2),fr=Mn[0],Li=Mn[1],Xi=(0,q.useState)(!1),sn=(0,P.Z)(Xi,2),zn=sn[0],Wi=sn[1],Ur=((Be=so[fr])===null||Be===void 0?void 0:Be.data)||{},Nr=Ur.src,Et=(0,C.Z)(Ur,_),Wt=(0,st.Z)(!!Hn,{value:Hn,onChange:function(ni,yn){ri==null||ri(ni,yn,fr)}}),rn=(0,P.Z)(Wt,2),cn=rn[0],Ut=rn[1],Ye=(0,q.useState)(null),kn=(0,P.Z)(Ye,2),te=kn[0],R=kn[1],bn=q.useCallback(function(Wn,ni,yn,jt){var ui=or?so.findIndex(function(Ir){return Ir.data.src===ni}):so.findIndex(function(Ir){return Ir.id===Wn});Li(ui<0?0:ui),Ut(!0),R({x:yn,y:jt}),Wi(!0)},[so,or]);q.useEffect(function(){cn?zn||Li(0):Wi(!1)},[cn]);var En=function(ni,yn){Li(ni),A==null||A(ni,yn)},ve=function(){Ut(!1),R(null)},li=q.useMemo(function(){return{register:Zi,onPreview:bn}},[Zi,bn]);return q.createElement(gt.Provider,{value:li},ze,q.createElement(K,(0,E.Z)({"aria-hidden":!cn,movable:wi,visible:cn,prefixCls:Ie,closeIcon:Ei,onClose:ve,mousePosition:te,imgCommonProps:Et,src:Nr,fallback:Sn,icons:je,minScale:xi,maxScale:Bn,getContainer:Qn,current:fr,count:so.length,countRender:Kn,onTransform:Pn,toolbarRender:gn,imageRender:$n,onChange:En},Fi)))},se=at,Ve=0;function Ke(Ee,zt){var Be=q.useState(function(){return Ve+=1,String(Ve)}),Ge=(0,P.Z)(Be,1),Ie=Ge[0],ze=q.useContext(gt),Cn={data:zt,canPreview:Ee};return q.useEffect(function(){if(ze)return ze.register(Ie,Cn)},[]),q.useEffect(function(){ze&&ze.register(Ie,Cn)},[Ee,zt]),Ie}var qt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],he=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],de=function(zt){var Be=zt.src,Ge=zt.alt,Ie=zt.onPreviewClose,ze=zt.prefixCls,Cn=ze===void 0?"rc-image":ze,je=zt.previewPrefixCls,bt=je===void 0?"".concat(Cn,"-preview"):je,hn=zt.placeholder,Sn=zt.fallback,Jt=zt.width,Hn=zt.height,ri=zt.style,Qn=zt.preview,we=Qn===void 0?!0:Qn,wi=zt.className,xi=zt.onClick,Bn=zt.onError,Kn=zt.wrapperClassName,Ei=zt.wrapperStyle,A=zt.rootClassName,Pn=(0,C.Z)(zt,qt),gn=hn&&hn!==!0,$n=(0,V.Z)(we)==="object"?we:{},Fi=$n.src,Ki=$n.visible,pi=Ki===void 0?void 0:Ki,so=$n.onVisibleChange,Zi=so===void 0?Ie:so,or=$n.getContainer,Yn=or===void 0?void 0:or,Mn=$n.mask,fr=$n.maskClassName,Li=$n.movable,Xi=$n.icons,sn=$n.scaleStep,zn=$n.minScale,Wi=$n.maxScale,Ur=$n.imageRender,Nr=$n.toolbarRender,Et=(0,C.Z)($n,he),Wt=Fi!=null?Fi:Be,rn=(0,st.Z)(!!pi,{value:pi,onChange:Zi}),cn=(0,P.Z)(rn,2),Ut=cn[0],Ye=cn[1],kn=pn({src:Be,isCustomPlaceholder:gn,fallback:Sn}),te=(0,P.Z)(kn,3),R=te[0],bn=te[1],En=te[2],ve=(0,q.useState)(null),li=(0,P.Z)(ve,2),Wn=li[0],ni=li[1],yn=(0,q.useContext)(gt),jt=!!we,ui=function(){Ye(!1),ni(null)},Ir=lt()(Cn,Kn,A,(0,D.Z)({},"".concat(Cn,"-error"),En==="error")),xe=(0,q.useMemo)(function(){var Rr={};return k.forEach(function(nr){zt[nr]!==void 0&&(Rr[nr]=zt[nr])}),Rr},k.map(function(Rr){return zt[Rr]})),xr=(0,q.useMemo)(function(){return(0,I.Z)((0,I.Z)({},xe),{},{src:Wt})},[Wt,xe]),Lr=Ke(jt,xr),Ai=function(nr){var sr=ot(nr.target),ji=sr.left,qi=sr.top;yn?yn.onPreview(Lr,Wt,ji,qi):(ni({x:ji,y:qi}),Ye(!0)),xi==null||xi(nr)};return q.createElement(q.Fragment,null,q.createElement("div",(0,E.Z)({},Pn,{className:Ir,onClick:jt?Ai:xi,style:(0,I.Z)({width:Jt,height:Hn},Ei)}),q.createElement("img",(0,E.Z)({},xe,{className:lt()("".concat(Cn,"-img"),(0,D.Z)({},"".concat(Cn,"-img-placeholder"),hn===!0),wi),style:(0,I.Z)({height:Hn},ri),ref:R},bn,{width:Jt,height:Hn,onError:Bn})),En==="loading"&&q.createElement("div",{"aria-hidden":"true",className:"".concat(Cn,"-placeholder")},hn),Mn&&jt&&q.createElement("div",{className:lt()("".concat(Cn,"-mask"),fr),style:{display:(ri==null?void 0:ri.display)==="none"?"none":void 0}},Mn)),!yn&&jt&&q.createElement(K,(0,E.Z)({"aria-hidden":!Ut,visible:Ut,prefixCls:bt,onClose:ui,mousePosition:Wn,src:Wt,alt:Ge,imageInfo:{width:Jt,height:Hn},fallback:Sn,getContainer:Yn,icons:Xi,movable:Li,scaleStep:sn,minScale:zn,maxScale:Wi,rootClassName:A,imageRender:Ur,imgCommonProps:xe,toolbarRender:Nr},Et)))};de.PreviewGroup=se;var Fe=de,$e=Fe},23425:function(j,S,p){"use strict";p.d(S,{Z:function(){return wt}});var E=p(52873),I=p(67711),D=p(26420),P=p(98506),V=p(16886),C=p(92310),Z=p.n(C),lt=p(18929),J=p(10228),Y=p(26112),Mt=p(48736),ct=p(59301),$t=p(17119),Ft=[10,20,50,100],_t=function(pt){var Ht=pt.pageSizeOptions,At=Ht===void 0?Ft:Ht,gt=pt.locale,Pt=pt.changeSize,kt=pt.pageSize,Gt=pt.goButton,ue=pt.quickGo,le=pt.rootPrefixCls,re=pt.disabled,pe=pt.buildOptionText,Dt=pt.showSizeChanger,rt=pt.sizeChangerRender,Q=ct.useState(""),ie=(0,V.Z)(Q,2),ce=ie[0],oe=ie[1],pn=function(){return!ce||Number.isNaN(ce)?void 0:Number(ce)},Ze=typeof pe=="function"?pe:function(k){return"".concat(k," ").concat(gt.items_per_page)},Nn=function(H){oe(H.target.value)},me=function(H){Gt||ce===""||(oe(""),!(H.relatedTarget&&(H.relatedTarget.className.indexOf("".concat(le,"-item-link"))>=0||H.relatedTarget.className.indexOf("".concat(le,"-item"))>=0))&&(ue==null||ue(pn())))},on=function(H){ce!==""&&(H.keyCode===J.Z.ENTER||H.type==="click")&&(oe(""),ue==null||ue(pn()))},un=function(){return At.some(function(H){return H.toString()===kt.toString()})?At:At.concat([kt]).sort(function(H,tt){var _=Number.isNaN(Number(H))?0:Number(H),at=Number.isNaN(Number(tt))?0:Number(tt);return _-at})},Ln="".concat(le,"-options");if(!Dt&&!ue)return null;var Dn=null,K=null,O=null;return Dt&&rt&&(Dn=rt({disabled:re,size:kt,onSizeChange:function(H){Pt==null||Pt(Number(H))},"aria-label":gt.page_size,className:"".concat(Ln,"-size-changer"),options:un().map(function(k){return{label:Ze(k),value:k}})})),ue&&(Gt&&(O=typeof Gt=="boolean"?ct.createElement("button",{type:"button",onClick:on,onKeyUp:on,disabled:re,className:"".concat(Ln,"-quick-jumper-button")},gt.jump_to_confirm):ct.createElement("span",{onClick:on,onKeyUp:on},Gt)),K=ct.createElement("div",{className:"".concat(Ln,"-quick-jumper")},gt.jump_to,ct.createElement("input",{disabled:re,type:"text",value:ce,onChange:Nn,onKeyUp:on,onBlur:me,"aria-label":gt.page}),gt.page,O)),ct.createElement("li",{className:Ln},Dn,K)},Ct=_t,xt=function(pt){var Ht=pt.rootPrefixCls,At=pt.page,gt=pt.active,Pt=pt.className,kt=pt.showTitle,Gt=pt.onClick,ue=pt.onKeyPress,le=pt.itemRender,re="".concat(Ht,"-item"),pe=Z()(re,"".concat(re,"-").concat(At),(0,E.Z)((0,E.Z)({},"".concat(re,"-active"),gt),"".concat(re,"-disabled"),!At),Pt),Dt=function(){Gt(At)},rt=function(ce){ue(ce,Gt,At)},Q=le(At,"page",ct.createElement("a",{rel:"nofollow"},At));return Q?ct.createElement("li",{title:kt?String(At):null,className:pe,onClick:Dt,onKeyDown:rt,tabIndex:0},Q):null},St=xt,ft=function(pt,Ht,At){return At};function vt(){}function ot(Bt){var pt=Number(Bt);return typeof pt=="number"&&!Number.isNaN(pt)&&isFinite(pt)&&Math.floor(pt)===pt}function st(Bt,pt,Ht){var At=typeof Bt=="undefined"?pt:Bt;return Math.floor((Ht-1)/At)+1}var q=function(pt){var Ht=pt.prefixCls,At=Ht===void 0?"rc-pagination":Ht,gt=pt.selectPrefixCls,Pt=gt===void 0?"rc-select":gt,kt=pt.className,Gt=pt.current,ue=pt.defaultCurrent,le=ue===void 0?1:ue,re=pt.total,pe=re===void 0?0:re,Dt=pt.pageSize,rt=pt.defaultPageSize,Q=rt===void 0?10:rt,ie=pt.onChange,ce=ie===void 0?vt:ie,oe=pt.hideOnSinglePage,pn=pt.align,Ze=pt.showPrevNextJumpers,Nn=Ze===void 0?!0:Ze,me=pt.showQuickJumper,on=pt.showLessItems,un=pt.showTitle,Ln=un===void 0?!0:un,Dn=pt.onShowSizeChange,K=Dn===void 0?vt:Dn,O=pt.locale,k=O===void 0?$t.Z:O,H=pt.style,tt=pt.totalBoundaryShowSizeChanger,_=tt===void 0?50:tt,at=pt.disabled,se=pt.simple,Ve=pt.showTotal,Ke=pt.showSizeChanger,qt=Ke===void 0?pe>_:Ke,he=pt.sizeChangerRender,de=pt.pageSizeOptions,Fe=pt.itemRender,$e=Fe===void 0?ft:Fe,Ee=pt.jumpPrevIcon,zt=pt.jumpNextIcon,Be=pt.prevIcon,Ge=pt.nextIcon,Ie=ct.useRef(null),ze=(0,lt.Z)(10,{value:Dt,defaultValue:Q}),Cn=(0,V.Z)(ze,2),je=Cn[0],bt=Cn[1],hn=(0,lt.Z)(1,{value:Gt,defaultValue:le,postState:function(Ri){return Math.max(1,Math.min(Ri,st(void 0,je,pe)))}}),Sn=(0,V.Z)(hn,2),Jt=Sn[0],Hn=Sn[1],ri=ct.useState(Jt),Qn=(0,V.Z)(ri,2),we=Qn[0],wi=Qn[1];(0,ct.useEffect)(function(){wi(Jt)},[Jt]);var xi=ce!==vt,Bn="current"in pt,Kn=Math.max(1,Jt-(on?3:5)),Ei=Math.min(st(void 0,je,pe),Jt+(on?3:5));function A(Gn,Ri){var gi=Gn||ct.createElement("button",{type:"button","aria-label":Ri,className:"".concat(At,"-item-link")});return typeof Gn=="function"&&(gi=ct.createElement(Gn,(0,P.Z)({},pt))),gi}function Pn(Gn){var Ri=Gn.target.value,gi=st(void 0,je,pe),pr;return Ri===""?pr=Ri:Number.isNaN(Number(Ri))?pr=we:Ri>=gi?pr=gi:pr=Number(Ri),pr}function gn(Gn){return ot(Gn)&&Gn!==Jt&&ot(pe)&&pe>0}var $n=pe>je?me:!1;function Fi(Gn){(Gn.keyCode===J.Z.UP||Gn.keyCode===J.Z.DOWN)&&Gn.preventDefault()}function Ki(Gn){var Ri=Pn(Gn);switch(Ri!==we&&wi(Ri),Gn.keyCode){case J.Z.ENTER:Zi(Ri);break;case J.Z.UP:Zi(Ri-1);break;case J.Z.DOWN:Zi(Ri+1);break;default:break}}function pi(Gn){Zi(Pn(Gn))}function so(Gn){var Ri=st(Gn,je,pe),gi=Jt>Ri&&Ri!==0?Ri:Jt;bt(Gn),wi(gi),K==null||K(Jt,Gn),Hn(gi),ce==null||ce(gi,Gn)}function Zi(Gn){if(gn(Gn)&&!at){var Ri=st(void 0,je,pe),gi=Gn;return Gn>Ri?gi=Ri:Gn<1&&(gi=1),gi!==we&&wi(gi),Hn(gi),ce==null||ce(gi,je),gi}return Jt}var or=Jt>1,Yn=Jt<st(void 0,je,pe);function Mn(){or&&Zi(Jt-1)}function fr(){Yn&&Zi(Jt+1)}function Li(){Zi(Kn)}function Xi(){Zi(Ei)}function sn(Gn,Ri){if(Gn.key==="Enter"||Gn.charCode===J.Z.ENTER||Gn.keyCode===J.Z.ENTER){for(var gi=arguments.length,pr=new Array(gi>2?gi-2:0),Bi=2;Bi<gi;Bi++)pr[Bi-2]=arguments[Bi];Ri.apply(void 0,pr)}}function zn(Gn){sn(Gn,Mn)}function Wi(Gn){sn(Gn,fr)}function Ur(Gn){sn(Gn,Li)}function Nr(Gn){sn(Gn,Xi)}function Et(Gn){var Ri=$e(Gn,"prev",A(Be,"prev page"));return ct.isValidElement(Ri)?ct.cloneElement(Ri,{disabled:!or}):Ri}function Wt(Gn){var Ri=$e(Gn,"next",A(Ge,"next page"));return ct.isValidElement(Ri)?ct.cloneElement(Ri,{disabled:!Yn}):Ri}function rn(Gn){(Gn.type==="click"||Gn.keyCode===J.Z.ENTER)&&Zi(we)}var cn=null,Ut=(0,Y.Z)(pt,{aria:!0,data:!0}),Ye=Ve&&ct.createElement("li",{className:"".concat(At,"-total-text")},Ve(pe,[pe===0?0:(Jt-1)*je+1,Jt*je>pe?pe:Jt*je])),kn=null,te=st(void 0,je,pe);if(oe&&pe<=je)return null;var R=[],bn={rootPrefixCls:At,onClick:Zi,onKeyPress:sn,showTitle:Ln,itemRender:$e,page:-1},En=Jt-1>0?Jt-1:0,ve=Jt+1<te?Jt+1:te,li=me&&me.goButton,Wn=(0,D.Z)(se)==="object"?se.readOnly:!se,ni=li,yn=null;se&&(li&&(typeof li=="boolean"?ni=ct.createElement("button",{type:"button",onClick:rn,onKeyUp:rn},k.jump_to_confirm):ni=ct.createElement("span",{onClick:rn,onKeyUp:rn},li),ni=ct.createElement("li",{title:Ln?"".concat(k.jump_to).concat(Jt,"/").concat(te):null,className:"".concat(At,"-simple-pager")},ni)),yn=ct.createElement("li",{title:Ln?"".concat(Jt,"/").concat(te):null,className:"".concat(At,"-simple-pager")},Wn?we:ct.createElement("input",{type:"text","aria-label":k.jump_to,value:we,disabled:at,onKeyDown:Fi,onKeyUp:Ki,onChange:Ki,onBlur:pi,size:3}),ct.createElement("span",{className:"".concat(At,"-slash")},"/"),te));var jt=on?1:2;if(te<=3+jt*2){te||R.push(ct.createElement(St,(0,I.Z)({},bn,{key:"noPager",page:1,className:"".concat(At,"-item-disabled")})));for(var ui=1;ui<=te;ui+=1)R.push(ct.createElement(St,(0,I.Z)({},bn,{key:ui,page:ui,active:Jt===ui})))}else{var Ir=on?k.prev_3:k.prev_5,xe=on?k.next_3:k.next_5,xr=$e(Kn,"jump-prev",A(Ee,"prev page")),Lr=$e(Ei,"jump-next",A(zt,"next page"));Nn&&(cn=xr?ct.createElement("li",{title:Ln?Ir:null,key:"prev",onClick:Li,tabIndex:0,onKeyDown:Ur,className:Z()("".concat(At,"-jump-prev"),(0,E.Z)({},"".concat(At,"-jump-prev-custom-icon"),!!Ee))},xr):null,kn=Lr?ct.createElement("li",{title:Ln?xe:null,key:"next",onClick:Xi,tabIndex:0,onKeyDown:Nr,className:Z()("".concat(At,"-jump-next"),(0,E.Z)({},"".concat(At,"-jump-next-custom-icon"),!!zt))},Lr):null);var Ai=Math.max(1,Jt-jt),Rr=Math.min(Jt+jt,te);Jt-1<=jt&&(Rr=1+jt*2),te-Jt<=jt&&(Ai=te-jt*2);for(var nr=Ai;nr<=Rr;nr+=1)R.push(ct.createElement(St,(0,I.Z)({},bn,{key:nr,page:nr,active:Jt===nr})));if(Jt-1>=jt*2&&Jt!==3&&(R[0]=ct.cloneElement(R[0],{className:Z()("".concat(At,"-item-after-jump-prev"),R[0].props.className)}),R.unshift(cn)),te-Jt>=jt*2&&Jt!==te-2){var sr=R[R.length-1];R[R.length-1]=ct.cloneElement(sr,{className:Z()("".concat(At,"-item-before-jump-next"),sr.props.className)}),R.push(kn)}Ai!==1&&R.unshift(ct.createElement(St,(0,I.Z)({},bn,{key:1,page:1}))),Rr!==te&&R.push(ct.createElement(St,(0,I.Z)({},bn,{key:te,page:te})))}var ji=Et(En);if(ji){var qi=!or||!te;ji=ct.createElement("li",{title:Ln?k.prev_page:null,onClick:Mn,tabIndex:qi?null:0,onKeyDown:zn,className:Z()("".concat(At,"-prev"),(0,E.Z)({},"".concat(At,"-disabled"),qi)),"aria-disabled":qi},ji)}var ir=Wt(ve);if(ir){var Te,cr;se?(Te=!Yn,cr=or?0:null):(Te=!Yn||!te,cr=Te?null:0),ir=ct.createElement("li",{title:Ln?k.next_page:null,onClick:fr,tabIndex:cr,onKeyDown:Wi,className:Z()("".concat(At,"-next"),(0,E.Z)({},"".concat(At,"-disabled"),Te)),"aria-disabled":Te},ir)}var Ce=Z()(At,kt,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(At,"-start"),pn==="start"),"".concat(At,"-center"),pn==="center"),"".concat(At,"-end"),pn==="end"),"".concat(At,"-simple"),se),"".concat(At,"-disabled"),at));return ct.createElement("ul",(0,I.Z)({className:Ce,style:H,ref:Ie},Ut),Ye,ji,se?yn:R,ir,ct.createElement(Ct,{locale:k,rootPrefixCls:At,disabled:at,selectPrefixCls:Pt,changeSize:so,pageSize:je,pageSizeOptions:de,quickGo:$n?Zi:null,goButton:ni,showSizeChanger:qt,sizeChangerRender:he}))},wt=q},25930:function(j,S,p){"use strict";p.d(S,{Cd:function(){return At}});var E=p(67711),I=p(98506),D=p(33346),P=p(59301),V=p(92310),C=p.n(V),Z={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},lt=function(){var kt=(0,P.useRef)([]),Gt=(0,P.useRef)(null);return(0,P.useEffect)(function(){var ue=Date.now(),le=!1;kt.current.forEach(function(re){if(re){le=!0;var pe=re.style;pe.transitionDuration=".3s, .3s, .3s, .06s",Gt.current&&ue-Gt.current<100&&(pe.transitionDuration="0s, 0s")}}),le&&(Gt.current=Date.now())}),kt.current},J=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Y=function(kt){var Gt=(0,I.Z)((0,I.Z)({},Z),kt),ue=Gt.className,le=Gt.percent,re=Gt.prefixCls,pe=Gt.strokeColor,Dt=Gt.strokeLinecap,rt=Gt.strokeWidth,Q=Gt.style,ie=Gt.trailColor,ce=Gt.trailWidth,oe=Gt.transition,pn=(0,D.Z)(Gt,J);delete pn.gapPosition;var Ze=Array.isArray(le)?le:[le],Nn=Array.isArray(pe)?pe:[pe],me=lt(),on=rt/2,un=100-rt/2,Ln="M ".concat(Dt==="round"?on:0,",").concat(on,`
|
|
|
L `).concat(Dt==="round"?un:100,",").concat(on),Dn="0 0 100 ".concat(rt),K=0;return P.createElement("svg",(0,E.Z)({className:C()("".concat(re,"-line"),ue),viewBox:Dn,preserveAspectRatio:"none",style:Q},pn),P.createElement("path",{className:"".concat(re,"-line-trail"),d:Ln,strokeLinecap:Dt,stroke:ie,strokeWidth:ce||rt,fillOpacity:"0"}),Ze.map(function(O,k){var H=1;switch(Dt){case"round":H=1-rt/100;break;case"square":H=1-rt/2/100;break;default:H=1;break}var tt={strokeDasharray:"".concat(O*H,"px, 100px"),strokeDashoffset:"-".concat(K,"px"),transition:oe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_=Nn[k]||Nn[Nn.length-1];return K+=O,P.createElement("path",{key:k,className:"".concat(re,"-line-path"),d:Ln,strokeLinecap:Dt,stroke:_,strokeWidth:rt,fillOpacity:"0",ref:function(se){me[k]=se},style:tt})}))},Mt=Y,ct=p(26420),$t=p(16886),Ft=p(47273),_t=0,Ct=(0,Ft.Z)();function xt(){var Pt;return Ct?(Pt=_t,_t+=1):Pt="TEST_OR_SSR",Pt}var St=function(Pt){var kt=P.useState(),Gt=(0,$t.Z)(kt,2),ue=Gt[0],le=Gt[1];return P.useEffect(function(){le("rc_progress_".concat(xt()))},[]),Pt||ue},ft=function(kt){var Gt=kt.bg,ue=kt.children;return P.createElement("div",{style:{width:"100%",height:"100%",background:Gt}},ue)};function vt(Pt,kt){return Object.keys(Pt).map(function(Gt){var ue=parseFloat(Gt),le="".concat(Math.floor(ue*kt),"%");return"".concat(Pt[Gt]," ").concat(le)})}var ot=P.forwardRef(function(Pt,kt){var Gt=Pt.prefixCls,ue=Pt.color,le=Pt.gradientId,re=Pt.radius,pe=Pt.style,Dt=Pt.ptg,rt=Pt.strokeLinecap,Q=Pt.strokeWidth,ie=Pt.size,ce=Pt.gapDegree,oe=ue&&(0,ct.Z)(ue)==="object",pn=oe?"#FFF":void 0,Ze=ie/2,Nn=P.createElement("circle",{className:"".concat(Gt,"-circle-path"),r:re,cx:Ze,cy:Ze,stroke:pn,strokeLinecap:rt,strokeWidth:Q,opacity:Dt===0?0:1,style:pe,ref:kt});if(!oe)return Nn;var me="".concat(le,"-conic"),on=ce?"".concat(180+ce/2,"deg"):"0deg",un=vt(ue,(360-ce)/360),Ln=vt(ue,1),Dn="conic-gradient(from ".concat(on,", ").concat(un.join(", "),")"),K="linear-gradient(to ".concat(ce?"bottom":"top",", ").concat(Ln.join(", "),")");return P.createElement(P.Fragment,null,P.createElement("mask",{id:me},Nn),P.createElement("foreignObject",{x:0,y:0,width:ie,height:ie,mask:"url(#".concat(me,")")},P.createElement(ft,{bg:K},P.createElement(ft,{bg:Dn}))))}),st=ot,q=100,wt=function(kt,Gt,ue,le,re,pe,Dt,rt,Q,ie){var ce=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,oe=ue/100*360*((360-pe)/360),pn=pe===0?0:{bottom:0,top:180,left:90,right:-90}[Dt],Ze=(100-le)/100*Gt;Q==="round"&&le!==100&&(Ze+=ie/2,Ze>=Gt&&(Ze=Gt-.01));var Nn=q/2;return{stroke:typeof rt=="string"?rt:void 0,strokeDasharray:"".concat(Gt,"px ").concat(kt),strokeDashoffset:Ze+ce,transform:"rotate(".concat(re+oe+pn,"deg)"),transformOrigin:"".concat(Nn,"px ").concat(Nn,"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}},Bt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function pt(Pt){var kt=Pt!=null?Pt:[];return Array.isArray(kt)?kt:[kt]}var Ht=function(kt){var Gt=(0,I.Z)((0,I.Z)({},Z),kt),ue=Gt.id,le=Gt.prefixCls,re=Gt.steps,pe=Gt.strokeWidth,Dt=Gt.trailWidth,rt=Gt.gapDegree,Q=rt===void 0?0:rt,ie=Gt.gapPosition,ce=Gt.trailColor,oe=Gt.strokeLinecap,pn=Gt.style,Ze=Gt.className,Nn=Gt.strokeColor,me=Gt.percent,on=(0,D.Z)(Gt,Bt),un=q/2,Ln=St(ue),Dn="".concat(Ln,"-gradient"),K=un-pe/2,O=Math.PI*2*K,k=Q>0?90+Q/2:-90,H=O*((360-Q)/360),tt=(0,ct.Z)(re)==="object"?re:{count:re,gap:2},_=tt.count,at=tt.gap,se=pt(me),Ve=pt(Nn),Ke=Ve.find(function(zt){return zt&&(0,ct.Z)(zt)==="object"}),qt=Ke&&(0,ct.Z)(Ke)==="object",he=qt?"butt":oe,de=wt(O,H,0,100,k,Q,ie,ce,he,pe),Fe=lt(),$e=function(){var Be=0;return se.map(function(Ge,Ie){var ze=Ve[Ie]||Ve[Ve.length-1],Cn=wt(O,H,Be,Ge,k,Q,ie,ze,he,pe);return Be+=Ge,P.createElement(st,{key:Ie,color:ze,ptg:Ge,radius:K,prefixCls:le,gradientId:Dn,style:Cn,strokeLinecap:he,strokeWidth:pe,gapDegree:Q,ref:function(bt){Fe[Ie]=bt},size:q})}).reverse()},Ee=function(){var Be=Math.round(_*(se[0]/100)),Ge=100/_,Ie=0;return new Array(_).fill(null).map(function(ze,Cn){var je=Cn<=Be-1?Ve[0]:ce,bt=je&&(0,ct.Z)(je)==="object"?"url(#".concat(Dn,")"):void 0,hn=wt(O,H,Ie,Ge,k,Q,ie,je,"butt",pe,at);return Ie+=(H-hn.strokeDashoffset+at)*100/H,P.createElement("circle",{key:Cn,className:"".concat(le,"-circle-path"),r:K,cx:un,cy:un,stroke:bt,strokeWidth:pe,opacity:1,style:hn,ref:function(Jt){Fe[Cn]=Jt}})})};return P.createElement("svg",(0,E.Z)({className:C()("".concat(le,"-circle"),Ze),viewBox:"0 0 ".concat(q," ").concat(q),style:pn,id:ue,role:"presentation"},on),!_&&P.createElement("circle",{className:"".concat(le,"-circle-trail"),r:K,cx:un,cy:un,stroke:ce,strokeLinecap:he,strokeWidth:Dt||pe,style:de}),_?Ee():$e())},At=Ht,gt={Line:Mt,Circle:At}},738:function(j,S,p){"use strict";p.d(S,{Z:function(){return vt}});var E=p(67711),I=p(52873),D=p(16886),P=p(33346),V=p(92310),C=p.n(V),Z=p(18929),lt=p(10228),J=p(26112),Y=p(59301);function Mt(ot,st){var q=ot.disabled,wt=ot.prefixCls,Bt=ot.character,pt=ot.characterRender,Ht=ot.index,At=ot.count,gt=ot.value,Pt=ot.allowHalf,kt=ot.focused,Gt=ot.onHover,ue=ot.onClick,le=function(oe){Gt(oe,Ht)},re=function(oe){ue(oe,Ht)},pe=function(oe){oe.keyCode===lt.Z.ENTER&&ue(oe,Ht)},Dt=Ht+1,rt=new Set([wt]);gt===0&&Ht===0&&kt?rt.add("".concat(wt,"-focused")):Pt&>+.5>=Dt&><Dt?(rt.add("".concat(wt,"-half")),rt.add("".concat(wt,"-active")),kt&&rt.add("".concat(wt,"-focused"))):(Dt<=gt?rt.add("".concat(wt,"-full")):rt.add("".concat(wt,"-zero")),Dt===gt&&kt&&rt.add("".concat(wt,"-focused")));var Q=typeof Bt=="function"?Bt(ot):Bt,ie=Y.createElement("li",{className:C()(Array.from(rt)),ref:st},Y.createElement("div",{onClick:q?null:re,onKeyDown:q?null:pe,onMouseMove:q?null:le,role:"radio","aria-checked":gt>Ht?"true":"false","aria-posinset":Ht+1,"aria-setsize":At,tabIndex:q?-1:0},Y.createElement("div",{className:"".concat(wt,"-first")},Q),Y.createElement("div",{className:"".concat(wt,"-second")},Q)));return pt&&(ie=pt(ie,ot)),ie}var ct=Y.forwardRef(Mt);function $t(){var ot=Y.useRef({});function st(wt){return ot.current[wt]}function q(wt){return function(Bt){ot.current[wt]=Bt}}return[st,q]}function Ft(ot){var st=ot.pageXOffset,q="scrollLeft";if(typeof st!="number"){var wt=ot.document;st=wt.documentElement[q],typeof st!="number"&&(st=wt.body[q])}return st}function _t(ot){var st,q,wt=ot.ownerDocument,Bt=wt.body,pt=wt&&wt.documentElement,Ht=ot.getBoundingClientRect();return st=Ht.left,q=Ht.top,st-=pt.clientLeft||Bt.clientLeft||0,q-=pt.clientTop||Bt.clientTop||0,{left:st,top:q}}function Ct(ot){var st=_t(ot),q=ot.ownerDocument,wt=q.defaultView||q.parentWindow;return st.left+=Ft(wt),st.left}var xt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function St(ot,st){var q=ot.prefixCls,wt=q===void 0?"rc-rate":q,Bt=ot.className,pt=ot.defaultValue,Ht=ot.value,At=ot.count,gt=At===void 0?5:At,Pt=ot.allowHalf,kt=Pt===void 0?!1:Pt,Gt=ot.allowClear,ue=Gt===void 0?!0:Gt,le=ot.keyboard,re=le===void 0?!0:le,pe=ot.character,Dt=pe===void 0?"\u2605":pe,rt=ot.characterRender,Q=ot.disabled,ie=ot.direction,ce=ie===void 0?"ltr":ie,oe=ot.tabIndex,pn=oe===void 0?0:oe,Ze=ot.autoFocus,Nn=ot.onHoverChange,me=ot.onChange,on=ot.onFocus,un=ot.onBlur,Ln=ot.onKeyDown,Dn=ot.onMouseLeave,K=(0,P.Z)(ot,xt),O=$t(),k=(0,D.Z)(O,2),H=k[0],tt=k[1],_=Y.useRef(null),at=function(){if(!Q){var Kn;(Kn=_.current)===null||Kn===void 0||Kn.focus()}};Y.useImperativeHandle(st,function(){return{focus:at,blur:function(){if(!Q){var Kn;(Kn=_.current)===null||Kn===void 0||Kn.blur()}}}});var se=(0,Z.Z)(pt||0,{value:Ht}),Ve=(0,D.Z)(se,2),Ke=Ve[0],qt=Ve[1],he=(0,Z.Z)(null),de=(0,D.Z)(he,2),Fe=de[0],$e=de[1],Ee=function(Kn,Ei){var A=ce==="rtl",Pn=Kn+1;if(kt){var gn=H(Kn),$n=Ct(gn),Fi=gn.clientWidth;(A&&Ei-$n>Fi/2||!A&&Ei-$n<Fi/2)&&(Pn-=.5)}return Pn},zt=function(Kn){qt(Kn),me==null||me(Kn)},Be=Y.useState(!1),Ge=(0,D.Z)(Be,2),Ie=Ge[0],ze=Ge[1],Cn=function(){ze(!0),on==null||on()},je=function(){ze(!1),un==null||un()},bt=Y.useState(null),hn=(0,D.Z)(bt,2),Sn=hn[0],Jt=hn[1],Hn=function(Kn,Ei){var A=Ee(Ei,Kn.pageX);A!==Fe&&(Jt(A),$e(null)),Nn==null||Nn(A)},ri=function(Kn){Q||(Jt(null),$e(null),Nn==null||Nn(void 0)),Kn&&(Dn==null||Dn(Kn))},Qn=function(Kn,Ei){var A=Ee(Ei,Kn.pageX),Pn=!1;ue&&(Pn=A===Ke),ri(),zt(Pn?0:A),$e(Pn?A:null)},we=function(Kn){var Ei=Kn.keyCode,A=ce==="rtl",Pn=kt?.5:1;re&&(Ei===lt.Z.RIGHT&&Ke<gt&&!A?(zt(Ke+Pn),Kn.preventDefault()):Ei===lt.Z.LEFT&&Ke>0&&!A||Ei===lt.Z.RIGHT&&Ke>0&&A?(zt(Ke-Pn),Kn.preventDefault()):Ei===lt.Z.LEFT&&Ke<gt&&A&&(zt(Ke+Pn),Kn.preventDefault())),Ln==null||Ln(Kn)};Y.useEffect(function(){Ze&&!Q&&at()},[]);var wi=new Array(gt).fill(0).map(function(Bn,Kn){return Y.createElement(ct,{ref:tt(Kn),index:Kn,count:gt,disabled:Q,prefixCls:"".concat(wt,"-star"),allowHalf:kt,value:Sn===null?Ke:Sn,onClick:Qn,onHover:Hn,key:Bn||Kn,character:Dt,characterRender:rt,focused:Ie})}),xi=C()(wt,Bt,(0,I.Z)((0,I.Z)({},"".concat(wt,"-disabled"),Q),"".concat(wt,"-rtl"),ce==="rtl"));return Y.createElement("ul",(0,E.Z)({className:xi,onMouseLeave:ri,tabIndex:Q?-1:pn,onFocus:Q?null:Cn,onBlur:Q?null:je,onKeyDown:Q?null:we,ref:_},(0,J.Z)(K,{aria:!0,data:!0,attr:!0})),wi)}var ft=Y.forwardRef(St),vt=ft},6551:function(j,S,p){"use strict";p.d(S,{ZP:function(){return Z}});var E=p(16886),I=p(59301),D=p(47273),P=0,V=(0,D.Z)();function C(){var lt;return V?(lt=P,P+=1):lt="TEST_OR_SSR",lt}function Z(lt){var J=I.useState(),Y=(0,E.Z)(J,2),Mt=Y[0],ct=Y[1];return I.useEffect(function(){ct("rc_select_".concat(C()))},[]),lt||Mt}},37463:function(j,S,p){"use strict";p.d(S,{Ac:function(){return ze},Xo:function(){return je},Wx:function(){return hn},ZP:function(){return Nr},lk:function(){return vt}});var E=p(67711),I=p(15142),D=p(52873),P=p(98506),V=p(16886),C=p(33346),Z=p(26420),lt=p(18929),J=p(48736),Y=p(59301),Mt=p(92310),ct=p.n(Mt),$t=p(34280),Ft=p(49658),_t=p(8654),Ct=function(Wt){var rn=Wt.className,cn=Wt.customizeIcon,Ut=Wt.customizeIconProps,Ye=Wt.children,kn=Wt.onMouseDown,te=Wt.onClick,R=typeof cn=="function"?cn(Ut):cn;return Y.createElement("span",{className:rn,onMouseDown:function(En){En.preventDefault(),kn==null||kn(En)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:te,"aria-hidden":!0},R!==void 0?R:Y.createElement("span",{className:ct()(rn.split(/\s+/).map(function(bn){return"".concat(bn,"-icon")}))},Ye))},xt=Ct,St=function(Wt,rn,cn,Ut,Ye){var kn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,te=arguments.length>6?arguments[6]:void 0,R=arguments.length>7?arguments[7]:void 0,bn=Y.useMemo(function(){if((0,Z.Z)(Ut)==="object")return Ut.clearIcon;if(Ye)return Ye},[Ut,Ye]),En=Y.useMemo(function(){return!!(!kn&&Ut&&(cn.length||te)&&!(R==="combobox"&&te===""))},[Ut,kn,cn.length,te,R]);return{allowClear:En,clearIcon:Y.createElement(xt,{className:"".concat(Wt,"-clear"),onMouseDown:rn,customizeIcon:bn},"\xD7")}},ft=Y.createContext(null);function vt(){return Y.useContext(ft)}function ot(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Wt=Y.useState(!1),rn=(0,V.Z)(Wt,2),cn=rn[0],Ut=rn[1],Ye=Y.useRef(null),kn=function(){window.clearTimeout(Ye.current)};Y.useEffect(function(){return kn},[]);var te=function(bn,En){kn(),Ye.current=window.setTimeout(function(){Ut(bn),En&&En()},Et)};return[cn,te,kn]}function st(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Wt=Y.useRef(null),rn=Y.useRef(null);Y.useEffect(function(){return function(){window.clearTimeout(rn.current)}},[]);function cn(Ut){(Ut||Wt.current===null)&&(Wt.current=Ut),window.clearTimeout(rn.current),rn.current=window.setTimeout(function(){Wt.current=null},Et)}return[function(){return Wt.current},cn]}function q(Et,Wt,rn,cn){var Ut=Y.useRef(null);Ut.current={open:Wt,triggerOpen:rn,customizedTrigger:cn},Y.useEffect(function(){function Ye(kn){var te;if(!((te=Ut.current)!==null&&te!==void 0&&te.customizedTrigger)){var R=kn.target;R.shadowRoot&&kn.composed&&(R=kn.composedPath()[0]||R),Ut.current.open&&Et().filter(function(bn){return bn}).every(function(bn){return!bn.contains(R)&&bn!==R})&&Ut.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ye),function(){return window.removeEventListener("mousedown",Ye)}},[])}var wt=p(10228);function Bt(Et){return Et&&![wt.Z.ESC,wt.Z.SHIFT,wt.Z.BACKSPACE,wt.Z.TAB,wt.Z.WIN_KEY,wt.Z.ALT,wt.Z.META,wt.Z.WIN_KEY_RIGHT,wt.Z.CTRL,wt.Z.SEMICOLON,wt.Z.EQUALS,wt.Z.CAPS_LOCK,wt.Z.CONTEXT_MENU,wt.Z.F1,wt.Z.F2,wt.Z.F3,wt.Z.F4,wt.Z.F5,wt.Z.F6,wt.Z.F7,wt.Z.F8,wt.Z.F9,wt.Z.F10,wt.Z.F11,wt.Z.F12].includes(Et)}var pt=p(26112),Ht=p(11780);function At(Et,Wt,rn){var cn=(0,P.Z)((0,P.Z)({},Et),rn?Wt:{});return Object.keys(Wt).forEach(function(Ut){var Ye=Wt[Ut];typeof Ye=="function"&&(cn[Ut]=function(){for(var kn,te=arguments.length,R=new Array(te),bn=0;bn<te;bn++)R[bn]=arguments[bn];return Ye.apply(void 0,R),(kn=Et[Ut])===null||kn===void 0?void 0:kn.call.apply(kn,[Et].concat(R))})}),cn}var gt=At,Pt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],kt=function(Wt,rn){var cn=Wt.prefixCls,Ut=Wt.id,Ye=Wt.inputElement,kn=Wt.autoFocus,te=Wt.autoComplete,R=Wt.editable,bn=Wt.activeDescendantId,En=Wt.value,ve=Wt.open,li=Wt.attrs,Wn=(0,C.Z)(Wt,Pt),ni=Ye||Y.createElement("input",null),yn=ni,jt=yn.ref,ui=yn.props;return(0,J.Kp)(!("maxLength"in ni.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ni=Y.cloneElement(ni,(0,P.Z)((0,P.Z)((0,P.Z)({type:"search"},gt(Wn,ui,!0)),{},{id:Ut,ref:(0,_t.sQ)(rn,jt),autoComplete:te||"off",autoFocus:kn,className:ct()("".concat(cn,"-selection-search-input"),ui==null?void 0:ui.className),role:"combobox","aria-expanded":ve||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ut,"_list"),"aria-activedescendant":ve?bn:void 0},li),{},{value:R?En:"",readOnly:!R,unselectable:R?null:"on",style:(0,P.Z)((0,P.Z)({},ui.style),{},{opacity:R?null:0})})),ni},Gt=Y.forwardRef(kt),ue=Gt;function le(Et){return Array.isArray(Et)?Et:Et!==void 0?[Et]:[]}var re=typeof window!="undefined"&&window.document&&window.document.documentElement,pe=re;function Dt(Et){return Et!=null}function rt(Et){return!Et&&Et!==0}function Q(Et){return["string","number"].includes((0,Z.Z)(Et))}function ie(Et){var Wt=void 0;return Et&&(Q(Et.title)?Wt=Et.title.toString():Q(Et.label)&&(Wt=Et.label.toString())),Wt}function ce(Et,Wt){pe?Y.useLayoutEffect(Et,Wt):Y.useEffect(Et,Wt)}function oe(Et){var Wt;return(Wt=Et.key)!==null&&Wt!==void 0?Wt:Et.value}var pn=function(Wt){Wt.preventDefault(),Wt.stopPropagation()},Ze=function(Wt){var rn=Wt.id,cn=Wt.prefixCls,Ut=Wt.values,Ye=Wt.open,kn=Wt.searchValue,te=Wt.autoClearSearchValue,R=Wt.inputRef,bn=Wt.placeholder,En=Wt.disabled,ve=Wt.mode,li=Wt.showSearch,Wn=Wt.autoFocus,ni=Wt.autoComplete,yn=Wt.activeDescendantId,jt=Wt.tabIndex,ui=Wt.removeIcon,Ir=Wt.maxTagCount,xe=Wt.maxTagTextLength,xr=Wt.maxTagPlaceholder,Lr=xr===void 0?function(en){return"+ ".concat(en.length," ...")}:xr,Ai=Wt.tagRender,Rr=Wt.onToggleOpen,nr=Wt.onRemove,sr=Wt.onInputChange,ji=Wt.onInputPaste,qi=Wt.onInputKeyDown,ir=Wt.onInputMouseDown,Te=Wt.onInputCompositionStart,cr=Wt.onInputCompositionEnd,Ce=Wt.onInputBlur,Gn=Y.useRef(null),Ri=(0,Y.useState)(0),gi=(0,V.Z)(Ri,2),pr=gi[0],Bi=gi[1],Si=(0,Y.useState)(!1),Hr=(0,V.Z)(Si,2),Qt=Hr[0],Le=Hr[1],Zt="".concat(cn,"-selection"),z=Ye||ve==="multiple"&&te===!1||ve==="tags"?kn:"",Xe=ve==="tags"||ve==="multiple"&&te===!1||li&&(Ye||Qt);ce(function(){Bi(Gn.current.scrollWidth)},[z]);var an=function(He,nn,_n,ci,si){return Y.createElement("span",{title:ie(He),className:ct()("".concat(Zt,"-item"),(0,D.Z)({},"".concat(Zt,"-item-disabled"),_n))},Y.createElement("span",{className:"".concat(Zt,"-item-content")},nn),ci&&Y.createElement(xt,{className:"".concat(Zt,"-item-remove"),onMouseDown:pn,onClick:si,customizeIcon:ui},"\xD7"))},On=function(He,nn,_n,ci,si,Je){var Ui=function(ar){pn(ar),Rr(!Ye)};return Y.createElement("span",{onMouseDown:Ui},Ai({label:nn,value:He,disabled:_n,closable:ci,onClose:si,isMaxTag:!!Je}))},An=function(He){var nn=He.disabled,_n=He.label,ci=He.value,si=!En&&!nn,Je=_n;if(typeof xe=="number"&&(typeof _n=="string"||typeof _n=="number")){var Ui=String(Je);Ui.length>xe&&(Je="".concat(Ui.slice(0,xe),"..."))}var Ti=function(bi){bi&&bi.stopPropagation(),nr(He)};return typeof Ai=="function"?On(ci,Je,nn,si,Ti):an(He,Je,nn,si,Ti)},mn=function(He){if(!Ut.length)return null;var nn=typeof Lr=="function"?Lr(He):Lr;return typeof Ai=="function"?On(void 0,nn,!1,!1,void 0,!0):an({title:nn},nn,!1)},ke=Y.createElement("div",{className:"".concat(Zt,"-search"),style:{width:pr},onFocus:function(){Le(!0)},onBlur:function(){Le(!1)}},Y.createElement(ue,{ref:R,open:Ye,prefixCls:cn,id:rn,inputElement:null,disabled:En,autoFocus:Wn,autoComplete:ni,editable:Xe,activeDescendantId:yn,value:z,onKeyDown:qi,onMouseDown:ir,onChange:sr,onPaste:ji,onCompositionStart:Te,onCompositionEnd:cr,onBlur:Ce,tabIndex:jt,attrs:(0,pt.Z)(Wt,!0)}),Y.createElement("span",{ref:Gn,className:"".concat(Zt,"-search-mirror"),"aria-hidden":!0},z,"\xA0")),qe=Y.createElement(Ht.Z,{prefixCls:"".concat(Zt,"-overflow"),data:Ut,renderItem:An,renderRest:mn,suffix:ke,itemKey:oe,maxCount:Ir});return Y.createElement("span",{className:"".concat(Zt,"-wrap")},qe,!Ut.length&&!z&&Y.createElement("span",{className:"".concat(Zt,"-placeholder")},bn))},Nn=Ze,me=function(Wt){var rn=Wt.inputElement,cn=Wt.prefixCls,Ut=Wt.id,Ye=Wt.inputRef,kn=Wt.disabled,te=Wt.autoFocus,R=Wt.autoComplete,bn=Wt.activeDescendantId,En=Wt.mode,ve=Wt.open,li=Wt.values,Wn=Wt.placeholder,ni=Wt.tabIndex,yn=Wt.showSearch,jt=Wt.searchValue,ui=Wt.activeValue,Ir=Wt.maxLength,xe=Wt.onInputKeyDown,xr=Wt.onInputMouseDown,Lr=Wt.onInputChange,Ai=Wt.onInputPaste,Rr=Wt.onInputCompositionStart,nr=Wt.onInputCompositionEnd,sr=Wt.onInputBlur,ji=Wt.title,qi=Y.useState(!1),ir=(0,V.Z)(qi,2),Te=ir[0],cr=ir[1],Ce=En==="combobox",Gn=Ce||yn,Ri=li[0],gi=jt||"";Ce&&ui&&!Te&&(gi=ui),Y.useEffect(function(){Ce&&cr(!1)},[Ce,ui]);var pr=En!=="combobox"&&!ve&&!yn?!1:!!gi,Bi=ji===void 0?ie(Ri):ji,Si=Y.useMemo(function(){return Ri?null:Y.createElement("span",{className:"".concat(cn,"-selection-placeholder"),style:pr?{visibility:"hidden"}:void 0},Wn)},[Ri,pr,Wn,cn]);return Y.createElement("span",{className:"".concat(cn,"-selection-wrap")},Y.createElement("span",{className:"".concat(cn,"-selection-search")},Y.createElement(ue,{ref:Ye,prefixCls:cn,id:Ut,open:ve,inputElement:rn,disabled:kn,autoFocus:te,autoComplete:R,editable:Gn,activeDescendantId:bn,value:gi,onKeyDown:xe,onMouseDown:xr,onChange:function(Qt){cr(!0),Lr(Qt)},onPaste:Ai,onCompositionStart:Rr,onCompositionEnd:nr,onBlur:sr,tabIndex:ni,attrs:(0,pt.Z)(Wt,!0),maxLength:Ce?Ir:void 0})),!Ce&&Ri?Y.createElement("span",{className:"".concat(cn,"-selection-item"),title:Bi,style:pr?{visibility:"hidden"}:void 0},Ri.label):null,Si)},on=me,un=function(Wt,rn){var cn=(0,Y.useRef)(null),Ut=(0,Y.useRef)(!1),Ye=Wt.prefixCls,kn=Wt.open,te=Wt.mode,R=Wt.showSearch,bn=Wt.tokenWithEnter,En=Wt.disabled,ve=Wt.prefix,li=Wt.autoClearSearchValue,Wn=Wt.onSearch,ni=Wt.onSearchSubmit,yn=Wt.onToggleOpen,jt=Wt.onInputKeyDown,ui=Wt.onInputBlur,Ir=Wt.domRef;Y.useImperativeHandle(rn,function(){return{focus:function(Bi){cn.current.focus(Bi)},blur:function(){cn.current.blur()}}});var xe=st(0),xr=(0,V.Z)(xe,2),Lr=xr[0],Ai=xr[1],Rr=function(Bi){var Si=Bi.which,Hr=cn.current instanceof HTMLTextAreaElement;!Hr&&kn&&(Si===wt.Z.UP||Si===wt.Z.DOWN)&&Bi.preventDefault(),jt&&jt(Bi),Si===wt.Z.ENTER&&te==="tags"&&!Ut.current&&!kn&&(ni==null||ni(Bi.target.value)),!(Hr&&!kn&&~[wt.Z.UP,wt.Z.DOWN,wt.Z.LEFT,wt.Z.RIGHT].indexOf(Si))&&Bt(Si)&&yn(!0)},nr=function(){Ai(!0)},sr=(0,Y.useRef)(null),ji=function(Bi){Wn(Bi,!0,Ut.current)!==!1&&yn(!0)},qi=function(){Ut.current=!0},ir=function(Bi){Ut.current=!1,te!=="combobox"&&ji(Bi.target.value)},Te=function(Bi){var Si=Bi.target.value;if(bn&&sr.current&&/[\r\n]/.test(sr.current)){var Hr=sr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Si=Si.replace(Hr,sr.current)}sr.current=null,ji(Si)},cr=function(Bi){var Si=Bi.clipboardData,Hr=Si==null?void 0:Si.getData("text");sr.current=Hr||""},Ce=function(Bi){var Si=Bi.target;if(Si!==cn.current){var Hr=document.body.style.msTouchAction!==void 0;Hr?setTimeout(function(){cn.current.focus()}):cn.current.focus()}},Gn=function(Bi){var Si=Lr();Bi.target!==cn.current&&!Si&&!(te==="combobox"&&En)&&Bi.preventDefault(),(te!=="combobox"&&(!R||!Si)||!kn)&&(kn&&li!==!1&&Wn("",!0,!1),yn())},Ri={inputRef:cn,onInputKeyDown:Rr,onInputMouseDown:nr,onInputChange:Te,onInputPaste:cr,onInputCompositionStart:qi,onInputCompositionEnd:ir,onInputBlur:ui},gi=te==="multiple"||te==="tags"?Y.createElement(Nn,(0,E.Z)({},Wt,Ri)):Y.createElement(on,(0,E.Z)({},Wt,Ri));return Y.createElement("div",{ref:Ir,className:"".concat(Ye,"-selector"),onClick:Ce,onMouseDown:Gn},ve&&Y.createElement("div",{className:"".concat(Ye,"-prefix")},ve),gi)},Ln=Y.forwardRef(un),Dn=Ln,K=p(65030),O=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],k=function(Wt){var rn=Wt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"}}},H=function(Wt,rn){var cn=Wt.prefixCls,Ut=Wt.disabled,Ye=Wt.visible,kn=Wt.children,te=Wt.popupElement,R=Wt.animation,bn=Wt.transitionName,En=Wt.dropdownStyle,ve=Wt.dropdownClassName,li=Wt.direction,Wn=li===void 0?"ltr":li,ni=Wt.placement,yn=Wt.builtinPlacements,jt=Wt.dropdownMatchSelectWidth,ui=Wt.dropdownRender,Ir=Wt.dropdownAlign,xe=Wt.getPopupContainer,xr=Wt.empty,Lr=Wt.getTriggerDOMNode,Ai=Wt.onPopupVisibleChange,Rr=Wt.onPopupMouseEnter,nr=(0,C.Z)(Wt,O),sr="".concat(cn,"-dropdown"),ji=te;ui&&(ji=ui(te));var qi=Y.useMemo(function(){return yn||k(jt)},[yn,jt]),ir=R?"".concat(sr,"-").concat(R):bn,Te=typeof jt=="number",cr=Y.useMemo(function(){return Te?null:jt===!1?"minWidth":"width"},[jt,Te]),Ce=En;Te&&(Ce=(0,P.Z)((0,P.Z)({},Ce),{},{width:jt}));var Gn=Y.useRef(null);return Y.useImperativeHandle(rn,function(){return{getPopupElement:function(){var gi;return(gi=Gn.current)===null||gi===void 0?void 0:gi.popupElement}}}),Y.createElement(K.Z,(0,E.Z)({},nr,{showAction:Ai?["click"]:[],hideAction:Ai?["click"]:[],popupPlacement:ni||(Wn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:qi,prefixCls:sr,popupTransitionName:ir,popup:Y.createElement("div",{onMouseEnter:Rr},ji),ref:Gn,stretch:cr,popupAlign:Ir,popupVisible:Ye,getPopupContainer:xe,popupClassName:ct()(ve,(0,D.Z)({},"".concat(sr,"-empty"),xr)),popupStyle:Ce,getTriggerDOMNode:Lr,onPopupVisibleChange:Ai}),kn)},tt=Y.forwardRef(H),_=tt,at=p(57879);function se(Et,Wt){var rn=Et.key,cn;return"value"in Et&&(cn=Et.value),rn!=null?rn:cn!==void 0?cn:"rc-index-key-".concat(Wt)}function Ve(Et){return typeof Et!="undefined"&&!Number.isNaN(Et)}function Ke(Et,Wt){var rn=Et||{},cn=rn.label,Ut=rn.value,Ye=rn.options,kn=rn.groupLabel,te=cn||(Wt?"children":"label");return{label:te,value:Ut||"value",options:Ye||"options",groupLabel:kn||te}}function qt(Et){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rn=Wt.fieldNames,cn=Wt.childrenAsData,Ut=[],Ye=Ke(rn,!1),kn=Ye.label,te=Ye.value,R=Ye.options,bn=Ye.groupLabel;function En(ve,li){Array.isArray(ve)&&ve.forEach(function(Wn){if(li||!(R in Wn)){var ni=Wn[te];Ut.push({key:se(Wn,Ut.length),groupOption:li,data:Wn,label:Wn[kn],value:ni})}else{var yn=Wn[bn];yn===void 0&&cn&&(yn=Wn.label),Ut.push({key:se(Wn,Ut.length),group:!0,data:Wn,label:yn}),En(Wn[R],!0)}})}return En(Et,!1),Ut}function he(Et){var Wt=(0,P.Z)({},Et);return"props"in Wt||Object.defineProperty(Wt,"props",{get:function(){return(0,J.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Wt}}),Wt}var de=function(Wt,rn,cn){if(!rn||!rn.length)return null;var Ut=!1,Ye=function te(R,bn){var En=(0,at.Z)(bn),ve=En[0],li=En.slice(1);if(!ve)return[R];var Wn=R.split(ve);return Ut=Ut||Wn.length>1,Wn.reduce(function(ni,yn){return[].concat((0,I.Z)(ni),(0,I.Z)(te(yn,li)))},[]).filter(Boolean)},kn=Ye(Wt,rn);return Ut?typeof cn!="undefined"?kn.slice(0,cn):kn:null},Fe=Y.createContext(null),$e=Fe;function Ee(Et){var Wt=Et.visible,rn=Et.values;if(!Wt)return null;var cn=50;return Y.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(rn.slice(0,cn).map(function(Ut){var Ye=Ut.label,kn=Ut.value;return["number","string"].includes((0,Z.Z)(Ye))?Ye:kn}).join(", ")),rn.length>cn?", ...":null)}var zt=["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"],Be=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ge=function(Wt){return Wt==="tags"||Wt==="multiple"},Ie=Y.forwardRef(function(Et,Wt){var rn,cn=Et.id,Ut=Et.prefixCls,Ye=Et.className,kn=Et.showSearch,te=Et.tagRender,R=Et.direction,bn=Et.omitDomProps,En=Et.displayValues,ve=Et.onDisplayValuesChange,li=Et.emptyOptions,Wn=Et.notFoundContent,ni=Wn===void 0?"Not Found":Wn,yn=Et.onClear,jt=Et.mode,ui=Et.disabled,Ir=Et.loading,xe=Et.getInputElement,xr=Et.getRawInputElement,Lr=Et.open,Ai=Et.defaultOpen,Rr=Et.onDropdownVisibleChange,nr=Et.activeValue,sr=Et.onActiveValueChange,ji=Et.activeDescendantId,qi=Et.searchValue,ir=Et.autoClearSearchValue,Te=Et.onSearch,cr=Et.onSearchSplit,Ce=Et.tokenSeparators,Gn=Et.allowClear,Ri=Et.prefix,gi=Et.suffixIcon,pr=Et.clearIcon,Bi=Et.OptionList,Si=Et.animation,Hr=Et.transitionName,Qt=Et.dropdownStyle,Le=Et.dropdownClassName,Zt=Et.dropdownMatchSelectWidth,z=Et.dropdownRender,Xe=Et.dropdownAlign,an=Et.placement,On=Et.builtinPlacements,An=Et.getPopupContainer,mn=Et.showAction,ke=mn===void 0?[]:mn,qe=Et.onFocus,en=Et.onBlur,He=Et.onKeyUp,nn=Et.onKeyDown,_n=Et.onMouseDown,ci=(0,C.Z)(Et,zt),si=Ge(jt),Je=(kn!==void 0?kn:si)||jt==="combobox",Ui=(0,P.Z)({},ci);Be.forEach(function(Xr){delete Ui[Xr]}),bn==null||bn.forEach(function(Xr){delete Ui[Xr]});var Ti=Y.useState(!1),ar=(0,V.Z)(Ti,2),bi=ar[0],Kr=ar[1];Y.useEffect(function(){Kr((0,Ft.Z)())},[]);var Pr=Y.useRef(null),Mr=Y.useRef(null),Er=Y.useRef(null),Or=Y.useRef(null),Zr=Y.useRef(null),Xt=Y.useRef(!1),rr=ot(),$i=(0,V.Z)(rr,3),mi=$i[0],Mi=$i[1],er=$i[2];Y.useImperativeHandle(Wt,function(){var Xr,Ar;return{focus:(Xr=Or.current)===null||Xr===void 0?void 0:Xr.focus,blur:(Ar=Or.current)===null||Ar===void 0?void 0:Ar.blur,scrollTo:function(jn){var qo;return(qo=Zr.current)===null||qo===void 0?void 0:qo.scrollTo(jn)},nativeElement:Pr.current||Mr.current}});var Sr=Y.useMemo(function(){var Xr;if(jt!=="combobox")return qi;var Ar=(Xr=En[0])===null||Xr===void 0?void 0:Xr.value;return typeof Ar=="string"||typeof Ar=="number"?String(Ar):""},[qi,jt,En]),ee=jt==="combobox"&&typeof xe=="function"&&xe()||null,Ni=typeof xr=="function"&&xr(),Gr=(0,_t.x1)(Mr,Ni==null||(rn=Ni.props)===null||rn===void 0?void 0:rn.ref),ws=Y.useState(!1),cs=(0,V.Z)(ws,2),Ma=cs[0],As=cs[1];(0,$t.Z)(function(){As(!0)},[]);var ii=(0,lt.Z)(!1,{defaultValue:Ai,value:Lr}),po=(0,V.Z)(ii,2),go=po[0],Vo=po[1],mo=Ma?go:!1,Co=!ni&&li;(ui||Co&&mo&&jt==="combobox")&&(mo=!1);var vn=Co?!1:mo,qn=Y.useCallback(function(Xr){var Ar=Xr!==void 0?Xr:!mo;ui||(Vo(Ar),mo!==Ar&&(Rr==null||Rr(Ar)))},[ui,mo,Vo,Rr]),vi=Y.useMemo(function(){return(Ce||[]).some(function(Xr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Xr)})},[Ce]),Gi=Y.useContext($e)||{},Yi=Gi.maxCount,Vr=Gi.rawValues,ei=function(Ar,Wo,jn){if(!(si&&Ve(Yi)&&(Vr==null?void 0:Vr.size)>=Yi)){var qo=!0,It=Ar;sr==null||sr(null);var Oe=de(Ar,Ce,Ve(Yi)?Yi-Vr.size:void 0),xa=jn?null:Oe;return jt!=="combobox"&&xa&&(It="",cr==null||cr(xa),qn(!1),qo=!1),Te&&Sr!==It&&Te(It,{source:Wo?"typing":"effect"}),qo}},Jo=function(Ar){!Ar||!Ar.trim()||Te(Ar,{source:"submit"})};Y.useEffect(function(){!mo&&!si&&jt!=="combobox"&&ei("",!1,!1)},[mo]),Y.useEffect(function(){go&&ui&&Vo(!1),ui&&!Xt.current&&Mi(!1)},[ui]);var So=st(),xo=(0,V.Z)(So,2),tr=xo[0],$r=xo[1],xs=Y.useRef(!1),eo=function(Ar){var Wo=tr(),jn=Ar.key,qo=jn==="Enter";if(qo&&(jt!=="combobox"&&Ar.preventDefault(),mo||qn(!0)),$r(!!Sr),jn==="Backspace"&&!Wo&&si&&!Sr&&En.length){for(var It=(0,I.Z)(En),Oe=null,xa=It.length-1;xa>=0;xa-=1){var il=It[xa];if(!il.disabled){It.splice(xa,1),Oe=il;break}}Oe&&ve(It,{type:"remove",values:[Oe]})}for(var Fo=arguments.length,ts=new Array(Fo>1?Fo-1:0),ia=1;ia<Fo;ia++)ts[ia-1]=arguments[ia];if(mo&&(!qo||!xs.current)){var ba;qo&&(xs.current=!0),(ba=Zr.current)===null||ba===void 0||ba.onKeyDown.apply(ba,[Ar].concat(ts))}nn==null||nn.apply(void 0,[Ar].concat(ts))},hs=function(Ar){for(var Wo=arguments.length,jn=new Array(Wo>1?Wo-1:0),qo=1;qo<Wo;qo++)jn[qo-1]=arguments[qo];if(mo){var It;(It=Zr.current)===null||It===void 0||It.onKeyUp.apply(It,[Ar].concat(jn))}Ar.key==="Enter"&&(xs.current=!1),He==null||He.apply(void 0,[Ar].concat(jn))},Us=function(Ar){var Wo=En.filter(function(jn){return jn!==Ar});ve(Wo,{type:"remove",values:[Ar]})},Is=function(){xs.current=!1},Ro=Y.useRef(!1),Oa=function(){Mi(!0),ui||(qe&&!Ro.current&&qe.apply(void 0,arguments),ke.includes("focus")&&qn(!0)),Ro.current=!0},Wl=function(){Xt.current=!0,Mi(!1,function(){Ro.current=!1,Xt.current=!1,qn(!1)}),!ui&&(Sr&&(jt==="tags"?Te(Sr,{source:"submit"}):jt==="multiple"&&Te("",{source:"blur"})),en&&en.apply(void 0,arguments))},Hs=[];Y.useEffect(function(){return function(){Hs.forEach(function(Xr){return clearTimeout(Xr)}),Hs.splice(0,Hs.length)}},[]);var na=function(Ar){var Wo,jn=Ar.target,qo=(Wo=Er.current)===null||Wo===void 0?void 0:Wo.getPopupElement();if(qo&&qo.contains(jn)){var It=setTimeout(function(){var Fo=Hs.indexOf(It);if(Fo!==-1&&Hs.splice(Fo,1),er(),!bi&&!qo.contains(document.activeElement)){var ts;(ts=Or.current)===null||ts===void 0||ts.focus()}});Hs.push(It)}for(var Oe=arguments.length,xa=new Array(Oe>1?Oe-1:0),il=1;il<Oe;il++)xa[il-1]=arguments[il];_n==null||_n.apply(void 0,[Ar].concat(xa))},zs=Y.useState({}),nl=(0,V.Z)(zs,2),cu=nl[1];function hu(){cu({})}var _o;Ni&&(_o=function(Ar){qn(Ar)}),q(function(){var Xr;return[Pr.current,(Xr=Er.current)===null||Xr===void 0?void 0:Xr.getPopupElement()]},vn,qn,!!Ni);var Yl=Y.useMemo(function(){return(0,P.Z)((0,P.Z)({},Et),{},{notFoundContent:ni,open:mo,triggerOpen:vn,id:cn,showSearch:Je,multiple:si,toggleOpen:qn})},[Et,ni,vn,mo,cn,Je,si,qn]),du=!!gi||Ir,ml;du&&(ml=Y.createElement(xt,{className:ct()("".concat(Ut,"-arrow"),(0,D.Z)({},"".concat(Ut,"-arrow-loading"),Ir)),customizeIcon:gi,customizeIconProps:{loading:Ir,searchValue:Sr,open:mo,focused:mi,showSearch:Je}}));var Ml=function(){var Ar;yn==null||yn(),(Ar=Or.current)===null||Ar===void 0||Ar.focus(),ve([],{type:"clear",values:En}),ei("",!1,!1)},ds=St(Ut,Ml,En,Gn,pr,ui,Sr,jt),Cs=ds.allowClear,Zo=ds.clearIcon,as=Y.createElement(Bi,{ref:Zr}),vl=ct()(Ut,Ye,(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(Ut,"-focused"),mi),"".concat(Ut,"-multiple"),si),"".concat(Ut,"-single"),!si),"".concat(Ut,"-allow-clear"),Gn),"".concat(Ut,"-show-arrow"),du),"".concat(Ut,"-disabled"),ui),"".concat(Ut,"-loading"),Ir),"".concat(Ut,"-open"),mo),"".concat(Ut,"-customize-input"),ee),"".concat(Ut,"-show-search"),Je)),Ls=Y.createElement(_,{ref:Er,disabled:ui,prefixCls:Ut,visible:vn,popupElement:as,animation:Si,transitionName:Hr,dropdownStyle:Qt,dropdownClassName:Le,direction:R,dropdownMatchSelectWidth:Zt,dropdownRender:z,dropdownAlign:Xe,placement:an,builtinPlacements:On,getPopupContainer:An,empty:li,getTriggerDOMNode:function(Ar){return Mr.current||Ar},onPopupVisibleChange:_o,onPopupMouseEnter:hu},Ni?Y.cloneElement(Ni,{ref:Gr}):Y.createElement(Dn,(0,E.Z)({},Et,{domRef:Mr,prefixCls:Ut,inputElement:ee,ref:Or,id:cn,prefix:Ri,showSearch:Je,autoClearSearchValue:ir,mode:jt,activeDescendantId:ji,tagRender:te,values:En,open:mo,onToggleOpen:qn,activeValue:nr,searchValue:Sr,onSearch:ei,onSearchSubmit:Jo,onRemove:Us,tokenWithEnter:vi,onInputBlur:Is}))),io;return Ni?io=Ls:io=Y.createElement("div",(0,E.Z)({className:vl},Ui,{ref:Pr,onMouseDown:na,onKeyDown:eo,onKeyUp:hs,onFocus:Oa,onBlur:Wl}),Y.createElement(Ee,{visible:mi&&!mo,values:En}),Ls,ml,Cs&&Zo),Y.createElement(ft.Provider,{value:Yl},io)}),ze=Ie,Cn=function(){return null};Cn.isSelectOptGroup=!0;var je=Cn,bt=function(){return null};bt.isSelectOption=!0;var hn=bt,Sn=p(80547),Jt=p(2738),Hn=p(6790);function ri(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Qn=["disabled","title","children","style","className"];function we(Et){return typeof Et=="string"||typeof Et=="number"}var wi=function(Wt,rn){var cn=vt(),Ut=cn.prefixCls,Ye=cn.id,kn=cn.open,te=cn.multiple,R=cn.mode,bn=cn.searchValue,En=cn.toggleOpen,ve=cn.notFoundContent,li=cn.onPopupScroll,Wn=Y.useContext($e),ni=Wn.maxCount,yn=Wn.flattenOptions,jt=Wn.onActiveValue,ui=Wn.defaultActiveFirstOption,Ir=Wn.onSelect,xe=Wn.menuItemSelectedIcon,xr=Wn.rawValues,Lr=Wn.fieldNames,Ai=Wn.virtual,Rr=Wn.direction,nr=Wn.listHeight,sr=Wn.listItemHeight,ji=Wn.optionRender,qi="".concat(Ut,"-item"),ir=(0,Sn.Z)(function(){return yn},[kn,yn],function(mn,ke){return ke[0]&&mn[1]!==ke[1]}),Te=Y.useRef(null),cr=Y.useMemo(function(){return te&&Ve(ni)&&(xr==null?void 0:xr.size)>=ni},[te,ni,xr==null?void 0:xr.size]),Ce=function(ke){ke.preventDefault()},Gn=function(ke){var qe;(qe=Te.current)===null||qe===void 0||qe.scrollTo(typeof ke=="number"?{index:ke}:ke)},Ri=Y.useCallback(function(mn){return R==="combobox"?!1:xr.has(mn)},[R,(0,I.Z)(xr).toString(),xr.size]),gi=function(ke){for(var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,en=ir.length,He=0;He<en;He+=1){var nn=(ke+He*qe+en)%en,_n=ir[nn]||{},ci=_n.group,si=_n.data;if(!ci&&!(si!=null&&si.disabled)&&(Ri(si.value)||!cr))return nn}return-1},pr=Y.useState(function(){return gi(0)}),Bi=(0,V.Z)(pr,2),Si=Bi[0],Hr=Bi[1],Qt=function(ke){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Hr(ke);var en={source:qe?"keyboard":"mouse"},He=ir[ke];if(!He){jt(null,-1,en);return}jt(He.value,ke,en)};(0,Y.useEffect)(function(){Qt(ui!==!1?gi(0):-1)},[ir.length,bn]);var Le=Y.useCallback(function(mn){return R==="combobox"?String(mn).toLowerCase()===bn.toLowerCase():xr.has(mn)},[R,bn,(0,I.Z)(xr).toString(),xr.size]);(0,Y.useEffect)(function(){var mn=setTimeout(function(){if(!te&&kn&&xr.size===1){var qe=Array.from(xr)[0],en=ir.findIndex(function(He){var nn=He.data;return bn?String(nn.value).startsWith(bn):nn.value===qe});en!==-1&&(Qt(en),Gn(en))}});if(kn){var ke;(ke=Te.current)===null||ke===void 0||ke.scrollTo(void 0)}return function(){return clearTimeout(mn)}},[kn,bn]);var Zt=function(ke){ke!==void 0&&Ir(ke,{selected:!xr.has(ke)}),te||En(!1)};if(Y.useImperativeHandle(rn,function(){return{onKeyDown:function(ke){var qe=ke.which,en=ke.ctrlKey;switch(qe){case wt.Z.N:case wt.Z.P:case wt.Z.UP:case wt.Z.DOWN:{var He=0;if(qe===wt.Z.UP?He=-1:qe===wt.Z.DOWN?He=1:ri()&&en&&(qe===wt.Z.N?He=1:qe===wt.Z.P&&(He=-1)),He!==0){var nn=gi(Si+He,He);Gn(nn),Qt(nn,!0)}break}case wt.Z.TAB:case wt.Z.ENTER:{var _n,ci=ir[Si];ci&&!(ci!=null&&(_n=ci.data)!==null&&_n!==void 0&&_n.disabled)&&!cr?Zt(ci.value):Zt(void 0),kn&&ke.preventDefault();break}case wt.Z.ESC:En(!1),kn&&ke.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ke){Gn(ke)}}}),ir.length===0)return Y.createElement("div",{role:"listbox",id:"".concat(Ye,"_list"),className:"".concat(qi,"-empty"),onMouseDown:Ce},ve);var z=Object.keys(Lr).map(function(mn){return Lr[mn]}),Xe=function(ke){return ke.label};function an(mn,ke){var qe=mn.group;return{role:qe?"presentation":"option",id:"".concat(Ye,"_list_").concat(ke)}}var On=function(ke){var qe=ir[ke];if(!qe)return null;var en=qe.data||{},He=en.value,nn=qe.group,_n=(0,pt.Z)(en,!0),ci=Xe(qe);return qe?Y.createElement("div",(0,E.Z)({"aria-label":typeof ci=="string"&&!nn?ci:null},_n,{key:ke},an(qe,ke),{"aria-selected":Le(He)}),He):null},An={role:"listbox",id:"".concat(Ye,"_list")};return Y.createElement(Y.Fragment,null,Ai&&Y.createElement("div",(0,E.Z)({},An,{style:{height:0,width:0,overflow:"hidden"}}),On(Si-1),On(Si),On(Si+1)),Y.createElement(Hn.Z,{itemKey:"key",ref:Te,data:ir,height:nr,itemHeight:sr,fullHeight:!1,onMouseDown:Ce,onScroll:li,virtual:Ai,direction:Rr,innerProps:Ai?null:An},function(mn,ke){var qe=mn.group,en=mn.groupOption,He=mn.data,nn=mn.label,_n=mn.value,ci=He.key;if(qe){var si,Je=(si=He.title)!==null&&si!==void 0?si:we(nn)?nn.toString():void 0;return Y.createElement("div",{className:ct()(qi,"".concat(qi,"-group"),He.className),title:Je},nn!==void 0?nn:ci)}var Ui=He.disabled,Ti=He.title,ar=He.children,bi=He.style,Kr=He.className,Pr=(0,C.Z)(He,Qn),Mr=(0,Jt.Z)(Pr,z),Er=Ri(_n),Or=Ui||!Er&&cr,Zr="".concat(qi,"-option"),Xt=ct()(qi,Zr,Kr,(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(Zr,"-grouped"),en),"".concat(Zr,"-active"),Si===ke&&!Or),"".concat(Zr,"-disabled"),Or),"".concat(Zr,"-selected"),Er)),rr=Xe(mn),$i=!xe||typeof xe=="function"||Er,mi=typeof rr=="number"?rr:rr||_n,Mi=we(mi)?mi.toString():void 0;return Ti!==void 0&&(Mi=Ti),Y.createElement("div",(0,E.Z)({},(0,pt.Z)(Mr),Ai?{}:an(mn,ke),{"aria-selected":Le(_n),className:Xt,title:Mi,onMouseMove:function(){Si===ke||Or||Qt(ke)},onClick:function(){Or||Zt(_n)},style:bi}),Y.createElement("div",{className:"".concat(Zr,"-content")},typeof ji=="function"?ji(mn,{index:ke}):mi),Y.isValidElement(xe)||Er,$i&&Y.createElement(xt,{className:"".concat(qi,"-option-state"),customizeIcon:xe,customizeIconProps:{value:_n,disabled:Or,isSelected:Er}},Er?"\u2713":null))}))},xi=Y.forwardRef(wi),Bn=xi,Kn=function(Et,Wt){var rn=Y.useRef({values:new Map,options:new Map}),cn=Y.useMemo(function(){var Ye=rn.current,kn=Ye.values,te=Ye.options,R=Et.map(function(ve){if(ve.label===void 0){var li;return(0,P.Z)((0,P.Z)({},ve),{},{label:(li=kn.get(ve.value))===null||li===void 0?void 0:li.label})}return ve}),bn=new Map,En=new Map;return R.forEach(function(ve){bn.set(ve.value,ve),En.set(ve.value,Wt.get(ve.value)||te.get(ve.value))}),rn.current.values=bn,rn.current.options=En,R},[Et,Wt]),Ut=Y.useCallback(function(Ye){return Wt.get(Ye)||rn.current.options.get(Ye)},[Wt]);return[cn,Ut]};function Ei(Et,Wt){return le(Et).join("").toUpperCase().includes(Wt)}var A=function(Et,Wt,rn,cn,Ut){return Y.useMemo(function(){if(!rn||cn===!1)return Et;var Ye=Wt.options,kn=Wt.label,te=Wt.value,R=[],bn=typeof cn=="function",En=rn.toUpperCase(),ve=bn?cn:function(Wn,ni){return Ut?Ei(ni[Ut],En):ni[Ye]?Ei(ni[kn!=="children"?kn:"label"],En):Ei(ni[te],En)},li=bn?function(Wn){return he(Wn)}:function(Wn){return Wn};return Et.forEach(function(Wn){if(Wn[Ye]){var ni=ve(rn,li(Wn));if(ni)R.push(Wn);else{var yn=Wn[Ye].filter(function(jt){return ve(rn,li(jt))});yn.length&&R.push((0,P.Z)((0,P.Z)({},Wn),{},(0,D.Z)({},Ye,yn)))}return}ve(rn,li(Wn))&&R.push(Wn)}),R},[Et,cn,Ut,rn,Wt])},Pn=p(6551),gn=p(11592),$n=["children","value"],Fi=["children"];function Ki(Et){var Wt=Et,rn=Wt.key,cn=Wt.props,Ut=cn.children,Ye=cn.value,kn=(0,C.Z)(cn,$n);return(0,P.Z)({key:rn,value:Ye!==void 0?Ye:rn,children:Ut},kn)}function pi(Et){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,gn.Z)(Et).map(function(rn,cn){if(!Y.isValidElement(rn)||!rn.type)return null;var Ut=rn,Ye=Ut.type.isSelectOptGroup,kn=Ut.key,te=Ut.props,R=te.children,bn=(0,C.Z)(te,Fi);return Wt||!Ye?Ki(rn):(0,P.Z)((0,P.Z)({key:"__RC_SELECT_GRP__".concat(kn===null?cn:kn,"__"),label:kn},bn),{},{options:pi(R)})}).filter(function(rn){return rn})}var so=function(Wt,rn,cn,Ut,Ye){return Y.useMemo(function(){var kn=Wt,te=!Wt;te&&(kn=pi(rn));var R=new Map,bn=new Map,En=function(Wn,ni,yn){yn&&typeof yn=="string"&&Wn.set(ni[yn],ni)},ve=function li(Wn){for(var ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yn=0;yn<Wn.length;yn+=1){var jt=Wn[yn];!jt[cn.options]||ni?(R.set(jt[cn.value],jt),En(bn,jt,cn.label),En(bn,jt,Ut),En(bn,jt,Ye)):li(jt[cn.options],!0)}};return ve(kn),{options:kn,valueOptions:R,labelOptions:bn}},[Wt,rn,cn,Ut,Ye])},Zi=so;function or(Et){var Wt=Y.useRef();Wt.current=Et;var rn=Y.useCallback(function(){return Wt.current.apply(Wt,arguments)},[]);return rn}function Yn(Et){var Wt=Et.mode,rn=Et.options,cn=Et.children,Ut=Et.backfill,Ye=Et.allowClear,kn=Et.placeholder,te=Et.getInputElement,R=Et.showSearch,bn=Et.onSearch,En=Et.defaultOpen,ve=Et.autoFocus,li=Et.labelInValue,Wn=Et.value,ni=Et.inputValue,yn=Et.optionLabelProp,jt=isMultiple(Wt),ui=R!==void 0?R:jt||Wt==="combobox",Ir=rn||convertChildrenToData(cn);if(warning(Wt!=="tags"||Ir.every(function(Ai){return!Ai.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Wt==="tags"||Wt==="combobox"){var xe=Ir.some(function(Ai){return Ai.options?Ai.options.some(function(Rr){return typeof("value"in Rr?Rr.value:Rr.key)=="number"}):typeof("value"in Ai?Ai.value:Ai.key)=="number"});warning(!xe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Wt!=="combobox"||!yn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Wt==="combobox"||!Ut,"`backfill` only works with `combobox` mode."),warning(Wt==="combobox"||!te,"`getInputElement` only work with `combobox` mode."),noteOnce(Wt!=="combobox"||!te||!Ye||!kn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),bn&&!ui&&Wt!=="combobox"&&Wt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!En||ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Wn!=null){var xr=toArray(Wn);warning(!li||xr.every(function(Ai){return _typeof(Ai)==="object"&&("key"in Ai||"value"in Ai)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!jt||Array.isArray(Wn),"`value` should be array when `mode` is `multiple` or `tags`")}if(cn){var Lr=null;toNodeArray(cn).some(function(Ai){if(!React.isValidElement(Ai)||!Ai.type)return!1;var Rr=Ai,nr=Rr.type;if(nr.isSelectOption)return!1;if(nr.isSelectOptGroup){var sr=toNodeArray(Ai.props.children).every(function(ji){return!React.isValidElement(ji)||!Ai.type||ji.type.isSelectOption?!0:(Lr=ji.type,!1)});return!sr}return Lr=nr,!0}),Lr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Lr.displayName||Lr.name||Lr,"`.")),warning(ni===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Mn(Et,Wt){if(Et){var rn=function cn(Ut){for(var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kn=0;kn<Ut.length;kn++){var te=Ut[kn];if(te[Wt==null?void 0:Wt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ye&&Array.isArray(te[Wt==null?void 0:Wt.options])&&cn(te[Wt==null?void 0:Wt.options],!0))break}};rn(Et)}}var fr=null,Li=["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"],Xi=["inputValue"];function sn(Et){return!Et||(0,Z.Z)(Et)!=="object"}var zn=Y.forwardRef(function(Et,Wt){var rn=Et.id,cn=Et.mode,Ut=Et.prefixCls,Ye=Ut===void 0?"rc-select":Ut,kn=Et.backfill,te=Et.fieldNames,R=Et.inputValue,bn=Et.searchValue,En=Et.onSearch,ve=Et.autoClearSearchValue,li=ve===void 0?!0:ve,Wn=Et.onSelect,ni=Et.onDeselect,yn=Et.dropdownMatchSelectWidth,jt=yn===void 0?!0:yn,ui=Et.filterOption,Ir=Et.filterSort,xe=Et.optionFilterProp,xr=Et.optionLabelProp,Lr=Et.options,Ai=Et.optionRender,Rr=Et.children,nr=Et.defaultActiveFirstOption,sr=Et.menuItemSelectedIcon,ji=Et.virtual,qi=Et.direction,ir=Et.listHeight,Te=ir===void 0?200:ir,cr=Et.listItemHeight,Ce=cr===void 0?20:cr,Gn=Et.labelRender,Ri=Et.value,gi=Et.defaultValue,pr=Et.labelInValue,Bi=Et.onChange,Si=Et.maxCount,Hr=(0,C.Z)(Et,Li),Qt=(0,Pn.ZP)(rn),Le=Ge(cn),Zt=!!(!Lr&&Rr),z=Y.useMemo(function(){return ui===void 0&&cn==="combobox"?!1:ui},[ui,cn]),Xe=Y.useMemo(function(){return Ke(te,Zt)},[JSON.stringify(te),Zt]),an=(0,lt.Z)("",{value:bn!==void 0?bn:R,postState:function(vi){return vi||""}}),On=(0,V.Z)(an,2),An=On[0],mn=On[1],ke=Zi(Lr,Rr,Xe,xe,xr),qe=ke.valueOptions,en=ke.labelOptions,He=ke.options,nn=Y.useCallback(function(qn){var vi=le(qn);return vi.map(function(Gi){var Yi,Vr,ei,Jo,So;if(sn(Gi))Yi=Gi;else{var xo;ei=Gi.key,Vr=Gi.label,Yi=(xo=Gi.value)!==null&&xo!==void 0?xo:ei}var tr=qe.get(Yi);if(tr){var $r;if(Vr===void 0&&(Vr=tr==null?void 0:tr[xr||Xe.label]),ei===void 0&&(ei=($r=tr==null?void 0:tr.key)!==null&&$r!==void 0?$r:Yi),Jo=tr==null?void 0:tr.disabled,So=tr==null?void 0:tr.title,0)var xs}return{label:Vr,value:Yi,key:ei,disabled:Jo,title:So}})},[Xe,xr,qe]),_n=(0,lt.Z)(gi,{value:Ri}),ci=(0,V.Z)(_n,2),si=ci[0],Je=ci[1],Ui=Y.useMemo(function(){var qn,vi=Le&&si===null?[]:si,Gi=nn(vi);return cn==="combobox"&&rt((qn=Gi[0])===null||qn===void 0?void 0:qn.value)?[]:Gi},[si,nn,cn,Le]),Ti=Kn(Ui,qe),ar=(0,V.Z)(Ti,2),bi=ar[0],Kr=ar[1],Pr=Y.useMemo(function(){if(!cn&&bi.length===1){var qn=bi[0];if(qn.value===null&&(qn.label===null||qn.label===void 0))return[]}return bi.map(function(vi){var Gi;return(0,P.Z)((0,P.Z)({},vi),{},{label:(Gi=typeof Gn=="function"?Gn(vi):vi.label)!==null&&Gi!==void 0?Gi:vi.value})})},[cn,bi,Gn]),Mr=Y.useMemo(function(){return new Set(bi.map(function(qn){return qn.value}))},[bi]);Y.useEffect(function(){if(cn==="combobox"){var qn,vi=(qn=bi[0])===null||qn===void 0?void 0:qn.value;mn(Dt(vi)?String(vi):"")}},[bi]);var Er=or(function(qn,vi){var Gi=vi!=null?vi:qn;return(0,D.Z)((0,D.Z)({},Xe.value,qn),Xe.label,Gi)}),Or=Y.useMemo(function(){if(cn!=="tags")return He;var qn=(0,I.Z)(He),vi=function(Yi){return qe.has(Yi)};return(0,I.Z)(bi).sort(function(Gi,Yi){return Gi.value<Yi.value?-1:1}).forEach(function(Gi){var Yi=Gi.value;vi(Yi)||qn.push(Er(Yi,Gi.label))}),qn},[Er,He,qe,bi,cn]),Zr=A(Or,Xe,An,z,xe),Xt=Y.useMemo(function(){return cn!=="tags"||!An||Zr.some(function(qn){return qn[xe||"value"]===An})||Zr.some(function(qn){return qn[Xe.value]===An})?Zr:[Er(An)].concat((0,I.Z)(Zr))},[Er,xe,cn,Zr,An,Xe]),rr=function qn(vi){var Gi=(0,I.Z)(vi).sort(function(Yi,Vr){return Ir(Yi,Vr,{searchValue:An})});return Gi.map(function(Yi){return Array.isArray(Yi.options)?(0,P.Z)((0,P.Z)({},Yi),{},{options:Yi.options.length>0?qn(Yi.options):Yi.options}):Yi})},$i=Y.useMemo(function(){return Ir?rr(Xt):Xt},[Xt,Ir,An]),mi=Y.useMemo(function(){return qt($i,{fieldNames:Xe,childrenAsData:Zt})},[$i,Xe,Zt]),Mi=function(vi){var Gi=nn(vi);if(Je(Gi),Bi&&(Gi.length!==bi.length||Gi.some(function(ei,Jo){var So;return((So=bi[Jo])===null||So===void 0?void 0:So.value)!==(ei==null?void 0:ei.value)}))){var Yi=pr?Gi:Gi.map(function(ei){return ei.value}),Vr=Gi.map(function(ei){return he(Kr(ei.value))});Bi(Le?Yi:Yi[0],Le?Vr:Vr[0])}},er=Y.useState(null),Sr=(0,V.Z)(er,2),ee=Sr[0],Ni=Sr[1],Gr=Y.useState(0),ws=(0,V.Z)(Gr,2),cs=ws[0],Ma=ws[1],As=nr!==void 0?nr:cn!=="combobox",ii=Y.useCallback(function(qn,vi){var Gi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Yi=Gi.source,Vr=Yi===void 0?"keyboard":Yi;Ma(vi),kn&&cn==="combobox"&&qn!==null&&Vr==="keyboard"&&Ni(String(qn))},[kn,cn]),po=function(vi,Gi,Yi){var Vr=function(){var Us,Is=Kr(vi);return[pr?{label:Is==null?void 0:Is[Xe.label],value:vi,key:(Us=Is==null?void 0:Is.key)!==null&&Us!==void 0?Us:vi}:vi,he(Is)]};if(Gi&&Wn){var ei=Vr(),Jo=(0,V.Z)(ei,2),So=Jo[0],xo=Jo[1];Wn(So,xo)}else if(!Gi&&ni&&Yi!=="clear"){var tr=Vr(),$r=(0,V.Z)(tr,2),xs=$r[0],eo=$r[1];ni(xs,eo)}},go=or(function(qn,vi){var Gi,Yi=Le?vi.selected:!0;Yi?Gi=Le?[].concat((0,I.Z)(bi),[qn]):[qn]:Gi=bi.filter(function(Vr){return Vr.value!==qn}),Mi(Gi),po(qn,Yi),cn==="combobox"?Ni(""):(!Ge||li)&&(mn(""),Ni(""))}),Vo=function(vi,Gi){Mi(vi);var Yi=Gi.type,Vr=Gi.values;(Yi==="remove"||Yi==="clear")&&Vr.forEach(function(ei){po(ei.value,!1,Yi)})},mo=function(vi,Gi){if(mn(vi),Ni(null),Gi.source==="submit"){var Yi=(vi||"").trim();if(Yi){var Vr=Array.from(new Set([].concat((0,I.Z)(Mr),[Yi])));Mi(Vr),po(Yi,!0),mn("")}return}Gi.source!=="blur"&&(cn==="combobox"&&Mi(vi),En==null||En(vi))},Co=function(vi){var Gi=vi;cn!=="tags"&&(Gi=vi.map(function(Vr){var ei=en.get(Vr);return ei==null?void 0:ei.value}).filter(function(Vr){return Vr!==void 0}));var Yi=Array.from(new Set([].concat((0,I.Z)(Mr),(0,I.Z)(Gi))));Mi(Yi),Yi.forEach(function(Vr){po(Vr,!0)})},vn=Y.useMemo(function(){var qn=ji!==!1&&jt!==!1;return(0,P.Z)((0,P.Z)({},ke),{},{flattenOptions:mi,onActiveValue:ii,defaultActiveFirstOption:As,onSelect:go,menuItemSelectedIcon:sr,rawValues:Mr,fieldNames:Xe,virtual:qn,direction:qi,listHeight:Te,listItemHeight:Ce,childrenAsData:Zt,maxCount:Si,optionRender:Ai})},[Si,ke,mi,ii,As,go,sr,Mr,Xe,ji,jt,qi,Te,Ce,Zt,Ai]);return Y.createElement($e.Provider,{value:vn},Y.createElement(ze,(0,E.Z)({},Hr,{id:Qt,prefixCls:Ye,ref:Wt,omitDomProps:Xi,mode:cn,displayValues:Pr,onDisplayValuesChange:Vo,direction:qi,searchValue:An,onSearch:mo,autoClearSearchValue:li,onSearchSplit:Co,dropdownMatchSelectWidth:jt,OptionList:Bn,emptyOptions:!mi.length,activeValue:ee,activeDescendantId:"".concat(Qt,"_list_").concat(cs)})))}),Wi=zn;Wi.Option=hn,Wi.OptGroup=je;var Ur=Wi,Nr=Ur},63158:function(j,S,p){"use strict";var E=p(67711),I=p(52873),D=p(16886),P=p(33346),V=p(59301),C=p(92310),Z=p.n(C),lt=p(18929),J=p(10228),Y=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Mt=V.forwardRef(function(ct,$t){var Ft,_t=ct.prefixCls,Ct=_t===void 0?"rc-switch":_t,xt=ct.className,St=ct.checked,ft=ct.defaultChecked,vt=ct.disabled,ot=ct.loadingIcon,st=ct.checkedChildren,q=ct.unCheckedChildren,wt=ct.onClick,Bt=ct.onChange,pt=ct.onKeyDown,Ht=(0,P.Z)(ct,Y),At=(0,lt.Z)(!1,{value:St,defaultValue:ft}),gt=(0,D.Z)(At,2),Pt=gt[0],kt=gt[1];function Gt(pe,Dt){var rt=Pt;return vt||(rt=pe,kt(rt),Bt==null||Bt(rt,Dt)),rt}function ue(pe){pe.which===J.Z.LEFT?Gt(!1,pe):pe.which===J.Z.RIGHT&&Gt(!0,pe),pt==null||pt(pe)}function le(pe){var Dt=Gt(!Pt,pe);wt==null||wt(Dt,pe)}var re=Z()(Ct,xt,(Ft={},(0,I.Z)(Ft,"".concat(Ct,"-checked"),Pt),(0,I.Z)(Ft,"".concat(Ct,"-disabled"),vt),Ft));return V.createElement("button",(0,E.Z)({},Ht,{type:"button",role:"switch","aria-checked":Pt,disabled:vt,className:re,ref:$t,onKeyDown:ue,onClick:le}),ot,V.createElement("span",{className:"".concat(Ct,"-inner")},V.createElement("span",{className:"".concat(Ct,"-inner-checked")},st),V.createElement("span",{className:"".concat(Ct,"-inner-unchecked")},q)))});Mt.displayName="Switch",S.Z=Mt},86351:function(j,S,p){"use strict";p.d(S,{R:function(){return I},w:function(){return E}});var E={},I="rc-table-internal-hook"},97347:function(j,S,p){"use strict";p.d(S,{L:function(){return Ct},Z:function(){return ot}});var E=p(16886),I=p(52873),D=p(15142),P=p(26420),V=p(98506),C=p(33346),Z=p(11592),lt=p(48736),J=p(59301),Y=p(86351),Mt=p(54451);function ct(st){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof q=="number"?q:q.endsWith("%")?st*parseFloat(q)/100:null}function $t(st,q,wt){return J.useMemo(function(){if(q&&q>0){var Bt=0,pt=0;st.forEach(function(le){var re=ct(q,le.width);re?Bt+=re:pt+=1});var Ht=Math.max(q,wt),At=Math.max(Ht-Bt,pt),gt=pt,Pt=At/pt,kt=0,Gt=st.map(function(le){var re=(0,V.Z)({},le),pe=ct(q,re.width);if(pe)re.width=pe;else{var Dt=Math.floor(Pt);re.width=gt===1?At:Dt,At-=Dt,gt-=1}return kt+=re.width,re});if(kt<Ht){var ue=Ht/kt;At=Ht,Gt.forEach(function(le,re){var pe=Math.floor(le.width*ue);le.width=re===Gt.length-1?At:pe,At-=pe})}return[Gt,Math.max(kt,Ht)]}return[st,q]},[st,q,wt])}var Ft=["children"],_t=["fixed"];function Ct(st){return(0,Z.Z)(st).filter(function(q){return J.isValidElement(q)}).map(function(q){var wt=q.key,Bt=q.props,pt=Bt.children,Ht=(0,C.Z)(Bt,Ft),At=(0,V.Z)({key:wt},Ht);return pt&&(At.children=Ct(pt)),At})}function xt(st){return st.filter(function(q){return q&&(0,P.Z)(q)==="object"&&!q.hidden}).map(function(q){var wt=q.children;return wt&&wt.length>0?(0,V.Z)((0,V.Z)({},q),{},{children:xt(wt)}):q})}function St(st){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return st.filter(function(wt){return wt&&(0,P.Z)(wt)==="object"}).reduce(function(wt,Bt,pt){var Ht=Bt.fixed,At=Ht===!0?"left":Ht,gt="".concat(q,"-").concat(pt),Pt=Bt.children;return Pt&&Pt.length>0?[].concat((0,D.Z)(wt),(0,D.Z)(St(Pt,gt).map(function(kt){return(0,V.Z)({fixed:At},kt)}))):[].concat((0,D.Z)(wt),[(0,V.Z)((0,V.Z)({key:gt},Bt),{},{fixed:At})])},[])}function ft(st){return st.map(function(q){var wt=q.fixed,Bt=(0,C.Z)(q,_t),pt=wt;return wt==="left"?pt="right":wt==="right"&&(pt="left"),(0,V.Z)({fixed:pt},Bt)})}function vt(st,q){var wt=st.prefixCls,Bt=st.columns,pt=st.children,Ht=st.expandable,At=st.expandedKeys,gt=st.columnTitle,Pt=st.getRowKey,kt=st.onTriggerExpand,Gt=st.expandIcon,ue=st.rowExpandable,le=st.expandIconColumnIndex,re=st.direction,pe=st.expandRowByClick,Dt=st.columnWidth,rt=st.fixed,Q=st.scrollWidth,ie=st.clientWidth,ce=J.useMemo(function(){var Dn=Bt||Ct(pt)||[];return xt(Dn.slice())},[Bt,pt]),oe=J.useMemo(function(){if(Ht){var Dn=ce.slice();if(!Dn.includes(Y.w)){var K=le||0;K>=0&&(K||rt==="left"||!rt)&&Dn.splice(K,0,Y.w),rt==="right"&&Dn.splice(ce.length,0,Y.w)}var O=Dn.indexOf(Y.w);Dn=Dn.filter(function(_,at){return _!==Y.w||at===O});var k=ce[O],H;rt?H=rt:H=k?k.fixed:null;var tt=(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({},Mt.v,{className:"".concat(wt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",gt),"fixed",H),"className","".concat(wt,"-row-expand-icon-cell")),"width",Dt),"render",function(at,se,Ve){var Ke=Pt(se,Ve),qt=At.has(Ke),he=ue?ue(se):!0,de=Gt({prefixCls:wt,expanded:qt,expandable:he,record:se,onExpand:kt});return pe?J.createElement("span",{onClick:function($e){return $e.stopPropagation()}},de):de});return Dn.map(function(_){return _===Y.w?tt:_})}return ce.filter(function(_){return _!==Y.w})},[Ht,ce,Pt,At,Gt,re]),pn=J.useMemo(function(){var Dn=oe;return q&&(Dn=q(Dn)),Dn.length||(Dn=[{render:function(){return null}}]),Dn},[q,oe,re]),Ze=J.useMemo(function(){return re==="rtl"?ft(St(pn)):St(pn)},[pn,re,Q]),Nn=J.useMemo(function(){for(var Dn=-1,K=Ze.length-1;K>=0;K-=1){var O=Ze[K].fixed;if(O==="left"||O===!0){Dn=K;break}}if(Dn>=0)for(var k=0;k<=Dn;k+=1){var H=Ze[k].fixed;if(H!=="left"&&H!==!0)return!0}var tt=Ze.findIndex(function(se){var Ve=se.fixed;return Ve==="right"});if(tt>=0)for(var _=tt;_<Ze.length;_+=1){var at=Ze[_].fixed;if(at!=="right")return!0}return!1},[Ze]),me=$t(Ze,Q,ie),on=(0,E.Z)(me,2),un=on[0],Ln=on[1];return[pn,un,Ln,Nn]}var ot=vt},4030:function(j,S,p){"use strict";p.d(S,{w2:function(){return E.w},vP:function(){return we.v},RQ:function(){return E.R},ER:function(){return Ke},Q$:function(){return ui},TN:function(){return Bi}});var E=p(86351),I=p(16886),D=p(6089),P=p(34280),V=p(13697),C=p(59301),Z=p(4676);function lt(Qt){var Le=C.createContext(void 0),Zt=function(Xe){var an=Xe.value,On=Xe.children,An=C.useRef(an);An.current=an;var mn=C.useState(function(){return{getValue:function(){return An.current},listeners:new Set}}),ke=(0,I.Z)(mn,1),qe=ke[0];return(0,P.Z)(function(){(0,Z.unstable_batchedUpdates)(function(){qe.listeners.forEach(function(en){en(an)})})},[an]),C.createElement(Le.Provider,{value:qe},On)};return{Context:Le,Provider:Zt,defaultValue:Qt}}function J(Qt,Le){var Zt=(0,D.Z)(typeof Le=="function"?Le:function(en){if(Le===void 0)return en;if(!Array.isArray(Le))return en[Le];var He={};return Le.forEach(function(nn){He[nn]=en[nn]}),He}),z=C.useContext(Qt==null?void 0:Qt.Context),Xe=z||{},an=Xe.listeners,On=Xe.getValue,An=C.useRef();An.current=Zt(z?On():Qt==null?void 0:Qt.defaultValue);var mn=C.useState({}),ke=(0,I.Z)(mn,2),qe=ke[1];return(0,P.Z)(function(){if(!z)return;function en(He){var nn=Zt(He);(0,V.Z)(An.current,nn,!0)||qe({})}return an.add(en),function(){an.delete(en)}},[z]),An.current}var Y=p(67711),Mt=p(8654);function ct(){var Qt=C.createContext(null);function Le(){return C.useContext(Qt)}function Zt(Xe,an){var On=(0,Mt.Yr)(Xe),An=function(ke,qe){var en=On?{ref:qe}:{},He=C.useRef(0),nn=C.useRef(ke),_n=Le();return _n!==null?C.createElement(Xe,(0,Y.Z)({},ke,en)):((!an||an(nn.current,ke))&&(He.current+=1),nn.current=ke,C.createElement(Qt.Provider,{value:He.current},C.createElement(Xe,(0,Y.Z)({},ke,en))))};return On?C.forwardRef(An):An}function z(Xe,an){var On=(0,Mt.Yr)(Xe),An=function(ke,qe){var en=On?{ref:qe}:{};return Le(),C.createElement(Xe,(0,Y.Z)({},ke,en))};return On?C.memo(C.forwardRef(An),an):C.memo(An,an)}return{makeImmutable:Zt,responseImmutable:z,useImmutableMark:Le}}var $t=ct(),Ft=$t.makeImmutable,_t=$t.responseImmutable,Ct=$t.useImmutableMark,xt=ct(),St=xt.makeImmutable,ft=xt.responseImmutable,vt=xt.useImmutableMark,ot=lt(),st=ot;function q(Qt,Le){var Zt=React.useRef(0);Zt.current+=1;var z=React.useRef(Qt),Xe=[];Object.keys(Qt||{}).map(function(On){var An;(Qt==null?void 0:Qt[On])!==((An=z.current)===null||An===void 0?void 0:An[On])&&Xe.push(On)}),z.current=Qt;var an=React.useRef([]);return Xe.length&&(an.current=Xe),React.useDebugValue(Zt.current),React.useDebugValue(an.current.join(", ")),Le&&console.log("".concat(Le,":"),Zt.current,an.current),Zt.current}var wt=null,Bt=null,pt=p(26420),Ht=p(98506),At=p(52873),gt=p(92310),Pt=p.n(gt),kt=p(80547),Gt=p(97938),ue=p(48736),le=C.createContext({renderWithProps:!1}),re=le,pe="RC_TABLE_KEY";function Dt(Qt){return Qt==null?[]:Array.isArray(Qt)?Qt:[Qt]}function rt(Qt){var Le=[],Zt={};return Qt.forEach(function(z){for(var Xe=z||{},an=Xe.key,On=Xe.dataIndex,An=an||Dt(On).join("-")||pe;Zt[An];)An="".concat(An,"_next");Zt[An]=!0,Le.push(An)}),Le}function Q(Qt){return Qt!=null}function ie(Qt){return typeof Qt=="number"&&!Number.isNaN(Qt)}function ce(Qt){return Qt&&(0,pt.Z)(Qt)==="object"&&!Array.isArray(Qt)&&!C.isValidElement(Qt)}function oe(Qt,Le,Zt,z,Xe,an){var On=C.useContext(re),An=vt(),mn=(0,kt.Z)(function(){if(Q(z))return[z];var ke=Le==null||Le===""?[]:Array.isArray(Le)?Le:[Le],qe=(0,Gt.Z)(Qt,ke),en=qe,He=void 0;if(Xe){var nn=Xe(qe,Qt,Zt);ce(nn)?(en=nn.children,He=nn.props,On.renderWithProps=!0):en=nn}return[en,He]},[An,Qt,z,Le,Xe,Zt],function(ke,qe){if(an){var en=(0,I.Z)(ke,2),He=en[1],nn=(0,I.Z)(qe,2),_n=nn[1];return an(_n,He)}return On.renderWithProps?!0:!(0,V.Z)(ke,qe,!0)});return mn}function pn(Qt,Le,Zt,z){var Xe=Qt+Le-1;return Qt<=z&&Xe>=Zt}function Ze(Qt,Le){return J(st,function(Zt){var z=pn(Qt,Le||1,Zt.hoverStartRow,Zt.hoverEndRow);return[z,Zt.onHover]})}var Nn=p(70425),me=function(Le){var Zt=Le.ellipsis,z=Le.rowType,Xe=Le.children,an,On=Zt===!0?{showTitle:!0}:Zt;return On&&(On.showTitle||z==="header")&&(typeof Xe=="string"||typeof Xe=="number"?an=Xe.toString():C.isValidElement(Xe)&&typeof Xe.props.children=="string"&&(an=Xe.props.children)),an};function on(Qt){var Le,Zt,z,Xe,an,On,An,mn,ke=Qt.component,qe=Qt.children,en=Qt.ellipsis,He=Qt.scope,nn=Qt.prefixCls,_n=Qt.className,ci=Qt.align,si=Qt.record,Je=Qt.render,Ui=Qt.dataIndex,Ti=Qt.renderIndex,ar=Qt.shouldCellUpdate,bi=Qt.index,Kr=Qt.rowType,Pr=Qt.colSpan,Mr=Qt.rowSpan,Er=Qt.fixLeft,Or=Qt.fixRight,Zr=Qt.firstFixLeft,Xt=Qt.lastFixLeft,rr=Qt.firstFixRight,$i=Qt.lastFixRight,mi=Qt.appendNode,Mi=Qt.additionalProps,er=Mi===void 0?{}:Mi,Sr=Qt.isSticky,ee="".concat(nn,"-cell"),Ni=J(st,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Gr=Ni.supportSticky,ws=Ni.allColumnsFixedLeft,cs=Ni.rowHoverable,Ma=oe(si,Ui,Ti,qe,Je,ar),As=(0,I.Z)(Ma,2),ii=As[0],po=As[1],go={},Vo=typeof Er=="number"&&Gr,mo=typeof Or=="number"&&Gr;Vo&&(go.position="sticky",go.left=Er),mo&&(go.position="sticky",go.right=Or);var Co=(Le=(Zt=(z=po==null?void 0:po.colSpan)!==null&&z!==void 0?z:er.colSpan)!==null&&Zt!==void 0?Zt:Pr)!==null&&Le!==void 0?Le:1,vn=(Xe=(an=(On=po==null?void 0:po.rowSpan)!==null&&On!==void 0?On:er.rowSpan)!==null&&an!==void 0?an:Mr)!==null&&Xe!==void 0?Xe:1,qn=Ze(bi,vn),vi=(0,I.Z)(qn,2),Gi=vi[0],Yi=vi[1],Vr=(0,Nn.zX)(function(xs){var eo;si&&Yi(bi,bi+vn-1),er==null||(eo=er.onMouseEnter)===null||eo===void 0||eo.call(er,xs)}),ei=(0,Nn.zX)(function(xs){var eo;si&&Yi(-1,-1),er==null||(eo=er.onMouseLeave)===null||eo===void 0||eo.call(er,xs)});if(Co===0||vn===0)return null;var Jo=(An=er.title)!==null&&An!==void 0?An:me({rowType:Kr,ellipsis:en,children:ii}),So=Pt()(ee,_n,(mn={},(0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)(mn,"".concat(ee,"-fix-left"),Vo&&Gr),"".concat(ee,"-fix-left-first"),Zr&&Gr),"".concat(ee,"-fix-left-last"),Xt&&Gr),"".concat(ee,"-fix-left-all"),Xt&&ws&&Gr),"".concat(ee,"-fix-right"),mo&&Gr),"".concat(ee,"-fix-right-first"),rr&&Gr),"".concat(ee,"-fix-right-last"),$i&&Gr),"".concat(ee,"-ellipsis"),en),"".concat(ee,"-with-append"),mi),"".concat(ee,"-fix-sticky"),(Vo||mo)&&Sr&&Gr),(0,At.Z)(mn,"".concat(ee,"-row-hover"),!po&&Gi)),er.className,po==null?void 0:po.className),xo={};ci&&(xo.textAlign=ci);var tr=(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({},po==null?void 0:po.style),go),xo),er.style),$r=ii;return(0,pt.Z)($r)==="object"&&!Array.isArray($r)&&!C.isValidElement($r)&&($r=null),en&&(Xt||rr)&&($r=C.createElement("span",{className:"".concat(ee,"-content")},$r)),C.createElement(ke,(0,Y.Z)({},po,er,{className:So,style:tr,title:Jo,scope:He,onMouseEnter:cs?Vr:void 0,onMouseLeave:cs?ei:void 0,colSpan:Co!==1?Co:null,rowSpan:vn!==1?vn:null}),mi,$r)}var un=C.memo(on);function Ln(Qt,Le,Zt,z,Xe){var an=Zt[Qt]||{},On=Zt[Le]||{},An,mn;an.fixed==="left"?An=z.left[Xe==="rtl"?Le:Qt]:On.fixed==="right"&&(mn=z.right[Xe==="rtl"?Qt:Le]);var ke=!1,qe=!1,en=!1,He=!1,nn=Zt[Le+1],_n=Zt[Qt-1],ci=nn&&!nn.fixed||_n&&!_n.fixed||Zt.every(function(ar){return ar.fixed==="left"});if(Xe==="rtl"){if(An!==void 0){var si=_n&&_n.fixed==="left";He=!si&&ci}else if(mn!==void 0){var Je=nn&&nn.fixed==="right";en=!Je&&ci}}else if(An!==void 0){var Ui=nn&&nn.fixed==="left";ke=!Ui&&ci}else if(mn!==void 0){var Ti=_n&&_n.fixed==="right";qe=!Ti&&ci}return{fixLeft:An,fixRight:mn,lastFixLeft:ke,firstFixRight:qe,lastFixRight:en,firstFixLeft:He,isSticky:z.isSticky}}var Dn=C.createContext({}),K=Dn;function O(Qt){var Le=Qt.className,Zt=Qt.index,z=Qt.children,Xe=Qt.colSpan,an=Xe===void 0?1:Xe,On=Qt.rowSpan,An=Qt.align,mn=J(st,["prefixCls","direction"]),ke=mn.prefixCls,qe=mn.direction,en=C.useContext(K),He=en.scrollColumnIndex,nn=en.stickyOffsets,_n=en.flattenColumns,ci=Zt+an-1,si=ci+1===He?an+1:an,Je=Ln(Zt,Zt+si-1,_n,nn,qe);return C.createElement(un,(0,Y.Z)({className:Le,index:Zt,component:"td",prefixCls:ke,record:null,dataIndex:null,align:An,colSpan:si,rowSpan:On,render:function(){return z}},Je))}var k=p(33346),H=["children"];function tt(Qt){var Le=Qt.children,Zt=(0,k.Z)(Qt,H);return C.createElement("tr",Zt,Le)}function _(Qt){var Le=Qt.children;return Le}_.Row=tt,_.Cell=O;var at=_;function se(Qt){var Le=Qt.children,Zt=Qt.stickyOffsets,z=Qt.flattenColumns,Xe=J(st,"prefixCls"),an=z.length-1,On=z[an],An=C.useMemo(function(){return{stickyOffsets:Zt,flattenColumns:z,scrollColumnIndex:On!=null&&On.scrollbar?an:null}},[On,z,an,Zt]);return C.createElement(K.Provider,{value:An},C.createElement("tfoot",{className:"".concat(Xe,"-summary")},Le))}var Ve=ft(se),Ke=at,qt=p(29301),he=p(24514),de=p(75152),Fe=p(26112);function $e(Qt,Le,Zt,z,Xe,an,On){Qt.push({record:Le,indent:Zt,index:On});var An=an(Le),mn=Xe==null?void 0:Xe.has(An);if(Le&&Array.isArray(Le[z])&&mn)for(var ke=0;ke<Le[z].length;ke+=1)$e(Qt,Le[z][ke],Zt+1,z,Xe,an,ke)}function Ee(Qt,Le,Zt,z){var Xe=C.useMemo(function(){if(Zt!=null&&Zt.size){for(var an=[],On=0;On<(Qt==null?void 0:Qt.length);On+=1){var An=Qt[On];$e(an,An,0,Le,Zt,z,On)}return an}return Qt==null?void 0:Qt.map(function(mn,ke){return{record:mn,indent:0,index:ke}})},[Qt,Le,Zt,z]);return Xe}function zt(Qt,Le,Zt,z){var Xe=J(st,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),an=Xe.flattenColumns,On=Xe.expandableType,An=Xe.expandedKeys,mn=Xe.childrenColumnName,ke=Xe.onTriggerExpand,qe=Xe.rowExpandable,en=Xe.onRow,He=Xe.expandRowByClick,nn=Xe.rowClassName,_n=On==="nest",ci=On==="row"&&(!qe||qe(Qt)),si=ci||_n,Je=An&&An.has(Le),Ui=mn&&Qt&&Qt[mn],Ti=(0,Nn.zX)(ke),ar=en==null?void 0:en(Qt,Zt),bi=ar==null?void 0:ar.onClick,Kr=function(Or){He&&si&&ke(Qt,Or);for(var Zr=arguments.length,Xt=new Array(Zr>1?Zr-1:0),rr=1;rr<Zr;rr++)Xt[rr-1]=arguments[rr];bi==null||bi.apply(void 0,[Or].concat(Xt))},Pr;typeof nn=="string"?Pr=nn:typeof nn=="function"&&(Pr=nn(Qt,Zt,z));var Mr=rt(an);return(0,Ht.Z)((0,Ht.Z)({},Xe),{},{columnsKey:Mr,nestExpandable:_n,expanded:Je,hasNestChildren:Ui,record:Qt,onTriggerExpand:Ti,rowSupportExpand:ci,expandable:si,rowProps:(0,Ht.Z)((0,Ht.Z)({},ar),{},{className:Pt()(Pr,ar==null?void 0:ar.className),onClick:Kr})})}function Be(Qt){var Le=Qt.prefixCls,Zt=Qt.children,z=Qt.component,Xe=Qt.cellComponent,an=Qt.className,On=Qt.expanded,An=Qt.colSpan,mn=Qt.isEmpty,ke=J(st,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),qe=ke.scrollbarSize,en=ke.fixHeader,He=ke.fixColumn,nn=ke.componentWidth,_n=ke.horizonScroll,ci=Zt;return(mn?_n&&nn:He)&&(ci=C.createElement("div",{style:{width:nn-(en&&!mn?qe:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Le,"-expanded-row-fixed")},ci)),C.createElement(z,{className:an,style:{display:On?null:"none"}},C.createElement(un,{component:Xe,prefixCls:Le,colSpan:An},ci))}var Ge=Be;function Ie(Qt){var Le=Qt.prefixCls,Zt=Qt.record,z=Qt.onExpand,Xe=Qt.expanded,an=Qt.expandable,On="".concat(Le,"-row-expand-icon");if(!an)return C.createElement("span",{className:Pt()(On,"".concat(Le,"-row-spaced"))});var An=function(ke){z(Zt,ke),ke.stopPropagation()};return C.createElement("span",{className:Pt()(On,(0,At.Z)((0,At.Z)({},"".concat(Le,"-row-expanded"),Xe),"".concat(Le,"-row-collapsed"),!Xe)),onClick:An})}function ze(Qt,Le,Zt){var z=[];function Xe(an){(an||[]).forEach(function(On,An){z.push(Le(On,An)),Xe(On[Zt])})}return Xe(Qt),z}function Cn(Qt,Le,Zt,z){return typeof Qt=="string"?Qt:typeof Qt=="function"?Qt(Le,Zt,z):""}function je(Qt,Le,Zt,z,Xe){var an=Qt.record,On=Qt.prefixCls,An=Qt.columnsKey,mn=Qt.fixedInfoList,ke=Qt.expandIconColumnIndex,qe=Qt.nestExpandable,en=Qt.indentSize,He=Qt.expandIcon,nn=Qt.expanded,_n=Qt.hasNestChildren,ci=Qt.onTriggerExpand,si=An[Zt],Je=mn[Zt],Ui;Zt===(ke||0)&&qe&&(Ui=C.createElement(C.Fragment,null,C.createElement("span",{style:{paddingLeft:"".concat(en*z,"px")},className:"".concat(On,"-row-indent indent-level-").concat(z)}),He({prefixCls:On,expanded:nn,expandable:_n,record:an,onExpand:ci})));var Ti;return Le.onCell&&(Ti=Le.onCell(an,Xe)),{key:si,fixedInfo:Je,appendCellNode:Ui,additionalCellProps:Ti||{}}}function bt(Qt){var Le=Qt.className,Zt=Qt.style,z=Qt.record,Xe=Qt.index,an=Qt.renderIndex,On=Qt.rowKey,An=Qt.indent,mn=An===void 0?0:An,ke=Qt.rowComponent,qe=Qt.cellComponent,en=Qt.scopeCellComponent,He=zt(z,On,Xe,mn),nn=He.prefixCls,_n=He.flattenColumns,ci=He.expandedRowClassName,si=He.expandedRowRender,Je=He.rowProps,Ui=He.expanded,Ti=He.rowSupportExpand,ar=C.useRef(!1);ar.current||(ar.current=Ui);var bi=Cn(ci,z,Xe,mn),Kr=C.createElement(ke,(0,Y.Z)({},Je,{"data-row-key":On,className:Pt()(Le,"".concat(nn,"-row"),"".concat(nn,"-row-level-").concat(mn),Je==null?void 0:Je.className,(0,At.Z)({},bi,mn>=1)),style:(0,Ht.Z)((0,Ht.Z)({},Zt),Je==null?void 0:Je.style)}),_n.map(function(Er,Or){var Zr=Er.render,Xt=Er.dataIndex,rr=Er.className,$i=je(He,Er,Or,mn,Xe),mi=$i.key,Mi=$i.fixedInfo,er=$i.appendCellNode,Sr=$i.additionalCellProps;return C.createElement(un,(0,Y.Z)({className:rr,ellipsis:Er.ellipsis,align:Er.align,scope:Er.rowScope,component:Er.rowScope?en:qe,prefixCls:nn,key:mi,record:z,index:Xe,renderIndex:an,dataIndex:Xt,render:Zr,shouldCellUpdate:Er.shouldCellUpdate},Mi,{appendNode:er,additionalProps:Sr}))})),Pr;if(Ti&&(ar.current||Ui)){var Mr=si(z,Xe,mn+1,Ui);Pr=C.createElement(Ge,{expanded:Ui,className:Pt()("".concat(nn,"-expanded-row"),"".concat(nn,"-expanded-row-level-").concat(mn+1),bi),prefixCls:nn,component:ke,cellComponent:qe,colSpan:_n.length,isEmpty:!1},Mr)}return C.createElement(C.Fragment,null,Kr,Pr)}var hn=ft(bt);function Sn(Qt){var Le=Qt.columnKey,Zt=Qt.onColumnResize,z=C.useRef();return(0,P.Z)(function(){z.current&&Zt(Le,z.current.offsetWidth)},[]),C.createElement(qt.Z,{data:Le},C.createElement("td",{ref:z,style:{padding:0,border:0,height:0}},C.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Jt=p(29194);function Hn(Qt){var Le=Qt.prefixCls,Zt=Qt.columnsKey,z=Qt.onColumnResize,Xe=C.useRef(null);return C.createElement("tr",{"aria-hidden":"true",className:"".concat(Le,"-measure-row"),style:{height:0,fontSize:0},ref:Xe},C.createElement(qt.Z.Collection,{onBatchResize:function(On){(0,Jt.Z)(Xe.current)&&On.forEach(function(An){var mn=An.data,ke=An.size;z(mn,ke.offsetWidth)})}},Zt.map(function(an){return C.createElement(Sn,{key:an,columnKey:an,onColumnResize:z})})))}function ri(Qt){var Le=Qt.data,Zt=Qt.measureColumnWidth,z=J(st,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Xe=z.prefixCls,an=z.getComponent,On=z.onColumnResize,An=z.flattenColumns,mn=z.getRowKey,ke=z.expandedKeys,qe=z.childrenColumnName,en=z.emptyNode,He=Ee(Le,qe,ke,mn),nn=C.useRef({renderWithProps:!1}),_n=an(["body","wrapper"],"tbody"),ci=an(["body","row"],"tr"),si=an(["body","cell"],"td"),Je=an(["body","cell"],"th"),Ui;Le.length?Ui=He.map(function(ar,bi){var Kr=ar.record,Pr=ar.indent,Mr=ar.index,Er=mn(Kr,bi);return C.createElement(hn,{key:Er,rowKey:Er,record:Kr,index:bi,renderIndex:Mr,rowComponent:ci,cellComponent:si,scopeCellComponent:Je,indent:Pr})}):Ui=C.createElement(Ge,{expanded:!0,className:"".concat(Xe,"-placeholder"),prefixCls:Xe,component:ci,cellComponent:si,colSpan:An.length,isEmpty:!0},en);var Ti=rt(An);return C.createElement(re.Provider,{value:nn.current},C.createElement(_n,{className:"".concat(Xe,"-tbody")},Zt&&C.createElement(Hn,{prefixCls:Xe,columnsKey:Ti,onColumnResize:On}),Ui))}var Qn=ft(ri),we=p(54451),wi=["columnType"];function xi(Qt){for(var Le=Qt.colWidths,Zt=Qt.columns,z=Qt.columCount,Xe=J(st,["tableLayout"]),an=Xe.tableLayout,On=[],An=z||Zt.length,mn=!1,ke=An-1;ke>=0;ke-=1){var qe=Le[ke],en=Zt&&Zt[ke],He=void 0,nn=void 0;if(en&&(He=en[we.v],an==="auto"&&(nn=en.minWidth)),qe||nn||He||mn){var _n=He||{},ci=_n.columnType,si=(0,k.Z)(_n,wi);On.unshift(C.createElement("col",(0,Y.Z)({key:ke,style:{width:qe,minWidth:nn}},si))),mn=!0}}return C.createElement("colgroup",null,On)}var Bn=xi,Kn=p(15142),Ei=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function A(Qt,Le){return(0,C.useMemo)(function(){for(var Zt=[],z=0;z<Le;z+=1){var Xe=Qt[z];if(Xe!==void 0)Zt[z]=Xe;else return null}return Zt},[Qt.join("_"),Le])}var Pn=C.forwardRef(function(Qt,Le){var Zt=Qt.className,z=Qt.noData,Xe=Qt.columns,an=Qt.flattenColumns,On=Qt.colWidths,An=Qt.columCount,mn=Qt.stickyOffsets,ke=Qt.direction,qe=Qt.fixHeader,en=Qt.stickyTopOffset,He=Qt.stickyBottomOffset,nn=Qt.stickyClassName,_n=Qt.onScroll,ci=Qt.maxContentScroll,si=Qt.children,Je=(0,k.Z)(Qt,Ei),Ui=J(st,["prefixCls","scrollbarSize","isSticky","getComponent"]),Ti=Ui.prefixCls,ar=Ui.scrollbarSize,bi=Ui.isSticky,Kr=Ui.getComponent,Pr=Kr(["header","table"],"table"),Mr=bi&&!qe?0:ar,Er=C.useRef(null),Or=C.useCallback(function(Sr){(0,Mt.mH)(Le,Sr),(0,Mt.mH)(Er,Sr)},[]);C.useEffect(function(){var Sr;function ee(Ni){var Gr=Ni,ws=Gr.currentTarget,cs=Gr.deltaX;cs&&(_n({currentTarget:ws,scrollLeft:ws.scrollLeft+cs}),Ni.preventDefault())}return(Sr=Er.current)===null||Sr===void 0||Sr.addEventListener("wheel",ee,{passive:!1}),function(){var Ni;(Ni=Er.current)===null||Ni===void 0||Ni.removeEventListener("wheel",ee)}},[]);var Zr=C.useMemo(function(){return an.every(function(Sr){return Sr.width})},[an]),Xt=an[an.length-1],rr={fixed:Xt?Xt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ti,"-cell-scrollbar")}}},$i=(0,C.useMemo)(function(){return Mr?[].concat((0,Kn.Z)(Xe),[rr]):Xe},[Mr,Xe]),mi=(0,C.useMemo)(function(){return Mr?[].concat((0,Kn.Z)(an),[rr]):an},[Mr,an]),Mi=(0,C.useMemo)(function(){var Sr=mn.right,ee=mn.left;return(0,Ht.Z)((0,Ht.Z)({},mn),{},{left:ke==="rtl"?[].concat((0,Kn.Z)(ee.map(function(Ni){return Ni+Mr})),[0]):ee,right:ke==="rtl"?Sr:[].concat((0,Kn.Z)(Sr.map(function(Ni){return Ni+Mr})),[0]),isSticky:bi})},[Mr,mn,bi]),er=A(On,An);return C.createElement("div",{style:(0,Ht.Z)({overflow:"hidden"},bi?{top:en,bottom:He}:{}),ref:Or,className:Pt()(Zt,(0,At.Z)({},nn,!!nn))},C.createElement(Pr,{style:{tableLayout:"fixed",visibility:z||er?null:"hidden"}},(!z||!ci||Zr)&&C.createElement(Bn,{colWidths:er?[].concat((0,Kn.Z)(er),[Mr]):[],columCount:An+1,columns:mi}),si((0,Ht.Z)((0,Ht.Z)({},Je),{},{stickyOffsets:Mi,columns:$i,flattenColumns:mi}))))}),gn=C.memo(Pn),$n=function(Le){var Zt=Le.cells,z=Le.stickyOffsets,Xe=Le.flattenColumns,an=Le.rowComponent,On=Le.cellComponent,An=Le.onHeaderRow,mn=Le.index,ke=J(st,["prefixCls","direction"]),qe=ke.prefixCls,en=ke.direction,He;An&&(He=An(Zt.map(function(_n){return _n.column}),mn));var nn=rt(Zt.map(function(_n){return _n.column}));return C.createElement(an,He,Zt.map(function(_n,ci){var si=_n.column,Je=Ln(_n.colStart,_n.colEnd,Xe,z,en),Ui;return si&&si.onHeaderCell&&(Ui=_n.column.onHeaderCell(si)),C.createElement(un,(0,Y.Z)({},_n,{scope:si.title?_n.colSpan>1?"colgroup":"col":null,ellipsis:si.ellipsis,align:si.align,component:On,prefixCls:qe,key:nn[ci]},Je,{additionalProps:Ui,rowType:"header"}))}))},Fi=$n;function Ki(Qt){var Le=[];function Zt(On,An){var mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Le[mn]=Le[mn]||[];var ke=An,qe=On.filter(Boolean).map(function(en){var He={key:en.key,className:en.className||"",children:en.title,column:en,colStart:ke},nn=1,_n=en.children;return _n&&_n.length>0&&(nn=Zt(_n,ke,mn+1).reduce(function(ci,si){return ci+si},0),He.hasSubColumns=!0),"colSpan"in en&&(nn=en.colSpan),"rowSpan"in en&&(He.rowSpan=en.rowSpan),He.colSpan=nn,He.colEnd=He.colStart+nn-1,Le[mn].push(He),ke+=nn,nn});return qe}Zt(Qt,0);for(var z=Le.length,Xe=function(An){Le[An].forEach(function(mn){!("rowSpan"in mn)&&!mn.hasSubColumns&&(mn.rowSpan=z-An)})},an=0;an<z;an+=1)Xe(an);return Le}var pi=function(Le){var Zt=Le.stickyOffsets,z=Le.columns,Xe=Le.flattenColumns,an=Le.onHeaderRow,On=J(st,["prefixCls","getComponent"]),An=On.prefixCls,mn=On.getComponent,ke=C.useMemo(function(){return Ki(z)},[z]),qe=mn(["header","wrapper"],"thead"),en=mn(["header","row"],"tr"),He=mn(["header","cell"],"th");return C.createElement(qe,{className:"".concat(An,"-thead")},ke.map(function(nn,_n){var ci=C.createElement(Fi,{key:_n,flattenColumns:Xe,cells:nn,stickyOffsets:Zt,rowComponent:en,cellComponent:He,onHeaderRow:an,index:_n});return ci}))},so=ft(pi),Zi=p(97347);function or(Qt,Le,Zt){var z=(0,we.g)(Qt),Xe=z.expandIcon,an=z.expandedRowKeys,On=z.defaultExpandedRowKeys,An=z.defaultExpandAllRows,mn=z.expandedRowRender,ke=z.onExpand,qe=z.onExpandedRowsChange,en=z.childrenColumnName,He=Xe||Ie,nn=en||"children",_n=C.useMemo(function(){return mn?"row":Qt.expandable&&Qt.internalHooks===E.R&&Qt.expandable.__PARENT_RENDER_ICON__||Le.some(function(bi){return bi&&(0,pt.Z)(bi)==="object"&&bi[nn]})?"nest":!1},[!!mn,Le]),ci=C.useState(function(){return On||(An?ze(Le,Zt,nn):[])}),si=(0,I.Z)(ci,2),Je=si[0],Ui=si[1],Ti=C.useMemo(function(){return new Set(an||Je||[])},[an,Je]),ar=C.useCallback(function(bi){var Kr=Zt(bi,Le.indexOf(bi)),Pr,Mr=Ti.has(Kr);Mr?(Ti.delete(Kr),Pr=(0,Kn.Z)(Ti)):Pr=[].concat((0,Kn.Z)(Ti),[Kr]),Ui(Pr),ke&&ke(!Mr,bi),qe&&qe(Pr)},[Zt,Ti,Le,ke,qe]);return[z,_n,Ti,He,nn,ar]}function Yn(Qt,Le,Zt){var z=Qt.map(function(Xe,an){return Ln(an,an,Qt,Le,Zt)});return(0,kt.Z)(function(){return z},[z],function(Xe,an){return!(0,V.Z)(Xe,an)})}function Mn(Qt){var Le=(0,C.useRef)(Qt),Zt=(0,C.useState)({}),z=(0,I.Z)(Zt,2),Xe=z[1],an=(0,C.useRef)(null),On=(0,C.useRef)([]);function An(mn){On.current.push(mn);var ke=Promise.resolve();an.current=ke,ke.then(function(){if(an.current===ke){var qe=On.current,en=Le.current;On.current=[],qe.forEach(function(He){Le.current=He(Le.current)}),an.current=null,en!==Le.current&&Xe({})}})}return(0,C.useEffect)(function(){return function(){an.current=null}},[]),[Le.current,An]}function fr(Qt){var Le=(0,C.useRef)(Qt||null),Zt=(0,C.useRef)();function z(){window.clearTimeout(Zt.current)}function Xe(On){Le.current=On,z(),Zt.current=window.setTimeout(function(){Le.current=null,Zt.current=void 0},100)}function an(){return Le.current}return(0,C.useEffect)(function(){return z},[]),[Xe,an]}function Li(){var Qt=C.useState(-1),Le=(0,I.Z)(Qt,2),Zt=Le[0],z=Le[1],Xe=C.useState(-1),an=(0,I.Z)(Xe,2),On=an[0],An=an[1],mn=C.useCallback(function(ke,qe){z(ke),An(qe)},[]);return[Zt,On,mn]}var Xi=p(47273),sn=(0,Xi.Z)()?window:null;function zn(Qt,Le){var Zt=(0,pt.Z)(Qt)==="object"?Qt:{},z=Zt.offsetHeader,Xe=z===void 0?0:z,an=Zt.offsetSummary,On=an===void 0?0:an,An=Zt.offsetScroll,mn=An===void 0?0:An,ke=Zt.getContainer,qe=ke===void 0?function(){return sn}:ke,en=qe()||sn,He=!!Qt;return C.useMemo(function(){return{isSticky:He,stickyClassName:He?"".concat(Le,"-sticky-holder"):"",offsetHeader:Xe,offsetSummary:On,offsetScroll:mn,container:en}},[He,mn,Xe,On,Le,en])}function Wi(Qt,Le,Zt){var z=(0,C.useMemo)(function(){var Xe=Le.length,an=function(ke,qe,en){for(var He=[],nn=0,_n=ke;_n!==qe;_n+=en)He.push(nn),Le[_n].fixed&&(nn+=Qt[_n]||0);return He},On=an(0,Xe,1),An=an(Xe-1,-1,-1).reverse();return Zt==="rtl"?{left:An,right:On}:{left:On,right:An}},[Qt,Le,Zt]);return z}var Ur=Wi;function Nr(Qt){var Le=Qt.className,Zt=Qt.children;return C.createElement("div",{className:Le},Zt)}var Et=Nr,Wt=p(8224),rn=p(16089),cn=p(76846);function Ut(Qt){var Le=(0,cn.bn)(Qt),Zt=Le.getBoundingClientRect(),z=document.documentElement;return{left:Zt.left+(window.pageXOffset||z.scrollLeft)-(z.clientLeft||document.body.clientLeft||0),top:Zt.top+(window.pageYOffset||z.scrollTop)-(z.clientTop||document.body.clientTop||0)}}var Ye=function(Le,Zt){var z,Xe,an=Le.scrollBodyRef,On=Le.onScroll,An=Le.offsetScroll,mn=Le.container,ke=Le.direction,qe=J(st,"prefixCls"),en=((z=an.current)===null||z===void 0?void 0:z.scrollWidth)||0,He=((Xe=an.current)===null||Xe===void 0?void 0:Xe.clientWidth)||0,nn=en&&He*(He/en),_n=C.useRef(),ci=Mn({scrollLeft:0,isHiddenScrollBar:!0}),si=(0,I.Z)(ci,2),Je=si[0],Ui=si[1],Ti=C.useRef({delta:0,x:0}),ar=C.useState(!1),bi=(0,I.Z)(ar,2),Kr=bi[0],Pr=bi[1],Mr=C.useRef(null);C.useEffect(function(){return function(){rn.Z.cancel(Mr.current)}},[]);var Er=function(){Pr(!1)},Or=function(mi){mi.persist(),Ti.current.delta=mi.pageX-Je.scrollLeft,Ti.current.x=0,Pr(!0),mi.preventDefault()},Zr=function(mi){var Mi,er=mi||((Mi=window)===null||Mi===void 0?void 0:Mi.event),Sr=er.buttons;if(!Kr||Sr===0){Kr&&Pr(!1);return}var ee=Ti.current.x+mi.pageX-Ti.current.x-Ti.current.delta,Ni=ke==="rtl";ee=Math.max(Ni?nn-He:0,Math.min(Ni?0:He-nn,ee));var Gr=!Ni||Math.abs(ee)+Math.abs(nn)<He;Gr&&(On({scrollLeft:ee/He*(en+2)}),Ti.current.x=mi.pageX)},Xt=function(){rn.Z.cancel(Mr.current),Mr.current=(0,rn.Z)(function(){if(an.current){var mi=Ut(an.current).top,Mi=mi+an.current.offsetHeight,er=mn===window?document.documentElement.scrollTop+window.innerHeight:Ut(mn).top+mn.clientHeight;Mi-(0,de.Z)()<=er||mi>=er-An?Ui(function(Sr){return(0,Ht.Z)((0,Ht.Z)({},Sr),{},{isHiddenScrollBar:!0})}):Ui(function(Sr){return(0,Ht.Z)((0,Ht.Z)({},Sr),{},{isHiddenScrollBar:!1})})}})},rr=function(mi){Ui(function(Mi){return(0,Ht.Z)((0,Ht.Z)({},Mi),{},{scrollLeft:mi/en*He||0})})};return C.useImperativeHandle(Zt,function(){return{setScrollLeft:rr,checkScrollBarVisible:Xt}}),C.useEffect(function(){var $i=(0,Wt.Z)(document.body,"mouseup",Er,!1),mi=(0,Wt.Z)(document.body,"mousemove",Zr,!1);return Xt(),function(){$i.remove(),mi.remove()}},[nn,Kr]),C.useEffect(function(){if(an.current){for(var $i=[],mi=(0,cn.bn)(an.current);mi;)$i.push(mi),mi=mi.parentElement;return $i.forEach(function(Mi){return Mi.addEventListener("scroll",Xt,!1)}),window.addEventListener("resize",Xt,!1),window.addEventListener("scroll",Xt,!1),mn.addEventListener("scroll",Xt,!1),function(){$i.forEach(function(Mi){return Mi.removeEventListener("scroll",Xt)}),window.removeEventListener("resize",Xt),window.removeEventListener("scroll",Xt),mn.removeEventListener("scroll",Xt)}}},[mn]),C.useEffect(function(){Je.isHiddenScrollBar||Ui(function($i){var mi=an.current;return mi?(0,Ht.Z)((0,Ht.Z)({},$i),{},{scrollLeft:mi.scrollLeft/mi.scrollWidth*mi.clientWidth}):$i})},[Je.isHiddenScrollBar]),en<=He||!nn||Je.isHiddenScrollBar?null:C.createElement("div",{style:{height:(0,de.Z)(),width:He,bottom:An},className:"".concat(qe,"-sticky-scroll")},C.createElement("div",{onMouseDown:Or,ref:_n,className:Pt()("".concat(qe,"-sticky-scroll-bar"),(0,At.Z)({},"".concat(qe,"-sticky-scroll-bar-active"),Kr)),style:{width:"".concat(nn,"px"),transform:"translate3d(".concat(Je.scrollLeft,"px, 0, 0)")}}))},kn=C.forwardRef(Ye);function te(Qt){return null}var R=te;function bn(Qt){return null}var En=bn,ve="rc-table",li=[],Wn={};function ni(){return"No Data"}function yn(Qt,Le){var Zt=(0,Ht.Z)({rowKey:"key",prefixCls:ve,emptyText:ni},Qt),z=Zt.prefixCls,Xe=Zt.className,an=Zt.rowClassName,On=Zt.style,An=Zt.data,mn=Zt.rowKey,ke=Zt.scroll,qe=Zt.tableLayout,en=Zt.direction,He=Zt.title,nn=Zt.footer,_n=Zt.summary,ci=Zt.caption,si=Zt.id,Je=Zt.showHeader,Ui=Zt.components,Ti=Zt.emptyText,ar=Zt.onRow,bi=Zt.onHeaderRow,Kr=Zt.onScroll,Pr=Zt.internalHooks,Mr=Zt.transformColumns,Er=Zt.internalRefs,Or=Zt.tailor,Zr=Zt.getContainerWidth,Xt=Zt.sticky,rr=Zt.rowHoverable,$i=rr===void 0?!0:rr,mi=An||li,Mi=!!mi.length,er=Pr===E.R,Sr=C.useCallback(function(wr,Jr){return(0,Gt.Z)(Ui,wr)||Jr},[Ui]),ee=C.useMemo(function(){return typeof mn=="function"?mn:function(wr){var Jr=wr&&wr[mn];return Jr}},[mn]),Ni=Sr(["body"]),Gr=Li(),ws=(0,I.Z)(Gr,3),cs=ws[0],Ma=ws[1],As=ws[2],ii=or(Zt,mi,ee),po=(0,I.Z)(ii,6),go=po[0],Vo=po[1],mo=po[2],Co=po[3],vn=po[4],qn=po[5],vi=ke==null?void 0:ke.x,Gi=C.useState(0),Yi=(0,I.Z)(Gi,2),Vr=Yi[0],ei=Yi[1],Jo=(0,Zi.Z)((0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({},Zt),go),{},{expandable:!!go.expandedRowRender,columnTitle:go.columnTitle,expandedKeys:mo,getRowKey:ee,onTriggerExpand:qn,expandIcon:Co,expandIconColumnIndex:go.expandIconColumnIndex,direction:en,scrollWidth:er&&Or&&typeof vi=="number"?vi:null,clientWidth:Vr}),er?Mr:null),So=(0,I.Z)(Jo,4),xo=So[0],tr=So[1],$r=So[2],xs=So[3],eo=$r!=null?$r:vi,hs=C.useMemo(function(){return{columns:xo,flattenColumns:tr}},[xo,tr]),Us=C.useRef(),Is=C.useRef(),Ro=C.useRef(),Oa=C.useRef();C.useImperativeHandle(Le,function(){return{nativeElement:Us.current,scrollTo:function(Jr){var No;if(Ro.current instanceof HTMLElement){var gs=Jr.index,ns=Jr.top,Ea=Jr.key;if(ie(ns)){var Sa;(Sa=Ro.current)===null||Sa===void 0||Sa.scrollTo({top:ns})}else{var Ta,ra=Ea!=null?Ea:ee(mi[gs]);(Ta=Ro.current.querySelector('[data-row-key="'.concat(ra,'"]')))===null||Ta===void 0||Ta.scrollIntoView()}}else(No=Ro.current)!==null&&No!==void 0&&No.scrollTo&&Ro.current.scrollTo(Jr)}}});var Wl=C.useRef(),Hs=C.useState(!1),na=(0,I.Z)(Hs,2),zs=na[0],nl=na[1],cu=C.useState(!1),hu=(0,I.Z)(cu,2),_o=hu[0],Yl=hu[1],du=C.useState(new Map),ml=(0,I.Z)(du,2),Ml=ml[0],ds=ml[1],Cs=rt(tr),Zo=Cs.map(function(wr){return Ml.get(wr)}),as=C.useMemo(function(){return Zo},[Zo.join("_")]),vl=Ur(as,tr,en),Ls=ke&&Q(ke.y),io=ke&&Q(eo)||!!go.fixed,Xr=io&&tr.some(function(wr){var Jr=wr.fixed;return Jr}),Ar=C.useRef(),Wo=zn(Xt,z),jn=Wo.isSticky,qo=Wo.offsetHeader,It=Wo.offsetSummary,Oe=Wo.offsetScroll,xa=Wo.stickyClassName,il=Wo.container,Fo=C.useMemo(function(){return _n==null?void 0:_n(mi)},[_n,mi]),ts=(Ls||jn)&&C.isValidElement(Fo)&&Fo.type===at&&Fo.props.fixed,ia,ba,Kl;Ls&&(ba={overflowY:Mi?"scroll":"auto",maxHeight:ke.y}),io&&(ia={overflowX:"auto"},Ls||(ba={overflowY:"hidden"}),Kl={width:eo===!0?"auto":eo,minWidth:"100%"});var To=C.useCallback(function(wr,Jr){ds(function(No){if(No.get(wr)!==Jr){var gs=new Map(No);return gs.set(wr,Jr),gs}return No})},[]),Oi=fr(null),fs=(0,I.Z)(Oi,2),_s=fs[0],Wr=fs[1];function gr(wr,Jr){Jr&&(typeof Jr=="function"?Jr(wr):Jr.scrollLeft!==wr&&(Jr.scrollLeft=wr,Jr.scrollLeft!==wr&&setTimeout(function(){Jr.scrollLeft=wr},0)))}var ko=(0,D.Z)(function(wr){var Jr=wr.currentTarget,No=wr.scrollLeft,gs=en==="rtl",ns=typeof No=="number"?No:Jr.scrollLeft,Ea=Jr||Wn;if(!Wr()||Wr()===Ea){var Sa;_s(Ea),gr(ns,Is.current),gr(ns,Ro.current),gr(ns,Wl.current),gr(ns,(Sa=Ar.current)===null||Sa===void 0?void 0:Sa.setScrollLeft)}var Ta=Jr||Is.current;if(Ta){var ra=er&&Or&&typeof eo=="number"?eo:Ta.scrollWidth,Wa=Ta.clientWidth;if(ra===Wa){nl(!1),Yl(!1);return}gs?(nl(-ns<ra-Wa),Yl(-ns>0)):(nl(ns>0),Yl(ns<ra-Wa))}}),js=(0,D.Z)(function(wr){ko(wr),Kr==null||Kr(wr)}),fo=function(){if(io&&Ro.current){var Jr;ko({currentTarget:(0,cn.bn)(Ro.current),scrollLeft:(Jr=Ro.current)===null||Jr===void 0?void 0:Jr.scrollLeft})}else nl(!1),Yl(!1)},Zs=function(Jr){var No,gs=Jr.width;(No=Ar.current)===null||No===void 0||No.checkScrollBarVisible();var ns=Us.current?Us.current.offsetWidth:gs;er&&Zr&&Us.current&&(ns=Zr(Us.current,ns)||ns),ns!==Vr&&(fo(),ei(ns))},es=C.useRef(!1);C.useEffect(function(){es.current&&fo()},[io,An,xo.length]),C.useEffect(function(){es.current=!0},[]);var yl=C.useState(0),Qr=(0,I.Z)(yl,2),ps=Qr[0],_r=Qr[1],ao=C.useState(!0),ho=(0,I.Z)(ao,2),wo=ho[0],Tr=ho[1];(0,P.Z)(function(){(!Or||!er)&&(Ro.current instanceof Element?_r((0,de.o)(Ro.current).width):_r((0,de.o)(Oa.current).width)),Tr((0,he.G)("position","sticky"))},[]),C.useEffect(function(){er&&Er&&(Er.body.current=Ro.current)});var Zl=C.useCallback(function(wr){return C.createElement(C.Fragment,null,C.createElement(so,wr),ts==="top"&&C.createElement(Ve,wr,Fo))},[ts,Fo]),Ci=C.useCallback(function(wr){return C.createElement(Ve,wr,Fo)},[Fo]),nc=Sr(["table"],"table"),Dr=C.useMemo(function(){return qe||(Xr?eo==="max-content"?"auto":"fixed":Ls||jn||tr.some(function(wr){var Jr=wr.ellipsis;return Jr})?"fixed":"auto")},[Ls,Xr,tr,qe,jn]),_u,Ol={colWidths:as,columCount:tr.length,stickyOffsets:vl,onHeaderRow:bi,fixHeader:Ls,scroll:ke},rl=C.useMemo(function(){return Mi?null:typeof Ti=="function"?Ti():Ti},[Mi,Ti]),Fu=C.createElement(Qn,{data:mi,measureColumnWidth:Ls||io||jn}),ku=C.createElement(Bn,{colWidths:tr.map(function(wr){var Jr=wr.width;return Jr}),columns:tr}),Da=ci!=null?C.createElement("caption",{className:"".concat(z,"-caption")},ci):void 0,Pa=(0,Fe.Z)(Zt,{data:!0}),Fr=(0,Fe.Z)(Zt,{aria:!0});if(Ls||jn){var Rs;typeof Ni=="function"?(Rs=Ni(mi,{scrollbarSize:ps,ref:Ro,onScroll:ko}),Ol.colWidths=tr.map(function(wr,Jr){var No=wr.width,gs=Jr===tr.length-1?No-ps:No;return typeof gs=="number"&&!Number.isNaN(gs)?gs:0})):Rs=C.createElement("div",{style:(0,Ht.Z)((0,Ht.Z)({},ia),ba),onScroll:js,ref:Ro,className:Pt()("".concat(z,"-body"))},C.createElement(nc,(0,Y.Z)({style:(0,Ht.Z)((0,Ht.Z)({},Kl),{},{tableLayout:Dr})},Fr),Da,ku,Fu,!ts&&Fo&&C.createElement(Ve,{stickyOffsets:vl,flattenColumns:tr},Fo)));var $l=(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({noData:!mi.length,maxContentScroll:io&&eo==="max-content"},Ol),hs),{},{direction:en,stickyClassName:xa,onScroll:ko});_u=C.createElement(C.Fragment,null,Je!==!1&&C.createElement(gn,(0,Y.Z)({},$l,{stickyTopOffset:qo,className:"".concat(z,"-header"),ref:Is}),Zl),Rs,ts&&ts!=="top"&&C.createElement(gn,(0,Y.Z)({},$l,{stickyBottomOffset:It,className:"".concat(z,"-summary"),ref:Wl}),Ci),jn&&Ro.current&&Ro.current instanceof Element&&C.createElement(kn,{ref:Ar,offsetScroll:Oe,scrollBodyRef:Ro,onScroll:ko,container:il,direction:en}))}else _u=C.createElement("div",{style:(0,Ht.Z)((0,Ht.Z)({},ia),ba),className:Pt()("".concat(z,"-content")),onScroll:ko,ref:Ro},C.createElement(nc,(0,Y.Z)({style:(0,Ht.Z)((0,Ht.Z)({},Kl),{},{tableLayout:Dr})},Fr),Da,ku,Je!==!1&&C.createElement(so,(0,Y.Z)({},Ol,hs)),Fu,Fo&&C.createElement(Ve,{stickyOffsets:vl,flattenColumns:tr},Fo)));var _a=C.createElement("div",(0,Y.Z)({className:Pt()(z,Xe,(0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)({},"".concat(z,"-rtl"),en==="rtl"),"".concat(z,"-ping-left"),zs),"".concat(z,"-ping-right"),_o),"".concat(z,"-layout-fixed"),qe==="fixed"),"".concat(z,"-fixed-header"),Ls),"".concat(z,"-fixed-column"),Xr),"".concat(z,"-fixed-column-gapped"),Xr&&xs),"".concat(z,"-scroll-horizontal"),io),"".concat(z,"-has-fix-left"),tr[0]&&tr[0].fixed),"".concat(z,"-has-fix-right"),tr[tr.length-1]&&tr[tr.length-1].fixed==="right")),style:On,id:si,ref:Us},Pa),He&&C.createElement(Et,{className:"".concat(z,"-title")},He(mi)),C.createElement("div",{ref:Oa,className:"".concat(z,"-container")},_u),nn&&C.createElement(Et,{className:"".concat(z,"-footer")},nn(mi)));io&&(_a=C.createElement(qt.Z,{onResize:Zs},_a));var ol=Yn(tr,vl,en),Va=C.useMemo(function(){return{scrollX:eo,prefixCls:z,getComponent:Sr,scrollbarSize:ps,direction:en,fixedInfoList:ol,isSticky:jn,supportSticky:wo,componentWidth:Vr,fixHeader:Ls,fixColumn:Xr,horizonScroll:io,tableLayout:Dr,rowClassName:an,expandedRowClassName:go.expandedRowClassName,expandIcon:Co,expandableType:Vo,expandRowByClick:go.expandRowByClick,expandedRowRender:go.expandedRowRender,onTriggerExpand:qn,expandIconColumnIndex:go.expandIconColumnIndex,indentSize:go.indentSize,allColumnsFixedLeft:tr.every(function(wr){return wr.fixed==="left"}),emptyNode:rl,columns:xo,flattenColumns:tr,onColumnResize:To,hoverStartRow:cs,hoverEndRow:Ma,onHover:As,rowExpandable:go.rowExpandable,onRow:ar,getRowKey:ee,expandedKeys:mo,childrenColumnName:vn,rowHoverable:$i}},[eo,z,Sr,ps,en,ol,jn,wo,Vr,Ls,Xr,io,Dr,an,go.expandedRowClassName,Co,Vo,go.expandRowByClick,go.expandedRowRender,qn,go.expandIconColumnIndex,go.indentSize,rl,xo,tr,To,cs,Ma,As,go.rowExpandable,ar,ee,mo,vn,$i]);return C.createElement(st.Provider,{value:Va},_a)}var jt=C.forwardRef(yn);function ui(Qt){return St(jt,Qt)}var Ir=ui();Ir.EXPAND_COLUMN=E.w,Ir.INTERNAL_HOOKS=E.R,Ir.Column=R,Ir.ColumnGroup=En,Ir.Summary=Ke;var xe=Ir,xr=p(6790),Lr=lt(null),Ai=lt(null);function Rr(Qt,Le,Zt){var z=Le||1;return Zt[Qt+z]-(Zt[Qt]||0)}function nr(Qt){var Le=Qt.rowInfo,Zt=Qt.column,z=Qt.colIndex,Xe=Qt.indent,an=Qt.index,On=Qt.component,An=Qt.renderIndex,mn=Qt.record,ke=Qt.style,qe=Qt.className,en=Qt.inverse,He=Qt.getHeight,nn=Zt.render,_n=Zt.dataIndex,ci=Zt.className,si=Zt.width,Je=J(Ai,["columnsOffset"]),Ui=Je.columnsOffset,Ti=je(Le,Zt,z,Xe,an),ar=Ti.key,bi=Ti.fixedInfo,Kr=Ti.appendCellNode,Pr=Ti.additionalCellProps,Mr=Pr.style,Er=Pr.colSpan,Or=Er===void 0?1:Er,Zr=Pr.rowSpan,Xt=Zr===void 0?1:Zr,rr=z-1,$i=Rr(rr,Or,Ui),mi=Or>1?si-$i:0,Mi=(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({},Mr),ke),{},{flex:"0 0 ".concat($i,"px"),width:"".concat($i,"px"),marginRight:mi,pointerEvents:"auto"}),er=C.useMemo(function(){return en?Xt<=1:Or===0||Xt===0||Xt>1},[Xt,Or,en]);er?Mi.visibility="hidden":en&&(Mi.height=He==null?void 0:He(Xt));var Sr=er?function(){return null}:nn,ee={};return(Xt===0||Or===0)&&(ee.rowSpan=1,ee.colSpan=1),C.createElement(un,(0,Y.Z)({className:Pt()(ci,qe),ellipsis:Zt.ellipsis,align:Zt.align,scope:Zt.rowScope,component:On,prefixCls:Le.prefixCls,key:ar,record:mn,index:an,renderIndex:An,dataIndex:_n,render:Sr,shouldCellUpdate:Zt.shouldCellUpdate},bi,{appendNode:Kr,additionalProps:(0,Ht.Z)((0,Ht.Z)({},Pr),{},{style:Mi},ee)}))}var sr=nr,ji=["data","index","className","rowKey","style","extra","getHeight"],qi=C.forwardRef(function(Qt,Le){var Zt=Qt.data,z=Qt.index,Xe=Qt.className,an=Qt.rowKey,On=Qt.style,An=Qt.extra,mn=Qt.getHeight,ke=(0,k.Z)(Qt,ji),qe=Zt.record,en=Zt.indent,He=Zt.index,nn=J(st,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),_n=nn.scrollX,ci=nn.flattenColumns,si=nn.prefixCls,Je=nn.fixColumn,Ui=nn.componentWidth,Ti=J(Lr,["getComponent"]),ar=Ti.getComponent,bi=zt(qe,an,z,en),Kr=ar(["body","row"],"div"),Pr=ar(["body","cell"],"div"),Mr=bi.rowSupportExpand,Er=bi.expanded,Or=bi.rowProps,Zr=bi.expandedRowRender,Xt=bi.expandedRowClassName,rr;if(Mr&&Er){var $i=Zr(qe,z,en+1,Er),mi=Cn(Xt,qe,z,en),Mi={};Je&&(Mi={style:(0,At.Z)({},"--virtual-width","".concat(Ui,"px"))});var er="".concat(si,"-expanded-row-cell");rr=C.createElement(Kr,{className:Pt()("".concat(si,"-expanded-row"),"".concat(si,"-expanded-row-level-").concat(en+1),mi)},C.createElement(un,{component:Pr,prefixCls:si,className:Pt()(er,(0,At.Z)({},"".concat(er,"-fixed"),Je)),additionalProps:Mi},$i))}var Sr=(0,Ht.Z)((0,Ht.Z)({},On),{},{width:_n});An&&(Sr.position="absolute",Sr.pointerEvents="none");var ee=C.createElement(Kr,(0,Y.Z)({},Or,ke,{"data-row-key":an,ref:Mr?null:Le,className:Pt()(Xe,"".concat(si,"-row"),Or==null?void 0:Or.className,(0,At.Z)({},"".concat(si,"-row-extra"),An)),style:(0,Ht.Z)((0,Ht.Z)({},Sr),Or==null?void 0:Or.style)}),ci.map(function(Ni,Gr){return C.createElement(sr,{key:Gr,component:Pr,rowInfo:bi,column:Ni,colIndex:Gr,indent:en,index:z,renderIndex:He,record:qe,inverse:An,getHeight:mn})}));return Mr?C.createElement("div",{ref:Le},ee,rr):ee}),ir=ft(qi),Te=ir,cr=C.forwardRef(function(Qt,Le){var Zt=Qt.data,z=Qt.onScroll,Xe=J(st,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),an=Xe.flattenColumns,On=Xe.onColumnResize,An=Xe.getRowKey,mn=Xe.expandedKeys,ke=Xe.prefixCls,qe=Xe.childrenColumnName,en=Xe.scrollX,He=Xe.direction,nn=J(Lr),_n=nn.sticky,ci=nn.scrollY,si=nn.listItemHeight,Je=nn.getComponent,Ui=nn.onScroll,Ti=C.useRef(),ar=Ee(Zt,qe,mn,An),bi=C.useMemo(function(){var rr=0;return an.map(function($i){var mi=$i.width,Mi=$i.key;return rr+=mi,[Mi,mi,rr]})},[an]),Kr=C.useMemo(function(){return bi.map(function(rr){return rr[2]})},[bi]);C.useEffect(function(){bi.forEach(function(rr){var $i=(0,I.Z)(rr,2),mi=$i[0],Mi=$i[1];On(mi,Mi)})},[bi]),C.useImperativeHandle(Le,function(){var rr,$i={scrollTo:function(Mi){var er;(er=Ti.current)===null||er===void 0||er.scrollTo(Mi)},nativeElement:(rr=Ti.current)===null||rr===void 0?void 0:rr.nativeElement};return Object.defineProperty($i,"scrollLeft",{get:function(){var Mi;return((Mi=Ti.current)===null||Mi===void 0?void 0:Mi.getScrollInfo().x)||0},set:function(Mi){var er;(er=Ti.current)===null||er===void 0||er.scrollTo({left:Mi})}}),$i});var Pr=function($i,mi){var Mi,er=(Mi=ar[mi])===null||Mi===void 0?void 0:Mi.record,Sr=$i.onCell;if(Sr){var ee,Ni=Sr(er,mi);return(ee=Ni==null?void 0:Ni.rowSpan)!==null&&ee!==void 0?ee:1}return 1},Mr=function($i){var mi=$i.start,Mi=$i.end,er=$i.getSize,Sr=$i.offsetY;if(Mi<0)return null;for(var ee=an.filter(function(Co){return Pr(Co,mi)===0}),Ni=mi,Gr=function(vn){if(ee=ee.filter(function(qn){return Pr(qn,vn)===0}),!ee.length)return Ni=vn,1},ws=mi;ws>=0&&!Gr(ws);ws-=1);for(var cs=an.filter(function(Co){return Pr(Co,Mi)!==1}),Ma=Mi,As=function(vn){if(cs=cs.filter(function(qn){return Pr(qn,vn)!==1}),!cs.length)return Ma=Math.max(vn-1,Mi),1},ii=Mi;ii<ar.length&&!As(ii);ii+=1);for(var po=[],go=function(vn){var qn=ar[vn];if(!qn)return 1;an.some(function(vi){return Pr(vi,vn)>1})&&po.push(vn)},Vo=Ni;Vo<=Ma;Vo+=1)go(Vo);var mo=po.map(function(Co){var vn=ar[Co],qn=An(vn.record,Co),vi=function(Vr){var ei=Co+Vr-1,Jo=An(ar[ei].record,ei),So=er(qn,Jo);return So.bottom-So.top},Gi=er(qn);return C.createElement(Te,{key:Co,data:vn,rowKey:qn,index:Co,style:{top:-Sr+Gi.top},extra:!0,getHeight:vi})});return mo},Er=C.useMemo(function(){return{columnsOffset:Kr}},[Kr]),Or="".concat(ke,"-tbody"),Zr=Je(["body","wrapper"]),Xt={};return _n&&(Xt.position="sticky",Xt.bottom=0,(0,pt.Z)(_n)==="object"&&_n.offsetScroll&&(Xt.bottom=_n.offsetScroll)),C.createElement(Ai.Provider,{value:Er},C.createElement(xr.Z,{fullHeight:!1,ref:Ti,prefixCls:"".concat(Or,"-virtual"),styles:{horizontalScrollBar:Xt},className:Or,height:ci,itemHeight:si||24,data:ar,itemKey:function($i){return An($i.record)},component:Zr,scrollWidth:en,direction:He,onVirtualScroll:function($i){var mi,Mi=$i.x;z({currentTarget:(mi=Ti.current)===null||mi===void 0?void 0:mi.nativeElement,scrollLeft:Mi})},onScroll:Ui,extraRender:Mr},function(rr,$i,mi){var Mi=An(rr.record,$i);return C.createElement(Te,{data:rr,rowKey:Mi,index:$i,style:mi.style})}))}),Ce=ft(cr),Gn=Ce,Ri=function(Le,Zt){var z=Zt.ref,Xe=Zt.onScroll;return C.createElement(Gn,{ref:z,data:Le,onScroll:Xe})};function gi(Qt,Le){var Zt=Qt.data,z=Qt.columns,Xe=Qt.scroll,an=Qt.sticky,On=Qt.prefixCls,An=On===void 0?ve:On,mn=Qt.className,ke=Qt.listItemHeight,qe=Qt.components,en=Qt.onScroll,He=Xe||{},nn=He.x,_n=He.y;typeof nn!="number"&&(nn=1),typeof _n!="number"&&(_n=500);var ci=(0,Nn.zX)(function(Ui,Ti){return(0,Gt.Z)(qe,Ui)||Ti}),si=(0,Nn.zX)(en),Je=C.useMemo(function(){return{sticky:an,scrollY:_n,listItemHeight:ke,getComponent:ci,onScroll:si}},[an,_n,ke,ci,si]);return C.createElement(Lr.Provider,{value:Je},C.createElement(xe,(0,Y.Z)({},Qt,{className:Pt()(mn,"".concat(An,"-virtual")),scroll:(0,Ht.Z)((0,Ht.Z)({},Xe),{},{x:nn}),components:(0,Ht.Z)((0,Ht.Z)({},qe),{},{body:Zt!=null&&Zt.length?Ri:void 0}),columns:z,internalHooks:E.R,tailor:!0,ref:Le})))}var pr=C.forwardRef(gi);function Bi(Qt){return St(pr,Qt)}var Si=Bi(),Hr=null},54451:function(j,S,p){"use strict";p.d(S,{g:function(){return C},v:function(){return V}});var E=p(98506),I=p(33346),D=p(48736),P=["expandable"],V="RC_TABLE_INTERNAL_COL_DEFINE";function C(Z){var lt=Z.expandable,J=(0,I.Z)(Z,P),Y;return"expandable"in Z?Y=(0,E.Z)((0,E.Z)({},J),lt):Y=J,Y.showExpandColumn===!1&&(Y.expandIconColumnIndex=-1),Y}},22711:function(j,S,p){"use strict";p.r(S),p.d(S,{ResizableTextArea:function(){return gt},default:function(){return ue}});var E=p(67711),I=p(52873),D=p(98506),P=p(15142),V=p(16886),C=p(33346),Z=p(92310),lt=p.n(Z),J=p(36901),Y=p(66003),Mt=p(30292),ct=p(18929),$t=p(59301),Ft=p(26420),_t=p(29301),Ct=p(34280),xt=p(16089),St=`
|
|
|
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;
|
|
|
`,ft=["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"],vt={},ot;function st(le){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=le.getAttribute("id")||le.getAttribute("data-reactid")||le.getAttribute("name");if(re&&vt[pe])return vt[pe];var Dt=window.getComputedStyle(le),rt=Dt.getPropertyValue("box-sizing")||Dt.getPropertyValue("-moz-box-sizing")||Dt.getPropertyValue("-webkit-box-sizing"),Q=parseFloat(Dt.getPropertyValue("padding-bottom"))+parseFloat(Dt.getPropertyValue("padding-top")),ie=parseFloat(Dt.getPropertyValue("border-bottom-width"))+parseFloat(Dt.getPropertyValue("border-top-width")),ce=ft.map(function(pn){return"".concat(pn,":").concat(Dt.getPropertyValue(pn))}).join(";"),oe={sizingStyle:ce,paddingSize:Q,borderSize:ie,boxSizing:rt};return re&&pe&&(vt[pe]=oe),oe}function q(le){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ot||(ot=document.createElement("textarea"),ot.setAttribute("tab-index","-1"),ot.setAttribute("aria-hidden","true"),ot.setAttribute("name","hiddenTextarea"),document.body.appendChild(ot)),le.getAttribute("wrap")?ot.setAttribute("wrap",le.getAttribute("wrap")):ot.removeAttribute("wrap");var rt=st(le,re),Q=rt.paddingSize,ie=rt.borderSize,ce=rt.boxSizing,oe=rt.sizingStyle;ot.setAttribute("style","".concat(oe,";").concat(St)),ot.value=le.value||le.placeholder||"";var pn=void 0,Ze=void 0,Nn,me=ot.scrollHeight;if(ce==="border-box"?me+=ie:ce==="content-box"&&(me-=Q),pe!==null||Dt!==null){ot.value=" ";var on=ot.scrollHeight-Q;pe!==null&&(pn=on*pe,ce==="border-box"&&(pn=pn+Q+ie),me=Math.max(pn,me)),Dt!==null&&(Ze=on*Dt,ce==="border-box"&&(Ze=Ze+Q+ie),Nn=me>Ze?"":"hidden",me=Math.min(Ze,me))}var un={height:me,overflowY:Nn,resize:"none"};return pn&&(un.minHeight=pn),Ze&&(un.maxHeight=Ze),un}var wt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Bt=0,pt=1,Ht=2,At=$t.forwardRef(function(le,re){var pe=le,Dt=pe.prefixCls,rt=pe.defaultValue,Q=pe.value,ie=pe.autoSize,ce=pe.onResize,oe=pe.className,pn=pe.style,Ze=pe.disabled,Nn=pe.onChange,me=pe.onInternalAutoSize,on=(0,C.Z)(pe,wt),un=(0,ct.Z)(rt,{value:Q,postState:function(hn){return hn!=null?hn:""}}),Ln=(0,V.Z)(un,2),Dn=Ln[0],K=Ln[1],O=function(hn){K(hn.target.value),Nn==null||Nn(hn)},k=$t.useRef();$t.useImperativeHandle(re,function(){return{textArea:k.current}});var H=$t.useMemo(function(){return ie&&(0,Ft.Z)(ie)==="object"?[ie.minRows,ie.maxRows]:[]},[ie]),tt=(0,V.Z)(H,2),_=tt[0],at=tt[1],se=!!ie,Ve=function(){try{if(document.activeElement===k.current){var hn=k.current,Sn=hn.selectionStart,Jt=hn.selectionEnd,Hn=hn.scrollTop;k.current.setSelectionRange(Sn,Jt),k.current.scrollTop=Hn}}catch(ri){}},Ke=$t.useState(Ht),qt=(0,V.Z)(Ke,2),he=qt[0],de=qt[1],Fe=$t.useState(),$e=(0,V.Z)(Fe,2),Ee=$e[0],zt=$e[1],Be=function(){de(Bt)};(0,Ct.Z)(function(){se&&Be()},[Q,_,at,se]),(0,Ct.Z)(function(){if(he===Bt)de(pt);else if(he===pt){var bt=q(k.current,!1,_,at);de(Ht),zt(bt)}else Ve()},[he]);var Ge=$t.useRef(),Ie=function(){xt.Z.cancel(Ge.current)},ze=function(hn){he===Ht&&(ce==null||ce(hn),ie&&(Ie(),Ge.current=(0,xt.Z)(function(){Be()})))};$t.useEffect(function(){return Ie},[]);var Cn=se?Ee:null,je=(0,D.Z)((0,D.Z)({},pn),Cn);return(he===Bt||he===pt)&&(je.overflowY="hidden",je.overflowX="hidden"),$t.createElement(_t.Z,{onResize:ze,disabled:!(ie||ce)},$t.createElement("textarea",(0,E.Z)({},on,{ref:k,style:je,className:lt()(Dt,oe,(0,I.Z)({},"".concat(Dt,"-disabled"),Ze)),disabled:Ze,value:Dn,onChange:O})))}),gt=At,Pt=["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"],kt=$t.forwardRef(function(le,re){var pe,Dt=le.defaultValue,rt=le.value,Q=le.onFocus,ie=le.onBlur,ce=le.onChange,oe=le.allowClear,pn=le.maxLength,Ze=le.onCompositionStart,Nn=le.onCompositionEnd,me=le.suffix,on=le.prefixCls,un=on===void 0?"rc-textarea":on,Ln=le.showCount,Dn=le.count,K=le.className,O=le.style,k=le.disabled,H=le.hidden,tt=le.classNames,_=le.styles,at=le.onResize,se=le.onClear,Ve=le.onPressEnter,Ke=le.readOnly,qt=le.autoSize,he=le.onKeyDown,de=(0,C.Z)(le,Pt),Fe=(0,ct.Z)(Dt,{value:rt,defaultValue:Dt}),$e=(0,V.Z)(Fe,2),Ee=$e[0],zt=$e[1],Be=Ee==null?"":String(Ee),Ge=$t.useState(!1),Ie=(0,V.Z)(Ge,2),ze=Ie[0],Cn=Ie[1],je=$t.useRef(!1),bt=$t.useState(null),hn=(0,V.Z)(bt,2),Sn=hn[0],Jt=hn[1],Hn=(0,$t.useRef)(null),ri=(0,$t.useRef)(null),Qn=function(){var Wi;return(Wi=ri.current)===null||Wi===void 0?void 0:Wi.textArea},we=function(){Qn().focus()};(0,$t.useImperativeHandle)(re,function(){var zn;return{resizableTextArea:ri.current,focus:we,blur:function(){Qn().blur()},nativeElement:((zn=Hn.current)===null||zn===void 0?void 0:zn.nativeElement)||Qn()}}),(0,$t.useEffect)(function(){Cn(function(zn){return!k&&zn})},[k]);var wi=$t.useState(null),xi=(0,V.Z)(wi,2),Bn=xi[0],Kn=xi[1];$t.useEffect(function(){if(Bn){var zn;(zn=Qn()).setSelectionRange.apply(zn,(0,P.Z)(Bn))}},[Bn]);var Ei=(0,Y.Z)(Dn,Ln),A=(pe=Ei.max)!==null&&pe!==void 0?pe:pn,Pn=Number(A)>0,gn=Ei.strategy(Be),$n=!!A&&gn>A,Fi=function(Wi,Ur){var Nr=Ur;!je.current&&Ei.exceedFormatter&&Ei.max&&Ei.strategy(Ur)>Ei.max&&(Nr=Ei.exceedFormatter(Ur,{max:Ei.max}),Ur!==Nr&&Kn([Qn().selectionStart||0,Qn().selectionEnd||0])),zt(Nr),(0,Mt.rJ)(Wi.currentTarget,Wi,ce,Nr)},Ki=function(Wi){je.current=!0,Ze==null||Ze(Wi)},pi=function(Wi){je.current=!1,Fi(Wi,Wi.currentTarget.value),Nn==null||Nn(Wi)},so=function(Wi){Fi(Wi,Wi.target.value)},Zi=function(Wi){Wi.key==="Enter"&&Ve&&Ve(Wi),he==null||he(Wi)},or=function(Wi){Cn(!0),Q==null||Q(Wi)},Yn=function(Wi){Cn(!1),ie==null||ie(Wi)},Mn=function(Wi){zt(""),we(),(0,Mt.rJ)(Qn(),Wi,ce)},fr=me,Li;Ei.show&&(Ei.showFormatter?Li=Ei.showFormatter({value:Be,count:gn,maxLength:A}):Li="".concat(gn).concat(Pn?" / ".concat(A):""),fr=$t.createElement($t.Fragment,null,fr,$t.createElement("span",{className:lt()("".concat(un,"-data-count"),tt==null?void 0:tt.count),style:_==null?void 0:_.count},Li)));var Xi=function(Wi){var Ur;at==null||at(Wi),(Ur=Qn())!==null&&Ur!==void 0&&Ur.style.height&&Jt(!0)},sn=!qt&&!Ln&&!oe;return $t.createElement(J.BaseInput,{ref:Hn,value:Be,allowClear:oe,handleReset:Mn,suffix:fr,prefixCls:un,classNames:(0,D.Z)((0,D.Z)({},tt),{},{affixWrapper:lt()(tt==null?void 0:tt.affixWrapper,(0,I.Z)((0,I.Z)({},"".concat(un,"-show-count"),Ln),"".concat(un,"-textarea-allow-clear"),oe))}),disabled:k,focused:ze,className:lt()(K,$n&&"".concat(un,"-out-of-range")),style:(0,D.Z)((0,D.Z)({},O),Sn&&!sn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Li=="string"?Li:void 0}},hidden:H,readOnly:Ke,onClear:se},$t.createElement(gt,(0,E.Z)({},de,{autoSize:qt,maxLength:pn,onKeyDown:Zi,onChange:so,onFocus:or,onBlur:Yn,onCompositionStart:Ki,onCompositionEnd:pi,className:lt()(tt==null?void 0:tt.textarea),style:(0,D.Z)((0,D.Z)({},_==null?void 0:_.textarea),{},{resize:O==null?void 0:O.resize}),disabled:k,prefixCls:un,onResize:Xi,ref:ri,readOnly:Ke})))}),Gt=kt,ue=Gt},639:function(j,S,p){"use strict";p.d(S,{Z:function(){return vt}});var E=p(67711),I=p(52873),D=p(98506),P=p(16886),V=p(33346),C=p(59301),Z=p(92310),lt=p.n(Z),J=p(26112),Y=p(30699),Mt=function(st){for(var q=st.prefixCls,wt=st.level,Bt=st.isStart,pt=st.isEnd,Ht="".concat(q,"-indent-unit"),At=[],gt=0;gt<wt;gt+=1)At.push(C.createElement("span",{key:gt,className:lt()(Ht,(0,I.Z)((0,I.Z)({},"".concat(Ht,"-start"),Bt[gt]),"".concat(Ht,"-end"),pt[gt]))}));return C.createElement("span",{"aria-hidden":"true",className:"".concat(q,"-indent")},At)},ct=C.memo(Mt),$t=p(65065),Ft=p(34061),_t=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Ct="open",xt="close",St="---",ft=function(st){var q,wt,Bt,pt=st.eventKey,Ht=st.className,At=st.style,gt=st.dragOver,Pt=st.dragOverGapTop,kt=st.dragOverGapBottom,Gt=st.isLeaf,ue=st.isStart,le=st.isEnd,re=st.expanded,pe=st.selected,Dt=st.checked,rt=st.halfChecked,Q=st.loading,ie=st.domRef,ce=st.active,oe=st.data,pn=st.onMouseMove,Ze=st.selectable,Nn=(0,V.Z)(st,_t),me=C.useContext(Y.k),on=C.useContext(Y.y),un=C.useRef(null),Ln=C.useState(!1),Dn=(0,P.Z)(Ln,2),K=Dn[0],O=Dn[1],k=!!(me.disabled||st.disabled||(q=on.nodeDisabled)!==null&&q!==void 0&&q.call(on,oe)),H=C.useMemo(function(){return!me.checkable||st.checkable===!1?!1:me.checkable},[me.checkable,st.checkable]),tt=function(gn){k||me.onNodeSelect(gn,(0,Ft.F)(st))},_=function(gn){k||!H||st.disableCheckbox||me.onNodeCheck(gn,(0,Ft.F)(st),!Dt)},at=C.useMemo(function(){return typeof Ze=="boolean"?Ze:me.selectable},[Ze,me.selectable]),se=function(gn){me.onNodeClick(gn,(0,Ft.F)(st)),at?tt(gn):_(gn)},Ve=function(gn){me.onNodeDoubleClick(gn,(0,Ft.F)(st))},Ke=function(gn){me.onNodeMouseEnter(gn,(0,Ft.F)(st))},qt=function(gn){me.onNodeMouseLeave(gn,(0,Ft.F)(st))},he=function(gn){me.onNodeContextMenu(gn,(0,Ft.F)(st))},de=C.useMemo(function(){return!!(me.draggable&&(!me.draggable.nodeDraggable||me.draggable.nodeDraggable(oe)))},[me.draggable,oe]),Fe=function(gn){gn.stopPropagation(),O(!0),me.onNodeDragStart(gn,st);try{gn.dataTransfer.setData("text/plain","")}catch($n){}},$e=function(gn){gn.preventDefault(),gn.stopPropagation(),me.onNodeDragEnter(gn,st)},Ee=function(gn){gn.preventDefault(),gn.stopPropagation(),me.onNodeDragOver(gn,st)},zt=function(gn){gn.stopPropagation(),me.onNodeDragLeave(gn,st)},Be=function(gn){gn.stopPropagation(),O(!1),me.onNodeDragEnd(gn,st)},Ge=function(gn){gn.preventDefault(),gn.stopPropagation(),O(!1),me.onNodeDrop(gn,st)},Ie=function(gn){Q||me.onNodeExpand(gn,(0,Ft.F)(st))},ze=C.useMemo(function(){var Pn=(0,$t.Z)(me.keyEntities,pt)||{},gn=Pn.children;return!!(gn||[]).length},[me.keyEntities,pt]),Cn=C.useMemo(function(){return Gt===!1?!1:Gt||!me.loadData&&!ze||me.loadData&&st.loaded&&!ze},[Gt,me.loadData,ze,st.loaded]);C.useEffect(function(){Q||typeof me.loadData=="function"&&re&&!Cn&&!st.loaded&&me.onNodeLoad((0,Ft.F)(st))},[Q,me.loadData,me.onNodeLoad,re,Cn,st]);var je=C.useMemo(function(){var Pn;return(Pn=me.draggable)!==null&&Pn!==void 0&&Pn.icon?C.createElement("span",{className:"".concat(me.prefixCls,"-draggable-icon")},me.draggable.icon):null},[me.draggable]),bt=function(gn){var $n=st.switcherIcon||me.switcherIcon;return typeof $n=="function"?$n((0,D.Z)((0,D.Z)({},st),{},{isLeaf:gn})):$n},hn=function(){if(Cn){var gn=bt(!0);return gn!==!1?C.createElement("span",{className:lt()("".concat(me.prefixCls,"-switcher"),"".concat(me.prefixCls,"-switcher-noop"))},gn):null}var $n=bt(!1);return $n!==!1?C.createElement("span",{onClick:Ie,className:lt()("".concat(me.prefixCls,"-switcher"),"".concat(me.prefixCls,"-switcher_").concat(re?Ct:xt))},$n):null},Sn=C.useMemo(function(){if(!H)return null;var Pn=typeof H!="boolean"?H:null;return C.createElement("span",{className:lt()("".concat(me.prefixCls,"-checkbox"),(0,I.Z)((0,I.Z)((0,I.Z)({},"".concat(me.prefixCls,"-checkbox-checked"),Dt),"".concat(me.prefixCls,"-checkbox-indeterminate"),!Dt&&rt),"".concat(me.prefixCls,"-checkbox-disabled"),k||st.disableCheckbox)),onClick:_,role:"checkbox","aria-checked":rt?"mixed":Dt,"aria-disabled":k||st.disableCheckbox,"aria-label":"Select ".concat(typeof st.title=="string"?st.title:"tree node")},Pn)},[H,Dt,rt,k,st.disableCheckbox,st.title]),Jt=C.useMemo(function(){return Cn?null:re?Ct:xt},[Cn,re]),Hn=C.useMemo(function(){return C.createElement("span",{className:lt()("".concat(me.prefixCls,"-iconEle"),"".concat(me.prefixCls,"-icon__").concat(Jt||"docu"),(0,I.Z)({},"".concat(me.prefixCls,"-icon_loading"),Q))})},[me.prefixCls,Jt,Q]),ri=C.useMemo(function(){var Pn=!!me.draggable,gn=!st.disabled&&Pn&&me.dragOverNodeKey===pt;return gn?me.dropIndicatorRender({dropPosition:me.dropPosition,dropLevelOffset:me.dropLevelOffset,indent:me.indent,prefixCls:me.prefixCls,direction:me.direction}):null},[me.dropPosition,me.dropLevelOffset,me.indent,me.prefixCls,me.direction,me.draggable,me.dragOverNodeKey,me.dropIndicatorRender]),Qn=C.useMemo(function(){var Pn=st.title,gn=Pn===void 0?St:Pn,$n="".concat(me.prefixCls,"-node-content-wrapper"),Fi;if(me.showIcon){var Ki=st.icon||me.icon;Fi=Ki?C.createElement("span",{className:lt()("".concat(me.prefixCls,"-iconEle"),"".concat(me.prefixCls,"-icon__customize"))},typeof Ki=="function"?Ki(st):Ki):Hn}else me.loadData&&Q&&(Fi=Hn);var pi;return typeof gn=="function"?pi=gn(oe):me.titleRender?pi=me.titleRender(oe):pi=gn,C.createElement("span",{ref:un,title:typeof gn=="string"?gn:"",className:lt()($n,"".concat($n,"-").concat(Jt||"normal"),(0,I.Z)({},"".concat(me.prefixCls,"-node-selected"),!k&&(pe||K))),onMouseEnter:Ke,onMouseLeave:qt,onContextMenu:he,onClick:se,onDoubleClick:Ve},Fi,C.createElement("span",{className:"".concat(me.prefixCls,"-title")},pi),ri)},[me.prefixCls,me.showIcon,st,me.icon,Hn,me.titleRender,oe,Jt,Ke,qt,he,se,Ve]),we=(0,J.Z)(Nn,{aria:!0,data:!0}),wi=(0,$t.Z)(me.keyEntities,pt)||{},xi=wi.level,Bn=le[le.length-1],Kn=!k&&de,Ei=me.draggingNodeKey===pt,A=Ze!==void 0?{"aria-selected":!!Ze}:void 0;return C.createElement("div",(0,E.Z)({ref:ie,role:"treeitem","aria-expanded":Gt?void 0:re,className:lt()(Ht,"".concat(me.prefixCls,"-treenode"),(Bt={},(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)(Bt,"".concat(me.prefixCls,"-treenode-disabled"),k),"".concat(me.prefixCls,"-treenode-switcher-").concat(re?"open":"close"),!Gt),"".concat(me.prefixCls,"-treenode-checkbox-checked"),Dt),"".concat(me.prefixCls,"-treenode-checkbox-indeterminate"),rt),"".concat(me.prefixCls,"-treenode-selected"),pe),"".concat(me.prefixCls,"-treenode-loading"),Q),"".concat(me.prefixCls,"-treenode-active"),ce),"".concat(me.prefixCls,"-treenode-leaf-last"),Bn),"".concat(me.prefixCls,"-treenode-draggable"),de),"dragging",Ei),(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)(Bt,"drop-target",me.dropTargetKey===pt),"drop-container",me.dropContainerKey===pt),"drag-over",!k&>),"drag-over-gap-top",!k&&Pt),"drag-over-gap-bottom",!k&&kt),"filter-node",(wt=me.filterTreeNode)===null||wt===void 0?void 0:wt.call(me,(0,Ft.F)(st))),"".concat(me.prefixCls,"-treenode-leaf"),Cn))),style:At,draggable:Kn,onDragStart:Kn?Fe:void 0,onDragEnter:de?$e:void 0,onDragOver:de?Ee:void 0,onDragLeave:de?zt:void 0,onDrop:de?Ge:void 0,onDragEnd:de?Be:void 0,onMouseMove:pn},A,we),C.createElement(ct,{prefixCls:me.prefixCls,level:xi,isStart:ue,isEnd:le}),je,hn(),Sn,Qn)};ft.isTreeNode=1;var vt=ft},30699:function(j,S,p){"use strict";p.d(S,{k:function(){return I},y:function(){return D}});var E=p(59301),I=E.createContext(null),D=E.createContext({})},71598:function(j,S,p){"use strict";p.d(S,{OF:function(){return pt.Z},y6:function(){return xt.y},ZP:function(){return k}});var E=p(67711),I=p(26420),D=p(98506),P=p(15142),V=p(42573),C=p(58698),Z=p(62437),lt=p(74700),J=p(45080),Y=p(52873),Mt=p(92310),ct=p.n(Mt),$t=p(10228),Ft=p(26112),_t=p(48736),Ct=p(59301),xt=p(30699),St=function(tt){var _=tt.dropPosition,at=tt.dropLevelOffset,se=tt.indent,Ve={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(_){case-1:Ve.top=0,Ve.left=-at*se;break;case 1:Ve.bottom=0,Ve.left=-at*se;break;case 0:Ve.bottom=0,Ve.left=se;break}return Ct.createElement("div",{style:Ve})},ft=St;function vt(H){if(H==null)throw new TypeError("Cannot destructure "+H)}var ot=p(16886),st=p(33346),q=p(34280),wt=p(6790),Bt=p(77900),pt=p(639);function Ht(H,tt){var _=Ct.useState(!1),at=(0,ot.Z)(_,2),se=at[0],Ve=at[1];(0,q.Z)(function(){if(se)return H(),function(){tt()}},[se]),(0,q.Z)(function(){return Ve(!0),function(){Ve(!1)}},[])}var At=Ht,gt=p(34061),Pt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],kt=Ct.forwardRef(function(H,tt){var _=H.className,at=H.style,se=H.motion,Ve=H.motionNodes,Ke=H.motionType,qt=H.onMotionStart,he=H.onMotionEnd,de=H.active,Fe=H.treeNodeRequiredProps,$e=(0,st.Z)(H,Pt),Ee=Ct.useState(!0),zt=(0,ot.Z)(Ee,2),Be=zt[0],Ge=zt[1],Ie=Ct.useContext(xt.k),ze=Ie.prefixCls,Cn=Ve&&Ke!=="hide";(0,q.Z)(function(){Ve&&Cn!==Be&&Ge(Cn)},[Ve]);var je=function(){Ve&&qt()},bt=Ct.useRef(!1),hn=function(){Ve&&!bt.current&&(bt.current=!0,he())};At(je,hn);var Sn=function(Hn){Cn===Hn&&hn()};return Ve?Ct.createElement(Bt.default,(0,E.Z)({ref:tt,visible:Be},se,{motionAppear:Ke==="show",onVisibleChanged:Sn}),function(Jt,Hn){var ri=Jt.className,Qn=Jt.style;return Ct.createElement("div",{ref:Hn,className:ct()("".concat(ze,"-treenode-motion"),ri),style:Qn},Ve.map(function(we){var wi=Object.assign({},(vt(we.data),we.data)),xi=we.title,Bn=we.key,Kn=we.isStart,Ei=we.isEnd;delete wi.children;var A=(0,gt.H8)(Bn,Fe);return Ct.createElement(pt.Z,(0,E.Z)({},wi,A,{title:xi,active:de,data:we.data,key:Bn,isStart:Kn,isEnd:Ei}))}))}):Ct.createElement(pt.Z,(0,E.Z)({domRef:tt,className:_,style:at},$e,{active:de}))}),Gt=kt;function ue(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=H.length,at=tt.length;if(Math.abs(_-at)!==1)return{add:!1,key:null};function se(Ve,Ke){var qt=new Map;Ve.forEach(function(de){qt.set(de,!0)});var he=Ke.filter(function(de){return!qt.has(de)});return he.length===1?he[0]:null}return _<at?{add:!0,key:se(H,tt)}:{add:!1,key:se(tt,H)}}function le(H,tt,_){var at=H.findIndex(function(qt){return qt.key===_}),se=H[at+1],Ve=tt.findIndex(function(qt){return qt.key===_});if(se){var Ke=tt.findIndex(function(qt){return qt.key===se.key});return tt.slice(Ve+1,Ke)}return tt.slice(Ve+1)}var re=["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"],pe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Dt=function(){},rt="RC_TREE_MOTION_".concat(Math.random()),Q={key:rt},ie={key:rt,level:0,index:0,pos:"0",node:Q,nodes:[Q]},ce={parent:null,children:[],pos:ie.pos,data:Q,title:null,key:rt,isStart:[],isEnd:[]};function oe(H,tt,_,at){return tt===!1||!_?H:H.slice(0,Math.ceil(_/at)+1)}function pn(H){var tt=H.key,_=H.pos;return(0,gt.km)(tt,_)}function Ze(H){for(var tt=String(H.data.key),_=H;_.parent;)_=_.parent,tt="".concat(_.data.key," > ").concat(tt);return tt}var Nn=Ct.forwardRef(function(H,tt){var _=H.prefixCls,at=H.data,se=H.selectable,Ve=H.checkable,Ke=H.expandedKeys,qt=H.selectedKeys,he=H.checkedKeys,de=H.loadedKeys,Fe=H.loadingKeys,$e=H.halfCheckedKeys,Ee=H.keyEntities,zt=H.disabled,Be=H.dragging,Ge=H.dragOverNodeKey,Ie=H.dropPosition,ze=H.motion,Cn=H.height,je=H.itemHeight,bt=H.virtual,hn=H.scrollWidth,Sn=H.focusable,Jt=H.activeItem,Hn=H.focused,ri=H.tabIndex,Qn=H.onKeyDown,we=H.onFocus,wi=H.onBlur,xi=H.onActiveChange,Bn=H.onListChangeStart,Kn=H.onListChangeEnd,Ei=(0,st.Z)(H,re),A=Ct.useRef(null),Pn=Ct.useRef(null);Ct.useImperativeHandle(tt,function(){return{scrollTo:function(te){A.current.scrollTo(te)},getIndentWidth:function(){return Pn.current.offsetWidth}}});var gn=Ct.useState(Ke),$n=(0,ot.Z)(gn,2),Fi=$n[0],Ki=$n[1],pi=Ct.useState(at),so=(0,ot.Z)(pi,2),Zi=so[0],or=so[1],Yn=Ct.useState(at),Mn=(0,ot.Z)(Yn,2),fr=Mn[0],Li=Mn[1],Xi=Ct.useState([]),sn=(0,ot.Z)(Xi,2),zn=sn[0],Wi=sn[1],Ur=Ct.useState(null),Nr=(0,ot.Z)(Ur,2),Et=Nr[0],Wt=Nr[1],rn=Ct.useRef(at);rn.current=at;function cn(){var kn=rn.current;or(kn),Li(kn),Wi([]),Wt(null),Kn()}(0,q.Z)(function(){Ki(Ke);var kn=ue(Fi,Ke);if(kn.key!==null)if(kn.add){var te=Zi.findIndex(function(Wn){var ni=Wn.key;return ni===kn.key}),R=oe(le(Zi,at,kn.key),bt,Cn,je),bn=Zi.slice();bn.splice(te+1,0,ce),Li(bn),Wi(R),Wt("show")}else{var En=at.findIndex(function(Wn){var ni=Wn.key;return ni===kn.key}),ve=oe(le(at,Zi,kn.key),bt,Cn,je),li=at.slice();li.splice(En+1,0,ce),Li(li),Wi(ve),Wt("hide")}else Zi!==at&&(or(at),Li(at))},[Ke,at]),Ct.useEffect(function(){Be||cn()},[Be]);var Ut=ze?fr:at,Ye={expandedKeys:Ke,selectedKeys:qt,loadedKeys:de,loadingKeys:Fe,checkedKeys:he,halfCheckedKeys:$e,dragOverNodeKey:Ge,dropPosition:Ie,keyEntities:Ee};return Ct.createElement(Ct.Fragment,null,Hn&&Jt&&Ct.createElement("span",{style:pe,"aria-live":"assertive"},Ze(Jt)),Ct.createElement("div",null,Ct.createElement("input",{style:pe,disabled:Sn===!1||zt,tabIndex:Sn!==!1?ri:null,onKeyDown:Qn,onFocus:we,onBlur:wi,value:"",onChange:Dt,"aria-label":"for screen reader"})),Ct.createElement("div",{className:"".concat(_,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ct.createElement("div",{className:"".concat(_,"-indent")},Ct.createElement("div",{ref:Pn,className:"".concat(_,"-indent-unit")}))),Ct.createElement(wt.Z,(0,E.Z)({},Ei,{data:Ut,itemKey:pn,height:Cn,fullHeight:!1,virtual:bt,itemHeight:je,scrollWidth:hn,prefixCls:"".concat(_,"-list"),ref:A,role:"tree",onVisibleChange:function(te){te.every(function(R){return pn(R)!==rt})&&cn()}}),function(kn){var te=kn.pos,R=Object.assign({},(vt(kn.data),kn.data)),bn=kn.title,En=kn.key,ve=kn.isStart,li=kn.isEnd,Wn=(0,gt.km)(En,te);delete R.key,delete R.children;var ni=(0,gt.H8)(Wn,Ye);return Ct.createElement(Gt,(0,E.Z)({},R,ni,{title:bn,active:!!Jt&&En===Jt.key,pos:te,data:kn.data,isStart:ve,isEnd:li,motion:ze,motionNodes:En===rt?zn:null,motionType:Et,onMotionStart:Bn,onMotionEnd:cn,treeNodeRequiredProps:Ye,onMouseMove:function(){xi(null)}}))}))}),me=Nn,on=p(82661),un=p(34643),Ln=p(65065),Dn=10,K=function(H){(0,lt.Z)(_,H);var tt=(0,J.Z)(_);function _(){var at;(0,V.Z)(this,_);for(var se=arguments.length,Ve=new Array(se),Ke=0;Ke<se;Ke++)Ve[Ke]=arguments[Ke];return at=tt.call.apply(tt,[this].concat(Ve)),(0,Y.Z)((0,Z.Z)(at),"destroyed",!1),(0,Y.Z)((0,Z.Z)(at),"delayedDragEnterLogic",void 0),(0,Y.Z)((0,Z.Z)(at),"loadingRetryTimes",{}),(0,Y.Z)((0,Z.Z)(at),"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,gt.w$)()}),(0,Y.Z)((0,Z.Z)(at),"dragStartMousePosition",null),(0,Y.Z)((0,Z.Z)(at),"dragNodeProps",null),(0,Y.Z)((0,Z.Z)(at),"currentMouseOverDroppableNodeKey",null),(0,Y.Z)((0,Z.Z)(at),"listRef",Ct.createRef()),(0,Y.Z)((0,Z.Z)(at),"onNodeDragStart",function(qt,he){var de=at.state,Fe=de.expandedKeys,$e=de.keyEntities,Ee=at.props.onDragStart,zt=he.eventKey;at.dragNodeProps=he,at.dragStartMousePosition={x:qt.clientX,y:qt.clientY};var Be=(0,on._5)(Fe,zt);at.setState({draggingNodeKey:zt,dragChildrenKeys:(0,on.wA)(zt,$e),indent:at.listRef.current.getIndentWidth()}),at.setExpandedKeys(Be),window.addEventListener("dragend",at.onWindowDragEnd),Ee==null||Ee({event:qt,node:(0,gt.F)(he)})}),(0,Y.Z)((0,Z.Z)(at),"onNodeDragEnter",function(qt,he){var de=at.state,Fe=de.expandedKeys,$e=de.keyEntities,Ee=de.dragChildrenKeys,zt=de.flattenNodes,Be=de.indent,Ge=at.props,Ie=Ge.onDragEnter,ze=Ge.onExpand,Cn=Ge.allowDrop,je=Ge.direction,bt=he.pos,hn=he.eventKey;if(at.currentMouseOverDroppableNodeKey!==hn&&(at.currentMouseOverDroppableNodeKey=hn),!at.dragNodeProps){at.resetDragState();return}var Sn=(0,on.OM)(qt,at.dragNodeProps,he,Be,at.dragStartMousePosition,Cn,zt,$e,Fe,je),Jt=Sn.dropPosition,Hn=Sn.dropLevelOffset,ri=Sn.dropTargetKey,Qn=Sn.dropContainerKey,we=Sn.dropTargetPos,wi=Sn.dropAllowed,xi=Sn.dragOverNodeKey;if(Ee.includes(ri)||!wi){at.resetDragState();return}if(at.delayedDragEnterLogic||(at.delayedDragEnterLogic={}),Object.keys(at.delayedDragEnterLogic).forEach(function(Bn){clearTimeout(at.delayedDragEnterLogic[Bn])}),at.dragNodeProps.eventKey!==he.eventKey&&(qt.persist(),at.delayedDragEnterLogic[bt]=window.setTimeout(function(){if(at.state.draggingNodeKey!==null){var Bn=(0,P.Z)(Fe),Kn=(0,Ln.Z)($e,he.eventKey);Kn&&(Kn.children||[]).length&&(Bn=(0,on.L0)(Fe,he.eventKey)),at.props.hasOwnProperty("expandedKeys")||at.setExpandedKeys(Bn),ze==null||ze(Bn,{node:(0,gt.F)(he),expanded:!0,nativeEvent:qt.nativeEvent})}},800)),at.dragNodeProps.eventKey===ri&&Hn===0){at.resetDragState();return}at.setState({dragOverNodeKey:xi,dropPosition:Jt,dropLevelOffset:Hn,dropTargetKey:ri,dropContainerKey:Qn,dropTargetPos:we,dropAllowed:wi}),Ie==null||Ie({event:qt,node:(0,gt.F)(he),expandedKeys:Fe})}),(0,Y.Z)((0,Z.Z)(at),"onNodeDragOver",function(qt,he){var de=at.state,Fe=de.dragChildrenKeys,$e=de.flattenNodes,Ee=de.keyEntities,zt=de.expandedKeys,Be=de.indent,Ge=at.props,Ie=Ge.onDragOver,ze=Ge.allowDrop,Cn=Ge.direction;if(at.dragNodeProps){var je=(0,on.OM)(qt,at.dragNodeProps,he,Be,at.dragStartMousePosition,ze,$e,Ee,zt,Cn),bt=je.dropPosition,hn=je.dropLevelOffset,Sn=je.dropTargetKey,Jt=je.dropContainerKey,Hn=je.dropTargetPos,ri=je.dropAllowed,Qn=je.dragOverNodeKey;Fe.includes(Sn)||!ri||(at.dragNodeProps.eventKey===Sn&&hn===0?at.state.dropPosition===null&&at.state.dropLevelOffset===null&&at.state.dropTargetKey===null&&at.state.dropContainerKey===null&&at.state.dropTargetPos===null&&at.state.dropAllowed===!1&&at.state.dragOverNodeKey===null||at.resetDragState():bt===at.state.dropPosition&&hn===at.state.dropLevelOffset&&Sn===at.state.dropTargetKey&&Jt===at.state.dropContainerKey&&Hn===at.state.dropTargetPos&&ri===at.state.dropAllowed&&Qn===at.state.dragOverNodeKey||at.setState({dropPosition:bt,dropLevelOffset:hn,dropTargetKey:Sn,dropContainerKey:Jt,dropTargetPos:Hn,dropAllowed:ri,dragOverNodeKey:Qn}),Ie==null||Ie({event:qt,node:(0,gt.F)(he)}))}}),(0,Y.Z)((0,Z.Z)(at),"onNodeDragLeave",function(qt,he){at.currentMouseOverDroppableNodeKey===he.eventKey&&!qt.currentTarget.contains(qt.relatedTarget)&&(at.resetDragState(),at.currentMouseOverDroppableNodeKey=null);var de=at.props.onDragLeave;de==null||de({event:qt,node:(0,gt.F)(he)})}),(0,Y.Z)((0,Z.Z)(at),"onWindowDragEnd",function(qt){at.onNodeDragEnd(qt,null,!0),window.removeEventListener("dragend",at.onWindowDragEnd)}),(0,Y.Z)((0,Z.Z)(at),"onNodeDragEnd",function(qt,he){var de=at.props.onDragEnd;at.setState({dragOverNodeKey:null}),at.cleanDragState(),de==null||de({event:qt,node:(0,gt.F)(he)}),at.dragNodeProps=null,window.removeEventListener("dragend",at.onWindowDragEnd)}),(0,Y.Z)((0,Z.Z)(at),"onNodeDrop",function(qt,he){var de,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$e=at.state,Ee=$e.dragChildrenKeys,zt=$e.dropPosition,Be=$e.dropTargetKey,Ge=$e.dropTargetPos,Ie=$e.dropAllowed;if(Ie){var ze=at.props.onDrop;if(at.setState({dragOverNodeKey:null}),at.cleanDragState(),Be!==null){var Cn=(0,D.Z)((0,D.Z)({},(0,gt.H8)(Be,at.getTreeNodeRequiredProps())),{},{active:((de=at.getActiveItem())===null||de===void 0?void 0:de.key)===Be,data:(0,Ln.Z)(at.state.keyEntities,Be).node}),je=Ee.includes(Be);(0,_t.ZP)(!je,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var bt=(0,on.yx)(Ge),hn={event:qt,node:(0,gt.F)(Cn),dragNode:at.dragNodeProps?(0,gt.F)(at.dragNodeProps):null,dragNodesKeys:[at.dragNodeProps.eventKey].concat(Ee),dropToGap:zt!==0,dropPosition:zt+Number(bt[bt.length-1])};Fe||ze==null||ze(hn),at.dragNodeProps=null}}}),(0,Y.Z)((0,Z.Z)(at),"cleanDragState",function(){var qt=at.state.draggingNodeKey;qt!==null&&at.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),at.dragStartMousePosition=null,at.currentMouseOverDroppableNodeKey=null}),(0,Y.Z)((0,Z.Z)(at),"triggerExpandActionExpand",function(qt,he){var de=at.state,Fe=de.expandedKeys,$e=de.flattenNodes,Ee=he.expanded,zt=he.key,Be=he.isLeaf;if(!(Be||qt.shiftKey||qt.metaKey||qt.ctrlKey)){var Ge=$e.filter(function(ze){return ze.key===zt})[0],Ie=(0,gt.F)((0,D.Z)((0,D.Z)({},(0,gt.H8)(zt,at.getTreeNodeRequiredProps())),{},{data:Ge.data}));at.setExpandedKeys(Ee?(0,on._5)(Fe,zt):(0,on.L0)(Fe,zt)),at.onNodeExpand(qt,Ie)}}),(0,Y.Z)((0,Z.Z)(at),"onNodeClick",function(qt,he){var de=at.props,Fe=de.onClick,$e=de.expandAction;$e==="click"&&at.triggerExpandActionExpand(qt,he),Fe==null||Fe(qt,he)}),(0,Y.Z)((0,Z.Z)(at),"onNodeDoubleClick",function(qt,he){var de=at.props,Fe=de.onDoubleClick,$e=de.expandAction;$e==="doubleClick"&&at.triggerExpandActionExpand(qt,he),Fe==null||Fe(qt,he)}),(0,Y.Z)((0,Z.Z)(at),"onNodeSelect",function(qt,he){var de=at.state.selectedKeys,Fe=at.state,$e=Fe.keyEntities,Ee=Fe.fieldNames,zt=at.props,Be=zt.onSelect,Ge=zt.multiple,Ie=he.selected,ze=he[Ee.key],Cn=!Ie;Cn?Ge?de=(0,on.L0)(de,ze):de=[ze]:de=(0,on._5)(de,ze);var je=de.map(function(bt){var hn=(0,Ln.Z)($e,bt);return hn?hn.node:null}).filter(Boolean);at.setUncontrolledState({selectedKeys:de}),Be==null||Be(de,{event:"select",selected:Cn,node:he,selectedNodes:je,nativeEvent:qt.nativeEvent})}),(0,Y.Z)((0,Z.Z)(at),"onNodeCheck",function(qt,he,de){var Fe=at.state,$e=Fe.keyEntities,Ee=Fe.checkedKeys,zt=Fe.halfCheckedKeys,Be=at.props,Ge=Be.checkStrictly,Ie=Be.onCheck,ze=he.key,Cn,je={event:"check",node:he,checked:de,nativeEvent:qt.nativeEvent};if(Ge){var bt=de?(0,on.L0)(Ee,ze):(0,on._5)(Ee,ze),hn=(0,on._5)(zt,ze);Cn={checked:bt,halfChecked:hn},je.checkedNodes=bt.map(function(we){return(0,Ln.Z)($e,we)}).filter(Boolean).map(function(we){return we.node}),at.setUncontrolledState({checkedKeys:bt})}else{var Sn=(0,un.S)([].concat((0,P.Z)(Ee),[ze]),!0,$e),Jt=Sn.checkedKeys,Hn=Sn.halfCheckedKeys;if(!de){var ri=new Set(Jt);ri.delete(ze);var Qn=(0,un.S)(Array.from(ri),{checked:!1,halfCheckedKeys:Hn},$e);Jt=Qn.checkedKeys,Hn=Qn.halfCheckedKeys}Cn=Jt,je.checkedNodes=[],je.checkedNodesPositions=[],je.halfCheckedKeys=Hn,Jt.forEach(function(we){var wi=(0,Ln.Z)($e,we);if(wi){var xi=wi.node,Bn=wi.pos;je.checkedNodes.push(xi),je.checkedNodesPositions.push({node:xi,pos:Bn})}}),at.setUncontrolledState({checkedKeys:Jt},!1,{halfCheckedKeys:Hn})}Ie==null||Ie(Cn,je)}),(0,Y.Z)((0,Z.Z)(at),"onNodeLoad",function(qt){var he,de=qt.key,Fe=at.state.keyEntities,$e=(0,Ln.Z)(Fe,de);if(!($e!=null&&(he=$e.children)!==null&&he!==void 0&&he.length)){var Ee=new Promise(function(zt,Be){at.setState(function(Ge){var Ie=Ge.loadedKeys,ze=Ie===void 0?[]:Ie,Cn=Ge.loadingKeys,je=Cn===void 0?[]:Cn,bt=at.props,hn=bt.loadData,Sn=bt.onLoad;if(!hn||ze.includes(de)||je.includes(de))return null;var Jt=hn(qt);return Jt.then(function(){var Hn=at.state.loadedKeys,ri=(0,on.L0)(Hn,de);Sn==null||Sn(ri,{event:"load",node:qt}),at.setUncontrolledState({loadedKeys:ri}),at.setState(function(Qn){return{loadingKeys:(0,on._5)(Qn.loadingKeys,de)}}),zt()}).catch(function(Hn){if(at.setState(function(Qn){return{loadingKeys:(0,on._5)(Qn.loadingKeys,de)}}),at.loadingRetryTimes[de]=(at.loadingRetryTimes[de]||0)+1,at.loadingRetryTimes[de]>=Dn){var ri=at.state.loadedKeys;(0,_t.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),at.setUncontrolledState({loadedKeys:(0,on.L0)(ri,de)}),zt()}Be(Hn)}),{loadingKeys:(0,on.L0)(je,de)}})});return Ee.catch(function(){}),Ee}}),(0,Y.Z)((0,Z.Z)(at),"onNodeMouseEnter",function(qt,he){var de=at.props.onMouseEnter;de==null||de({event:qt,node:he})}),(0,Y.Z)((0,Z.Z)(at),"onNodeMouseLeave",function(qt,he){var de=at.props.onMouseLeave;de==null||de({event:qt,node:he})}),(0,Y.Z)((0,Z.Z)(at),"onNodeContextMenu",function(qt,he){var de=at.props.onRightClick;de&&(qt.preventDefault(),de({event:qt,node:he}))}),(0,Y.Z)((0,Z.Z)(at),"onFocus",function(){var qt=at.props.onFocus;at.setState({focused:!0});for(var he=arguments.length,de=new Array(he),Fe=0;Fe<he;Fe++)de[Fe]=arguments[Fe];qt==null||qt.apply(void 0,de)}),(0,Y.Z)((0,Z.Z)(at),"onBlur",function(){var qt=at.props.onBlur;at.setState({focused:!1}),at.onActiveChange(null);for(var he=arguments.length,de=new Array(he),Fe=0;Fe<he;Fe++)de[Fe]=arguments[Fe];qt==null||qt.apply(void 0,de)}),(0,Y.Z)((0,Z.Z)(at),"getTreeNodeRequiredProps",function(){var qt=at.state,he=qt.expandedKeys,de=qt.selectedKeys,Fe=qt.loadedKeys,$e=qt.loadingKeys,Ee=qt.checkedKeys,zt=qt.halfCheckedKeys,Be=qt.dragOverNodeKey,Ge=qt.dropPosition,Ie=qt.keyEntities;return{expandedKeys:he||[],selectedKeys:de||[],loadedKeys:Fe||[],loadingKeys:$e||[],checkedKeys:Ee||[],halfCheckedKeys:zt||[],dragOverNodeKey:Be,dropPosition:Ge,keyEntities:Ie}}),(0,Y.Z)((0,Z.Z)(at),"setExpandedKeys",function(qt){var he=at.state,de=he.treeData,Fe=he.fieldNames,$e=(0,gt.oH)(de,qt,Fe);at.setUncontrolledState({expandedKeys:qt,flattenNodes:$e},!0)}),(0,Y.Z)((0,Z.Z)(at),"onNodeExpand",function(qt,he){var de=at.state.expandedKeys,Fe=at.state,$e=Fe.listChanging,Ee=Fe.fieldNames,zt=at.props,Be=zt.onExpand,Ge=zt.loadData,Ie=he.expanded,ze=he[Ee.key];if(!$e){var Cn=de.includes(ze),je=!Ie;if((0,_t.ZP)(Ie&&Cn||!Ie&&!Cn,"Expand state not sync with index check"),de=je?(0,on.L0)(de,ze):(0,on._5)(de,ze),at.setExpandedKeys(de),Be==null||Be(de,{node:he,expanded:je,nativeEvent:qt.nativeEvent}),je&&Ge){var bt=at.onNodeLoad(he);bt&&bt.then(function(){var hn=(0,gt.oH)(at.state.treeData,de,Ee);at.setUncontrolledState({flattenNodes:hn})}).catch(function(){var hn=at.state.expandedKeys,Sn=(0,on._5)(hn,ze);at.setExpandedKeys(Sn)})}}}),(0,Y.Z)((0,Z.Z)(at),"onListChangeStart",function(){at.setUncontrolledState({listChanging:!0})}),(0,Y.Z)((0,Z.Z)(at),"onListChangeEnd",function(){setTimeout(function(){at.setUncontrolledState({listChanging:!1})})}),(0,Y.Z)((0,Z.Z)(at),"onActiveChange",function(qt){var he=at.state.activeKey,de=at.props,Fe=de.onActiveChange,$e=de.itemScrollOffset,Ee=$e===void 0?0:$e;he!==qt&&(at.setState({activeKey:qt}),qt!==null&&at.scrollTo({key:qt,offset:Ee}),Fe==null||Fe(qt))}),(0,Y.Z)((0,Z.Z)(at),"getActiveItem",function(){var qt=at.state,he=qt.activeKey,de=qt.flattenNodes;return he===null?null:de.find(function(Fe){var $e=Fe.key;return $e===he})||null}),(0,Y.Z)((0,Z.Z)(at),"offsetActiveKey",function(qt){var he=at.state,de=he.flattenNodes,Fe=he.activeKey,$e=de.findIndex(function(Be){var Ge=Be.key;return Ge===Fe});$e===-1&&qt<0&&($e=de.length),$e=($e+qt+de.length)%de.length;var Ee=de[$e];if(Ee){var zt=Ee.key;at.onActiveChange(zt)}else at.onActiveChange(null)}),(0,Y.Z)((0,Z.Z)(at),"onKeyDown",function(qt){var he=at.state,de=he.activeKey,Fe=he.expandedKeys,$e=he.checkedKeys,Ee=he.fieldNames,zt=at.props,Be=zt.onKeyDown,Ge=zt.checkable,Ie=zt.selectable;switch(qt.which){case $t.Z.UP:{at.offsetActiveKey(-1),qt.preventDefault();break}case $t.Z.DOWN:{at.offsetActiveKey(1),qt.preventDefault();break}}var ze=at.getActiveItem();if(ze&&ze.data){var Cn=at.getTreeNodeRequiredProps(),je=ze.data.isLeaf===!1||!!(ze.data[Ee.children]||[]).length,bt=(0,gt.F)((0,D.Z)((0,D.Z)({},(0,gt.H8)(de,Cn)),{},{data:ze.data,active:!0}));switch(qt.which){case $t.Z.LEFT:{je&&Fe.includes(de)?at.onNodeExpand({},bt):ze.parent&&at.onActiveChange(ze.parent.key),qt.preventDefault();break}case $t.Z.RIGHT:{je&&!Fe.includes(de)?at.onNodeExpand({},bt):ze.children&&ze.children.length&&at.onActiveChange(ze.children[0].key),qt.preventDefault();break}case $t.Z.ENTER:case $t.Z.SPACE:{Ge&&!bt.disabled&&bt.checkable!==!1&&!bt.disableCheckbox?at.onNodeCheck({},bt,!$e.includes(de)):!Ge&&Ie&&!bt.disabled&&bt.selectable!==!1&&at.onNodeSelect({},bt);break}}}Be==null||Be(qt)}),(0,Y.Z)((0,Z.Z)(at),"setUncontrolledState",function(qt){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!at.destroyed){var Fe=!1,$e=!0,Ee={};Object.keys(qt).forEach(function(zt){if(at.props.hasOwnProperty(zt)){$e=!1;return}Fe=!0,Ee[zt]=qt[zt]}),Fe&&(!he||$e)&&at.setState((0,D.Z)((0,D.Z)({},Ee),de))}}),(0,Y.Z)((0,Z.Z)(at),"scrollTo",function(qt){at.listRef.current.scrollTo(qt)}),at}return(0,C.Z)(_,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var se=this.props,Ve=se.activeKey,Ke=se.itemScrollOffset,qt=Ke===void 0?0:Ke;Ve!==void 0&&Ve!==this.state.activeKey&&(this.setState({activeKey:Ve}),Ve!==null&&this.scrollTo({key:Ve,offset:qt}))}},{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 se=this.state,Ve=se.focused,Ke=se.flattenNodes,qt=se.keyEntities,he=se.draggingNodeKey,de=se.activeKey,Fe=se.dropLevelOffset,$e=se.dropContainerKey,Ee=se.dropTargetKey,zt=se.dropPosition,Be=se.dragOverNodeKey,Ge=se.indent,Ie=this.props,ze=Ie.prefixCls,Cn=Ie.className,je=Ie.style,bt=Ie.showLine,hn=Ie.focusable,Sn=Ie.tabIndex,Jt=Sn===void 0?0:Sn,Hn=Ie.selectable,ri=Ie.showIcon,Qn=Ie.icon,we=Ie.switcherIcon,wi=Ie.draggable,xi=Ie.checkable,Bn=Ie.checkStrictly,Kn=Ie.disabled,Ei=Ie.motion,A=Ie.loadData,Pn=Ie.filterTreeNode,gn=Ie.height,$n=Ie.itemHeight,Fi=Ie.scrollWidth,Ki=Ie.virtual,pi=Ie.titleRender,so=Ie.dropIndicatorRender,Zi=Ie.onContextMenu,or=Ie.onScroll,Yn=Ie.direction,Mn=Ie.rootClassName,fr=Ie.rootStyle,Li=(0,Ft.Z)(this.props,{aria:!0,data:!0}),Xi;wi&&((0,I.Z)(wi)==="object"?Xi=wi:typeof wi=="function"?Xi={nodeDraggable:wi}:Xi={});var sn={prefixCls:ze,selectable:Hn,showIcon:ri,icon:Qn,switcherIcon:we,draggable:Xi,draggingNodeKey:he,checkable:xi,checkStrictly:Bn,disabled:Kn,keyEntities:qt,dropLevelOffset:Fe,dropContainerKey:$e,dropTargetKey:Ee,dropPosition:zt,dragOverNodeKey:Be,indent:Ge,direction:Yn,dropIndicatorRender:so,loadData:A,filterTreeNode:Pn,titleRender:pi,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 Ct.createElement(xt.k.Provider,{value:sn},Ct.createElement("div",{className:ct()(ze,Cn,Mn,(0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(ze,"-show-line"),bt),"".concat(ze,"-focused"),Ve),"".concat(ze,"-active-focused"),de!==null)),style:fr},Ct.createElement(me,(0,E.Z)({ref:this.listRef,prefixCls:ze,style:je,data:Ke,disabled:Kn,selectable:Hn,checkable:!!xi,motion:Ei,dragging:he!==null,height:gn,itemHeight:$n,virtual:Ki,focusable:hn,focused:Ve,tabIndex:Jt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Zi,onScroll:or,scrollWidth:Fi},this.getTreeNodeRequiredProps(),Li))))}}],[{key:"getDerivedStateFromProps",value:function(se,Ve){var Ke=Ve.prevProps,qt={prevProps:se};function he(Jt){return!Ke&&se.hasOwnProperty(Jt)||Ke&&Ke[Jt]!==se[Jt]}var de,Fe=Ve.fieldNames;if(he("fieldNames")&&(Fe=(0,gt.w$)(se.fieldNames),qt.fieldNames=Fe),he("treeData")?de=se.treeData:he("children")&&((0,_t.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),de=(0,gt.zn)(se.children)),de){qt.treeData=de;var $e=(0,gt.I8)(de,{fieldNames:Fe});qt.keyEntities=(0,D.Z)((0,Y.Z)({},rt,ie),$e.keyEntities)}var Ee=qt.keyEntities||Ve.keyEntities;if(he("expandedKeys")||Ke&&he("autoExpandParent"))qt.expandedKeys=se.autoExpandParent||!Ke&&se.defaultExpandParent?(0,on.r7)(se.expandedKeys,Ee):se.expandedKeys;else if(!Ke&&se.defaultExpandAll){var zt=(0,D.Z)({},Ee);delete zt[rt];var Be=[];Object.keys(zt).forEach(function(Jt){var Hn=zt[Jt];Hn.children&&Hn.children.length&&Be.push(Hn.key)}),qt.expandedKeys=Be}else!Ke&&se.defaultExpandedKeys&&(qt.expandedKeys=se.autoExpandParent||se.defaultExpandParent?(0,on.r7)(se.defaultExpandedKeys,Ee):se.defaultExpandedKeys);if(qt.expandedKeys||delete qt.expandedKeys,de||qt.expandedKeys){var Ge=(0,gt.oH)(de||Ve.treeData,qt.expandedKeys||Ve.expandedKeys,Fe);qt.flattenNodes=Ge}if(se.selectable&&(he("selectedKeys")?qt.selectedKeys=(0,on.BT)(se.selectedKeys,se):!Ke&&se.defaultSelectedKeys&&(qt.selectedKeys=(0,on.BT)(se.defaultSelectedKeys,se))),se.checkable){var Ie;if(he("checkedKeys")?Ie=(0,on.E6)(se.checkedKeys)||{}:!Ke&&se.defaultCheckedKeys?Ie=(0,on.E6)(se.defaultCheckedKeys)||{}:de&&(Ie=(0,on.E6)(se.checkedKeys)||{checkedKeys:Ve.checkedKeys,halfCheckedKeys:Ve.halfCheckedKeys}),Ie){var ze=Ie,Cn=ze.checkedKeys,je=Cn===void 0?[]:Cn,bt=ze.halfCheckedKeys,hn=bt===void 0?[]:bt;if(!se.checkStrictly){var Sn=(0,un.S)(je,!0,Ee);je=Sn.checkedKeys,hn=Sn.halfCheckedKeys}qt.checkedKeys=je,qt.halfCheckedKeys=hn}}return he("loadedKeys")&&(qt.loadedKeys=se.loadedKeys),qt}}]),_}(Ct.Component);(0,Y.Z)(K,"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:ft,allowDrop:function(){return!0},expandAction:!1}),(0,Y.Z)(K,"TreeNode",pt.Z);var O=K,k=O},82661:function(j,S,p){"use strict";p.d(S,{BT:function(){return Ct},E6:function(){return ft},L0:function(){return Y},OM:function(){return _t},_5:function(){return J},r7:function(){return vt},wA:function(){return ct},yx:function(){return Mt}});var E=p(15142),I=p(26420),D=p(48736),P=p(59301),V=p(639),C=p(65065),Z=p(34061),lt=null;function J(ot,st){if(!ot)return[];var q=ot.slice(),wt=q.indexOf(st);return wt>=0&&q.splice(wt,1),q}function Y(ot,st){var q=(ot||[]).slice();return q.indexOf(st)===-1&&q.push(st),q}function Mt(ot){return ot.split("-")}function ct(ot,st){var q=[],wt=(0,C.Z)(st,ot);function Bt(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];pt.forEach(function(Ht){var At=Ht.key,gt=Ht.children;q.push(At),Bt(gt)})}return Bt(wt.children),q}function $t(ot){if(ot.parent){var st=Mt(ot.pos);return Number(st[st.length-1])===ot.parent.children.length-1}return!1}function Ft(ot){var st=Mt(ot.pos);return Number(st[st.length-1])===0}function _t(ot,st,q,wt,Bt,pt,Ht,At,gt,Pt){var kt,Gt=ot.clientX,ue=ot.clientY,le=ot.target.getBoundingClientRect(),re=le.top,pe=le.height,Dt=(Pt==="rtl"?-1:1)*(((Bt==null?void 0:Bt.x)||0)-Gt),rt=(Dt-12)/wt,Q=gt.filter(function(k){var H;return(H=At[k])===null||H===void 0||(H=H.children)===null||H===void 0?void 0:H.length}),ie=(0,C.Z)(At,q.eventKey);if(ue<re+pe/2){var ce=Ht.findIndex(function(k){return k.key===ie.key}),oe=ce<=0?0:ce-1,pn=Ht[oe].key;ie=(0,C.Z)(At,pn)}var Ze=ie.key,Nn=ie,me=ie.key,on=0,un=0;if(!Q.includes(Ze))for(var Ln=0;Ln<rt&&$t(ie);Ln+=1)ie=ie.parent,un+=1;var Dn=st.data,K=ie.node,O=!0;return Ft(ie)&&ie.level===0&&ue<re+pe/2&&pt({dragNode:Dn,dropNode:K,dropPosition:-1})&&ie.key===q.eventKey?on=-1:(Nn.children||[]).length&&Q.includes(me)?pt({dragNode:Dn,dropNode:K,dropPosition:0})?on=0:O=!1:un===0?rt>-1.5?pt({dragNode:Dn,dropNode:K,dropPosition:1})?on=1:O=!1:pt({dragNode:Dn,dropNode:K,dropPosition:0})?on=0:pt({dragNode:Dn,dropNode:K,dropPosition:1})?on=1:O=!1:pt({dragNode:Dn,dropNode:K,dropPosition:1})?on=1:O=!1,{dropPosition:on,dropLevelOffset:un,dropTargetKey:ie.key,dropTargetPos:ie.pos,dragOverNodeKey:me,dropContainerKey:on===0?null:((kt=ie.parent)===null||kt===void 0?void 0:kt.key)||null,dropAllowed:O}}function Ct(ot,st){if(ot){var q=st.multiple;return q?ot.slice():ot.length?[ot[0]]:ot}}var xt=function(st){return st};function St(ot,st){if(!ot)return[];var q=st||{},wt=q.processProps,Bt=wt===void 0?xt:wt,pt=Array.isArray(ot)?ot:[ot];return pt.map(function(Ht){var At=Ht.children,gt=_objectWithoutProperties(Ht,lt),Pt=St(At,st);return React.createElement(TreeNode,_extends({key:gt.key},Bt(gt)),Pt)})}function ft(ot){if(!ot)return null;var st;if(Array.isArray(ot))st={checkedKeys:ot,halfCheckedKeys:void 0};else if((0,I.Z)(ot)==="object")st={checkedKeys:ot.checked||void 0,halfCheckedKeys:ot.halfChecked||void 0};else return(0,D.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return st}function vt(ot,st){var q=new Set;function wt(Bt){if(!q.has(Bt)){var pt=(0,C.Z)(st,Bt);if(pt){q.add(Bt);var Ht=pt.parent,At=pt.node;At.disabled||Ht&&wt(Ht.key)}}}return(ot||[]).forEach(function(Bt){wt(Bt)}),(0,E.Z)(q)}},34643:function(j,S,p){"use strict";p.d(S,{S:function(){return Z}});var E=p(48736),I=p(65065);function D(lt,J){var Y=new Set;return lt.forEach(function(Mt){J.has(Mt)||Y.add(Mt)}),Y}function P(lt){var J=lt||{},Y=J.disabled,Mt=J.disableCheckbox,ct=J.checkable;return!!(Y||Mt)||ct===!1}function V(lt,J,Y,Mt){for(var ct=new Set(lt),$t=new Set,Ft=0;Ft<=Y;Ft+=1){var _t=J.get(Ft)||new Set;_t.forEach(function(ft){var vt=ft.key,ot=ft.node,st=ft.children,q=st===void 0?[]:st;ct.has(vt)&&!Mt(ot)&&q.filter(function(wt){return!Mt(wt.node)}).forEach(function(wt){ct.add(wt.key)})})}for(var Ct=new Set,xt=Y;xt>=0;xt-=1){var St=J.get(xt)||new Set;St.forEach(function(ft){var vt=ft.parent,ot=ft.node;if(!(Mt(ot)||!ft.parent||Ct.has(ft.parent.key))){if(Mt(ft.parent.node)){Ct.add(vt.key);return}var st=!0,q=!1;(vt.children||[]).filter(function(wt){return!Mt(wt.node)}).forEach(function(wt){var Bt=wt.key,pt=ct.has(Bt);st&&!pt&&(st=!1),!q&&(pt||$t.has(Bt))&&(q=!0)}),st&&ct.add(vt.key),q&&$t.add(vt.key),Ct.add(vt.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(D($t,ct))}}function C(lt,J,Y,Mt,ct){for(var $t=new Set(lt),Ft=new Set(J),_t=0;_t<=Mt;_t+=1){var Ct=Y.get(_t)||new Set;Ct.forEach(function(vt){var ot=vt.key,st=vt.node,q=vt.children,wt=q===void 0?[]:q;!$t.has(ot)&&!Ft.has(ot)&&!ct(st)&&wt.filter(function(Bt){return!ct(Bt.node)}).forEach(function(Bt){$t.delete(Bt.key)})})}Ft=new Set;for(var xt=new Set,St=Mt;St>=0;St-=1){var ft=Y.get(St)||new Set;ft.forEach(function(vt){var ot=vt.parent,st=vt.node;if(!(ct(st)||!vt.parent||xt.has(vt.parent.key))){if(ct(vt.parent.node)){xt.add(ot.key);return}var q=!0,wt=!1;(ot.children||[]).filter(function(Bt){return!ct(Bt.node)}).forEach(function(Bt){var pt=Bt.key,Ht=$t.has(pt);q&&!Ht&&(q=!1),!wt&&(Ht||Ft.has(pt))&&(wt=!0)}),q||$t.delete(ot.key),wt&&Ft.add(ot.key),xt.add(ot.key)}})}return{checkedKeys:Array.from($t),halfCheckedKeys:Array.from(D(Ft,$t))}}function Z(lt,J,Y,Mt){var ct=[],$t;Mt?$t=Mt:$t=P;var Ft=new Set(lt.filter(function(St){var ft=!!(0,I.Z)(Y,St);return ft||ct.push(St),ft})),_t=new Map,Ct=0;Object.keys(Y).forEach(function(St){var ft=Y[St],vt=ft.level,ot=_t.get(vt);ot||(ot=new Set,_t.set(vt,ot)),ot.add(ft),Ct=Math.max(Ct,vt)}),(0,E.ZP)(!ct.length,"Tree missing follow keys: ".concat(ct.slice(0,100).map(function(St){return"'".concat(St,"'")}).join(", ")));var xt;return J===!0?xt=V(Ft,_t,Ct,$t):xt=C(Ft,J.halfCheckedKeys,_t,Ct,$t),xt}},65065:function(j,S,p){"use strict";p.d(S,{Z:function(){return E}});function E(I,D){return I[D]}},34061:function(j,S,p){"use strict";p.d(S,{F:function(){return vt},H8:function(){return ft},I8:function(){return St},km:function(){return ct},oH:function(){return Ct},w$:function(){return $t},zn:function(){return _t}});var E=p(26420),I=p(15142),D=p(98506),P=p(33346),V=p(11592),C=p(2738),Z=p(48736),lt=p(65065),J=["children"];function Y(ot,st){return"".concat(ot,"-").concat(st)}function Mt(ot){return ot&&ot.type&&ot.type.isTreeNode}function ct(ot,st){return ot!=null?ot:st}function $t(ot){var st=ot||{},q=st.title,wt=st._title,Bt=st.key,pt=st.children,Ht=q||"title";return{title:Ht,_title:wt||[Ht],key:Bt||"key",children:pt||"children"}}function Ft(ot,st){var q=new Map;function wt(Bt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Bt||[]).forEach(function(Ht){var At=Ht[st.key],gt=Ht[st.children];warning(At!=null,"Tree node must have a certain key: [".concat(pt).concat(At,"]"));var Pt=String(At);warning(!q.has(Pt)||At===null||At===void 0,"Same 'key' exist in the Tree: ".concat(Pt)),q.set(Pt,!0),wt(gt,"".concat(pt).concat(Pt," > "))})}wt(ot)}function _t(ot){function st(q){var wt=(0,V.Z)(q);return wt.map(function(Bt){if(!Mt(Bt))return(0,Z.ZP)(!Bt,"Tree/TreeNode can only accept TreeNode as children."),null;var pt=Bt.key,Ht=Bt.props,At=Ht.children,gt=(0,P.Z)(Ht,J),Pt=(0,D.Z)({key:pt},gt),kt=st(At);return kt.length&&(Pt.children=kt),Pt}).filter(function(Bt){return Bt})}return st(ot)}function Ct(ot,st,q){var wt=$t(q),Bt=wt._title,pt=wt.key,Ht=wt.children,At=new Set(st===!0?[]:st),gt=[];function Pt(kt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return kt.map(function(ue,le){for(var re=Y(Gt?Gt.pos:"0",le),pe=ct(ue[pt],re),Dt,rt=0;rt<Bt.length;rt+=1){var Q=Bt[rt];if(ue[Q]!==void 0){Dt=ue[Q];break}}var ie=Object.assign((0,C.Z)(ue,[].concat((0,I.Z)(Bt),[pt,Ht])),{title:Dt,key:pe,parent:Gt,pos:re,children:null,data:ue,isStart:[].concat((0,I.Z)(Gt?Gt.isStart:[]),[le===0]),isEnd:[].concat((0,I.Z)(Gt?Gt.isEnd:[]),[le===kt.length-1])});return gt.push(ie),st===!0||At.has(pe)?ie.children=Pt(ue[Ht]||[],ie):ie.children=[],ie})}return Pt(ot),gt}function xt(ot,st,q){var wt={};(0,E.Z)(q)==="object"?wt=q:wt={externalGetKey:q},wt=wt||{};var Bt=wt,pt=Bt.childrenPropName,Ht=Bt.externalGetKey,At=Bt.fieldNames,gt=$t(At),Pt=gt.key,kt=gt.children,Gt=pt||kt,ue;Ht?typeof Ht=="string"?ue=function(pe){return pe[Ht]}:typeof Ht=="function"&&(ue=function(pe){return Ht(pe)}):ue=function(pe,Dt){return ct(pe[Pt],Dt)};function le(re,pe,Dt,rt){var Q=re?re[Gt]:ot,ie=re?Y(Dt.pos,pe):"0",ce=re?[].concat((0,I.Z)(rt),[re]):[];if(re){var oe=ue(re,ie),pn={node:re,index:pe,pos:ie,key:oe,parentPos:Dt.node?Dt.pos:null,level:Dt.level+1,nodes:ce};st(pn)}Q&&Q.forEach(function(Ze,Nn){le(Ze,Nn,{node:re,pos:ie,level:Dt?Dt.level+1:-1},ce)})}le(null)}function St(ot){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=st.initWrapper,wt=st.processEntity,Bt=st.onProcessFinished,pt=st.externalGetKey,Ht=st.childrenPropName,At=st.fieldNames,gt=arguments.length>2?arguments[2]:void 0,Pt=pt||gt,kt={},Gt={},ue={posEntities:kt,keyEntities:Gt};return q&&(ue=q(ue)||ue),xt(ot,function(le){var re=le.node,pe=le.index,Dt=le.pos,rt=le.key,Q=le.parentPos,ie=le.level,ce=le.nodes,oe={node:re,nodes:ce,index:pe,key:rt,pos:Dt,level:ie},pn=ct(rt,Dt);kt[Dt]=oe,Gt[pn]=oe,oe.parent=kt[Q],oe.parent&&(oe.parent.children=oe.parent.children||[],oe.parent.children.push(oe)),wt&&wt(oe,ue)},{externalGetKey:Pt,childrenPropName:Ht,fieldNames:At}),Bt&&Bt(ue),ue}function ft(ot,st){var q=st.expandedKeys,wt=st.selectedKeys,Bt=st.loadedKeys,pt=st.loadingKeys,Ht=st.checkedKeys,At=st.halfCheckedKeys,gt=st.dragOverNodeKey,Pt=st.dropPosition,kt=st.keyEntities,Gt=(0,lt.Z)(kt,ot),ue={eventKey:ot,expanded:q.indexOf(ot)!==-1,selected:wt.indexOf(ot)!==-1,loaded:Bt.indexOf(ot)!==-1,loading:pt.indexOf(ot)!==-1,checked:Ht.indexOf(ot)!==-1,halfChecked:At.indexOf(ot)!==-1,pos:String(Gt?Gt.pos:""),dragOver:gt===ot&&Pt===0,dragOverGapTop:gt===ot&&Pt===-1,dragOverGapBottom:gt===ot&&Pt===1};return ue}function vt(ot){var st=ot.data,q=ot.expanded,wt=ot.selected,Bt=ot.checked,pt=ot.loaded,Ht=ot.loading,At=ot.halfChecked,gt=ot.dragOver,Pt=ot.dragOverGapTop,kt=ot.dragOverGapBottom,Gt=ot.pos,ue=ot.active,le=ot.eventKey,re=(0,D.Z)((0,D.Z)({},st),{},{expanded:q,selected:wt,checked:Bt,loaded:pt,loading:Ht,halfChecked:At,dragOver:gt,dragOverGapTop:Pt,dragOverGapBottom:kt,pos:Gt,active:ue,key:le});return"props"in re||Object.defineProperty(re,"props",{get:function(){return(0,Z.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ot}}),re}},90472:function(j,S,p){"use strict";p.d(S,{Z:function(){return le}});var E=p(67711),I=p(42573),D=p(58698),P=p(62437),V=p(74700),C=p(45080),Z=p(52873),lt=p(59301),J=p(98506),Y=p(33346),Mt=p(26420),ct=p(77910),$t=p(51343),Ft=p(15142),_t=p(92310),Ct=p.n(_t),xt=p(26112),St=p(48736),ft=function(re,pe){if(re&&pe){var Dt=Array.isArray(pe)?pe:pe.split(","),rt=re.name||"",Q=re.type||"",ie=Q.replace(/\/.*$/,"");return Dt.some(function(ce){var oe=ce.trim();if(/^\*(\/\*)?$/.test(ce))return!0;if(oe.charAt(0)==="."){var pn=rt.toLowerCase(),Ze=oe.toLowerCase(),Nn=[Ze];return(Ze===".jpg"||Ze===".jpeg")&&(Nn=[".jpg",".jpeg"]),Nn.some(function(me){return pn.endsWith(me)})}return/\/\*$/.test(oe)?ie===oe.replace(/\/.*$/,""):Q===oe?!0:/^\w+$/.test(oe)?((0,St.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(oe,"'.Skip for check.")),!0):!1})}return!0};function vt(re,pe){var Dt="cannot ".concat(re.method," ").concat(re.action," ").concat(pe.status,"'"),rt=new Error(Dt);return rt.status=pe.status,rt.method=re.method,rt.url=re.action,rt}function ot(re){var pe=re.responseText||re.response;if(!pe)return pe;try{return JSON.parse(pe)}catch(Dt){return pe}}function st(re){var pe=new XMLHttpRequest;re.onProgress&&pe.upload&&(pe.upload.onprogress=function(ie){ie.total>0&&(ie.percent=ie.loaded/ie.total*100),re.onProgress(ie)});var Dt=new FormData;re.data&&Object.keys(re.data).forEach(function(Q){var ie=re.data[Q];if(Array.isArray(ie)){ie.forEach(function(ce){Dt.append("".concat(Q,"[]"),ce)});return}Dt.append(Q,ie)}),re.file instanceof Blob?Dt.append(re.filename,re.file,re.file.name):Dt.append(re.filename,re.file),pe.onerror=function(ie){re.onError(ie)},pe.onload=function(){return pe.status<200||pe.status>=300?re.onError(vt(re,pe),ot(pe)):re.onSuccess(ot(pe),pe)},pe.open(re.method,re.action,!0),re.withCredentials&&"withCredentials"in pe&&(pe.withCredentials=!0);var rt=re.headers||{};return rt["X-Requested-With"]!==null&&pe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(rt).forEach(function(Q){rt[Q]!==null&&pe.setRequestHeader(Q,rt[Q])}),pe.send(Dt),{abort:function(){pe.abort()}}}var q=function(){var re=(0,$t.Z)((0,ct.Z)().mark(function pe(Dt,rt){var Q,ie,ce,oe,pn,Ze,Nn,me;return(0,ct.Z)().wrap(function(un){for(;;)switch(un.prev=un.next){case 0:Ze=function(){return Ze=(0,$t.Z)((0,ct.Z)().mark(function Dn(K){return(0,ct.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.abrupt("return",new Promise(function(H){K.file(function(tt){rt(tt)?(K.fullPath&&!tt.webkitRelativePath&&(Object.defineProperties(tt,{webkitRelativePath:{writable:!0}}),tt.webkitRelativePath=K.fullPath.replace(/^\//,""),Object.defineProperties(tt,{webkitRelativePath:{writable:!1}})),H(tt)):H(null)})}));case 1:case"end":return k.stop()}},Dn)})),Ze.apply(this,arguments)},pn=function(Dn){return Ze.apply(this,arguments)},oe=function(){return oe=(0,$t.Z)((0,ct.Z)().mark(function Dn(K){var O,k,H,tt,_;return(0,ct.Z)().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:O=K.createReader(),k=[];case 2:return se.next=5,new Promise(function(Ve){O.readEntries(Ve,function(){return Ve([])})});case 5:if(H=se.sent,tt=H.length,tt){se.next=9;break}return se.abrupt("break",12);case 9:for(_=0;_<tt;_++)k.push(H[_]);se.next=2;break;case 12:return se.abrupt("return",k);case 13:case"end":return se.stop()}},Dn)})),oe.apply(this,arguments)},ce=function(Dn){return oe.apply(this,arguments)},Q=[],ie=[],Dt.forEach(function(Ln){return ie.push(Ln.webkitGetAsEntry())}),Nn=function(){var Ln=(0,$t.Z)((0,ct.Z)().mark(function Dn(K,O){var k,H;return(0,ct.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(K){_.next=2;break}return _.abrupt("return");case 2:if(K.path=O||"",!K.isFile){_.next=10;break}return _.next=6,pn(K);case 6:k=_.sent,k&&Q.push(k),_.next=15;break;case 10:if(!K.isDirectory){_.next=15;break}return _.next=13,ce(K);case 13:H=_.sent,ie.push.apply(ie,(0,Ft.Z)(H));case 15:case"end":return _.stop()}},Dn)}));return function(K,O){return Ln.apply(this,arguments)}}(),me=0;case 9:if(!(me<ie.length)){un.next=15;break}return un.next=12,Nn(ie[me]);case 12:me++,un.next=9;break;case 15:return un.abrupt("return",Q);case 16:case"end":return un.stop()}},pe)}));return function(Dt,rt){return re.apply(this,arguments)}}(),wt=q,Bt=+new Date,pt=0;function Ht(){return"rc-upload-".concat(Bt,"-").concat(++pt)}var At=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],gt=function(re){(0,V.Z)(Dt,re);var pe=(0,C.Z)(Dt);function Dt(){var rt;(0,I.Z)(this,Dt);for(var Q=arguments.length,ie=new Array(Q),ce=0;ce<Q;ce++)ie[ce]=arguments[ce];return rt=pe.call.apply(pe,[this].concat(ie)),(0,Z.Z)((0,P.Z)(rt),"state",{uid:Ht()}),(0,Z.Z)((0,P.Z)(rt),"reqs",{}),(0,Z.Z)((0,P.Z)(rt),"fileInput",void 0),(0,Z.Z)((0,P.Z)(rt),"_isMounted",void 0),(0,Z.Z)((0,P.Z)(rt),"onChange",function(oe){var pn=rt.props,Ze=pn.accept,Nn=pn.directory,me=oe.target.files,on=(0,Ft.Z)(me).filter(function(un){return!Nn||ft(un,Ze)});rt.uploadFiles(on),rt.reset()}),(0,Z.Z)((0,P.Z)(rt),"onClick",function(oe){var pn=rt.fileInput;if(pn){var Ze=oe.target,Nn=rt.props.onClick;if(Ze&&Ze.tagName==="BUTTON"){var me=pn.parentNode;me.focus(),Ze.blur()}pn.click(),Nn&&Nn(oe)}}),(0,Z.Z)((0,P.Z)(rt),"onKeyDown",function(oe){oe.key==="Enter"&&rt.onClick(oe)}),(0,Z.Z)((0,P.Z)(rt),"onFileDrop",function(){var oe=(0,$t.Z)((0,ct.Z)().mark(function pn(Ze){var Nn,me,on;return(0,ct.Z)().wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(Nn=rt.props.multiple,Ze.preventDefault(),Ze.type!=="dragover"){Ln.next=4;break}return Ln.abrupt("return");case 4:if(!rt.props.directory){Ln.next=11;break}return Ln.next=7,wt(Array.prototype.slice.call(Ze.dataTransfer.items),function(Dn){return ft(Dn,rt.props.accept)});case 7:me=Ln.sent,rt.uploadFiles(me),Ln.next=14;break;case 11:on=(0,Ft.Z)(Ze.dataTransfer.files).filter(function(Dn){return ft(Dn,rt.props.accept)}),Nn===!1&&(on=on.slice(0,1)),rt.uploadFiles(on);case 14:case"end":return Ln.stop()}},pn)}));return function(pn){return oe.apply(this,arguments)}}()),(0,Z.Z)((0,P.Z)(rt),"uploadFiles",function(oe){var pn=(0,Ft.Z)(oe),Ze=pn.map(function(Nn){return Nn.uid=Ht(),rt.processFile(Nn,pn)});Promise.all(Ze).then(function(Nn){var me=rt.props.onBatchStart;me==null||me(Nn.map(function(on){var un=on.origin,Ln=on.parsedFile;return{file:un,parsedFile:Ln}})),Nn.filter(function(on){return on.parsedFile!==null}).forEach(function(on){rt.post(on)})})}),(0,Z.Z)((0,P.Z)(rt),"processFile",function(){var oe=(0,$t.Z)((0,ct.Z)().mark(function pn(Ze,Nn){var me,on,un,Ln,Dn,K,O,k,H;return(0,ct.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(me=rt.props.beforeUpload,on=Ze,!me){_.next=14;break}return _.prev=3,_.next=6,me(Ze,Nn);case 6:on=_.sent,_.next=12;break;case 9:_.prev=9,_.t0=_.catch(3),on=!1;case 12:if(on!==!1){_.next=14;break}return _.abrupt("return",{origin:Ze,parsedFile:null,action:null,data:null});case 14:if(un=rt.props.action,typeof un!="function"){_.next=21;break}return _.next=18,un(Ze);case 18:Ln=_.sent,_.next=22;break;case 21:Ln=un;case 22:if(Dn=rt.props.data,typeof Dn!="function"){_.next=29;break}return _.next=26,Dn(Ze);case 26:K=_.sent,_.next=30;break;case 29:K=Dn;case 30:return O=((0,Mt.Z)(on)==="object"||typeof on=="string")&&on?on:Ze,O instanceof File?k=O:k=new File([O],Ze.name,{type:Ze.type}),H=k,H.uid=Ze.uid,_.abrupt("return",{origin:Ze,data:K,parsedFile:H,action:Ln});case 35:case"end":return _.stop()}},pn,null,[[3,9]])}));return function(pn,Ze){return oe.apply(this,arguments)}}()),(0,Z.Z)((0,P.Z)(rt),"saveFileInput",function(oe){rt.fileInput=oe}),rt}return(0,D.Z)(Dt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Q){var ie=this,ce=Q.data,oe=Q.origin,pn=Q.action,Ze=Q.parsedFile;if(this._isMounted){var Nn=this.props,me=Nn.onStart,on=Nn.customRequest,un=Nn.name,Ln=Nn.headers,Dn=Nn.withCredentials,K=Nn.method,O=oe.uid,k=on||st,H={action:pn,filename:un,data:ce,file:Ze,headers:Ln,withCredentials:Dn,method:K||"post",onProgress:function(_){var at=ie.props.onProgress;at==null||at(_,Ze)},onSuccess:function(_,at){var se=ie.props.onSuccess;se==null||se(_,Ze,at),delete ie.reqs[O]},onError:function(_,at){var se=ie.props.onError;se==null||se(_,at,Ze),delete ie.reqs[O]}};me(oe),this.reqs[O]=k(H)}}},{key:"reset",value:function(){this.setState({uid:Ht()})}},{key:"abort",value:function(Q){var ie=this.reqs;if(Q){var ce=Q.uid?Q.uid:Q;ie[ce]&&ie[ce].abort&&ie[ce].abort(),delete ie[ce]}else Object.keys(ie).forEach(function(oe){ie[oe]&&ie[oe].abort&&ie[oe].abort(),delete ie[oe]})}},{key:"render",value:function(){var Q=this.props,ie=Q.component,ce=Q.prefixCls,oe=Q.className,pn=Q.classNames,Ze=pn===void 0?{}:pn,Nn=Q.disabled,me=Q.id,on=Q.name,un=Q.style,Ln=Q.styles,Dn=Ln===void 0?{}:Ln,K=Q.multiple,O=Q.accept,k=Q.capture,H=Q.children,tt=Q.directory,_=Q.openFileDialogOnClick,at=Q.onMouseEnter,se=Q.onMouseLeave,Ve=Q.hasControlInside,Ke=(0,Y.Z)(Q,At),qt=Ct()((0,Z.Z)((0,Z.Z)((0,Z.Z)({},ce,!0),"".concat(ce,"-disabled"),Nn),oe,oe)),he=tt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},de=Nn?{}:{onClick:_?this.onClick:function(){},onKeyDown:_?this.onKeyDown:function(){},onMouseEnter:at,onMouseLeave:se,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Ve?void 0:"0"};return lt.createElement(ie,(0,E.Z)({},de,{className:qt,role:Ve?void 0:"button",style:un}),lt.createElement("input",(0,E.Z)({},(0,xt.Z)(Ke,{aria:!0,data:!0}),{id:me,name:on,disabled:Nn,type:"file",ref:this.saveFileInput,onClick:function($e){return $e.stopPropagation()},key:this.state.uid,style:(0,J.Z)({display:"none"},Dn.input),className:Ze.input,accept:O},he,{multiple:K,onChange:this.onChange},k!=null?{capture:k}:{})),H)}}]),Dt}(lt.Component),Pt=gt;function kt(){}var Gt=function(re){(0,V.Z)(Dt,re);var pe=(0,C.Z)(Dt);function Dt(){var rt;(0,I.Z)(this,Dt);for(var Q=arguments.length,ie=new Array(Q),ce=0;ce<Q;ce++)ie[ce]=arguments[ce];return rt=pe.call.apply(pe,[this].concat(ie)),(0,Z.Z)((0,P.Z)(rt),"uploader",void 0),(0,Z.Z)((0,P.Z)(rt),"saveUploader",function(oe){rt.uploader=oe}),rt}return(0,D.Z)(Dt,[{key:"abort",value:function(Q){this.uploader.abort(Q)}},{key:"render",value:function(){return lt.createElement(Pt,(0,E.Z)({},this.props,{ref:this.saveUploader}))}}]),Dt}(lt.Component);(0,Z.Z)(Gt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:kt,onError:kt,onSuccess:kt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var ue=Gt,le=ue},8224:function(j,S,p){"use strict";p.d(S,{Z:function(){return I}});var E=p(4676);function I(D,P,V,C){var Z=E.unstable_batchedUpdates?function(J){E.unstable_batchedUpdates(V,J)}:V;return D!=null&&D.addEventListener&&D.addEventListener(P,Z,C),{remove:function(){D!=null&&D.removeEventListener&&D.removeEventListener(P,Z,C)}}}},24514:function(j,S,p){"use strict";p.d(S,{G:function(){return P}});var E=p(47273),I=function(C){if((0,E.Z)()&&window.document.documentElement){var Z=Array.isArray(C)?C:[C],lt=window.document.documentElement;return Z.some(function(J){return J in lt.style})}return!1},D=function(C,Z){if(!I(C))return!1;var lt=document.createElement("div"),J=lt.style[C];return lt.style[C]=Z,lt.style[C]!==J};function P(V,C){return!Array.isArray(V)&&C!==void 0?D(V,C):I(V)}},6790:function(j,S,p){"use strict";p.d(S,{Z:function(){return Dn}});var E=p(67711),I=p(26420),D=p(98506),P=p(52873),V=p(16886),C=p(33346),Z=p(92310),lt=p.n(Z),J=p(29301),Y=p(70425),Mt=p(34280),ct=p(59301),$t=p(4676),Ft=ct.forwardRef(function(K,O){var k=K.height,H=K.offsetY,tt=K.offsetX,_=K.children,at=K.prefixCls,se=K.onInnerResize,Ve=K.innerProps,Ke=K.rtl,qt=K.extra,he={},de={display:"flex",flexDirection:"column"};return H!==void 0&&(he={height:k,position:"relative",overflow:"hidden"},de=(0,D.Z)((0,D.Z)({},de),{},(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({transform:"translateY(".concat(H,"px)")},Ke?"marginRight":"marginLeft",-tt),"position","absolute"),"left",0),"right",0),"top",0))),ct.createElement("div",{style:he},ct.createElement(J.Z,{onResize:function($e){var Ee=$e.offsetHeight;Ee&&se&&se()}},ct.createElement("div",(0,E.Z)({style:de,className:lt()((0,P.Z)({},"".concat(at,"-holder-inner"),at)),ref:O},Ve),_,qt)))});Ft.displayName="Filler";var _t=Ft;function Ct(K){var O=K.children,k=K.setRef,H=ct.useCallback(function(tt){k(tt)},[]);return ct.cloneElement(O,{ref:H})}function xt(K,O,k,H,tt,_,at,se){var Ve=se.getKey;return K.slice(O,k+1).map(function(Ke,qt){var he=O+qt,de=at(Ke,he,{style:{width:H},offsetX:tt}),Fe=Ve(Ke);return ct.createElement(Ct,{key:Fe,setRef:function(Ee){return _(Ke,Ee)}},de)})}function St(K,O,k,H){var tt=k-K,_=O-k,at=Math.min(tt,_)*2;if(H<=at){var se=Math.floor(H/2);return H%2?k+se+1:k-se}return tt>_?k-(H-_):k+(H-tt)}function ft(K,O,k){var H=K.length,tt=O.length,_,at;if(H===0&&tt===0)return null;H<tt?(_=K,at=O):(_=O,at=K);var se={__EMPTY_ITEM__:!0};function Ve($e){return $e!==void 0?k($e):se}for(var Ke=null,qt=Math.abs(H-tt)!==1,he=0;he<at.length;he+=1){var de=Ve(_[he]),Fe=Ve(at[he]);if(de!==Fe){Ke=he,qt=qt||de!==Ve(at[he+1]);break}}return Ke===null?null:{index:Ke,multiple:qt}}function vt(K,O,k){var H=ct.useState(K),tt=(0,V.Z)(H,2),_=tt[0],at=tt[1],se=ct.useState(null),Ve=(0,V.Z)(se,2),Ke=Ve[0],qt=Ve[1];return ct.useEffect(function(){var he=ft(_||[],K||[],O);(he==null?void 0:he.index)!==void 0&&(k==null||k(he.index),qt(K[he.index])),at(K)},[K]),[Ke]}var ot=p(16089),st=(typeof navigator=="undefined"?"undefined":(0,I.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),q=st,wt=function(K,O,k,H){var tt=(0,ct.useRef)(!1),_=(0,ct.useRef)(null);function at(){clearTimeout(_.current),tt.current=!0,_.current=setTimeout(function(){tt.current=!1},50)}var se=(0,ct.useRef)({top:K,bottom:O,left:k,right:H});return se.current.top=K,se.current.bottom=O,se.current.left=k,se.current.right=H,function(Ve,Ke){var qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,he=Ve?Ke<0&&se.current.left||Ke>0&&se.current.right:Ke<0&&se.current.top||Ke>0&&se.current.bottom;return qt&&he?(clearTimeout(_.current),tt.current=!1):(!he||tt.current)&&at(),!tt.current&&he}};function Bt(K,O,k,H,tt,_,at){var se=(0,ct.useRef)(0),Ve=(0,ct.useRef)(null),Ke=(0,ct.useRef)(null),qt=(0,ct.useRef)(!1),he=wt(O,k,H,tt);function de(Ge,Ie){if(ot.Z.cancel(Ve.current),!he(!1,Ie)){var ze=Ge;if(!ze._virtualHandled)ze._virtualHandled=!0;else return;se.current+=Ie,Ke.current=Ie,q||ze.preventDefault(),Ve.current=(0,ot.Z)(function(){var Cn=qt.current?10:1;at(se.current*Cn,!1),se.current=0})}}function Fe(Ge,Ie){at(Ie,!0),q||Ge.preventDefault()}var $e=(0,ct.useRef)(null),Ee=(0,ct.useRef)(null);function zt(Ge){if(K){ot.Z.cancel(Ee.current),Ee.current=(0,ot.Z)(function(){$e.current=null},2);var Ie=Ge.deltaX,ze=Ge.deltaY,Cn=Ge.shiftKey,je=Ie,bt=ze;($e.current==="sx"||!$e.current&&Cn&&ze&&!Ie)&&(je=ze,bt=0,$e.current="sx");var hn=Math.abs(je),Sn=Math.abs(bt);$e.current===null&&($e.current=_&&hn>Sn?"x":"y"),$e.current==="y"?de(Ge,bt):Fe(Ge,je)}}function Be(Ge){K&&(qt.current=Ge.detail===Ke.current)}return[zt,Be]}function pt(K,O,k,H){var tt=ct.useMemo(function(){return[new Map,[]]},[K,k.id,H]),_=(0,V.Z)(tt,2),at=_[0],se=_[1],Ve=function(qt){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qt,de=at.get(qt),Fe=at.get(he);if(de===void 0||Fe===void 0)for(var $e=K.length,Ee=se.length;Ee<$e;Ee+=1){var zt,Be=K[Ee],Ge=O(Be);at.set(Ge,Ee);var Ie=(zt=k.get(Ge))!==null&&zt!==void 0?zt:H;if(se[Ee]=(se[Ee-1]||0)+Ie,Ge===qt&&(de=Ee),Ge===he&&(Fe=Ee),de!==void 0&&Fe!==void 0)break}return{top:se[de-1]||0,bottom:se[Fe]}};return Ve}var Ht=p(42573),At=p(58698),gt=function(){function K(){(0,Ht.Z)(this,K),(0,P.Z)(this,"maps",void 0),(0,P.Z)(this,"id",0),(0,P.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,At.Z)(K,[{key:"set",value:function(k,H){this.diffRecords.set(k,this.maps[k]),this.maps[k]=H,this.id+=1}},{key:"get",value:function(k){return this.maps[k]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),K}(),Pt=gt;function kt(K){var O=parseFloat(K);return isNaN(O)?0:O}function Gt(K,O,k){var H=ct.useState(0),tt=(0,V.Z)(H,2),_=tt[0],at=tt[1],se=(0,ct.useRef)(new Map),Ve=(0,ct.useRef)(new Pt),Ke=(0,ct.useRef)(0);function qt(){Ke.current+=1}function he(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;qt();var $e=function(){var Be=!1;se.current.forEach(function(Ge,Ie){if(Ge&&Ge.offsetParent){var ze=Ge.offsetHeight,Cn=getComputedStyle(Ge),je=Cn.marginTop,bt=Cn.marginBottom,hn=kt(je),Sn=kt(bt),Jt=ze+hn+Sn;Ve.current.get(Ie)!==Jt&&(Ve.current.set(Ie,Jt),Be=!0)}}),Be&&at(function(Ge){return Ge+1})};if(Fe)$e();else{Ke.current+=1;var Ee=Ke.current;Promise.resolve().then(function(){Ee===Ke.current&&$e()})}}function de(Fe,$e){var Ee=K(Fe),zt=se.current.get(Ee);$e?(se.current.set(Ee,$e),he()):se.current.delete(Ee),!zt!=!$e&&($e?O==null||O(Fe):k==null||k(Fe))}return(0,ct.useEffect)(function(){return qt},[]),[de,he,Ve.current,_]}var ue=14/15;function le(K,O,k){var H=(0,ct.useRef)(!1),tt=(0,ct.useRef)(0),_=(0,ct.useRef)(0),at=(0,ct.useRef)(null),se=(0,ct.useRef)(null),Ve,Ke=function(Fe){if(H.current){var $e=Math.ceil(Fe.touches[0].pageX),Ee=Math.ceil(Fe.touches[0].pageY),zt=tt.current-$e,Be=_.current-Ee,Ge=Math.abs(zt)>Math.abs(Be);Ge?tt.current=$e:_.current=Ee;var Ie=k(Ge,Ge?zt:Be,!1,Fe);Ie&&Fe.preventDefault(),clearInterval(se.current),Ie&&(se.current=setInterval(function(){Ge?zt*=ue:Be*=ue;var ze=Math.floor(Ge?zt:Be);(!k(Ge,ze,!0)||Math.abs(ze)<=.1)&&clearInterval(se.current)},16))}},qt=function(){H.current=!1,Ve()},he=function(Fe){Ve(),Fe.touches.length===1&&!H.current&&(H.current=!0,tt.current=Math.ceil(Fe.touches[0].pageX),_.current=Math.ceil(Fe.touches[0].pageY),at.current=Fe.target,at.current.addEventListener("touchmove",Ke,{passive:!1}),at.current.addEventListener("touchend",qt,{passive:!0}))};Ve=function(){at.current&&(at.current.removeEventListener("touchmove",Ke),at.current.removeEventListener("touchend",qt))},(0,Mt.Z)(function(){return K&&O.current.addEventListener("touchstart",he,{passive:!0}),function(){var de;(de=O.current)===null||de===void 0||de.removeEventListener("touchstart",he),Ve(),clearInterval(se.current)}},[K])}function re(K){return Math.floor(Math.pow(K,.5))}function pe(K,O){var k="touches"in K?K.touches[0]:K;return k[O?"pageX":"pageY"]-window[O?"scrollX":"scrollY"]}function Dt(K,O,k){ct.useEffect(function(){var H=O.current;if(K&&H){var tt=!1,_,at,se=function(){ot.Z.cancel(_)},Ve=function de(){se(),_=(0,ot.Z)(function(){k(at),de()})},Ke=function(Fe){if(!(Fe.target.draggable||Fe.button!==0)){var $e=Fe;$e._virtualHandled||($e._virtualHandled=!0,tt=!0)}},qt=function(){tt=!1,se()},he=function(Fe){if(tt){var $e=pe(Fe,!1),Ee=H.getBoundingClientRect(),zt=Ee.top,Be=Ee.bottom;if($e<=zt){var Ge=zt-$e;at=-re(Ge),Ve()}else if($e>=Be){var Ie=$e-Be;at=re(Ie),Ve()}else se()}};return H.addEventListener("mousedown",Ke),H.ownerDocument.addEventListener("mouseup",qt),H.ownerDocument.addEventListener("mousemove",he),function(){H.removeEventListener("mousedown",Ke),H.ownerDocument.removeEventListener("mouseup",qt),H.ownerDocument.removeEventListener("mousemove",he),se()}}},[K])}var rt=10;function Q(K,O,k,H,tt,_,at,se){var Ve=ct.useRef(),Ke=ct.useState(null),qt=(0,V.Z)(Ke,2),he=qt[0],de=qt[1];return(0,Mt.Z)(function(){if(he&&he.times<rt){if(!K.current){de(function(Ei){return(0,D.Z)({},Ei)});return}_();var Fe=he.targetAlign,$e=he.originAlign,Ee=he.index,zt=he.offset,Be=K.current.clientHeight,Ge=!1,Ie=Fe,ze=null;if(Be){for(var Cn=Fe||$e,je=0,bt=0,hn=0,Sn=Math.min(O.length-1,Ee),Jt=0;Jt<=Sn;Jt+=1){var Hn=tt(O[Jt]);bt=je;var ri=k.get(Hn);hn=bt+(ri===void 0?H:ri),je=hn}for(var Qn=Cn==="top"?zt:Be-zt,we=Sn;we>=0;we-=1){var wi=tt(O[we]),xi=k.get(wi);if(xi===void 0){Ge=!0;break}if(Qn-=xi,Qn<=0)break}switch(Cn){case"top":ze=bt-zt;break;case"bottom":ze=hn-Be+zt;break;default:{var Bn=K.current.scrollTop,Kn=Bn+Be;bt<Bn?Ie="top":hn>Kn&&(Ie="bottom")}}ze!==null&&at(ze),ze!==he.lastTop&&(Ge=!0)}Ge&&de((0,D.Z)((0,D.Z)({},he),{},{times:he.times+1,targetAlign:Ie,lastTop:ze}))}},[he,K.current]),function(Fe){if(Fe==null){se();return}if(ot.Z.cancel(Ve.current),typeof Fe=="number")at(Fe);else if(Fe&&(0,I.Z)(Fe)==="object"){var $e,Ee=Fe.align;"index"in Fe?$e=Fe.index:$e=O.findIndex(function(Ge){return tt(Ge)===Fe.key});var zt=Fe.offset,Be=zt===void 0?0:zt;de({times:0,index:$e,offset:Be,originAlign:Ee})}}}var ie=ct.forwardRef(function(K,O){var k=K.prefixCls,H=K.rtl,tt=K.scrollOffset,_=K.scrollRange,at=K.onStartMove,se=K.onStopMove,Ve=K.onScroll,Ke=K.horizontal,qt=K.spinSize,he=K.containerSize,de=K.style,Fe=K.thumbStyle,$e=K.showScrollBar,Ee=ct.useState(!1),zt=(0,V.Z)(Ee,2),Be=zt[0],Ge=zt[1],Ie=ct.useState(null),ze=(0,V.Z)(Ie,2),Cn=ze[0],je=ze[1],bt=ct.useState(null),hn=(0,V.Z)(bt,2),Sn=hn[0],Jt=hn[1],Hn=!H,ri=ct.useRef(),Qn=ct.useRef(),we=ct.useState($e),wi=(0,V.Z)(we,2),xi=wi[0],Bn=wi[1],Kn=ct.useRef(),Ei=function(){$e===!0||$e===!1||(clearTimeout(Kn.current),Bn(!0),Kn.current=setTimeout(function(){Bn(!1)},3e3))},A=_-he||0,Pn=he-qt||0,gn=ct.useMemo(function(){if(tt===0||A===0)return 0;var Mn=tt/A;return Mn*Pn},[tt,A,Pn]),$n=function(fr){fr.stopPropagation(),fr.preventDefault()},Fi=ct.useRef({top:gn,dragging:Be,pageY:Cn,startTop:Sn});Fi.current={top:gn,dragging:Be,pageY:Cn,startTop:Sn};var Ki=function(fr){Ge(!0),je(pe(fr,Ke)),Jt(Fi.current.top),at(),fr.stopPropagation(),fr.preventDefault()};ct.useEffect(function(){var Mn=function(sn){sn.preventDefault()},fr=ri.current,Li=Qn.current;return fr.addEventListener("touchstart",Mn,{passive:!1}),Li.addEventListener("touchstart",Ki,{passive:!1}),function(){fr.removeEventListener("touchstart",Mn),Li.removeEventListener("touchstart",Ki)}},[]);var pi=ct.useRef();pi.current=A;var so=ct.useRef();so.current=Pn,ct.useEffect(function(){if(Be){var Mn,fr=function(sn){var zn=Fi.current,Wi=zn.dragging,Ur=zn.pageY,Nr=zn.startTop;ot.Z.cancel(Mn);var Et=ri.current.getBoundingClientRect(),Wt=he/(Ke?Et.width:Et.height);if(Wi){var rn=(pe(sn,Ke)-Ur)*Wt,cn=Nr;!Hn&&Ke?cn-=rn:cn+=rn;var Ut=pi.current,Ye=so.current,kn=Ye?cn/Ye:0,te=Math.ceil(kn*Ut);te=Math.max(te,0),te=Math.min(te,Ut),Mn=(0,ot.Z)(function(){Ve(te,Ke)})}},Li=function(){Ge(!1),se()};return window.addEventListener("mousemove",fr,{passive:!0}),window.addEventListener("touchmove",fr,{passive:!0}),window.addEventListener("mouseup",Li,{passive:!0}),window.addEventListener("touchend",Li,{passive:!0}),function(){window.removeEventListener("mousemove",fr),window.removeEventListener("touchmove",fr),window.removeEventListener("mouseup",Li),window.removeEventListener("touchend",Li),ot.Z.cancel(Mn)}}},[Be]),ct.useEffect(function(){return Ei(),function(){clearTimeout(Kn.current)}},[tt]),ct.useImperativeHandle(O,function(){return{delayHidden:Ei}});var Zi="".concat(k,"-scrollbar"),or={position:"absolute",visibility:xi?null:"hidden"},Yn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ke?(Object.assign(or,{height:8,left:0,right:0,bottom:0}),Object.assign(Yn,(0,P.Z)({height:"100%",width:qt},Hn?"left":"right",gn))):(Object.assign(or,(0,P.Z)({width:8,top:0,bottom:0},Hn?"right":"left",0)),Object.assign(Yn,{width:"100%",height:qt,top:gn})),ct.createElement("div",{ref:ri,className:lt()(Zi,(0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(Zi,"-horizontal"),Ke),"".concat(Zi,"-vertical"),!Ke),"".concat(Zi,"-visible"),xi)),style:(0,D.Z)((0,D.Z)({},or),de),onMouseDown:$n,onMouseMove:Ei},ct.createElement("div",{ref:Qn,className:lt()("".concat(Zi,"-thumb"),(0,P.Z)({},"".concat(Zi,"-thumb-moving"),Be)),style:(0,D.Z)((0,D.Z)({},Yn),Fe),onMouseDown:Ki}))}),ce=ie,oe=20;function pn(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=K/O*K;return isNaN(k)&&(k=0),k=Math.max(k,oe),Math.floor(k)}var Ze=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Nn=[],me={overflowY:"auto",overflowAnchor:"none"};function on(K,O){var k=K.prefixCls,H=k===void 0?"rc-virtual-list":k,tt=K.className,_=K.height,at=K.itemHeight,se=K.fullHeight,Ve=se===void 0?!0:se,Ke=K.style,qt=K.data,he=K.children,de=K.itemKey,Fe=K.virtual,$e=K.direction,Ee=K.scrollWidth,zt=K.component,Be=zt===void 0?"div":zt,Ge=K.onScroll,Ie=K.onVirtualScroll,ze=K.onVisibleChange,Cn=K.innerProps,je=K.extraRender,bt=K.styles,hn=K.showScrollBar,Sn=hn===void 0?"optional":hn,Jt=(0,C.Z)(K,Ze),Hn=ct.useCallback(function(ke){return typeof de=="function"?de(ke):ke==null?void 0:ke[de]},[de]),ri=Gt(Hn,null,null),Qn=(0,V.Z)(ri,4),we=Qn[0],wi=Qn[1],xi=Qn[2],Bn=Qn[3],Kn=!!(Fe!==!1&&_&&at),Ei=ct.useMemo(function(){return Object.values(xi.maps).reduce(function(ke,qe){return ke+qe},0)},[xi.id,xi.maps]),A=Kn&&qt&&(Math.max(at*qt.length,Ei)>_||!!Ee),Pn=$e==="rtl",gn=lt()(H,(0,P.Z)({},"".concat(H,"-rtl"),Pn),tt),$n=qt||Nn,Fi=(0,ct.useRef)(),Ki=(0,ct.useRef)(),pi=(0,ct.useRef)(),so=(0,ct.useState)(0),Zi=(0,V.Z)(so,2),or=Zi[0],Yn=Zi[1],Mn=(0,ct.useState)(0),fr=(0,V.Z)(Mn,2),Li=fr[0],Xi=fr[1],sn=(0,ct.useState)(!1),zn=(0,V.Z)(sn,2),Wi=zn[0],Ur=zn[1],Nr=function(){Ur(!0)},Et=function(){Ur(!1)},Wt={getKey:Hn};function rn(ke){Yn(function(qe){var en;typeof ke=="function"?en=ke(qe):en=ke;var He=nr(en);return Fi.current.scrollTop=He,He})}var cn=(0,ct.useRef)({start:0,end:$n.length}),Ut=(0,ct.useRef)(),Ye=vt($n,Hn),kn=(0,V.Z)(Ye,1),te=kn[0];Ut.current=te;var R=ct.useMemo(function(){if(!Kn)return{scrollHeight:void 0,start:0,end:$n.length-1,offset:void 0};if(!A){var ke;return{scrollHeight:((ke=Ki.current)===null||ke===void 0?void 0:ke.offsetHeight)||0,start:0,end:$n.length-1,offset:void 0}}for(var qe=0,en,He,nn,_n=$n.length,ci=0;ci<_n;ci+=1){var si=$n[ci],Je=Hn(si),Ui=xi.get(Je),Ti=qe+(Ui===void 0?at:Ui);Ti>=or&&en===void 0&&(en=ci,He=qe),Ti>or+_&&nn===void 0&&(nn=ci),qe=Ti}return en===void 0&&(en=0,He=0,nn=Math.ceil(_/at)),nn===void 0&&(nn=$n.length-1),nn=Math.min(nn+1,$n.length-1),{scrollHeight:qe,start:en,end:nn,offset:He}},[A,Kn,or,$n,Bn,_]),bn=R.scrollHeight,En=R.start,ve=R.end,li=R.offset;cn.current.start=En,cn.current.end=ve,ct.useLayoutEffect(function(){var ke=xi.getRecord();if(ke.size===1){var qe=Array.from(ke.keys())[0],en=ke.get(qe),He=$n[En];if(He&&en===void 0){var nn=Hn(He);if(nn===qe){var _n=xi.get(qe),ci=_n-at;rn(function(si){return si+ci})}}}xi.resetRecord()},[bn]);var Wn=ct.useState({width:0,height:_}),ni=(0,V.Z)(Wn,2),yn=ni[0],jt=ni[1],ui=function(qe){jt({width:qe.offsetWidth,height:qe.offsetHeight})},Ir=(0,ct.useRef)(),xe=(0,ct.useRef)(),xr=ct.useMemo(function(){return pn(yn.width,Ee)},[yn.width,Ee]),Lr=ct.useMemo(function(){return pn(yn.height,bn)},[yn.height,bn]),Ai=bn-_,Rr=(0,ct.useRef)(Ai);Rr.current=Ai;function nr(ke){var qe=ke;return Number.isNaN(Rr.current)||(qe=Math.min(qe,Rr.current)),qe=Math.max(qe,0),qe}var sr=or<=0,ji=or>=Ai,qi=Li<=0,ir=Li>=Ee,Te=wt(sr,ji,qi,ir),cr=function(){return{x:Pn?-Li:Li,y:or}},Ce=(0,ct.useRef)(cr()),Gn=(0,Y.zX)(function(ke){if(Ie){var qe=(0,D.Z)((0,D.Z)({},cr()),ke);(Ce.current.x!==qe.x||Ce.current.y!==qe.y)&&(Ie(qe),Ce.current=qe)}});function Ri(ke,qe){var en=ke;qe?((0,$t.flushSync)(function(){Xi(en)}),Gn()):rn(en)}function gi(ke){var qe=ke.currentTarget.scrollTop;qe!==or&&rn(qe),Ge==null||Ge(ke),Gn()}var pr=function(qe){var en=qe,He=Ee?Ee-yn.width:0;return en=Math.max(en,0),en=Math.min(en,He),en},Bi=(0,Y.zX)(function(ke,qe){qe?((0,$t.flushSync)(function(){Xi(function(en){var He=en+(Pn?-ke:ke);return pr(He)})}),Gn()):rn(function(en){var He=en+ke;return He})}),Si=Bt(Kn,sr,ji,qi,ir,!!Ee,Bi),Hr=(0,V.Z)(Si,2),Qt=Hr[0],Le=Hr[1];le(Kn,Fi,function(ke,qe,en,He){var nn=He;return Te(ke,qe,en)?!1:!nn||!nn._virtualHandled?(nn&&(nn._virtualHandled=!0),Qt({preventDefault:function(){},deltaX:ke?qe:0,deltaY:ke?0:qe}),!0):!1}),Dt(A,Fi,function(ke){rn(function(qe){return qe+ke})}),(0,Mt.Z)(function(){function ke(en){var He=sr&&en.detail<0,nn=ji&&en.detail>0;Kn&&!He&&!nn&&en.preventDefault()}var qe=Fi.current;return qe.addEventListener("wheel",Qt,{passive:!1}),qe.addEventListener("DOMMouseScroll",Le,{passive:!0}),qe.addEventListener("MozMousePixelScroll",ke,{passive:!1}),function(){qe.removeEventListener("wheel",Qt),qe.removeEventListener("DOMMouseScroll",Le),qe.removeEventListener("MozMousePixelScroll",ke)}},[Kn,sr,ji]),(0,Mt.Z)(function(){if(Ee){var ke=pr(Li);Xi(ke),Gn({x:ke})}},[yn.width,Ee]);var Zt=function(){var qe,en;(qe=Ir.current)===null||qe===void 0||qe.delayHidden(),(en=xe.current)===null||en===void 0||en.delayHidden()},z=Q(Fi,$n,xi,at,Hn,function(){return wi(!0)},rn,Zt);ct.useImperativeHandle(O,function(){return{nativeElement:pi.current,getScrollInfo:cr,scrollTo:function(qe){function en(He){return He&&(0,I.Z)(He)==="object"&&("left"in He||"top"in He)}en(qe)?(qe.left!==void 0&&Xi(pr(qe.left)),z(qe.top)):z(qe)}}}),(0,Mt.Z)(function(){if(ze){var ke=$n.slice(En,ve+1);ze(ke,$n)}},[En,ve,$n]);var Xe=pt($n,Hn,xi,at),an=je==null?void 0:je({start:En,end:ve,virtual:A,offsetX:Li,offsetY:li,rtl:Pn,getSize:Xe}),On=xt($n,En,ve,Ee,Li,we,he,Wt),An=null;_&&(An=(0,D.Z)((0,P.Z)({},Ve?"height":"maxHeight",_),me),Kn&&(An.overflowY="hidden",Ee&&(An.overflowX="hidden"),Wi&&(An.pointerEvents="none")));var mn={};return Pn&&(mn.dir="rtl"),ct.createElement("div",(0,E.Z)({ref:pi,style:(0,D.Z)((0,D.Z)({},Ke),{},{position:"relative"}),className:gn},mn,Jt),ct.createElement(J.Z,{onResize:ui},ct.createElement(Be,{className:"".concat(H,"-holder"),style:An,ref:Fi,onScroll:gi,onMouseEnter:Zt},ct.createElement(_t,{prefixCls:H,height:bn,offsetX:Li,offsetY:li,scrollWidth:Ee,onInnerResize:wi,ref:Ki,innerProps:Cn,rtl:Pn,extra:an},On))),A&&bn>_&&ct.createElement(ce,{ref:Ir,prefixCls:H,scrollOffset:or,scrollRange:bn,rtl:Pn,onScroll:Ri,onStartMove:Nr,onStopMove:Et,spinSize:Lr,containerSize:yn.height,style:bt==null?void 0:bt.verticalScrollBar,thumbStyle:bt==null?void 0:bt.verticalScrollBarThumb,showScrollBar:Sn}),A&&Ee>yn.width&&ct.createElement(ce,{ref:xe,prefixCls:H,scrollOffset:Li,scrollRange:Ee,rtl:Pn,onScroll:Ri,onStartMove:Nr,onStopMove:Et,spinSize:xr,containerSize:yn.width,horizontal:!0,style:bt==null?void 0:bt.horizontalScrollBar,thumbStyle:bt==null?void 0:bt.horizontalScrollBarThumb,showScrollBar:Sn}))}var un=ct.forwardRef(on);un.displayName="List";var Ln=un,Dn=Ln},77596:function(j,S,p){"use strict";p.d(S,{Z:function(){return rt}});var E=p(33346),I=p(15142),D=p(52873),P=p(59301),V=p(67711);function C(Q,ie){var ce=Object.keys(Q);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(Q);ie&&(oe=oe.filter(function(pn){return Object.getOwnPropertyDescriptor(Q,pn).enumerable})),ce.push.apply(ce,oe)}return ce}function Z(Q){for(var ie=1;ie<arguments.length;ie++){var ce=arguments[ie]!=null?arguments[ie]:{};ie%2?C(Object(ce),!0).forEach(function(oe){(0,D.Z)(Q,oe,ce[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(ce)):C(Object(ce)).forEach(function(oe){Object.defineProperty(Q,oe,Object.getOwnPropertyDescriptor(ce,oe))})}return Q}function lt(Q){var ie=Q.length;if(ie===0||ie===1)return Q;if(ie===2)return[Q[0],Q[1],"".concat(Q[0],".").concat(Q[1]),"".concat(Q[1],".").concat(Q[0])];if(ie===3)return[Q[0],Q[1],Q[2],"".concat(Q[0],".").concat(Q[1]),"".concat(Q[0],".").concat(Q[2]),"".concat(Q[1],".").concat(Q[0]),"".concat(Q[1],".").concat(Q[2]),"".concat(Q[2],".").concat(Q[0]),"".concat(Q[2],".").concat(Q[1]),"".concat(Q[0],".").concat(Q[1],".").concat(Q[2]),"".concat(Q[0],".").concat(Q[2],".").concat(Q[1]),"".concat(Q[1],".").concat(Q[0],".").concat(Q[2]),"".concat(Q[1],".").concat(Q[2],".").concat(Q[0]),"".concat(Q[2],".").concat(Q[0],".").concat(Q[1]),"".concat(Q[2],".").concat(Q[1],".").concat(Q[0])];if(ie>=4)return[Q[0],Q[1],Q[2],Q[3],"".concat(Q[0],".").concat(Q[1]),"".concat(Q[0],".").concat(Q[2]),"".concat(Q[0],".").concat(Q[3]),"".concat(Q[1],".").concat(Q[0]),"".concat(Q[1],".").concat(Q[2]),"".concat(Q[1],".").concat(Q[3]),"".concat(Q[2],".").concat(Q[0]),"".concat(Q[2],".").concat(Q[1]),"".concat(Q[2],".").concat(Q[3]),"".concat(Q[3],".").concat(Q[0]),"".concat(Q[3],".").concat(Q[1]),"".concat(Q[3],".").concat(Q[2]),"".concat(Q[0],".").concat(Q[1],".").concat(Q[2]),"".concat(Q[0],".").concat(Q[1],".").concat(Q[3]),"".concat(Q[0],".").concat(Q[2],".").concat(Q[1]),"".concat(Q[0],".").concat(Q[2],".").concat(Q[3]),"".concat(Q[0],".").concat(Q[3],".").concat(Q[1]),"".concat(Q[0],".").concat(Q[3],".").concat(Q[2]),"".concat(Q[1],".").concat(Q[0],".").concat(Q[2]),"".concat(Q[1],".").concat(Q[0],".").concat(Q[3]),"".concat(Q[1],".").concat(Q[2],".").concat(Q[0]),"".concat(Q[1],".").concat(Q[2],".").concat(Q[3]),"".concat(Q[1],".").concat(Q[3],".").concat(Q[0]),"".concat(Q[1],".").concat(Q[3],".").concat(Q[2]),"".concat(Q[2],".").concat(Q[0],".").concat(Q[1]),"".concat(Q[2],".").concat(Q[0],".").concat(Q[3]),"".concat(Q[2],".").concat(Q[1],".").concat(Q[0]),"".concat(Q[2],".").concat(Q[1],".").concat(Q[3]),"".concat(Q[2],".").concat(Q[3],".").concat(Q[0]),"".concat(Q[2],".").concat(Q[3],".").concat(Q[1]),"".concat(Q[3],".").concat(Q[0],".").concat(Q[1]),"".concat(Q[3],".").concat(Q[0],".").concat(Q[2]),"".concat(Q[3],".").concat(Q[1],".").concat(Q[0]),"".concat(Q[3],".").concat(Q[1],".").concat(Q[2]),"".concat(Q[3],".").concat(Q[2],".").concat(Q[0]),"".concat(Q[3],".").concat(Q[2],".").concat(Q[1]),"".concat(Q[0],".").concat(Q[1],".").concat(Q[2],".").concat(Q[3]),"".concat(Q[0],".").concat(Q[1],".").concat(Q[3],".").concat(Q[2]),"".concat(Q[0],".").concat(Q[2],".").concat(Q[1],".").concat(Q[3]),"".concat(Q[0],".").concat(Q[2],".").concat(Q[3],".").concat(Q[1]),"".concat(Q[0],".").concat(Q[3],".").concat(Q[1],".").concat(Q[2]),"".concat(Q[0],".").concat(Q[3],".").concat(Q[2],".").concat(Q[1]),"".concat(Q[1],".").concat(Q[0],".").concat(Q[2],".").concat(Q[3]),"".concat(Q[1],".").concat(Q[0],".").concat(Q[3],".").concat(Q[2]),"".concat(Q[1],".").concat(Q[2],".").concat(Q[0],".").concat(Q[3]),"".concat(Q[1],".").concat(Q[2],".").concat(Q[3],".").concat(Q[0]),"".concat(Q[1],".").concat(Q[3],".").concat(Q[0],".").concat(Q[2]),"".concat(Q[1],".").concat(Q[3],".").concat(Q[2],".").concat(Q[0]),"".concat(Q[2],".").concat(Q[0],".").concat(Q[1],".").concat(Q[3]),"".concat(Q[2],".").concat(Q[0],".").concat(Q[3],".").concat(Q[1]),"".concat(Q[2],".").concat(Q[1],".").concat(Q[0],".").concat(Q[3]),"".concat(Q[2],".").concat(Q[1],".").concat(Q[3],".").concat(Q[0]),"".concat(Q[2],".").concat(Q[3],".").concat(Q[0],".").concat(Q[1]),"".concat(Q[2],".").concat(Q[3],".").concat(Q[1],".").concat(Q[0]),"".concat(Q[3],".").concat(Q[0],".").concat(Q[1],".").concat(Q[2]),"".concat(Q[3],".").concat(Q[0],".").concat(Q[2],".").concat(Q[1]),"".concat(Q[3],".").concat(Q[1],".").concat(Q[0],".").concat(Q[2]),"".concat(Q[3],".").concat(Q[1],".").concat(Q[2],".").concat(Q[0]),"".concat(Q[3],".").concat(Q[2],".").concat(Q[0],".").concat(Q[1]),"".concat(Q[3],".").concat(Q[2],".").concat(Q[1],".").concat(Q[0])]}var J={};function Y(Q){if(Q.length===0||Q.length===1)return Q;var ie=Q.join(".");return J[ie]||(J[ie]=lt(Q)),J[ie]}function Mt(Q){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=arguments.length>2?arguments[2]:void 0,oe=Q.filter(function(Ze){return Ze!=="token"}),pn=Y(oe);return pn.reduce(function(Ze,Nn){return Z(Z({},Ze),ce[Nn])},ie)}function ct(Q){return Q.join(" ")}function $t(Q,ie){var ce=0;return function(oe){return ce+=1,oe.map(function(pn,Ze){return Ft({node:pn,stylesheet:Q,useInlineStyles:ie,key:"code-segment-".concat(ce,"-").concat(Ze)})})}}function Ft(Q){var ie=Q.node,ce=Q.stylesheet,oe=Q.style,pn=oe===void 0?{}:oe,Ze=Q.useInlineStyles,Nn=Q.key,me=ie.properties,on=ie.type,un=ie.tagName,Ln=ie.value;if(on==="text")return Ln;if(un){var Dn=$t(ce,Ze),K;if(!Ze)K=Z(Z({},me),{},{className:ct(me.className)});else{var O=Object.keys(ce).reduce(function(_,at){return at.split(".").forEach(function(se){_.includes(se)||_.push(se)}),_},[]),k=me.className&&me.className.includes("token")?["token"]:[],H=me.className&&k.concat(me.className.filter(function(_){return!O.includes(_)}));K=Z(Z({},me),{},{className:ct(H)||void 0,style:Mt(me.className,Object.assign({},me.style,pn),ce)})}var tt=Dn(ie.children);return P.createElement(un,(0,V.Z)({key:Nn},K),tt)}}var _t=function(Q,ie){var ce=Q.listLanguages();return ce.indexOf(ie)!==-1},Ct=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function xt(Q,ie){var ce=Object.keys(Q);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(Q);ie&&(oe=oe.filter(function(pn){return Object.getOwnPropertyDescriptor(Q,pn).enumerable})),ce.push.apply(ce,oe)}return ce}function St(Q){for(var ie=1;ie<arguments.length;ie++){var ce=arguments[ie]!=null?arguments[ie]:{};ie%2?xt(Object(ce),!0).forEach(function(oe){(0,D.Z)(Q,oe,ce[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(ce)):xt(Object(ce)).forEach(function(oe){Object.defineProperty(Q,oe,Object.getOwnPropertyDescriptor(ce,oe))})}return Q}var ft=/\n/g;function vt(Q){return Q.match(ft)}function ot(Q){var ie=Q.lines,ce=Q.startingLineNumber,oe=Q.style;return ie.map(function(pn,Ze){var Nn=Ze+ce;return P.createElement("span",{key:"line-".concat(Ze),className:"react-syntax-highlighter-line-number",style:typeof oe=="function"?oe(Nn):oe},"".concat(Nn,`
|
|
|
`))})}function st(Q){var ie=Q.codeString,ce=Q.codeStyle,oe=Q.containerStyle,pn=oe===void 0?{float:"left",paddingRight:"10px"}:oe,Ze=Q.numberStyle,Nn=Ze===void 0?{}:Ze,me=Q.startingLineNumber;return P.createElement("code",{style:Object.assign({},ce,pn)},ot({lines:ie.replace(/\n$/,"").split(`
|
|
|
`),style:Nn,startingLineNumber:me}))}function q(Q){return"".concat(Q.toString().length,".25em")}function wt(Q,ie){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(Q),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:ie},children:[{type:"text",value:Q}]}}function Bt(Q,ie,ce){var oe={display:"inline-block",minWidth:q(ce),paddingRight:"1em",textAlign:"right",userSelect:"none"},pn=typeof Q=="function"?Q(ie):Q,Ze=St(St({},oe),pn);return Ze}function pt(Q){var ie=Q.children,ce=Q.lineNumber,oe=Q.lineNumberStyle,pn=Q.largestLineNumber,Ze=Q.showInlineLineNumbers,Nn=Q.lineProps,me=Nn===void 0?{}:Nn,on=Q.className,un=on===void 0?[]:on,Ln=Q.showLineNumbers,Dn=Q.wrapLongLines,K=Q.wrapLines,O=K===void 0?!1:K,k=O?St({},typeof me=="function"?me(ce):me):{};if(k.className=k.className?[].concat((0,I.Z)(k.className.trim().split(/\s+/)),(0,I.Z)(un)):un,ce&&Ze){var H=Bt(oe,ce,pn);ie.unshift(wt(ce,H))}return Dn&Ln&&(k.style=St({display:"flex"},k.style)),{type:"element",tagName:"span",properties:k,children:ie}}function Ht(Q){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],oe=0;oe<Q.length;oe++){var pn=Q[oe];if(pn.type==="text")ce.push(pt({children:[pn],className:(0,I.Z)(new Set(ie))}));else if(pn.children){var Ze=ie.concat(pn.properties.className);Ht(pn.children,Ze).forEach(function(Nn){return ce.push(Nn)})}}return ce}function At(Q,ie,ce,oe,pn,Ze,Nn,me,on){var un,Ln=Ht(Q.value),Dn=[],K=-1,O=0;function k(Ke,qt){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return pt({children:Ke,lineNumber:qt,lineNumberStyle:me,largestLineNumber:Nn,showInlineLineNumbers:pn,lineProps:ce,className:he,showLineNumbers:oe,wrapLongLines:on,wrapLines:ie})}function H(Ke,qt){if(oe&&qt&&pn){var he=Bt(me,qt,Nn);Ke.unshift(wt(qt,he))}return Ke}function tt(Ke,qt){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return ie||he.length>0?k(Ke,qt,he):H(Ke,qt)}for(var _=function(){var qt=Ln[O],he=qt.children[0].value,de=vt(he);if(de){var Fe=he.split(`
|
|
|
`);Fe.forEach(function($e,Ee){var zt=oe&&Dn.length+Ze,Be={type:"text",value:"".concat($e,`
|
|
|
`)};if(Ee===0){var Ge=Ln.slice(K+1,O).concat(pt({children:[Be],className:qt.properties.className})),Ie=tt(Ge,zt);Dn.push(Ie)}else if(Ee===Fe.length-1){var ze=Ln[O+1]&&Ln[O+1].children&&Ln[O+1].children[0],Cn={type:"text",value:"".concat($e)};if(ze){var je=pt({children:[Cn],className:qt.properties.className});Ln.splice(O+1,0,je)}else{var bt=[Cn],hn=tt(bt,zt,qt.properties.className);Dn.push(hn)}}else{var Sn=[Be],Jt=tt(Sn,zt,qt.properties.className);Dn.push(Jt)}}),K=O}O++};O<Ln.length;)_();if(K!==Ln.length-1){var at=Ln.slice(K+1,Ln.length);if(at&&at.length){var se=oe&&Dn.length+Ze,Ve=tt(at,se);Dn.push(Ve)}}return ie?Dn:(un=[]).concat.apply(un,Dn)}function gt(Q){var ie=Q.rows,ce=Q.stylesheet,oe=Q.useInlineStyles;return ie.map(function(pn,Ze){return Ft({node:pn,stylesheet:ce,useInlineStyles:oe,key:"code-segement".concat(Ze)})})}function Pt(Q){return Q&&typeof Q.highlightAuto!="undefined"}function kt(Q){var ie=Q.astGenerator,ce=Q.language,oe=Q.code,pn=Q.defaultCodeValue;if(Pt(ie)){var Ze=_t(ie,ce);return ce==="text"?{value:pn,language:"text"}:Ze?ie.highlight(ce,oe):ie.highlightAuto(oe)}try{return ce&&ce!=="text"?{value:ie.highlight(oe,ce)}:{value:pn}}catch(Nn){return{value:pn}}}function Gt(Q,ie){return function(oe){var pn=oe.language,Ze=oe.children,Nn=oe.style,me=Nn===void 0?ie:Nn,on=oe.customStyle,un=on===void 0?{}:on,Ln=oe.codeTagProps,Dn=Ln===void 0?{className:pn?"language-".concat(pn):void 0,style:St(St({},me['code[class*="language-"]']),me['code[class*="language-'.concat(pn,'"]')])}:Ln,K=oe.useInlineStyles,O=K===void 0?!0:K,k=oe.showLineNumbers,H=k===void 0?!1:k,tt=oe.showInlineLineNumbers,_=tt===void 0?!0:tt,at=oe.startingLineNumber,se=at===void 0?1:at,Ve=oe.lineNumberContainerStyle,Ke=oe.lineNumberStyle,qt=Ke===void 0?{}:Ke,he=oe.wrapLines,de=oe.wrapLongLines,Fe=de===void 0?!1:de,$e=oe.lineProps,Ee=$e===void 0?{}:$e,zt=oe.renderer,Be=oe.PreTag,Ge=Be===void 0?"pre":Be,Ie=oe.CodeTag,ze=Ie===void 0?"code":Ie,Cn=oe.code,je=Cn===void 0?(Array.isArray(Ze)?Ze[0]:Ze)||"":Cn,bt=oe.astGenerator,hn=(0,E.Z)(oe,Ct);bt=bt||Q;var Sn=H?P.createElement(st,{containerStyle:Ve,codeStyle:Dn.style||{},numberStyle:qt,startingLineNumber:se,codeString:je}):null,Jt=me.hljs||me['pre[class*="language-"]']||{backgroundColor:"#fff"},Hn=Pt(bt)?"hljs":"prismjs",ri=O?Object.assign({},hn,{style:Object.assign({},Jt,un)}):Object.assign({},hn,{className:hn.className?"".concat(Hn," ").concat(hn.className):Hn,style:Object.assign({},un)});if(Fe?Dn.style=St({whiteSpace:"pre-wrap"},Dn.style):Dn.style=St({whiteSpace:"pre"},Dn.style),!bt)return P.createElement(Ge,ri,Sn,P.createElement(ze,Dn,je));(he===void 0&&zt||Fe)&&(he=!0),zt=zt||gt;var Qn=[{type:"text",value:je}],we=kt({astGenerator:bt,language:pn,code:je,defaultCodeValue:Qn});we.language===null&&(we.value=Qn);var wi=we.value.length;wi===1&&we.value[0].type==="text"&&(wi=we.value[0].value.split(`
|
|
|
`).length);var xi=wi+se,Bn=At(we,he,Ee,H,_,se,xi,qt,Fe);return P.createElement(Ge,ri,P.createElement(ze,Dn,!_&&Sn,zt({rows:Bn,stylesheet:me,useInlineStyles:O})))}}var ue={'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"}},le=p(11594),re=p.n(le),pe=["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"],Dt=Gt(re(),ue);Dt.supportedLanguages=pe;var rt=Dt},14179:function(j,S){"use strict";S.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(j,S,p){"use strict";p(84126);var E=p(59301),I=60103;if(S.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var D=Symbol.for;I=D("react.element"),S.Fragment=D("react.fragment")}var P=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function Z(lt,J,Y){var Mt,ct={},$t=null,Ft=null;Y!==void 0&&($t=""+Y),J.key!==void 0&&($t=""+J.key),J.ref!==void 0&&(Ft=J.ref);for(Mt in J)V.call(J,Mt)&&!C.hasOwnProperty(Mt)&&(ct[Mt]=J[Mt]);if(lt&<.defaultProps)for(Mt in J=lt.defaultProps,J)ct[Mt]===void 0&&(ct[Mt]=J[Mt]);return{$$typeof:I,type:lt,key:$t,ref:Ft,props:ct,_owner:P.current}}S.jsx=Z,S.jsxs=Z},37712:function(j,S,p){"use strict";j.exports=p(19524)},95489:function(j,S,p){"use strict";var E=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{},I=st();E.Prism={manual:!0,disableWorkerMessageHandler:!0};var D=p(43621),P=p(12256),V=p(68398),C=p(70614),Z=p(54212),lt=p(9720),J=p(88786);I();var Y={}.hasOwnProperty;function Mt(){}Mt.prototype=V;var ct=new Mt;j.exports=ct,ct.highlight=_t,ct.register=$t,ct.alias=Ft,ct.registered=Ct,ct.listLanguages=xt,$t(C),$t(Z),$t(lt),$t(J),ct.util.encode=vt,ct.Token.stringify=St;function $t(q){if(typeof q!="function"||!q.displayName)throw new Error("Expected `function` for `grammar`, got `"+q+"`");ct.languages[q.displayName]===void 0&&q(ct)}function Ft(q,wt){var Bt=ct.languages,pt=q,Ht,At,gt,Pt;wt&&(pt={},pt[q]=wt);for(Ht in pt)for(At=pt[Ht],At=typeof At=="string"?[At]:At,gt=At.length,Pt=-1;++Pt<gt;)Bt[At[Pt]]=Bt[Ht]}function _t(q,wt){var Bt=V.highlight,pt;if(typeof q!="string")throw new Error("Expected `string` for `value`, got `"+q+"`");if(ct.util.type(wt)==="Object")pt=wt,wt=null;else{if(typeof wt!="string")throw new Error("Expected `string` for `name`, got `"+wt+"`");if(Y.call(ct.languages,wt))pt=ct.languages[wt];else throw new Error("Unknown language: `"+wt+"` is not registered")}return Bt.call(this,q,pt,wt)}function Ct(q){if(typeof q!="string")throw new Error("Expected `string` for `language`, got `"+q+"`");return Y.call(ct.languages,q)}function xt(){var q=ct.languages,wt=[],Bt;for(Bt in q)Y.call(q,Bt)&&typeof q[Bt]=="object"&&wt.push(Bt);return wt}function St(q,wt,Bt){var pt;return typeof q=="string"?{type:"text",value:q}:ct.util.type(q)==="Array"?ft(q,wt):(pt={type:q.type,content:ct.Token.stringify(q.content,wt,Bt),tag:"span",classes:["token",q.type],attributes:{},language:wt,parent:Bt},q.alias&&(pt.classes=pt.classes.concat(q.alias)),ct.hooks.run("wrap",pt),D(pt.tag+"."+pt.classes.join("."),ot(pt.attributes),pt.content))}function ft(q,wt){for(var Bt=[],pt=q.length,Ht=-1,At;++Ht<pt;)At=q[Ht],At!==""&&At!==null&&At!==void 0&&Bt.push(At);for(Ht=-1,pt=Bt.length;++Ht<pt;)At=Bt[Ht],Bt[Ht]=ct.Token.stringify(At,wt,Bt);return Bt}function vt(q){return q}function ot(q){var wt;for(wt in q)q[wt]=P(q[wt]);return q}function st(){var q="Prism"in E,wt=q?E.Prism:void 0;return Bt;function Bt(){q?E.Prism=wt:delete E.Prism,q=void 0,wt=void 0}}},11594:function(j,S,p){"use strict";var E=p(95489);j.exports=E,E.register(p(79007)),E.register(p(15465)),E.register(p(42746)),E.register(p(93281)),E.register(p(95143)),E.register(p(65924)),E.register(p(65043)),E.register(p(43556)),E.register(p(14901)),E.register(p(4248)),E.register(p(17758)),E.register(p(33335)),E.register(p(17427)),E.register(p(22956)),E.register(p(56007)),E.register(p(45652)),E.register(p(33819)),E.register(p(84230)),E.register(p(20803)),E.register(p(65235)),E.register(p(52406)),E.register(p(79571)),E.register(p(3058)),E.register(p(51422)),E.register(p(1618)),E.register(p(2505)),E.register(p(51274)),E.register(p(23796)),E.register(p(13979)),E.register(p(87994)),E.register(p(47035)),E.register(p(36142)),E.register(p(85290)),E.register(p(7407)),E.register(p(79440)),E.register(p(7110)),E.register(p(73435)),E.register(p(91372)),E.register(p(63663)),E.register(p(92987)),E.register(p(91657)),E.register(p(34367)),E.register(p(35348)),E.register(p(26841)),E.register(p(87071)),E.register(p(13652)),E.register(p(87648)),E.register(p(10617)),E.register(p(5348)),E.register(p(71053)),E.register(p(69820)),E.register(p(41929)),E.register(p(51837)),E.register(p(4182)),E.register(p(22117)),E.register(p(95627)),E.register(p(34265)),E.register(p(50618)),E.register(p(32126)),E.register(p(26737)),E.register(p(90134)),E.register(p(51348)),E.register(p(60841)),E.register(p(42857)),E.register(p(81269)),E.register(p(31134)),E.register(p(83125)),E.register(p(9438)),E.register(p(27771)),E.register(p(86549)),E.register(p(37079)),E.register(p(59250)),E.register(p(81226)),E.register(p(65245)),E.register(p(25040)),E.register(p(40284)),E.register(p(39187)),E.register(p(34302)),E.register(p(90515)),E.register(p(33534)),E.register(p(9885)),E.register(p(76364)),E.register(p(56452)),E.register(p(8477)),E.register(p(58230)),E.register(p(66192)),E.register(p(81084)),E.register(p(50318)),E.register(p(95769)),E.register(p(14155)),E.register(p(92823)),E.register(p(63092)),E.register(p(21550)),E.register(p(29710)),E.register(p(2050)),E.register(p(67967)),E.register(p(29138)),E.register(p(67915)),E.register(p(54853)),E.register(p(68330)),E.register(p(76823)),E.register(p(86712)),E.register(p(72252)),E.register(p(78634)),E.register(p(43583)),E.register(p(23328)),E.register(p(74494)),E.register(p(46745)),E.register(p(22152)),E.register(p(83698)),E.register(p(26619)),E.register(p(53990)),E.register(p(7093)),E.register(p(4005)),E.register(p(53510)),E.register(p(24799)),E.register(p(97443)),E.register(p(80746)),E.register(p(17015)),E.register(p(89246)),E.register(p(487)),E.register(p(79539)),E.register(p(15628)),E.register(p(14320)),E.register(p(73222)),E.register(p(92486)),E.register(p(24103)),E.register(p(40604)),E.register(p(23109)),E.register(p(32082)),E.register(p(77674)),E.register(p(37524)),E.register(p(6658)),E.register(p(24824)),E.register(p(22776)),E.register(p(89700)),E.register(p(99296)),E.register(p(39940)),E.register(p(34973)),E.register(p(98135)),E.register(p(36907)),E.register(p(3567)),E.register(p(23763)),E.register(p(33978)),E.register(p(40472)),E.register(p(44695)),E.register(p(53885)),E.register(p(51478)),E.register(p(16928)),E.register(p(13586)),E.register(p(37164)),E.register(p(25153)),E.register(p(33245)),E.register(p(32218)),E.register(p(65626)),E.register(p(60090)),E.register(p(40722)),E.register(p(37783)),E.register(p(41224)),E.register(p(71365)),E.register(p(42846)),E.register(p(32964)),E.register(p(78830)),E.register(p(88799)),E.register(p(66791)),E.register(p(41735)),E.register(p(13490)),E.register(p(7383)),E.register(p(66894)),E.register(p(45779)),E.register(p(27734)),E.register(p(91889)),E.register(p(55965)),E.register(p(37326)),E.register(p(92949)),E.register(p(5681)),E.register(p(70696)),E.register(p(35790)),E.register(p(25777)),E.register(p(65889)),E.register(p(53852)),E.register(p(97719)),E.register(p(63839)),E.register(p(67623)),E.register(p(32530)),E.register(p(8938)),E.register(p(55259)),E.register(p(67411)),E.register(p(15375)),E.register(p(12093)),E.register(p(83588)),E.register(p(94127)),E.register(p(21294)),E.register(p(38709)),E.register(p(15008)),E.register(p(96549)),E.register(p(5221)),E.register(p(27447)),E.register(p(73191)),E.register(p(75542)),E.register(p(50323)),E.register(p(44298)),E.register(p(9634)),E.register(p(75266)),E.register(p(48139)),E.register(p(97534)),E.register(p(90826)),E.register(p(63919)),E.register(p(68862)),E.register(p(39523)),E.register(p(31207)),E.register(p(75308)),E.register(p(45315)),E.register(p(13794)),E.register(p(41299)),E.register(p(98177)),E.register(p(48780)),E.register(p(79793)),E.register(p(52085)),E.register(p(65411)),E.register(p(84750)),E.register(p(88216)),E.register(p(66433)),E.register(p(34855)),E.register(p(12998)),E.register(p(10202)),E.register(p(41186)),E.register(p(68963)),E.register(p(5569)),E.register(p(69435)),E.register(p(42766)),E.register(p(46449)),E.register(p(89032)),E.register(p(40241)),E.register(p(24812)),E.register(p(16747)),E.register(p(73584)),E.register(p(79243)),E.register(p(31788)),E.register(p(60871)),E.register(p(21023)),E.register(p(14693)),E.register(p(8743)),E.register(p(1689)),E.register(p(69210)),E.register(p(58710)),E.register(p(60452)),E.register(p(92784)),E.register(p(36489)),E.register(p(78380)),E.register(p(10409)),E.register(p(6539)),E.register(p(82028)),E.register(p(62282)),E.register(p(55686)),E.register(p(70889)),E.register(p(37116)),E.register(p(66963)),E.register(p(21078)),E.register(p(96198)),E.register(p(17723)),E.register(p(67771)),E.register(p(30307)),E.register(p(8921)),E.register(p(13429)),E.register(p(65197)),E.register(p(88904)),E.register(p(35)),E.register(p(86095)),E.register(p(76998)),E.register(p(14409)),E.register(p(33460)),E.register(p(28108))},79007:function(j){"use strict";j.exports=S,S.displayName="abap",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="abnf",S.aliases=[];function S(p){(function(E){var I="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";E.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-])"+I+"|<"+I+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(p)}},42746:function(j){"use strict";j.exports=S,S.displayName="actionscript",S.aliases=[];function S(p){p.languages.actionscript=p.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),p.languages.actionscript["class-name"].alias="function",delete p.languages.actionscript.parameter,delete p.languages.actionscript["literal-property"],p.languages.markup&&p.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:p.languages.markup}})}},93281:function(j){"use strict";j.exports=S,S.displayName="ada",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="agda",S.aliases=[];function S(p){(function(E){E.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/}})(p)}},65924:function(j){"use strict";j.exports=S,S.displayName="al",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="antlr4",S.aliases=["g4"];function S(p){p.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:/[;:()=]/},p.languages.g4=p.languages.antlr4}},43556:function(j){"use strict";j.exports=S,S.displayName="apacheconf",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(69435);j.exports=I,I.displayName="apex",I.aliases=[];function I(D){D.register(E),function(P){var V=/\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,C=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return V.source});function Z(J){return RegExp(J.replace(/<CLASS-NAME>/g,function(){return C}),"i")}var lt={keyword:V,punctuation:/[()\[\]{};,:.<>]/};P.languages.apex={comment:P.languages.clike.comment,string:P.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:P.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Z(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:lt},{pattern:Z(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:lt},{pattern:Z(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:lt}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:V,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:/[()\[\]{};,.]/}}(D)}},4248:function(j){"use strict";j.exports=S,S.displayName="apl",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="applescript",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="aql",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(87071);j.exports=I,I.displayName="arduino",I.aliases=["ino"];function I(D){D.register(E),D.languages.arduino=D.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/}),D.languages.ino=D.languages.arduino}},22956:function(j){"use strict";j.exports=S,S.displayName="arff",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="asciidoc",S.aliases=["adoc"];function S(p){(function(E){var I={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+$).+/}},D=E.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:I,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:I.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:I,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 P(V){V=V.split(" ");for(var C={},Z=0,lt=V.length;Z<lt;Z++)C[V[Z]]=D[V[Z]];return C}I.inside.interpreted.inside.rest=P("macro inline replacement entity"),D["passthrough-block"].inside.rest=P("macro"),D["literal-block"].inside.rest=P("callout"),D.table.inside.rest=P("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"),D["other-block"].inside.rest=P("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),D.title.inside.rest=P("macro inline replacement entity"),E.hooks.add("wrap",function(V){V.type==="entity"&&(V.attributes.title=V.content.value.replace(/&/,"&"))}),E.languages.adoc=E.languages.asciidoc})(p)}},45652:function(j){"use strict";j.exports=S,S.displayName="asm6502",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="asmatmel",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(87648);j.exports=I,I.displayName="aspnet",I.aliases=[];function I(D){D.register(E),D.languages.aspnet=D.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:D.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:D.languages.csharp}}}),D.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,D.languages.insertBefore("inside","punctuation",{directive:D.languages.aspnet.directive},D.languages.aspnet.tag.inside["attr-value"]),D.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),D.languages.insertBefore("aspnet",D.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:D.languages.csharp||{}}})}},20803:function(j){"use strict";j.exports=S,S.displayName="autohotkey",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="autoit",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="avisynth",S.aliases=["avs"];function S(p){(function(E){function I(J,Y){return J.replace(/<<(\d+)>>/g,function(Mt,ct){return Y[+ct]})}function D(J,Y,Mt){return RegExp(I(J,Y),Mt||"")}var P=/bool|clip|float|int|string|val/.source,V=[/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("|"),C=[/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("|"),Z=[/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("|"),lt=[V,C,Z].join("|");E.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:D(/\b(?:<<0>>)\s+("?)\w+\1/.source,[P],"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:D(/\b(?:<<0>>)\b/.source,[lt],"i"),alias:"function"},"type-cast":{pattern:D(/\b(?:<<0>>)(?=\s*\()/.source,[P],"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:/[{}\[\]();,.]/},E.languages.avs=E.languages.avisynth})(p)}},79571:function(j){"use strict";j.exports=S,S.displayName="avroIdl",S.aliases=[];function S(p){p.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:/[()\[\]{}<>.:,;-]/},p.languages.avdl=p.languages["avro-idl"]}},3058:function(j){"use strict";j.exports=S,S.displayName="bash",S.aliases=["shell"];function S(p){(function(E){var I="\\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",D={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},P={bash:D,environment:{pattern:RegExp("\\$"+I),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("(\\{)"+I),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})/};E.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;|&]|[<>]\\()"+I),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:P},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:D}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:P},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:P.entity}}],environment:{pattern:RegExp("\\$?"+I),alias:"constant"},variable:P.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}},D.inside=E.languages.bash;for(var V=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],C=P.variable[1].inside,Z=0;Z<V.length;Z++)C[V[Z]]=E.languages.bash[V[Z]];E.languages.shell=E.languages.bash})(p)}},51422:function(j){"use strict";j.exports=S,S.displayName="basic",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="batch",S.aliases=[];function S(p){(function(E){var I=/%%?[~:\w]+%?|!\S+!/,D={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},P=/"(?:[\\"]"|[^"])*"(?!")/,V=/(?:\b|-)\d+\b/;E.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:P,parameter:D,variable:I,number:V,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:P,parameter:D,variable:I,number:V,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:P,parameter:D,variable:[I,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:V,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:P,parameter:D,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:I,number:V,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(p)}},2505:function(j){"use strict";j.exports=S,S.displayName="bbcode",S.aliases=["shortcode"];function S(p){p.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=\]]+/}}},p.languages.shortcode=p.languages.bbcode}},51274:function(j){"use strict";j.exports=S,S.displayName="bicep",S.aliases=[];function S(p){p.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:/[{}[\];(),.:]/},p.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=p.languages.bicep}},23796:function(j){"use strict";j.exports=S,S.displayName="birb",S.aliases=[];function S(p){p.languages.birb=p.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/}),p.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(j,S,p){"use strict";var E=p(79440);j.exports=I,I.displayName="bison",I.aliases=[];function I(D){D.register(E),D.languages.bison=D.languages.extend("c",{}),D.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:D.languages.c}},comment:D.languages.c.comment,string:D.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(j){"use strict";j.exports=S,S.displayName="bnf",S.aliases=["rbnf"];function S(p){p.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}/},p.languages.rbnf=p.languages.bnf}},47035:function(j){"use strict";j.exports=S,S.displayName="brainfuck",S.aliases=[];function S(p){p.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(j){"use strict";j.exports=S,S.displayName="brightscript",S.aliases=[];function S(p){p.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},p.languages.brightscript["directive-statement"].inside.expression.inside=p.languages.brightscript}},85290:function(j){"use strict";j.exports=S,S.displayName="bro",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="bsl",S.aliases=[];function S(p){p.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"}]},p.languages.oscript=p.languages.bsl}},79440:function(j){"use strict";j.exports=S,S.displayName="c",S.aliases=[];function S(p){p.languages.c=p.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|[?:~]|[-+*/%&|^!=<>]=?/}),p.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),p.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},p.languages.c.string],char:p.languages.c.char,comment:p.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:p.languages.c}}}}),p.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 p.languages.c.boolean}},7110:function(j){"use strict";j.exports=S,S.displayName="cfscript",S.aliases=[];function S(p){p.languages.cfscript=p.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"}}),p.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 p.languages.cfscript["class-name"],p.languages.cfc=p.languages.cfscript}},73435:function(j,S,p){"use strict";var E=p(87071);j.exports=I,I.displayName="chaiscript",I.aliases=[];function I(D){D.register(E),D.languages.chaiscript=D.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:[D.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),D.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),D.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:D.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(j){"use strict";j.exports=S,S.displayName="cil",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="clike",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="clojure",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="cmake",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="cobol",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="coffeescript",S.aliases=["coffee"];function S(p){(function(E){var I=/#(?!\{).+/,D={pattern:/#\{[^}]+\}/,alias:"variable"};E.languages.coffeescript=E.languages.extend("javascript",{comment:I,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:D}}],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"}}),E.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:I,interpolation:D}}}),E.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:E.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:D}}]}),E.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete E.languages.coffeescript["template-string"],E.languages.coffee=E.languages.coffeescript})(p)}},35348:function(j){"use strict";j.exports=S,S.displayName="concurnas",S.aliases=["conc"];function S(p){p.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"}},p.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:p.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:p.languages.concurnas},string:/[\s\S]+/}}}),p.languages.conc=p.languages.concurnas}},26841:function(j){"use strict";j.exports=S,S.displayName="coq",S.aliases=[];function S(p){(function(E){for(var I=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,D=0;D<2;D++)I=I.replace(/<self>/g,function(){return I});I=I.replace(/<self>/g,"[]"),E.languages.coq={comment:RegExp(I),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return I})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(I),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:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(p)}},87071:function(j,S,p){"use strict";var E=p(79440);j.exports=I,I.displayName="cpp",I.aliases=[];function I(D){D.register(E),function(P){var V=/\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/,C=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return V.source});P.languages.cpp=P.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return V.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:V,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/}),P.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 C})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),P.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:P.languages.cpp}}}}),P.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),P.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:P.languages.extend("cpp",{})}}),P.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},P.languages.cpp["base-clause"])}(D)}},13652:function(j,S,p){"use strict";var E=p(75308);j.exports=I,I.displayName="crystal",I.aliases=[];function I(D){D.register(E),function(P){P.languages.crystal=P.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:[/->/,P.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),P.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:P.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:P.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}})}(D)}},87648:function(j){"use strict";j.exports=S,S.displayName="csharp",S.aliases=["dotnet","cs"];function S(p){(function(E){function I(pe,Dt){return pe.replace(/<<(\d+)>>/g,function(rt,Q){return"(?:"+Dt[+Q]+")"})}function D(pe,Dt,rt){return RegExp(I(pe,Dt),rt||"")}function P(pe,Dt){for(var rt=0;rt<Dt;rt++)pe=pe.replace(/<<self>>/g,function(){return"(?:"+pe+")"});return pe.replace(/<<self>>/g,"[^\\s\\S]")}var V={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 C(pe){return"\\b(?:"+pe.trim().replace(/ /g,"|")+")\\b"}var Z=C(V.typeDeclaration),lt=RegExp(C(V.type+" "+V.typeDeclaration+" "+V.contextual+" "+V.other)),J=C(V.typeDeclaration+" "+V.contextual+" "+V.other),Y=C(V.type+" "+V.typeDeclaration+" "+V.other),Mt=P(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),ct=P(/\((?:[^()]|<<self>>)*\)/.source,2),$t=/@?\b[A-Za-z_]\w*\b/.source,Ft=I(/<<0>>(?:\s*<<1>>)?/.source,[$t,Mt]),_t=I(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[J,Ft]),Ct=/\[\s*(?:,\s*)*\]/.source,xt=I(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[_t,Ct]),St=I(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[Mt,ct,Ct]),ft=I(/\(<<0>>+(?:,<<0>>+)+\)/.source,[St]),vt=I(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[ft,_t,Ct]),ot={keyword:lt,punctuation:/[<>()?,.:[\]]/},st=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,q=/"(?:\\.|[^\\"\r\n])*"/.source,wt=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;E.languages.csharp=E.languages.extend("clike",{string:[{pattern:D(/(^|[^$\\])<<0>>/.source,[wt]),lookbehind:!0,greedy:!0},{pattern:D(/(^|[^@$\\])<<0>>/.source,[q]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:D(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[_t]),lookbehind:!0,inside:ot},{pattern:D(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[$t,vt]),lookbehind:!0,inside:ot},{pattern:D(/(\busing\s+)<<0>>(?=\s*=)/.source,[$t]),lookbehind:!0},{pattern:D(/(\b<<0>>\s+)<<1>>/.source,[Z,Ft]),lookbehind:!0,inside:ot},{pattern:D(/(\bcatch\s*\(\s*)<<0>>/.source,[_t]),lookbehind:!0,inside:ot},{pattern:D(/(\bwhere\s+)<<0>>/.source,[$t]),lookbehind:!0},{pattern:D(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[xt]),lookbehind:!0,inside:ot},{pattern:D(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[vt,Y,$t]),inside:ot}],keyword:lt,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:/\?\.?|::|[{}[\];(),.:]/}),E.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),E.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:D(/([(,]\s*)<<0>>(?=\s*:)/.source,[$t]),lookbehind:!0,alias:"punctuation"}}),E.languages.insertBefore("csharp","class-name",{namespace:{pattern:D(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[$t]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:D(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[ct]),lookbehind:!0,alias:"class-name",inside:ot},"return-type":{pattern:D(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[vt,_t]),inside:ot,alias:"class-name"},"constructor-invocation":{pattern:D(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[vt]),lookbehind:!0,inside:ot,alias:"class-name"},"generic-method":{pattern:D(/<<0>>\s*<<1>>(?=\s*\()/.source,[$t,Mt]),inside:{function:D(/^<<0>>/.source,[$t]),generic:{pattern:RegExp(Mt),alias:"class-name",inside:ot}}},"type-list":{pattern:D(/\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,[Z,Ft,$t,vt,lt.source,ct,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:D(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Ft,ct]),lookbehind:!0,greedy:!0,inside:E.languages.csharp},keyword:lt,"class-name":{pattern:RegExp(vt),greedy:!0,inside:ot},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 Bt=q+"|"+st,pt=I(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Bt]),Ht=P(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[pt]),2),At=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,gt=I(/<<0>>(?:\s*\(<<1>>*\))?/.source,[_t,Ht]);E.languages.insertBefore("csharp","class-name",{attribute:{pattern:D(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[At,gt]),lookbehind:!0,greedy:!0,inside:{target:{pattern:D(/^<<0>>(?=\s*:)/.source,[At]),alias:"keyword"},"attribute-arguments":{pattern:D(/\(<<0>>*\)/.source,[Ht]),inside:E.languages.csharp},"class-name":{pattern:RegExp(_t),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Pt=/:[^}\r\n]+/.source,kt=P(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[pt]),2),Gt=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[kt,Pt]),ue=P(I(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Bt]),2),le=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ue,Pt]);function re(pe,Dt){return{interpolation:{pattern:D(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[pe]),lookbehind:!0,inside:{"format-string":{pattern:D(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Dt,Pt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:E.languages.csharp}}},string:/[\s\S]+/}}E.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:D(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Gt]),lookbehind:!0,greedy:!0,inside:re(Gt,kt)},{pattern:D(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[le]),lookbehind:!0,greedy:!0,inside:re(le,ue)}],char:{pattern:RegExp(st),greedy:!0}}),E.languages.dotnet=E.languages.cs=E.languages.csharp})(p)}},10617:function(j,S,p){"use strict";var E=p(87648);j.exports=I,I.displayName="cshtml",I.aliases=["razor"];function I(D){D.register(E),function(P){var V=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,C=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Z(xt,St){for(var ft=0;ft<St;ft++)xt=xt.replace(/<self>/g,function(){return"(?:"+xt+")"});return xt.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+C+")").replace(/<comment>/g,"(?:"+V+")")}var lt=Z(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),J=Z(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Y=Z(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),Mt=Z(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),ct=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,$t=/(?!\d)[^\s>\/=$<%]+/.source+ct+/\s*\/?>/.source,Ft=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+ct+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+$t+"|"+Z(/<\1/.source+ct+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+$t+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+$t+")";P.languages.cshtml=P.languages.extend("markup",{});var _t=P.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Ft),greedy:!0,inside:P.languages.cshtml}},{csharp:P.languages.extend("csharp",{})}),Ct={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:_t};P.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[Y,/(?:code|functions)\s*/.source+Y,/(?:for|foreach|lock|switch|using|while)\s*/.source+lt+/\s*/.source+Y,/do\s*/.source+Y+/\s*while\s*/.source+lt+/(?:\s*;)?/.source,/try\s*/.source+Y+/\s*catch\s*/.source+lt+/\s*/.source+Y+/\s*finally\s*/.source+Y,/if\s*/.source+lt+/\s*/.source+Y+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+lt+")?"+/\s*/.source+Y+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:Ct}},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:Ct}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+lt+")(?:"+/[?!]?\.\w+\b/.source+"|"+lt+"|"+J+"|"+Mt+lt+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:Ct}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),P.languages.razor=P.languages.cshtml}(D)}},5348:function(j){"use strict";j.exports=S,S.displayName="csp",S.aliases=[];function S(p){(function(E){function I(D){return RegExp(/([ \t])/.source+"(?:"+D+")"+/(?=[\s;]|$)/.source,"i")}E.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:I(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:I(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:I(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:I(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:I(/[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:I(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:I(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(p)}},71053:function(j){"use strict";j.exports=S,S.displayName="cssExtras",S.aliases=[];function S(p){(function(E){var I=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,D;E.languages.css.selector={pattern:E.languages.css.selector.pattern,lookbehind:!0,inside:D={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+I.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":[I,{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:/[(),]/}},E.languages.css.atrule.inside["selector-function-argument"].inside=D,E.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var P={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},V={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};E.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:P,number:V,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:P,number:V})})(p)}},54212:function(j){"use strict";j.exports=S,S.displayName="css",S.aliases=[];function S(p){(function(E){var I=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;E.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\\((?:"+I.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+I.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+I.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:I,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:/[(){};:,]/},E.languages.css.atrule.inside.rest=E.languages.css;var D=E.languages.markup;D&&(D.tag.addInlined("style","css"),D.tag.addAttribute("style","css"))})(p)}},69820:function(j){"use strict";j.exports=S,S.displayName="csv",S.aliases=[];function S(p){p.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(j){"use strict";j.exports=S,S.displayName="cypher",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="d",S.aliases=[];function S(p){p.languages.d=p.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|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),p.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),p.languages.insertBefore("d","keyword",{property:/\B@\w*/}),p.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(j){"use strict";j.exports=S,S.displayName="dart",S.aliases=[];function S(p){(function(E){var I=[/\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/],D=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,P={pattern:RegExp(D+/[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:/\./}}}};E.languages.dart=E.languages.extend("clike",{"class-name":[P,{pattern:RegExp(D+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:P.inside}],keyword:I,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),E.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:E.languages.dart}}},string:/[\s\S]+/}},string:void 0}),E.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),E.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":P,keyword:I,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(p)}},22117:function(j){"use strict";j.exports=S,S.displayName="dataweave",S.aliases=[];function S(p){(function(E){E.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/}})(p)}},95627:function(j){"use strict";j.exports=S,S.displayName="dax",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="dhall",S.aliases=[];function S(p){p.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/},p.languages.dhall.string.inside.interpolation.inside.expression.inside=p.languages.dhall}},50618:function(j){"use strict";j.exports=S,S.displayName="diff",S.aliases=[];function S(p){(function(E){E.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var I={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(I).forEach(function(D){var P=I[D],V=[];/^\w+$/.test(D)||V.push(/\w+/.exec(D)[0]),D==="diff"&&V.push("bold"),E.languages.diff[D]={pattern:RegExp("^(?:["+P+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:V,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(D)[0]}}}}),Object.defineProperty(E.languages.diff,"PREFIXES",{value:I})})(p)}},32126:function(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="django",I.aliases=["jinja2"];function I(D){D.register(E),function(P){P.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 V=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,C=P.languages["markup-templating"];P.hooks.add("before-tokenize",function(Z){C.buildPlaceholders(Z,"django",V)}),P.hooks.add("after-tokenize",function(Z){C.tokenizePlaceholders(Z,"django")}),P.languages.jinja2=P.languages.django,P.hooks.add("before-tokenize",function(Z){C.buildPlaceholders(Z,"jinja2",V)}),P.hooks.add("after-tokenize",function(Z){C.tokenizePlaceholders(Z,"jinja2")})}(D)}},26737:function(j){"use strict";j.exports=S,S.displayName="dnsZoneFile",S.aliases=[];function S(p){p.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:/[()]/},p.languages["dns-zone"]=p.languages["dns-zone-file"]}},90134:function(j){"use strict";j.exports=S,S.displayName="docker",S.aliases=["dockerfile"];function S(p){(function(E){var I=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,D=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return I}),P=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,V=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return P}),C={pattern:RegExp(P),greedy:!0},Z={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function lt(J,Y){return J=J.replace(/<OPT>/g,function(){return V}).replace(/<SP>/g,function(){return D}),RegExp(J,Y)}E.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:lt(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[C,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:lt(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:lt(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:lt(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:Z,string:C,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:Z},E.languages.dockerfile=E.languages.docker})(p)}},51348:function(j){"use strict";j.exports=S,S.displayName="dot",S.aliases=["gv"];function S(p){(function(E){var I="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",D={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:E.languages.markup}};function P(V,C){return RegExp(V.replace(/<ID>/g,function(){return I}),C)}E.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:P(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:D},"attr-value":{pattern:P(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:D},"attr-name":{pattern:P(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:D},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:P(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:D},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},E.languages.gv=E.languages.dot})(p)}},60841:function(j){"use strict";j.exports=S,S.displayName="ebnf",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="editorconfig",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="eiffel",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="ejs",I.aliases=["eta"];function I(D){D.register(E),function(P){P.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:P.languages.javascript}},P.hooks.add("before-tokenize",function(V){var C=/<%(?!%)[\s\S]+?%>/g;P.languages["markup-templating"].buildPlaceholders(V,"ejs",C)}),P.hooks.add("after-tokenize",function(V){P.languages["markup-templating"].tokenizePlaceholders(V,"ejs")}),P.languages.eta=P.languages.ejs}(D)}},83125:function(j){"use strict";j.exports=S,S.displayName="elixir",S.aliases=[];function S(p){p.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:/<<|>>|[.,%\[\]{}()]/},p.languages.elixir.string.forEach(function(E){E.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:p.languages.elixir}}}})}},9438:function(j){"use strict";j.exports=S,S.displayName="elm",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(75308),I=p(51478);j.exports=D,D.displayName="erb",D.aliases=[];function D(P){P.register(E),P.register(I),function(V){V.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:V.languages.ruby}},V.hooks.add("before-tokenize",function(C){var Z=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;V.languages["markup-templating"].buildPlaceholders(C,"erb",Z)}),V.hooks.add("after-tokenize",function(C){V.languages["markup-templating"].tokenizePlaceholders(C,"erb")})}(P)}},86549:function(j){"use strict";j.exports=S,S.displayName="erlang",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(33978),I=p(51478);j.exports=D,D.displayName="etlua",D.aliases=[];function D(P){P.register(E),P.register(I),function(V){V.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:V.languages.lua}},V.hooks.add("before-tokenize",function(C){var Z=/<%[\s\S]+?%>/g;V.languages["markup-templating"].buildPlaceholders(C,"etlua",Z)}),V.hooks.add("after-tokenize",function(C){V.languages["markup-templating"].tokenizePlaceholders(C,"etlua")})}(P)}},59250:function(j){"use strict";j.exports=S,S.displayName="excelFormula",S.aliases=[];function S(p){p.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:/[[\]();{}|]/},p.languages.xlsx=p.languages.xls=p.languages["excel-formula"]}},81226:function(j){"use strict";j.exports=S,S.displayName="factor",S.aliases=[];function S(p){(function(E){var I={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},D={number:/\\[^\s']|%\w/},P={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:I},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:I},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:I}],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:D.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:D},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:D}],"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:D}},V=function(J){return(J+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},C=function(J){return new RegExp("(^|\\s)(?:"+J.map(V).join("|")+")(?=\\s|$)")},Z={"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(Z).forEach(function(J){P[J].pattern=C(Z[J])});var lt=["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"];P.combinators.pattern=C(lt),E.languages.factor=P})(p)}},65245:function(j){"use strict";j.exports=S,S.displayName="$false",S.aliases=[];function S(p){(function(E){E.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"}}})(p)}},25040:function(j){"use strict";j.exports=S,S.displayName="firestoreSecurityRules",S.aliases=[];function S(p){p.languages["firestore-security-rules"]=p.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete p.languages["firestore-security-rules"]["class-name"],p.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(j){"use strict";j.exports=S,S.displayName="flow",S.aliases=[];function S(p){(function(E){E.languages.flow=E.languages.extend("javascript",{}),E.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),E.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 E.languages.flow.parameter,E.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(E.languages.flow.keyword)||(E.languages.flow.keyword=[E.languages.flow.keyword]),E.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})})(p)}},39187:function(j){"use strict";j.exports=S,S.displayName="fortran",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="fsharp",S.aliases=[];function S(p){p.languages.fsharp=p.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}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),p.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"}}}}),p.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),p.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:p.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(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="ftl",I.aliases=[];function I(D){D.register(E),function(P){for(var V=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,C=0;C<2;C++)V=V.replace(/<expr>/g,function(){return V});V=V.replace(/<expr>/g,/[^\s\S]/.source);var Z={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return V})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return V})),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:/[,;.:()[\]{}]/};Z.string[1].inside.interpolation.inside.rest=Z,P.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:Z}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Z}}}},P.hooks.add("before-tokenize",function(lt){var J=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return V}),"gi");P.languages["markup-templating"].buildPlaceholders(lt,"ftl",J)}),P.hooks.add("after-tokenize",function(lt){P.languages["markup-templating"].tokenizePlaceholders(lt,"ftl")})}(D)}},33534:function(j){"use strict";j.exports=S,S.displayName="gap",S.aliases=[];function S(p){p.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:/[()[\]{},;.:]/},p.languages.gap.shell.inside.gap.inside=p.languages.gap}},9885:function(j){"use strict";j.exports=S,S.displayName="gcode",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="gdscript",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="gedcom",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="gherkin",S.aliases=[];function S(p){(function(E){var I=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;E.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("("+I+")(?:"+I+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(I),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"}}})(p)}},58230:function(j){"use strict";j.exports=S,S.displayName="git",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(79440);j.exports=I,I.displayName="glsl",I.aliases=[];function I(D){D.register(E),D.languages.glsl=D.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(j){"use strict";j.exports=S,S.displayName="gml",S.aliases=[];function S(p){p.languages.gamemakerlanguage=p.languages.gml=p.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(j){"use strict";j.exports=S,S.displayName="gn",S.aliases=["gni"];function S(p){p.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:/[(){}[\],.]/},p.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=p.languages.gn,p.languages.gni=p.languages.gn}},95769:function(j){"use strict";j.exports=S,S.displayName="goModule",S.aliases=[];function S(p){p.languages["go-mod"]=p.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(j){"use strict";j.exports=S,S.displayName="go",S.aliases=[];function S(p){p.languages.go=p.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/}),p.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete p.languages.go["class-name"]}},92823:function(j){"use strict";j.exports=S,S.displayName="graphql",S.aliases=[];function S(p){p.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:p.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+/},p.hooks.add("after-tokenize",function(I){if(I.language!=="graphql")return;var D=I.tokens.filter(function(Ct){return typeof Ct!="string"&&Ct.type!=="comment"&&Ct.type!=="scalar"}),P=0;function V(Ct){return D[P+Ct]}function C(Ct,xt){xt=xt||0;for(var St=0;St<Ct.length;St++){var ft=V(St+xt);if(!ft||ft.type!==Ct[St])return!1}return!0}function Z(Ct,xt){for(var St=1,ft=P;ft<D.length;ft++){var vt=D[ft],ot=vt.content;if(vt.type==="punctuation"&&typeof ot=="string"){if(Ct.test(ot))St++;else if(xt.test(ot)&&(St--,St===0))return ft}}return-1}function lt(Ct,xt){var St=Ct.alias;St?Array.isArray(St)||(Ct.alias=St=[St]):Ct.alias=St=[],St.push(xt)}for(;P<D.length;){var J=D[P++];if(J.type==="keyword"&&J.content==="mutation"){var Y=[];if(C(["definition-mutation","punctuation"])&&V(1).content==="("){P+=2;var Mt=Z(/^\($/,/^\)$/);if(Mt===-1)continue;for(;P<Mt;P++){var ct=V(0);ct.type==="variable"&&(lt(ct,"variable-input"),Y.push(ct.content))}P=Mt+1}if(C(["punctuation","property-query"])&&V(0).content==="{"&&(P++,lt(V(0),"property-mutation"),Y.length>0)){var $t=Z(/^\{$/,/^\}$/);if($t===-1)continue;for(var Ft=P;Ft<$t;Ft++){var _t=D[Ft];_t.type==="variable"&&Y.indexOf(_t.content)>=0&<(_t,"variable-input")}}}}})}},63092:function(j){"use strict";j.exports=S,S.displayName="groovy",S.aliases=[];function S(p){p.languages.groovy=p.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:/\.+|[{}[\];(),:$]/}),p.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),p.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),p.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),p.hooks.add("wrap",function(E){if(E.language==="groovy"&&E.type==="string"){var I=E.content.value[0];if(I!="'"){var D=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;I==="$"&&(D=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),E.content.value=E.content.value.replace(/</g,"<").replace(/&/g,"&"),E.content=p.highlight(E.content.value,{expression:{pattern:D,lookbehind:!0,inside:p.languages.groovy}}),E.classes.push(I==="/"?"regex":"gstring")}}})}},21550:function(j,S,p){"use strict";var E=p(75308);j.exports=I,I.displayName="haml",I.aliases=[];function I(D){D.register(E),function(P){P.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:P.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:P.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:P.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:P.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:P.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:P.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:P.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var V="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",C=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Z={},lt=0,J=C.length;lt<J;lt++){var Y=C[lt];Y=typeof Y=="string"?{filter:Y,language:Y}:Y,P.languages[Y.language]&&(Z["filter-"+Y.filter]={pattern:RegExp(V.replace("{{filter_name}}",function(){return Y.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[Y.language,"language-"+Y.language],inside:P.languages[Y.language]}}})}P.languages.insertBefore("haml","filter",Z)}(D)}},29710:function(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="handlebars",I.aliases=["hbs"];function I(D){D.register(E),function(P){P.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]+/},P.hooks.add("before-tokenize",function(V){var C=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;P.languages["markup-templating"].buildPlaceholders(V,"handlebars",C)}),P.hooks.add("after-tokenize",function(V){P.languages["markup-templating"].tokenizePlaceholders(V,"handlebars")}),P.languages.hbs=P.languages.handlebars}(D)}},2050:function(j){"use strict";j.exports=S,S.displayName="haskell",S.aliases=["hs"];function S(p){p.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:/[{}[\];(),.:]/},p.languages.hs=p.languages.haskell}},67967:function(j){"use strict";j.exports=S,S.displayName="haxe",S.aliases=[];function S(p){p.languages.haxe=p.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}|[-+*/%!=&|^])=?|[?:~]/}),p.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:p.languages.haxe}}},string:/[\s\S]+/}}}),p.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:p.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),p.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(j){"use strict";j.exports=S,S.displayName="hcl",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(79440);j.exports=I,I.displayName="hlsl",I.aliases=[];function I(D){D.register(E),D.languages.hlsl=D.languages.extend("c",{"class-name":[D.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(j){"use strict";j.exports=S,S.displayName="hoon",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="hpkp",S.aliases=[];function S(p){p.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(j){"use strict";j.exports=S,S.displayName="hsts",S.aliases=[];function S(p){p.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(j){"use strict";j.exports=S,S.displayName="http",S.aliases=[];function S(p){(function(E){function I(Y){return RegExp("(^(?:"+Y+"):[ ]*(?![ ]))[^]+","i")}E.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:E.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:I(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:E.languages.csp},{pattern:I(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:E.languages.hpkp},{pattern:I(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:E.languages.hsts},{pattern:I(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var D=E.languages,P={"application/javascript":D.javascript,"application/json":D.json||D.javascript,"application/xml":D.xml,"text/xml":D.xml,"text/html":D.html,"text/css":D.css,"text/plain":D.plain},V={"application/json":!0,"application/xml":!0};function C(Y){var Mt=Y.replace(/^[a-z]+\//,""),ct="\\w+/(?:[\\w.-]+\\+)+"+Mt+"(?![+\\w.-])";return"(?:"+Y+"|"+ct+")"}var Z;for(var lt in P)if(P[lt]){Z=Z||{};var J=V[lt]?C(lt):lt;Z[lt.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+J+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:P[lt]}}Z&&E.languages.insertBefore("http","header",Z)})(p)}},72252:function(j){"use strict";j.exports=S,S.displayName="ichigojam",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="icon",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="icuMessageFormat",S.aliases=[];function S(p){(function(E){function I(lt,J){return J<=0?/[]/.source:lt.replace(/<SELF>/g,function(){return I(lt,J-1)})}var D=/'[{}:=,](?:[^']|'')*'(?!')/,P={pattern:/''/,greedy:!0,alias:"operator"},V={pattern:D,greedy:!0,inside:{escape:P}},C=I(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return D.source}),8),Z={pattern:RegExp(C),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};E.languages["icu-message-format"]={argument:{pattern:RegExp(C),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":Z,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":Z,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+I(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:P,string:V},Z.inside.message.inside=E.languages["icu-message-format"],E.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=E.languages["icu-message-format"]})(p)}},23328:function(j,S,p){"use strict";var E=p(2050);j.exports=I,I.displayName="idris",I.aliases=["idr"];function I(D){D.register(E),D.languages.idris=D.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}),D.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),D.languages.idr=D.languages.idris}},74494:function(j){"use strict";j.exports=S,S.displayName="iecst",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="ignore",S.aliases=["gitignore","hgignore","npmignore"];function S(p){(function(E){E.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},E.languages.gitignore=E.languages.ignore,E.languages.hgignore=E.languages.ignore,E.languages.npmignore=E.languages.ignore})(p)}},22152:function(j){"use strict";j.exports=S,S.displayName="inform7",S.aliases=[];function S(p){p.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:/[.,:;(){}]/},p.languages.inform7.string.inside.substitution.inside.rest=p.languages.inform7,p.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(j){"use strict";j.exports=S,S.displayName="ini",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="io",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="j",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="java",S.aliases=[];function S(p){(function(E){var I=/\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/,D=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,P={pattern:RegExp(D+/[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:/\./}};E.languages.java=E.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[P,{pattern:RegExp(D+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:P.inside}],keyword:I,function:[E.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}}),E.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),E.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":P,keyword:I,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 I.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(p)}},4005:function(j,S,p){"use strict";var E=p(7093),I=p(53510);j.exports=D,D.displayName="javadoc",D.aliases=[];function D(P){P.register(E),P.register(I),function(V){var C=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,Z=/#\s*\w+(?:\s*\([^()]*\))?/.source,lt=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return Z});V.languages.javadoc=V.languages.extend("javadoclike",{}),V.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+lt+")"),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:V.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:C,lookbehind:!0,inside:V.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:C,lookbehind:!0,inside:{tag:V.languages.markup.tag,entity:V.languages.markup.entity,code:{pattern:/.+/,inside:V.languages.java,alias:"language-java"}}}}}],tag:V.languages.markup.tag,entity:V.languages.markup.entity}),V.languages.javadoclike.addSupport("java",V.languages.javadoc)}(P)}},53510:function(j){"use strict";j.exports=S,S.displayName="javadoclike",S.aliases=[];function S(p){(function(E){var I=E.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 D(V,C){var Z="doc-comment",lt=E.languages[V];if(lt){var J=lt[Z];if(!J){var Y={};Y[Z]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},lt=E.languages.insertBefore(V,"comment",Y),J=lt[Z]}if(J instanceof RegExp&&(J=lt[Z]={pattern:J}),Array.isArray(J))for(var Mt=0,ct=J.length;Mt<ct;Mt++)J[Mt]instanceof RegExp&&(J[Mt]={pattern:J[Mt]}),C(J[Mt]);else C(J)}}function P(V,C){typeof V=="string"&&(V=[V]),V.forEach(function(Z){D(Z,function(lt){lt.inside||(lt.inside={}),lt.inside.rest=C})})}Object.defineProperty(I,"addSupport",{value:P}),I.addSupport(["java","javascript","php"],I)})(p)}},88786:function(j){"use strict";j.exports=S,S.displayName="javascript",S.aliases=["js"];function S(p){p.languages.javascript=p.languages.extend("clike",{"class-name":[p.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}|\?\?=?|\?\.?|[~:]/}),p.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,p.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:p.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:p.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:p.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:p.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:p.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),p.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:p.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"}}),p.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),p.languages.markup&&(p.languages.markup.tag.addInlined("script","javascript"),p.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")),p.languages.js=p.languages.javascript}},24799:function(j){"use strict";j.exports=S,S.displayName="javastacktrace",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="jexl",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="jolie",S.aliases=[];function S(p){p.languages.jolie=p.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/}),p.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(j){"use strict";j.exports=S,S.displayName="jq",S.aliases=[];function S(p){(function(E){var I=/\\\((?:[^()]|\([^()]*\))*\)/.source,D=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return I})),P={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+I),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},V=E.languages.jq={comment:/#.*/,property:{pattern:RegExp(D.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:P},string:{pattern:D,lookbehind:!0,greedy:!0,inside:P},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"}};P.interpolation.inside.content.inside=V})(p)}},89246:function(j){"use strict";j.exports=S,S.displayName="jsExtras",S.aliases=[];function S(p){(function(E){E.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+E.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),E.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+E.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),E.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 I(lt,J){return RegExp(lt.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),J)}E.languages.insertBefore("javascript","keyword",{imports:{pattern:I(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:E.languages.javascript},exports:{pattern:I(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:E.languages.javascript}}),E.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"}),E.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),E.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:I(/(\.\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 D=["function","function-variable","method","method-variable","property-access"],P=0;P<D.length;P++){var V=D[P],C=E.languages.javascript[V];E.util.type(C)==="RegExp"&&(C=E.languages.javascript[V]={pattern:C});var Z=C.inside||{};C.inside=Z,Z["maybe-class-name"]=/^[A-Z][\s\S]*/}})(p)}},487:function(j){"use strict";j.exports=S,S.displayName="jsTemplates",S.aliases=[];function S(p){(function(E){var I=E.languages.javascript["template-string"],D=I.pattern.source,P=I.inside.interpolation,V=P.inside["interpolation-punctuation"],C=P.pattern.source;function Z(Ft,_t){if(E.languages[Ft])return{pattern:RegExp("((?:"+_t+")\\s*)"+D),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Ft}}}}E.languages.javascript["template-string"]=[Z("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),Z("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),Z("svg",/\bsvg/.source),Z("markdown",/\b(?:markdown|md)/.source),Z("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),Z("sql",/\bsql/.source),I].filter(Boolean);function lt(Ft,_t){return"___"+_t.toUpperCase()+"_"+Ft+"___"}function J(Ft,_t,Ct){var xt={code:Ft,grammar:_t,language:Ct};return E.hooks.run("before-tokenize",xt),xt.tokens=E.tokenize(xt.code,xt.grammar),E.hooks.run("after-tokenize",xt),xt.tokens}function Y(Ft){var _t={};_t["interpolation-punctuation"]=V;var Ct=E.tokenize(Ft,_t);if(Ct.length===3){var xt=[1,1];xt.push.apply(xt,J(Ct[1],E.languages.javascript,"javascript")),Ct.splice.apply(Ct,xt)}return new E.Token("interpolation",Ct,P.alias,Ft)}function Mt(Ft,_t,Ct){var xt=E.tokenize(Ft,{interpolation:{pattern:RegExp(C),lookbehind:!0}}),St=0,ft={},vt=xt.map(function(wt){if(typeof wt=="string")return wt;for(var Bt=wt.content,pt;Ft.indexOf(pt=lt(St++,Ct))!==-1;);return ft[pt]=Bt,pt}).join(""),ot=J(vt,_t,Ct),st=Object.keys(ft);St=0;function q(wt){for(var Bt=0;Bt<wt.length;Bt++){if(St>=st.length)return;var pt=wt[Bt];if(typeof pt=="string"||typeof pt.content=="string"){var Ht=st[St],At=typeof pt=="string"?pt:pt.content,gt=At.indexOf(Ht);if(gt!==-1){++St;var Pt=At.substring(0,gt),kt=Y(ft[Ht]),Gt=At.substring(gt+Ht.length),ue=[];if(Pt&&ue.push(Pt),ue.push(kt),Gt){var le=[Gt];q(le),ue.push.apply(ue,le)}typeof pt=="string"?(wt.splice.apply(wt,[Bt,1].concat(ue)),Bt+=ue.length-1):pt.content=ue}}else{var re=pt.content;Array.isArray(re)?q(re):q([re])}}}return q(ot),new E.Token(Ct,ot,"language-"+Ct,Ft)}var ct={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};E.hooks.add("after-tokenize",function(Ft){if(!(Ft.language in ct))return;function _t(Ct){for(var xt=0,St=Ct.length;xt<St;xt++){var ft=Ct[xt];if(typeof ft!="string"){var vt=ft.content;if(!Array.isArray(vt)){typeof vt!="string"&&_t([vt]);continue}if(ft.type==="template-string"){var ot=vt[1];if(vt.length===3&&typeof ot!="string"&&ot.type==="embedded-code"){var st=$t(ot),q=ot.alias,wt=Array.isArray(q)?q[0]:q,Bt=E.languages[wt];if(!Bt)continue;vt[1]=Mt(st,Bt,wt)}}else _t(vt)}}}_t(Ft.tokens)});function $t(Ft){return typeof Ft=="string"?Ft:Array.isArray(Ft)?Ft.map($t).join(""):$t(Ft.content)}})(p)}},79539:function(j,S,p){"use strict";var E=p(53510),I=p(92784);j.exports=D,D.displayName="jsdoc",D.aliases=[];function D(P){P.register(E),P.register(I),function(V){var C=V.languages.javascript,Z=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,lt="(@(?:arg|argument|param|property)\\s+(?:"+Z+"\\s+)?)";V.languages.jsdoc=V.languages.extend("javadoclike",{parameter:{pattern:RegExp(lt+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),V.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(lt+/\[(?:(?!\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:C,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 Z})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Z),lookbehind:!0,inside:{string:C.string,number:C.number,boolean:C.boolean,keyword:V.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:C,alias:"language-javascript"}}}}),V.languages.javadoclike.addSupport("javascript",V.languages.jsdoc)}(P)}},15628:function(j){"use strict";j.exports=S,S.displayName="json",S.aliases=["webmanifest"];function S(p){p.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"}},p.languages.webmanifest=p.languages.json}},14320:function(j,S,p){"use strict";var E=p(15628);j.exports=I,I.displayName="json5",I.aliases=[];function I(D){D.register(E),function(P){var V=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;P.languages.json5=P.languages.extend("json",{property:[{pattern:RegExp(V.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:V,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(D)}},73222:function(j,S,p){"use strict";var E=p(15628);j.exports=I,I.displayName="jsonp",I.aliases=[];function I(D){D.register(E),D.languages.jsonp=D.languages.extend("json",{punctuation:/[{}[\]();,.]/}),D.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(j){"use strict";j.exports=S,S.displayName="jsstacktrace",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="jsx",S.aliases=[];function S(p){(function(E){var I=E.util.clone(E.languages.javascript),D=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,P=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,V=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function C(J,Y){return J=J.replace(/<S>/g,function(){return D}).replace(/<BRACES>/g,function(){return P}).replace(/<SPREAD>/g,function(){return V}),RegExp(J,Y)}V=C(V).source,E.languages.jsx=E.languages.extend("markup",I),E.languages.jsx.tag.pattern=C(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),E.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,E.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,E.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,E.languages.jsx.tag.inside.comment=I.comment,E.languages.insertBefore("inside","attr-name",{spread:{pattern:C(/<SPREAD>/.source),inside:E.languages.jsx}},E.languages.jsx.tag),E.languages.insertBefore("inside","special-attr",{script:{pattern:C(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:E.languages.jsx}}},E.languages.jsx.tag);var Z=function(J){return J?typeof J=="string"?J:typeof J.content=="string"?J.content:J.content.map(Z).join(""):""},lt=function(J){for(var Y=[],Mt=0;Mt<J.length;Mt++){var ct=J[Mt],$t=!1;if(typeof ct!="string"&&(ct.type==="tag"&&ct.content[0]&&ct.content[0].type==="tag"?ct.content[0].content[0].content==="</"?Y.length>0&&Y[Y.length-1].tagName===Z(ct.content[0].content[1])&&Y.pop():ct.content[ct.content.length-1].content==="/>"||Y.push({tagName:Z(ct.content[0].content[1]),openedBraces:0}):Y.length>0&&ct.type==="punctuation"&&ct.content==="{"?Y[Y.length-1].openedBraces++:Y.length>0&&Y[Y.length-1].openedBraces>0&&ct.type==="punctuation"&&ct.content==="}"?Y[Y.length-1].openedBraces--:$t=!0),($t||typeof ct=="string")&&Y.length>0&&Y[Y.length-1].openedBraces===0){var Ft=Z(ct);Mt<J.length-1&&(typeof J[Mt+1]=="string"||J[Mt+1].type==="plain-text")&&(Ft+=Z(J[Mt+1]),J.splice(Mt+1,1)),Mt>0&&(typeof J[Mt-1]=="string"||J[Mt-1].type==="plain-text")&&(Ft=Z(J[Mt-1])+Ft,J.splice(Mt-1,1),Mt--),J[Mt]=new E.Token("plain-text",Ft,null,Ft)}ct.content&&typeof ct.content!="string"&<(ct.content)}};E.hooks.add("after-tokenize",function(J){J.language!=="jsx"&&J.language!=="tsx"||lt(J.tokens)})})(p)}},40604:function(j){"use strict";j.exports=S,S.displayName="julia",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="keepalived",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="keyman",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="kotlin",S.aliases=["kt","kts"];function S(p){(function(E){E.languages.kotlin=E.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 E.languages.kotlin["class-name"];var I={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:E.languages.kotlin}};E.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:I},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:I},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete E.languages.kotlin.string,E.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),E.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),E.languages.kt=E.languages.kotlin,E.languages.kts=E.languages.kotlin})(p)}},37524:function(j){"use strict";j.exports=S,S.displayName="kumir",S.aliases=["kum"];function S(p){(function(E){var I=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function D(P,V){return RegExp(P.replace(/<nonId>/g,I),V)}E.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:D(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:D(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:D(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:D(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:D(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:D(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:D(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:D(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},E.languages.kum=E.languages.kumir})(p)}},6658:function(j){"use strict";j.exports=S,S.displayName="kusto",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="latex",S.aliases=["tex","context"];function S(p){(function(E){var I=/\\(?:[^a-z()[\]]|[a-z*]+)/i,D={"equation-command":{pattern:I,alias:"regex"}};E.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:D,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:D,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:I,alias:"selector"},punctuation:/[[\]{}&]/},E.languages.tex=E.languages.latex,E.languages.context=E.languages.latex})(p)}},22776:function(j,S,p){"use strict";var E=p(51478),I=p(53852);j.exports=D,D.displayName="latte",D.aliases=[];function D(P){P.register(E),P.register(I),function(V){V.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:V.languages.php}};var C=V.languages.extend("markup",{});V.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:V.languages.php}}}}}},C.tag),V.hooks.add("before-tokenize",function(Z){if(Z.language==="latte"){var lt=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;V.languages["markup-templating"].buildPlaceholders(Z,"latte",lt),Z.grammar=C}}),V.hooks.add("after-tokenize",function(Z){V.languages["markup-templating"].tokenizePlaceholders(Z,"latte")})}(P)}},89700:function(j){"use strict";j.exports=S,S.displayName="less",S.aliases=[];function S(p){p.languages.less=p.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:/[+\-*\/]/}),p.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(j,S,p){"use strict";var E=p(48780);j.exports=I,I.displayName="lilypond",I.aliases=[];function I(D){D.register(E),function(P){for(var V=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,C=5,Z=0;Z<C;Z++)V=V.replace(/<expr>/g,function(){return V});V=V.replace(/<expr>/g,/[^\s\S]/.source);var lt=P.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return V}),"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:P.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/};lt["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=lt,P.languages.ly=lt}(D)}},39940:function(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="liquid",I.aliases=[];function I(D){D.register(E),D.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"}},D.hooks.add("before-tokenize",function(P){var V=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,C=!1;D.languages["markup-templating"].buildPlaceholders(P,"liquid",V,function(Z){var lt=/^\{%-?\s*(\w+)/.exec(Z);if(lt){var J=lt[1];if(J==="raw"&&!C)return C=!0,!0;if(J==="endraw")return C=!1,!0}return!C})}),D.hooks.add("after-tokenize",function(P){D.languages["markup-templating"].tokenizePlaceholders(P,"liquid")})}},34973:function(j){"use strict";j.exports=S,S.displayName="lisp",S.aliases=[];function S(p){(function(E){function I(Ft){return RegExp(/(\()/.source+"(?:"+Ft+")"+/(?=[\s\)])/.source)}function D(Ft){return RegExp(/([\s([])/.source+"(?:"+Ft+")"+/(?=[\s)])/.source)}var P=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,V="&"+P,C="(\\()",Z="(?=\\))",lt="(?=\\s)",J=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Y={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+P+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+P),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+P),alias:"property"},splice:{pattern:RegExp(",@?"+P),alias:["symbol","variable"]},keyword:[{pattern:RegExp(C+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+lt),lookbehind:!0},{pattern:RegExp(C+"(?:append|by|collect|concat|do|finally|for|in|return)"+lt),lookbehind:!0}],declare:{pattern:I(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:I(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:D(/nil|t/.source),lookbehind:!0},number:{pattern:D(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(C+"def(?:const|custom|group|var)\\s+"+P),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(P)}},defun:{pattern:RegExp(C+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+P+/\s+\(/.source+J+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+P),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(C+"lambda\\s+\\(\\s*(?:&?"+P+"(?:\\s+&?"+P+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(C+P),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},Mt={"lisp-marker":RegExp(V),varform:{pattern:RegExp(/\(/.source+P+/\s+(?=\S)/.source+J+/\)/.source),inside:Y},argument:{pattern:RegExp(/(^|[\s(])/.source+P),lookbehind:!0,alias:"variable"},rest:Y},ct="\\S+(?:\\s+\\S+)*",$t={pattern:RegExp(C+J+Z),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+ct),inside:Mt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+ct),inside:Mt},keys:{pattern:RegExp("&key\\s+"+ct+"(?:\\s+&allow-other-keys)?"),inside:Mt},argument:{pattern:RegExp(P),alias:"variable"},punctuation:/[()]/}};Y.lambda.inside.arguments=$t,Y.defun.inside.arguments=E.util.clone($t),Y.defun.inside.arguments.inside.sublist=$t,E.languages.lisp=Y,E.languages.elisp=Y,E.languages.emacs=Y,E.languages["emacs-lisp"]=Y})(p)}},98135:function(j){"use strict";j.exports=S,S.displayName="livescript",S.aliases=[];function S(p){p.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:/[(){}\[\]|.,:;`]/},p.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=p.languages.livescript}},36907:function(j){"use strict";j.exports=S,S.displayName="llvm",S.aliases=[];function S(p){(function(E){E.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:/[{}[\];(),.!*=<>]/}})(p)}},3567:function(j){"use strict";j.exports=S,S.displayName="log",S.aliases=[];function S(p){p.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:p.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(j){"use strict";j.exports=S,S.displayName="lolcode",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="lua",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="magma",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="makefile",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="markdown",S.aliases=["md"];function S(p){(function(E){var I=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function D(Mt){return Mt=Mt.replace(/<inner>/g,function(){return I}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+Mt+")")}var P=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,V=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return P}),C=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;E.languages.markdown=E.languages.extend("markup",{}),E.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:E.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+V+C+"(?:"+V+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+V+C+")(?:"+V+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(P),inside:E.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+V+")"+C+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+V+"$"),inside:{"table-header":{pattern:RegExp(P),alias:"important",inside:E.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:D(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:D(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:D(/(~~?)(?:(?!~)<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:D(/!?\[(?:(?!\])<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(Mt){["url","bold","italic","strike","code-snippet"].forEach(function(ct){Mt!==ct&&(E.languages.markdown[Mt].inside.content.inside[ct]=E.languages.markdown[ct])})}),E.hooks.add("after-tokenize",function(Mt){if(Mt.language!=="markdown"&&Mt.language!=="md")return;function ct($t){if(!(!$t||typeof $t=="string"))for(var Ft=0,_t=$t.length;Ft<_t;Ft++){var Ct=$t[Ft];if(Ct.type!=="code"){ct(Ct.content);continue}var xt=Ct.content[1],St=Ct.content[3];if(xt&&St&&xt.type==="code-language"&&St.type==="code-block"&&typeof xt.content=="string"){var ft=xt.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");ft=(/[a-z][\w-]*/i.exec(ft)||[""])[0].toLowerCase();var vt="language-"+ft;St.alias?typeof St.alias=="string"?St.alias=[St.alias,vt]:St.alias.push(vt):St.alias=[vt]}}}ct(Mt.tokens)}),E.hooks.add("wrap",function(Mt){if(Mt.type==="code-block"){for(var ct="",$t=0,Ft=Mt.classes.length;$t<Ft;$t++){var _t=Mt.classes[$t],Ct=/language-(.+)/.exec(_t);if(Ct){ct=Ct[1];break}}var xt=E.languages[ct];if(xt)Mt.content=E.highlight(Y(Mt.content.value),xt,ct);else if(ct&&ct!=="none"&&E.plugins.autoloader){var St="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);Mt.attributes.id=St,E.plugins.autoloader.loadLanguages(ct,function(){var ft=document.getElementById(St);ft&&(ft.innerHTML=E.highlight(ft.textContent,E.languages[ct],ct))})}}});var Z=RegExp(E.languages.markup.tag.pattern.source,"gi"),lt={amp:"&",lt:"<",gt:">",quot:'"'},J=String.fromCodePoint||String.fromCharCode;function Y(Mt){var ct=Mt.replace(Z,"");return ct=ct.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function($t,Ft){if(Ft=Ft.toLowerCase(),Ft[0]==="#"){var _t;return Ft[1]==="x"?_t=parseInt(Ft.slice(2),16):_t=Number(Ft.slice(1)),J(_t)}else{var Ct=lt[Ft];return Ct||$t}}),ct}E.languages.md=E.languages.markdown})(p)}},51478:function(j){"use strict";j.exports=S,S.displayName="markupTemplating",S.aliases=[];function S(p){(function(E){function I(D,P){return"___"+D.toUpperCase()+P+"___"}Object.defineProperties(E.languages["markup-templating"]={},{buildPlaceholders:{value:function(D,P,V,C){if(D.language===P){var Z=D.tokenStack=[];D.code=D.code.replace(V,function(lt){if(typeof C=="function"&&!C(lt))return lt;for(var J=Z.length,Y;D.code.indexOf(Y=I(P,J))!==-1;)++J;return Z[J]=lt,Y}),D.grammar=E.languages.markup}}},tokenizePlaceholders:{value:function(D,P){if(D.language!==P||!D.tokenStack)return;D.grammar=E.languages[P];var V=0,C=Object.keys(D.tokenStack);function Z(lt){for(var J=0;J<lt.length&&!(V>=C.length);J++){var Y=lt[J];if(typeof Y=="string"||Y.content&&typeof Y.content=="string"){var Mt=C[V],ct=D.tokenStack[Mt],$t=typeof Y=="string"?Y:Y.content,Ft=I(P,Mt),_t=$t.indexOf(Ft);if(_t>-1){++V;var Ct=$t.substring(0,_t),xt=new E.Token(P,E.tokenize(ct,D.grammar),"language-"+P,ct),St=$t.substring(_t+Ft.length),ft=[];Ct&&ft.push.apply(ft,Z([Ct])),ft.push(xt),St&&ft.push.apply(ft,Z([St])),typeof Y=="string"?lt.splice.apply(lt,[J,1].concat(ft)):Y.content=ft}}else Y.content&&Z(Y.content)}return lt}Z(D.tokens)}}})})(p)}},70614:function(j){"use strict";j.exports=S,S.displayName="markup",S.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function S(p){p.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]},p.languages.markup.tag.inside["attr-value"].inside.entity=p.languages.markup.entity,p.languages.markup.doctype.inside["internal-subset"].inside=p.languages.markup,p.hooks.add("wrap",function(E){E.type==="entity"&&(E.attributes.title=E.content.value.replace(/&/,"&"))}),Object.defineProperty(p.languages.markup.tag,"addInlined",{value:function(I,D){var P={};P["language-"+D]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:p.languages[D]},P.cdata=/^<!\[CDATA\[|\]\]>$/i;var V={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:P}};V["language-"+D]={pattern:/[\s\S]+/,inside:p.languages[D]};var C={};C[I]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return I}),"i"),lookbehind:!0,greedy:!0,inside:V},p.languages.insertBefore("markup","cdata",C)}}),Object.defineProperty(p.languages.markup.tag,"addAttribute",{value:function(E,I){p.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+E+")"+/\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:[I,"language-"+I],inside:p.languages[I]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),p.languages.html=p.languages.markup,p.languages.mathml=p.languages.markup,p.languages.svg=p.languages.markup,p.languages.xml=p.languages.extend("markup",{}),p.languages.ssml=p.languages.xml,p.languages.atom=p.languages.xml,p.languages.rss=p.languages.xml}},16928:function(j){"use strict";j.exports=S,S.displayName="matlab",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="maxscript",S.aliases=[];function S(p){(function(E){var I=/\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;E.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)+")[ ]*)(?!"+I.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+I.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:I,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}})(p)}},37164:function(j){"use strict";j.exports=S,S.displayName="mel",S.aliases=[];function S(p){p.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:/<<|>>|[.,:;?\[\](){}]/},p.languages.mel.code.inside.rest=p.languages.mel}},25153:function(j){"use strict";j.exports=S,S.displayName="mermaid",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="mizar",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="mongodb",S.aliases=[];function S(p){(function(E){var I=["$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"],D=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];I=I.map(function(V){return V.replace("$","\\$")});var P="(?:"+I.join("|")+")\\b";E.languages.mongodb=E.languages.extend("javascript",{}),E.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(`^(['"])?`+P+"(?:\\1)?$")}}}),E.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}},E.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+D.join("|")+")\\b"),alias:"keyword"}})})(p)}},65626:function(j){"use strict";j.exports=S,S.displayName="monkey",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="moonscript",S.aliases=["moon"];function S(p){p.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:/[.,()[\]{}\\]/},p.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=p.languages.moonscript,p.languages.moon=p.languages.moonscript}},40722:function(j){"use strict";j.exports=S,S.displayName="n1ql",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="n4js",S.aliases=["n4jsd"];function S(p){p.languages.n4js=p.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/}),p.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),p.languages.n4jsd=p.languages.n4js}},41224:function(j){"use strict";j.exports=S,S.displayName="nand2tetrisHdl",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="naniscript",S.aliases=[];function S(p){(function(E){var I=/\{[^\r\n\[\]{}]*\}/,D={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:I,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};E.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:I,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:D}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:I,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:D},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},E.languages.nani=E.languages.naniscript,E.hooks.add("after-tokenize",function(C){var Z=C.tokens;Z.forEach(function(lt){if(typeof lt!="string"&<.type==="generic-text"){var J=V(lt);P(J)||(lt.type="bad-line",lt.content=J)}})});function P(C){for(var Z="[]{}",lt=[],J=0;J<C.length;J++){var Y=C[J],Mt=Z.indexOf(Y);if(Mt!==-1){if(Mt%2===0)lt.push(Mt+1);else if(lt.pop()!==Mt)return!1}}return lt.length===0}function V(C){return typeof C=="string"?C:Array.isArray(C)?C.map(V).join(""):V(C.content)}})(p)}},42846:function(j){"use strict";j.exports=S,S.displayName="nasm",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="neon",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="nevod",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="nginx",S.aliases=[];function S(p){(function(E){var I=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;E.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:I}},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:I}},punctuation:/[{};]/}})(p)}},66791:function(j){"use strict";j.exports=S,S.displayName="nim",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="nix",S.aliases=[];function S(p){p.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:/[{}()[\].,:;]/},p.languages.nix.string.inside.interpolation.inside=p.languages.nix}},13490:function(j){"use strict";j.exports=S,S.displayName="nsis",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(79440);j.exports=I,I.displayName="objectivec",I.aliases=["objc"];function I(D){D.register(E),D.languages.objectivec=D.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 D.languages.objectivec["class-name"],D.languages.objc=D.languages.objectivec}},66894:function(j){"use strict";j.exports=S,S.displayName="ocaml",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(79440);j.exports=I,I.displayName="opencl",I.aliases=[];function I(D){D.register(E),function(P){P.languages.opencl=P.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"}}),P.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 V={"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"}};P.languages.insertBefore("c","keyword",V),P.languages.cpp&&(V["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"},P.languages.insertBefore("cpp","keyword",V))}(D)}},27734:function(j){"use strict";j.exports=S,S.displayName="openqasm",S.aliases=["qasm"];function S(p){p.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:/[(){}\[\];,:.]/},p.languages.qasm=p.languages.openqasm}},91889:function(j){"use strict";j.exports=S,S.displayName="oz",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="parigp",S.aliases=[];function S(p){p.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var E=["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 E=E.map(function(I){return I.split("").join(" *")}).join("|"),RegExp("\\b(?:"+E+")\\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(j){"use strict";j.exports=S,S.displayName="parser",S.aliases=[];function S(p){(function(E){var I=E.languages.parser=E.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:/[\[\](){};]/});I=E.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:I.keyword,variable:I.variable,function:I.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:I.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:I.punctuation}}}),E.languages.insertBefore("inside","punctuation",{expression:I.expression,keyword:I.keyword,variable:I.variable,function:I.function,escape:I.escape,"parser-punctuation":{pattern:I.punctuation,alias:"punctuation"}},I.tag.inside["attr-value"])})(p)}},92949:function(j){"use strict";j.exports=S,S.displayName="pascal",S.aliases=["objectpascal"];function S(p){p.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:/\(\.|\.\)|[()\[\]:;,.]/},p.languages.pascal.asm.inside=p.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),p.languages.objectpascal=p.languages.pascal}},5681:function(j){"use strict";j.exports=S,S.displayName="pascaligo",S.aliases=[];function S(p){(function(E){var I=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,D=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return I}),P=E.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 D}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return D}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return D})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},V=["comment","keyword","builtin","operator","punctuation"].reduce(function(C,Z){return C[Z]=P[Z],C},{});P["class-name"].forEach(function(C){C.inside=V})})(p)}},70696:function(j){"use strict";j.exports=S,S.displayName="pcaxis",S.aliases=["px"];function S(p){p.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/},p.languages.px=p.languages.pcaxis}},35790:function(j){"use strict";j.exports=S,S.displayName="peoplecode",S.aliases=["pcode"];function S(p){p.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:/[:.;,()[\]]/},p.languages.pcode=p.languages.peoplecode}},25777:function(j){"use strict";j.exports=S,S.displayName="perl",S.aliases=[];function S(p){(function(E){var I=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;E.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,I].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,I].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,I+/\s*/.source+I].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:/[{}[\];(),:]/}})(p)}},65889:function(j,S,p){"use strict";var E=p(53852);j.exports=I,I.displayName="phpExtras",I.aliases=[];function I(D){D.register(E),D.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(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="php",I.aliases=[];function I(D){D.register(E),function(P){var V=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,C=[{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*\()/],Z=/\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,lt=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,J=/[{}\[\](),:;]/;P.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:V,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:C,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Z,operator:lt,punctuation:J};var Y={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:P.languages.php},Mt=[{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:Y}},{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:Y}}];P.languages.insertBefore("php","variable",{string:Mt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:V,string:Mt,"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:C,number:Z,operator:lt,punctuation:J}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),P.hooks.add("before-tokenize",function(ct){if(/<\?/.test(ct.code)){var $t=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;P.languages["markup-templating"].buildPlaceholders(ct,"php",$t)}}),P.hooks.add("after-tokenize",function(ct){P.languages["markup-templating"].tokenizePlaceholders(ct,"php")})}(D)}},97719:function(j,S,p){"use strict";var E=p(53852),I=p(53510);j.exports=D,D.displayName="phpdoc",D.aliases=[];function D(P){P.register(E),P.register(I),function(V){var C=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;V.languages.phpdoc=V.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+C+"\\s+)?)\\$\\w+"),lookbehind:!0}}),V.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+C),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),V.languages.javadoclike.addSupport("php",V.languages.phpdoc)}(P)}},63839:function(j,S,p){"use strict";var E=p(69435);j.exports=I,I.displayName="plsql",I.aliases=[];function I(D){D.register(E),D.languages.plsql=D.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),D.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(j){"use strict";j.exports=S,S.displayName="powerquery",S.aliases=[];function S(p){p.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:/[,;\[\](){}]/},p.languages.pq=p.languages.powerquery,p.languages.mscript=p.languages.powerquery}},32530:function(j){"use strict";j.exports=S,S.displayName="powershell",S.aliases=[];function S(p){(function(E){var I=E.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:/[|{}[\];(),.]/};I.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:I},boolean:I.boolean,variable:I.variable}})(p)}},8938:function(j){"use strict";j.exports=S,S.displayName="processing",S.aliases=[];function S(p){p.languages.processing=p.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),p.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(j){"use strict";j.exports=S,S.displayName="prolog",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="promql",S.aliases=[];function S(p){(function(E){var I=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],D=["on","ignoring","group_right","group_left","by","without"],P=["offset"],V=I.concat(D,P);E.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+D.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(?:"+V.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:/[{};()`,.[\]]/}})(p)}},15375:function(j){"use strict";j.exports=S,S.displayName="properties",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="protobuf",S.aliases=[];function S(p){(function(E){var I=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;E.languages.protobuf=E.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}),E.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:I}},builtin:I,"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}})})(p)}},83588:function(j){"use strict";j.exports=S,S.displayName="psl",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="pug",S.aliases=[];function S(p){(function(E){E.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:E.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:E.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:E.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:E.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:E.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:E.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:E.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:E.languages.javascript}],punctuation:/[.\-!=|]+/};for(var I=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,D=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],P={},V=0,C=D.length;V<C;V++){var Z=D[V];Z=typeof Z=="string"?{filter:Z,language:Z}:Z,E.languages[Z.language]&&(P["filter-"+Z.filter]={pattern:RegExp(I.replace("<filter_name>",function(){return Z.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[Z.language,"language-"+Z.language],inside:E.languages[Z.language]}}})}E.languages.insertBefore("pug","filter",P)})(p)}},21294:function(j){"use strict";j.exports=S,S.displayName="puppet",S.aliases=[];function S(p){(function(E){E.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 I=[{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:E.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];E.languages.puppet.heredoc[0].inside.interpolation=I,E.languages.puppet.string.inside["double-quoted"].inside.interpolation=I})(p)}},38709:function(j){"use strict";j.exports=S,S.displayName="pure",S.aliases=[];function S(p){(function(E){E.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 I=["c",{lang:"c++",alias:"cpp"},"fortran"],D=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;I.forEach(function(P){var V=P;if(typeof P!="string"&&(V=P.alias,P=P.lang),E.languages[V]){var C={};C["inline-lang-"+V]={pattern:RegExp(D.replace("<lang>",P.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:E.util.clone(E.languages.pure["inline-lang"].inside)},C["inline-lang-"+V].inside.rest=E.util.clone(E.languages[V]),E.languages.insertBefore("pure","inline-lang",C)}}),E.languages.c&&(E.languages.pure["inline-lang"].inside.rest=E.util.clone(E.languages.c))})(p)}},15008:function(j){"use strict";j.exports=S,S.displayName="purebasic",S.aliases=[];function S(p){p.languages.purebasic=p.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+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),p.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 p.languages.purebasic["class-name"],delete p.languages.purebasic.boolean,p.languages.pbfasm=p.languages.purebasic}},96549:function(j,S,p){"use strict";var E=p(2050);j.exports=I,I.displayName="purescript",I.aliases=["purs"];function I(D){D.register(E),D.languages.purescript=D.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:[D.languages.haskell.operator[0],D.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]/]}),D.languages.purs=D.languages.purescript}},5221:function(j){"use strict";j.exports=S,S.displayName="python",S.aliases=["py"];function S(p){p.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://,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:/[{}[\];(),.:]/},p.languages.python["string-interpolation"].inside.interpolation.inside.rest=p.languages.python,p.languages.py=p.languages.python}},27447:function(j){"use strict";j.exports=S,S.displayName="q",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="qml",S.aliases=[];function S(p){(function(E){for(var I=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,D=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,P=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return I}).replace(/<comment>/g,function(){return D}),V=0;V<2;V++)P=P.replace(/<expr>/g,function(){return P});P=P.replace(/<expr>/g,"[^\\s\\S]"),E.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 P}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:E.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 P}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:E.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(p)}},75542:function(j){"use strict";j.exports=S,S.displayName="qore",S.aliases=[];function S(p){p.languages.qore=p.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(j){"use strict";j.exports=S,S.displayName="qsharp",S.aliases=["qs"];function S(p){(function(E){function I($t,Ft){return $t.replace(/<<(\d+)>>/g,function(_t,Ct){return"(?:"+Ft[+Ct]+")"})}function D($t,Ft,_t){return RegExp(I($t,Ft),_t||"")}function P($t,Ft){for(var _t=0;_t<Ft;_t++)$t=$t.replace(/<<self>>/g,function(){return"(?:"+$t+")"});return $t.replace(/<<self>>/g,"[^\\s\\S]")}var V={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 C($t){return"\\b(?:"+$t.trim().replace(/ /g,"|")+")\\b"}var Z=RegExp(C(V.type+" "+V.other)),lt=/\b[A-Za-z_]\w*\b/.source,J=I(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[lt]),Y={keyword:Z,punctuation:/[<>()?,.:[\]]/},Mt=/"(?:\\.|[^\\"])*"/.source;E.languages.qsharp=E.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:D(/(^|[^$\\])<<0>>/.source,[Mt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:D(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[J]),lookbehind:!0,inside:Y},{pattern:D(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[J]),lookbehind:!0,inside:Y}],keyword:Z,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:/::|[{}[\];(),.:]/}),E.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var ct=P(I(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[Mt]),2);E.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:D(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[ct]),greedy:!0,inside:{interpolation:{pattern:D(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[ct]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:E.languages.qsharp}}},string:/[\s\S]+/}}})})(p),p.languages.qs=p.languages.qsharp}},44298:function(j){"use strict";j.exports=S,S.displayName="r",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(48780);j.exports=I,I.displayName="racket",I.aliases=["rkt"];function I(D){D.register(E),D.languages.racket=D.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),D.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),D.languages.rkt=D.languages.racket}},75266:function(j){"use strict";j.exports=S,S.displayName="reason",S.aliases=[];function S(p){p.languages.reason=p.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/}),p.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 p.languages.reason.function}},48139:function(j){"use strict";j.exports=S,S.displayName="regex",S.aliases=[];function S(p){(function(E){var I={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},D=/\\(?: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]|.)/,P={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},V={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},C="(?:[^\\\\-]|"+D.source+")",Z=RegExp(C+"-"+C),lt={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};E.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:Z,inside:{escape:D,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":I,"char-set":V,escape:D}},"special-escape":I,"char-set":P,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":lt}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:D,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":lt}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(p)}},97534:function(j){"use strict";j.exports=S,S.displayName="rego",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="renpy",S.aliases=["rpy"];function S(p){p.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:/[{}[\];(),.:]/},p.languages.rpy=p.languages.renpy}},63919:function(j){"use strict";j.exports=S,S.displayName="rest",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="rip",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="roboconf",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="robotframework",S.aliases=[];function S(p){(function(E){var I={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},D={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function P(lt,J){var Y={};Y["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var Mt in J)Y[Mt]=J[Mt];return Y.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Y.variable=D,Y.comment=I,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return lt}),"im"),alias:"section",inside:Y}}var V={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},C={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:D}},Z={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:D}};E.languages.robotframework={settings:P("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:P("Variables"),"test-cases":P("Test Cases",{"test-name":C,documentation:V,property:Z}),keywords:P("Keywords",{"keyword-name":C,documentation:V,property:Z}),tasks:P("Tasks",{"task-name":C,documentation:V,property:Z}),comment:I},E.languages.robot=E.languages.robotframework})(p)}},75308:function(j){"use strict";j.exports=S,S.displayName="ruby",S.aliases=["rb"];function S(p){(function(E){E.languages.ruby=E.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:/[(){}[\].,;]/}),E.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var I={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:E.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete E.languages.ruby.function;var D="(?:"+[/([^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("|")+")",P=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;E.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+D+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:I,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:I,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+P),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+P+/(?=:(?!:))/.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:/\./}}}),E.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+D),greedy:!0,inside:{interpolation:I,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:I,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:I,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+D),greedy:!0,inside:{interpolation:I,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:I,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete E.languages.ruby.string,E.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)/}),E.languages.rb=E.languages.ruby})(p)}},45315:function(j){"use strict";j.exports=S,S.displayName="rust",S.aliases=[];function S(p){(function(E){for(var I=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,D=0;D<2;D++)I=I.replace(/<self>/g,function(){return I});I=I.replace(/<self>/g,function(){return/[^\s\S]/.source}),E.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+I),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},E.languages.rust["closure-params"].inside.rest=E.languages.rust,E.languages.rust.attribute.inside.string=E.languages.rust.string})(p)}},13794:function(j){"use strict";j.exports=S,S.displayName="sas",S.aliases=[];function S(p){(function(E){var I=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,D=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,P={pattern:RegExp(I+"[bx]"),alias:"number"},V={pattern:/&[a-z_]\w*/i},C={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"},Z={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},lt=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],J={pattern:RegExp(I),greedy:!0},Y=/[$%@.(){}\[\];,\\]/,Mt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},ct={function:Mt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":V,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:D,"numeric-constant":P,punctuation:Y,string:J},$t={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Ft={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},_t={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"},Ct={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},xt=/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,St={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return xt}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return xt}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:lt,function:Mt,"arg-value":ct["arg-value"],operator:ct.operator,argument:ct.arg,number:D,"numeric-constant":P,punctuation:Y,string:J}},ft={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};E.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 I}),"im"),alias:"language-sql",inside:E.languages.sql},"global-statements":_t,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:D,"numeric-constant":P,punctuation:Y,string:J}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:lt,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,alias:"language-groovy",inside:E.languages.groovy},keyword:ft,"submit-statement":Ct,"global-statements":_t,number:D,"numeric-constant":P,punctuation:Y,string:J}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:lt,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,alias:"language-lua",inside:E.languages.lua},keyword:ft,"submit-statement":Ct,"global-statements":_t,number:D,"numeric-constant":P,punctuation:Y,string:J}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:lt,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:ct}},"cas-actions":St,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:ct},step:Z,keyword:ft,function:Mt,format:$t,altformat:Ft,"global-statements":_t,number:D,"numeric-constant":P,punctuation:Y,string:J}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,inside:ct},"macro-keyword":C,"macro-variable":V,"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":C,"macro-variable":V,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:Y}},"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:lt,number:D,"numeric-constant":P}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:ct},"cas-actions":St,comment:lt,function:Mt,format:$t,altformat:Ft,"numeric-constant":P,datetime:{pattern:RegExp(I+"(?:dt?|t)"),alias:"number"},string:J,step:Z,keyword:ft,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:D,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Y}})(p)}},41299:function(j){"use strict";j.exports=S,S.displayName="sass",S.aliases=[];function S(p){(function(E){E.languages.sass=E.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),E.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete E.languages.sass.atrule;var I=/\$[-\w]+|#\{\$[-\w]+\}/,D=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];E.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:I,operator:D}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:I,operator:D,important:E.languages.sass.important}}}),delete E.languages.sass.property,delete E.languages.sass.important,E.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}})})(p)}},98177:function(j,S,p){"use strict";var E=p(7093);j.exports=I,I.displayName="scala",I.aliases=[];function I(D){D.register(E),D.languages.scala=D.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*/}),D.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:D.languages.scala}}},string:/[\s\S]+/}}}),delete D.languages.scala["class-name"],delete D.languages.scala.function}},48780:function(j){"use strict";j.exports=S,S.displayName="scheme",S.aliases=[];function S(p){(function(E){E.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(I({"<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 I(D){for(var P in D)D[P]=D[P].replace(/<[\w\s]+>/g,function(V){return"(?:"+D[V].trim()+")"});return D[P]}})(p)}},79793:function(j){"use strict";j.exports=S,S.displayName="scss",S.aliases=[];function S(p){p.languages.scss=p.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]+\}/}}}),p.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}]}),p.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),p.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}}),p.languages.scss.atrule.inside.rest=p.languages.scss}},52085:function(j,S,p){"use strict";var E=p(3058);j.exports=I,I.displayName="shellSession",I.aliases=[];function I(D){D.register(E),function(P){var V=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");P.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 V}),"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:P.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},P.languages["sh-session"]=P.languages.shellsession=P.languages["shell-session"]}(D)}},65411:function(j){"use strict";j.exports=S,S.displayName="smali",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="smalltalk",S.aliases=[];function S(p){p.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(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="smarty",I.aliases=[];function I(D){D.register(E),function(P){P.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:P.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/]},P.languages.smarty["embedded-php"].inside.smarty.inside=P.languages.smarty,P.languages.smarty.string[0].inside.interpolation.inside.expression.inside=P.languages.smarty;var V=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,C=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return V.source}),"g");P.hooks.add("before-tokenize",function(Z){var lt="{literal}",J="{/literal}",Y=!1;P.languages["markup-templating"].buildPlaceholders(Z,"smarty",C,function(Mt){return Mt===J&&(Y=!1),Y?!1:(Mt===lt&&(Y=!0),!0)})}),P.hooks.add("after-tokenize",function(Z){P.languages["markup-templating"].tokenizePlaceholders(Z,"smarty")})}(D)}},66433:function(j){"use strict";j.exports=S,S.displayName="sml",S.aliases=["smlnj"];function S(p){(function(E){var I=/\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;E.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 I.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:I,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:/[(){}\[\].:,;]/},E.languages.sml["class-name"][0].inside=E.languages.sml,E.languages.smlnj=E.languages.sml})(p)}},34855:function(j){"use strict";j.exports=S,S.displayName="solidity",S.aliases=["sol"];function S(p){p.languages.solidity=p.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),p.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/}),p.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),p.languages.sol=p.languages.solidity}},12998:function(j){"use strict";j.exports=S,S.displayName="solutionFile",S.aliases=[];function S(p){(function(E){var I={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};E.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:I}},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:I}},guid:I,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},E.languages.sln=E.languages["solution-file"]})(p)}},10202:function(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="soy",I.aliases=[];function I(D){D.register(E),function(P){var V=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,C=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;P.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:V,greedy:!0},number:C,punctuation:/[\[\].?]/}},string:{pattern:V,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:C,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},P.hooks.add("before-tokenize",function(Z){var lt=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,J="{literal}",Y="{/literal}",Mt=!1;P.languages["markup-templating"].buildPlaceholders(Z,"soy",lt,function(ct){return ct===Y&&(Mt=!1),Mt?!1:(ct===J&&(Mt=!0),!0)})}),P.hooks.add("after-tokenize",function(Z){P.languages["markup-templating"].tokenizePlaceholders(Z,"soy")})}(D)}},41186:function(j,S,p){"use strict";var E=p(58710);j.exports=I,I.displayName="sparql",I.aliases=["rq"];function I(D){D.register(E),D.languages.sparql=D.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),D.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]}),D.languages.rq=D.languages.sparql}},68963:function(j){"use strict";j.exports=S,S.displayName="splunkSpl",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="sqf",S.aliases=[];function S(p){p.languages.sqf=p.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}),p.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:p.languages.sqf.comment}}}),delete p.languages.sqf["class-name"]}},69435:function(j){"use strict";j.exports=S,S.displayName="sql",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="squirrel",S.aliases=[];function S(p){p.languages.squirrel=p.languages.extend("clike",{comment:[p.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:/[(){}\[\],;.]/}),p.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),p.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(j){"use strict";j.exports=S,S.displayName="stan",S.aliases=[];function S(p){(function(E){var I=/\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/;E.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("("+I.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/,I],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:/[()\[\]{},;]/},E.languages.stan.constraint.inside.expression.inside=E.languages.stan})(p)}},89032:function(j){"use strict";j.exports=S,S.displayName="stylus",S.aliases=[];function S(p){(function(E){var I={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},D={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},P={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:I,number:D,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:I,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:D,punctuation:/[{}()\[\];:,]/};P.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:P}},P.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:P}},E.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:P}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:P}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:P}},"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:P.interpolation}},rest:P}},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:P.interpolation,comment:P.comment,punctuation:/[{},]/}},func:P.func,string:P.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:P.interpolation,punctuation:/[{}()\[\];:.]/}})(p)}},40241:function(j){"use strict";j.exports=S,S.displayName="swift",S.aliases=[];function S(p){p.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:/[{}[\]();,.:\\]/},p.languages.swift["string-literal"].forEach(function(E){E.inside.interpolation.inside=p.languages.swift})}},24812:function(j){"use strict";j.exports=S,S.displayName="systemd",S.aliases=[];function S(p){(function(E){var I={pattern:/^[;#].*/m,greedy:!0},D=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;E.languages.systemd={comment:I,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+"(?:"+D+`|(?=[^"\r
|
|
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+D+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:I,quoted:{pattern:RegExp(/(^|\s)/.source+D),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(p)}},16747:function(j,S,p){"use strict";var E=p(73584),I=p(87648);j.exports=D,D.displayName="t4Cs",D.aliases=[];function D(P){P.register(E),P.register(I),P.languages.t4=P.languages["t4-cs"]=P.languages["t4-templating"].createT4("csharp")}},73584:function(j){"use strict";j.exports=S,S.displayName="t4Templating",S.aliases=[];function S(p){(function(E){function I(P,V,C){return{pattern:RegExp("<#"+P+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+P+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:V,alias:C}}}}function D(P){var V=E.languages[P],C="language-"+P;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:I("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:I("=",V,C),"class-feature":I("\\+",V,C),standard:I("",V,C)}}}}E.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:D})})(p)}},79243:function(j,S,p){"use strict";var E=p(73584),I=p(55686);j.exports=D,D.displayName="t4Vb",D.aliases=[];function D(P){P.register(E),P.register(I),P.languages["t4-vb"]=P.languages["t4-templating"].createT4("vbnet")}},31788:function(j,S,p){"use strict";var E=p(14409);j.exports=I,I.displayName="tap",I.aliases=[];function I(D){D.register(E),D.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:D.languages.yaml,alias:"language-yaml"}}}},60871:function(j){"use strict";j.exports=S,S.displayName="tcl",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="textile",S.aliases=[];function S(p){(function(E){var I=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,D=/\)|\((?![^|()\n]+\))/.source;function P(Mt,ct){return RegExp(Mt.replace(/<MOD>/g,function(){return"(?:"+I+")"}).replace(/<PAR>/g,function(){return"(?:"+D+")"}),ct||"")}var V={css:{pattern:/\{[^{}]+\}/,inside:{rest:E.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},C=E.languages.textile=E.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:P(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:P(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:V},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:P(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:P(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:V},punctuation:/^[*#]+/}},table:{pattern:P(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:P(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:V},punctuation:/\||^\./}},inline:{pattern:P(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:P(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:P(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:P(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:P(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:P(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:P(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:P(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:P(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:V},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:P(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:P(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:P(/(^")<MOD>+/.source),lookbehind:!0,inside:V},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:P(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:P(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:P(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:V},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:/[()]/}}}}}),Z=C.phrase.inside,lt={inline:Z.inline,link:Z.link,image:Z.image,footnote:Z.footnote,acronym:Z.acronym,mark:Z.mark};C.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var J=Z.inline.inside;J.bold.inside=lt,J.italic.inside=lt,J.inserted.inside=lt,J.deleted.inside=lt,J.span.inside=lt;var Y=Z.table.inside;Y.inline=lt.inline,Y.link=lt.link,Y.image=lt.image,Y.footnote=lt.footnote,Y.acronym=lt.acronym,Y.mark=lt.mark})(p)}},14693:function(j){"use strict";j.exports=S,S.displayName="toml",S.aliases=[];function S(p){(function(E){var I=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function D(P){return P.replace(/__/g,function(){return I})}E.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(D(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(D(/(^[\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:/[.,=[\]{}]/}})(p)}},8743:function(j){"use strict";j.exports=S,S.displayName="tremor",S.aliases=[];function S(p){(function(E){E.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 I=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;E.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+I+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+I+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(I),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:E.languages.tremor}}},string:/[\s\S]+/}},E.languages.troy=E.languages.tremor,E.languages.trickle=E.languages.tremor})(p)}},1689:function(j,S,p){"use strict";var E=p(24103),I=p(92784);j.exports=D,D.displayName="tsx",D.aliases=[];function D(P){P.register(E),P.register(I),function(V){var C=V.util.clone(V.languages.typescript);V.languages.tsx=V.languages.extend("jsx",C),delete V.languages.tsx.parameter,delete V.languages.tsx["literal-property"];var Z=V.languages.tsx.tag;Z.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Z.pattern.source+")",Z.pattern.flags),Z.lookbehind=!0}(P)}},69210:function(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="tt2",I.aliases=[];function I(D){D.register(E),function(P){P.languages.tt2=P.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:/[[\]{},()]/}),P.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),P.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),P.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 P.languages.tt2.string,P.hooks.add("before-tokenize",function(V){var C=/\[%[\s\S]+?%\]/g;P.languages["markup-templating"].buildPlaceholders(V,"tt2",C)}),P.hooks.add("after-tokenize",function(V){P.languages["markup-templating"].tokenizePlaceholders(V,"tt2")})}(D)}},58710:function(j){"use strict";j.exports=S,S.displayName="turtle",S.aliases=[];function S(p){p.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:/@/}}},p.languages.trig=p.languages.turtle}},60452:function(j,S,p){"use strict";var E=p(51478);j.exports=I,I.displayName="twig",I.aliases=[];function I(D){D.register(E),D.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:/[()\[\]{}:.,]/},D.hooks.add("before-tokenize",function(P){if(P.language==="twig"){var V=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;D.languages["markup-templating"].buildPlaceholders(P,"twig",V)}}),D.hooks.add("after-tokenize",function(P){D.languages["markup-templating"].tokenizePlaceholders(P,"twig")})}},92784:function(j){"use strict";j.exports=S,S.displayName="typescript",S.aliases=["ts"];function S(p){(function(E){E.languages.typescript=E.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/}),E.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 E.languages.typescript.parameter,delete E.languages.typescript["literal-property"];var I=E.languages.extend("typescript",{});delete I["class-name"],E.languages.typescript["class-name"].inside=I,E.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:I}}}}),E.languages.ts=E.languages.typescript})(p)}},36489:function(j){"use strict";j.exports=S,S.displayName="typoscript",S.aliases=["tsconfig"];function S(p){(function(E){var I=/\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/;E.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:I}},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:I,number:/^\d+$/,punctuation:/[,|:]/}},keyword:I,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},E.languages.tsconfig=E.languages.typoscript})(p)}},78380:function(j){"use strict";j.exports=S,S.displayName="unrealscript",S.aliases=["uc","uscript"];function S(p){p.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:/[()[\]{};,.]/},p.languages.uc=p.languages.uscript=p.languages.unrealscript}},10409:function(j){"use strict";j.exports=S,S.displayName="uorazor",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="uri",S.aliases=["url"];function S(p){p.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":/\//}}},p.languages.url=p.languages.uri}},82028:function(j){"use strict";j.exports=S,S.displayName="v",S.aliases=[];function S(p){(function(E){var I={pattern:/[\s\S]+/,inside:null};E.languages.v=E.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":I}}}},"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/}),I.inside=E.languages.v,E.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),E.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+/}}}),E.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:E.languages.v.generic.inside}}}})})(p)}},62282:function(j){"use strict";j.exports=S,S.displayName="vala",S.aliases=[];function S(p){p.languages.vala=p.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/}),p.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:p.languages.vala}},string:/[\s\S]+/}}}),p.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:p.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(j,S,p){"use strict";var E=p(51422);j.exports=I,I.displayName="vbnet",I.aliases=[];function I(D){D.register(E),D.languages.vbnet=D.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(j){"use strict";j.exports=S,S.displayName="velocity",S.aliases=[];function S(p){(function(E){E.languages.velocity=E.languages.extend("markup",{});var I={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:/[(){}[\]:,.]/};I.variable.inside={string:I.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:I.number,boolean:I.boolean,punctuation:I.punctuation},E.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:I}},variable:I.variable}),E.languages.velocity.tag.inside["attr-value"].inside.rest=E.languages.velocity})(p)}},37116:function(j){"use strict";j.exports=S,S.displayName="verilog",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="vhdl",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="vim",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="visualBasic",S.aliases=[];function S(p){p.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:/[{}().,:?]/},p.languages.vb=p.languages["visual-basic"],p.languages.vba=p.languages["visual-basic"]}},17723:function(j){"use strict";j.exports=S,S.displayName="warpscript",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="wasm",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="webIdl",S.aliases=[];function S(p){(function(E){var I=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,D="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+I+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,P={};E.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+I),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:P},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+D),lookbehind:!0,inside:P},{pattern:RegExp("("+/\bcallback\s+/.source+I+/\s*=\s*/.source+")"+D),lookbehind:!0,inside:P},{pattern:RegExp(/(\btypedef\b\s*)/.source+D),lookbehind:!0,inside:P},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+I),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+I),lookbehind:!0},RegExp(I+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+I),lookbehind:!0},{pattern:RegExp(D+"(?="+/\s*(?:\.{3}\s*)?/.source+I+/\s*[(),;=]/.source+")"),inside:P}],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 V in E.languages["web-idl"])V!=="class-name"&&(P[V]=E.languages["web-idl"][V]);E.languages.webidl=E.languages["web-idl"]})(p)}},8921:function(j){"use strict";j.exports=S,S.displayName="wiki",S.aliases=[];function S(p){p.languages.wiki=p.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:p.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),p.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:p.languages.markup.tag.inside}}}})}},13429:function(j){"use strict";j.exports=S,S.displayName="wolfram",S.aliases=["mathematica","wl","nb"];function S(p){p.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:/[{}[\];(),.:]/},p.languages.mathematica=p.languages.wolfram,p.languages.wl=p.languages.wolfram,p.languages.nb=p.languages.wolfram}},65197:function(j){"use strict";j.exports=S,S.displayName="wren",S.aliases=[];function S(p){p.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:/[\[\](){}.,;]/},p.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:p.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(j){"use strict";j.exports=S,S.displayName="xeora",S.aliases=["xeoracube"];function S(p){(function(E){E.languages.xeora=E.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"}}),E.languages.insertBefore("inside","punctuation",{variable:E.languages.xeora["function-inline"].inside.variable},E.languages.xeora["function-block"]),E.languages.xeoracube=E.languages.xeora})(p)}},35:function(j){"use strict";j.exports=S,S.displayName="xmlDoc",S.aliases=[];function S(p){(function(E){function I(C,Z){E.languages[C]&&E.languages.insertBefore(C,"comment",{"doc-comment":Z})}var D=E.languages.markup.tag,P={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:D}},V={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:D}};I("csharp",P),I("fsharp",P),I("vbnet",V)})(p)}},86095:function(j){"use strict";j.exports=S,S.displayName="xojo",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="xquery",S.aliases=[];function S(p){(function(E){E.languages.xquery=E.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:/[[\](){},;:/]/}),E.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,E.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,E.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,E.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:E.languages.xquery,alias:"language-xquery"};var I=function(P){return typeof P=="string"?P:typeof P.content=="string"?P.content:P.content.map(I).join("")},D=function(P){for(var V=[],C=0;C<P.length;C++){var Z=P[C],lt=!1;if(typeof Z!="string"&&(Z.type==="tag"&&Z.content[0]&&Z.content[0].type==="tag"?Z.content[0].content[0].content==="</"?V.length>0&&V[V.length-1].tagName===I(Z.content[0].content[1])&&V.pop():Z.content[Z.content.length-1].content==="/>"||V.push({tagName:I(Z.content[0].content[1]),openedBraces:0}):V.length>0&&Z.type==="punctuation"&&Z.content==="{"&&(!P[C+1]||P[C+1].type!=="punctuation"||P[C+1].content!=="{")&&(!P[C-1]||P[C-1].type!=="plain-text"||P[C-1].content!=="{")?V[V.length-1].openedBraces++:V.length>0&&V[V.length-1].openedBraces>0&&Z.type==="punctuation"&&Z.content==="}"?V[V.length-1].openedBraces--:Z.type!=="comment"&&(lt=!0)),(lt||typeof Z=="string")&&V.length>0&&V[V.length-1].openedBraces===0){var J=I(Z);C<P.length-1&&(typeof P[C+1]=="string"||P[C+1].type==="plain-text")&&(J+=I(P[C+1]),P.splice(C+1,1)),C>0&&(typeof P[C-1]=="string"||P[C-1].type==="plain-text")&&(J=I(P[C-1])+J,P.splice(C-1,1),C--),/^\s+$/.test(J)?P[C]=J:P[C]=new E.Token("plain-text",J,null,J)}Z.content&&typeof Z.content!="string"&&D(Z.content)}};E.hooks.add("after-tokenize",function(P){P.language==="xquery"&&D(P.tokens)})})(p)}},14409:function(j){"use strict";j.exports=S,S.displayName="yaml",S.aliases=["yml"];function S(p){(function(E){var I=/[*&][^\s[\]{},]+/,D=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,P="(?:"+D.source+"(?:[ ]+"+I.source+")?|"+I.source+"(?:[ ]+"+D.source+")?)",V=/(?:[^\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}),C=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Z(lt,J){J=(J||"").replace(/m/g,"")+"m";var Y=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return P}).replace(/<<value>>/g,function(){return lt});return RegExp(Y,J)}E.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 P})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return P}).replace(/<<key>>/g,function(){return"(?:"+V+"|"+C+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Z(/\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:Z(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Z(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Z(C),lookbehind:!0,greedy:!0},number:{pattern:Z(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:D,important:I,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},E.languages.yml=E.languages.yaml})(p)}},33460:function(j){"use strict";j.exports=S,S.displayName="yang",S.aliases=[];function S(p){p.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(j){"use strict";j.exports=S,S.displayName="zig",S.aliases=[];function S(p){(function(E){function I(J){return function(){return J}}var D=/\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/,P="\\b(?!"+D.source+")(?!\\d)\\w+\\b",V=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,C=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,I(V)),Z=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,I(P)),lt="(?!\\s)(?:!?\\s*(?:"+C+"\\s*)*"+Z+")+";E.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,I(lt)).replace(/<ALIGN>/g,I(V))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,I(lt)).replace(/<ALIGN>/g,I(V))),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:D,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:/[.:,;(){}[\]]/},E.languages.zig["class-name"].forEach(function(J){J.inside===null&&(J.inside=E.languages.zig)})})(p)}},92848:function(j,S){"use strict";var p;S.Q=P,p=V;var E="",I=" ",D=/[ \t\n\r\f]+/g;function P(C){var Z=String(C||E).trim();return Z===E?[]:Z.split(D)}function V(C){return C.join(I).trim()}},6526:function(j,S,p){"use strict";var E=this&&this.__importDefault||function(V){return V&&V.__esModule?V:{default:V}},I=E(p(78846)),D=p(11160);function P(V,C){var Z={};return!V||typeof V!="string"||(0,I.default)(V,function(lt,J){lt&&J&&(Z[(0,D.camelCase)(lt,C)]=J)}),Z}P.default=P,j.exports=P},11160:function(j,S){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.camelCase=void 0;var p=/^--[a-zA-Z0-9_-]+$/,E=/-([a-z])/g,I=/^[^-]+$/,D=/^-(webkit|moz|ms|o|khtml)-/,P=/^-(ms)-/,V=function(J){return!J||I.test(J)||p.test(J)},C=function(J,Y){return Y.toUpperCase()},Z=function(J,Y){return"".concat(Y,"-")},lt=function(J,Y){return Y===void 0&&(Y={}),V(J)?J:(J=J.toLowerCase(),Y.reactCompat?J=J.replace(P,Z):J=J.replace(D,Z),J.replace(E,C))};S.camelCase=lt},78846:function(j,S,p){"use strict";var E=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(S,"__esModule",{value:!0}),S.default=D;var I=E(p(93193));function D(P,V){var C=null;if(!P||typeof P!="string")return C;var Z=(0,I.default)(P),lt=typeof V=="function";return Z.forEach(function(J){if(J.type==="declaration"){var Y=J.property,Mt=J.value;lt?V(Y,Mt,J):Mt&&(C=C||{},C[Y]=Mt)}}),C}},97270:function(j){j.exports=p;var S=Object.prototype.hasOwnProperty;function p(){for(var E={},I=0;I<arguments.length;I++){var D=arguments[I];for(var P in D)S.call(D,P)&&(E[P]=D[P])}return E}},90302:function(j,S,p){"use strict";p.d(S,{ZP:function(){return ot}});const E=-1,I=0,D=1,P=2,V=3,C=4,Z=5,lt=6,J=7,Y=8,Mt=typeof self=="object"?self:globalThis,ct=(st,q)=>{const wt=(pt,Ht)=>(st.set(Ht,pt),pt),Bt=pt=>{if(st.has(pt))return st.get(pt);const[Ht,At]=q[pt];switch(Ht){case I:case E:return wt(At,pt);case D:{const gt=wt([],pt);for(const Pt of At)gt.push(Bt(Pt));return gt}case P:{const gt=wt({},pt);for(const[Pt,kt]of At)gt[Bt(Pt)]=Bt(kt);return gt}case V:return wt(new Date(At),pt);case C:{const{source:gt,flags:Pt}=At;return wt(new RegExp(gt,Pt),pt)}case Z:{const gt=wt(new Map,pt);for(const[Pt,kt]of At)gt.set(Bt(Pt),Bt(kt));return gt}case lt:{const gt=wt(new Set,pt);for(const Pt of At)gt.add(Bt(Pt));return gt}case J:{const{name:gt,message:Pt}=At;return wt(new Mt[gt](Pt),pt)}case Y:return wt(BigInt(At),pt);case"BigInt":return wt(Object(BigInt(At)),pt);case"ArrayBuffer":return wt(new Uint8Array(At).buffer,At);case"DataView":{const{buffer:gt}=new Uint8Array(At);return wt(new DataView(gt),At)}}return wt(new Mt[Ht](At),pt)};return Bt},$t=st=>ct(new Map,st)(0),Ft="",{toString:_t}={},{keys:Ct}=Object,xt=st=>{const q=typeof st;if(q!=="object"||!st)return[I,q];const wt=_t.call(st).slice(8,-1);switch(wt){case"Array":return[D,Ft];case"Object":return[P,Ft];case"Date":return[V,Ft];case"RegExp":return[C,Ft];case"Map":return[Z,Ft];case"Set":return[lt,Ft];case"DataView":return[D,wt]}return wt.includes("Array")?[D,wt]:wt.includes("Error")?[J,wt]:[P,wt]},St=([st,q])=>st===I&&(q==="function"||q==="symbol"),ft=(st,q,wt,Bt)=>{const pt=(At,gt)=>{const Pt=Bt.push(At)-1;return wt.set(gt,Pt),Pt},Ht=At=>{if(wt.has(At))return wt.get(At);let[gt,Pt]=xt(At);switch(gt){case I:{let Gt=At;switch(Pt){case"bigint":gt=Y,Gt=At.toString();break;case"function":case"symbol":if(st)throw new TypeError("unable to serialize "+Pt);Gt=null;break;case"undefined":return pt([E],At)}return pt([gt,Gt],At)}case D:{if(Pt){let le=At;return Pt==="DataView"?le=new Uint8Array(At.buffer):Pt==="ArrayBuffer"&&(le=new Uint8Array(At)),pt([Pt,[...le]],At)}const Gt=[],ue=pt([gt,Gt],At);for(const le of At)Gt.push(Ht(le));return ue}case P:{if(Pt)switch(Pt){case"BigInt":return pt([Pt,At.toString()],At);case"Boolean":case"Number":case"String":return pt([Pt,At.valueOf()],At)}if(q&&"toJSON"in At)return Ht(At.toJSON());const Gt=[],ue=pt([gt,Gt],At);for(const le of Ct(At))(st||!St(xt(At[le])))&&Gt.push([Ht(le),Ht(At[le])]);return ue}case V:return pt([gt,At.toISOString()],At);case C:{const{source:Gt,flags:ue}=At;return pt([gt,{source:Gt,flags:ue}],At)}case Z:{const Gt=[],ue=pt([gt,Gt],At);for(const[le,re]of At)(st||!(St(xt(le))||St(xt(re))))&&Gt.push([Ht(le),Ht(re)]);return ue}case lt:{const Gt=[],ue=pt([gt,Gt],At);for(const le of At)(st||!St(xt(le)))&&Gt.push(Ht(le));return ue}}const{message:kt}=At;return pt([gt,{name:Pt,message:kt}],At)};return Ht},vt=(st,{json:q,lossy:wt}={})=>{const Bt=[];return ft(!(q||wt),!!q,new Map,Bt)(st),Bt};var ot=typeof structuredClone=="function"?(st,q)=>q&&("json"in q||"lossy"in q)?$t(vt(st,q)):structuredClone(st):(st,q)=>$t(vt(st,q))},11630:function(j,S,p){"use strict";p.d(S,{P:function(){return I},Q:function(){return E}});function E(D){const P=[],V=String(D||"");let C=V.indexOf(","),Z=0,lt=!1;for(;!lt;){C===-1&&(C=V.length,lt=!0);const J=V.slice(Z,C).trim();(J||!lt)&&P.push(J),Z=C+1,C=V.indexOf(",",Z)}return P}function I(D,P){const V=P||{};return(D[D.length-1]===""?[...D,""]:D).join((V.padRight?" ":"")+","+(V.padLeft===!1?"":" ")).trim()}},87342:function(j,S,p){"use strict";p.d(S,{ok:function(){return D},t1:function(){return P}});function E(V){return V}function I(){}function D(){}function P(){}},40797:function(j,S,p){"use strict";p.d(S,{N:function(){return $t}});var E=p(81994),I=p(43309);function D(_t,Ct){return P(_t,Ct||{})||{type:"root",children:[]}}function P(_t,Ct){const xt=V(_t,Ct);return xt&&Ct.afterTransform&&Ct.afterTransform(_t,xt),xt}function V(_t,Ct){switch(_t.nodeType){case 1:return Y(_t,Ct);case 3:return lt(_t);case 8:return J(_t);case 9:return C(_t,Ct);case 10:return Z();case 11:return C(_t,Ct);default:return}}function C(_t,Ct){return{type:"root",children:Mt(_t,Ct)}}function Z(){return{type:"doctype"}}function lt(_t){return{type:"text",value:_t.nodeValue||""}}function J(_t){return{type:"comment",value:_t.nodeValue||""}}function Y(_t,Ct){const xt=_t.namespaceURI,St=xt===I.t.svg?E.s:E.h,ft=xt===I.t.html?_t.tagName.toLowerCase():_t.tagName,vt=xt===I.t.html&&ft==="template"?_t.content:_t,ot=_t.getAttributeNames(),st={};let q=-1;for(;++q<ot.length;)st[ot[q]]=_t.getAttribute(ot[q])||"";return St(ft,st,Mt(vt,Ct))}function Mt(_t,Ct){const xt=_t.childNodes,St=[];let ft=-1;for(;++ft<xt.length;){const vt=P(xt[ft],Ct);vt!==void 0&&St.push(vt)}return St}const ct=new DOMParser;function $t(_t,Ct){const xt=Ct!=null&&Ct.fragment?Ft(_t):ct.parseFromString(_t,"text/html");return D(xt)}function Ft(_t){const Ct=document.createElement("template");return Ct.innerHTML=_t,Ct.content}},91378:function(j,S,p){"use strict";p.d(S,{l:function(){return St}});var E=p(10502);const I=function(At,gt,Pt){const kt=(0,E.O)(Pt);if(!At||!At.type||!At.children)throw new Error("Expected parent node");if(typeof gt=="number"){if(gt<0||gt===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(gt=At.children.indexOf(gt),gt<0)throw new Error("Expected child node or index");for(;++gt<At.children.length;)if(kt(At.children[gt],gt,At))return At.children[gt]},D=function(At,gt,Pt,kt,Gt){const ue=P(gt);if(Pt!=null&&(typeof Pt!="number"||Pt<0||Pt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(kt!=null&&(!kt.type||!kt.children))throw new Error("Expected valid `parent`");if(Pt==null!=(kt==null))throw new Error("Expected both `index` and `parent`");return J(At)?ue.call(Gt,At,Pt,kt):!1},P=function(At){if(At==null)return lt;if(typeof At=="string")return C(At);if(typeof At=="object")return V(At);if(typeof At=="function")return Z(At);throw new Error("Expected function, string, or array as `test`")};function V(At){const gt=[];let Pt=-1;for(;++Pt<At.length;)gt[Pt]=P(At[Pt]);return Z(kt);function kt(...Gt){let ue=-1;for(;++ue<gt.length;)if(gt[ue].apply(this,Gt))return!0;return!1}}function C(At){return Z(gt);function gt(Pt){return Pt.tagName===At}}function Z(At){return gt;function gt(Pt,kt,Gt){return!!(J(Pt)&&At.call(this,Pt,typeof kt=="number"?kt:void 0,Gt||void 0))}}function lt(At){return!!(At&&typeof At=="object"&&"type"in At&&At.type==="element"&&"tagName"in At&&typeof At.tagName=="string")}function J(At){return At!==null&&typeof At=="object"&&"type"in At&&"tagName"in At}const Y=/\n/g,Mt=/[\t ]+/g,ct=P("br"),$t=P(pt),Ft=P("p"),_t=P("tr"),Ct=P(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Bt,Ht]),xt=P(["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 St(At,gt){const Pt=gt||{},kt="children"in At?At.children:[],Gt=xt(At),ue=wt(At,{whitespace:Pt.whitespace||"normal",breakBefore:!1,breakAfter:!1}),le=[];(At.type==="text"||At.type==="comment")&&le.push(...ot(At,{whitespace:ue,breakBefore:!0,breakAfter:!0}));let re=-1;for(;++re<kt.length;)le.push(...ft(kt[re],At,{whitespace:ue,breakBefore:re?void 0:Gt,breakAfter:re<kt.length-1?ct(kt[re+1]):Gt}));const pe=[];let Dt;for(re=-1;++re<le.length;){const rt=le[re];typeof rt=="number"?Dt!==void 0&&rt>Dt&&(Dt=rt):rt&&(Dt!==void 0&&Dt>-1&&pe.push(`
|
|
|
`.repeat(Dt)||" "),Dt=-1,pe.push(rt))}return pe.join("")}function ft(At,gt,Pt){return At.type==="element"?vt(At,gt,Pt):At.type==="text"?Pt.whitespace==="normal"?ot(At,Pt):st(At):[]}function vt(At,gt,Pt){const kt=wt(At,Pt),Gt=At.children||[];let ue=-1,le=[];if(Ct(At))return le;let re,pe;for(ct(At)||_t(At)&&I(gt,At,_t)?pe=`
|
|
|
`:Ft(At)?(re=2,pe=2):xt(At)&&(re=1,pe=1);++ue<Gt.length;)le=le.concat(ft(Gt[ue],At,{whitespace:kt,breakBefore:ue?void 0:re,breakAfter:ue<Gt.length-1?ct(Gt[ue+1]):pe}));return $t(At)&&I(gt,At,$t)&&le.push(" "),re&&le.unshift(re),pe&&le.push(pe),le}function ot(At,gt){const Pt=String(At.value),kt=[],Gt=[];let ue=0;for(;ue<=Pt.length;){Y.lastIndex=ue;const pe=Y.exec(Pt),Dt=pe&&"index"in pe?pe.index:Pt.length;kt.push(q(Pt.slice(ue,Dt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),ue===0?gt.breakBefore:!0,Dt===Pt.length?gt.breakAfter:!0)),ue=Dt+1}let le=-1,re;for(;++le<kt.length;)kt[le].charCodeAt(kt[le].length-1)===8203||le<kt.length-1&&kt[le+1].charCodeAt(0)===8203?(Gt.push(kt[le]),re=void 0):kt[le]?(typeof re=="number"&&Gt.push(re),Gt.push(kt[le]),re=0):(le===0||le===kt.length-1)&&Gt.push(0);return Gt}function st(At){return[String(At.value)]}function q(At,gt,Pt){const kt=[];let Gt=0,ue;for(;Gt<At.length;){Mt.lastIndex=Gt;const le=Mt.exec(At);ue=le?le.index:At.length,!Gt&&!ue&&le&&!gt&&kt.push(""),Gt!==ue&&kt.push(At.slice(Gt,ue)),Gt=le?ue+le[0].length:ue}return Gt!==ue&&!Pt&&kt.push(""),kt.join(" ")}function wt(At,gt){if(At.type==="element"){const Pt=At.properties||{};switch(At.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return Pt.wrap?"pre-wrap":"pre";case"td":case"th":return Pt.noWrap?"nowrap":gt.whitespace;case"textarea":return"pre-wrap";default:}}return gt.whitespace}function Bt(At){return!!(At.properties||{}).hidden}function pt(At){return At.tagName==="td"||At.tagName==="th"}function Ht(At){return At.tagName==="dialog"&&!(At.properties||{}).open}},81994:function(j,S,p){"use strict";p.d(S,{h:function(){return Ct},s:function(){return xt}});var E=p(14470),I=p(11630);const D=/[#.]/g;function P(St,ft){const vt=St||"",ot={};let st=0,q,wt;for(;st<vt.length;){D.lastIndex=st;const Bt=D.exec(vt),pt=vt.slice(st,Bt?Bt.index:vt.length);pt&&(q?q==="#"?ot.id=pt:Array.isArray(ot.className)?ot.className.push(pt):ot.className=[pt]:wt=pt,st+=pt.length),Bt&&(q=Bt[0],st++)}return{type:"element",tagName:wt||ft||"div",properties:ot,children:[]}}var V=p(86825),C=p(13830),Z=p(71523);function lt(St,ft,vt){const ot=vt?Ft(vt):void 0;function st(q,wt,...Bt){let pt;if(q==null){pt={type:"root",children:[]};const Ht=wt;Bt.unshift(Ht)}else{pt=P(q,ft);const Ht=pt.tagName.toLowerCase(),At=ot?ot.get(Ht):void 0;if(pt.tagName=At||Ht,J(wt))Bt.unshift(wt);else for(const[gt,Pt]of Object.entries(wt))Y(St,pt.properties,gt,Pt)}for(const Ht of Bt)Mt(pt.children,Ht);return pt.type==="element"&&pt.tagName==="template"&&(pt.content={type:"root",children:pt.children},pt.children=[]),pt}return st}function J(St){if(St===null||typeof St!="object"||Array.isArray(St))return!0;if(typeof St.type!="string")return!1;const ft=St,vt=Object.keys(St);for(const ot of vt){const st=ft[ot];if(st&&typeof st=="object"){if(!Array.isArray(st))return!0;const q=st;for(const wt of q)if(typeof wt!="number"&&typeof wt!="string")return!0}}return!!("children"in St&&Array.isArray(St.children))}function Y(St,ft,vt,ot){const st=(0,V.s)(St,vt);let q;if(ot!=null){if(typeof ot=="number"){if(Number.isNaN(ot))return;q=ot}else typeof ot=="boolean"?q=ot:typeof ot=="string"?st.spaceSeparated?q=(0,Z.Q)(ot):st.commaSeparated?q=(0,I.Q)(ot):st.commaOrSpaceSeparated?q=(0,Z.Q)((0,I.Q)(ot).join(" ")):q=ct(st,st.property,ot):Array.isArray(ot)?q=[...ot]:q=st.property==="style"?$t(ot):String(ot);if(Array.isArray(q)){const wt=[];for(const Bt of q)wt.push(ct(st,st.property,Bt));q=wt}st.property==="className"&&Array.isArray(ft.className)&&(q=ft.className.concat(q)),ft[st.property]=q}}function Mt(St,ft){if(ft!=null)if(typeof ft=="number"||typeof ft=="string")St.push({type:"text",value:String(ft)});else if(Array.isArray(ft))for(const vt of ft)Mt(St,vt);else if(typeof ft=="object"&&"type"in ft)ft.type==="root"?Mt(St,ft.children):St.push(ft);else throw new Error("Expected node, nodes, or string, got `"+ft+"`")}function ct(St,ft,vt){if(typeof vt=="string"){if(St.number&&vt&&!Number.isNaN(Number(vt)))return Number(vt);if((St.boolean||St.overloadedBoolean)&&(vt===""||(0,C.F)(vt)===(0,C.F)(ft)))return!0}return vt}function $t(St){const ft=[];for(const[vt,ot]of Object.entries(St))ft.push([vt,ot].join(": "));return ft.join("; ")}function Ft(St){const ft=new Map;for(const vt of St)ft.set(vt.toLowerCase(),vt);return ft}const _t=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Ct=lt(E.dy,"div"),xt=lt(E.YP,"g",_t)},26735:function(j,S,p){"use strict";p.d(S,{f:function(){return I}});var E=p(80722);function I(D,P,V,C){const Z=C?C-1:Number.POSITIVE_INFINITY;let lt=0;return J;function J(Mt){return(0,E.xz)(Mt)?(D.enter(V),Y(Mt)):P(Mt)}function Y(Mt){return(0,E.xz)(Mt)&<++<Z?(D.consume(Mt),Y):(D.exit(V),P(Mt))}}},80722:function(j,S,p){"use strict";p.d(S,{AF:function(){return C},Av:function(){return P},B8:function(){return ct},Ch:function(){return lt},H$:function(){return I},Xh:function(){return Mt},jv:function(){return E},n9:function(){return D},pY:function(){return V},sR:function(){return Z},xz:function(){return Y},z3:function(){return J}});const E=$t(/[A-Za-z]/),I=$t(/[\dA-Za-z]/),D=$t(/[#-'*+\--9=?A-Z^-~]/);function P(Ft){return Ft!==null&&(Ft<32||Ft===127)}const V=$t(/\d/),C=$t(/[\dA-Fa-f]/),Z=$t(/[!-/:-@[-`{-~]/);function lt(Ft){return Ft!==null&&Ft<-2}function J(Ft){return Ft!==null&&(Ft<0||Ft===32)}function Y(Ft){return Ft===-2||Ft===-1||Ft===32}const Mt=$t(new RegExp("\\p{P}|\\p{S}","u")),ct=$t(/\s/);function $t(Ft){return _t;function _t(Ct){return Ct!==null&&Ct>-1&&Ft.test(String.fromCharCode(Ct))}}},14470:function(j,S,p){"use strict";p.d(S,{dy:function(){return _t},YP:function(){return Ct}});class E{constructor(St,ft,vt){this.normal=ft,this.property=St,vt&&(this.space=vt)}}E.prototype.normal={},E.prototype.property={},E.prototype.space=void 0;function I(xt,St){const ft={},vt={};for(const ot of xt)Object.assign(ft,ot.property),Object.assign(vt,ot.normal);return new E(ft,vt,St)}var D=p(13830),P=p(53538);function V(xt){const St={},ft={};for(const[vt,ot]of Object.entries(xt.properties)){const st=new P.I(vt,xt.transform(xt.attributes||{},vt),ot,xt.space);xt.mustUseProperty&&xt.mustUseProperty.includes(vt)&&(st.mustUseProperty=!0),St[vt]=st,ft[(0,D.F)(vt)]=vt,ft[(0,D.F)(st.attribute)]=vt}return new E(St,ft,xt.space)}var C=p(71337);const Z=V({properties:{ariaActiveDescendant:null,ariaAtomic:C.booleanish,ariaAutoComplete:null,ariaBusy:C.booleanish,ariaChecked:C.booleanish,ariaColCount:C.number,ariaColIndex:C.number,ariaColSpan:C.number,ariaControls:C.spaceSeparated,ariaCurrent:null,ariaDescribedBy:C.spaceSeparated,ariaDetails:null,ariaDisabled:C.booleanish,ariaDropEffect:C.spaceSeparated,ariaErrorMessage:null,ariaExpanded:C.booleanish,ariaFlowTo:C.spaceSeparated,ariaGrabbed:C.booleanish,ariaHasPopup:null,ariaHidden:C.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:C.spaceSeparated,ariaLevel:C.number,ariaLive:null,ariaModal:C.booleanish,ariaMultiLine:C.booleanish,ariaMultiSelectable:C.booleanish,ariaOrientation:null,ariaOwns:C.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:C.number,ariaPressed:C.booleanish,ariaReadOnly:C.booleanish,ariaRelevant:null,ariaRequired:C.booleanish,ariaRoleDescription:C.spaceSeparated,ariaRowCount:C.number,ariaRowIndex:C.number,ariaRowSpan:C.number,ariaSelected:C.booleanish,ariaSetSize:C.number,ariaSort:null,ariaValueMax:C.number,ariaValueMin:C.number,ariaValueNow:C.number,ariaValueText:null,role:null},transform(xt,St){return St==="role"?St:"aria-"+St.slice(4).toLowerCase()}});function lt(xt,St){return St in xt?xt[St]:St}function J(xt,St){return lt(xt,St.toLowerCase())}const Y=V({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:C.commaSeparated,acceptCharset:C.spaceSeparated,accessKey:C.spaceSeparated,action:null,allow:null,allowFullScreen:C.boolean,allowPaymentRequest:C.boolean,allowUserMedia:C.boolean,alt:null,as:null,async:C.boolean,autoCapitalize:null,autoComplete:C.spaceSeparated,autoFocus:C.boolean,autoPlay:C.boolean,blocking:C.spaceSeparated,capture:null,charSet:null,checked:C.boolean,cite:null,className:C.spaceSeparated,cols:C.number,colSpan:null,content:null,contentEditable:C.booleanish,controls:C.boolean,controlsList:C.spaceSeparated,coords:C.number|C.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:C.boolean,defer:C.boolean,dir:null,dirName:null,disabled:C.boolean,download:C.overloadedBoolean,draggable:C.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:C.boolean,formTarget:null,headers:C.spaceSeparated,height:C.number,hidden:C.overloadedBoolean,high:C.number,href:null,hrefLang:null,htmlFor:C.spaceSeparated,httpEquiv:C.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:C.boolean,inputMode:null,integrity:null,is:null,isMap:C.boolean,itemId:null,itemProp:C.spaceSeparated,itemRef:C.spaceSeparated,itemScope:C.boolean,itemType:C.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:C.boolean,low:C.number,manifest:null,max:null,maxLength:C.number,media:null,method:null,min:null,minLength:C.number,multiple:C.boolean,muted:C.boolean,name:null,nonce:null,noModule:C.boolean,noValidate:C.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:C.boolean,optimum:C.number,pattern:null,ping:C.spaceSeparated,placeholder:null,playsInline:C.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:C.boolean,referrerPolicy:null,rel:C.spaceSeparated,required:C.boolean,reversed:C.boolean,rows:C.number,rowSpan:C.number,sandbox:C.spaceSeparated,scope:null,scoped:C.boolean,seamless:C.boolean,selected:C.boolean,shadowRootClonable:C.boolean,shadowRootDelegatesFocus:C.boolean,shadowRootMode:null,shape:null,size:C.number,sizes:null,slot:null,span:C.number,spellCheck:C.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:C.number,step:null,style:null,tabIndex:C.number,target:null,title:null,translate:null,type:null,typeMustMatch:C.boolean,useMap:null,value:C.booleanish,width:C.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:C.spaceSeparated,axis:null,background:null,bgColor:null,border:C.number,borderColor:null,bottomMargin:C.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:C.boolean,declare:C.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:C.number,leftMargin:C.number,link:null,longDesc:null,lowSrc:null,marginHeight:C.number,marginWidth:C.number,noResize:C.boolean,noHref:C.boolean,noShade:C.boolean,noWrap:C.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:C.number,rules:null,scheme:null,scrolling:C.booleanish,standby:null,summary:null,text:null,topMargin:C.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:C.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:C.boolean,disableRemotePlayback:C.boolean,prefix:null,property:null,results:C.number,security:null,unselectable:null},space:"html",transform:J}),Mt=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:C.commaOrSpaceSeparated,accentHeight:C.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:C.number,amplitude:C.number,arabicForm:null,ascent:C.number,attributeName:null,attributeType:null,azimuth:C.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:C.number,by:null,calcMode:null,capHeight:C.number,className:C.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:C.number,diffuseConstant:C.number,direction:null,display:null,dur:null,divisor:C.number,dominantBaseline:null,download:C.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:C.number,enableBackground:null,end:null,event:null,exponent:C.number,externalResourcesRequired:null,fill:null,fillOpacity:C.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:C.commaSeparated,g2:C.commaSeparated,glyphName:C.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:C.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:C.number,horizOriginX:C.number,horizOriginY:C.number,id:null,ideographic:C.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:C.number,k:C.number,k1:C.number,k2:C.number,k3:C.number,k4:C.number,kernelMatrix:C.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:C.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:C.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:C.number,overlineThickness:C.number,paintOrder:null,panose1:null,path:null,pathLength:C.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:C.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:C.number,pointsAtY:C.number,pointsAtZ:C.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:C.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:C.commaOrSpaceSeparated,rev:C.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:C.commaOrSpaceSeparated,requiredFeatures:C.commaOrSpaceSeparated,requiredFonts:C.commaOrSpaceSeparated,requiredFormats:C.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:C.number,specularExponent:C.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:C.number,strikethroughThickness:C.number,string:null,stroke:null,strokeDashArray:C.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:C.number,strokeOpacity:C.number,strokeWidth:null,style:null,surfaceScale:C.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:C.commaOrSpaceSeparated,tabIndex:C.number,tableValues:null,target:null,targetX:C.number,targetY:C.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:C.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:C.number,underlineThickness:C.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:C.number,values:null,vAlphabetic:C.number,vMathematical:C.number,vectorEffect:null,vHanging:C.number,vIdeographic:C.number,version:null,vertAdvY:C.number,vertOriginX:C.number,vertOriginY:C.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:C.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:lt}),ct=V({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(xt,St){return"xlink:"+St.slice(5).toLowerCase()}}),$t=V({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:J}),Ft=V({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(xt,St){return"xml:"+St.slice(3).toLowerCase()}}),_t=I([Z,Y,ct,$t,Ft],"html"),Ct=I([Z,Mt,ct,$t,Ft],"svg")},86825:function(j,S,p){"use strict";p.d(S,{s:function(){return Z}});var E=p(53538),I=p(25629),D=p(13830);const P=/[A-Z]/g,V=/-[a-z]/g,C=/^data[-\w.:]+$/i;function Z(Y,Mt){const ct=(0,D.F)(Mt);let $t=Mt,Ft=I.k;if(ct in Y.normal)return Y.property[Y.normal[ct]];if(ct.length>4&&ct.slice(0,4)==="data"&&C.test(Mt)){if(Mt.charAt(4)==="-"){const _t=Mt.slice(5).replace(V,J);$t="data"+_t.charAt(0).toUpperCase()+_t.slice(1)}else{const _t=Mt.slice(4);if(!V.test(_t)){let Ct=_t.replace(P,lt);Ct.charAt(0)!=="-"&&(Ct="-"+Ct),Mt="data"+Ct}}Ft=E.I}return new Ft($t,Mt)}function lt(Y){return"-"+Y.toLowerCase()}function J(Y){return Y.charAt(1).toUpperCase()}},13830:function(j,S,p){"use strict";p.d(S,{F:function(){return E}});function E(I){return I.toLowerCase()}},53538:function(j,S,p){"use strict";p.d(S,{I:function(){return P}});var E=p(25629),I=p(71337);const D=Object.keys(I);class P extends E.k{constructor(Z,lt,J,Y){let Mt=-1;if(super(Z,lt),V(this,"space",Y),typeof J=="number")for(;++Mt<D.length;){const ct=D[Mt];V(this,D[Mt],(J&I[ct])===I[ct])}}}P.prototype.defined=!0;function V(C,Z,lt){lt&&(C[Z]=lt)}},25629:function(j,S,p){"use strict";p.d(S,{k:function(){return E}});class E{constructor(D,P){this.attribute=P,this.property=D}}E.prototype.attribute="",E.prototype.booleanish=!1,E.prototype.boolean=!1,E.prototype.commaOrSpaceSeparated=!1,E.prototype.commaSeparated=!1,E.prototype.defined=!1,E.prototype.mustUseProperty=!1,E.prototype.number=!1,E.prototype.overloadedBoolean=!1,E.prototype.property="",E.prototype.spaceSeparated=!1,E.prototype.space=void 0},71337:function(j,S,p){"use strict";p.r(S),p.d(S,{boolean:function(){return I},booleanish:function(){return D},commaOrSpaceSeparated:function(){return lt},commaSeparated:function(){return Z},number:function(){return V},overloadedBoolean:function(){return P},spaceSeparated:function(){return C}});let E=0;const I=J(),D=J(),P=J(),V=J(),C=J(),Z=J(),lt=J();function J(){return ny(2,++E)}},97831:function(j,S,p){"use strict";p.d(S,{UG:function(){return ks}});var E={};p.r(E),p.d(E,{attentionMarkers:function(){return go},contentInitial:function(){return ws},disable:function(){return Vo},document:function(){return Gr},flow:function(){return Ma},flowInitial:function(){return cs},insideSpan:function(){return po},string:function(){return As},text:function(){return ii}});var I=p(87342),D=p(11630);const P=/[$_\p{ID_Start}]/u,V=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,C=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Z=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,J={};function Y(b){return b?P.test(String.fromCodePoint(b)):!1}function Mt(b,M){const W=(M||J).jsx?C:V;return b?W.test(String.fromCodePoint(b)):!1}function ct(b,M){return((M||J).jsx?lt:Z).test(b)}const $t=/[ \t\n\f\r]/g;function Ft(b){return typeof b=="object"?b.type==="text"?_t(b.value):!1:_t(b)}function _t(b){return b.replace($t,"")===""}var Ct=p(14470),xt=p(86825);const St={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 ft=p(71523),vt=p(6526),ot=p(17970);function st(b){return!b||typeof b!="object"?"":"position"in b||"type"in b?wt(b.position):"start"in b||"end"in b?wt(b):"line"in b||"column"in b?q(b):""}function q(b){return Bt(b&&b.line)+":"+Bt(b&&b.column)}function wt(b){return q(b&&b.start)+"-"+q(b&&b.end)}function Bt(b){return b&&typeof b=="number"?b:1}class pt extends Error{constructor(M,U,W){super(),typeof U=="string"&&(W=U,U=void 0);let dt="",mt={},Ot=!1;if(U&&("line"in U&&"column"in U?mt={place:U}:"start"in U&&"end"in U?mt={place:U}:"type"in U?mt={ancestors:[U],place:U.position}:mt=to({},U)),typeof M=="string"?dt=M:!mt.cause&&M&&(Ot=!0,dt=M.message,mt.cause=M),!mt.ruleId&&!mt.source&&typeof W=="string"){const be=W.indexOf(":");be===-1?mt.ruleId=W:(mt.source=W.slice(0,be),mt.ruleId=W.slice(be+1))}if(!mt.place&&mt.ancestors&&mt.ancestors){const be=mt.ancestors[mt.ancestors.length-1];be&&(mt.place=be.position)}const Vt=mt.place&&"start"in mt.place?mt.place.start:mt.place;this.ancestors=mt.ancestors||void 0,this.cause=mt.cause||void 0,this.column=Vt?Vt.column:void 0,this.fatal=void 0,this.file="",this.message=dt,this.line=Vt?Vt.line:void 0,this.name=st(mt.place)||"1:1",this.place=mt.place||void 0,this.reason=this.message,this.ruleId=mt.ruleId||void 0,this.source=mt.source||void 0,this.stack=Ot&&mt.cause&&typeof mt.cause.stack=="string"?mt.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pt.prototype.file="",pt.prototype.name="",pt.prototype.reason="",pt.prototype.message="",pt.prototype.stack="",pt.prototype.column=void 0,pt.prototype.line=void 0,pt.prototype.ancestors=void 0,pt.prototype.cause=void 0,pt.prototype.fatal=void 0,pt.prototype.place=void 0,pt.prototype.ruleId=void 0,pt.prototype.source=void 0;const Ht={}.hasOwnProperty,At=new Map,gt=/[A-Z]/g,Pt=new Set(["table","tbody","thead","tfoot","tr"]),kt=new Set(["td","th"]),Gt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ue(b,M){if(!M||M.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const U=M.filePath||void 0;let W;if(M.development){if(typeof M.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");W=Ze(U,M.jsxDEV)}else{if(typeof M.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof M.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");W=pn(U,M.jsx,M.jsxs)}const dt={Fragment:M.Fragment,ancestors:[],components:M.components||{},create:W,elementAttributeNameCase:M.elementAttributeNameCase||"react",evaluater:M.createEvaluater?M.createEvaluater():void 0,filePath:U,ignoreInvalidStyle:M.ignoreInvalidStyle||!1,passKeys:M.passKeys!==!1,passNode:M.passNode||!1,schema:M.space==="svg"?Ct.YP:Ct.dy,stylePropertyNameCase:M.stylePropertyNameCase||"dom",tableCellAlignToStyle:M.tableCellAlignToStyle!==!1},mt=le(dt,b,void 0);return mt&&typeof mt!="string"?mt:dt.create(b,dt.Fragment,{children:mt||void 0},void 0)}function le(b,M,U){if(M.type==="element")return re(b,M,U);if(M.type==="mdxFlowExpression"||M.type==="mdxTextExpression")return pe(b,M);if(M.type==="mdxJsxFlowElement"||M.type==="mdxJsxTextElement")return rt(b,M,U);if(M.type==="mdxjsEsm")return Dt(b,M);if(M.type==="root")return Q(b,M,U);if(M.type==="text")return ie(b,M)}function re(b,M,U){const W=b.schema;let dt=W;M.tagName.toLowerCase()==="svg"&&W.space==="html"&&(dt=Ct.YP,b.schema=dt),b.ancestors.push(M);const mt=Dn(b,M.tagName,!1),Ot=Nn(b,M);let Vt=on(b,M);return Pt.has(M.tagName)&&(Vt=Vt.filter(function(be){return typeof be=="string"?!Ft(be):!0})),ce(b,Ot,mt,M),oe(Ot,Vt),b.ancestors.pop(),b.schema=W,b.create(M,mt,Ot,U)}function pe(b,M){if(M.data&&M.data.estree&&b.evaluater){const W=M.data.estree.body[0];return(0,I.ok)(W.type==="ExpressionStatement"),b.evaluater.evaluateExpression(W.expression)}K(b,M.position)}function Dt(b,M){if(M.data&&M.data.estree&&b.evaluater)return b.evaluater.evaluateProgram(M.data.estree);K(b,M.position)}function rt(b,M,U){const W=b.schema;let dt=W;M.name==="svg"&&W.space==="html"&&(dt=Ct.YP,b.schema=dt),b.ancestors.push(M);const mt=M.name===null?b.Fragment:Dn(b,M.name,!0),Ot=me(b,M),Vt=on(b,M);return ce(b,Ot,mt,M),oe(Ot,Vt),b.ancestors.pop(),b.schema=W,b.create(M,mt,Ot,U)}function Q(b,M,U){const W={};return oe(W,on(b,M)),b.create(M,b.Fragment,W,U)}function ie(b,M){return M.value}function ce(b,M,U,W){typeof U!="string"&&U!==b.Fragment&&b.passNode&&(M.node=W)}function oe(b,M){if(M.length>0){const U=M.length>1?M:M[0];U&&(b.children=U)}}function pn(b,M,U){return W;function W(dt,mt,Ot,Vt){const Ne=Array.isArray(Ot.children)?U:M;return Vt?Ne(mt,Ot,Vt):Ne(mt,Ot)}}function Ze(b,M){return U;function U(W,dt,mt,Ot){const Vt=Array.isArray(mt.children),be=(0,ot.Pk)(W);return M(dt,mt,Ot,Vt,{columnNumber:be?be.column-1:void 0,fileName:b,lineNumber:be?be.line:void 0},void 0)}}function Nn(b,M){const U={};let W,dt;for(dt in M.properties)if(dt!=="children"&&Ht.call(M.properties,dt)){const mt=un(b,dt,M.properties[dt]);if(mt){const[Ot,Vt]=mt;b.tableCellAlignToStyle&&Ot==="align"&&typeof Vt=="string"&&kt.has(M.tagName)?W=Vt:U[Ot]=Vt}}if(W){const mt=U.style||(U.style={});mt[b.stylePropertyNameCase==="css"?"text-align":"textAlign"]=W}return U}function me(b,M){const U={};for(const W of M.attributes)if(W.type==="mdxJsxExpressionAttribute")if(W.data&&W.data.estree&&b.evaluater){const mt=W.data.estree.body[0];(0,I.ok)(mt.type==="ExpressionStatement");const Ot=mt.expression;(0,I.ok)(Ot.type==="ObjectExpression");const Vt=Ot.properties[0];(0,I.ok)(Vt.type==="SpreadElement"),Object.assign(U,b.evaluater.evaluateExpression(Vt.argument))}else K(b,M.position);else{const dt=W.name;let mt;if(W.value&&typeof W.value=="object")if(W.value.data&&W.value.data.estree&&b.evaluater){const Vt=W.value.data.estree.body[0];(0,I.ok)(Vt.type==="ExpressionStatement"),mt=b.evaluater.evaluateExpression(Vt.expression)}else K(b,M.position);else mt=W.value===null?!0:W.value;U[dt]=mt}return U}function on(b,M){const U=[];let W=-1;const dt=b.passKeys?new Map:At;for(;++W<M.children.length;){const mt=M.children[W];let Ot;if(b.passKeys){const be=mt.type==="element"?mt.tagName:mt.type==="mdxJsxFlowElement"||mt.type==="mdxJsxTextElement"?mt.name:void 0;if(be){const Ne=dt.get(be)||0;Ot=be+"-"+Ne,dt.set(be,Ne+1)}}const Vt=le(b,mt,Ot);Vt!==void 0&&U.push(Vt)}return U}function un(b,M,U){const W=(0,xt.s)(b.schema,M);if(!(U==null||typeof U=="number"&&Number.isNaN(U))){if(Array.isArray(U)&&(U=W.commaSeparated?(0,D.P)(U):(0,ft.P)(U)),W.property==="style"){let dt=typeof U=="object"?U:Ln(b,String(U));return b.stylePropertyNameCase==="css"&&(dt=O(dt)),["style",dt]}return[b.elementAttributeNameCase==="react"&&W.space?St[W.property]||W.property:W.attribute,U]}}function Ln(b,M){try{return vt(M,{reactCompat:!0})}catch(U){if(b.ignoreInvalidStyle)return{};const W=U,dt=new pt("Cannot parse `style` attribute",{ancestors:b.ancestors,cause:W,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw dt.file=b.filePath||void 0,dt.url=Gt+"#cannot-parse-style-attribute",dt}}function Dn(b,M,U){let W;if(!U)W={type:"Literal",value:M};else if(M.includes(".")){const dt=M.split(".");let mt=-1,Ot;for(;++mt<dt.length;){const Vt=ct(dt[mt])?{type:"Identifier",name:dt[mt]}:{type:"Literal",value:dt[mt]};Ot=Ot?{type:"MemberExpression",object:Ot,property:Vt,computed:!!(mt&&Vt.type==="Literal"),optional:!1}:Vt}(0,I.ok)(Ot,"always a result"),W=Ot}else W=ct(M)&&!/^[a-z]/.test(M)?{type:"Identifier",name:M}:{type:"Literal",value:M};if(W.type==="Literal"){const dt=W.value;return Ht.call(b.components,dt)?b.components[dt]:dt}if(b.evaluater)return b.evaluater.evaluateExpression(W);K(b)}function K(b,M){const U=new pt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:b.ancestors,place:M,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw U.file=b.filePath||void 0,U.url=Gt+"#cannot-handle-mdx-estrees-without-createevaluater",U}function O(b){const M={};let U;for(U in b)Ht.call(b,U)&&(M[k(U)]=b[U]);return M}function k(b){let M=b.replace(gt,H);return M.slice(0,3)==="ms-"&&(M="-"+M),M}function H(b){return"-"+b.toLowerCase()}const tt={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 _=p(37712),at=p(59301);const se={};function Ve(b,M){const U=M||se,W=typeof U.includeImageAlt=="boolean"?U.includeImageAlt:!0,dt=typeof U.includeHtml=="boolean"?U.includeHtml:!0;return Ke(b,W,dt)}function Ke(b,M,U){if(he(b)){if("value"in b)return b.type==="html"&&!U?"":b.value;if(M&&"alt"in b&&b.alt)return b.alt;if("children"in b)return qt(b.children,M,U)}return Array.isArray(b)?qt(b,M,U):""}function qt(b,M,U){const W=[];let dt=-1;for(;++dt<b.length;)W[dt]=Ke(b[dt],M,U);return W.join("")}function he(b){return!!(b&&typeof b=="object")}function de(b,M,U,W){const dt=b.length;let mt=0,Ot;if(M<0?M=-M>dt?0:dt+M:M=M>dt?dt:M,U=U>0?U:0,W.length<1e4)Ot=Array.from(W),Ot.unshift(M,U),b.splice(...Ot);else for(U&&b.splice(M,U);mt<W.length;)Ot=W.slice(mt,mt+1e4),Ot.unshift(M,0),b.splice(...Ot),mt+=1e4,M+=1e4}function Fe(b,M){return b.length>0?(de(b,b.length,0,M),b):M}class $e{constructor(M){this.left=M?[...M]:[],this.right=[]}get(M){if(M<0||M>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+M+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return M<this.left.length?this.left[M]:this.right[this.right.length-M+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(M,U){const W=U==null?Number.POSITIVE_INFINITY:U;return W<this.left.length?this.left.slice(M,W):M>this.left.length?this.right.slice(this.right.length-W+this.left.length,this.right.length-M+this.left.length).reverse():this.left.slice(M).concat(this.right.slice(this.right.length-W+this.left.length).reverse())}splice(M,U,W){const dt=U||0;this.setCursor(Math.trunc(M));const mt=this.right.splice(this.right.length-dt,Number.POSITIVE_INFINITY);return W&&Ee(this.left,W),mt.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(M){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(M)}pushMany(M){this.setCursor(Number.POSITIVE_INFINITY),Ee(this.left,M)}unshift(M){this.setCursor(0),this.right.push(M)}unshiftMany(M){this.setCursor(0),Ee(this.right,M.reverse())}setCursor(M){if(!(M===this.left.length||M>this.left.length&&this.right.length===0||M<0&&this.left.length===0))if(M<this.left.length){const U=this.left.splice(M,Number.POSITIVE_INFINITY);Ee(this.right,U.reverse())}else{const U=this.right.splice(this.left.length+this.right.length-M,Number.POSITIVE_INFINITY);Ee(this.left,U.reverse())}}}function Ee(b,M){let U=0;if(M.length<1e4)b.push(...M);else for(;U<M.length;)b.push(...M.slice(U,U+1e4)),U+=1e4}function zt(b){const M={};let U=-1,W,dt,mt,Ot,Vt,be,Ne;const ae=new $e(b);for(;++U<ae.length;){for(;U in M;)U=M[U];if(W=ae.get(U),U&&W[1].type==="chunkFlow"&&ae.get(U-1)[1].type==="listItemPrefix"&&(be=W[1]._tokenizer.events,mt=0,mt<be.length&&be[mt][1].type==="lineEndingBlank"&&(mt+=2),mt<be.length&&be[mt][1].type==="content"))for(;++mt<be.length&&be[mt][1].type!=="content";)be[mt][1].type==="chunkText"&&(be[mt][1]._isInFirstContentOfListItem=!0,mt++);if(W[0]==="enter")W[1].contentType&&(Object.assign(M,Be(ae,U)),U=M[U],Ne=!0);else if(W[1]._container){for(mt=U,dt=void 0;mt--;)if(Ot=ae.get(mt),Ot[1].type==="lineEnding"||Ot[1].type==="lineEndingBlank")Ot[0]==="enter"&&(dt&&(ae.get(dt)[1].type="lineEndingBlank"),Ot[1].type="lineEnding",dt=mt);else if(!(Ot[1].type==="linePrefix"||Ot[1].type==="listItemIndent"))break;dt&&(W[1].end=to({},ae.get(dt)[1].start),Vt=ae.slice(dt,U),Vt.unshift(W),ae.splice(dt,U-dt+1,Vt))}}return de(b,0,Number.POSITIVE_INFINITY,ae.slice(0)),!Ne}function Be(b,M){const U=b.get(M)[1],W=b.get(M)[2];let dt=M-1;const mt=[];let Ot=U._tokenizer;Ot||(Ot=W.parser[U.contentType](U.start),U._contentTypeTextTrailing&&(Ot._contentTypeTextTrailing=!0));const Vt=Ot.events,be=[],Ne={};let ae,We,Ue=-1,fe=U,Pi=0,lr=0;const Cr=[lr];for(;fe;){for(;b.get(++dt)[1]!==fe;);mt.push(dt),fe._tokenizer||(ae=W.sliceStream(fe),fe.next||ae.push(null),We&&Ot.defineSkip(fe.start),fe._isInFirstContentOfListItem&&(Ot._gfmTasklistFirstContentOfListItem=!0),Ot.write(ae),fe._isInFirstContentOfListItem&&(Ot._gfmTasklistFirstContentOfListItem=void 0)),We=fe,fe=fe.next}for(fe=U;++Ue<Vt.length;)Vt[Ue][0]==="exit"&&Vt[Ue-1][0]==="enter"&&Vt[Ue][1].type===Vt[Ue-1][1].type&&Vt[Ue][1].start.line!==Vt[Ue][1].end.line&&(lr=Ue+1,Cr.push(lr),fe._tokenizer=void 0,fe.previous=void 0,fe=fe.next);for(Ot.events=[],fe?(fe._tokenizer=void 0,fe.previous=void 0):Cr.pop(),Ue=Cr.length;Ue--;){const hi=Vt.slice(Cr[Ue],Cr[Ue+1]),Hi=mt.pop();be.push([Hi,Hi+hi.length-1]),b.splice(Hi,2,hi)}for(be.reverse(),Ue=-1;++Ue<be.length;)Ne[Pi+be[Ue][0]]=Pi+be[Ue][1],Pi+=be[Ue][1]-be[Ue][0]-1;return Ne}function Ge(b){for(;!zt(b););return b}const Ie={}.hasOwnProperty;function ze(b){const M={};let U=-1;for(;++U<b.length;)Cn(M,b[U]);return M}function Cn(b,M){let U;for(U in M){const dt=(Ie.call(b,U)?b[U]:void 0)||(b[U]={}),mt=M[U];let Ot;if(mt)for(Ot in mt){Ie.call(dt,Ot)||(dt[Ot]=[]);const Vt=mt[Ot];je(dt[Ot],Array.isArray(Vt)?Vt:Vt?[Vt]:[])}}}function je(b,M){let U=-1;const W=[];for(;++U<M.length;)(M[U].add==="after"?b:W).push(M[U]);de(b,0,0,W)}function bt(b){const M={};let U=-1;for(;++U<b.length;)hn(M,b[U]);return M}function hn(b,M){let U;for(U in M){const dt=(Ie.call(b,U)?b[U]:void 0)||(b[U]={}),mt=M[U];let Ot;if(mt)for(Ot in mt)dt[Ot]=mt[Ot]}}var Sn=p(26735),Jt=p(80722);const Hn={tokenize:ri};function ri(b){const M=b.attempt(this.parser.constructs.contentInitial,W,dt);let U;return M;function W(Vt){if(Vt===null){b.consume(Vt);return}return b.enter("lineEnding"),b.consume(Vt),b.exit("lineEnding"),(0,Sn.f)(b,M,"linePrefix")}function dt(Vt){return b.enter("paragraph"),mt(Vt)}function mt(Vt){const be=b.enter("chunkText",{contentType:"text",previous:U});return U&&(U.next=be),U=be,Ot(Vt)}function Ot(Vt){if(Vt===null){b.exit("chunkText"),b.exit("paragraph"),b.consume(Vt);return}return(0,Jt.Ch)(Vt)?(b.consume(Vt),b.exit("chunkText"),mt):(b.consume(Vt),Ot)}}const Qn={tokenize:wi},we={tokenize:xi};function wi(b){const M=this,U=[];let W=0,dt,mt,Ot;return Vt;function Vt(Qi){if(W<U.length){const Ao=U[W];return M.containerState=Ao[1],b.attempt(Ao[0].continuation,be,Ne)(Qi)}return Ne(Qi)}function be(Qi){if(W++,M.containerState._closeFlow){M.containerState._closeFlow=void 0,dt&&Hi();const Ao=M.events.length;let Io=Ao,Zn;for(;Io--;)if(M.events[Io][0]==="exit"&&M.events[Io][1].type==="chunkFlow"){Zn=M.events[Io][1].end;break}hi(W);let Mo=Ao;for(;Mo<M.events.length;)M.events[Mo][1].end=to({},Zn),Mo++;return de(M.events,Io+1,0,M.events.slice(Ao)),M.events.length=Mo,Ne(Qi)}return Vt(Qi)}function Ne(Qi){if(W===U.length){if(!dt)return Ue(Qi);if(dt.currentConstruct&&dt.currentConstruct.concrete)return Pi(Qi);M.interrupt=!!(dt.currentConstruct&&!dt._gfmTableDynamicInterruptHack)}return M.containerState={},b.check(we,ae,We)(Qi)}function ae(Qi){return dt&&Hi(),hi(W),Ue(Qi)}function We(Qi){return M.parser.lazy[M.now().line]=W!==U.length,Ot=M.now().offset,Pi(Qi)}function Ue(Qi){return M.containerState={},b.attempt(we,fe,Pi)(Qi)}function fe(Qi){return W++,U.push([M.currentConstruct,M.containerState]),Ue(Qi)}function Pi(Qi){if(Qi===null){dt&&Hi(),hi(0),b.consume(Qi);return}return dt=dt||M.parser.flow(M.now()),b.enter("chunkFlow",{_tokenizer:dt,contentType:"flow",previous:mt}),lr(Qi)}function lr(Qi){if(Qi===null){Cr(b.exit("chunkFlow"),!0),hi(0),b.consume(Qi);return}return(0,Jt.Ch)(Qi)?(b.consume(Qi),Cr(b.exit("chunkFlow")),W=0,M.interrupt=void 0,Vt):(b.consume(Qi),lr)}function Cr(Qi,Ao){const Io=M.sliceStream(Qi);if(Ao&&Io.push(null),Qi.previous=mt,mt&&(mt.next=Qi),mt=Qi,dt.defineSkip(Qi.start),dt.write(Io),M.parser.lazy[Qi.start.line]){let Zn=dt.events.length;for(;Zn--;)if(dt.events[Zn][1].start.offset<Ot&&(!dt.events[Zn][1].end||dt.events[Zn][1].end.offset>Ot))return;const Mo=M.events.length;let is=Mo,bo,Di;for(;is--;)if(M.events[is][0]==="exit"&&M.events[is][1].type==="chunkFlow"){if(bo){Di=M.events[is][1].end;break}bo=!0}for(hi(W),Zn=Mo;Zn<M.events.length;)M.events[Zn][1].end=to({},Di),Zn++;de(M.events,is+1,0,M.events.slice(Mo)),M.events.length=Zn}}function hi(Qi){let Ao=U.length;for(;Ao-- >Qi;){const Io=U[Ao];M.containerState=Io[1],Io[0].exit.call(M,b)}U.length=Qi}function Hi(){dt.write([null]),mt=void 0,dt=void 0,M.containerState._closeFlow=void 0}}function xi(b,M,U){return(0,Sn.f)(b,b.attempt(this.parser.constructs.document,M,U),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Bn={partial:!0,tokenize:Kn};function Kn(b,M,U){return W;function W(mt){return(0,Jt.xz)(mt)?(0,Sn.f)(b,dt,"linePrefix")(mt):dt(mt)}function dt(mt){return mt===null||(0,Jt.Ch)(mt)?M(mt):U(mt)}}const Ei={resolve:Pn,tokenize:gn},A={partial:!0,tokenize:$n};function Pn(b){return zt(b),b}function gn(b,M){let U;return W;function W(Vt){return b.enter("content"),U=b.enter("chunkContent",{contentType:"content"}),dt(Vt)}function dt(Vt){return Vt===null?mt(Vt):(0,Jt.Ch)(Vt)?b.check(A,Ot,mt)(Vt):(b.consume(Vt),dt)}function mt(Vt){return b.exit("chunkContent"),b.exit("content"),M(Vt)}function Ot(Vt){return b.consume(Vt),b.exit("chunkContent"),U.next=b.enter("chunkContent",{contentType:"content",previous:U}),U=U.next,dt}}function $n(b,M,U){const W=this;return dt;function dt(Ot){return b.exit("chunkContent"),b.enter("lineEnding"),b.consume(Ot),b.exit("lineEnding"),(0,Sn.f)(b,mt,"linePrefix")}function mt(Ot){if(Ot===null||(0,Jt.Ch)(Ot))return U(Ot);const Vt=W.events[W.events.length-1];return!W.parser.constructs.disable.null.includes("codeIndented")&&Vt&&Vt[1].type==="linePrefix"&&Vt[2].sliceSerialize(Vt[1],!0).length>=4?M(Ot):b.interrupt(W.parser.constructs.flow,U,M)(Ot)}}const Fi={tokenize:Ki};function Ki(b){const M=this,U=b.attempt(Bn,W,b.attempt(this.parser.constructs.flowInitial,dt,(0,Sn.f)(b,b.attempt(this.parser.constructs.flow,dt,b.attempt(Ei,dt)),"linePrefix")));return U;function W(mt){if(mt===null){b.consume(mt);return}return b.enter("lineEndingBlank"),b.consume(mt),b.exit("lineEndingBlank"),M.currentConstruct=void 0,U}function dt(mt){if(mt===null){b.consume(mt);return}return b.enter("lineEnding"),b.consume(mt),b.exit("lineEnding"),M.currentConstruct=void 0,U}}const pi={resolveAll:Yn()},so=or("string"),Zi=or("text");function or(b){return{resolveAll:Yn(b==="text"?Mn:void 0),tokenize:M};function M(U){const W=this,dt=this.parser.constructs[b],mt=U.attempt(dt,Ot,Vt);return Ot;function Ot(ae){return Ne(ae)?mt(ae):Vt(ae)}function Vt(ae){if(ae===null){U.consume(ae);return}return U.enter("data"),U.consume(ae),be}function be(ae){return Ne(ae)?(U.exit("data"),mt(ae)):(U.consume(ae),be)}function Ne(ae){if(ae===null)return!0;const We=dt[ae];let Ue=-1;if(We)for(;++Ue<We.length;){const fe=We[Ue];if(!fe.previous||fe.previous.call(W,W.previous))return!0}return!1}}}function Yn(b){return M;function M(U,W){let dt=-1,mt;for(;++dt<=U.length;)mt===void 0?U[dt]&&U[dt][1].type==="data"&&(mt=dt,dt++):(!U[dt]||U[dt][1].type!=="data")&&(dt!==mt+2&&(U[mt][1].end=U[dt-1][1].end,U.splice(mt+2,dt-mt-2),dt=mt+2),mt=void 0);return b?b(U,W):U}}function Mn(b,M){let U=0;for(;++U<=b.length;)if((U===b.length||b[U][1].type==="lineEnding")&&b[U-1][1].type==="data"){const W=b[U-1][1],dt=M.sliceStream(W);let mt=dt.length,Ot=-1,Vt=0,be;for(;mt--;){const Ne=dt[mt];if(typeof Ne=="string"){for(Ot=Ne.length;Ne.charCodeAt(Ot-1)===32;)Vt++,Ot--;if(Ot)break;Ot=-1}else if(Ne===-2)be=!0,Vt++;else if(Ne!==-1){mt++;break}}if(M._contentTypeTextTrailing&&U===b.length&&(Vt=0),Vt){const Ne={type:U===b.length||be||Vt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:mt?Ot:W.start._bufferIndex+Ot,_index:W.start._index+mt,line:W.end.line,column:W.end.column-Vt,offset:W.end.offset-Vt},end:to({},W.end)};W.end=to({},Ne.start),W.start.offset===W.end.offset?Object.assign(W,Ne):(b.splice(U,0,["enter",Ne,M],["exit",Ne,M]),U+=2)}U++}return b}const fr={name:"thematicBreak",tokenize:Li};function Li(b,M,U){let W=0,dt;return mt;function mt(Ne){return b.enter("thematicBreak"),Ot(Ne)}function Ot(Ne){return dt=Ne,Vt(Ne)}function Vt(Ne){return Ne===dt?(b.enter("thematicBreakSequence"),be(Ne)):W>=3&&(Ne===null||(0,Jt.Ch)(Ne))?(b.exit("thematicBreak"),M(Ne)):U(Ne)}function be(Ne){return Ne===dt?(b.consume(Ne),W++,be):(b.exit("thematicBreakSequence"),(0,Jt.xz)(Ne)?(0,Sn.f)(b,Vt,"whitespace")(Ne):Vt(Ne))}}const Xi={continuation:{tokenize:Ur},exit:Et,name:"list",tokenize:Wi},sn={partial:!0,tokenize:Wt},zn={partial:!0,tokenize:Nr};function Wi(b,M,U){const W=this,dt=W.events[W.events.length-1];let mt=dt&&dt[1].type==="linePrefix"?dt[2].sliceSerialize(dt[1],!0).length:0,Ot=0;return Vt;function Vt(fe){const Pi=W.containerState.type||(fe===42||fe===43||fe===45?"listUnordered":"listOrdered");if(Pi==="listUnordered"?!W.containerState.marker||fe===W.containerState.marker:(0,Jt.pY)(fe)){if(W.containerState.type||(W.containerState.type=Pi,b.enter(Pi,{_container:!0})),Pi==="listUnordered")return b.enter("listItemPrefix"),fe===42||fe===45?b.check(fr,U,Ne)(fe):Ne(fe);if(!W.interrupt||fe===49)return b.enter("listItemPrefix"),b.enter("listItemValue"),be(fe)}return U(fe)}function be(fe){return(0,Jt.pY)(fe)&&++Ot<10?(b.consume(fe),be):(!W.interrupt||Ot<2)&&(W.containerState.marker?fe===W.containerState.marker:fe===41||fe===46)?(b.exit("listItemValue"),Ne(fe)):U(fe)}function Ne(fe){return b.enter("listItemMarker"),b.consume(fe),b.exit("listItemMarker"),W.containerState.marker=W.containerState.marker||fe,b.check(Bn,W.interrupt?U:ae,b.attempt(sn,Ue,We))}function ae(fe){return W.containerState.initialBlankLine=!0,mt++,Ue(fe)}function We(fe){return(0,Jt.xz)(fe)?(b.enter("listItemPrefixWhitespace"),b.consume(fe),b.exit("listItemPrefixWhitespace"),Ue):U(fe)}function Ue(fe){return W.containerState.size=mt+W.sliceSerialize(b.exit("listItemPrefix"),!0).length,M(fe)}}function Ur(b,M,U){const W=this;return W.containerState._closeFlow=void 0,b.check(Bn,dt,mt);function dt(Vt){return W.containerState.furtherBlankLines=W.containerState.furtherBlankLines||W.containerState.initialBlankLine,(0,Sn.f)(b,M,"listItemIndent",W.containerState.size+1)(Vt)}function mt(Vt){return W.containerState.furtherBlankLines||!(0,Jt.xz)(Vt)?(W.containerState.furtherBlankLines=void 0,W.containerState.initialBlankLine=void 0,Ot(Vt)):(W.containerState.furtherBlankLines=void 0,W.containerState.initialBlankLine=void 0,b.attempt(zn,M,Ot)(Vt))}function Ot(Vt){return W.containerState._closeFlow=!0,W.interrupt=void 0,(0,Sn.f)(b,b.attempt(Xi,M,U),"linePrefix",W.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Vt)}}function Nr(b,M,U){const W=this;return(0,Sn.f)(b,dt,"listItemIndent",W.containerState.size+1);function dt(mt){const Ot=W.events[W.events.length-1];return Ot&&Ot[1].type==="listItemIndent"&&Ot[2].sliceSerialize(Ot[1],!0).length===W.containerState.size?M(mt):U(mt)}}function Et(b){b.exit(this.containerState.type)}function Wt(b,M,U){const W=this;return(0,Sn.f)(b,dt,"listItemPrefixWhitespace",W.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function dt(mt){const Ot=W.events[W.events.length-1];return!(0,Jt.xz)(mt)&&Ot&&Ot[1].type==="listItemPrefixWhitespace"?M(mt):U(mt)}}const rn={continuation:{tokenize:Ut},exit:Ye,name:"blockQuote",tokenize:cn};function cn(b,M,U){const W=this;return dt;function dt(Ot){if(Ot===62){const Vt=W.containerState;return Vt.open||(b.enter("blockQuote",{_container:!0}),Vt.open=!0),b.enter("blockQuotePrefix"),b.enter("blockQuoteMarker"),b.consume(Ot),b.exit("blockQuoteMarker"),mt}return U(Ot)}function mt(Ot){return(0,Jt.xz)(Ot)?(b.enter("blockQuotePrefixWhitespace"),b.consume(Ot),b.exit("blockQuotePrefixWhitespace"),b.exit("blockQuotePrefix"),M):(b.exit("blockQuotePrefix"),M(Ot))}}function Ut(b,M,U){const W=this;return dt;function dt(Ot){return(0,Jt.xz)(Ot)?(0,Sn.f)(b,mt,"linePrefix",W.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ot):mt(Ot)}function mt(Ot){return b.attempt(rn,M,U)(Ot)}}function Ye(b){b.exit("blockQuote")}function kn(b,M,U,W,dt,mt,Ot,Vt,be){const Ne=be||Number.POSITIVE_INFINITY;let ae=0;return We;function We(hi){return hi===60?(b.enter(W),b.enter(dt),b.enter(mt),b.consume(hi),b.exit(mt),Ue):hi===null||hi===32||hi===41||(0,Jt.Av)(hi)?U(hi):(b.enter(W),b.enter(Ot),b.enter(Vt),b.enter("chunkString",{contentType:"string"}),lr(hi))}function Ue(hi){return hi===62?(b.enter(mt),b.consume(hi),b.exit(mt),b.exit(dt),b.exit(W),M):(b.enter(Vt),b.enter("chunkString",{contentType:"string"}),fe(hi))}function fe(hi){return hi===62?(b.exit("chunkString"),b.exit(Vt),Ue(hi)):hi===null||hi===60||(0,Jt.Ch)(hi)?U(hi):(b.consume(hi),hi===92?Pi:fe)}function Pi(hi){return hi===60||hi===62||hi===92?(b.consume(hi),fe):fe(hi)}function lr(hi){return!ae&&(hi===null||hi===41||(0,Jt.z3)(hi))?(b.exit("chunkString"),b.exit(Vt),b.exit(Ot),b.exit(W),M(hi)):ae<Ne&&hi===40?(b.consume(hi),ae++,lr):hi===41?(b.consume(hi),ae--,lr):hi===null||hi===32||hi===40||(0,Jt.Av)(hi)?U(hi):(b.consume(hi),hi===92?Cr:lr)}function Cr(hi){return hi===40||hi===41||hi===92?(b.consume(hi),lr):lr(hi)}}function te(b,M,U,W,dt,mt){const Ot=this;let Vt=0,be;return Ne;function Ne(fe){return b.enter(W),b.enter(dt),b.consume(fe),b.exit(dt),b.enter(mt),ae}function ae(fe){return Vt>999||fe===null||fe===91||fe===93&&!be||fe===94&&!Vt&&"_hiddenFootnoteSupport"in Ot.parser.constructs?U(fe):fe===93?(b.exit(mt),b.enter(dt),b.consume(fe),b.exit(dt),b.exit(W),M):(0,Jt.Ch)(fe)?(b.enter("lineEnding"),b.consume(fe),b.exit("lineEnding"),ae):(b.enter("chunkString",{contentType:"string"}),We(fe))}function We(fe){return fe===null||fe===91||fe===93||(0,Jt.Ch)(fe)||Vt++>999?(b.exit("chunkString"),ae(fe)):(b.consume(fe),be||(be=!(0,Jt.xz)(fe)),fe===92?Ue:We)}function Ue(fe){return fe===91||fe===92||fe===93?(b.consume(fe),Vt++,We):We(fe)}}function R(b,M,U,W,dt,mt){let Ot;return Vt;function Vt(Ue){return Ue===34||Ue===39||Ue===40?(b.enter(W),b.enter(dt),b.consume(Ue),b.exit(dt),Ot=Ue===40?41:Ue,be):U(Ue)}function be(Ue){return Ue===Ot?(b.enter(dt),b.consume(Ue),b.exit(dt),b.exit(W),M):(b.enter(mt),Ne(Ue))}function Ne(Ue){return Ue===Ot?(b.exit(mt),be(Ot)):Ue===null?U(Ue):(0,Jt.Ch)(Ue)?(b.enter("lineEnding"),b.consume(Ue),b.exit("lineEnding"),(0,Sn.f)(b,Ne,"linePrefix")):(b.enter("chunkString",{contentType:"string"}),ae(Ue))}function ae(Ue){return Ue===Ot||Ue===null||(0,Jt.Ch)(Ue)?(b.exit("chunkString"),Ne(Ue)):(b.consume(Ue),Ue===92?We:ae)}function We(Ue){return Ue===Ot||Ue===92?(b.consume(Ue),ae):ae(Ue)}}function bn(b,M){let U;return W;function W(dt){return(0,Jt.Ch)(dt)?(b.enter("lineEnding"),b.consume(dt),b.exit("lineEnding"),U=!0,W):(0,Jt.xz)(dt)?(0,Sn.f)(b,W,U?"linePrefix":"lineSuffix")(dt):M(dt)}}function En(b){return b.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ve={name:"definition",tokenize:Wn},li={partial:!0,tokenize:ni};function Wn(b,M,U){const W=this;let dt;return mt;function mt(fe){return b.enter("definition"),Ot(fe)}function Ot(fe){return te.call(W,b,Vt,U,"definitionLabel","definitionLabelMarker","definitionLabelString")(fe)}function Vt(fe){return dt=En(W.sliceSerialize(W.events[W.events.length-1][1]).slice(1,-1)),fe===58?(b.enter("definitionMarker"),b.consume(fe),b.exit("definitionMarker"),be):U(fe)}function be(fe){return(0,Jt.z3)(fe)?bn(b,Ne)(fe):Ne(fe)}function Ne(fe){return kn(b,ae,U,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(fe)}function ae(fe){return b.attempt(li,We,We)(fe)}function We(fe){return(0,Jt.xz)(fe)?(0,Sn.f)(b,Ue,"whitespace")(fe):Ue(fe)}function Ue(fe){return fe===null||(0,Jt.Ch)(fe)?(b.exit("definition"),W.parser.defined.push(dt),M(fe)):U(fe)}}function ni(b,M,U){return W;function W(Vt){return(0,Jt.z3)(Vt)?bn(b,dt)(Vt):U(Vt)}function dt(Vt){return R(b,mt,U,"definitionTitle","definitionTitleMarker","definitionTitleString")(Vt)}function mt(Vt){return(0,Jt.xz)(Vt)?(0,Sn.f)(b,Ot,"whitespace")(Vt):Ot(Vt)}function Ot(Vt){return Vt===null||(0,Jt.Ch)(Vt)?M(Vt):U(Vt)}}const yn={name:"codeIndented",tokenize:ui},jt={partial:!0,tokenize:Ir};function ui(b,M,U){const W=this;return dt;function dt(Ne){return b.enter("codeIndented"),(0,Sn.f)(b,mt,"linePrefix",5)(Ne)}function mt(Ne){const ae=W.events[W.events.length-1];return ae&&ae[1].type==="linePrefix"&&ae[2].sliceSerialize(ae[1],!0).length>=4?Ot(Ne):U(Ne)}function Ot(Ne){return Ne===null?be(Ne):(0,Jt.Ch)(Ne)?b.attempt(jt,Ot,be)(Ne):(b.enter("codeFlowValue"),Vt(Ne))}function Vt(Ne){return Ne===null||(0,Jt.Ch)(Ne)?(b.exit("codeFlowValue"),Ot(Ne)):(b.consume(Ne),Vt)}function be(Ne){return b.exit("codeIndented"),M(Ne)}}function Ir(b,M,U){const W=this;return dt;function dt(Ot){return W.parser.lazy[W.now().line]?U(Ot):(0,Jt.Ch)(Ot)?(b.enter("lineEnding"),b.consume(Ot),b.exit("lineEnding"),dt):(0,Sn.f)(b,mt,"linePrefix",5)(Ot)}function mt(Ot){const Vt=W.events[W.events.length-1];return Vt&&Vt[1].type==="linePrefix"&&Vt[2].sliceSerialize(Vt[1],!0).length>=4?M(Ot):(0,Jt.Ch)(Ot)?dt(Ot):U(Ot)}}const xe={name:"headingAtx",resolve:xr,tokenize:Lr};function xr(b,M){let U=b.length-2,W=3,dt,mt;return b[W][1].type==="whitespace"&&(W+=2),U-2>W&&b[U][1].type==="whitespace"&&(U-=2),b[U][1].type==="atxHeadingSequence"&&(W===U-1||U-4>W&&b[U-2][1].type==="whitespace")&&(U-=W+1===U?2:4),U>W&&(dt={type:"atxHeadingText",start:b[W][1].start,end:b[U][1].end},mt={type:"chunkText",start:b[W][1].start,end:b[U][1].end,contentType:"text"},de(b,W,U-W+1,[["enter",dt,M],["enter",mt,M],["exit",mt,M],["exit",dt,M]])),b}function Lr(b,M,U){let W=0;return dt;function dt(ae){return b.enter("atxHeading"),mt(ae)}function mt(ae){return b.enter("atxHeadingSequence"),Ot(ae)}function Ot(ae){return ae===35&&W++<6?(b.consume(ae),Ot):ae===null||(0,Jt.z3)(ae)?(b.exit("atxHeadingSequence"),Vt(ae)):U(ae)}function Vt(ae){return ae===35?(b.enter("atxHeadingSequence"),be(ae)):ae===null||(0,Jt.Ch)(ae)?(b.exit("atxHeading"),M(ae)):(0,Jt.xz)(ae)?(0,Sn.f)(b,Vt,"whitespace")(ae):(b.enter("atxHeadingText"),Ne(ae))}function be(ae){return ae===35?(b.consume(ae),be):(b.exit("atxHeadingSequence"),Vt(ae))}function Ne(ae){return ae===null||ae===35||(0,Jt.z3)(ae)?(b.exit("atxHeadingText"),Vt(ae)):(b.consume(ae),Ne)}}const Ai={name:"setextUnderline",resolveTo:Rr,tokenize:nr};function Rr(b,M){let U=b.length,W,dt,mt;for(;U--;)if(b[U][0]==="enter"){if(b[U][1].type==="content"){W=U;break}b[U][1].type==="paragraph"&&(dt=U)}else b[U][1].type==="content"&&b.splice(U,1),!mt&&b[U][1].type==="definition"&&(mt=U);const Ot={type:"setextHeading",start:to({},b[W][1].start),end:to({},b[b.length-1][1].end)};return b[dt][1].type="setextHeadingText",mt?(b.splice(dt,0,["enter",Ot,M]),b.splice(mt+1,0,["exit",b[W][1],M]),b[W][1].end=to({},b[mt][1].end)):b[W][1]=Ot,b.push(["exit",Ot,M]),b}function nr(b,M,U){const W=this;let dt;return mt;function mt(Ne){let ae=W.events.length,We;for(;ae--;)if(W.events[ae][1].type!=="lineEnding"&&W.events[ae][1].type!=="linePrefix"&&W.events[ae][1].type!=="content"){We=W.events[ae][1].type==="paragraph";break}return!W.parser.lazy[W.now().line]&&(W.interrupt||We)?(b.enter("setextHeadingLine"),dt=Ne,Ot(Ne)):U(Ne)}function Ot(Ne){return b.enter("setextHeadingLineSequence"),Vt(Ne)}function Vt(Ne){return Ne===dt?(b.consume(Ne),Vt):(b.exit("setextHeadingLineSequence"),(0,Jt.xz)(Ne)?(0,Sn.f)(b,be,"lineSuffix")(Ne):be(Ne))}function be(Ne){return Ne===null||(0,Jt.Ch)(Ne)?(b.exit("setextHeadingLine"),M(Ne)):U(Ne)}}const sr=["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"],ji=["pre","script","style","textarea"],qi={concrete:!0,name:"htmlFlow",resolveTo:cr,tokenize:Ce},ir={partial:!0,tokenize:Ri},Te={partial:!0,tokenize:Gn};function cr(b){let M=b.length;for(;M--&&!(b[M][0]==="enter"&&b[M][1].type==="htmlFlow"););return M>1&&b[M-2][1].type==="linePrefix"&&(b[M][1].start=b[M-2][1].start,b[M+1][1].start=b[M-2][1].start,b.splice(M-2,2)),b}function Ce(b,M,U){const W=this;let dt,mt,Ot,Vt,be;return Ne;function Ne(_e){return ae(_e)}function ae(_e){return b.enter("htmlFlow"),b.enter("htmlFlowData"),b.consume(_e),We}function We(_e){return _e===33?(b.consume(_e),Ue):_e===47?(b.consume(_e),mt=!0,lr):_e===63?(b.consume(_e),dt=3,W.interrupt?M:Me):(0,Jt.jv)(_e)?(b.consume(_e),Ot=String.fromCharCode(_e),Cr):U(_e)}function Ue(_e){return _e===45?(b.consume(_e),dt=2,fe):_e===91?(b.consume(_e),dt=5,Vt=0,Pi):(0,Jt.jv)(_e)?(b.consume(_e),dt=4,W.interrupt?M:Me):U(_e)}function fe(_e){return _e===45?(b.consume(_e),W.interrupt?M:Me):U(_e)}function Pi(_e){const Xs="CDATA[";return _e===Xs.charCodeAt(Vt++)?(b.consume(_e),Vt===Xs.length?W.interrupt?M:Uo:Pi):U(_e)}function lr(_e){return(0,Jt.jv)(_e)?(b.consume(_e),Ot=String.fromCharCode(_e),Cr):U(_e)}function Cr(_e){if(_e===null||_e===47||_e===62||(0,Jt.z3)(_e)){const Xs=_e===47,sl=Ot.toLowerCase();return!Xs&&!mt&&ji.includes(sl)?(dt=1,W.interrupt?M(_e):Uo(_e)):sr.includes(Ot.toLowerCase())?(dt=6,Xs?(b.consume(_e),hi):W.interrupt?M(_e):Uo(_e)):(dt=7,W.interrupt&&!W.parser.lazy[W.now().line]?U(_e):mt?Hi(_e):Qi(_e))}return _e===45||(0,Jt.H$)(_e)?(b.consume(_e),Ot+=String.fromCharCode(_e),Cr):U(_e)}function hi(_e){return _e===62?(b.consume(_e),W.interrupt?M:Uo):U(_e)}function Hi(_e){return(0,Jt.xz)(_e)?(b.consume(_e),Hi):Di(_e)}function Qi(_e){return _e===47?(b.consume(_e),Di):_e===58||_e===95||(0,Jt.jv)(_e)?(b.consume(_e),Ao):(0,Jt.xz)(_e)?(b.consume(_e),Qi):Di(_e)}function Ao(_e){return _e===45||_e===46||_e===58||_e===95||(0,Jt.H$)(_e)?(b.consume(_e),Ao):Io(_e)}function Io(_e){return _e===61?(b.consume(_e),Zn):(0,Jt.xz)(_e)?(b.consume(_e),Io):Qi(_e)}function Zn(_e){return _e===null||_e===60||_e===61||_e===62||_e===96?U(_e):_e===34||_e===39?(b.consume(_e),be=_e,Mo):(0,Jt.xz)(_e)?(b.consume(_e),Zn):is(_e)}function Mo(_e){return _e===be?(b.consume(_e),be=null,bo):_e===null||(0,Jt.Ch)(_e)?U(_e):(b.consume(_e),Mo)}function is(_e){return _e===null||_e===34||_e===39||_e===47||_e===60||_e===61||_e===62||_e===96||(0,Jt.z3)(_e)?Io(_e):(b.consume(_e),is)}function bo(_e){return _e===47||_e===62||(0,Jt.xz)(_e)?Qi(_e):U(_e)}function Di(_e){return _e===62?(b.consume(_e),sa):U(_e)}function sa(_e){return _e===null||(0,Jt.Ch)(_e)?Uo(_e):(0,Jt.xz)(_e)?(b.consume(_e),sa):U(_e)}function Uo(_e){return _e===45&&dt===2?(b.consume(_e),Xo):_e===60&&dt===1?(b.consume(_e),Bs):_e===62&&dt===4?(b.consume(_e),aa):_e===63&&dt===3?(b.consume(_e),Me):_e===93&&dt===5?(b.consume(_e),Fa):(0,Jt.Ch)(_e)&&(dt===6||dt===7)?(b.exit("htmlFlowData"),b.check(ir,Ya,br)(_e)):_e===null||(0,Jt.Ch)(_e)?(b.exit("htmlFlowData"),br(_e)):(b.consume(_e),Uo)}function br(_e){return b.check(Te,mr,Ya)(_e)}function mr(_e){return b.enter("lineEnding"),b.consume(_e),b.exit("lineEnding"),ro}function ro(_e){return _e===null||(0,Jt.Ch)(_e)?br(_e):(b.enter("htmlFlowData"),Uo(_e))}function Xo(_e){return _e===45?(b.consume(_e),Me):Uo(_e)}function Bs(_e){return _e===47?(b.consume(_e),Ot="",$s):Uo(_e)}function $s(_e){if(_e===62){const Xs=Ot.toLowerCase();return ji.includes(Xs)?(b.consume(_e),aa):Uo(_e)}return(0,Jt.jv)(_e)&&Ot.length<8?(b.consume(_e),Ot+=String.fromCharCode(_e),$s):Uo(_e)}function Fa(_e){return _e===93?(b.consume(_e),Me):Uo(_e)}function Me(_e){return _e===62?(b.consume(_e),aa):_e===45&&dt===2?(b.consume(_e),Me):Uo(_e)}function aa(_e){return _e===null||(0,Jt.Ch)(_e)?(b.exit("htmlFlowData"),Ya(_e)):(b.consume(_e),aa)}function Ya(_e){return b.exit("htmlFlow"),M(_e)}}function Gn(b,M,U){const W=this;return dt;function dt(Ot){return(0,Jt.Ch)(Ot)?(b.enter("lineEnding"),b.consume(Ot),b.exit("lineEnding"),mt):U(Ot)}function mt(Ot){return W.parser.lazy[W.now().line]?U(Ot):M(Ot)}}function Ri(b,M,U){return W;function W(dt){return b.enter("lineEnding"),b.consume(dt),b.exit("lineEnding"),b.attempt(Bn,M,U)}}const gi={partial:!0,tokenize:Si},pr={concrete:!0,name:"codeFenced",tokenize:Bi};function Bi(b,M,U){const W=this,dt={partial:!0,tokenize:Io};let mt=0,Ot=0,Vt;return be;function be(Zn){return Ne(Zn)}function Ne(Zn){const Mo=W.events[W.events.length-1];return mt=Mo&&Mo[1].type==="linePrefix"?Mo[2].sliceSerialize(Mo[1],!0).length:0,Vt=Zn,b.enter("codeFenced"),b.enter("codeFencedFence"),b.enter("codeFencedFenceSequence"),ae(Zn)}function ae(Zn){return Zn===Vt?(Ot++,b.consume(Zn),ae):Ot<3?U(Zn):(b.exit("codeFencedFenceSequence"),(0,Jt.xz)(Zn)?(0,Sn.f)(b,We,"whitespace")(Zn):We(Zn))}function We(Zn){return Zn===null||(0,Jt.Ch)(Zn)?(b.exit("codeFencedFence"),W.interrupt?M(Zn):b.check(gi,lr,Ao)(Zn)):(b.enter("codeFencedFenceInfo"),b.enter("chunkString",{contentType:"string"}),Ue(Zn))}function Ue(Zn){return Zn===null||(0,Jt.Ch)(Zn)?(b.exit("chunkString"),b.exit("codeFencedFenceInfo"),We(Zn)):(0,Jt.xz)(Zn)?(b.exit("chunkString"),b.exit("codeFencedFenceInfo"),(0,Sn.f)(b,fe,"whitespace")(Zn)):Zn===96&&Zn===Vt?U(Zn):(b.consume(Zn),Ue)}function fe(Zn){return Zn===null||(0,Jt.Ch)(Zn)?We(Zn):(b.enter("codeFencedFenceMeta"),b.enter("chunkString",{contentType:"string"}),Pi(Zn))}function Pi(Zn){return Zn===null||(0,Jt.Ch)(Zn)?(b.exit("chunkString"),b.exit("codeFencedFenceMeta"),We(Zn)):Zn===96&&Zn===Vt?U(Zn):(b.consume(Zn),Pi)}function lr(Zn){return b.attempt(dt,Ao,Cr)(Zn)}function Cr(Zn){return b.enter("lineEnding"),b.consume(Zn),b.exit("lineEnding"),hi}function hi(Zn){return mt>0&&(0,Jt.xz)(Zn)?(0,Sn.f)(b,Hi,"linePrefix",mt+1)(Zn):Hi(Zn)}function Hi(Zn){return Zn===null||(0,Jt.Ch)(Zn)?b.check(gi,lr,Ao)(Zn):(b.enter("codeFlowValue"),Qi(Zn))}function Qi(Zn){return Zn===null||(0,Jt.Ch)(Zn)?(b.exit("codeFlowValue"),Hi(Zn)):(b.consume(Zn),Qi)}function Ao(Zn){return b.exit("codeFenced"),M(Zn)}function Io(Zn,Mo,is){let bo=0;return Di;function Di(ro){return Zn.enter("lineEnding"),Zn.consume(ro),Zn.exit("lineEnding"),sa}function sa(ro){return Zn.enter("codeFencedFence"),(0,Jt.xz)(ro)?(0,Sn.f)(Zn,Uo,"linePrefix",W.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ro):Uo(ro)}function Uo(ro){return ro===Vt?(Zn.enter("codeFencedFenceSequence"),br(ro)):is(ro)}function br(ro){return ro===Vt?(bo++,Zn.consume(ro),br):bo>=Ot?(Zn.exit("codeFencedFenceSequence"),(0,Jt.xz)(ro)?(0,Sn.f)(Zn,mr,"whitespace")(ro):mr(ro)):is(ro)}function mr(ro){return ro===null||(0,Jt.Ch)(ro)?(Zn.exit("codeFencedFence"),Mo(ro)):is(ro)}}}function Si(b,M,U){const W=this;return dt;function dt(Ot){return Ot===null?U(Ot):(b.enter("lineEnding"),b.consume(Ot),b.exit("lineEnding"),mt)}function mt(Ot){return W.parser.lazy[W.now().line]?U(Ot):M(Ot)}}const Hr=document.createElement("i");function Qt(b){const M="&"+b+";";Hr.innerHTML=M;const U=Hr.textContent;return U.charCodeAt(U.length-1)===59&&b!=="semi"||U===M?!1:U}const Le={name:"characterReference",tokenize:Zt};function Zt(b,M,U){const W=this;let dt=0,mt,Ot;return Vt;function Vt(We){return b.enter("characterReference"),b.enter("characterReferenceMarker"),b.consume(We),b.exit("characterReferenceMarker"),be}function be(We){return We===35?(b.enter("characterReferenceMarkerNumeric"),b.consume(We),b.exit("characterReferenceMarkerNumeric"),Ne):(b.enter("characterReferenceValue"),mt=31,Ot=Jt.H$,ae(We))}function Ne(We){return We===88||We===120?(b.enter("characterReferenceMarkerHexadecimal"),b.consume(We),b.exit("characterReferenceMarkerHexadecimal"),b.enter("characterReferenceValue"),mt=6,Ot=Jt.AF,ae):(b.enter("characterReferenceValue"),mt=7,Ot=Jt.pY,ae(We))}function ae(We){if(We===59&&dt){const Ue=b.exit("characterReferenceValue");return Ot===Jt.H$&&!Qt(W.sliceSerialize(Ue))?U(We):(b.enter("characterReferenceMarker"),b.consume(We),b.exit("characterReferenceMarker"),b.exit("characterReference"),M)}return Ot(We)&&dt++<mt?(b.consume(We),ae):U(We)}}const z={name:"characterEscape",tokenize:Xe};function Xe(b,M,U){return W;function W(mt){return b.enter("characterEscape"),b.enter("escapeMarker"),b.consume(mt),b.exit("escapeMarker"),dt}function dt(mt){return(0,Jt.sR)(mt)?(b.enter("characterEscapeValue"),b.consume(mt),b.exit("characterEscapeValue"),b.exit("characterEscape"),M):U(mt)}}const an={name:"lineEnding",tokenize:On};function On(b,M){return U;function U(W){return b.enter("lineEnding"),b.consume(W),b.exit("lineEnding"),(0,Sn.f)(b,M,"linePrefix")}}function An(b,M,U){const W=[];let dt=-1;for(;++dt<b.length;){const mt=b[dt].resolveAll;mt&&!W.includes(mt)&&(M=mt(M,U),W.push(mt))}return M}const mn={name:"labelEnd",resolveAll:He,resolveTo:nn,tokenize:_n},ke={tokenize:ci},qe={tokenize:si},en={tokenize:Je};function He(b){let M=-1;const U=[];for(;++M<b.length;){const W=b[M][1];if(U.push(b[M]),W.type==="labelImage"||W.type==="labelLink"||W.type==="labelEnd"){const dt=W.type==="labelImage"?4:2;W.type="data",M+=dt}}return b.length!==U.length&&de(b,0,b.length,U),b}function nn(b,M){let U=b.length,W=0,dt,mt,Ot,Vt;for(;U--;)if(dt=b[U][1],mt){if(dt.type==="link"||dt.type==="labelLink"&&dt._inactive)break;b[U][0]==="enter"&&dt.type==="labelLink"&&(dt._inactive=!0)}else if(Ot){if(b[U][0]==="enter"&&(dt.type==="labelImage"||dt.type==="labelLink")&&!dt._balanced&&(mt=U,dt.type!=="labelLink")){W=2;break}}else dt.type==="labelEnd"&&(Ot=U);const be={type:b[mt][1].type==="labelLink"?"link":"image",start:to({},b[mt][1].start),end:to({},b[b.length-1][1].end)},Ne={type:"label",start:to({},b[mt][1].start),end:to({},b[Ot][1].end)},ae={type:"labelText",start:to({},b[mt+W+2][1].end),end:to({},b[Ot-2][1].start)};return Vt=[["enter",be,M],["enter",Ne,M]],Vt=Fe(Vt,b.slice(mt+1,mt+W+3)),Vt=Fe(Vt,[["enter",ae,M]]),Vt=Fe(Vt,An(M.parser.constructs.insideSpan.null,b.slice(mt+W+4,Ot-3),M)),Vt=Fe(Vt,[["exit",ae,M],b[Ot-2],b[Ot-1],["exit",Ne,M]]),Vt=Fe(Vt,b.slice(Ot+1)),Vt=Fe(Vt,[["exit",be,M]]),de(b,mt,b.length,Vt),b}function _n(b,M,U){const W=this;let dt=W.events.length,mt,Ot;for(;dt--;)if((W.events[dt][1].type==="labelImage"||W.events[dt][1].type==="labelLink")&&!W.events[dt][1]._balanced){mt=W.events[dt][1];break}return Vt;function Vt(Ue){return mt?mt._inactive?We(Ue):(Ot=W.parser.defined.includes(En(W.sliceSerialize({start:mt.end,end:W.now()}))),b.enter("labelEnd"),b.enter("labelMarker"),b.consume(Ue),b.exit("labelMarker"),b.exit("labelEnd"),be):U(Ue)}function be(Ue){return Ue===40?b.attempt(ke,ae,Ot?ae:We)(Ue):Ue===91?b.attempt(qe,ae,Ot?Ne:We)(Ue):Ot?ae(Ue):We(Ue)}function Ne(Ue){return b.attempt(en,ae,We)(Ue)}function ae(Ue){return M(Ue)}function We(Ue){return mt._balanced=!0,U(Ue)}}function ci(b,M,U){return W;function W(We){return b.enter("resource"),b.enter("resourceMarker"),b.consume(We),b.exit("resourceMarker"),dt}function dt(We){return(0,Jt.z3)(We)?bn(b,mt)(We):mt(We)}function mt(We){return We===41?ae(We):kn(b,Ot,Vt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(We)}function Ot(We){return(0,Jt.z3)(We)?bn(b,be)(We):ae(We)}function Vt(We){return U(We)}function be(We){return We===34||We===39||We===40?R(b,Ne,U,"resourceTitle","resourceTitleMarker","resourceTitleString")(We):ae(We)}function Ne(We){return(0,Jt.z3)(We)?bn(b,ae)(We):ae(We)}function ae(We){return We===41?(b.enter("resourceMarker"),b.consume(We),b.exit("resourceMarker"),b.exit("resource"),M):U(We)}}function si(b,M,U){const W=this;return dt;function dt(Vt){return te.call(W,b,mt,Ot,"reference","referenceMarker","referenceString")(Vt)}function mt(Vt){return W.parser.defined.includes(En(W.sliceSerialize(W.events[W.events.length-1][1]).slice(1,-1)))?M(Vt):U(Vt)}function Ot(Vt){return U(Vt)}}function Je(b,M,U){return W;function W(mt){return b.enter("reference"),b.enter("referenceMarker"),b.consume(mt),b.exit("referenceMarker"),dt}function dt(mt){return mt===93?(b.enter("referenceMarker"),b.consume(mt),b.exit("referenceMarker"),b.exit("reference"),M):U(mt)}}const Ui={name:"labelStartImage",resolveAll:mn.resolveAll,tokenize:Ti};function Ti(b,M,U){const W=this;return dt;function dt(Vt){return b.enter("labelImage"),b.enter("labelImageMarker"),b.consume(Vt),b.exit("labelImageMarker"),mt}function mt(Vt){return Vt===91?(b.enter("labelMarker"),b.consume(Vt),b.exit("labelMarker"),b.exit("labelImage"),Ot):U(Vt)}function Ot(Vt){return Vt===94&&"_hiddenFootnoteSupport"in W.parser.constructs?U(Vt):M(Vt)}}function ar(b){if(b===null||(0,Jt.z3)(b)||(0,Jt.B8)(b))return 1;if((0,Jt.Xh)(b))return 2}const bi={name:"attention",resolveAll:Kr,tokenize:Pr};function Kr(b,M){let U=-1,W,dt,mt,Ot,Vt,be,Ne,ae;for(;++U<b.length;)if(b[U][0]==="enter"&&b[U][1].type==="attentionSequence"&&b[U][1]._close){for(W=U;W--;)if(b[W][0]==="exit"&&b[W][1].type==="attentionSequence"&&b[W][1]._open&&M.sliceSerialize(b[W][1]).charCodeAt(0)===M.sliceSerialize(b[U][1]).charCodeAt(0)){if((b[W][1]._close||b[U][1]._open)&&(b[U][1].end.offset-b[U][1].start.offset)%3&&!((b[W][1].end.offset-b[W][1].start.offset+b[U][1].end.offset-b[U][1].start.offset)%3))continue;be=b[W][1].end.offset-b[W][1].start.offset>1&&b[U][1].end.offset-b[U][1].start.offset>1?2:1;const We=to({},b[W][1].end),Ue=to({},b[U][1].start);Mr(We,-be),Mr(Ue,be),Ot={type:be>1?"strongSequence":"emphasisSequence",start:We,end:to({},b[W][1].end)},Vt={type:be>1?"strongSequence":"emphasisSequence",start:to({},b[U][1].start),end:Ue},mt={type:be>1?"strongText":"emphasisText",start:to({},b[W][1].end),end:to({},b[U][1].start)},dt={type:be>1?"strong":"emphasis",start:to({},Ot.start),end:to({},Vt.end)},b[W][1].end=to({},Ot.start),b[U][1].start=to({},Vt.end),Ne=[],b[W][1].end.offset-b[W][1].start.offset&&(Ne=Fe(Ne,[["enter",b[W][1],M],["exit",b[W][1],M]])),Ne=Fe(Ne,[["enter",dt,M],["enter",Ot,M],["exit",Ot,M],["enter",mt,M]]),Ne=Fe(Ne,An(M.parser.constructs.insideSpan.null,b.slice(W+1,U),M)),Ne=Fe(Ne,[["exit",mt,M],["enter",Vt,M],["exit",Vt,M],["exit",dt,M]]),b[U][1].end.offset-b[U][1].start.offset?(ae=2,Ne=Fe(Ne,[["enter",b[U][1],M],["exit",b[U][1],M]])):ae=0,de(b,W-1,U-W+3,Ne),U=W+Ne.length-ae-2;break}}for(U=-1;++U<b.length;)b[U][1].type==="attentionSequence"&&(b[U][1].type="data");return b}function Pr(b,M){const U=this.parser.constructs.attentionMarkers.null,W=this.previous,dt=ar(W);let mt;return Ot;function Ot(be){return mt=be,b.enter("attentionSequence"),Vt(be)}function Vt(be){if(be===mt)return b.consume(be),Vt;const Ne=b.exit("attentionSequence"),ae=ar(be),We=!ae||ae===2&&dt||U.includes(be),Ue=!dt||dt===2&&ae||U.includes(W);return Ne._open=!!(mt===42?We:We&&(dt||!Ue)),Ne._close=!!(mt===42?Ue:Ue&&(ae||!We)),M(be)}}function Mr(b,M){b.column+=M,b.offset+=M,b._bufferIndex+=M}const Er={name:"autolink",tokenize:Or};function Or(b,M,U){let W=0;return dt;function dt(fe){return b.enter("autolink"),b.enter("autolinkMarker"),b.consume(fe),b.exit("autolinkMarker"),b.enter("autolinkProtocol"),mt}function mt(fe){return(0,Jt.jv)(fe)?(b.consume(fe),Ot):fe===64?U(fe):Ne(fe)}function Ot(fe){return fe===43||fe===45||fe===46||(0,Jt.H$)(fe)?(W=1,Vt(fe)):Ne(fe)}function Vt(fe){return fe===58?(b.consume(fe),W=0,be):(fe===43||fe===45||fe===46||(0,Jt.H$)(fe))&&W++<32?(b.consume(fe),Vt):(W=0,Ne(fe))}function be(fe){return fe===62?(b.exit("autolinkProtocol"),b.enter("autolinkMarker"),b.consume(fe),b.exit("autolinkMarker"),b.exit("autolink"),M):fe===null||fe===32||fe===60||(0,Jt.Av)(fe)?U(fe):(b.consume(fe),be)}function Ne(fe){return fe===64?(b.consume(fe),ae):(0,Jt.n9)(fe)?(b.consume(fe),Ne):U(fe)}function ae(fe){return(0,Jt.H$)(fe)?We(fe):U(fe)}function We(fe){return fe===46?(b.consume(fe),W=0,ae):fe===62?(b.exit("autolinkProtocol").type="autolinkEmail",b.enter("autolinkMarker"),b.consume(fe),b.exit("autolinkMarker"),b.exit("autolink"),M):Ue(fe)}function Ue(fe){if((fe===45||(0,Jt.H$)(fe))&&W++<63){const Pi=fe===45?Ue:We;return b.consume(fe),Pi}return U(fe)}}const Zr={name:"htmlText",tokenize:Xt};function Xt(b,M,U){const W=this;let dt,mt,Ot;return Vt;function Vt(Me){return b.enter("htmlText"),b.enter("htmlTextData"),b.consume(Me),be}function be(Me){return Me===33?(b.consume(Me),Ne):Me===47?(b.consume(Me),Io):Me===63?(b.consume(Me),Qi):(0,Jt.jv)(Me)?(b.consume(Me),is):U(Me)}function Ne(Me){return Me===45?(b.consume(Me),ae):Me===91?(b.consume(Me),mt=0,Pi):(0,Jt.jv)(Me)?(b.consume(Me),Hi):U(Me)}function ae(Me){return Me===45?(b.consume(Me),fe):U(Me)}function We(Me){return Me===null?U(Me):Me===45?(b.consume(Me),Ue):(0,Jt.Ch)(Me)?(Ot=We,Bs(Me)):(b.consume(Me),We)}function Ue(Me){return Me===45?(b.consume(Me),fe):We(Me)}function fe(Me){return Me===62?Xo(Me):Me===45?Ue(Me):We(Me)}function Pi(Me){const aa="CDATA[";return Me===aa.charCodeAt(mt++)?(b.consume(Me),mt===aa.length?lr:Pi):U(Me)}function lr(Me){return Me===null?U(Me):Me===93?(b.consume(Me),Cr):(0,Jt.Ch)(Me)?(Ot=lr,Bs(Me)):(b.consume(Me),lr)}function Cr(Me){return Me===93?(b.consume(Me),hi):lr(Me)}function hi(Me){return Me===62?Xo(Me):Me===93?(b.consume(Me),hi):lr(Me)}function Hi(Me){return Me===null||Me===62?Xo(Me):(0,Jt.Ch)(Me)?(Ot=Hi,Bs(Me)):(b.consume(Me),Hi)}function Qi(Me){return Me===null?U(Me):Me===63?(b.consume(Me),Ao):(0,Jt.Ch)(Me)?(Ot=Qi,Bs(Me)):(b.consume(Me),Qi)}function Ao(Me){return Me===62?Xo(Me):Qi(Me)}function Io(Me){return(0,Jt.jv)(Me)?(b.consume(Me),Zn):U(Me)}function Zn(Me){return Me===45||(0,Jt.H$)(Me)?(b.consume(Me),Zn):Mo(Me)}function Mo(Me){return(0,Jt.Ch)(Me)?(Ot=Mo,Bs(Me)):(0,Jt.xz)(Me)?(b.consume(Me),Mo):Xo(Me)}function is(Me){return Me===45||(0,Jt.H$)(Me)?(b.consume(Me),is):Me===47||Me===62||(0,Jt.z3)(Me)?bo(Me):U(Me)}function bo(Me){return Me===47?(b.consume(Me),Xo):Me===58||Me===95||(0,Jt.jv)(Me)?(b.consume(Me),Di):(0,Jt.Ch)(Me)?(Ot=bo,Bs(Me)):(0,Jt.xz)(Me)?(b.consume(Me),bo):Xo(Me)}function Di(Me){return Me===45||Me===46||Me===58||Me===95||(0,Jt.H$)(Me)?(b.consume(Me),Di):sa(Me)}function sa(Me){return Me===61?(b.consume(Me),Uo):(0,Jt.Ch)(Me)?(Ot=sa,Bs(Me)):(0,Jt.xz)(Me)?(b.consume(Me),sa):bo(Me)}function Uo(Me){return Me===null||Me===60||Me===61||Me===62||Me===96?U(Me):Me===34||Me===39?(b.consume(Me),dt=Me,br):(0,Jt.Ch)(Me)?(Ot=Uo,Bs(Me)):(0,Jt.xz)(Me)?(b.consume(Me),Uo):(b.consume(Me),mr)}function br(Me){return Me===dt?(b.consume(Me),dt=void 0,ro):Me===null?U(Me):(0,Jt.Ch)(Me)?(Ot=br,Bs(Me)):(b.consume(Me),br)}function mr(Me){return Me===null||Me===34||Me===39||Me===60||Me===61||Me===96?U(Me):Me===47||Me===62||(0,Jt.z3)(Me)?bo(Me):(b.consume(Me),mr)}function ro(Me){return Me===47||Me===62||(0,Jt.z3)(Me)?bo(Me):U(Me)}function Xo(Me){return Me===62?(b.consume(Me),b.exit("htmlTextData"),b.exit("htmlText"),M):U(Me)}function Bs(Me){return b.exit("htmlTextData"),b.enter("lineEnding"),b.consume(Me),b.exit("lineEnding"),$s}function $s(Me){return(0,Jt.xz)(Me)?(0,Sn.f)(b,Fa,"linePrefix",W.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Me):Fa(Me)}function Fa(Me){return b.enter("htmlTextData"),Ot(Me)}}const rr={name:"labelStartLink",resolveAll:mn.resolveAll,tokenize:$i};function $i(b,M,U){const W=this;return dt;function dt(Ot){return b.enter("labelLink"),b.enter("labelMarker"),b.consume(Ot),b.exit("labelMarker"),b.exit("labelLink"),mt}function mt(Ot){return Ot===94&&"_hiddenFootnoteSupport"in W.parser.constructs?U(Ot):M(Ot)}}const mi={name:"hardBreakEscape",tokenize:Mi};function Mi(b,M,U){return W;function W(mt){return b.enter("hardBreakEscape"),b.consume(mt),dt}function dt(mt){return(0,Jt.Ch)(mt)?(b.exit("hardBreakEscape"),M(mt)):U(mt)}}const er={name:"codeText",previous:ee,resolve:Sr,tokenize:Ni};function Sr(b){let M=b.length-4,U=3,W,dt;if((b[U][1].type==="lineEnding"||b[U][1].type==="space")&&(b[M][1].type==="lineEnding"||b[M][1].type==="space")){for(W=U;++W<M;)if(b[W][1].type==="codeTextData"){b[U][1].type="codeTextPadding",b[M][1].type="codeTextPadding",U+=2,M-=2;break}}for(W=U-1,M++;++W<=M;)dt===void 0?W!==M&&b[W][1].type!=="lineEnding"&&(dt=W):(W===M||b[W][1].type==="lineEnding")&&(b[dt][1].type="codeTextData",W!==dt+2&&(b[dt][1].end=b[W-1][1].end,b.splice(dt+2,W-dt-2),M-=W-dt-2,W=dt+2),dt=void 0);return b}function ee(b){return b!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ni(b,M,U){const W=this;let dt=0,mt,Ot;return Vt;function Vt(Ue){return b.enter("codeText"),b.enter("codeTextSequence"),be(Ue)}function be(Ue){return Ue===96?(b.consume(Ue),dt++,be):(b.exit("codeTextSequence"),Ne(Ue))}function Ne(Ue){return Ue===null?U(Ue):Ue===32?(b.enter("space"),b.consume(Ue),b.exit("space"),Ne):Ue===96?(Ot=b.enter("codeTextSequence"),mt=0,We(Ue)):(0,Jt.Ch)(Ue)?(b.enter("lineEnding"),b.consume(Ue),b.exit("lineEnding"),Ne):(b.enter("codeTextData"),ae(Ue))}function ae(Ue){return Ue===null||Ue===32||Ue===96||(0,Jt.Ch)(Ue)?(b.exit("codeTextData"),Ne(Ue)):(b.consume(Ue),ae)}function We(Ue){return Ue===96?(b.consume(Ue),mt++,We):mt===dt?(b.exit("codeTextSequence"),b.exit("codeText"),M(Ue)):(Ot.type="codeTextData",ae(Ue))}}const Gr={42:Xi,43:Xi,45:Xi,48:Xi,49:Xi,50:Xi,51:Xi,52:Xi,53:Xi,54:Xi,55:Xi,56:Xi,57:Xi,62:rn},ws={91:ve},cs={[-2]:yn,[-1]:yn,32:yn},Ma={35:xe,42:fr,45:[Ai,fr],60:qi,61:Ai,95:fr,96:pr,126:pr},As={38:Le,92:z},ii={[-5]:an,[-4]:an,[-3]:an,33:Ui,38:Le,42:bi,60:[Er,Zr],91:rr,92:[mi,z],93:mn,95:bi,96:er},po={null:[bi,pi]},go={null:[42,95]},Vo={null:[]};function mo(b,M,U){let W={_bufferIndex:-1,_index:0,line:U&&U.line||1,column:U&&U.column||1,offset:U&&U.offset||0};const dt={},mt=[];let Ot=[],Vt=[],be=!0;const Ne={attempt:bo(Mo),check:bo(is),consume:Ao,enter:Io,exit:Zn,interrupt:bo(is,{interrupt:!0})},ae={code:null,containerState:{},defineSkip:hi,events:[],now:Cr,parser:b,previous:null,sliceSerialize:Pi,sliceStream:lr,write:fe};let We=M.tokenize.call(ae,Ne),Ue;return M.resolveAll&&mt.push(M),ae;function fe(br){return Ot=Fe(Ot,br),Hi(),Ot[Ot.length-1]!==null?[]:(Di(M,0),ae.events=An(mt,ae.events,ae),ae.events)}function Pi(br,mr){return vn(lr(br),mr)}function lr(br){return Co(Ot,br)}function Cr(){const{_bufferIndex:br,_index:mr,line:ro,column:Xo,offset:Bs}=W;return{_bufferIndex:br,_index:mr,line:ro,column:Xo,offset:Bs}}function hi(br){dt[br.line]=br.column,Uo()}function Hi(){let br;for(;W._index<Ot.length;){const mr=Ot[W._index];if(typeof mr=="string")for(br=W._index,W._bufferIndex<0&&(W._bufferIndex=0);W._index===br&&W._bufferIndex<mr.length;)Qi(mr.charCodeAt(W._bufferIndex));else Qi(mr)}}function Qi(br){be=void 0,Ue=br,We=We(br)}function Ao(br){(0,Jt.Ch)(br)?(W.line++,W.column=1,W.offset+=br===-3?2:1,Uo()):br!==-1&&(W.column++,W.offset++),W._bufferIndex<0?W._index++:(W._bufferIndex++,W._bufferIndex===Ot[W._index].length&&(W._bufferIndex=-1,W._index++)),ae.previous=br,be=!0}function Io(br,mr){const ro=mr||{};return ro.type=br,ro.start=Cr(),ae.events.push(["enter",ro,ae]),Vt.push(ro),ro}function Zn(br){const mr=Vt.pop();return mr.end=Cr(),ae.events.push(["exit",mr,ae]),mr}function Mo(br,mr){Di(br,mr.from)}function is(br,mr){mr.restore()}function bo(br,mr){return ro;function ro(Xo,Bs,$s){let Fa,Me,aa,Ya;return Array.isArray(Xo)?Xs(Xo):"tokenize"in Xo?Xs([Xo]):_e(Xo);function _e(Qo){return Ka;function Ka(Gs){const Dl=Gs!==null&&Qo[Gs],Jl=Gs!==null&&Qo.null,bc=[...Array.isArray(Dl)?Dl:Dl?[Dl]:[],...Array.isArray(Jl)?Jl:Jl?[Jl]:[]];return Xs(bc)(Gs)}}function Xs(Qo){return Fa=Qo,Me=0,Qo.length===0?$s:sl(Qo[Me])}function sl(Qo){return Ka;function Ka(Gs){return Ya=sa(),aa=Qo,Qo.partial||(ae.currentConstruct=Qo),Qo.name&&ae.parser.constructs.disable.null.includes(Qo.name)?Os(Gs):Qo.tokenize.call(mr?Object.assign(Object.create(ae),mr):ae,Ne,xl,Os)(Gs)}}function xl(Qo){return be=!0,br(aa,Ya),Bs}function Os(Qo){return be=!0,Ya.restore(),++Me<Fa.length?sl(Fa[Me]):$s}}}function Di(br,mr){br.resolveAll&&!mt.includes(br)&&mt.push(br),br.resolve&&de(ae.events,mr,ae.events.length-mr,br.resolve(ae.events.slice(mr),ae)),br.resolveTo&&(ae.events=br.resolveTo(ae.events,ae))}function sa(){const br=Cr(),mr=ae.previous,ro=ae.currentConstruct,Xo=ae.events.length,Bs=Array.from(Vt);return{from:Xo,restore:$s};function $s(){W=br,ae.previous=mr,ae.currentConstruct=ro,ae.events.length=Xo,Vt=Bs,Uo()}}function Uo(){W.line in dt&&W.column<2&&(W.column=dt[W.line],W.offset+=dt[W.line]-1)}}function Co(b,M){const U=M.start._index,W=M.start._bufferIndex,dt=M.end._index,mt=M.end._bufferIndex;let Ot;if(U===dt)Ot=[b[U].slice(W,mt)];else{if(Ot=b.slice(U,dt),W>-1){const Vt=Ot[0];typeof Vt=="string"?Ot[0]=Vt.slice(W):Ot.shift()}mt>0&&Ot.push(b[dt].slice(0,mt))}return Ot}function vn(b,M){let U=-1;const W=[];let dt;for(;++U<b.length;){const mt=b[U];let Ot;if(typeof mt=="string")Ot=mt;else switch(mt){case-5:{Ot="\r";break}case-4:{Ot=`
|
|
|
`;break}case-3:{Ot=`\r
|
|
|
`;break}case-2:{Ot=M?" ":" ";break}case-1:{if(!M&&dt)continue;Ot=" ";break}default:Ot=String.fromCharCode(mt)}dt=mt===-2,W.push(Ot)}return W.join("")}function qn(b){const W={constructs:ze([E,...(b||{}).extensions||[]]),content:dt(Hn),defined:[],document:dt(Qn),flow:dt(Fi),lazy:{},string:dt(so),text:dt(Zi)};return W;function dt(mt){return Ot;function Ot(Vt){return mo(W,mt,Vt)}}}const vi=/[\0\t\n\r]/g;function Gi(){let b=1,M="",U=!0,W;return dt;function dt(mt,Ot,Vt){const be=[];let Ne,ae,We,Ue,fe;for(mt=M+(typeof mt=="string"?mt.toString():new TextDecoder(Ot||void 0).decode(mt)),We=0,M="",U&&(mt.charCodeAt(0)===65279&&We++,U=void 0);We<mt.length;){if(vi.lastIndex=We,Ne=vi.exec(mt),Ue=Ne&&Ne.index!==void 0?Ne.index:mt.length,fe=mt.charCodeAt(Ue),!Ne){M=mt.slice(We);break}if(fe===10&&We===Ue&&W)be.push(-3),W=void 0;else switch(W&&(be.push(-5),W=void 0),We<Ue&&(be.push(mt.slice(We,Ue)),b+=Ue-We),fe){case 0:{be.push(65533),b++;break}case 9:{for(ae=Math.ceil(b/4)*4,be.push(-2);b++<ae;)be.push(-1);break}case 10:{be.push(-4),b=1;break}default:W=!0,b=1}We=Ue+1}return Vt&&(W&&be.push(-5),M&&be.push(M),be.push(null)),be}}function Yi(b,M){const U=Number.parseInt(b,M);return U<9||U===11||U>13&&U<32||U>126&&U<160||U>55295&&U<57344||U>64975&&U<65008||(U&65535)===65535||(U&65535)===65534||U>1114111?"\uFFFD":String.fromCodePoint(U)}const Vr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ei(b){return b.replace(Vr,Jo)}function Jo(b,M,U){if(M)return M;if(U.charCodeAt(0)===35){const dt=U.charCodeAt(1),mt=dt===120||dt===88;return Yi(U.slice(mt?2:1),mt?16:10)}return Qt(U)||b}const So={}.hasOwnProperty;function xo(b,M,U){return typeof M!="string"&&(U=M,M=void 0),tr(U)(Ge(qn(U).document().write(Gi()(b,M,!0))))}function tr(b){const M={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:mt(B),autolinkProtocol:bo,autolinkEmail:bo,atxHeading:mt(pu),blockQuote:mt(Gs),characterEscape:bo,characterReference:bo,codeFenced:mt(Dl),codeFencedFenceInfo:Ot,codeFencedFenceMeta:Ot,codeIndented:mt(Dl,Ot),codeText:mt(Jl,Ot),codeTextData:bo,data:bo,codeFlowValue:bo,definition:mt(bc),definitionDestinationString:Ot,definitionLabelString:Ot,definitionTitleString:Ot,emphasis:mt(al),hardBreakEscape:mt(Yc),hardBreakTrailing:mt(Yc),htmlFlow:mt(h,Ot),htmlFlowData:bo,htmlText:mt(h,Ot),htmlTextData:bo,image:mt(g),label:Ot,link:mt(B),listItem:mt(Se),listItemValue:Ue,listOrdered:mt(Lt,We),listUnordered:mt(Lt),paragraph:mt(fn),reference:_e,referenceString:Ot,resourceDestinationString:Ot,resourceTitleString:Ot,setextHeading:mt(pu),strong:mt(Fn),thematicBreak:mt(vr)},exit:{atxHeading:be(),atxHeadingSequence:Io,autolink:be(),autolinkEmail:Ka,autolinkProtocol:Qo,blockQuote:be(),characterEscapeValue:Di,characterReferenceMarkerHexadecimal:sl,characterReferenceMarkerNumeric:sl,characterReferenceValue:xl,characterReference:Os,codeFenced:be(Cr),codeFencedFence:lr,codeFencedFenceInfo:fe,codeFencedFenceMeta:Pi,codeFlowValue:Di,codeIndented:be(hi),codeText:be(ro),codeTextData:Di,data:Di,definition:be(),definitionDestinationString:Ao,definitionLabelString:Hi,definitionTitleString:Qi,emphasis:be(),hardBreakEscape:be(Uo),hardBreakTrailing:be(Uo),htmlFlow:be(br),htmlFlowData:Di,htmlText:be(mr),htmlTextData:Di,image:be(Bs),label:Fa,labelText:$s,lineEnding:sa,link:be(Xo),listItem:be(),listOrdered:be(),listUnordered:be(),paragraph:be(),referenceString:Xs,resourceDestinationString:Me,resourceTitleString:aa,resource:Ya,setextHeading:be(is),setextHeadingLineSequence:Mo,setextHeadingText:Zn,strong:be(),thematicBreak:be()}};xs(M,(b||{}).mdastExtensions||[]);const U={};return W;function W(ln){let oi={type:"root",children:[]};const kr={stack:[oi],tokenStack:[],config:M,enter:Vt,exit:Ne,buffer:Ot,resume:ae,data:U},lo=[];let Bo=-1;for(;++Bo<ln.length;)if(ln[Bo][1].type==="listOrdered"||ln[Bo][1].type==="listUnordered")if(ln[Bo][0]==="enter")lo.push(Bo);else{const bl=lo.pop();Bo=dt(ln,bl,Bo)}for(Bo=-1;++Bo<ln.length;){const bl=M[ln[Bo][0]];So.call(bl,ln[Bo][1].type)&&bl[ln[Bo][1].type].call(Object.assign({sliceSerialize:ln[Bo][2].sliceSerialize},kr),ln[Bo][1])}if(kr.tokenStack.length>0){const bl=kr.tokenStack[kr.tokenStack.length-1];(bl[1]||hs).call(kr,void 0,bl[0])}for(oi.position={start:$r(ln.length>0?ln[0][1].start:{line:1,column:1,offset:0}),end:$r(ln.length>0?ln[ln.length-2][1].end:{line:1,column:1,offset:0})},Bo=-1;++Bo<M.transforms.length;)oi=M.transforms[Bo](oi)||oi;return oi}function dt(ln,oi,kr){let lo=oi-1,Bo=-1,bl=!1,Pl,gu,ql,wa;for(;++lo<=kr;){const ll=ln[lo];switch(ll[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ll[0]==="enter"?Bo++:Bo--,wa=void 0;break}case"lineEndingBlank":{ll[0]==="enter"&&(Pl&&!wa&&!Bo&&!ql&&(ql=lo),wa=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wa=void 0}if(!Bo&&ll[0]==="enter"&&ll[1].type==="listItemPrefix"||Bo===-1&&ll[0]==="exit"&&(ll[1].type==="listUnordered"||ll[1].type==="listOrdered")){if(Pl){let Bu=lo;for(gu=void 0;Bu--;){const Za=ln[Bu];if(Za[1].type==="lineEnding"||Za[1].type==="lineEndingBlank"){if(Za[0]==="exit")continue;gu&&(ln[gu][1].type="lineEndingBlank",bl=!0),Za[1].type="lineEnding",gu=Bu}else if(!(Za[1].type==="linePrefix"||Za[1].type==="blockQuotePrefix"||Za[1].type==="blockQuotePrefixWhitespace"||Za[1].type==="blockQuoteMarker"||Za[1].type==="listItemIndent"))break}ql&&(!gu||ql<gu)&&(Pl._spread=!0),Pl.end=Object.assign({},gu?ln[gu][1].start:ll[1].end),ln.splice(gu||lo,0,["exit",Pl,ll[2]]),lo++,kr++}if(ll[1].type==="listItemPrefix"){const Bu={type:"listItem",_spread:!1,start:Object.assign({},ll[1].start),end:void 0};Pl=Bu,ln.splice(lo,0,["enter",Bu,ll[2]]),lo++,kr++,ql=void 0,wa=!0}}}return ln[oi][1]._spread=bl,kr}function mt(ln,oi){return kr;function kr(lo){Vt.call(this,ln(lo),lo),oi&&oi.call(this,lo)}}function Ot(){this.stack.push({type:"fragment",children:[]})}function Vt(ln,oi,kr){this.stack[this.stack.length-1].children.push(ln),this.stack.push(ln),this.tokenStack.push([oi,kr||void 0]),ln.position={start:$r(oi.start),end:void 0}}function be(ln){return oi;function oi(kr){ln&&ln.call(this,kr),Ne.call(this,kr)}}function Ne(ln,oi){const kr=this.stack.pop(),lo=this.tokenStack.pop();if(lo)lo[0].type!==ln.type&&(oi?oi.call(this,ln,lo[0]):(lo[1]||hs).call(this,ln,lo[0]));else throw new Error("Cannot close `"+ln.type+"` ("+st({start:ln.start,end:ln.end})+"): it\u2019s not open");kr.position.end=$r(ln.end)}function ae(){return Ve(this.stack.pop())}function We(){this.data.expectingFirstListItemValue=!0}function Ue(ln){if(this.data.expectingFirstListItemValue){const oi=this.stack[this.stack.length-2];oi.start=Number.parseInt(this.sliceSerialize(ln),10),this.data.expectingFirstListItemValue=void 0}}function fe(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.lang=ln}function Pi(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.meta=ln}function lr(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Cr(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.value=ln.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function hi(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.value=ln.replace(/(\r?\n|\r)$/g,"")}function Hi(ln){const oi=this.resume(),kr=this.stack[this.stack.length-1];kr.label=oi,kr.identifier=En(this.sliceSerialize(ln)).toLowerCase()}function Qi(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.title=ln}function Ao(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.url=ln}function Io(ln){const oi=this.stack[this.stack.length-1];if(!oi.depth){const kr=this.sliceSerialize(ln).length;oi.depth=kr}}function Zn(){this.data.setextHeadingSlurpLineEnding=!0}function Mo(ln){const oi=this.stack[this.stack.length-1];oi.depth=this.sliceSerialize(ln).codePointAt(0)===61?1:2}function is(){this.data.setextHeadingSlurpLineEnding=void 0}function bo(ln){const kr=this.stack[this.stack.length-1].children;let lo=kr[kr.length-1];(!lo||lo.type!=="text")&&(lo=zi(),lo.position={start:$r(ln.start),end:void 0},kr.push(lo)),this.stack.push(lo)}function Di(ln){const oi=this.stack.pop();oi.value+=this.sliceSerialize(ln),oi.position.end=$r(ln.end)}function sa(ln){const oi=this.stack[this.stack.length-1];if(this.data.atHardBreak){const kr=oi.children[oi.children.length-1];kr.position.end=$r(ln.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&M.canContainEols.includes(oi.type)&&(bo.call(this,ln),Di.call(this,ln))}function Uo(){this.data.atHardBreak=!0}function br(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.value=ln}function mr(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.value=ln}function ro(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.value=ln}function Xo(){const ln=this.stack[this.stack.length-1];if(this.data.inReference){const oi=this.data.referenceType||"shortcut";ln.type+="Reference",ln.referenceType=oi,delete ln.url,delete ln.title}else delete ln.identifier,delete ln.label;this.data.referenceType=void 0}function Bs(){const ln=this.stack[this.stack.length-1];if(this.data.inReference){const oi=this.data.referenceType||"shortcut";ln.type+="Reference",ln.referenceType=oi,delete ln.url,delete ln.title}else delete ln.identifier,delete ln.label;this.data.referenceType=void 0}function $s(ln){const oi=this.sliceSerialize(ln),kr=this.stack[this.stack.length-2];kr.label=ei(oi),kr.identifier=En(oi).toLowerCase()}function Fa(){const ln=this.stack[this.stack.length-1],oi=this.resume(),kr=this.stack[this.stack.length-1];if(this.data.inReference=!0,kr.type==="link"){const lo=ln.children;kr.children=lo}else kr.alt=oi}function Me(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.url=ln}function aa(){const ln=this.resume(),oi=this.stack[this.stack.length-1];oi.title=ln}function Ya(){this.data.inReference=void 0}function _e(){this.data.referenceType="collapsed"}function Xs(ln){const oi=this.resume(),kr=this.stack[this.stack.length-1];kr.label=oi,kr.identifier=En(this.sliceSerialize(ln)).toLowerCase(),this.data.referenceType="full"}function sl(ln){this.data.characterReferenceType=ln.type}function xl(ln){const oi=this.sliceSerialize(ln),kr=this.data.characterReferenceType;let lo;kr?(lo=Yi(oi,kr==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):lo=Qt(oi);const Bo=this.stack[this.stack.length-1];Bo.value+=lo}function Os(ln){const oi=this.stack.pop();oi.position.end=$r(ln.end)}function Qo(ln){Di.call(this,ln);const oi=this.stack[this.stack.length-1];oi.url=this.sliceSerialize(ln)}function Ka(ln){Di.call(this,ln);const oi=this.stack[this.stack.length-1];oi.url="mailto:"+this.sliceSerialize(ln)}function Gs(){return{type:"blockquote",children:[]}}function Dl(){return{type:"code",lang:null,meta:null,value:""}}function Jl(){return{type:"inlineCode",value:""}}function bc(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function al(){return{type:"emphasis",children:[]}}function pu(){return{type:"heading",depth:0,children:[]}}function Yc(){return{type:"break"}}function h(){return{type:"html",value:""}}function g(){return{type:"image",title:null,url:"",alt:null}}function B(){return{type:"link",title:null,url:"",children:[]}}function Lt(ln){return{type:"list",ordered:ln.type==="listOrdered",start:null,spread:ln._spread,children:[]}}function Se(ln){return{type:"listItem",spread:ln._spread,checked:null,children:[]}}function fn(){return{type:"paragraph",children:[]}}function Fn(){return{type:"strong",children:[]}}function zi(){return{type:"text",value:""}}function vr(){return{type:"thematicBreak"}}}function $r(b){return{line:b.line,column:b.column,offset:b.offset}}function xs(b,M){let U=-1;for(;++U<M.length;){const W=M[U];Array.isArray(W)?xs(b,W):eo(b,W)}}function eo(b,M){let U;for(U in M)if(So.call(M,U))switch(U){case"canContainEols":{const W=M[U];W&&b[U].push(...W);break}case"transforms":{const W=M[U];W&&b[U].push(...W);break}case"enter":case"exit":{const W=M[U];W&&Object.assign(b[U],W);break}}}function hs(b,M){throw b?new Error("Cannot close `"+b.type+"` ("+st({start:b.start,end:b.end})+"): a different token (`"+M.type+"`, "+st({start:M.start,end:M.end})+") is open"):new Error("Cannot close document, a token (`"+M.type+"`, "+st({start:M.start,end:M.end})+") is still open")}function Us(b){const M=this;M.parser=U;function U(W){return xo(W,Md(to(to({},M.data("settings")),b),{extensions:M.data("micromarkExtensions")||[],mdastExtensions:M.data("fromMarkdownExtensions")||[]}))}}var Is=p(90302);function Ro(b,M){const U=encode(Oa(b||""));if(!M)return U;const W=U.indexOf(":"),dt=U.indexOf("?"),mt=U.indexOf("#"),Ot=U.indexOf("/");return W<0||Ot>-1&&W>Ot||dt>-1&&W>dt||mt>-1&&W>mt||M.test(U.slice(0,W))?U:""}function Oa(b){const M=[];let U=-1,W=0,dt=0;for(;++U<b.length;){const mt=b.charCodeAt(U);let Ot="";if(mt===37&&(0,Jt.H$)(b.charCodeAt(U+1))&&(0,Jt.H$)(b.charCodeAt(U+2)))dt=2;else if(mt<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(mt))||(Ot=String.fromCharCode(mt));else if(mt>55295&&mt<57344){const Vt=b.charCodeAt(U+1);mt<56320&&Vt>56319&&Vt<57344?(Ot=String.fromCharCode(mt,Vt),dt=1):Ot="\uFFFD"}else Ot=String.fromCharCode(mt);Ot&&(M.push(b.slice(W,U),encodeURIComponent(Ot)),W=U+dt+1,Ot=""),dt&&(U+=dt,dt=0)}return M.join("")+b.slice(W)}function Wl(b,M){const U=[{type:"text",value:"\u21A9"}];return M>1&&U.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(M)}]}),U}function Hs(b,M){return"Back to reference "+(b+1)+(M>1?"-"+M:"")}function na(b){const M=typeof b.options.clobberPrefix=="string"?b.options.clobberPrefix:"user-content-",U=b.options.footnoteBackContent||Wl,W=b.options.footnoteBackLabel||Hs,dt=b.options.footnoteLabel||"Footnotes",mt=b.options.footnoteLabelTagName||"h2",Ot=b.options.footnoteLabelProperties||{className:["sr-only"]},Vt=[];let be=-1;for(;++be<b.footnoteOrder.length;){const Ne=b.footnoteById.get(b.footnoteOrder[be]);if(!Ne)continue;const ae=b.all(Ne),We=String(Ne.identifier).toUpperCase(),Ue=Oa(We.toLowerCase());let fe=0;const Pi=[],lr=b.footnoteCounts.get(We);for(;lr!==void 0&&++fe<=lr;){Pi.length>0&&Pi.push({type:"text",value:" "});let Hi=typeof U=="string"?U:U(be,fe);typeof Hi=="string"&&(Hi={type:"text",value:Hi}),Pi.push({type:"element",tagName:"a",properties:{href:"#"+M+"fnref-"+Ue+(fe>1?"-"+fe:""),dataFootnoteBackref:"",ariaLabel:typeof W=="string"?W:W(be,fe),className:["data-footnote-backref"]},children:Array.isArray(Hi)?Hi:[Hi]})}const Cr=ae[ae.length-1];if(Cr&&Cr.type==="element"&&Cr.tagName==="p"){const Hi=Cr.children[Cr.children.length-1];Hi&&Hi.type==="text"?Hi.value+=" ":Cr.children.push({type:"text",value:" "}),Cr.children.push(...Pi)}else ae.push(...Pi);const hi={type:"element",tagName:"li",properties:{id:M+"fn-"+Ue},children:b.wrap(ae,!0)};b.patch(Ne,hi),Vt.push(hi)}if(Vt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:mt,properties:Md(to({},(0,Is.ZP)(Ot)),{id:"footnote-label"}),children:[{type:"text",value:dt}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:b.wrap(Vt,!0)},{type:"text",value:`
|
|
|
`}]}}var zs=p(10528);function nl(b,M){const U={type:"element",tagName:"blockquote",properties:{},children:b.wrap(b.all(M),!0)};return b.patch(M,U),b.applyData(M,U)}function cu(b,M){const U={type:"element",tagName:"br",properties:{},children:[]};return b.patch(M,U),[b.applyData(M,U),{type:"text",value:`
|
|
|
`}]}function hu(b,M){const U=M.value?M.value+`
|
|
|
`:"",W={};M.lang&&(W.className=["language-"+M.lang]);let dt={type:"element",tagName:"code",properties:W,children:[{type:"text",value:U}]};return M.meta&&(dt.data={meta:M.meta}),b.patch(M,dt),dt=b.applyData(M,dt),dt={type:"element",tagName:"pre",properties:{},children:[dt]},b.patch(M,dt),dt}function _o(b,M){const U={type:"element",tagName:"del",properties:{},children:b.all(M)};return b.patch(M,U),b.applyData(M,U)}function Yl(b,M){const U={type:"element",tagName:"em",properties:{},children:b.all(M)};return b.patch(M,U),b.applyData(M,U)}function du(b,M){const U=typeof b.options.clobberPrefix=="string"?b.options.clobberPrefix:"user-content-",W=String(M.identifier).toUpperCase(),dt=Oa(W.toLowerCase()),mt=b.footnoteOrder.indexOf(W);let Ot,Vt=b.footnoteCounts.get(W);Vt===void 0?(Vt=0,b.footnoteOrder.push(W),Ot=b.footnoteOrder.length):Ot=mt+1,Vt+=1,b.footnoteCounts.set(W,Vt);const be={type:"element",tagName:"a",properties:{href:"#"+U+"fn-"+dt,id:U+"fnref-"+dt+(Vt>1?"-"+Vt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(Ot)}]};b.patch(M,be);const Ne={type:"element",tagName:"sup",properties:{},children:[be]};return b.patch(M,Ne),b.applyData(M,Ne)}function ml(b,M){const U={type:"element",tagName:"h"+M.depth,properties:{},children:b.all(M)};return b.patch(M,U),b.applyData(M,U)}function Ml(b,M){if(b.options.allowDangerousHtml){const U={type:"raw",value:M.value};return b.patch(M,U),b.applyData(M,U)}}function ds(b,M){const U=M.referenceType;let W="]";if(U==="collapsed"?W+="[]":U==="full"&&(W+="["+(M.label||M.identifier)+"]"),M.type==="imageReference")return[{type:"text",value:"!["+M.alt+W}];const dt=b.all(M),mt=dt[0];mt&&mt.type==="text"?mt.value="["+mt.value:dt.unshift({type:"text",value:"["});const Ot=dt[dt.length-1];return Ot&&Ot.type==="text"?Ot.value+=W:dt.push({type:"text",value:W}),dt}function Cs(b,M){const U=String(M.identifier).toUpperCase(),W=b.definitionById.get(U);if(!W)return ds(b,M);const dt={src:Oa(W.url||""),alt:M.alt};W.title!==null&&W.title!==void 0&&(dt.title=W.title);const mt={type:"element",tagName:"img",properties:dt,children:[]};return b.patch(M,mt),b.applyData(M,mt)}function Zo(b,M){const U={src:Oa(M.url)};M.alt!==null&&M.alt!==void 0&&(U.alt=M.alt),M.title!==null&&M.title!==void 0&&(U.title=M.title);const W={type:"element",tagName:"img",properties:U,children:[]};return b.patch(M,W),b.applyData(M,W)}function as(b,M){const U={type:"text",value:M.value.replace(/\r?\n|\r/g," ")};b.patch(M,U);const W={type:"element",tagName:"code",properties:{},children:[U]};return b.patch(M,W),b.applyData(M,W)}function vl(b,M){const U=String(M.identifier).toUpperCase(),W=b.definitionById.get(U);if(!W)return ds(b,M);const dt={href:Oa(W.url||"")};W.title!==null&&W.title!==void 0&&(dt.title=W.title);const mt={type:"element",tagName:"a",properties:dt,children:b.all(M)};return b.patch(M,mt),b.applyData(M,mt)}function Ls(b,M){const U={href:Oa(M.url)};M.title!==null&&M.title!==void 0&&(U.title=M.title);const W={type:"element",tagName:"a",properties:U,children:b.all(M)};return b.patch(M,W),b.applyData(M,W)}function io(b,M,U){const W=b.all(M),dt=U?Xr(U):Ar(M),mt={},Ot=[];if(typeof M.checked=="boolean"){const ae=W[0];let We;ae&&ae.type==="element"&&ae.tagName==="p"?We=ae:(We={type:"element",tagName:"p",properties:{},children:[]},W.unshift(We)),We.children.length>0&&We.children.unshift({type:"text",value:" "}),We.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:M.checked,disabled:!0},children:[]}),mt.className=["task-list-item"]}let Vt=-1;for(;++Vt<W.length;){const ae=W[Vt];(dt||Vt!==0||ae.type!=="element"||ae.tagName!=="p")&&Ot.push({type:"text",value:`
|
|
|
`}),ae.type==="element"&&ae.tagName==="p"&&!dt?Ot.push(...ae.children):Ot.push(ae)}const be=W[W.length-1];be&&(dt||be.type!=="element"||be.tagName!=="p")&&Ot.push({type:"text",value:`
|
|
|
`});const Ne={type:"element",tagName:"li",properties:mt,children:Ot};return b.patch(M,Ne),b.applyData(M,Ne)}function Xr(b){let M=!1;if(b.type==="list"){M=b.spread||!1;const U=b.children;let W=-1;for(;!M&&++W<U.length;)M=Ar(U[W])}return M}function Ar(b){const M=b.spread;return M==null?b.children.length>1:M}function Wo(b,M){const U={},W=b.all(M);let dt=-1;for(typeof M.start=="number"&&M.start!==1&&(U.start=M.start);++dt<W.length;){const Ot=W[dt];if(Ot.type==="element"&&Ot.tagName==="li"&&Ot.properties&&Array.isArray(Ot.properties.className)&&Ot.properties.className.includes("task-list-item")){U.className=["contains-task-list"];break}}const mt={type:"element",tagName:M.ordered?"ol":"ul",properties:U,children:b.wrap(W,!0)};return b.patch(M,mt),b.applyData(M,mt)}function jn(b,M){const U={type:"element",tagName:"p",properties:{},children:b.all(M)};return b.patch(M,U),b.applyData(M,U)}function qo(b,M){const U={type:"root",children:b.wrap(b.all(M))};return b.patch(M,U),b.applyData(M,U)}function It(b,M){const U={type:"element",tagName:"strong",properties:{},children:b.all(M)};return b.patch(M,U),b.applyData(M,U)}function Oe(b,M){const U=b.all(M),W=U.shift(),dt=[];if(W){const Ot={type:"element",tagName:"thead",properties:{},children:b.wrap([W],!0)};b.patch(M.children[0],Ot),dt.push(Ot)}if(U.length>0){const Ot={type:"element",tagName:"tbody",properties:{},children:b.wrap(U,!0)},Vt=(0,ot.Pk)(M.children[1]),be=(0,ot.rb)(M.children[M.children.length-1]);Vt&&be&&(Ot.position={start:Vt,end:be}),dt.push(Ot)}const mt={type:"element",tagName:"table",properties:{},children:b.wrap(dt,!0)};return b.patch(M,mt),b.applyData(M,mt)}function xa(b,M,U){const W=U?U.children:void 0,mt=(W?W.indexOf(M):1)===0?"th":"td",Ot=U&&U.type==="table"?U.align:void 0,Vt=Ot?Ot.length:M.children.length;let be=-1;const Ne=[];for(;++be<Vt;){const We=M.children[be],Ue={},fe=Ot?Ot[be]:void 0;fe&&(Ue.align=fe);let Pi={type:"element",tagName:mt,properties:Ue,children:[]};We&&(Pi.children=b.all(We),b.patch(We,Pi),Pi=b.applyData(We,Pi)),Ne.push(Pi)}const ae={type:"element",tagName:"tr",properties:{},children:b.wrap(Ne,!0)};return b.patch(M,ae),b.applyData(M,ae)}function il(b,M){const U={type:"element",tagName:"td",properties:{},children:b.all(M)};return b.patch(M,U),b.applyData(M,U)}const Fo=9,ts=32;function ia(b){const M=String(b),U=/\r?\n|\r/g;let W=U.exec(M),dt=0;const mt=[];for(;W;)mt.push(ba(M.slice(dt,W.index),dt>0,!0),W[0]),dt=W.index+W[0].length,W=U.exec(M);return mt.push(ba(M.slice(dt),dt>0,!1)),mt.join("")}function ba(b,M,U){let W=0,dt=b.length;if(M){let mt=b.codePointAt(W);for(;mt===Fo||mt===ts;)W++,mt=b.codePointAt(W)}if(U){let mt=b.codePointAt(dt-1);for(;mt===Fo||mt===ts;)dt--,mt=b.codePointAt(dt-1)}return dt>W?b.slice(W,dt):""}function Kl(b,M){const U={type:"text",value:ia(String(M.value))};return b.patch(M,U),b.applyData(M,U)}function To(b,M){const U={type:"element",tagName:"hr",properties:{},children:[]};return b.patch(M,U),b.applyData(M,U)}const Oi={blockquote:nl,break:cu,code:hu,delete:_o,emphasis:Yl,footnoteReference:du,heading:ml,html:Ml,imageReference:Cs,image:Zo,inlineCode:as,linkReference:vl,link:Ls,listItem:io,list:Wo,paragraph:jn,root:qo,strong:It,table:Oe,tableCell:il,tableRow:xa,text:Kl,thematicBreak:To,toml:fs,yaml:fs,definition:fs,footnoteDefinition:fs};function fs(){}const _s={}.hasOwnProperty,Wr={};function gr(b,M){const U=M||Wr,W=new Map,dt=new Map,mt=new Map,Ot=to(to({},Oi),U.handlers),Vt={all:Ne,applyData:js,definitionById:W,footnoteById:dt,footnoteCounts:mt,footnoteOrder:[],handlers:Ot,one:be,options:U,patch:ko,wrap:Zs};return(0,zs.Vn)(b,function(ae){if(ae.type==="definition"||ae.type==="footnoteDefinition"){const We=ae.type==="definition"?W:dt,Ue=String(ae.identifier).toUpperCase();We.has(Ue)||We.set(Ue,ae)}}),Vt;function be(ae,We){const Ue=ae.type,fe=Vt.handlers[Ue];if(_s.call(Vt.handlers,Ue)&&fe)return fe(Vt,ae,We);if(Vt.options.passThrough&&Vt.options.passThrough.includes(Ue)){if("children"in ae){const lr=ae,{children:Cr}=lr,hi=I1(lr,["children"]),Hi=(0,Is.ZP)(hi);return Hi.children=Vt.all(ae),Hi}return(0,Is.ZP)(ae)}return(Vt.options.unknownHandler||fo)(Vt,ae,We)}function Ne(ae){const We=[];if("children"in ae){const Ue=ae.children;let fe=-1;for(;++fe<Ue.length;){const Pi=Vt.one(Ue[fe],ae);if(Pi){if(fe&&Ue[fe-1].type==="break"&&(!Array.isArray(Pi)&&Pi.type==="text"&&(Pi.value=es(Pi.value)),!Array.isArray(Pi)&&Pi.type==="element")){const lr=Pi.children[0];lr&&lr.type==="text"&&(lr.value=es(lr.value))}Array.isArray(Pi)?We.push(...Pi):We.push(Pi)}}}return We}}function ko(b,M){b.position&&(M.position=(0,ot.FK)(b))}function js(b,M){let U=M;if(b&&b.data){const W=b.data.hName,dt=b.data.hChildren,mt=b.data.hProperties;if(typeof W=="string")if(U.type==="element")U.tagName=W;else{const Ot="children"in U?U.children:[U];U={type:"element",tagName:W,properties:{},children:Ot}}U.type==="element"&&mt&&Object.assign(U.properties,(0,Is.ZP)(mt)),"children"in U&&U.children&&dt!==null&&dt!==void 0&&(U.children=dt)}return U}function fo(b,M){const U=M.data||{},W="value"in M&&!(_s.call(U,"hProperties")||_s.call(U,"hChildren"))?{type:"text",value:M.value}:{type:"element",tagName:"div",properties:{},children:b.all(M)};return b.patch(M,W),b.applyData(M,W)}function Zs(b,M){const U=[];let W=-1;for(M&&U.push({type:"text",value:`
|
|
|
`});++W<b.length;)W&&U.push({type:"text",value:`
|
|
|
`}),U.push(b[W]);return M&&b.length>0&&U.push({type:"text",value:`
|
|
|
`}),U}function es(b){let M=0,U=b.charCodeAt(M);for(;U===9||U===32;)M++,U=b.charCodeAt(M);return b.slice(M)}function yl(b,M){const U=gr(b,M),W=U.one(b,void 0),dt=na(U),mt=Array.isArray(W)?{type:"root",children:W}:W||{type:"root",children:[]};return dt&&((0,I.ok)("children"in mt),mt.children.push({type:"text",value:`
|
|
|
`},dt)),mt}function Qr(b,M){return b&&"run"in b?function(U,W){return iy(this,null,function*(){const dt=yl(U,to({file:W},M));yield b.run(dt,W)})}:function(U,W){return yl(U,to({file:W},b||M))}}function ps(b){if(b)throw b}var _r=p(58847);function ao(b){if(typeof b!="object"||b===null)return!1;const M=Object.getPrototypeOf(b);return(M===null||M===Object.prototype||Object.getPrototypeOf(M)===null)&&!(Symbol.toStringTag in b)&&!(Symbol.iterator in b)}function ho(){const b=[],M={run:U,use:W};return M;function U(...dt){let mt=-1;const Ot=dt.pop();if(typeof Ot!="function")throw new TypeError("Expected function as last argument, not "+Ot);Vt(null,...dt);function Vt(be,...Ne){const ae=b[++mt];let We=-1;if(be){Ot(be);return}for(;++We<dt.length;)(Ne[We]===null||Ne[We]===void 0)&&(Ne[We]=dt[We]);dt=Ne,ae?wo(ae,Vt)(...Ne):Ot(null,...Ne)}}function W(dt){if(typeof dt!="function")throw new TypeError("Expected `middelware` to be a function, not "+dt);return b.push(dt),M}}function wo(b,M){let U;return W;function W(...Ot){const Vt=b.length>Ot.length;let be;Vt&&Ot.push(dt);try{be=b.apply(this,Ot)}catch(Ne){const ae=Ne;if(Vt&&U)throw ae;return dt(ae)}Vt||(be&&be.then&&typeof be.then=="function"?be.then(mt,dt):be instanceof Error?dt(be):mt(be))}function dt(Ot,...Vt){U||(U=!0,M(Ot,...Vt))}function mt(Ot){dt(null,Ot)}}const Tr={basename:Zl,dirname:Ci,extname:nc,join:Dr,sep:"/"};function Zl(b,M){if(M!==void 0&&typeof M!="string")throw new TypeError('"ext" argument must be a string');rl(b);let U=0,W=-1,dt=b.length,mt;if(M===void 0||M.length===0||M.length>b.length){for(;dt--;)if(b.codePointAt(dt)===47){if(mt){U=dt+1;break}}else W<0&&(mt=!0,W=dt+1);return W<0?"":b.slice(U,W)}if(M===b)return"";let Ot=-1,Vt=M.length-1;for(;dt--;)if(b.codePointAt(dt)===47){if(mt){U=dt+1;break}}else Ot<0&&(mt=!0,Ot=dt+1),Vt>-1&&(b.codePointAt(dt)===M.codePointAt(Vt--)?Vt<0&&(W=dt):(Vt=-1,W=Ot));return U===W?W=Ot:W<0&&(W=b.length),b.slice(U,W)}function Ci(b){if(rl(b),b.length===0)return".";let M=-1,U=b.length,W;for(;--U;)if(b.codePointAt(U)===47){if(W){M=U;break}}else W||(W=!0);return M<0?b.codePointAt(0)===47?"/":".":M===1&&b.codePointAt(0)===47?"//":b.slice(0,M)}function nc(b){rl(b);let M=b.length,U=-1,W=0,dt=-1,mt=0,Ot;for(;M--;){const Vt=b.codePointAt(M);if(Vt===47){if(Ot){W=M+1;break}continue}U<0&&(Ot=!0,U=M+1),Vt===46?dt<0?dt=M:mt!==1&&(mt=1):dt>-1&&(mt=-1)}return dt<0||U<0||mt===0||mt===1&&dt===U-1&&dt===W+1?"":b.slice(dt,U)}function Dr(...b){let M=-1,U;for(;++M<b.length;)rl(b[M]),b[M]&&(U=U===void 0?b[M]:U+"/"+b[M]);return U===void 0?".":_u(U)}function _u(b){rl(b);const M=b.codePointAt(0)===47;let U=Ol(b,!M);return U.length===0&&!M&&(U="."),U.length>0&&b.codePointAt(b.length-1)===47&&(U+="/"),M?"/"+U:U}function Ol(b,M){let U="",W=0,dt=-1,mt=0,Ot=-1,Vt,be;for(;++Ot<=b.length;){if(Ot<b.length)Vt=b.codePointAt(Ot);else{if(Vt===47)break;Vt=47}if(Vt===47){if(!(dt===Ot-1||mt===1))if(dt!==Ot-1&&mt===2){if(U.length<2||W!==2||U.codePointAt(U.length-1)!==46||U.codePointAt(U.length-2)!==46){if(U.length>2){if(be=U.lastIndexOf("/"),be!==U.length-1){be<0?(U="",W=0):(U=U.slice(0,be),W=U.length-1-U.lastIndexOf("/")),dt=Ot,mt=0;continue}}else if(U.length>0){U="",W=0,dt=Ot,mt=0;continue}}M&&(U=U.length>0?U+"/..":"..",W=2)}else U.length>0?U+="/"+b.slice(dt+1,Ot):U=b.slice(dt+1,Ot),W=Ot-dt-1;dt=Ot,mt=0}else Vt===46&&mt>-1?mt++:mt=-1}return U}function rl(b){if(typeof b!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(b))}const Fu={cwd:ku};function ku(){return"/"}function Da(b){return!!(b!==null&&typeof b=="object"&&"href"in b&&b.href&&"protocol"in b&&b.protocol&&b.auth===void 0)}function Pa(b){if(typeof b=="string")b=new URL(b);else if(!Da(b)){const M=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+b+"`");throw M.code="ERR_INVALID_ARG_TYPE",M}if(b.protocol!=="file:"){const M=new TypeError("The URL must be of scheme file");throw M.code="ERR_INVALID_URL_SCHEME",M}return Fr(b)}function Fr(b){if(b.hostname!==""){const W=new TypeError('File URL host must be "localhost" or empty on darwin');throw W.code="ERR_INVALID_FILE_URL_HOST",W}const M=b.pathname;let U=-1;for(;++U<M.length;)if(M.codePointAt(U)===37&&M.codePointAt(U+1)===50){const W=M.codePointAt(U+2);if(W===70||W===102){const dt=new TypeError("File URL path must not include encoded / characters");throw dt.code="ERR_INVALID_FILE_URL_PATH",dt}}return decodeURIComponent(M)}const Rs=["history","path","basename","stem","extname","dirname"];class $l{constructor(M){let U;M?Da(M)?U={path:M}:typeof M=="string"||wr(M)?U={value:M}:U=M:U={},this.cwd="cwd"in U?"":Fu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let W=-1;for(;++W<Rs.length;){const mt=Rs[W];mt in U&&U[mt]!==void 0&&U[mt]!==null&&(this[mt]=mt==="history"?[...U[mt]]:U[mt])}let dt;for(dt in U)Rs.includes(dt)||(this[dt]=U[dt])}get basename(){return typeof this.path=="string"?Tr.basename(this.path):void 0}set basename(M){ol(M,"basename"),_a(M,"basename"),this.path=Tr.join(this.dirname||"",M)}get dirname(){return typeof this.path=="string"?Tr.dirname(this.path):void 0}set dirname(M){Va(this.basename,"dirname"),this.path=Tr.join(M||"",this.basename)}get extname(){return typeof this.path=="string"?Tr.extname(this.path):void 0}set extname(M){if(_a(M,"extname"),Va(this.dirname,"extname"),M){if(M.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(M.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tr.join(this.dirname,this.stem+(M||""))}get path(){return this.history[this.history.length-1]}set path(M){Da(M)&&(M=Pa(M)),ol(M,"path"),this.path!==M&&this.history.push(M)}get stem(){return typeof this.path=="string"?Tr.basename(this.path,this.extname):void 0}set stem(M){ol(M,"stem"),_a(M,"stem"),this.path=Tr.join(this.dirname||"",M+(this.extname||""))}fail(M,U,W){const dt=this.message(M,U,W);throw dt.fatal=!0,dt}info(M,U,W){const dt=this.message(M,U,W);return dt.fatal=void 0,dt}message(M,U,W){const dt=new pt(M,U,W);return this.path&&(dt.name=this.path+":"+dt.name,dt.file=this.path),dt.fatal=!1,this.messages.push(dt),dt}toString(M){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(M||void 0).decode(this.value)}}function _a(b,M){if(b&&b.includes(Tr.sep))throw new Error("`"+M+"` cannot be a path: did not expect `"+Tr.sep+"`")}function ol(b,M){if(!b)throw new Error("`"+M+"` cannot be empty")}function Va(b,M){if(!b)throw new Error("Setting `"+M+"` requires `path` to be set too")}function wr(b){return!!(b&&typeof b=="object"&&"byteLength"in b&&"byteOffset"in b)}const Jr=function(b){const W=this.constructor.prototype,dt=W[b],mt=function(){return dt.apply(mt,arguments)};return Object.setPrototypeOf(mt,W),mt},No={}.hasOwnProperty;class gs extends Jr{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=ho()}copy(){const M=new gs;let U=-1;for(;++U<this.attachers.length;){const W=this.attachers[U];M.use(...W)}return M.data(_r(!0,{},this.namespace)),M}data(M,U){return typeof M=="string"?arguments.length===2?(Ta("data",this.frozen),this.namespace[M]=U,this):No.call(this.namespace,M)&&this.namespace[M]||void 0:M?(Ta("data",this.frozen),this.namespace=M,this):this.namespace}freeze(){if(this.frozen)return this;const M=this;for(;++this.freezeIndex<this.attachers.length;){const[U,...W]=this.attachers[this.freezeIndex];if(W[0]===!1)continue;W[0]===!0&&(W[0]=void 0);const dt=U.call(M,...W);typeof dt=="function"&&this.transformers.use(dt)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(M){this.freeze();const U=vc(M),W=this.parser||this.Parser;return Ea("parse",W),W(String(U),U)}process(M,U){const W=this;return this.freeze(),Ea("process",this.parser||this.Parser),Sa("process",this.compiler||this.Compiler),U?dt(void 0,U):new Promise(dt);function dt(mt,Ot){const Vt=vc(M),be=W.parse(Vt);W.run(be,Vt,function(ae,We,Ue){if(ae||!We||!Ue)return Ne(ae);const fe=We,Pi=W.stringify(fe,Ue);Th(Pi)?Ue.value=Pi:Ue.result=Pi,Ne(ae,Ue)});function Ne(ae,We){ae||!We?Ot(ae):mt?mt(We):((0,I.ok)(U,"`done` is defined if `resolve` is not"),U(void 0,We))}}}processSync(M){let U=!1,W;return this.freeze(),Ea("processSync",this.parser||this.Parser),Sa("processSync",this.compiler||this.Compiler),this.process(M,dt),Wa("processSync","process",U),(0,I.ok)(W,"we either bailed on an error or have a tree"),W;function dt(mt,Ot){U=!0,ps(mt),W=Ot}}run(M,U,W){ra(M),this.freeze();const dt=this.transformers;return!W&&typeof U=="function"&&(W=U,U=void 0),W?mt(void 0,W):new Promise(mt);function mt(Ot,Vt){(0,I.ok)(typeof U!="function","`file` can\u2019t be a `done` anymore, we checked");const be=vc(U);dt.run(M,be,Ne);function Ne(ae,We,Ue){const fe=We||M;ae?Vt(ae):Ot?Ot(fe):((0,I.ok)(W,"`done` is defined if `resolve` is not"),W(void 0,fe,Ue))}}}runSync(M,U){let W=!1,dt;return this.run(M,U,mt),Wa("runSync","run",W),(0,I.ok)(dt,"we either bailed on an error or have a tree"),dt;function mt(Ot,Vt){ps(Ot),dt=Vt,W=!0}}stringify(M,U){this.freeze();const W=vc(U),dt=this.compiler||this.Compiler;return Sa("stringify",dt),ra(M),dt(M,W)}use(M,...U){const W=this.attachers,dt=this.namespace;if(Ta("use",this.frozen),M!=null)if(typeof M=="function")be(M,U);else if(typeof M=="object")Array.isArray(M)?Vt(M):Ot(M);else throw new TypeError("Expected usable value, not `"+M+"`");return this;function mt(Ne){if(typeof Ne=="function")be(Ne,[]);else if(typeof Ne=="object")if(Array.isArray(Ne)){const[ae,...We]=Ne;be(ae,We)}else Ot(Ne);else throw new TypeError("Expected usable value, not `"+Ne+"`")}function Ot(Ne){if(!("plugins"in Ne)&&!("settings"in Ne))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");Vt(Ne.plugins),Ne.settings&&(dt.settings=_r(!0,dt.settings,Ne.settings))}function Vt(Ne){let ae=-1;if(Ne!=null)if(Array.isArray(Ne))for(;++ae<Ne.length;){const We=Ne[ae];mt(We)}else throw new TypeError("Expected a list of plugins, not `"+Ne+"`")}function be(Ne,ae){let We=-1,Ue=-1;for(;++We<W.length;)if(W[We][0]===Ne){Ue=We;break}if(Ue===-1)W.push([Ne,...ae]);else if(ae.length>0){let[fe,...Pi]=ae;const lr=W[Ue][1];ao(lr)&&ao(fe)&&(fe=_r(!0,lr,fe)),W[Ue]=[Ne,fe,...Pi]}}}}const ns=new gs().freeze();function Ea(b,M){if(typeof M!="function")throw new TypeError("Cannot `"+b+"` without `parser`")}function Sa(b,M){if(typeof M!="function")throw new TypeError("Cannot `"+b+"` without `compiler`")}function Ta(b,M){if(M)throw new Error("Cannot call `"+b+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ra(b){if(!ao(b)||typeof b.type!="string")throw new TypeError("Expected node, got `"+b+"`")}function Wa(b,M,U){if(!U)throw new Error("`"+b+"` finished async. Use `"+M+"` instead")}function vc(b){return Sh(b)?b:new $l(b)}function Sh(b){return!!(b&&typeof b=="object"&&"message"in b&&"messages"in b)}function Th(b){return typeof b=="string"||wh(b)}function wh(b){return!!(b&&typeof b=="object"&&"byteLength"in b&&"byteOffset"in b)}const $o="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xl=[],uo={allowDangerousHtml:!0},bs=/^(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(b){const M=Ql(b),U=yc(b);return xc(M.runSync(M.parse(U),U),b)}function fu(b){return iy(this,null,function*(){const M=Ql(b),U=yc(b),W=yield M.run(M.parse(U),U);return xc(W,b)})}function Fs(b){const M=Ql(b),[U,W]=useState(void 0),[dt,mt]=useState(void 0);if(useEffect(function(){const Ot=yc(b);M.run(M.parse(Ot),Ot,function(Vt,be){W(Vt),mt(be)})},[b.children,b.rehypePlugins,b.remarkPlugins,b.remarkRehypeOptions]),U)throw U;return dt?xc(dt,b):createElement(Fragment)}function Ql(b){const M=b.rehypePlugins||Xl,U=b.remarkPlugins||Xl,W=b.remarkRehypeOptions?to(to({},b.remarkRehypeOptions),uo):uo;return ns().use(Us).use(U).use(Qr,W).use(M)}function yc(b){const M=b.children||"",U=new $l;return typeof M=="string"?U.value=M:(0,I.t1)("Unexpected value `"+M+"` for `children` prop, expected `string`"),U}function xc(b,M){const U=M.allowedElements,W=M.allowElement,dt=M.components,mt=M.disallowedElements,Ot=M.skipHtml,Vt=M.unwrapDisallowed,be=M.urlTransform||oa;for(const ae of Ms)Object.hasOwn(M,ae.from)&&(0,I.t1)("Unexpected `"+ae.from+"` prop, "+(ae.to?"use `"+ae.to+"` instead":"remove it")+" (see <"+$o+"#"+ae.id+"> for more info)");return U&&mt&&(0,I.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),M.className&&(b={type:"element",tagName:"div",properties:{className:M.className},children:b.type==="root"?b.children:[b]}),(0,zs.Vn)(b,Ne),ue(b,{Fragment:_.Fragment,components:dt,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function Ne(ae,We,Ue){if(ae.type==="raw"&&Ue&&typeof We=="number")return Ot?Ue.children.splice(We,1):Ue.children[We]={type:"text",value:ae.value},We;if(ae.type==="element"){let fe;for(fe in tt)if(Object.hasOwn(tt,fe)&&Object.hasOwn(ae.properties,fe)){const Pi=ae.properties[fe],lr=tt[fe];(lr===null||lr.includes(ae.tagName))&&(ae.properties[fe]=be(String(Pi||""),fe,ae))}}if(ae.type==="element"){let fe=U?!U.includes(ae.tagName):mt?mt.includes(ae.tagName):!1;if(!fe&&W&&typeof We=="number"&&(fe=!W(ae,We,Ue)),fe&&Ue&&typeof We=="number")return Vt&&ae.children?Ue.children.splice(We,1,...ae.children):Ue.children.splice(We,1),We}}}function oa(b){const M=b.indexOf(":"),U=b.indexOf("?"),W=b.indexOf("#"),dt=b.indexOf("/");return M===-1||dt!==-1&&M>dt||U!==-1&&M>U||W!==-1&&M>W||bs.test(b.slice(0,M))?b:""}},3977:function(j,S,p){"use strict";p.d(S,{Z:function(){return Yc}});var E={};p.r(E),p.d(E,{boolean:function(){return pt},booleanish:function(){return Ht},commaOrSpaceSeparated:function(){return Gt},commaSeparated:function(){return kt},number:function(){return gt},overloadedBoolean:function(){return At},spaceSeparated:function(){return Pt}});var I=p(90302),D=p(87342),P=p(81994),V=p(14470),C=p(86825);function Z(h){const g=String(h),B=[];return{toOffset:Se,toPoint:Lt};function Lt(fn){if(typeof fn=="number"&&fn>-1&&fn<=g.length){let Fn=0;for(;;){let zi=B[Fn];if(zi===void 0){const vr=lt(g,B[Fn-1]);zi=vr===-1?g.length+1:vr+1,B[Fn]=zi}if(zi>fn)return{line:Fn+1,column:fn-(Fn>0?B[Fn-1]:0)+1,offset:fn};Fn++}}}function Se(fn){if(fn&&typeof fn.line=="number"&&typeof fn.column=="number"&&!Number.isNaN(fn.line)&&!Number.isNaN(fn.column)){for(;B.length<fn.line;){const zi=B[B.length-1],vr=lt(g,zi),ln=vr===-1?g.length+1:vr+1;if(zi===ln)break;B.push(ln)}const Fn=(fn.line>1?B[fn.line-2]:0)+fn.column-1;if(Fn<B[fn.line-1])return Fn}}}function lt(h,g){const B=h.indexOf("\r",g),Lt=h.indexOf(`
|
|
|
`,g);return Lt===-1?B:B===-1||B+1===Lt?Lt:B<Lt?B:Lt}var J=p(43309);const Y={}.hasOwnProperty,Mt=Object.prototype;function ct(h,g){const B=g||{};return $t({file:B.file||void 0,location:!1,schema:B.space==="svg"?V.YP:V.dy,verbose:B.verbose||!1},h)}function $t(h,g){let B;switch(g.nodeName){case"#comment":{const Lt=g;return B={type:"comment",value:Lt.data},Ct(h,Lt,B),B}case"#document":case"#document-fragment":{const Lt=g,Se="mode"in Lt?Lt.mode==="quirks"||Lt.mode==="limited-quirks":!1;if(B={type:"root",children:Ft(h,g.childNodes),data:{quirksMode:Se}},h.file&&h.location){const fn=String(h.file),Fn=Z(fn),zi=Fn.toPoint(0),vr=Fn.toPoint(fn.length);(0,D.ok)(zi,"expected `start`"),(0,D.ok)(vr,"expected `end`"),B.position={start:zi,end:vr}}return B}case"#documentType":{const Lt=g;return B={type:"doctype"},Ct(h,Lt,B),B}case"#text":{const Lt=g;return B={type:"text",value:Lt.value},Ct(h,Lt,B),B}default:return B=_t(h,g),B}}function Ft(h,g){let B=-1;const Lt=[];for(;++B<g.length;){const Se=$t(h,g[B]);Lt.push(Se)}return Lt}function _t(h,g){const B=h.schema;h.schema=g.namespaceURI===J.t.svg?V.YP:V.dy;let Lt=-1;const Se={};for(;++Lt<g.attrs.length;){const zi=g.attrs[Lt],vr=(zi.prefix?zi.prefix+":":"")+zi.name;Y.call(Mt,vr)||(Se[vr]=zi.value)}const Fn=(h.schema.space==="svg"?P.s:P.h)(g.tagName,Se,Ft(h,g.childNodes));if(Ct(h,g,Fn),Fn.tagName==="template"){const zi=g,vr=zi.sourceCodeLocation,ln=vr&&vr.startTag&&St(vr.startTag),oi=vr&&vr.endTag&&St(vr.endTag),kr=$t(h,zi.content);ln&&oi&&h.file&&(kr.position={start:ln.end,end:oi.start}),Fn.content=kr}return h.schema=B,Fn}function Ct(h,g,B){if("sourceCodeLocation"in g&&g.sourceCodeLocation&&h.file){const Lt=xt(h,B,g.sourceCodeLocation);Lt&&(h.location=!0,B.position=Lt)}}function xt(h,g,B){const Lt=St(B);if(g.type==="element"){const Se=g.children[g.children.length-1];if(Lt&&!B.endTag&&Se&&Se.position&&Se.position.end&&(Lt.end=Object.assign({},Se.position.end)),h.verbose){const fn={};let Fn;if(B.attrs)for(Fn in B.attrs)Y.call(B.attrs,Fn)&&(fn[(0,C.s)(h.schema,Fn).property]=St(B.attrs[Fn]));(0,D.ok)(B.startTag,"a start tag should exist");const zi=St(B.startTag),vr=B.endTag?St(B.endTag):void 0,ln={opening:zi};vr&&(ln.closing=vr),ln.properties=fn,g.data={position:ln}}}return Lt}function St(h){const g=ft({line:h.startLine,column:h.startCol,offset:h.startOffset}),B=ft({line:h.endLine,column:h.endCol,offset:h.endOffset});return g||B?{start:g,end:B}:void 0}function ft(h){return h.line&&h.column?h:void 0}var vt=p(11630);class ot{constructor(g,B,Lt){this.property=g,this.normal=B,Lt&&(this.space=Lt)}}ot.prototype.property={},ot.prototype.normal={},ot.prototype.space=null;function st(h,g){const B={},Lt={};let Se=-1;for(;++Se<h.length;)Object.assign(B,h[Se].property),Object.assign(Lt,h[Se].normal);return new ot(B,Lt,g)}function q(h){return h.toLowerCase()}class wt{constructor(g,B){this.property=g,this.attribute=B}}wt.prototype.space=null,wt.prototype.boolean=!1,wt.prototype.booleanish=!1,wt.prototype.overloadedBoolean=!1,wt.prototype.number=!1,wt.prototype.commaSeparated=!1,wt.prototype.spaceSeparated=!1,wt.prototype.commaOrSpaceSeparated=!1,wt.prototype.mustUseProperty=!1,wt.prototype.defined=!1;let Bt=0;const pt=ue(),Ht=ue(),At=ue(),gt=ue(),Pt=ue(),kt=ue(),Gt=ue();function ue(){return ny(2,++Bt)}const le=Object.keys(E);class re extends wt{constructor(g,B,Lt,Se){let fn=-1;if(super(g,B),pe(this,"space",Se),typeof Lt=="number")for(;++fn<le.length;){const Fn=le[fn];pe(this,le[fn],(Lt&E[Fn])===E[Fn])}}}re.prototype.defined=!0;function pe(h,g,B){B&&(h[g]=B)}const Dt={}.hasOwnProperty;function rt(h){const g={},B={};let Lt;for(Lt in h.properties)if(Dt.call(h.properties,Lt)){const Se=h.properties[Lt],fn=new re(Lt,h.transform(h.attributes||{},Lt),Se,h.space);h.mustUseProperty&&h.mustUseProperty.includes(Lt)&&(fn.mustUseProperty=!0),g[Lt]=fn,B[q(Lt)]=Lt,B[q(fn.attribute)]=Lt}return new ot(g,B,h.space)}const Q=rt({space:"xlink",transform(h,g){return"xlink:"+g.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ie=rt({space:"xml",transform(h,g){return"xml:"+g.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ce(h,g){return g in h?h[g]:g}function oe(h,g){return ce(h,g.toLowerCase())}const pn=rt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:oe,properties:{xmlns:null,xmlnsXLink:null}}),Ze=rt({transform(h,g){return g==="role"?g:"aria-"+g.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ht,ariaAutoComplete:null,ariaBusy:Ht,ariaChecked:Ht,ariaColCount:gt,ariaColIndex:gt,ariaColSpan:gt,ariaControls:Pt,ariaCurrent:null,ariaDescribedBy:Pt,ariaDetails:null,ariaDisabled:Ht,ariaDropEffect:Pt,ariaErrorMessage:null,ariaExpanded:Ht,ariaFlowTo:Pt,ariaGrabbed:Ht,ariaHasPopup:null,ariaHidden:Ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pt,ariaLevel:gt,ariaLive:null,ariaModal:Ht,ariaMultiLine:Ht,ariaMultiSelectable:Ht,ariaOrientation:null,ariaOwns:Pt,ariaPlaceholder:null,ariaPosInSet:gt,ariaPressed:Ht,ariaReadOnly:Ht,ariaRelevant:null,ariaRequired:Ht,ariaRoleDescription:Pt,ariaRowCount:gt,ariaRowIndex:gt,ariaRowSpan:gt,ariaSelected:Ht,ariaSetSize:gt,ariaSort:null,ariaValueMax:gt,ariaValueMin:gt,ariaValueNow:gt,ariaValueText:null,role:null}}),Nn=rt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:oe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kt,acceptCharset:Pt,accessKey:Pt,action:null,allow:null,allowFullScreen:pt,allowPaymentRequest:pt,allowUserMedia:pt,alt:null,as:null,async:pt,autoCapitalize:null,autoComplete:Pt,autoFocus:pt,autoPlay:pt,blocking:Pt,capture:null,charSet:null,checked:pt,cite:null,className:Pt,cols:gt,colSpan:null,content:null,contentEditable:Ht,controls:pt,controlsList:Pt,coords:gt|kt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pt,defer:pt,dir:null,dirName:null,disabled:pt,download:At,draggable:Ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pt,formTarget:null,headers:Pt,height:gt,hidden:pt,high:gt,href:null,hrefLang:null,htmlFor:Pt,httpEquiv:Pt,id:null,imageSizes:null,imageSrcSet:null,inert:pt,inputMode:null,integrity:null,is:null,isMap:pt,itemId:null,itemProp:Pt,itemRef:Pt,itemScope:pt,itemType:Pt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pt,low:gt,manifest:null,max:null,maxLength:gt,media:null,method:null,min:null,minLength:gt,multiple:pt,muted:pt,name:null,nonce:null,noModule:pt,noValidate:pt,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:pt,optimum:gt,pattern:null,ping:Pt,placeholder:null,playsInline:pt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pt,referrerPolicy:null,rel:Pt,required:pt,reversed:pt,rows:gt,rowSpan:gt,sandbox:Pt,scope:null,scoped:pt,seamless:pt,selected:pt,shadowRootClonable:pt,shadowRootDelegatesFocus:pt,shadowRootMode:null,shape:null,size:gt,sizes:null,slot:null,span:gt,spellCheck:Ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:gt,step:null,style:null,tabIndex:gt,target:null,title:null,translate:null,type:null,typeMustMatch:pt,useMap:null,value:Ht,width:gt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pt,axis:null,background:null,bgColor:null,border:gt,borderColor:null,bottomMargin:gt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pt,declare:pt,event:null,face:null,frame:null,frameBorder:null,hSpace:gt,leftMargin:gt,link:null,longDesc:null,lowSrc:null,marginHeight:gt,marginWidth:gt,noResize:pt,noHref:pt,noShade:pt,noWrap:pt,object:null,profile:null,prompt:null,rev:null,rightMargin:gt,rules:null,scheme:null,scrolling:Ht,standby:null,summary:null,text:null,topMargin:gt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:gt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:pt,disableRemotePlayback:pt,prefix:null,property:null,results:gt,security:null,unselectable:null}}),me=rt({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:ce,properties:{about:Gt,accentHeight:gt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:gt,amplitude:gt,arabicForm:null,ascent:gt,attributeName:null,attributeType:null,azimuth:gt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:gt,by:null,calcMode:null,capHeight:gt,className:Pt,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:gt,diffuseConstant:gt,direction:null,display:null,dur:null,divisor:gt,dominantBaseline:null,download:pt,dx:null,dy:null,edgeMode:null,editable:null,elevation:gt,enableBackground:null,end:null,event:null,exponent:gt,externalResourcesRequired:null,fill:null,fillOpacity:gt,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:kt,g2:kt,glyphName:kt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:gt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:gt,horizOriginX:gt,horizOriginY:gt,id:null,ideographic:gt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:gt,k:gt,k1:gt,k2:gt,k3:gt,k4:gt,kernelMatrix:Gt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:gt,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:gt,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:gt,overlineThickness:gt,paintOrder:null,panose1:null,path:null,pathLength:gt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:gt,pointsAtY:gt,pointsAtZ:gt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gt,rev:Gt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gt,requiredFeatures:Gt,requiredFonts:Gt,requiredFormats:Gt,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:gt,specularExponent:gt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:gt,strikethroughThickness:gt,string:null,stroke:null,strokeDashArray:Gt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:gt,strokeOpacity:gt,strokeWidth:null,style:null,surfaceScale:gt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gt,tabIndex:gt,tableValues:null,target:null,targetX:gt,targetY:gt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:gt,underlineThickness:gt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:gt,values:null,vAlphabetic:gt,vMathematical:gt,vectorEffect:null,vHanging:gt,vIdeographic:gt,version:null,vertAdvY:gt,vertOriginX:gt,vertOriginY:gt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:gt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),on=st([ie,Q,pn,Ze,Nn],"html"),un=st([ie,Q,pn,Ze,me],"svg"),Ln=/^data[-\w.:]+$/i,Dn=/-[a-z]/g,K=/[A-Z]/g;function O(h,g){const B=q(g);let Lt=g,Se=wt;if(B in h.normal)return h.property[h.normal[B]];if(B.length>4&&B.slice(0,4)==="data"&&Ln.test(g)){if(g.charAt(4)==="-"){const fn=g.slice(5).replace(Dn,H);Lt="data"+fn.charAt(0).toUpperCase()+fn.slice(1)}else{const fn=g.slice(4);if(!Dn.test(fn)){let Fn=fn.replace(K,k);Fn.charAt(0)!=="-"&&(Fn="-"+Fn),g="data"+Fn}}Se=re}return new Se(Lt,g)}function k(h){return"-"+h.toLowerCase()}function H(h){return h.charAt(1).toUpperCase()}var tt=p(71523);const _={}.hasOwnProperty;function at(h,g){const B=g||{};function Lt(Se,...fn){let Fn=Lt.invalid;const zi=Lt.handlers;if(Se&&_.call(Se,h)){const vr=String(Se[h]);Fn=_.call(zi,vr)?zi[vr]:Lt.unknown}if(Fn)return Fn.call(this,Se,...fn)}return Lt.handlers=B.handlers||{},Lt.invalid=B.invalid,Lt.unknown=B.unknown,Lt}const se={},Ve={}.hasOwnProperty,Ke=at("type",{handlers:{root:he,element:zt,text:$e,comment:Ee,doctype:Fe}});function qt(h,g){const Lt=(g||se).space;return Ke(h,Lt==="svg"?un:on)}function he(h,g){const B={nodeName:"#document",mode:(h.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return B.childNodes=Ge(h.children,B,g),Ie(h,B),B}function de(h,g){const B={nodeName:"#document-fragment",childNodes:[]};return B.childNodes=Ge(h.children,B,g),Ie(h,B),B}function Fe(h){const g={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ie(h,g),g}function $e(h){const g={nodeName:"#text",value:h.value,parentNode:null};return Ie(h,g),g}function Ee(h){const g={nodeName:"#comment",data:h.value,parentNode:null};return Ie(h,g),g}function zt(h,g){const B=g;let Lt=B;h.type==="element"&&h.tagName.toLowerCase()==="svg"&&B.space==="html"&&(Lt=un);const Se=[];let fn;if(h.properties){for(fn in h.properties)if(fn!=="children"&&Ve.call(h.properties,fn)){const vr=Be(Lt,fn,h.properties[fn]);vr&&Se.push(vr)}}const Fn=Lt.space;(0,D.ok)(Fn);const zi={nodeName:h.tagName,tagName:h.tagName,attrs:Se,namespaceURI:J.t[Fn],childNodes:[],parentNode:null};return zi.childNodes=Ge(h.children,zi,Lt),Ie(h,zi),h.tagName==="template"&&h.content&&(zi.content=de(h.content,Lt)),zi}function Be(h,g,B){const Lt=O(h,g);if(B===!1||B===null||B===void 0||typeof B=="number"&&Number.isNaN(B)||!B&&Lt.boolean)return;Array.isArray(B)&&(B=Lt.commaSeparated?(0,vt.P)(B):(0,tt.P)(B));const Se={name:Lt.attribute,value:B===!0?"":String(B)};if(Lt.space&&Lt.space!=="html"&&Lt.space!=="svg"){const fn=Se.name.indexOf(":");fn<0?Se.prefix="":(Se.name=Se.name.slice(fn+1),Se.prefix=Lt.attribute.slice(0,fn)),Se.namespace=J.t[Lt.space]}return Se}function Ge(h,g,B){let Lt=-1;const Se=[];if(h)for(;++Lt<h.length;){const fn=Ke(h[Lt],B);fn.parentNode=g,Se.push(fn)}return Se}function Ie(h,g){const B=h.position;B&&B.start&&B.end&&((0,D.ok)(typeof B.start.offset=="number"),(0,D.ok)(typeof B.end.offset=="number"),g.sourceCodeLocation={startLine:B.start.line,startCol:B.start.column,startOffset:B.start.offset,endLine:B.end.line,endCol:B.end.column,endOffset:B.end.offset})}const ze=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Cn=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]),je="\uFFFD";var bt;(function(h){h[h.EOF=-1]="EOF",h[h.NULL=0]="NULL",h[h.TABULATION=9]="TABULATION",h[h.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",h[h.LINE_FEED=10]="LINE_FEED",h[h.FORM_FEED=12]="FORM_FEED",h[h.SPACE=32]="SPACE",h[h.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",h[h.QUOTATION_MARK=34]="QUOTATION_MARK",h[h.AMPERSAND=38]="AMPERSAND",h[h.APOSTROPHE=39]="APOSTROPHE",h[h.HYPHEN_MINUS=45]="HYPHEN_MINUS",h[h.SOLIDUS=47]="SOLIDUS",h[h.DIGIT_0=48]="DIGIT_0",h[h.DIGIT_9=57]="DIGIT_9",h[h.SEMICOLON=59]="SEMICOLON",h[h.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",h[h.EQUALS_SIGN=61]="EQUALS_SIGN",h[h.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",h[h.QUESTION_MARK=63]="QUESTION_MARK",h[h.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",h[h.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",h[h.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",h[h.GRAVE_ACCENT=96]="GRAVE_ACCENT",h[h.LATIN_SMALL_A=97]="LATIN_SMALL_A",h[h.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(bt||(bt={}));const hn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Sn(h){return h>=55296&&h<=57343}function Jt(h){return h>=56320&&h<=57343}function Hn(h,g){return(h-55296)*1024+9216+g}function ri(h){return h!==32&&h!==10&&h!==13&&h!==9&&h!==12&&h>=1&&h<=31||h>=127&&h<=159}function Qn(h){return h>=64976&&h<=65007||Cn.has(h)}var we;(function(h){h.controlCharacterInInputStream="control-character-in-input-stream",h.noncharacterInInputStream="noncharacter-in-input-stream",h.surrogateInInputStream="surrogate-in-input-stream",h.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",h.endTagWithAttributes="end-tag-with-attributes",h.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",h.unexpectedSolidusInTag="unexpected-solidus-in-tag",h.unexpectedNullCharacter="unexpected-null-character",h.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",h.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",h.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",h.missingEndTagName="missing-end-tag-name",h.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",h.unknownNamedCharacterReference="unknown-named-character-reference",h.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",h.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",h.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",h.eofBeforeTagName="eof-before-tag-name",h.eofInTag="eof-in-tag",h.missingAttributeValue="missing-attribute-value",h.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",h.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",h.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",h.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",h.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",h.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",h.missingDoctypePublicIdentifier="missing-doctype-public-identifier",h.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",h.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",h.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",h.cdataInHtmlContent="cdata-in-html-content",h.incorrectlyOpenedComment="incorrectly-opened-comment",h.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",h.eofInDoctype="eof-in-doctype",h.nestedComment="nested-comment",h.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",h.eofInComment="eof-in-comment",h.incorrectlyClosedComment="incorrectly-closed-comment",h.eofInCdata="eof-in-cdata",h.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",h.nullCharacterReference="null-character-reference",h.surrogateCharacterReference="surrogate-character-reference",h.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",h.controlCharacterReference="control-character-reference",h.noncharacterCharacterReference="noncharacter-character-reference",h.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",h.missingDoctypeName="missing-doctype-name",h.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",h.duplicateAttribute="duplicate-attribute",h.nonConformingDoctype="non-conforming-doctype",h.missingDoctype="missing-doctype",h.misplacedDoctype="misplaced-doctype",h.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",h.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",h.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",h.openElementsLeftAfterEof="open-elements-left-after-eof",h.abandonedHeadElementChild="abandoned-head-element-child",h.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",h.nestedNoscriptInHead="nested-noscript-in-head",h.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(we||(we={}));const wi=65536;class xi{constructor(g){this.handler=g,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=wi,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(g,B){const{line:Lt,col:Se,offset:fn}=this,Fn=Se+B,zi=fn+B;return{code:g,startLine:Lt,endLine:Lt,startCol:Fn,endCol:Fn,startOffset:zi,endOffset:zi}}_err(g){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(g,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(g){if(this.pos!==this.html.length-1){const B=this.html.charCodeAt(this.pos+1);if(Jt(B))return this.pos++,this._addGap(),Hn(g,B)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,bt.EOF;return this._err(we.surrogateInInputStream),g}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(g,B){this.html.length>0?this.html+=g:this.html=g,this.endOfChunkHit=!1,this.lastChunkWritten=B}insertHtmlAtCurrentPos(g){this.html=this.html.substring(0,this.pos+1)+g+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(g,B){if(this.pos+g.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(B)return this.html.startsWith(g,this.pos);for(let Lt=0;Lt<g.length;Lt++)if((this.html.charCodeAt(this.pos+Lt)|32)!==g.charCodeAt(Lt))return!1;return!0}peek(g){const B=this.pos+g;if(B>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,bt.EOF;const Lt=this.html.charCodeAt(B);return Lt===bt.CARRIAGE_RETURN?bt.LINE_FEED:Lt}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,bt.EOF;let g=this.html.charCodeAt(this.pos);return g===bt.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,bt.LINE_FEED):g===bt.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Sn(g)&&(g=this._processSurrogate(g)),this.handler.onParseError===null||g>31&&g<127||g===bt.LINE_FEED||g===bt.CARRIAGE_RETURN||g>159&&g<64976||this._checkForProblematicCharacters(g),g)}_checkForProblematicCharacters(g){ri(g)?this._err(we.controlCharacterInInputStream):Qn(g)&&this._err(we.noncharacterInInputStream)}retreat(g){for(this.pos-=g;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Bn;(function(h){h[h.CHARACTER=0]="CHARACTER",h[h.NULL_CHARACTER=1]="NULL_CHARACTER",h[h.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",h[h.START_TAG=3]="START_TAG",h[h.END_TAG=4]="END_TAG",h[h.COMMENT=5]="COMMENT",h[h.DOCTYPE=6]="DOCTYPE",h[h.EOF=7]="EOF",h[h.HIBERNATION=8]="HIBERNATION"})(Bn||(Bn={}));function Kn(h,g){for(let B=h.attrs.length-1;B>=0;B--)if(h.attrs[B].name===g)return h.attrs[B].value;return null}const Ei=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(h=>h.charCodeAt(0))),A=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(h=>h.charCodeAt(0)));var Pn;const gn=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]]),$n=(Pn=String.fromCodePoint)!==null&&Pn!==void 0?Pn:function(h){let g="";return h>65535&&(h-=65536,g+=String.fromCharCode(h>>>10&1023|55296),h=56320|h&1023),g+=String.fromCharCode(h),g};function Fi(h){var g;return h>=55296&&h<=57343||h>1114111?65533:(g=gn.get(h))!==null&&g!==void 0?g:h}function Ki(h){return $n(Fi(h))}var pi;(function(h){h[h.NUM=35]="NUM",h[h.SEMI=59]="SEMI",h[h.EQUALS=61]="EQUALS",h[h.ZERO=48]="ZERO",h[h.NINE=57]="NINE",h[h.LOWER_A=97]="LOWER_A",h[h.LOWER_F=102]="LOWER_F",h[h.LOWER_X=120]="LOWER_X",h[h.LOWER_Z=122]="LOWER_Z",h[h.UPPER_A=65]="UPPER_A",h[h.UPPER_F=70]="UPPER_F",h[h.UPPER_Z=90]="UPPER_Z"})(pi||(pi={}));const so=32;var Zi;(function(h){h[h.VALUE_LENGTH=49152]="VALUE_LENGTH",h[h.BRANCH_LENGTH=16256]="BRANCH_LENGTH",h[h.JUMP_TABLE=127]="JUMP_TABLE"})(Zi||(Zi={}));function or(h){return h>=pi.ZERO&&h<=pi.NINE}function Yn(h){return h>=pi.UPPER_A&&h<=pi.UPPER_F||h>=pi.LOWER_A&&h<=pi.LOWER_F}function Mn(h){return h>=pi.UPPER_A&&h<=pi.UPPER_Z||h>=pi.LOWER_A&&h<=pi.LOWER_Z||or(h)}function fr(h){return h===pi.EQUALS||Mn(h)}var Li;(function(h){h[h.EntityStart=0]="EntityStart",h[h.NumericStart=1]="NumericStart",h[h.NumericDecimal=2]="NumericDecimal",h[h.NumericHex=3]="NumericHex",h[h.NamedEntity=4]="NamedEntity"})(Li||(Li={}));var Xi;(function(h){h[h.Legacy=0]="Legacy",h[h.Strict=1]="Strict",h[h.Attribute=2]="Attribute"})(Xi||(Xi={}));class sn{constructor(g,B,Lt){this.decodeTree=g,this.emitCodePoint=B,this.errors=Lt,this.state=Li.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Xi.Strict}startEntity(g){this.decodeMode=g,this.state=Li.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(g,B){switch(this.state){case Li.EntityStart:return g.charCodeAt(B)===pi.NUM?(this.state=Li.NumericStart,this.consumed+=1,this.stateNumericStart(g,B+1)):(this.state=Li.NamedEntity,this.stateNamedEntity(g,B));case Li.NumericStart:return this.stateNumericStart(g,B);case Li.NumericDecimal:return this.stateNumericDecimal(g,B);case Li.NumericHex:return this.stateNumericHex(g,B);case Li.NamedEntity:return this.stateNamedEntity(g,B)}}stateNumericStart(g,B){return B>=g.length?-1:(g.charCodeAt(B)|so)===pi.LOWER_X?(this.state=Li.NumericHex,this.consumed+=1,this.stateNumericHex(g,B+1)):(this.state=Li.NumericDecimal,this.stateNumericDecimal(g,B))}addToNumericResult(g,B,Lt,Se){if(B!==Lt){const fn=Lt-B;this.result=this.result*Math.pow(Se,fn)+Number.parseInt(g.substr(B,fn),Se),this.consumed+=fn}}stateNumericHex(g,B){const Lt=B;for(;B<g.length;){const Se=g.charCodeAt(B);if(or(Se)||Yn(Se))B+=1;else return this.addToNumericResult(g,Lt,B,16),this.emitNumericEntity(Se,3)}return this.addToNumericResult(g,Lt,B,16),-1}stateNumericDecimal(g,B){const Lt=B;for(;B<g.length;){const Se=g.charCodeAt(B);if(or(Se))B+=1;else return this.addToNumericResult(g,Lt,B,10),this.emitNumericEntity(Se,2)}return this.addToNumericResult(g,Lt,B,10),-1}emitNumericEntity(g,B){var Lt;if(this.consumed<=B)return(Lt=this.errors)===null||Lt===void 0||Lt.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(g===pi.SEMI)this.consumed+=1;else if(this.decodeMode===Xi.Strict)return 0;return this.emitCodePoint(Fi(this.result),this.consumed),this.errors&&(g!==pi.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(g,B){const{decodeTree:Lt}=this;let Se=Lt[this.treeIndex],fn=(Se&Zi.VALUE_LENGTH)>>14;for(;B<g.length;B++,this.excess++){const Fn=g.charCodeAt(B);if(this.treeIndex=Wi(Lt,Se,this.treeIndex+Math.max(1,fn),Fn),this.treeIndex<0)return this.result===0||this.decodeMode===Xi.Attribute&&(fn===0||fr(Fn))?0:this.emitNotTerminatedNamedEntity();if(Se=Lt[this.treeIndex],fn=(Se&Zi.VALUE_LENGTH)>>14,fn!==0){if(Fn===pi.SEMI)return this.emitNamedEntityData(this.treeIndex,fn,this.consumed+this.excess);this.decodeMode!==Xi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var g;const{result:B,decodeTree:Lt}=this,Se=(Lt[B]&Zi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(B,Se,this.consumed),(g=this.errors)===null||g===void 0||g.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(g,B,Lt){const{decodeTree:Se}=this;return this.emitCodePoint(B===1?Se[g]&~Zi.VALUE_LENGTH:Se[g+1],Lt),B===3&&this.emitCodePoint(Se[g+2],Lt),Lt}end(){var g;switch(this.state){case Li.NamedEntity:return this.result!==0&&(this.decodeMode!==Xi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Li.NumericDecimal:return this.emitNumericEntity(0,2);case Li.NumericHex:return this.emitNumericEntity(0,3);case Li.NumericStart:return(g=this.errors)===null||g===void 0||g.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Li.EntityStart:return 0}}}function zn(h){let g="";const B=new sn(h,Lt=>g+=fromCodePoint(Lt));return function(Se,fn){let Fn=0,zi=0;for(;(zi=Se.indexOf("&",zi))>=0;){g+=Se.slice(Fn,zi),B.startEntity(fn);const ln=B.write(Se,zi+1);if(ln<0){Fn=zi+B.end();break}Fn=zi+ln,zi=ln===0?Fn+1:Fn}const vr=g+Se.slice(Fn);return g="",vr}}function Wi(h,g,B,Lt){const Se=(g&Zi.BRANCH_LENGTH)>>7,fn=g&Zi.JUMP_TABLE;if(Se===0)return fn!==0&&Lt===fn?B:-1;if(fn){const vr=Lt-fn;return vr<0||vr>=Se?-1:h[B+vr]-1}let Fn=B,zi=Fn+Se-1;for(;Fn<=zi;){const vr=Fn+zi>>>1,ln=h[vr];if(ln<Lt)Fn=vr+1;else if(ln>Lt)zi=vr-1;else return h[vr+Se]}return-1}const Ur=null,Nr=null;function Et(h,g=Xi.Legacy){return Ur(h,g)}function Wt(h){return Ur(h,Xi.Attribute)}function rn(h){return Ur(h,Xi.Strict)}function cn(h){return Nr(h,Xi.Strict)}var Ut;(function(h){h.HTML="http://www.w3.org/1999/xhtml",h.MATHML="http://www.w3.org/1998/Math/MathML",h.SVG="http://www.w3.org/2000/svg",h.XLINK="http://www.w3.org/1999/xlink",h.XML="http://www.w3.org/XML/1998/namespace",h.XMLNS="http://www.w3.org/2000/xmlns/"})(Ut||(Ut={}));var Ye;(function(h){h.TYPE="type",h.ACTION="action",h.ENCODING="encoding",h.PROMPT="prompt",h.NAME="name",h.COLOR="color",h.FACE="face",h.SIZE="size"})(Ye||(Ye={}));var kn;(function(h){h.NO_QUIRKS="no-quirks",h.QUIRKS="quirks",h.LIMITED_QUIRKS="limited-quirks"})(kn||(kn={}));var te;(function(h){h.A="a",h.ADDRESS="address",h.ANNOTATION_XML="annotation-xml",h.APPLET="applet",h.AREA="area",h.ARTICLE="article",h.ASIDE="aside",h.B="b",h.BASE="base",h.BASEFONT="basefont",h.BGSOUND="bgsound",h.BIG="big",h.BLOCKQUOTE="blockquote",h.BODY="body",h.BR="br",h.BUTTON="button",h.CAPTION="caption",h.CENTER="center",h.CODE="code",h.COL="col",h.COLGROUP="colgroup",h.DD="dd",h.DESC="desc",h.DETAILS="details",h.DIALOG="dialog",h.DIR="dir",h.DIV="div",h.DL="dl",h.DT="dt",h.EM="em",h.EMBED="embed",h.FIELDSET="fieldset",h.FIGCAPTION="figcaption",h.FIGURE="figure",h.FONT="font",h.FOOTER="footer",h.FOREIGN_OBJECT="foreignObject",h.FORM="form",h.FRAME="frame",h.FRAMESET="frameset",h.H1="h1",h.H2="h2",h.H3="h3",h.H4="h4",h.H5="h5",h.H6="h6",h.HEAD="head",h.HEADER="header",h.HGROUP="hgroup",h.HR="hr",h.HTML="html",h.I="i",h.IMG="img",h.IMAGE="image",h.INPUT="input",h.IFRAME="iframe",h.KEYGEN="keygen",h.LABEL="label",h.LI="li",h.LINK="link",h.LISTING="listing",h.MAIN="main",h.MALIGNMARK="malignmark",h.MARQUEE="marquee",h.MATH="math",h.MENU="menu",h.META="meta",h.MGLYPH="mglyph",h.MI="mi",h.MO="mo",h.MN="mn",h.MS="ms",h.MTEXT="mtext",h.NAV="nav",h.NOBR="nobr",h.NOFRAMES="noframes",h.NOEMBED="noembed",h.NOSCRIPT="noscript",h.OBJECT="object",h.OL="ol",h.OPTGROUP="optgroup",h.OPTION="option",h.P="p",h.PARAM="param",h.PLAINTEXT="plaintext",h.PRE="pre",h.RB="rb",h.RP="rp",h.RT="rt",h.RTC="rtc",h.RUBY="ruby",h.S="s",h.SCRIPT="script",h.SEARCH="search",h.SECTION="section",h.SELECT="select",h.SOURCE="source",h.SMALL="small",h.SPAN="span",h.STRIKE="strike",h.STRONG="strong",h.STYLE="style",h.SUB="sub",h.SUMMARY="summary",h.SUP="sup",h.TABLE="table",h.TBODY="tbody",h.TEMPLATE="template",h.TEXTAREA="textarea",h.TFOOT="tfoot",h.TD="td",h.TH="th",h.THEAD="thead",h.TITLE="title",h.TR="tr",h.TRACK="track",h.TT="tt",h.U="u",h.UL="ul",h.SVG="svg",h.VAR="var",h.WBR="wbr",h.XMP="xmp"})(te||(te={}));var R;(function(h){h[h.UNKNOWN=0]="UNKNOWN",h[h.A=1]="A",h[h.ADDRESS=2]="ADDRESS",h[h.ANNOTATION_XML=3]="ANNOTATION_XML",h[h.APPLET=4]="APPLET",h[h.AREA=5]="AREA",h[h.ARTICLE=6]="ARTICLE",h[h.ASIDE=7]="ASIDE",h[h.B=8]="B",h[h.BASE=9]="BASE",h[h.BASEFONT=10]="BASEFONT",h[h.BGSOUND=11]="BGSOUND",h[h.BIG=12]="BIG",h[h.BLOCKQUOTE=13]="BLOCKQUOTE",h[h.BODY=14]="BODY",h[h.BR=15]="BR",h[h.BUTTON=16]="BUTTON",h[h.CAPTION=17]="CAPTION",h[h.CENTER=18]="CENTER",h[h.CODE=19]="CODE",h[h.COL=20]="COL",h[h.COLGROUP=21]="COLGROUP",h[h.DD=22]="DD",h[h.DESC=23]="DESC",h[h.DETAILS=24]="DETAILS",h[h.DIALOG=25]="DIALOG",h[h.DIR=26]="DIR",h[h.DIV=27]="DIV",h[h.DL=28]="DL",h[h.DT=29]="DT",h[h.EM=30]="EM",h[h.EMBED=31]="EMBED",h[h.FIELDSET=32]="FIELDSET",h[h.FIGCAPTION=33]="FIGCAPTION",h[h.FIGURE=34]="FIGURE",h[h.FONT=35]="FONT",h[h.FOOTER=36]="FOOTER",h[h.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",h[h.FORM=38]="FORM",h[h.FRAME=39]="FRAME",h[h.FRAMESET=40]="FRAMESET",h[h.H1=41]="H1",h[h.H2=42]="H2",h[h.H3=43]="H3",h[h.H4=44]="H4",h[h.H5=45]="H5",h[h.H6=46]="H6",h[h.HEAD=47]="HEAD",h[h.HEADER=48]="HEADER",h[h.HGROUP=49]="HGROUP",h[h.HR=50]="HR",h[h.HTML=51]="HTML",h[h.I=52]="I",h[h.IMG=53]="IMG",h[h.IMAGE=54]="IMAGE",h[h.INPUT=55]="INPUT",h[h.IFRAME=56]="IFRAME",h[h.KEYGEN=57]="KEYGEN",h[h.LABEL=58]="LABEL",h[h.LI=59]="LI",h[h.LINK=60]="LINK",h[h.LISTING=61]="LISTING",h[h.MAIN=62]="MAIN",h[h.MALIGNMARK=63]="MALIGNMARK",h[h.MARQUEE=64]="MARQUEE",h[h.MATH=65]="MATH",h[h.MENU=66]="MENU",h[h.META=67]="META",h[h.MGLYPH=68]="MGLYPH",h[h.MI=69]="MI",h[h.MO=70]="MO",h[h.MN=71]="MN",h[h.MS=72]="MS",h[h.MTEXT=73]="MTEXT",h[h.NAV=74]="NAV",h[h.NOBR=75]="NOBR",h[h.NOFRAMES=76]="NOFRAMES",h[h.NOEMBED=77]="NOEMBED",h[h.NOSCRIPT=78]="NOSCRIPT",h[h.OBJECT=79]="OBJECT",h[h.OL=80]="OL",h[h.OPTGROUP=81]="OPTGROUP",h[h.OPTION=82]="OPTION",h[h.P=83]="P",h[h.PARAM=84]="PARAM",h[h.PLAINTEXT=85]="PLAINTEXT",h[h.PRE=86]="PRE",h[h.RB=87]="RB",h[h.RP=88]="RP",h[h.RT=89]="RT",h[h.RTC=90]="RTC",h[h.RUBY=91]="RUBY",h[h.S=92]="S",h[h.SCRIPT=93]="SCRIPT",h[h.SEARCH=94]="SEARCH",h[h.SECTION=95]="SECTION",h[h.SELECT=96]="SELECT",h[h.SOURCE=97]="SOURCE",h[h.SMALL=98]="SMALL",h[h.SPAN=99]="SPAN",h[h.STRIKE=100]="STRIKE",h[h.STRONG=101]="STRONG",h[h.STYLE=102]="STYLE",h[h.SUB=103]="SUB",h[h.SUMMARY=104]="SUMMARY",h[h.SUP=105]="SUP",h[h.TABLE=106]="TABLE",h[h.TBODY=107]="TBODY",h[h.TEMPLATE=108]="TEMPLATE",h[h.TEXTAREA=109]="TEXTAREA",h[h.TFOOT=110]="TFOOT",h[h.TD=111]="TD",h[h.TH=112]="TH",h[h.THEAD=113]="THEAD",h[h.TITLE=114]="TITLE",h[h.TR=115]="TR",h[h.TRACK=116]="TRACK",h[h.TT=117]="TT",h[h.U=118]="U",h[h.UL=119]="UL",h[h.SVG=120]="SVG",h[h.VAR=121]="VAR",h[h.WBR=122]="WBR",h[h.XMP=123]="XMP"})(R||(R={}));const bn=new Map([[te.A,R.A],[te.ADDRESS,R.ADDRESS],[te.ANNOTATION_XML,R.ANNOTATION_XML],[te.APPLET,R.APPLET],[te.AREA,R.AREA],[te.ARTICLE,R.ARTICLE],[te.ASIDE,R.ASIDE],[te.B,R.B],[te.BASE,R.BASE],[te.BASEFONT,R.BASEFONT],[te.BGSOUND,R.BGSOUND],[te.BIG,R.BIG],[te.BLOCKQUOTE,R.BLOCKQUOTE],[te.BODY,R.BODY],[te.BR,R.BR],[te.BUTTON,R.BUTTON],[te.CAPTION,R.CAPTION],[te.CENTER,R.CENTER],[te.CODE,R.CODE],[te.COL,R.COL],[te.COLGROUP,R.COLGROUP],[te.DD,R.DD],[te.DESC,R.DESC],[te.DETAILS,R.DETAILS],[te.DIALOG,R.DIALOG],[te.DIR,R.DIR],[te.DIV,R.DIV],[te.DL,R.DL],[te.DT,R.DT],[te.EM,R.EM],[te.EMBED,R.EMBED],[te.FIELDSET,R.FIELDSET],[te.FIGCAPTION,R.FIGCAPTION],[te.FIGURE,R.FIGURE],[te.FONT,R.FONT],[te.FOOTER,R.FOOTER],[te.FOREIGN_OBJECT,R.FOREIGN_OBJECT],[te.FORM,R.FORM],[te.FRAME,R.FRAME],[te.FRAMESET,R.FRAMESET],[te.H1,R.H1],[te.H2,R.H2],[te.H3,R.H3],[te.H4,R.H4],[te.H5,R.H5],[te.H6,R.H6],[te.HEAD,R.HEAD],[te.HEADER,R.HEADER],[te.HGROUP,R.HGROUP],[te.HR,R.HR],[te.HTML,R.HTML],[te.I,R.I],[te.IMG,R.IMG],[te.IMAGE,R.IMAGE],[te.INPUT,R.INPUT],[te.IFRAME,R.IFRAME],[te.KEYGEN,R.KEYGEN],[te.LABEL,R.LABEL],[te.LI,R.LI],[te.LINK,R.LINK],[te.LISTING,R.LISTING],[te.MAIN,R.MAIN],[te.MALIGNMARK,R.MALIGNMARK],[te.MARQUEE,R.MARQUEE],[te.MATH,R.MATH],[te.MENU,R.MENU],[te.META,R.META],[te.MGLYPH,R.MGLYPH],[te.MI,R.MI],[te.MO,R.MO],[te.MN,R.MN],[te.MS,R.MS],[te.MTEXT,R.MTEXT],[te.NAV,R.NAV],[te.NOBR,R.NOBR],[te.NOFRAMES,R.NOFRAMES],[te.NOEMBED,R.NOEMBED],[te.NOSCRIPT,R.NOSCRIPT],[te.OBJECT,R.OBJECT],[te.OL,R.OL],[te.OPTGROUP,R.OPTGROUP],[te.OPTION,R.OPTION],[te.P,R.P],[te.PARAM,R.PARAM],[te.PLAINTEXT,R.PLAINTEXT],[te.PRE,R.PRE],[te.RB,R.RB],[te.RP,R.RP],[te.RT,R.RT],[te.RTC,R.RTC],[te.RUBY,R.RUBY],[te.S,R.S],[te.SCRIPT,R.SCRIPT],[te.SEARCH,R.SEARCH],[te.SECTION,R.SECTION],[te.SELECT,R.SELECT],[te.SOURCE,R.SOURCE],[te.SMALL,R.SMALL],[te.SPAN,R.SPAN],[te.STRIKE,R.STRIKE],[te.STRONG,R.STRONG],[te.STYLE,R.STYLE],[te.SUB,R.SUB],[te.SUMMARY,R.SUMMARY],[te.SUP,R.SUP],[te.TABLE,R.TABLE],[te.TBODY,R.TBODY],[te.TEMPLATE,R.TEMPLATE],[te.TEXTAREA,R.TEXTAREA],[te.TFOOT,R.TFOOT],[te.TD,R.TD],[te.TH,R.TH],[te.THEAD,R.THEAD],[te.TITLE,R.TITLE],[te.TR,R.TR],[te.TRACK,R.TRACK],[te.TT,R.TT],[te.U,R.U],[te.UL,R.UL],[te.SVG,R.SVG],[te.VAR,R.VAR],[te.WBR,R.WBR],[te.XMP,R.XMP]]);function En(h){var g;return(g=bn.get(h))!==null&&g!==void 0?g:R.UNKNOWN}const ve=R,li={[Ut.HTML]:new Set([ve.ADDRESS,ve.APPLET,ve.AREA,ve.ARTICLE,ve.ASIDE,ve.BASE,ve.BASEFONT,ve.BGSOUND,ve.BLOCKQUOTE,ve.BODY,ve.BR,ve.BUTTON,ve.CAPTION,ve.CENTER,ve.COL,ve.COLGROUP,ve.DD,ve.DETAILS,ve.DIR,ve.DIV,ve.DL,ve.DT,ve.EMBED,ve.FIELDSET,ve.FIGCAPTION,ve.FIGURE,ve.FOOTER,ve.FORM,ve.FRAME,ve.FRAMESET,ve.H1,ve.H2,ve.H3,ve.H4,ve.H5,ve.H6,ve.HEAD,ve.HEADER,ve.HGROUP,ve.HR,ve.HTML,ve.IFRAME,ve.IMG,ve.INPUT,ve.LI,ve.LINK,ve.LISTING,ve.MAIN,ve.MARQUEE,ve.MENU,ve.META,ve.NAV,ve.NOEMBED,ve.NOFRAMES,ve.NOSCRIPT,ve.OBJECT,ve.OL,ve.P,ve.PARAM,ve.PLAINTEXT,ve.PRE,ve.SCRIPT,ve.SECTION,ve.SELECT,ve.SOURCE,ve.STYLE,ve.SUMMARY,ve.TABLE,ve.TBODY,ve.TD,ve.TEMPLATE,ve.TEXTAREA,ve.TFOOT,ve.TH,ve.THEAD,ve.TITLE,ve.TR,ve.TRACK,ve.UL,ve.WBR,ve.XMP]),[Ut.MATHML]:new Set([ve.MI,ve.MO,ve.MN,ve.MS,ve.MTEXT,ve.ANNOTATION_XML]),[Ut.SVG]:new Set([ve.TITLE,ve.FOREIGN_OBJECT,ve.DESC]),[Ut.XLINK]:new Set,[Ut.XML]:new Set,[Ut.XMLNS]:new Set},Wn=new Set([ve.H1,ve.H2,ve.H3,ve.H4,ve.H5,ve.H6]),ni=new Set([te.STYLE,te.SCRIPT,te.XMP,te.IFRAME,te.NOEMBED,te.NOFRAMES,te.PLAINTEXT]);function yn(h,g){return ni.has(h)||g&&h===te.NOSCRIPT}var jt;(function(h){h[h.DATA=0]="DATA",h[h.RCDATA=1]="RCDATA",h[h.RAWTEXT=2]="RAWTEXT",h[h.SCRIPT_DATA=3]="SCRIPT_DATA",h[h.PLAINTEXT=4]="PLAINTEXT",h[h.TAG_OPEN=5]="TAG_OPEN",h[h.END_TAG_OPEN=6]="END_TAG_OPEN",h[h.TAG_NAME=7]="TAG_NAME",h[h.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",h[h.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",h[h.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",h[h.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",h[h.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",h[h.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",h[h.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",h[h.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",h[h.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",h[h.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",h[h.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",h[h.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",h[h.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",h[h.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",h[h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",h[h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",h[h.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",h[h.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",h[h.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",h[h.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",h[h.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",h[h.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",h[h.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",h[h.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",h[h.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",h[h.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",h[h.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",h[h.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",h[h.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",h[h.BOGUS_COMMENT=40]="BOGUS_COMMENT",h[h.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",h[h.COMMENT_START=42]="COMMENT_START",h[h.COMMENT_START_DASH=43]="COMMENT_START_DASH",h[h.COMMENT=44]="COMMENT",h[h.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",h[h.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",h[h.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",h[h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",h[h.COMMENT_END_DASH=49]="COMMENT_END_DASH",h[h.COMMENT_END=50]="COMMENT_END",h[h.COMMENT_END_BANG=51]="COMMENT_END_BANG",h[h.DOCTYPE=52]="DOCTYPE",h[h.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",h[h.DOCTYPE_NAME=54]="DOCTYPE_NAME",h[h.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",h[h.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",h[h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",h[h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",h[h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",h[h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",h[h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",h[h.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",h[h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",h[h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",h[h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",h[h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",h[h.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",h[h.CDATA_SECTION=68]="CDATA_SECTION",h[h.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",h[h.CDATA_SECTION_END=70]="CDATA_SECTION_END",h[h.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",h[h.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(jt||(jt={}));const ui={DATA:jt.DATA,RCDATA:jt.RCDATA,RAWTEXT:jt.RAWTEXT,SCRIPT_DATA:jt.SCRIPT_DATA,PLAINTEXT:jt.PLAINTEXT,CDATA_SECTION:jt.CDATA_SECTION};function Ir(h){return h>=bt.DIGIT_0&&h<=bt.DIGIT_9}function xe(h){return h>=bt.LATIN_CAPITAL_A&&h<=bt.LATIN_CAPITAL_Z}function xr(h){return h>=bt.LATIN_SMALL_A&&h<=bt.LATIN_SMALL_Z}function Lr(h){return xr(h)||xe(h)}function Ai(h){return Lr(h)||Ir(h)}function Rr(h){return h+32}function nr(h){return h===bt.SPACE||h===bt.LINE_FEED||h===bt.TABULATION||h===bt.FORM_FEED}function sr(h){return nr(h)||h===bt.SOLIDUS||h===bt.GREATER_THAN_SIGN}function ji(h){return h===bt.NULL?we.nullCharacterReference:h>1114111?we.characterReferenceOutsideUnicodeRange:Sn(h)?we.surrogateCharacterReference:Qn(h)?we.noncharacterCharacterReference:ri(h)||h===bt.CARRIAGE_RETURN?we.controlCharacterReference:null}class qi{constructor(g,B){this.options=g,this.handler=B,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=jt.DATA,this.returnState=jt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new xi(B),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new sn(Ei,(Lt,Se)=>{this.preprocessor.pos=this.entityStartPos+Se-1,this._flushCodePointConsumedAsCharacterReference(Lt)},B.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(we.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:Lt=>{this._err(we.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+Lt)},validateNumericCharacterReference:Lt=>{const Se=ji(Lt);Se&&this._err(Se,1)}}:void 0)}_err(g,B=0){var Lt,Se;(Se=(Lt=this.handler).onParseError)===null||Se===void 0||Se.call(Lt,this.preprocessor.getError(g,B))}getCurrentLocation(g){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-g,startOffset:this.preprocessor.offset-g,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const g=this._consume();this._ensureHibernation()||this._callState(g)}this.inLoop=!1}}pause(){this.paused=!0}resume(g){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||g==null||g())}write(g,B,Lt){this.active=!0,this.preprocessor.write(g,B),this._runParsingLoop(),this.paused||Lt==null||Lt()}insertHtmlAtCurrentPos(g){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(g),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(g){this.consumedAfterSnapshot+=g;for(let B=0;B<g;B++)this.preprocessor.advance()}_consumeSequenceIfMatch(g,B){return this.preprocessor.startsWith(g,B)?(this._advanceBy(g.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Bn.START_TAG,tagName:"",tagID:R.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Bn.END_TAG,tagName:"",tagID:R.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(g){this.currentToken={type:Bn.COMMENT,data:"",location:this.getCurrentLocation(g)}}_createDoctypeToken(g){this.currentToken={type:Bn.DOCTYPE,name:g,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(g,B){this.currentCharacterToken={type:g,chars:B,location:this.currentLocation}}_createAttr(g){this.currentAttr={name:g,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var g,B;const Lt=this.currentToken;if(Kn(Lt,this.currentAttr.name)===null){if(Lt.attrs.push(this.currentAttr),Lt.location&&this.currentLocation){const Se=(g=(B=Lt.location).attrs)!==null&&g!==void 0?g:B.attrs=Object.create(null);Se[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(we.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(g){this._emitCurrentCharacterToken(g.location),this.currentToken=null,g.location&&(g.location.endLine=this.preprocessor.line,g.location.endCol=this.preprocessor.col+1,g.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const g=this.currentToken;this.prepareToken(g),g.tagID=En(g.tagName),g.type===Bn.START_TAG?(this.lastStartTagName=g.tagName,this.handler.onStartTag(g)):(g.attrs.length>0&&this._err(we.endTagWithAttributes),g.selfClosing&&this._err(we.endTagWithTrailingSolidus),this.handler.onEndTag(g)),this.preprocessor.dropParsedChunk()}emitCurrentComment(g){this.prepareToken(g),this.handler.onComment(g),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(g){this.prepareToken(g),this.handler.onDoctype(g),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(g){if(this.currentCharacterToken){switch(g&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=g.startLine,this.currentCharacterToken.location.endCol=g.startCol,this.currentCharacterToken.location.endOffset=g.startOffset),this.currentCharacterToken.type){case Bn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Bn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Bn.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const g=this.getCurrentLocation(0);g&&(g.endLine=g.startLine,g.endCol=g.startCol,g.endOffset=g.startOffset),this._emitCurrentCharacterToken(g),this.handler.onEof({type:Bn.EOF,location:g}),this.active=!1}_appendCharToCurrentCharacterToken(g,B){if(this.currentCharacterToken)if(this.currentCharacterToken.type===g){this.currentCharacterToken.chars+=B;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(g,B)}_emitCodePoint(g){const B=nr(g)?Bn.WHITESPACE_CHARACTER:g===bt.NULL?Bn.NULL_CHARACTER:Bn.CHARACTER;this._appendCharToCurrentCharacterToken(B,String.fromCodePoint(g))}_emitChars(g){this._appendCharToCurrentCharacterToken(Bn.CHARACTER,g)}_startCharacterReference(){this.returnState=this.state,this.state=jt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Xi.Attribute:Xi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===jt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===jt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===jt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(g){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(g):this._emitCodePoint(g)}_callState(g){switch(this.state){case jt.DATA:{this._stateData(g);break}case jt.RCDATA:{this._stateRcdata(g);break}case jt.RAWTEXT:{this._stateRawtext(g);break}case jt.SCRIPT_DATA:{this._stateScriptData(g);break}case jt.PLAINTEXT:{this._statePlaintext(g);break}case jt.TAG_OPEN:{this._stateTagOpen(g);break}case jt.END_TAG_OPEN:{this._stateEndTagOpen(g);break}case jt.TAG_NAME:{this._stateTagName(g);break}case jt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(g);break}case jt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(g);break}case jt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(g);break}case jt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(g);break}case jt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(g);break}case jt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(g);break}case jt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(g);break}case jt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(g);break}case jt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(g);break}case jt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(g);break}case jt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(g);break}case jt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(g);break}case jt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(g);break}case jt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(g);break}case jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(g);break}case jt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(g);break}case jt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(g);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(g);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(g);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(g);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(g);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(g);break}case jt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(g);break}case jt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(g);break}case jt.ATTRIBUTE_NAME:{this._stateAttributeName(g);break}case jt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(g);break}case jt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(g);break}case jt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(g);break}case jt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(g);break}case jt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(g);break}case jt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(g);break}case jt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(g);break}case jt.BOGUS_COMMENT:{this._stateBogusComment(g);break}case jt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(g);break}case jt.COMMENT_START:{this._stateCommentStart(g);break}case jt.COMMENT_START_DASH:{this._stateCommentStartDash(g);break}case jt.COMMENT:{this._stateComment(g);break}case jt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(g);break}case jt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(g);break}case jt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(g);break}case jt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(g);break}case jt.COMMENT_END_DASH:{this._stateCommentEndDash(g);break}case jt.COMMENT_END:{this._stateCommentEnd(g);break}case jt.COMMENT_END_BANG:{this._stateCommentEndBang(g);break}case jt.DOCTYPE:{this._stateDoctype(g);break}case jt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(g);break}case jt.DOCTYPE_NAME:{this._stateDoctypeName(g);break}case jt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(g);break}case jt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(g);break}case jt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(g);break}case jt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(g);break}case jt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(g);break}case jt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(g);break}case jt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(g);break}case jt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(g);break}case jt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(g);break}case jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(g);break}case jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(g);break}case jt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(g);break}case jt.BOGUS_DOCTYPE:{this._stateBogusDoctype(g);break}case jt.CDATA_SECTION:{this._stateCdataSection(g);break}case jt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(g);break}case jt.CDATA_SECTION_END:{this._stateCdataSectionEnd(g);break}case jt.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case jt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(g);break}default:throw new Error("Unknown state")}}_stateData(g){switch(g){case bt.LESS_THAN_SIGN:{this.state=jt.TAG_OPEN;break}case bt.AMPERSAND:{this._startCharacterReference();break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this._emitCodePoint(g);break}case bt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateRcdata(g){switch(g){case bt.AMPERSAND:{this._startCharacterReference();break}case bt.LESS_THAN_SIGN:{this.state=jt.RCDATA_LESS_THAN_SIGN;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(je);break}case bt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateRawtext(g){switch(g){case bt.LESS_THAN_SIGN:{this.state=jt.RAWTEXT_LESS_THAN_SIGN;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(je);break}case bt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptData(g){switch(g){case bt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_LESS_THAN_SIGN;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(je);break}case bt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_statePlaintext(g){switch(g){case bt.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(je);break}case bt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateTagOpen(g){if(Lr(g))this._createStartTagToken(),this.state=jt.TAG_NAME,this._stateTagName(g);else switch(g){case bt.EXCLAMATION_MARK:{this.state=jt.MARKUP_DECLARATION_OPEN;break}case bt.SOLIDUS:{this.state=jt.END_TAG_OPEN;break}case bt.QUESTION_MARK:{this._err(we.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=jt.BOGUS_COMMENT,this._stateBogusComment(g);break}case bt.EOF:{this._err(we.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(we.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=jt.DATA,this._stateData(g)}}_stateEndTagOpen(g){if(Lr(g))this._createEndTagToken(),this.state=jt.TAG_NAME,this._stateTagName(g);else switch(g){case bt.GREATER_THAN_SIGN:{this._err(we.missingEndTagName),this.state=jt.DATA;break}case bt.EOF:{this._err(we.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(we.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=jt.BOGUS_COMMENT,this._stateBogusComment(g)}}_stateTagName(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:{this.state=jt.BEFORE_ATTRIBUTE_NAME;break}case bt.SOLIDUS:{this.state=jt.SELF_CLOSING_START_TAG;break}case bt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentTagToken();break}case bt.NULL:{this._err(we.unexpectedNullCharacter),B.tagName+=je;break}case bt.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:B.tagName+=String.fromCodePoint(xe(g)?Rr(g):g)}}_stateRcdataLessThanSign(g){g===bt.SOLIDUS?this.state=jt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=jt.RCDATA,this._stateRcdata(g))}_stateRcdataEndTagOpen(g){Lr(g)?(this.state=jt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(g)):(this._emitChars("</"),this.state=jt.RCDATA,this._stateRcdata(g))}handleSpecialEndTag(g){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const B=this.currentToken;switch(B.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=jt.BEFORE_ATTRIBUTE_NAME,!1;case bt.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=jt.SELF_CLOSING_START_TAG,!1;case bt.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=jt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=jt.RCDATA,this._stateRcdata(g))}_stateRawtextLessThanSign(g){g===bt.SOLIDUS?this.state=jt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=jt.RAWTEXT,this._stateRawtext(g))}_stateRawtextEndTagOpen(g){Lr(g)?(this.state=jt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(g)):(this._emitChars("</"),this.state=jt.RAWTEXT,this._stateRawtext(g))}_stateRawtextEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=jt.RAWTEXT,this._stateRawtext(g))}_stateScriptDataLessThanSign(g){switch(g){case bt.SOLIDUS:{this.state=jt.SCRIPT_DATA_END_TAG_OPEN;break}case bt.EXCLAMATION_MARK:{this.state=jt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=jt.SCRIPT_DATA,this._stateScriptData(g)}}_stateScriptDataEndTagOpen(g){Lr(g)?(this.state=jt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(g)):(this._emitChars("</"),this.state=jt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=jt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscapeStart(g){g===bt.HYPHEN_MINUS?(this.state=jt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=jt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscapeStartDash(g){g===bt.HYPHEN_MINUS?(this.state=jt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=jt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscaped(g){switch(g){case bt.HYPHEN_MINUS:{this.state=jt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case bt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(je);break}case bt.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptDataEscapedDash(g){switch(g){case bt.HYPHEN_MINUS:{this.state=jt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case bt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this.state=jt.SCRIPT_DATA_ESCAPED,this._emitChars(je);break}case bt.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=jt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataEscapedDashDash(g){switch(g){case bt.HYPHEN_MINUS:{this._emitChars("-");break}case bt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case bt.GREATER_THAN_SIGN:{this.state=jt.SCRIPT_DATA,this._emitChars(">");break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this.state=jt.SCRIPT_DATA_ESCAPED,this._emitChars(je);break}case bt.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=jt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataEscapedLessThanSign(g){g===bt.SOLIDUS?this.state=jt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Lr(g)?(this._emitChars("<"),this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(g)):(this._emitChars("<"),this.state=jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataEscapedEndTagOpen(g){Lr(g)?(this.state=jt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(g)):(this._emitChars("</"),this.state=jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataEscapedEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataDoubleEscapeStart(g){if(this.preprocessor.startsWith(hn.SCRIPT,!1)&&sr(this.preprocessor.peek(hn.SCRIPT.length))){this._emitCodePoint(g);for(let B=0;B<hn.SCRIPT.length;B++)this._emitCodePoint(this._consume());this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=jt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataDoubleEscaped(g){switch(g){case bt.HYPHEN_MINUS:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case bt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(je);break}case bt.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedDash(g){switch(g){case bt.HYPHEN_MINUS:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case bt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(je);break}case bt.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedDashDash(g){switch(g){case bt.HYPHEN_MINUS:{this._emitChars("-");break}case bt.LESS_THAN_SIGN:{this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case bt.GREATER_THAN_SIGN:{this.state=jt.SCRIPT_DATA,this._emitChars(">");break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(je);break}case bt.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedLessThanSign(g){g===bt.SOLIDUS?(this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(g))}_stateScriptDataDoubleEscapeEnd(g){if(this.preprocessor.startsWith(hn.SCRIPT,!1)&&sr(this.preprocessor.peek(hn.SCRIPT.length))){this._emitCodePoint(g);for(let B=0;B<hn.SCRIPT.length;B++)this._emitCodePoint(this._consume());this.state=jt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=jt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(g))}_stateBeforeAttributeName(g){switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:break;case bt.SOLIDUS:case bt.GREATER_THAN_SIGN:case bt.EOF:{this.state=jt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(g);break}case bt.EQUALS_SIGN:{this._err(we.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=jt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=jt.ATTRIBUTE_NAME,this._stateAttributeName(g)}}_stateAttributeName(g){switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:case bt.SOLIDUS:case bt.GREATER_THAN_SIGN:case bt.EOF:{this._leaveAttrName(),this.state=jt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(g);break}case bt.EQUALS_SIGN:{this._leaveAttrName(),this.state=jt.BEFORE_ATTRIBUTE_VALUE;break}case bt.QUOTATION_MARK:case bt.APOSTROPHE:case bt.LESS_THAN_SIGN:{this._err(we.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(g);break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this.currentAttr.name+=je;break}default:this.currentAttr.name+=String.fromCodePoint(xe(g)?Rr(g):g)}}_stateAfterAttributeName(g){switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:break;case bt.SOLIDUS:{this.state=jt.SELF_CLOSING_START_TAG;break}case bt.EQUALS_SIGN:{this.state=jt.BEFORE_ATTRIBUTE_VALUE;break}case bt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentTagToken();break}case bt.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=jt.ATTRIBUTE_NAME,this._stateAttributeName(g)}}_stateBeforeAttributeValue(g){switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:break;case bt.QUOTATION_MARK:{this.state=jt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case bt.APOSTROPHE:{this.state=jt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case bt.GREATER_THAN_SIGN:{this._err(we.missingAttributeValue),this.state=jt.DATA,this.emitCurrentTagToken();break}default:this.state=jt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(g)}}_stateAttributeValueDoubleQuoted(g){switch(g){case bt.QUOTATION_MARK:{this.state=jt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case bt.AMPERSAND:{this._startCharacterReference();break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this.currentAttr.value+=je;break}case bt.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAttributeValueSingleQuoted(g){switch(g){case bt.APOSTROPHE:{this.state=jt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case bt.AMPERSAND:{this._startCharacterReference();break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this.currentAttr.value+=je;break}case bt.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAttributeValueUnquoted(g){switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:{this._leaveAttrValue(),this.state=jt.BEFORE_ATTRIBUTE_NAME;break}case bt.AMPERSAND:{this._startCharacterReference();break}case bt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=jt.DATA,this.emitCurrentTagToken();break}case bt.NULL:{this._err(we.unexpectedNullCharacter),this.currentAttr.value+=je;break}case bt.QUOTATION_MARK:case bt.APOSTROPHE:case bt.LESS_THAN_SIGN:case bt.EQUALS_SIGN:case bt.GRAVE_ACCENT:{this._err(we.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(g);break}case bt.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAfterAttributeValueQuoted(g){switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:{this._leaveAttrValue(),this.state=jt.BEFORE_ATTRIBUTE_NAME;break}case bt.SOLIDUS:{this._leaveAttrValue(),this.state=jt.SELF_CLOSING_START_TAG;break}case bt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=jt.DATA,this.emitCurrentTagToken();break}case bt.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this._err(we.missingWhitespaceBetweenAttributes),this.state=jt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(g)}}_stateSelfClosingStartTag(g){switch(g){case bt.GREATER_THAN_SIGN:{const B=this.currentToken;B.selfClosing=!0,this.state=jt.DATA,this.emitCurrentTagToken();break}case bt.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this._err(we.unexpectedSolidusInTag),this.state=jt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(g)}}_stateBogusComment(g){const B=this.currentToken;switch(g){case bt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentComment(B);break}case bt.EOF:{this.emitCurrentComment(B),this._emitEOFToken();break}case bt.NULL:{this._err(we.unexpectedNullCharacter),B.data+=je;break}default:B.data+=String.fromCodePoint(g)}}_stateMarkupDeclarationOpen(g){this._consumeSequenceIfMatch(hn.DASH_DASH,!0)?(this._createCommentToken(hn.DASH_DASH.length+1),this.state=jt.COMMENT_START):this._consumeSequenceIfMatch(hn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(hn.DOCTYPE.length+1),this.state=jt.DOCTYPE):this._consumeSequenceIfMatch(hn.CDATA_START,!0)?this.inForeignNode?this.state=jt.CDATA_SECTION:(this._err(we.cdataInHtmlContent),this._createCommentToken(hn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=jt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(we.incorrectlyOpenedComment),this._createCommentToken(2),this.state=jt.BOGUS_COMMENT,this._stateBogusComment(g))}_stateCommentStart(g){switch(g){case bt.HYPHEN_MINUS:{this.state=jt.COMMENT_START_DASH;break}case bt.GREATER_THAN_SIGN:{this._err(we.abruptClosingOfEmptyComment),this.state=jt.DATA;const B=this.currentToken;this.emitCurrentComment(B);break}default:this.state=jt.COMMENT,this._stateComment(g)}}_stateCommentStartDash(g){const B=this.currentToken;switch(g){case bt.HYPHEN_MINUS:{this.state=jt.COMMENT_END;break}case bt.GREATER_THAN_SIGN:{this._err(we.abruptClosingOfEmptyComment),this.state=jt.DATA,this.emitCurrentComment(B);break}case bt.EOF:{this._err(we.eofInComment),this.emitCurrentComment(B),this._emitEOFToken();break}default:B.data+="-",this.state=jt.COMMENT,this._stateComment(g)}}_stateComment(g){const B=this.currentToken;switch(g){case bt.HYPHEN_MINUS:{this.state=jt.COMMENT_END_DASH;break}case bt.LESS_THAN_SIGN:{B.data+="<",this.state=jt.COMMENT_LESS_THAN_SIGN;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),B.data+=je;break}case bt.EOF:{this._err(we.eofInComment),this.emitCurrentComment(B),this._emitEOFToken();break}default:B.data+=String.fromCodePoint(g)}}_stateCommentLessThanSign(g){const B=this.currentToken;switch(g){case bt.EXCLAMATION_MARK:{B.data+="!",this.state=jt.COMMENT_LESS_THAN_SIGN_BANG;break}case bt.LESS_THAN_SIGN:{B.data+="<";break}default:this.state=jt.COMMENT,this._stateComment(g)}}_stateCommentLessThanSignBang(g){g===bt.HYPHEN_MINUS?this.state=jt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=jt.COMMENT,this._stateComment(g))}_stateCommentLessThanSignBangDash(g){g===bt.HYPHEN_MINUS?this.state=jt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=jt.COMMENT_END_DASH,this._stateCommentEndDash(g))}_stateCommentLessThanSignBangDashDash(g){g!==bt.GREATER_THAN_SIGN&&g!==bt.EOF&&this._err(we.nestedComment),this.state=jt.COMMENT_END,this._stateCommentEnd(g)}_stateCommentEndDash(g){const B=this.currentToken;switch(g){case bt.HYPHEN_MINUS:{this.state=jt.COMMENT_END;break}case bt.EOF:{this._err(we.eofInComment),this.emitCurrentComment(B),this._emitEOFToken();break}default:B.data+="-",this.state=jt.COMMENT,this._stateComment(g)}}_stateCommentEnd(g){const B=this.currentToken;switch(g){case bt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentComment(B);break}case bt.EXCLAMATION_MARK:{this.state=jt.COMMENT_END_BANG;break}case bt.HYPHEN_MINUS:{B.data+="-";break}case bt.EOF:{this._err(we.eofInComment),this.emitCurrentComment(B),this._emitEOFToken();break}default:B.data+="--",this.state=jt.COMMENT,this._stateComment(g)}}_stateCommentEndBang(g){const B=this.currentToken;switch(g){case bt.HYPHEN_MINUS:{B.data+="--!",this.state=jt.COMMENT_END_DASH;break}case bt.GREATER_THAN_SIGN:{this._err(we.incorrectlyClosedComment),this.state=jt.DATA,this.emitCurrentComment(B);break}case bt.EOF:{this._err(we.eofInComment),this.emitCurrentComment(B),this._emitEOFToken();break}default:B.data+="--!",this.state=jt.COMMENT,this._stateComment(g)}}_stateDoctype(g){switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:{this.state=jt.BEFORE_DOCTYPE_NAME;break}case bt.GREATER_THAN_SIGN:{this.state=jt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(g);break}case bt.EOF:{this._err(we.eofInDoctype),this._createDoctypeToken(null);const B=this.currentToken;B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._err(we.missingWhitespaceBeforeDoctypeName),this.state=jt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(g)}}_stateBeforeDoctypeName(g){if(xe(g))this._createDoctypeToken(String.fromCharCode(Rr(g))),this.state=jt.DOCTYPE_NAME;else switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:break;case bt.NULL:{this._err(we.unexpectedNullCharacter),this._createDoctypeToken(je),this.state=jt.DOCTYPE_NAME;break}case bt.GREATER_THAN_SIGN:{this._err(we.missingDoctypeName),this._createDoctypeToken(null);const B=this.currentToken;B.forceQuirks=!0,this.emitCurrentDoctype(B),this.state=jt.DATA;break}case bt.EOF:{this._err(we.eofInDoctype),this._createDoctypeToken(null);const B=this.currentToken;B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(g)),this.state=jt.DOCTYPE_NAME}}_stateDoctypeName(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:{this.state=jt.AFTER_DOCTYPE_NAME;break}case bt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentDoctype(B);break}case bt.NULL:{this._err(we.unexpectedNullCharacter),B.name+=je;break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:B.name+=String.fromCodePoint(xe(g)?Rr(g):g)}}_stateAfterDoctypeName(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:break;case bt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentDoctype(B);break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(hn.PUBLIC,!1)?this.state=jt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(hn.SYSTEM,!1)?this.state=jt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(we.invalidCharacterSequenceAfterDoctypeName),B.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(g))}}_stateAfterDoctypePublicKeyword(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:{this.state=jt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case bt.QUOTATION_MARK:{this._err(we.missingWhitespaceAfterDoctypePublicKeyword),B.publicId="",this.state=jt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case bt.APOSTROPHE:{this._err(we.missingWhitespaceAfterDoctypePublicKeyword),B.publicId="",this.state=jt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case bt.GREATER_THAN_SIGN:{this._err(we.missingDoctypePublicIdentifier),B.forceQuirks=!0,this.state=jt.DATA,this.emitCurrentDoctype(B);break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypePublicIdentifier),B.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBeforeDoctypePublicIdentifier(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:break;case bt.QUOTATION_MARK:{B.publicId="",this.state=jt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case bt.APOSTROPHE:{B.publicId="",this.state=jt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case bt.GREATER_THAN_SIGN:{this._err(we.missingDoctypePublicIdentifier),B.forceQuirks=!0,this.state=jt.DATA,this.emitCurrentDoctype(B);break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypePublicIdentifier),B.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateDoctypePublicIdentifierDoubleQuoted(g){const B=this.currentToken;switch(g){case bt.QUOTATION_MARK:{this.state=jt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),B.publicId+=je;break}case bt.GREATER_THAN_SIGN:{this._err(we.abruptDoctypePublicIdentifier),B.forceQuirks=!0,this.emitCurrentDoctype(B),this.state=jt.DATA;break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:B.publicId+=String.fromCodePoint(g)}}_stateDoctypePublicIdentifierSingleQuoted(g){const B=this.currentToken;switch(g){case bt.APOSTROPHE:{this.state=jt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),B.publicId+=je;break}case bt.GREATER_THAN_SIGN:{this._err(we.abruptDoctypePublicIdentifier),B.forceQuirks=!0,this.emitCurrentDoctype(B),this.state=jt.DATA;break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:B.publicId+=String.fromCodePoint(g)}}_stateAfterDoctypePublicIdentifier(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:{this.state=jt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case bt.GREATER_THAN_SIGN:{this.state=jt.DATA,this.emitCurrentDoctype(B);break}case bt.QUOTATION_MARK:{this._err(we.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),B.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case bt.APOSTROPHE:{this._err(we.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),B.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypeSystemIdentifier),B.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBetweenDoctypePublicAndSystemIdentifiers(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:break;case bt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(B),this.state=jt.DATA;break}case bt.QUOTATION_MARK:{B.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case bt.APOSTROPHE:{B.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypeSystemIdentifier),B.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateAfterDoctypeSystemKeyword(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:{this.state=jt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case bt.QUOTATION_MARK:{this._err(we.missingWhitespaceAfterDoctypeSystemKeyword),B.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case bt.APOSTROPHE:{this._err(we.missingWhitespaceAfterDoctypeSystemKeyword),B.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case bt.GREATER_THAN_SIGN:{this._err(we.missingDoctypeSystemIdentifier),B.forceQuirks=!0,this.state=jt.DATA,this.emitCurrentDoctype(B);break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypeSystemIdentifier),B.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBeforeDoctypeSystemIdentifier(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:break;case bt.QUOTATION_MARK:{B.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case bt.APOSTROPHE:{B.systemId="",this.state=jt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case bt.GREATER_THAN_SIGN:{this._err(we.missingDoctypeSystemIdentifier),B.forceQuirks=!0,this.state=jt.DATA,this.emitCurrentDoctype(B);break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypeSystemIdentifier),B.forceQuirks=!0,this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateDoctypeSystemIdentifierDoubleQuoted(g){const B=this.currentToken;switch(g){case bt.QUOTATION_MARK:{this.state=jt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),B.systemId+=je;break}case bt.GREATER_THAN_SIGN:{this._err(we.abruptDoctypeSystemIdentifier),B.forceQuirks=!0,this.emitCurrentDoctype(B),this.state=jt.DATA;break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:B.systemId+=String.fromCodePoint(g)}}_stateDoctypeSystemIdentifierSingleQuoted(g){const B=this.currentToken;switch(g){case bt.APOSTROPHE:{this.state=jt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case bt.NULL:{this._err(we.unexpectedNullCharacter),B.systemId+=je;break}case bt.GREATER_THAN_SIGN:{this._err(we.abruptDoctypeSystemIdentifier),B.forceQuirks=!0,this.emitCurrentDoctype(B),this.state=jt.DATA;break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:B.systemId+=String.fromCodePoint(g)}}_stateAfterDoctypeSystemIdentifier(g){const B=this.currentToken;switch(g){case bt.SPACE:case bt.LINE_FEED:case bt.TABULATION:case bt.FORM_FEED:break;case bt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(B),this.state=jt.DATA;break}case bt.EOF:{this._err(we.eofInDoctype),B.forceQuirks=!0,this.emitCurrentDoctype(B),this._emitEOFToken();break}default:this._err(we.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=jt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBogusDoctype(g){const B=this.currentToken;switch(g){case bt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(B),this.state=jt.DATA;break}case bt.NULL:{this._err(we.unexpectedNullCharacter);break}case bt.EOF:{this.emitCurrentDoctype(B),this._emitEOFToken();break}default:}}_stateCdataSection(g){switch(g){case bt.RIGHT_SQUARE_BRACKET:{this.state=jt.CDATA_SECTION_BRACKET;break}case bt.EOF:{this._err(we.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateCdataSectionBracket(g){g===bt.RIGHT_SQUARE_BRACKET?this.state=jt.CDATA_SECTION_END:(this._emitChars("]"),this.state=jt.CDATA_SECTION,this._stateCdataSection(g))}_stateCdataSectionEnd(g){switch(g){case bt.GREATER_THAN_SIGN:{this.state=jt.DATA;break}case bt.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=jt.CDATA_SECTION,this._stateCdataSection(g)}}_stateCharacterReference(){let g=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(g<0)if(this.preprocessor.lastChunkWritten)g=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}g===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(bt.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ai(this.preprocessor.peek(1))?jt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(g){Ai(g)?this._flushCodePointConsumedAsCharacterReference(g):(g===bt.SEMICOLON&&this._err(we.unknownNamedCharacterReference),this.state=this.returnState,this._callState(g))}}const ir=new Set([R.DD,R.DT,R.LI,R.OPTGROUP,R.OPTION,R.P,R.RB,R.RP,R.RT,R.RTC]),Te=new Set([...ir,R.CAPTION,R.COLGROUP,R.TBODY,R.TD,R.TFOOT,R.TH,R.THEAD,R.TR]),cr=new Set([R.APPLET,R.CAPTION,R.HTML,R.MARQUEE,R.OBJECT,R.TABLE,R.TD,R.TEMPLATE,R.TH]),Ce=new Set([...cr,R.OL,R.UL]),Gn=new Set([...cr,R.BUTTON]),Ri=new Set([R.ANNOTATION_XML,R.MI,R.MN,R.MO,R.MS,R.MTEXT]),gi=new Set([R.DESC,R.FOREIGN_OBJECT,R.TITLE]),pr=new Set([R.TR,R.TEMPLATE,R.HTML]),Bi=new Set([R.TBODY,R.TFOOT,R.THEAD,R.TEMPLATE,R.HTML]),Si=new Set([R.TABLE,R.TEMPLATE,R.HTML]),Hr=new Set([R.TD,R.TH]);class Qt{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(g,B,Lt){this.treeAdapter=B,this.handler=Lt,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=R.UNKNOWN,this.current=g}_indexOf(g){return this.items.lastIndexOf(g,this.stackTop)}_isInTemplate(){return this.currentTagId===R.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ut.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(g,B){this.stackTop++,this.items[this.stackTop]=g,this.current=g,this.tagIDs[this.stackTop]=B,this.currentTagId=B,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(g,B,!0)}pop(){const g=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(g,!0)}replace(g,B){const Lt=this._indexOf(g);this.items[Lt]=B,Lt===this.stackTop&&(this.current=B)}insertAfter(g,B,Lt){const Se=this._indexOf(g)+1;this.items.splice(Se,0,B),this.tagIDs.splice(Se,0,Lt),this.stackTop++,Se===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,Se===this.stackTop)}popUntilTagNamePopped(g){let B=this.stackTop+1;do B=this.tagIDs.lastIndexOf(g,B-1);while(B>0&&this.treeAdapter.getNamespaceURI(this.items[B])!==Ut.HTML);this.shortenToLength(Math.max(B,0))}shortenToLength(g){for(;this.stackTop>=g;){const B=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(B,this.stackTop<g)}}popUntilElementPopped(g){const B=this._indexOf(g);this.shortenToLength(Math.max(B,0))}popUntilPopped(g,B){const Lt=this._indexOfTagNames(g,B);this.shortenToLength(Math.max(Lt,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Wn,Ut.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Hr,Ut.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(g,B){for(let Lt=this.stackTop;Lt>=0;Lt--)if(g.has(this.tagIDs[Lt])&&this.treeAdapter.getNamespaceURI(this.items[Lt])===B)return Lt;return-1}clearBackTo(g,B){const Lt=this._indexOfTagNames(g,B);this.shortenToLength(Lt+1)}clearBackToTableContext(){this.clearBackTo(Si,Ut.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Bi,Ut.HTML)}clearBackToTableRowContext(){this.clearBackTo(pr,Ut.HTML)}remove(g){const B=this._indexOf(g);B>=0&&(B===this.stackTop?this.pop():(this.items.splice(B,1),this.tagIDs.splice(B,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(g,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===R.BODY?this.items[1]:null}contains(g){return this._indexOf(g)>-1}getCommonAncestor(g){const B=this._indexOf(g)-1;return B>=0?this.items[B]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===R.HTML}hasInDynamicScope(g,B){for(let Lt=this.stackTop;Lt>=0;Lt--){const Se=this.tagIDs[Lt];switch(this.treeAdapter.getNamespaceURI(this.items[Lt])){case Ut.HTML:{if(Se===g)return!0;if(B.has(Se))return!1;break}case Ut.SVG:{if(gi.has(Se))return!1;break}case Ut.MATHML:{if(Ri.has(Se))return!1;break}}}return!0}hasInScope(g){return this.hasInDynamicScope(g,cr)}hasInListItemScope(g){return this.hasInDynamicScope(g,Ce)}hasInButtonScope(g){return this.hasInDynamicScope(g,Gn)}hasNumberedHeaderInScope(){for(let g=this.stackTop;g>=0;g--){const B=this.tagIDs[g];switch(this.treeAdapter.getNamespaceURI(this.items[g])){case Ut.HTML:{if(Wn.has(B))return!0;if(cr.has(B))return!1;break}case Ut.SVG:{if(gi.has(B))return!1;break}case Ut.MATHML:{if(Ri.has(B))return!1;break}}}return!0}hasInTableScope(g){for(let B=this.stackTop;B>=0;B--)if(this.treeAdapter.getNamespaceURI(this.items[B])===Ut.HTML)switch(this.tagIDs[B]){case g:return!0;case R.TABLE:case R.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let g=this.stackTop;g>=0;g--)if(this.treeAdapter.getNamespaceURI(this.items[g])===Ut.HTML)switch(this.tagIDs[g]){case R.TBODY:case R.THEAD:case R.TFOOT:return!0;case R.TABLE:case R.HTML:return!1}return!0}hasInSelectScope(g){for(let B=this.stackTop;B>=0;B--)if(this.treeAdapter.getNamespaceURI(this.items[B])===Ut.HTML)switch(this.tagIDs[B]){case g:return!0;case R.OPTION:case R.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&ir.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Te.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(g){for(;this.currentTagId!==void 0&&this.currentTagId!==g&&Te.has(this.currentTagId);)this.pop()}}const Le=3;var Zt;(function(h){h[h.Marker=0]="Marker",h[h.Element=1]="Element"})(Zt||(Zt={}));const z={type:Zt.Marker};class Xe{constructor(g){this.treeAdapter=g,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(g,B){const Lt=[],Se=B.length,fn=this.treeAdapter.getTagName(g),Fn=this.treeAdapter.getNamespaceURI(g);for(let zi=0;zi<this.entries.length;zi++){const vr=this.entries[zi];if(vr.type===Zt.Marker)break;const{element:ln}=vr;if(this.treeAdapter.getTagName(ln)===fn&&this.treeAdapter.getNamespaceURI(ln)===Fn){const oi=this.treeAdapter.getAttrList(ln);oi.length===Se&&Lt.push({idx:zi,attrs:oi})}}return Lt}_ensureNoahArkCondition(g){if(this.entries.length<Le)return;const B=this.treeAdapter.getAttrList(g),Lt=this._getNoahArkConditionCandidates(g,B);if(Lt.length<Le)return;const Se=new Map(B.map(Fn=>[Fn.name,Fn.value]));let fn=0;for(let Fn=0;Fn<Lt.length;Fn++){const zi=Lt[Fn];zi.attrs.every(vr=>Se.get(vr.name)===vr.value)&&(fn+=1,fn>=Le&&this.entries.splice(zi.idx,1))}}insertMarker(){this.entries.unshift(z)}pushElement(g,B){this._ensureNoahArkCondition(g),this.entries.unshift({type:Zt.Element,element:g,token:B})}insertElementAfterBookmark(g,B){const Lt=this.entries.indexOf(this.bookmark);this.entries.splice(Lt,0,{type:Zt.Element,element:g,token:B})}removeEntry(g){const B=this.entries.indexOf(g);B!==-1&&this.entries.splice(B,1)}clearToLastMarker(){const g=this.entries.indexOf(z);g===-1?this.entries.length=0:this.entries.splice(0,g+1)}getElementEntryInScopeWithTagName(g){const B=this.entries.find(Lt=>Lt.type===Zt.Marker||this.treeAdapter.getTagName(Lt.element)===g);return B&&B.type===Zt.Element?B:null}getElementEntry(g){return this.entries.find(B=>B.type===Zt.Element&&B.element===g)}}const an={createDocument(){return{nodeName:"#document",mode:kn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(h,g,B){return{nodeName:h,tagName:h,attrs:B,namespaceURI:g,childNodes:[],parentNode:null}},createCommentNode(h){return{nodeName:"#comment",data:h,parentNode:null}},createTextNode(h){return{nodeName:"#text",value:h,parentNode:null}},appendChild(h,g){h.childNodes.push(g),g.parentNode=h},insertBefore(h,g,B){const Lt=h.childNodes.indexOf(B);h.childNodes.splice(Lt,0,g),g.parentNode=h},setTemplateContent(h,g){h.content=g},getTemplateContent(h){return h.content},setDocumentType(h,g,B,Lt){const Se=h.childNodes.find(fn=>fn.nodeName==="#documentType");if(Se)Se.name=g,Se.publicId=B,Se.systemId=Lt;else{const fn={nodeName:"#documentType",name:g,publicId:B,systemId:Lt,parentNode:null};an.appendChild(h,fn)}},setDocumentMode(h,g){h.mode=g},getDocumentMode(h){return h.mode},detachNode(h){if(h.parentNode){const g=h.parentNode.childNodes.indexOf(h);h.parentNode.childNodes.splice(g,1),h.parentNode=null}},insertText(h,g){if(h.childNodes.length>0){const B=h.childNodes[h.childNodes.length-1];if(an.isTextNode(B)){B.value+=g;return}}an.appendChild(h,an.createTextNode(g))},insertTextBefore(h,g,B){const Lt=h.childNodes[h.childNodes.indexOf(B)-1];Lt&&an.isTextNode(Lt)?Lt.value+=g:an.insertBefore(h,an.createTextNode(g),B)},adoptAttributes(h,g){const B=new Set(h.attrs.map(Lt=>Lt.name));for(let Lt=0;Lt<g.length;Lt++)B.has(g[Lt].name)||h.attrs.push(g[Lt])},getFirstChild(h){return h.childNodes[0]},getChildNodes(h){return h.childNodes},getParentNode(h){return h.parentNode},getAttrList(h){return h.attrs},getTagName(h){return h.tagName},getNamespaceURI(h){return h.namespaceURI},getTextNodeContent(h){return h.value},getCommentNodeContent(h){return h.data},getDocumentTypeNodeName(h){return h.name},getDocumentTypeNodePublicId(h){return h.publicId},getDocumentTypeNodeSystemId(h){return h.systemId},isTextNode(h){return h.nodeName==="#text"},isCommentNode(h){return h.nodeName==="#comment"},isDocumentTypeNode(h){return h.nodeName==="#documentType"},isElementNode(h){return Object.prototype.hasOwnProperty.call(h,"tagName")},setNodeSourceCodeLocation(h,g){h.sourceCodeLocation=g},getNodeSourceCodeLocation(h){return h.sourceCodeLocation},updateNodeSourceCodeLocation(h,g){h.sourceCodeLocation=to(to({},h.sourceCodeLocation),g)}},On="html",An="about:legacy-compat",mn="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ke=["+//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//"],qe=[...ke,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],en=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),He=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],nn=[...He,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function _n(h,g){return g.some(B=>h.startsWith(B))}function ci(h){return h.name===On&&h.publicId===null&&(h.systemId===null||h.systemId===An)}function si(h){if(h.name!==On)return kn.QUIRKS;const{systemId:g}=h;if(g&&g.toLowerCase()===mn)return kn.QUIRKS;let{publicId:B}=h;if(B!==null){if(B=B.toLowerCase(),en.has(B))return kn.QUIRKS;let Lt=g===null?qe:ke;if(_n(B,Lt))return kn.QUIRKS;if(Lt=g===null?He:nn,_n(B,Lt))return kn.LIMITED_QUIRKS}return kn.NO_QUIRKS}const Je={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ui="definitionurl",Ti="definitionURL",ar=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(h=>[h.toLowerCase(),h])),bi=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ut.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ut.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ut.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ut.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ut.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ut.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ut.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ut.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ut.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ut.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ut.XMLNS}]]),Kr=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(h=>[h.toLowerCase(),h])),Pr=new Set([R.B,R.BIG,R.BLOCKQUOTE,R.BODY,R.BR,R.CENTER,R.CODE,R.DD,R.DIV,R.DL,R.DT,R.EM,R.EMBED,R.H1,R.H2,R.H3,R.H4,R.H5,R.H6,R.HEAD,R.HR,R.I,R.IMG,R.LI,R.LISTING,R.MENU,R.META,R.NOBR,R.OL,R.P,R.PRE,R.RUBY,R.S,R.SMALL,R.SPAN,R.STRONG,R.STRIKE,R.SUB,R.SUP,R.TABLE,R.TT,R.U,R.UL,R.VAR]);function Mr(h){const g=h.tagID;return g===R.FONT&&h.attrs.some(({name:Lt})=>Lt===Ye.COLOR||Lt===Ye.SIZE||Lt===Ye.FACE)||Pr.has(g)}function Er(h){for(let g=0;g<h.attrs.length;g++)if(h.attrs[g].name===Ui){h.attrs[g].name=Ti;break}}function Or(h){for(let g=0;g<h.attrs.length;g++){const B=ar.get(h.attrs[g].name);B!=null&&(h.attrs[g].name=B)}}function Zr(h){for(let g=0;g<h.attrs.length;g++){const B=bi.get(h.attrs[g].name);B&&(h.attrs[g].prefix=B.prefix,h.attrs[g].name=B.name,h.attrs[g].namespace=B.namespace)}}function Xt(h){const g=Kr.get(h.tagName);g!=null&&(h.tagName=g,h.tagID=En(h.tagName))}function rr(h,g){return g===Ut.MATHML&&(h===R.MI||h===R.MO||h===R.MN||h===R.MS||h===R.MTEXT)}function $i(h,g,B){if(g===Ut.MATHML&&h===R.ANNOTATION_XML){for(let Lt=0;Lt<B.length;Lt++)if(B[Lt].name===Ye.ENCODING){const Se=B[Lt].value.toLowerCase();return Se===Je.TEXT_HTML||Se===Je.APPLICATION_XML}}return g===Ut.SVG&&(h===R.FOREIGN_OBJECT||h===R.DESC||h===R.TITLE)}function mi(h,g,B,Lt){return(!Lt||Lt===Ut.HTML)&&$i(h,g,B)||(!Lt||Lt===Ut.MATHML)&&rr(h,g)}const Mi="hidden",er=8,Sr=3;var ee;(function(h){h[h.INITIAL=0]="INITIAL",h[h.BEFORE_HTML=1]="BEFORE_HTML",h[h.BEFORE_HEAD=2]="BEFORE_HEAD",h[h.IN_HEAD=3]="IN_HEAD",h[h.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",h[h.AFTER_HEAD=5]="AFTER_HEAD",h[h.IN_BODY=6]="IN_BODY",h[h.TEXT=7]="TEXT",h[h.IN_TABLE=8]="IN_TABLE",h[h.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",h[h.IN_CAPTION=10]="IN_CAPTION",h[h.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",h[h.IN_TABLE_BODY=12]="IN_TABLE_BODY",h[h.IN_ROW=13]="IN_ROW",h[h.IN_CELL=14]="IN_CELL",h[h.IN_SELECT=15]="IN_SELECT",h[h.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",h[h.IN_TEMPLATE=17]="IN_TEMPLATE",h[h.AFTER_BODY=18]="AFTER_BODY",h[h.IN_FRAMESET=19]="IN_FRAMESET",h[h.AFTER_FRAMESET=20]="AFTER_FRAMESET",h[h.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",h[h.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(ee||(ee={}));const Ni={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Gr=new Set([R.TABLE,R.TBODY,R.TFOOT,R.THEAD,R.TR]),ws={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:an,onParseError:null};class cs{constructor(g,B,Lt=null,Se=null){this.fragmentContext=Lt,this.scriptHandler=Se,this.currentToken=null,this.stopped=!1,this.insertionMode=ee.INITIAL,this.originalInsertionMode=ee.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=to(to({},ws),g),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=B!=null?B:this.treeAdapter.createDocument(),this.tokenizer=new qi(this.options,this),this.activeFormattingElements=new Xe(this.treeAdapter),this.fragmentContextID=Lt?En(this.treeAdapter.getTagName(Lt)):R.UNKNOWN,this._setContextModes(Lt!=null?Lt:this.document,this.fragmentContextID),this.openElements=new Qt(this.document,this.treeAdapter,this)}static parse(g,B){const Lt=new this(B);return Lt.tokenizer.write(g,!0),Lt.document}static getFragmentParser(g,B){const Lt=to(to({},ws),B);g!=null||(g=Lt.treeAdapter.createElement(te.TEMPLATE,Ut.HTML,[]));const Se=Lt.treeAdapter.createElement("documentmock",Ut.HTML,[]),fn=new this(Lt,Se,g);return fn.fragmentContextID===R.TEMPLATE&&fn.tmplInsertionModeStack.unshift(ee.IN_TEMPLATE),fn._initTokenizerForFragmentParsing(),fn._insertFakeRootElement(),fn._resetInsertionMode(),fn._findFormInFragmentContext(),fn}getFragment(){const g=this.treeAdapter.getFirstChild(this.document),B=this.treeAdapter.createDocumentFragment();return this._adoptNodes(g,B),B}_err(g,B,Lt){var Se;if(!this.onParseError)return;const fn=(Se=g.location)!==null&&Se!==void 0?Se:Ni,Fn={code:B,startLine:fn.startLine,startCol:fn.startCol,startOffset:fn.startOffset,endLine:Lt?fn.startLine:fn.endLine,endCol:Lt?fn.startCol:fn.endCol,endOffset:Lt?fn.startOffset:fn.endOffset};this.onParseError(Fn)}onItemPush(g,B,Lt){var Se,fn;(fn=(Se=this.treeAdapter).onItemPush)===null||fn===void 0||fn.call(Se,g),Lt&&this.openElements.stackTop>0&&this._setContextModes(g,B)}onItemPop(g,B){var Lt,Se;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(g,this.currentToken),(Se=(Lt=this.treeAdapter).onItemPop)===null||Se===void 0||Se.call(Lt,g,this.openElements.current),B){let fn,Fn;this.openElements.stackTop===0&&this.fragmentContext?(fn=this.fragmentContext,Fn=this.fragmentContextID):{current:fn,currentTagId:Fn}=this.openElements,this._setContextModes(fn,Fn)}}_setContextModes(g,B){const Lt=g===this.document||g&&this.treeAdapter.getNamespaceURI(g)===Ut.HTML;this.currentNotInHTML=!Lt,this.tokenizer.inForeignNode=!Lt&&g!==void 0&&B!==void 0&&!this._isIntegrationPoint(B,g)}_switchToTextParsing(g,B){this._insertElement(g,Ut.HTML),this.tokenizer.state=B,this.originalInsertionMode=this.insertionMode,this.insertionMode=ee.TEXT}switchToPlaintextParsing(){this.insertionMode=ee.TEXT,this.originalInsertionMode=ee.IN_BODY,this.tokenizer.state=ui.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let g=this.fragmentContext;for(;g;){if(this.treeAdapter.getTagName(g)===te.FORM){this.formElement=g;break}g=this.treeAdapter.getParentNode(g)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Ut.HTML))switch(this.fragmentContextID){case R.TITLE:case R.TEXTAREA:{this.tokenizer.state=ui.RCDATA;break}case R.STYLE:case R.XMP:case R.IFRAME:case R.NOEMBED:case R.NOFRAMES:case R.NOSCRIPT:{this.tokenizer.state=ui.RAWTEXT;break}case R.SCRIPT:{this.tokenizer.state=ui.SCRIPT_DATA;break}case R.PLAINTEXT:{this.tokenizer.state=ui.PLAINTEXT;break}default:}}_setDocumentType(g){const B=g.name||"",Lt=g.publicId||"",Se=g.systemId||"";if(this.treeAdapter.setDocumentType(this.document,B,Lt,Se),g.location){const Fn=this.treeAdapter.getChildNodes(this.document).find(zi=>this.treeAdapter.isDocumentTypeNode(zi));Fn&&this.treeAdapter.setNodeSourceCodeLocation(Fn,g.location)}}_attachElementToTree(g,B){if(this.options.sourceCodeLocationInfo){const Lt=B&&Md(to({},B),{startTag:B});this.treeAdapter.setNodeSourceCodeLocation(g,Lt)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(g);else{const Lt=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(Lt!=null?Lt:this.document,g)}}_appendElement(g,B){const Lt=this.treeAdapter.createElement(g.tagName,B,g.attrs);this._attachElementToTree(Lt,g.location)}_insertElement(g,B){const Lt=this.treeAdapter.createElement(g.tagName,B,g.attrs);this._attachElementToTree(Lt,g.location),this.openElements.push(Lt,g.tagID)}_insertFakeElement(g,B){const Lt=this.treeAdapter.createElement(g,Ut.HTML,[]);this._attachElementToTree(Lt,null),this.openElements.push(Lt,B)}_insertTemplate(g){const B=this.treeAdapter.createElement(g.tagName,Ut.HTML,g.attrs),Lt=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(B,Lt),this._attachElementToTree(B,g.location),this.openElements.push(B,g.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Lt,null)}_insertFakeRootElement(){const g=this.treeAdapter.createElement(te.HTML,Ut.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(g,null),this.treeAdapter.appendChild(this.openElements.current,g),this.openElements.push(g,R.HTML)}_appendCommentNode(g,B){const Lt=this.treeAdapter.createCommentNode(g.data);this.treeAdapter.appendChild(B,Lt),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Lt,g.location)}_insertCharacters(g){let B,Lt;if(this._shouldFosterParentOnInsertion()?({parent:B,beforeElement:Lt}=this._findFosterParentingLocation(),Lt?this.treeAdapter.insertTextBefore(B,g.chars,Lt):this.treeAdapter.insertText(B,g.chars)):(B=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(B,g.chars)),!g.location)return;const Se=this.treeAdapter.getChildNodes(B),fn=Lt?Se.lastIndexOf(Lt):Se.length,Fn=Se[fn-1];if(this.treeAdapter.getNodeSourceCodeLocation(Fn)){const{endLine:vr,endCol:ln,endOffset:oi}=g.location;this.treeAdapter.updateNodeSourceCodeLocation(Fn,{endLine:vr,endCol:ln,endOffset:oi})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Fn,g.location)}_adoptNodes(g,B){for(let Lt=this.treeAdapter.getFirstChild(g);Lt;Lt=this.treeAdapter.getFirstChild(g))this.treeAdapter.detachNode(Lt),this.treeAdapter.appendChild(B,Lt)}_setEndLocation(g,B){if(this.treeAdapter.getNodeSourceCodeLocation(g)&&B.location){const Lt=B.location,Se=this.treeAdapter.getTagName(g),fn=B.type===Bn.END_TAG&&Se===B.tagName?{endTag:to({},Lt),endLine:Lt.endLine,endCol:Lt.endCol,endOffset:Lt.endOffset}:{endLine:Lt.startLine,endCol:Lt.startCol,endOffset:Lt.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(g,fn)}}shouldProcessStartTagTokenInForeignContent(g){if(!this.currentNotInHTML)return!1;let B,Lt;return this.openElements.stackTop===0&&this.fragmentContext?(B=this.fragmentContext,Lt=this.fragmentContextID):{current:B,currentTagId:Lt}=this.openElements,g.tagID===R.SVG&&this.treeAdapter.getTagName(B)===te.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(B)===Ut.MATHML?!1:this.tokenizer.inForeignNode||(g.tagID===R.MGLYPH||g.tagID===R.MALIGNMARK)&&Lt!==void 0&&!this._isIntegrationPoint(Lt,B,Ut.HTML)}_processToken(g){switch(g.type){case Bn.CHARACTER:{this.onCharacter(g);break}case Bn.NULL_CHARACTER:{this.onNullCharacter(g);break}case Bn.COMMENT:{this.onComment(g);break}case Bn.DOCTYPE:{this.onDoctype(g);break}case Bn.START_TAG:{this._processStartTag(g);break}case Bn.END_TAG:{this.onEndTag(g);break}case Bn.EOF:{this.onEof(g);break}case Bn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(g);break}}}_isIntegrationPoint(g,B,Lt){const Se=this.treeAdapter.getNamespaceURI(B),fn=this.treeAdapter.getAttrList(B);return mi(g,Se,fn,Lt)}_reconstructActiveFormattingElements(){const g=this.activeFormattingElements.entries.length;if(g){const B=this.activeFormattingElements.entries.findIndex(Se=>Se.type===Zt.Marker||this.openElements.contains(Se.element)),Lt=B===-1?g-1:B-1;for(let Se=Lt;Se>=0;Se--){const fn=this.activeFormattingElements.entries[Se];this._insertElement(fn.token,this.treeAdapter.getNamespaceURI(fn.element)),fn.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ee.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(R.P),this.openElements.popUntilTagNamePopped(R.P)}_resetInsertionMode(){for(let g=this.openElements.stackTop;g>=0;g--)switch(g===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[g]){case R.TR:{this.insertionMode=ee.IN_ROW;return}case R.TBODY:case R.THEAD:case R.TFOOT:{this.insertionMode=ee.IN_TABLE_BODY;return}case R.CAPTION:{this.insertionMode=ee.IN_CAPTION;return}case R.COLGROUP:{this.insertionMode=ee.IN_COLUMN_GROUP;return}case R.TABLE:{this.insertionMode=ee.IN_TABLE;return}case R.BODY:{this.insertionMode=ee.IN_BODY;return}case R.FRAMESET:{this.insertionMode=ee.IN_FRAMESET;return}case R.SELECT:{this._resetInsertionModeForSelect(g);return}case R.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case R.HTML:{this.insertionMode=this.headElement?ee.AFTER_HEAD:ee.BEFORE_HEAD;return}case R.TD:case R.TH:{if(g>0){this.insertionMode=ee.IN_CELL;return}break}case R.HEAD:{if(g>0){this.insertionMode=ee.IN_HEAD;return}break}}this.insertionMode=ee.IN_BODY}_resetInsertionModeForSelect(g){if(g>0)for(let B=g-1;B>0;B--){const Lt=this.openElements.tagIDs[B];if(Lt===R.TEMPLATE)break;if(Lt===R.TABLE){this.insertionMode=ee.IN_SELECT_IN_TABLE;return}}this.insertionMode=ee.IN_SELECT}_isElementCausesFosterParenting(g){return Gr.has(g)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let g=this.openElements.stackTop;g>=0;g--){const B=this.openElements.items[g];switch(this.openElements.tagIDs[g]){case R.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(B)===Ut.HTML)return{parent:this.treeAdapter.getTemplateContent(B),beforeElement:null};break}case R.TABLE:{const Lt=this.treeAdapter.getParentNode(B);return Lt?{parent:Lt,beforeElement:B}:{parent:this.openElements.items[g-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(g){const B=this._findFosterParentingLocation();B.beforeElement?this.treeAdapter.insertBefore(B.parent,g,B.beforeElement):this.treeAdapter.appendChild(B.parent,g)}_isSpecialElement(g,B){const Lt=this.treeAdapter.getNamespaceURI(g);return li[Lt].has(B)}onCharacter(g){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){W(this,g);return}switch(this.insertionMode){case ee.INITIAL:{Yi(this,g);break}case ee.BEFORE_HTML:{Jo(this,g);break}case ee.BEFORE_HEAD:{tr(this,g);break}case ee.IN_HEAD:{hs(this,g);break}case ee.IN_HEAD_NO_SCRIPT:{Ro(this,g);break}case ee.AFTER_HEAD:{Hs(this,g);break}case ee.IN_BODY:case ee.IN_CAPTION:case ee.IN_CELL:case ee.IN_TEMPLATE:{nl(this,g);break}case ee.TEXT:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:{this._insertCharacters(g);break}case ee.IN_TABLE:case ee.IN_TABLE_BODY:case ee.IN_ROW:{Ci(this,g);break}case ee.IN_TABLE_TEXT:{_a(this,g);break}case ee.IN_COLUMN_GROUP:{ns(this,g);break}case ee.AFTER_BODY:{fu(this,g);break}case ee.AFTER_AFTER_BODY:{b(this,g);break}default:}}onNullCharacter(g){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){U(this,g);return}switch(this.insertionMode){case ee.INITIAL:{Yi(this,g);break}case ee.BEFORE_HTML:{Jo(this,g);break}case ee.BEFORE_HEAD:{tr(this,g);break}case ee.IN_HEAD:{hs(this,g);break}case ee.IN_HEAD_NO_SCRIPT:{Ro(this,g);break}case ee.AFTER_HEAD:{Hs(this,g);break}case ee.TEXT:{this._insertCharacters(g);break}case ee.IN_TABLE:case ee.IN_TABLE_BODY:case ee.IN_ROW:{Ci(this,g);break}case ee.IN_COLUMN_GROUP:{ns(this,g);break}case ee.AFTER_BODY:{fu(this,g);break}case ee.AFTER_AFTER_BODY:{b(this,g);break}default:}}onComment(g){if(this.skipNextNewLine=!1,this.currentNotInHTML){Co(this,g);return}switch(this.insertionMode){case ee.INITIAL:case ee.BEFORE_HTML:case ee.BEFORE_HEAD:case ee.IN_HEAD:case ee.IN_HEAD_NO_SCRIPT:case ee.AFTER_HEAD:case ee.IN_BODY:case ee.IN_TABLE:case ee.IN_CAPTION:case ee.IN_COLUMN_GROUP:case ee.IN_TABLE_BODY:case ee.IN_ROW:case ee.IN_CELL:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:case ee.IN_TEMPLATE:case ee.IN_FRAMESET:case ee.AFTER_FRAMESET:{Co(this,g);break}case ee.IN_TABLE_TEXT:{ol(this,g);break}case ee.AFTER_BODY:{vn(this,g);break}case ee.AFTER_AFTER_BODY:case ee.AFTER_AFTER_FRAMESET:{qn(this,g);break}default:}}onDoctype(g){switch(this.skipNextNewLine=!1,this.insertionMode){case ee.INITIAL:{Gi(this,g);break}case ee.BEFORE_HEAD:case ee.IN_HEAD:case ee.IN_HEAD_NO_SCRIPT:case ee.AFTER_HEAD:{this._err(g,we.misplacedDoctype);break}case ee.IN_TABLE_TEXT:{ol(this,g);break}default:}}onStartTag(g){this.skipNextNewLine=!1,this.currentToken=g,this._processStartTag(g),g.selfClosing&&!g.ackSelfClosing&&this._err(g,we.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(g){this.shouldProcessStartTagTokenInForeignContent(g)?mt(this,g):this._startTagOutsideForeignContent(g)}_startTagOutsideForeignContent(g){switch(this.insertionMode){case ee.INITIAL:{Yi(this,g);break}case ee.BEFORE_HTML:{Vr(this,g);break}case ee.BEFORE_HEAD:{So(this,g);break}case ee.IN_HEAD:{$r(this,g);break}case ee.IN_HEAD_NO_SCRIPT:{Us(this,g);break}case ee.AFTER_HEAD:{Oa(this,g);break}case ee.IN_BODY:{Wr(this,g);break}case ee.IN_TABLE:{Pa(this,g);break}case ee.IN_TABLE_TEXT:{ol(this,g);break}case ee.IN_CAPTION:{wr(this,g);break}case ee.IN_COLUMN_GROUP:{No(this,g);break}case ee.IN_TABLE_BODY:{Ea(this,g);break}case ee.IN_ROW:{Ta(this,g);break}case ee.IN_CELL:{Wa(this,g);break}case ee.IN_SELECT:{Sh(this,g);break}case ee.IN_SELECT_IN_TABLE:{wh(this,g);break}case ee.IN_TEMPLATE:{Xl(this,g);break}case ee.AFTER_BODY:{Ms(this,g);break}case ee.IN_FRAMESET:{Fs(this,g);break}case ee.AFTER_FRAMESET:{yc(this,g);break}case ee.AFTER_AFTER_BODY:{oa(this,g);break}case ee.AFTER_AFTER_FRAMESET:{M(this,g);break}default:}}onEndTag(g){this.skipNextNewLine=!1,this.currentToken=g,this.currentNotInHTML?Ot(this,g):this._endTagOutsideForeignContent(g)}_endTagOutsideForeignContent(g){switch(this.insertionMode){case ee.INITIAL:{Yi(this,g);break}case ee.BEFORE_HTML:{ei(this,g);break}case ee.BEFORE_HEAD:{xo(this,g);break}case ee.IN_HEAD:{xs(this,g);break}case ee.IN_HEAD_NO_SCRIPT:{Is(this,g);break}case ee.AFTER_HEAD:{Wl(this,g);break}case ee.IN_BODY:{ho(this,g);break}case ee.TEXT:{Tr(this,g);break}case ee.IN_TABLE:{Fr(this,g);break}case ee.IN_TABLE_TEXT:{ol(this,g);break}case ee.IN_CAPTION:{Jr(this,g);break}case ee.IN_COLUMN_GROUP:{gs(this,g);break}case ee.IN_TABLE_BODY:{Sa(this,g);break}case ee.IN_ROW:{ra(this,g);break}case ee.IN_CELL:{vc(this,g);break}case ee.IN_SELECT:{Th(this,g);break}case ee.IN_SELECT_IN_TABLE:{$o(this,g);break}case ee.IN_TEMPLATE:{uo(this,g);break}case ee.AFTER_BODY:{ks(this,g);break}case ee.IN_FRAMESET:{Ql(this,g);break}case ee.AFTER_FRAMESET:{xc(this,g);break}case ee.AFTER_AFTER_BODY:{b(this,g);break}default:}}onEof(g){switch(this.insertionMode){case ee.INITIAL:{Yi(this,g);break}case ee.BEFORE_HTML:{Jo(this,g);break}case ee.BEFORE_HEAD:{tr(this,g);break}case ee.IN_HEAD:{hs(this,g);break}case ee.IN_HEAD_NO_SCRIPT:{Ro(this,g);break}case ee.AFTER_HEAD:{Hs(this,g);break}case ee.IN_BODY:case ee.IN_TABLE:case ee.IN_CAPTION:case ee.IN_COLUMN_GROUP:case ee.IN_TABLE_BODY:case ee.IN_ROW:case ee.IN_CELL:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:{wo(this,g);break}case ee.TEXT:{Zl(this,g);break}case ee.IN_TABLE_TEXT:{ol(this,g);break}case ee.IN_TEMPLATE:{bs(this,g);break}case ee.AFTER_BODY:case ee.IN_FRAMESET:case ee.AFTER_FRAMESET:case ee.AFTER_AFTER_BODY:case ee.AFTER_AFTER_FRAMESET:{vi(this,g);break}default:}}onWhitespaceCharacter(g){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,g.chars.charCodeAt(0)===bt.LINE_FEED)){if(g.chars.length===1)return;g.chars=g.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(g);return}switch(this.insertionMode){case ee.IN_HEAD:case ee.IN_HEAD_NO_SCRIPT:case ee.AFTER_HEAD:case ee.TEXT:case ee.IN_COLUMN_GROUP:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:case ee.IN_FRAMESET:case ee.AFTER_FRAMESET:{this._insertCharacters(g);break}case ee.IN_BODY:case ee.IN_CAPTION:case ee.IN_CELL:case ee.IN_TEMPLATE:case ee.AFTER_BODY:case ee.AFTER_AFTER_BODY:case ee.AFTER_AFTER_FRAMESET:{zs(this,g);break}case ee.IN_TABLE:case ee.IN_TABLE_BODY:case ee.IN_ROW:{Ci(this,g);break}case ee.IN_TABLE_TEXT:{$l(this,g);break}default:}}}function Ma(h,g){let B=h.activeFormattingElements.getElementEntryInScopeWithTagName(g.tagName);return B?h.openElements.contains(B.element)?h.openElements.hasInScope(g.tagID)||(B=null):(h.activeFormattingElements.removeEntry(B),B=null):ao(h,g),B}function As(h,g){let B=null,Lt=h.openElements.stackTop;for(;Lt>=0;Lt--){const Se=h.openElements.items[Lt];if(Se===g.element)break;h._isSpecialElement(Se,h.openElements.tagIDs[Lt])&&(B=Se)}return B||(h.openElements.shortenToLength(Math.max(Lt,0)),h.activeFormattingElements.removeEntry(g)),B}function ii(h,g,B){let Lt=g,Se=h.openElements.getCommonAncestor(g);for(let fn=0,Fn=Se;Fn!==B;fn++,Fn=Se){Se=h.openElements.getCommonAncestor(Fn);const zi=h.activeFormattingElements.getElementEntry(Fn),vr=zi&&fn>=Sr;!zi||vr?(vr&&h.activeFormattingElements.removeEntry(zi),h.openElements.remove(Fn)):(Fn=po(h,zi),Lt===g&&(h.activeFormattingElements.bookmark=zi),h.treeAdapter.detachNode(Lt),h.treeAdapter.appendChild(Fn,Lt),Lt=Fn)}return Lt}function po(h,g){const B=h.treeAdapter.getNamespaceURI(g.element),Lt=h.treeAdapter.createElement(g.token.tagName,B,g.token.attrs);return h.openElements.replace(g.element,Lt),g.element=Lt,Lt}function go(h,g,B){const Lt=h.treeAdapter.getTagName(g),Se=En(Lt);if(h._isElementCausesFosterParenting(Se))h._fosterParentElement(B);else{const fn=h.treeAdapter.getNamespaceURI(g);Se===R.TEMPLATE&&fn===Ut.HTML&&(g=h.treeAdapter.getTemplateContent(g)),h.treeAdapter.appendChild(g,B)}}function Vo(h,g,B){const Lt=h.treeAdapter.getNamespaceURI(B.element),{token:Se}=B,fn=h.treeAdapter.createElement(Se.tagName,Lt,Se.attrs);h._adoptNodes(g,fn),h.treeAdapter.appendChild(g,fn),h.activeFormattingElements.insertElementAfterBookmark(fn,Se),h.activeFormattingElements.removeEntry(B),h.openElements.remove(B.element),h.openElements.insertAfter(g,fn,Se.tagID)}function mo(h,g){for(let B=0;B<er;B++){const Lt=Ma(h,g);if(!Lt)break;const Se=As(h,Lt);if(!Se)break;h.activeFormattingElements.bookmark=Lt;const fn=ii(h,Se,Lt.element),Fn=h.openElements.getCommonAncestor(Lt.element);h.treeAdapter.detachNode(fn),Fn&&go(h,Fn,fn),Vo(h,Se,Lt)}}function Co(h,g){h._appendCommentNode(g,h.openElements.currentTmplContentOrNode)}function vn(h,g){h._appendCommentNode(g,h.openElements.items[0])}function qn(h,g){h._appendCommentNode(g,h.document)}function vi(h,g){if(h.stopped=!0,g.location){const B=h.fragmentContext?0:2;for(let Lt=h.openElements.stackTop;Lt>=B;Lt--)h._setEndLocation(h.openElements.items[Lt],g);if(!h.fragmentContext&&h.openElements.stackTop>=0){const Lt=h.openElements.items[0],Se=h.treeAdapter.getNodeSourceCodeLocation(Lt);if(Se&&!Se.endTag&&(h._setEndLocation(Lt,g),h.openElements.stackTop>=1)){const fn=h.openElements.items[1],Fn=h.treeAdapter.getNodeSourceCodeLocation(fn);Fn&&!Fn.endTag&&h._setEndLocation(fn,g)}}}}function Gi(h,g){h._setDocumentType(g);const B=g.forceQuirks?kn.QUIRKS:si(g);ci(g)||h._err(g,we.nonConformingDoctype),h.treeAdapter.setDocumentMode(h.document,B),h.insertionMode=ee.BEFORE_HTML}function Yi(h,g){h._err(g,we.missingDoctype,!0),h.treeAdapter.setDocumentMode(h.document,kn.QUIRKS),h.insertionMode=ee.BEFORE_HTML,h._processToken(g)}function Vr(h,g){g.tagID===R.HTML?(h._insertElement(g,Ut.HTML),h.insertionMode=ee.BEFORE_HEAD):Jo(h,g)}function ei(h,g){const B=g.tagID;(B===R.HTML||B===R.HEAD||B===R.BODY||B===R.BR)&&Jo(h,g)}function Jo(h,g){h._insertFakeRootElement(),h.insertionMode=ee.BEFORE_HEAD,h._processToken(g)}function So(h,g){switch(g.tagID){case R.HTML:{Wr(h,g);break}case R.HEAD:{h._insertElement(g,Ut.HTML),h.headElement=h.openElements.current,h.insertionMode=ee.IN_HEAD;break}default:tr(h,g)}}function xo(h,g){const B=g.tagID;B===R.HEAD||B===R.BODY||B===R.HTML||B===R.BR?tr(h,g):h._err(g,we.endTagWithoutMatchingOpenElement)}function tr(h,g){h._insertFakeElement(te.HEAD,R.HEAD),h.headElement=h.openElements.current,h.insertionMode=ee.IN_HEAD,h._processToken(g)}function $r(h,g){switch(g.tagID){case R.HTML:{Wr(h,g);break}case R.BASE:case R.BASEFONT:case R.BGSOUND:case R.LINK:case R.META:{h._appendElement(g,Ut.HTML),g.ackSelfClosing=!0;break}case R.TITLE:{h._switchToTextParsing(g,ui.RCDATA);break}case R.NOSCRIPT:{h.options.scriptingEnabled?h._switchToTextParsing(g,ui.RAWTEXT):(h._insertElement(g,Ut.HTML),h.insertionMode=ee.IN_HEAD_NO_SCRIPT);break}case R.NOFRAMES:case R.STYLE:{h._switchToTextParsing(g,ui.RAWTEXT);break}case R.SCRIPT:{h._switchToTextParsing(g,ui.SCRIPT_DATA);break}case R.TEMPLATE:{h._insertTemplate(g),h.activeFormattingElements.insertMarker(),h.framesetOk=!1,h.insertionMode=ee.IN_TEMPLATE,h.tmplInsertionModeStack.unshift(ee.IN_TEMPLATE);break}case R.HEAD:{h._err(g,we.misplacedStartTagForHeadElement);break}default:hs(h,g)}}function xs(h,g){switch(g.tagID){case R.HEAD:{h.openElements.pop(),h.insertionMode=ee.AFTER_HEAD;break}case R.BODY:case R.BR:case R.HTML:{hs(h,g);break}case R.TEMPLATE:{eo(h,g);break}default:h._err(g,we.endTagWithoutMatchingOpenElement)}}function eo(h,g){h.openElements.tmplCount>0?(h.openElements.generateImpliedEndTagsThoroughly(),h.openElements.currentTagId!==R.TEMPLATE&&h._err(g,we.closingOfElementWithOpenChildElements),h.openElements.popUntilTagNamePopped(R.TEMPLATE),h.activeFormattingElements.clearToLastMarker(),h.tmplInsertionModeStack.shift(),h._resetInsertionMode()):h._err(g,we.endTagWithoutMatchingOpenElement)}function hs(h,g){h.openElements.pop(),h.insertionMode=ee.AFTER_HEAD,h._processToken(g)}function Us(h,g){switch(g.tagID){case R.HTML:{Wr(h,g);break}case R.BASEFONT:case R.BGSOUND:case R.HEAD:case R.LINK:case R.META:case R.NOFRAMES:case R.STYLE:{$r(h,g);break}case R.NOSCRIPT:{h._err(g,we.nestedNoscriptInHead);break}default:Ro(h,g)}}function Is(h,g){switch(g.tagID){case R.NOSCRIPT:{h.openElements.pop(),h.insertionMode=ee.IN_HEAD;break}case R.BR:{Ro(h,g);break}default:h._err(g,we.endTagWithoutMatchingOpenElement)}}function Ro(h,g){const B=g.type===Bn.EOF?we.openElementsLeftAfterEof:we.disallowedContentInNoscriptInHead;h._err(g,B),h.openElements.pop(),h.insertionMode=ee.IN_HEAD,h._processToken(g)}function Oa(h,g){switch(g.tagID){case R.HTML:{Wr(h,g);break}case R.BODY:{h._insertElement(g,Ut.HTML),h.framesetOk=!1,h.insertionMode=ee.IN_BODY;break}case R.FRAMESET:{h._insertElement(g,Ut.HTML),h.insertionMode=ee.IN_FRAMESET;break}case R.BASE:case R.BASEFONT:case R.BGSOUND:case R.LINK:case R.META:case R.NOFRAMES:case R.SCRIPT:case R.STYLE:case R.TEMPLATE:case R.TITLE:{h._err(g,we.abandonedHeadElementChild),h.openElements.push(h.headElement,R.HEAD),$r(h,g),h.openElements.remove(h.headElement);break}case R.HEAD:{h._err(g,we.misplacedStartTagForHeadElement);break}default:Hs(h,g)}}function Wl(h,g){switch(g.tagID){case R.BODY:case R.HTML:case R.BR:{Hs(h,g);break}case R.TEMPLATE:{eo(h,g);break}default:h._err(g,we.endTagWithoutMatchingOpenElement)}}function Hs(h,g){h._insertFakeElement(te.BODY,R.BODY),h.insertionMode=ee.IN_BODY,na(h,g)}function na(h,g){switch(g.type){case Bn.CHARACTER:{nl(h,g);break}case Bn.WHITESPACE_CHARACTER:{zs(h,g);break}case Bn.COMMENT:{Co(h,g);break}case Bn.START_TAG:{Wr(h,g);break}case Bn.END_TAG:{ho(h,g);break}case Bn.EOF:{wo(h,g);break}default:}}function zs(h,g){h._reconstructActiveFormattingElements(),h._insertCharacters(g)}function nl(h,g){h._reconstructActiveFormattingElements(),h._insertCharacters(g),h.framesetOk=!1}function cu(h,g){h.openElements.tmplCount===0&&h.treeAdapter.adoptAttributes(h.openElements.items[0],g.attrs)}function hu(h,g){const B=h.openElements.tryPeekProperlyNestedBodyElement();B&&h.openElements.tmplCount===0&&(h.framesetOk=!1,h.treeAdapter.adoptAttributes(B,g.attrs))}function _o(h,g){const B=h.openElements.tryPeekProperlyNestedBodyElement();h.framesetOk&&B&&(h.treeAdapter.detachNode(B),h.openElements.popAllUpToHtmlElement(),h._insertElement(g,Ut.HTML),h.insertionMode=ee.IN_FRAMESET)}function Yl(h,g){h.openElements.hasInButtonScope(R.P)&&h._closePElement(),h._insertElement(g,Ut.HTML)}function du(h,g){h.openElements.hasInButtonScope(R.P)&&h._closePElement(),h.openElements.currentTagId!==void 0&&Wn.has(h.openElements.currentTagId)&&h.openElements.pop(),h._insertElement(g,Ut.HTML)}function ml(h,g){h.openElements.hasInButtonScope(R.P)&&h._closePElement(),h._insertElement(g,Ut.HTML),h.skipNextNewLine=!0,h.framesetOk=!1}function Ml(h,g){const B=h.openElements.tmplCount>0;(!h.formElement||B)&&(h.openElements.hasInButtonScope(R.P)&&h._closePElement(),h._insertElement(g,Ut.HTML),B||(h.formElement=h.openElements.current))}function ds(h,g){h.framesetOk=!1;const B=g.tagID;for(let Lt=h.openElements.stackTop;Lt>=0;Lt--){const Se=h.openElements.tagIDs[Lt];if(B===R.LI&&Se===R.LI||(B===R.DD||B===R.DT)&&(Se===R.DD||Se===R.DT)){h.openElements.generateImpliedEndTagsWithExclusion(Se),h.openElements.popUntilTagNamePopped(Se);break}if(Se!==R.ADDRESS&&Se!==R.DIV&&Se!==R.P&&h._isSpecialElement(h.openElements.items[Lt],Se))break}h.openElements.hasInButtonScope(R.P)&&h._closePElement(),h._insertElement(g,Ut.HTML)}function Cs(h,g){h.openElements.hasInButtonScope(R.P)&&h._closePElement(),h._insertElement(g,Ut.HTML),h.tokenizer.state=ui.PLAINTEXT}function Zo(h,g){h.openElements.hasInScope(R.BUTTON)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(R.BUTTON)),h._reconstructActiveFormattingElements(),h._insertElement(g,Ut.HTML),h.framesetOk=!1}function as(h,g){const B=h.activeFormattingElements.getElementEntryInScopeWithTagName(te.A);B&&(mo(h,g),h.openElements.remove(B.element),h.activeFormattingElements.removeEntry(B)),h._reconstructActiveFormattingElements(),h._insertElement(g,Ut.HTML),h.activeFormattingElements.pushElement(h.openElements.current,g)}function vl(h,g){h._reconstructActiveFormattingElements(),h._insertElement(g,Ut.HTML),h.activeFormattingElements.pushElement(h.openElements.current,g)}function Ls(h,g){h._reconstructActiveFormattingElements(),h.openElements.hasInScope(R.NOBR)&&(mo(h,g),h._reconstructActiveFormattingElements()),h._insertElement(g,Ut.HTML),h.activeFormattingElements.pushElement(h.openElements.current,g)}function io(h,g){h._reconstructActiveFormattingElements(),h._insertElement(g,Ut.HTML),h.activeFormattingElements.insertMarker(),h.framesetOk=!1}function Xr(h,g){h.treeAdapter.getDocumentMode(h.document)!==kn.QUIRKS&&h.openElements.hasInButtonScope(R.P)&&h._closePElement(),h._insertElement(g,Ut.HTML),h.framesetOk=!1,h.insertionMode=ee.IN_TABLE}function Ar(h,g){h._reconstructActiveFormattingElements(),h._appendElement(g,Ut.HTML),h.framesetOk=!1,g.ackSelfClosing=!0}function Wo(h){const g=Kn(h,Ye.TYPE);return g!=null&&g.toLowerCase()===Mi}function jn(h,g){h._reconstructActiveFormattingElements(),h._appendElement(g,Ut.HTML),Wo(g)||(h.framesetOk=!1),g.ackSelfClosing=!0}function qo(h,g){h._appendElement(g,Ut.HTML),g.ackSelfClosing=!0}function It(h,g){h.openElements.hasInButtonScope(R.P)&&h._closePElement(),h._appendElement(g,Ut.HTML),h.framesetOk=!1,g.ackSelfClosing=!0}function Oe(h,g){g.tagName=te.IMG,g.tagID=R.IMG,Ar(h,g)}function xa(h,g){h._insertElement(g,Ut.HTML),h.skipNextNewLine=!0,h.tokenizer.state=ui.RCDATA,h.originalInsertionMode=h.insertionMode,h.framesetOk=!1,h.insertionMode=ee.TEXT}function il(h,g){h.openElements.hasInButtonScope(R.P)&&h._closePElement(),h._reconstructActiveFormattingElements(),h.framesetOk=!1,h._switchToTextParsing(g,ui.RAWTEXT)}function Fo(h,g){h.framesetOk=!1,h._switchToTextParsing(g,ui.RAWTEXT)}function ts(h,g){h._switchToTextParsing(g,ui.RAWTEXT)}function ia(h,g){h._reconstructActiveFormattingElements(),h._insertElement(g,Ut.HTML),h.framesetOk=!1,h.insertionMode=h.insertionMode===ee.IN_TABLE||h.insertionMode===ee.IN_CAPTION||h.insertionMode===ee.IN_TABLE_BODY||h.insertionMode===ee.IN_ROW||h.insertionMode===ee.IN_CELL?ee.IN_SELECT_IN_TABLE:ee.IN_SELECT}function ba(h,g){h.openElements.currentTagId===R.OPTION&&h.openElements.pop(),h._reconstructActiveFormattingElements(),h._insertElement(g,Ut.HTML)}function Kl(h,g){h.openElements.hasInScope(R.RUBY)&&h.openElements.generateImpliedEndTags(),h._insertElement(g,Ut.HTML)}function To(h,g){h.openElements.hasInScope(R.RUBY)&&h.openElements.generateImpliedEndTagsWithExclusion(R.RTC),h._insertElement(g,Ut.HTML)}function Oi(h,g){h._reconstructActiveFormattingElements(),Er(g),Zr(g),g.selfClosing?h._appendElement(g,Ut.MATHML):h._insertElement(g,Ut.MATHML),g.ackSelfClosing=!0}function fs(h,g){h._reconstructActiveFormattingElements(),Or(g),Zr(g),g.selfClosing?h._appendElement(g,Ut.SVG):h._insertElement(g,Ut.SVG),g.ackSelfClosing=!0}function _s(h,g){h._reconstructActiveFormattingElements(),h._insertElement(g,Ut.HTML)}function Wr(h,g){switch(g.tagID){case R.I:case R.S:case R.B:case R.U:case R.EM:case R.TT:case R.BIG:case R.CODE:case R.FONT:case R.SMALL:case R.STRIKE:case R.STRONG:{vl(h,g);break}case R.A:{as(h,g);break}case R.H1:case R.H2:case R.H3:case R.H4:case R.H5:case R.H6:{du(h,g);break}case R.P:case R.DL:case R.OL:case R.UL:case R.DIV:case R.DIR:case R.NAV:case R.MAIN:case R.MENU:case R.ASIDE:case R.CENTER:case R.FIGURE:case R.FOOTER:case R.HEADER:case R.HGROUP:case R.DIALOG:case R.DETAILS:case R.ADDRESS:case R.ARTICLE:case R.SEARCH:case R.SECTION:case R.SUMMARY:case R.FIELDSET:case R.BLOCKQUOTE:case R.FIGCAPTION:{Yl(h,g);break}case R.LI:case R.DD:case R.DT:{ds(h,g);break}case R.BR:case R.IMG:case R.WBR:case R.AREA:case R.EMBED:case R.KEYGEN:{Ar(h,g);break}case R.HR:{It(h,g);break}case R.RB:case R.RTC:{Kl(h,g);break}case R.RT:case R.RP:{To(h,g);break}case R.PRE:case R.LISTING:{ml(h,g);break}case R.XMP:{il(h,g);break}case R.SVG:{fs(h,g);break}case R.HTML:{cu(h,g);break}case R.BASE:case R.LINK:case R.META:case R.STYLE:case R.TITLE:case R.SCRIPT:case R.BGSOUND:case R.BASEFONT:case R.TEMPLATE:{$r(h,g);break}case R.BODY:{hu(h,g);break}case R.FORM:{Ml(h,g);break}case R.NOBR:{Ls(h,g);break}case R.MATH:{Oi(h,g);break}case R.TABLE:{Xr(h,g);break}case R.INPUT:{jn(h,g);break}case R.PARAM:case R.TRACK:case R.SOURCE:{qo(h,g);break}case R.IMAGE:{Oe(h,g);break}case R.BUTTON:{Zo(h,g);break}case R.APPLET:case R.OBJECT:case R.MARQUEE:{io(h,g);break}case R.IFRAME:{Fo(h,g);break}case R.SELECT:{ia(h,g);break}case R.OPTION:case R.OPTGROUP:{ba(h,g);break}case R.NOEMBED:case R.NOFRAMES:{ts(h,g);break}case R.FRAMESET:{_o(h,g);break}case R.TEXTAREA:{xa(h,g);break}case R.NOSCRIPT:{h.options.scriptingEnabled?ts(h,g):_s(h,g);break}case R.PLAINTEXT:{Cs(h,g);break}case R.COL:case R.TH:case R.TD:case R.TR:case R.HEAD:case R.FRAME:case R.TBODY:case R.TFOOT:case R.THEAD:case R.CAPTION:case R.COLGROUP:break;default:_s(h,g)}}function gr(h,g){if(h.openElements.hasInScope(R.BODY)&&(h.insertionMode=ee.AFTER_BODY,h.options.sourceCodeLocationInfo)){const B=h.openElements.tryPeekProperlyNestedBodyElement();B&&h._setEndLocation(B,g)}}function ko(h,g){h.openElements.hasInScope(R.BODY)&&(h.insertionMode=ee.AFTER_BODY,ks(h,g))}function js(h,g){const B=g.tagID;h.openElements.hasInScope(B)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(B))}function fo(h){const g=h.openElements.tmplCount>0,{formElement:B}=h;g||(h.formElement=null),(B||g)&&h.openElements.hasInScope(R.FORM)&&(h.openElements.generateImpliedEndTags(),g?h.openElements.popUntilTagNamePopped(R.FORM):B&&h.openElements.remove(B))}function Zs(h){h.openElements.hasInButtonScope(R.P)||h._insertFakeElement(te.P,R.P),h._closePElement()}function es(h){h.openElements.hasInListItemScope(R.LI)&&(h.openElements.generateImpliedEndTagsWithExclusion(R.LI),h.openElements.popUntilTagNamePopped(R.LI))}function yl(h,g){const B=g.tagID;h.openElements.hasInScope(B)&&(h.openElements.generateImpliedEndTagsWithExclusion(B),h.openElements.popUntilTagNamePopped(B))}function Qr(h){h.openElements.hasNumberedHeaderInScope()&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilNumberedHeaderPopped())}function ps(h,g){const B=g.tagID;h.openElements.hasInScope(B)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(B),h.activeFormattingElements.clearToLastMarker())}function _r(h){h._reconstructActiveFormattingElements(),h._insertFakeElement(te.BR,R.BR),h.openElements.pop(),h.framesetOk=!1}function ao(h,g){const B=g.tagName,Lt=g.tagID;for(let Se=h.openElements.stackTop;Se>0;Se--){const fn=h.openElements.items[Se],Fn=h.openElements.tagIDs[Se];if(Lt===Fn&&(Lt!==R.UNKNOWN||h.treeAdapter.getTagName(fn)===B)){h.openElements.generateImpliedEndTagsWithExclusion(Lt),h.openElements.stackTop>=Se&&h.openElements.shortenToLength(Se);break}if(h._isSpecialElement(fn,Fn))break}}function ho(h,g){switch(g.tagID){case R.A:case R.B:case R.I:case R.S:case R.U:case R.EM:case R.TT:case R.BIG:case R.CODE:case R.FONT:case R.NOBR:case R.SMALL:case R.STRIKE:case R.STRONG:{mo(h,g);break}case R.P:{Zs(h);break}case R.DL:case R.UL:case R.OL:case R.DIR:case R.DIV:case R.NAV:case R.PRE:case R.MAIN:case R.MENU:case R.ASIDE:case R.BUTTON:case R.CENTER:case R.FIGURE:case R.FOOTER:case R.HEADER:case R.HGROUP:case R.DIALOG:case R.ADDRESS:case R.ARTICLE:case R.DETAILS:case R.SEARCH:case R.SECTION:case R.SUMMARY:case R.LISTING:case R.FIELDSET:case R.BLOCKQUOTE:case R.FIGCAPTION:{js(h,g);break}case R.LI:{es(h);break}case R.DD:case R.DT:{yl(h,g);break}case R.H1:case R.H2:case R.H3:case R.H4:case R.H5:case R.H6:{Qr(h);break}case R.BR:{_r(h);break}case R.BODY:{gr(h,g);break}case R.HTML:{ko(h,g);break}case R.FORM:{fo(h);break}case R.APPLET:case R.OBJECT:case R.MARQUEE:{ps(h,g);break}case R.TEMPLATE:{eo(h,g);break}default:ao(h,g)}}function wo(h,g){h.tmplInsertionModeStack.length>0?bs(h,g):vi(h,g)}function Tr(h,g){var B;g.tagID===R.SCRIPT&&((B=h.scriptHandler)===null||B===void 0||B.call(h,h.openElements.current)),h.openElements.pop(),h.insertionMode=h.originalInsertionMode}function Zl(h,g){h._err(g,we.eofInElementThatCanContainOnlyText),h.openElements.pop(),h.insertionMode=h.originalInsertionMode,h.onEof(g)}function Ci(h,g){if(h.openElements.currentTagId!==void 0&&Gr.has(h.openElements.currentTagId))switch(h.pendingCharacterTokens.length=0,h.hasNonWhitespacePendingCharacterToken=!1,h.originalInsertionMode=h.insertionMode,h.insertionMode=ee.IN_TABLE_TEXT,g.type){case Bn.CHARACTER:{_a(h,g);break}case Bn.WHITESPACE_CHARACTER:{$l(h,g);break}}else Rs(h,g)}function nc(h,g){h.openElements.clearBackToTableContext(),h.activeFormattingElements.insertMarker(),h._insertElement(g,Ut.HTML),h.insertionMode=ee.IN_CAPTION}function Dr(h,g){h.openElements.clearBackToTableContext(),h._insertElement(g,Ut.HTML),h.insertionMode=ee.IN_COLUMN_GROUP}function _u(h,g){h.openElements.clearBackToTableContext(),h._insertFakeElement(te.COLGROUP,R.COLGROUP),h.insertionMode=ee.IN_COLUMN_GROUP,No(h,g)}function Ol(h,g){h.openElements.clearBackToTableContext(),h._insertElement(g,Ut.HTML),h.insertionMode=ee.IN_TABLE_BODY}function rl(h,g){h.openElements.clearBackToTableContext(),h._insertFakeElement(te.TBODY,R.TBODY),h.insertionMode=ee.IN_TABLE_BODY,Ea(h,g)}function Fu(h,g){h.openElements.hasInTableScope(R.TABLE)&&(h.openElements.popUntilTagNamePopped(R.TABLE),h._resetInsertionMode(),h._processStartTag(g))}function ku(h,g){Wo(g)?h._appendElement(g,Ut.HTML):Rs(h,g),g.ackSelfClosing=!0}function Da(h,g){!h.formElement&&h.openElements.tmplCount===0&&(h._insertElement(g,Ut.HTML),h.formElement=h.openElements.current,h.openElements.pop())}function Pa(h,g){switch(g.tagID){case R.TD:case R.TH:case R.TR:{rl(h,g);break}case R.STYLE:case R.SCRIPT:case R.TEMPLATE:{$r(h,g);break}case R.COL:{_u(h,g);break}case R.FORM:{Da(h,g);break}case R.TABLE:{Fu(h,g);break}case R.TBODY:case R.TFOOT:case R.THEAD:{Ol(h,g);break}case R.INPUT:{ku(h,g);break}case R.CAPTION:{nc(h,g);break}case R.COLGROUP:{Dr(h,g);break}default:Rs(h,g)}}function Fr(h,g){switch(g.tagID){case R.TABLE:{h.openElements.hasInTableScope(R.TABLE)&&(h.openElements.popUntilTagNamePopped(R.TABLE),h._resetInsertionMode());break}case R.TEMPLATE:{eo(h,g);break}case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:case R.TBODY:case R.TD:case R.TFOOT:case R.TH:case R.THEAD:case R.TR:break;default:Rs(h,g)}}function Rs(h,g){const B=h.fosterParentingEnabled;h.fosterParentingEnabled=!0,na(h,g),h.fosterParentingEnabled=B}function $l(h,g){h.pendingCharacterTokens.push(g)}function _a(h,g){h.pendingCharacterTokens.push(g),h.hasNonWhitespacePendingCharacterToken=!0}function ol(h,g){let B=0;if(h.hasNonWhitespacePendingCharacterToken)for(;B<h.pendingCharacterTokens.length;B++)Rs(h,h.pendingCharacterTokens[B]);else for(;B<h.pendingCharacterTokens.length;B++)h._insertCharacters(h.pendingCharacterTokens[B]);h.insertionMode=h.originalInsertionMode,h._processToken(g)}const Va=new Set([R.CAPTION,R.COL,R.COLGROUP,R.TBODY,R.TD,R.TFOOT,R.TH,R.THEAD,R.TR]);function wr(h,g){const B=g.tagID;Va.has(B)?h.openElements.hasInTableScope(R.CAPTION)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(R.CAPTION),h.activeFormattingElements.clearToLastMarker(),h.insertionMode=ee.IN_TABLE,Pa(h,g)):Wr(h,g)}function Jr(h,g){const B=g.tagID;switch(B){case R.CAPTION:case R.TABLE:{h.openElements.hasInTableScope(R.CAPTION)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(R.CAPTION),h.activeFormattingElements.clearToLastMarker(),h.insertionMode=ee.IN_TABLE,B===R.TABLE&&Fr(h,g));break}case R.BODY:case R.COL:case R.COLGROUP:case R.HTML:case R.TBODY:case R.TD:case R.TFOOT:case R.TH:case R.THEAD:case R.TR:break;default:ho(h,g)}}function No(h,g){switch(g.tagID){case R.HTML:{Wr(h,g);break}case R.COL:{h._appendElement(g,Ut.HTML),g.ackSelfClosing=!0;break}case R.TEMPLATE:{$r(h,g);break}default:ns(h,g)}}function gs(h,g){switch(g.tagID){case R.COLGROUP:{h.openElements.currentTagId===R.COLGROUP&&(h.openElements.pop(),h.insertionMode=ee.IN_TABLE);break}case R.TEMPLATE:{eo(h,g);break}case R.COL:break;default:ns(h,g)}}function ns(h,g){h.openElements.currentTagId===R.COLGROUP&&(h.openElements.pop(),h.insertionMode=ee.IN_TABLE,h._processToken(g))}function Ea(h,g){switch(g.tagID){case R.TR:{h.openElements.clearBackToTableBodyContext(),h._insertElement(g,Ut.HTML),h.insertionMode=ee.IN_ROW;break}case R.TH:case R.TD:{h.openElements.clearBackToTableBodyContext(),h._insertFakeElement(te.TR,R.TR),h.insertionMode=ee.IN_ROW,Ta(h,g);break}case R.CAPTION:case R.COL:case R.COLGROUP:case R.TBODY:case R.TFOOT:case R.THEAD:{h.openElements.hasTableBodyContextInTableScope()&&(h.openElements.clearBackToTableBodyContext(),h.openElements.pop(),h.insertionMode=ee.IN_TABLE,Pa(h,g));break}default:Pa(h,g)}}function Sa(h,g){const B=g.tagID;switch(g.tagID){case R.TBODY:case R.TFOOT:case R.THEAD:{h.openElements.hasInTableScope(B)&&(h.openElements.clearBackToTableBodyContext(),h.openElements.pop(),h.insertionMode=ee.IN_TABLE);break}case R.TABLE:{h.openElements.hasTableBodyContextInTableScope()&&(h.openElements.clearBackToTableBodyContext(),h.openElements.pop(),h.insertionMode=ee.IN_TABLE,Fr(h,g));break}case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:case R.TD:case R.TH:case R.TR:break;default:Fr(h,g)}}function Ta(h,g){switch(g.tagID){case R.TH:case R.TD:{h.openElements.clearBackToTableRowContext(),h._insertElement(g,Ut.HTML),h.insertionMode=ee.IN_CELL,h.activeFormattingElements.insertMarker();break}case R.CAPTION:case R.COL:case R.COLGROUP:case R.TBODY:case R.TFOOT:case R.THEAD:case R.TR:{h.openElements.hasInTableScope(R.TR)&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=ee.IN_TABLE_BODY,Ea(h,g));break}default:Pa(h,g)}}function ra(h,g){switch(g.tagID){case R.TR:{h.openElements.hasInTableScope(R.TR)&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=ee.IN_TABLE_BODY);break}case R.TABLE:{h.openElements.hasInTableScope(R.TR)&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=ee.IN_TABLE_BODY,Sa(h,g));break}case R.TBODY:case R.TFOOT:case R.THEAD:{(h.openElements.hasInTableScope(g.tagID)||h.openElements.hasInTableScope(R.TR))&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=ee.IN_TABLE_BODY,Sa(h,g));break}case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:case R.TD:case R.TH:break;default:Fr(h,g)}}function Wa(h,g){const B=g.tagID;Va.has(B)?(h.openElements.hasInTableScope(R.TD)||h.openElements.hasInTableScope(R.TH))&&(h._closeTableCell(),Ta(h,g)):Wr(h,g)}function vc(h,g){const B=g.tagID;switch(B){case R.TD:case R.TH:{h.openElements.hasInTableScope(B)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(B),h.activeFormattingElements.clearToLastMarker(),h.insertionMode=ee.IN_ROW);break}case R.TABLE:case R.TBODY:case R.TFOOT:case R.THEAD:case R.TR:{h.openElements.hasInTableScope(B)&&(h._closeTableCell(),ra(h,g));break}case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:break;default:ho(h,g)}}function Sh(h,g){switch(g.tagID){case R.HTML:{Wr(h,g);break}case R.OPTION:{h.openElements.currentTagId===R.OPTION&&h.openElements.pop(),h._insertElement(g,Ut.HTML);break}case R.OPTGROUP:{h.openElements.currentTagId===R.OPTION&&h.openElements.pop(),h.openElements.currentTagId===R.OPTGROUP&&h.openElements.pop(),h._insertElement(g,Ut.HTML);break}case R.HR:{h.openElements.currentTagId===R.OPTION&&h.openElements.pop(),h.openElements.currentTagId===R.OPTGROUP&&h.openElements.pop(),h._appendElement(g,Ut.HTML),g.ackSelfClosing=!0;break}case R.INPUT:case R.KEYGEN:case R.TEXTAREA:case R.SELECT:{h.openElements.hasInSelectScope(R.SELECT)&&(h.openElements.popUntilTagNamePopped(R.SELECT),h._resetInsertionMode(),g.tagID!==R.SELECT&&h._processStartTag(g));break}case R.SCRIPT:case R.TEMPLATE:{$r(h,g);break}default:}}function Th(h,g){switch(g.tagID){case R.OPTGROUP:{h.openElements.stackTop>0&&h.openElements.currentTagId===R.OPTION&&h.openElements.tagIDs[h.openElements.stackTop-1]===R.OPTGROUP&&h.openElements.pop(),h.openElements.currentTagId===R.OPTGROUP&&h.openElements.pop();break}case R.OPTION:{h.openElements.currentTagId===R.OPTION&&h.openElements.pop();break}case R.SELECT:{h.openElements.hasInSelectScope(R.SELECT)&&(h.openElements.popUntilTagNamePopped(R.SELECT),h._resetInsertionMode());break}case R.TEMPLATE:{eo(h,g);break}default:}}function wh(h,g){const B=g.tagID;B===R.CAPTION||B===R.TABLE||B===R.TBODY||B===R.TFOOT||B===R.THEAD||B===R.TR||B===R.TD||B===R.TH?(h.openElements.popUntilTagNamePopped(R.SELECT),h._resetInsertionMode(),h._processStartTag(g)):Sh(h,g)}function $o(h,g){const B=g.tagID;B===R.CAPTION||B===R.TABLE||B===R.TBODY||B===R.TFOOT||B===R.THEAD||B===R.TR||B===R.TD||B===R.TH?h.openElements.hasInTableScope(B)&&(h.openElements.popUntilTagNamePopped(R.SELECT),h._resetInsertionMode(),h.onEndTag(g)):Th(h,g)}function Xl(h,g){switch(g.tagID){case R.BASE:case R.BASEFONT:case R.BGSOUND:case R.LINK:case R.META:case R.NOFRAMES:case R.SCRIPT:case R.STYLE:case R.TEMPLATE:case R.TITLE:{$r(h,g);break}case R.CAPTION:case R.COLGROUP:case R.TBODY:case R.TFOOT:case R.THEAD:{h.tmplInsertionModeStack[0]=ee.IN_TABLE,h.insertionMode=ee.IN_TABLE,Pa(h,g);break}case R.COL:{h.tmplInsertionModeStack[0]=ee.IN_COLUMN_GROUP,h.insertionMode=ee.IN_COLUMN_GROUP,No(h,g);break}case R.TR:{h.tmplInsertionModeStack[0]=ee.IN_TABLE_BODY,h.insertionMode=ee.IN_TABLE_BODY,Ea(h,g);break}case R.TD:case R.TH:{h.tmplInsertionModeStack[0]=ee.IN_ROW,h.insertionMode=ee.IN_ROW,Ta(h,g);break}default:h.tmplInsertionModeStack[0]=ee.IN_BODY,h.insertionMode=ee.IN_BODY,Wr(h,g)}}function uo(h,g){g.tagID===R.TEMPLATE&&eo(h,g)}function bs(h,g){h.openElements.tmplCount>0?(h.openElements.popUntilTagNamePopped(R.TEMPLATE),h.activeFormattingElements.clearToLastMarker(),h.tmplInsertionModeStack.shift(),h._resetInsertionMode(),h.onEof(g)):vi(h,g)}function Ms(h,g){g.tagID===R.HTML?Wr(h,g):fu(h,g)}function ks(h,g){var B;if(g.tagID===R.HTML){if(h.fragmentContext||(h.insertionMode=ee.AFTER_AFTER_BODY),h.options.sourceCodeLocationInfo&&h.openElements.tagIDs[0]===R.HTML){h._setEndLocation(h.openElements.items[0],g);const Lt=h.openElements.items[1];Lt&&!(!((B=h.treeAdapter.getNodeSourceCodeLocation(Lt))===null||B===void 0)&&B.endTag)&&h._setEndLocation(Lt,g)}}else fu(h,g)}function fu(h,g){h.insertionMode=ee.IN_BODY,na(h,g)}function Fs(h,g){switch(g.tagID){case R.HTML:{Wr(h,g);break}case R.FRAMESET:{h._insertElement(g,Ut.HTML);break}case R.FRAME:{h._appendElement(g,Ut.HTML),g.ackSelfClosing=!0;break}case R.NOFRAMES:{$r(h,g);break}default:}}function Ql(h,g){g.tagID===R.FRAMESET&&!h.openElements.isRootHtmlElementCurrent()&&(h.openElements.pop(),!h.fragmentContext&&h.openElements.currentTagId!==R.FRAMESET&&(h.insertionMode=ee.AFTER_FRAMESET))}function yc(h,g){switch(g.tagID){case R.HTML:{Wr(h,g);break}case R.NOFRAMES:{$r(h,g);break}default:}}function xc(h,g){g.tagID===R.HTML&&(h.insertionMode=ee.AFTER_AFTER_FRAMESET)}function oa(h,g){g.tagID===R.HTML?Wr(h,g):b(h,g)}function b(h,g){h.insertionMode=ee.IN_BODY,na(h,g)}function M(h,g){switch(g.tagID){case R.HTML:{Wr(h,g);break}case R.NOFRAMES:{$r(h,g);break}default:}}function U(h,g){g.chars=je,h._insertCharacters(g)}function W(h,g){h._insertCharacters(g),h.framesetOk=!1}function dt(h){for(;h.treeAdapter.getNamespaceURI(h.openElements.current)!==Ut.HTML&&h.openElements.currentTagId!==void 0&&!h._isIntegrationPoint(h.openElements.currentTagId,h.openElements.current);)h.openElements.pop()}function mt(h,g){if(Mr(g))dt(h),h._startTagOutsideForeignContent(g);else{const B=h._getAdjustedCurrentElement(),Lt=h.treeAdapter.getNamespaceURI(B);Lt===Ut.MATHML?Er(g):Lt===Ut.SVG&&(Xt(g),Or(g)),Zr(g),g.selfClosing?h._appendElement(g,Lt):h._insertElement(g,Lt),g.ackSelfClosing=!0}}function Ot(h,g){if(g.tagID===R.P||g.tagID===R.BR){dt(h),h._endTagOutsideForeignContent(g);return}for(let B=h.openElements.stackTop;B>0;B--){const Lt=h.openElements.items[B];if(h.treeAdapter.getNamespaceURI(Lt)===Ut.HTML){h._endTagOutsideForeignContent(g);break}const Se=h.treeAdapter.getTagName(Lt);if(Se.toLowerCase()===g.tagName){g.tagName=Se,h.openElements.shortenToLength(B);break}}}const Vt=/["$&'<>\u0080-\uFFFF]/g,be=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Ne=String.prototype.codePointAt==null?(h,g)=>(h.charCodeAt(g)&64512)===55296?(h.charCodeAt(g)-55296)*1024+h.charCodeAt(g+1)-56320+65536:h.charCodeAt(g):(h,g)=>h.codePointAt(g);function ae(h){let g="",B=0,Lt;for(;(Lt=Vt.exec(h))!==null;){const{index:Se}=Lt,fn=h.charCodeAt(Se),Fn=be.get(fn);Fn===void 0?(g+=`${h.substring(B,Se)}&#x${Ne(h,Se).toString(16)};`,B=Vt.lastIndex+=+((fn&64512)===55296)):(g+=h.substring(B,Se)+Fn,B=Se+1)}return g+h.substr(B)}const We=null;function Ue(h,g){return function(Lt){let Se,fn=0,Fn="";for(;Se=h.exec(Lt);)fn!==Se.index&&(Fn+=Lt.substring(fn,Se.index)),Fn+=g.get(Se[0].charCodeAt(0)),fn=Se.index+1;return Fn+Lt.substring(fn)}}const fe=null,Pi=Ue(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),lr=Ue(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),Cr=new Set([te.AREA,te.BASE,te.BASEFONT,te.BGSOUND,te.BR,te.COL,te.EMBED,te.FRAME,te.HR,te.IMG,te.INPUT,te.KEYGEN,te.LINK,te.META,te.PARAM,te.SOURCE,te.TRACK,te.WBR]);function hi(h,g){return g.treeAdapter.isElementNode(h)&&g.treeAdapter.getNamespaceURI(h)===NS.HTML&&Cr.has(g.treeAdapter.getTagName(h))}const Hi={treeAdapter:an,scriptingEnabled:!0};function Qi(h,g){const B=to(to({},Hi),g);return hi(h,B)?"":Io(h,B)}function Ao(h,g){const B=to(to({},Hi),g);return Zn(h,B)}function Io(h,g){let B="";const Lt=g.treeAdapter.isElementNode(h)&&g.treeAdapter.getTagName(h)===$.TEMPLATE&&g.treeAdapter.getNamespaceURI(h)===NS.HTML?g.treeAdapter.getTemplateContent(h):h,Se=g.treeAdapter.getChildNodes(Lt);if(Se)for(const fn of Se)B+=Zn(fn,g);return B}function Zn(h,g){return g.treeAdapter.isElementNode(h)?Mo(h,g):g.treeAdapter.isTextNode(h)?bo(h,g):g.treeAdapter.isCommentNode(h)?Di(h,g):g.treeAdapter.isDocumentTypeNode(h)?sa(h,g):""}function Mo(h,g){const B=g.treeAdapter.getTagName(h);return`<${B}${is(h,g)}>${hi(h,g)?"":`${Io(h,g)}</${B}>`}`}function is(h,{treeAdapter:g}){let B="";for(const Lt of g.getAttrList(h)){if(B+=" ",Lt.namespace)switch(Lt.namespace){case NS.XML:{B+=`xml:${Lt.name}`;break}case NS.XMLNS:{Lt.name!=="xmlns"&&(B+="xmlns:"),B+=Lt.name;break}case NS.XLINK:{B+=`xlink:${Lt.name}`;break}default:B+=`${Lt.prefix}:${Lt.name}`}else B+=Lt.name;B+=`="${escapeAttribute(Lt.value)}"`}return B}function bo(h,g){const{treeAdapter:B}=g,Lt=B.getTextNodeContent(h),Se=B.getParentNode(h),fn=Se&&B.isElementNode(Se)&&B.getTagName(Se);return fn&&B.getNamespaceURI(Se)===NS.HTML&&hasUnescapedText(fn,g.scriptingEnabled)?Lt:escapeText(Lt)}function Di(h,{treeAdapter:g}){return`<!--${g.getCommentNodeContent(h)}-->`}function sa(h,{treeAdapter:g}){return`<!DOCTYPE ${g.getDocumentTypeNodeName(h)}>`}function Uo(h,g){return Parser.parse(h,g)}function br(h,g,B){typeof h=="string"&&(B=g,g=h,h=null);const Lt=Parser.getFragmentParser(h,B);return Lt.tokenizer.write(g,!0),Lt.getFragment()}var mr=p(17970),ro=p(10528);const Xo=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Bs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),$s={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Fa(h,g){const B=bc(h),Lt=at("type",{handlers:{root:aa,element:Ya,text:_e,comment:xl,doctype:Xs,raw:Os},unknown:Qo}),Se={parser:B?new cs($s):cs.getFragmentParser(void 0,$s),handle(zi){Lt(zi,Se)},stitches:!1,options:g||{}};Lt(h,Se),Ka(Se,(0,mr.Pk)());const fn=B?Se.parser.document:Se.parser.getFragment(),Fn=ct(fn,{file:Se.options.file});return Se.stitches&&(0,ro.Vn)(Fn,"comment",function(zi,vr,ln){const oi=zi;if(oi.value.stitch&&ln&&vr!==void 0){const kr=ln.children;return kr[vr]=oi.value.stitch,vr}}),Fn.type==="root"&&Fn.children.length===1&&Fn.children[0].type===h.type?Fn.children[0]:Fn}function Me(h,g){let B=-1;if(h)for(;++B<h.length;)g.handle(h[B])}function aa(h,g){Me(h.children,g)}function Ya(h,g){Dl(h,g),Me(h.children,g),Jl(h,g)}function _e(h,g){g.parser.tokenizer.state>4&&(g.parser.tokenizer.state=0);const B={type:Bn.CHARACTER,chars:h.value,location:al(h)};Ka(g,(0,mr.Pk)(h)),g.parser.currentToken=B,g.parser._processToken(g.parser.currentToken)}function Xs(h,g){const B={type:Bn.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:al(h)};Ka(g,(0,mr.Pk)(h)),g.parser.currentToken=B,g.parser._processToken(g.parser.currentToken)}function sl(h,g){g.stitches=!0;const B=pu(h);if("children"in h&&"children"in B){const Lt=Fa({type:"root",children:h.children},g.options);B.children=Lt.children}xl({type:"comment",value:{stitch:B}},g)}function xl(h,g){const B=h.value,Lt={type:Bn.COMMENT,data:B,location:al(h)};Ka(g,(0,mr.Pk)(h)),g.parser.currentToken=Lt,g.parser._processToken(g.parser.currentToken)}function Os(h,g){if(g.parser.tokenizer.preprocessor.html="",g.parser.tokenizer.preprocessor.pos=-1,g.parser.tokenizer.preprocessor.lastGapPos=-2,g.parser.tokenizer.preprocessor.gapStack=[],g.parser.tokenizer.preprocessor.skipNextNewLine=!1,g.parser.tokenizer.preprocessor.lastChunkWritten=!1,g.parser.tokenizer.preprocessor.endOfChunkHit=!1,g.parser.tokenizer.preprocessor.isEol=!1,Gs(g,(0,mr.Pk)(h)),g.parser.tokenizer.write(g.options.tagfilter?h.value.replace(Xo,"<$1$2"):h.value,!1),g.parser.tokenizer._runParsingLoop(),g.parser.tokenizer.state===72||g.parser.tokenizer.state===78){g.parser.tokenizer.preprocessor.lastChunkWritten=!0;const B=g.parser.tokenizer._consume();g.parser.tokenizer._callState(B)}}function Qo(h,g){const B=h;if(g.options.passThrough&&g.options.passThrough.includes(B.type))sl(B,g);else{let Lt="";throw Bs.has(B.type)&&(Lt=". 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 `"+B.type+"` node"+Lt)}}function Ka(h,g){Gs(h,g);const B=h.parser.tokenizer.currentCharacterToken;B&&B.location&&(B.location.endLine=h.parser.tokenizer.preprocessor.line,B.location.endCol=h.parser.tokenizer.preprocessor.col+1,B.location.endOffset=h.parser.tokenizer.preprocessor.offset+1,h.parser.currentToken=B,h.parser._processToken(h.parser.currentToken)),h.parser.tokenizer.paused=!1,h.parser.tokenizer.inLoop=!1,h.parser.tokenizer.active=!1,h.parser.tokenizer.returnState=ui.DATA,h.parser.tokenizer.charRefCode=-1,h.parser.tokenizer.consumedAfterSnapshot=-1,h.parser.tokenizer.currentLocation=null,h.parser.tokenizer.currentCharacterToken=null,h.parser.tokenizer.currentToken=null,h.parser.tokenizer.currentAttr={name:"",value:""}}function Gs(h,g){if(g&&g.offset!==void 0){const B={startLine:g.line,startCol:g.column,startOffset:g.offset,endLine:-1,endCol:-1,endOffset:-1};h.parser.tokenizer.preprocessor.lineStartPos=-g.column+1,h.parser.tokenizer.preprocessor.droppedBufferSize=g.offset,h.parser.tokenizer.preprocessor.line=g.line,h.parser.tokenizer.currentLocation=B}}function Dl(h,g){const B=h.tagName.toLowerCase();if(g.parser.tokenizer.state===ui.PLAINTEXT)return;Ka(g,(0,mr.Pk)(h));const Lt=g.parser.openElements.current;let Se="namespaceURI"in Lt?Lt.namespaceURI:J.t.html;Se===J.t.html&&B==="svg"&&(Se=J.t.svg);const fn=qt(Md(to({},h),{children:[]}),{space:Se===J.t.svg?"svg":"html"}),Fn={type:Bn.START_TAG,tagName:B,tagID:En(B),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in fn?fn.attrs:[],location:al(h)};g.parser.currentToken=Fn,g.parser._processToken(g.parser.currentToken),g.parser.tokenizer.lastStartTagName=B}function Jl(h,g){const B=h.tagName.toLowerCase();if(!g.parser.tokenizer.inForeignNode&&ze.includes(B)||g.parser.tokenizer.state===ui.PLAINTEXT)return;Ka(g,(0,mr.rb)(h));const Lt={type:Bn.END_TAG,tagName:B,tagID:En(B),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:al(h)};g.parser.currentToken=Lt,g.parser._processToken(g.parser.currentToken),B===g.parser.tokenizer.lastStartTagName&&(g.parser.tokenizer.state===ui.RCDATA||g.parser.tokenizer.state===ui.RAWTEXT||g.parser.tokenizer.state===ui.SCRIPT_DATA)&&(g.parser.tokenizer.state=ui.DATA)}function bc(h){const g=h.type==="root"?h.children[0]:h;return!!(g&&(g.type==="doctype"||g.type==="element"&&g.tagName.toLowerCase()==="html"))}function al(h){const g=(0,mr.Pk)(h)||{line:void 0,column:void 0,offset:void 0},B=(0,mr.rb)(h)||{line:void 0,column:void 0,offset:void 0};return{startLine:g.line,startCol:g.column,startOffset:g.offset,endLine:B.line,endCol:B.column,endOffset:B.offset}}function pu(h){return"children"in h?(0,I.ZP)(Md(to({},h),{children:[]})):(0,I.ZP)(h)}function Yc(h){return function(g,B){return Fa(g,Md(to({},h),{file:B}))}}},10787:function(j,S,p){"use strict";p.d(S,{Z:function(){return Y}});function E(Mt){if(typeof Mt!="string")throw new TypeError("Expected a string");return Mt.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var I=p(2348),D=p(10502);function P(Mt,ct,$t){const Ft=$t||{},_t=(0,D.O)(Ft.ignore||[]),Ct=V(ct);let xt=-1;for(;++xt<Ct.length;)(0,I.S4)(Mt,"text",St);function St(vt,ot){let st=-1,q;for(;++st<ot.length;){const wt=ot[st],Bt=q?q.children:void 0;if(_t(wt,Bt?Bt.indexOf(wt):void 0,q))return;q=wt}if(q)return ft(vt,ot)}function ft(vt,ot){const st=ot[ot.length-1],q=Ct[xt][0],wt=Ct[xt][1];let Bt=0;const Ht=st.children.indexOf(vt);let At=!1,gt=[];q.lastIndex=0;let Pt=q.exec(vt.value);for(;Pt;){const kt=Pt.index,Gt={index:Pt.index,input:Pt.input,stack:[...ot,vt]};let ue=wt(...Pt,Gt);if(typeof ue=="string"&&(ue=ue.length>0?{type:"text",value:ue}:void 0),ue===!1?q.lastIndex=kt+1:(Bt!==kt&>.push({type:"text",value:vt.value.slice(Bt,kt)}),Array.isArray(ue)?gt.push(...ue):ue&>.push(ue),Bt=kt+Pt[0].length,At=!0),!q.global)break;Pt=q.exec(vt.value)}return At?(Bt<vt.value.length&>.push({type:"text",value:vt.value.slice(Bt)}),st.children.splice(Ht,1,...gt)):gt=[vt],Ht+gt.length}}function V(Mt){const ct=[];if(!Array.isArray(Mt))throw new TypeError("Expected find and replace tuple or list of tuples");const $t=!Mt[0]||Array.isArray(Mt[0])?Mt:[Mt];let Ft=-1;for(;++Ft<$t.length;){const _t=$t[Ft];ct.push([C(_t[0]),Z(_t[1])])}return ct}function C(Mt){return typeof Mt=="string"?new RegExp(E(Mt),"g"):Mt}function Z(Mt){return typeof Mt=="function"?Mt:function(){return Mt}}function lt(Mt){P(Mt,[/\r?\n|\r/g,J])}function J(){return{type:"break"}}function Y(){return function(Mt){lt(Mt)}}},30084:function(j,S,p){"use strict";p.d(S,{Z:function(){return Ct}});var E=p(87342);function I(xt,St){const ft=String(xt);let vt=ft.indexOf(St),ot=vt,st=0,q=0;if(typeof St!="string")throw new TypeError("Expected substring");for(;vt!==-1;)vt===ot?++st>q&&(q=st):st=1,ot=vt+St.length,vt=ft.indexOf(St,ot);return q}function D(){return{enter:{mathFlow:xt,mathFlowFenceMeta:St,mathText:st},exit:{mathFlow:ot,mathFlowFence:vt,mathFlowFenceMeta:ft,mathFlowValue:wt,mathText:q,mathTextData:wt}};function xt(Bt){const pt={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[pt]}},Bt)}function St(){this.buffer()}function ft(){const Bt=this.resume(),pt=this.stack[this.stack.length-1];(0,E.ok)(pt.type==="math"),pt.meta=Bt}function vt(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function ot(Bt){const pt=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),Ht=this.stack[this.stack.length-1];(0,E.ok)(Ht.type==="math"),this.exit(Bt),Ht.value=pt;const At=Ht.data.hChildren[0];(0,E.ok)(At.type==="element"),(0,E.ok)(At.tagName==="code"),At.children.push({type:"text",value:pt}),this.data.mathFlowInside=void 0}function st(Bt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},Bt),this.buffer()}function q(Bt){const pt=this.resume(),Ht=this.stack[this.stack.length-1];(0,E.ok)(Ht.type==="inlineMath"),this.exit(Bt),Ht.value=pt,Ht.data.hChildren.push({type:"text",value:pt})}function wt(Bt){this.config.enter.data.call(this,Bt),this.config.exit.data.call(this,Bt)}}function P(xt){let St=(xt||{}).singleDollarTextMath;return St==null&&(St=!0),vt.peek=ot,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:St?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:ft,inlineMath:vt}};function ft(st,q,wt,Bt){const pt=st.value||"",Ht=wt.createTracker(Bt),At="$".repeat(Math.max(I(pt,"$")+1,2)),gt=wt.enter("mathFlow");let Pt=Ht.move(At);if(st.meta){const kt=wt.enter("mathFlowMeta");Pt+=Ht.move(wt.safe(st.meta,to({after:`
|
|
|
`,before:Pt,encode:["$"]},Ht.current()))),kt()}return Pt+=Ht.move(`
|
|
|
`),pt&&(Pt+=Ht.move(pt+`
|
|
|
`)),Pt+=Ht.move(At),gt(),Pt}function vt(st,q,wt){let Bt=st.value||"",pt=1;for(St||pt++;new RegExp("(^|[^$])"+"\\$".repeat(pt)+"([^$]|$)").test(Bt);)pt++;const Ht="$".repeat(pt);/[^ \r\n]/.test(Bt)&&(/^[ \r\n]/.test(Bt)&&/[ \r\n]$/.test(Bt)||/^\$|\$$/.test(Bt))&&(Bt=" "+Bt+" ");let At=-1;for(;++At<wt.unsafe.length;){const gt=wt.unsafe[At];if(!gt.atBreak)continue;const Pt=wt.compilePattern(gt);let kt;for(;kt=Pt.exec(Bt);){let Gt=kt.index;Bt.codePointAt(Gt)===10&&Bt.codePointAt(Gt-1)===13&&Gt--,Bt=Bt.slice(0,Gt)+" "+Bt.slice(kt.index+1)}}return Ht+Bt+Ht}function ot(){return"$"}}var V=p(26735),C=p(80722);const Z={tokenize:J,concrete:!0,name:"mathFlow"},lt={tokenize:Y,partial:!0};function J(xt,St,ft){const vt=this,ot=vt.events[vt.events.length-1],st=ot&&ot[1].type==="linePrefix"?ot[2].sliceSerialize(ot[1],!0).length:0;let q=0;return wt;function wt(re){return xt.enter("mathFlow"),xt.enter("mathFlowFence"),xt.enter("mathFlowFenceSequence"),Bt(re)}function Bt(re){return re===36?(xt.consume(re),q++,Bt):q<2?ft(re):(xt.exit("mathFlowFenceSequence"),(0,V.f)(xt,pt,"whitespace")(re))}function pt(re){return re===null||(0,C.Ch)(re)?At(re):(xt.enter("mathFlowFenceMeta"),xt.enter("chunkString",{contentType:"string"}),Ht(re))}function Ht(re){return re===null||(0,C.Ch)(re)?(xt.exit("chunkString"),xt.exit("mathFlowFenceMeta"),At(re)):re===36?ft(re):(xt.consume(re),Ht)}function At(re){return xt.exit("mathFlowFence"),vt.interrupt?St(re):xt.attempt(lt,gt,ue)(re)}function gt(re){return xt.attempt({tokenize:le,partial:!0},ue,Pt)(re)}function Pt(re){return(st?(0,V.f)(xt,kt,"linePrefix",st+1):kt)(re)}function kt(re){return re===null?ue(re):(0,C.Ch)(re)?xt.attempt(lt,gt,ue)(re):(xt.enter("mathFlowValue"),Gt(re))}function Gt(re){return re===null||(0,C.Ch)(re)?(xt.exit("mathFlowValue"),kt(re)):(xt.consume(re),Gt)}function ue(re){return xt.exit("mathFlow"),St(re)}function le(re,pe,Dt){let rt=0;return(0,V.f)(re,Q,"linePrefix",vt.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Q(oe){return re.enter("mathFlowFence"),re.enter("mathFlowFenceSequence"),ie(oe)}function ie(oe){return oe===36?(rt++,re.consume(oe),ie):rt<q?Dt(oe):(re.exit("mathFlowFenceSequence"),(0,V.f)(re,ce,"whitespace")(oe))}function ce(oe){return oe===null||(0,C.Ch)(oe)?(re.exit("mathFlowFence"),pe(oe)):Dt(oe)}}}function Y(xt,St,ft){const vt=this;return ot;function ot(q){return q===null?St(q):(xt.enter("lineEnding"),xt.consume(q),xt.exit("lineEnding"),st)}function st(q){return vt.parser.lazy[vt.now().line]?ft(q):St(q)}}function Mt(xt){let ft=(xt||{}).singleDollarTextMath;return ft==null&&(ft=!0),{tokenize:vt,resolve:ct,previous:$t,name:"mathText"};function vt(ot,st,q){const wt=this;let Bt=0,pt,Ht;return At;function At(ue){return ot.enter("mathText"),ot.enter("mathTextSequence"),gt(ue)}function gt(ue){return ue===36?(ot.consume(ue),Bt++,gt):Bt<2&&!ft?q(ue):(ot.exit("mathTextSequence"),Pt(ue))}function Pt(ue){return ue===null?q(ue):ue===36?(Ht=ot.enter("mathTextSequence"),pt=0,Gt(ue)):ue===32?(ot.enter("space"),ot.consume(ue),ot.exit("space"),Pt):(0,C.Ch)(ue)?(ot.enter("lineEnding"),ot.consume(ue),ot.exit("lineEnding"),Pt):(ot.enter("mathTextData"),kt(ue))}function kt(ue){return ue===null||ue===32||ue===36||(0,C.Ch)(ue)?(ot.exit("mathTextData"),Pt(ue)):(ot.consume(ue),kt)}function Gt(ue){return ue===36?(ot.consume(ue),pt++,Gt):pt===Bt?(ot.exit("mathTextSequence"),ot.exit("mathText"),st(ue)):(Ht.type="mathTextData",kt(ue))}}}function ct(xt){let St=xt.length-4,ft=3,vt,ot;if((xt[ft][1].type==="lineEnding"||xt[ft][1].type==="space")&&(xt[St][1].type==="lineEnding"||xt[St][1].type==="space")){for(vt=ft;++vt<St;)if(xt[vt][1].type==="mathTextData"){xt[St][1].type="mathTextPadding",xt[ft][1].type="mathTextPadding",ft+=2,St-=2;break}}for(vt=ft-1,St++;++vt<=St;)ot===void 0?vt!==St&&xt[vt][1].type!=="lineEnding"&&(ot=vt):(vt===St||xt[vt][1].type==="lineEnding")&&(xt[ot][1].type="mathTextData",vt!==ot+2&&(xt[ot][1].end=xt[vt-1][1].end,xt.splice(ot+2,vt-ot-2),St-=vt-ot-2,vt=ot+2),ot=void 0);return xt}function $t(xt){return xt!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Ft(xt){return{flow:{36:Z},text:{36:Mt(xt)}}}const _t={};function Ct(xt){const St=this,ft=xt||_t,vt=St.data(),ot=vt.micromarkExtensions||(vt.micromarkExtensions=[]),st=vt.fromMarkdownExtensions||(vt.fromMarkdownExtensions=[]),q=vt.toMarkdownExtensions||(vt.toMarkdownExtensions=[]);ot.push(Ft(ft)),st.push(D()),q.push(P(ft))}},16722:function(j,S,p){"use strict";p.d(S,{Z:function(){return lt}});const E=J=>typeof J=="object"&&J!=null&&J.nodeType===1,I=(J,Y)=>(!Y||J!=="hidden")&&J!=="visible"&&J!=="clip",D=(J,Y)=>{if(J.clientHeight<J.scrollHeight||J.clientWidth<J.scrollWidth){const Mt=getComputedStyle(J,null);return I(Mt.overflowY,Y)||I(Mt.overflowX,Y)||(ct=>{const $t=(Ft=>{if(!Ft.ownerDocument||!Ft.ownerDocument.defaultView)return null;try{return Ft.ownerDocument.defaultView.frameElement}catch(_t){return null}})(ct);return!!$t&&($t.clientHeight<ct.scrollHeight||$t.clientWidth<ct.scrollWidth)})(J)}return!1},P=(J,Y,Mt,ct,$t,Ft,_t,Ct)=>Ft<J&&_t>Y||Ft>J&&_t<Y?0:Ft<=J&&Ct<=Mt||_t>=Y&&Ct>=Mt?Ft-J-ct:_t>Y&&Ct<Mt||Ft<J&&Ct>Mt?_t-Y+$t:0,V=J=>{const Y=J.parentElement;return Y==null?J.getRootNode().host||null:Y},C=(J,Y)=>{var Mt,ct,$t,Ft;if(typeof document=="undefined")return[];const{scrollMode:_t,block:Ct,inline:xt,boundary:St,skipOverflowHiddenElements:ft}=Y,vt=typeof St=="function"?St:ce=>ce!==St;if(!E(J))throw new TypeError("Invalid target");const ot=document.scrollingElement||document.documentElement,st=[];let q=J;for(;E(q)&&vt(q);){if(q=V(q),q===ot){st.push(q);break}q!=null&&q===document.body&&D(q)&&!D(document.documentElement)||q!=null&&D(q,ft)&&st.push(q)}const wt=(ct=(Mt=window.visualViewport)==null?void 0:Mt.width)!=null?ct:innerWidth,Bt=(Ft=($t=window.visualViewport)==null?void 0:$t.height)!=null?Ft:innerHeight,{scrollX:pt,scrollY:Ht}=window,{height:At,width:gt,top:Pt,right:kt,bottom:Gt,left:ue}=J.getBoundingClientRect(),{top:le,right:re,bottom:pe,left:Dt}=(ce=>{const oe=window.getComputedStyle(ce);return{top:parseFloat(oe.scrollMarginTop)||0,right:parseFloat(oe.scrollMarginRight)||0,bottom:parseFloat(oe.scrollMarginBottom)||0,left:parseFloat(oe.scrollMarginLeft)||0}})(J);let rt=Ct==="start"||Ct==="nearest"?Pt-le:Ct==="end"?Gt+pe:Pt+At/2-le+pe,Q=xt==="center"?ue+gt/2-Dt+re:xt==="end"?kt+re:ue-Dt;const ie=[];for(let ce=0;ce<st.length;ce++){const oe=st[ce],{height:pn,width:Ze,top:Nn,right:me,bottom:on,left:un}=oe.getBoundingClientRect();if(_t==="if-needed"&&Pt>=0&&ue>=0&&Gt<=Bt&&kt<=wt&&(oe===ot&&!D(oe)||Pt>=Nn&&Gt<=on&&ue>=un&&kt<=me))return ie;const Ln=getComputedStyle(oe),Dn=parseInt(Ln.borderLeftWidth,10),K=parseInt(Ln.borderTopWidth,10),O=parseInt(Ln.borderRightWidth,10),k=parseInt(Ln.borderBottomWidth,10);let H=0,tt=0;const _="offsetWidth"in oe?oe.offsetWidth-oe.clientWidth-Dn-O:0,at="offsetHeight"in oe?oe.offsetHeight-oe.clientHeight-K-k:0,se="offsetWidth"in oe?oe.offsetWidth===0?0:Ze/oe.offsetWidth:0,Ve="offsetHeight"in oe?oe.offsetHeight===0?0:pn/oe.offsetHeight:0;if(ot===oe)H=Ct==="start"?rt:Ct==="end"?rt-Bt:Ct==="nearest"?P(Ht,Ht+Bt,Bt,K,k,Ht+rt,Ht+rt+At,At):rt-Bt/2,tt=xt==="start"?Q:xt==="center"?Q-wt/2:xt==="end"?Q-wt:P(pt,pt+wt,wt,Dn,O,pt+Q,pt+Q+gt,gt),H=Math.max(0,H+Ht),tt=Math.max(0,tt+pt);else{H=Ct==="start"?rt-Nn-K:Ct==="end"?rt-on+k+at:Ct==="nearest"?P(Nn,on,pn,K,k+at,rt,rt+At,At):rt-(Nn+pn/2)+at/2,tt=xt==="start"?Q-un-Dn:xt==="center"?Q-(un+Ze/2)+_/2:xt==="end"?Q-me+O+_:P(un,me,Ze,Dn,O+_,Q,Q+gt,gt);const{scrollLeft:Ke,scrollTop:qt}=oe;H=Ve===0?0:Math.max(0,Math.min(qt+H/Ve,oe.scrollHeight-pn/Ve+at)),tt=se===0?0:Math.max(0,Math.min(Ke+tt/se,oe.scrollWidth-Ze/se+_)),rt+=qt-H,Q+=Ke-tt}ie.push({el:oe,top:H,left:tt})}return ie},Z=J=>J===!1?{block:"end",inline:"nearest"}:(Y=>Y===Object(Y)&&Object.keys(Y).length!==0)(J)?J:{block:"start",inline:"nearest"};function lt(J,Y){if(!J.isConnected||!($t=>{let Ft=$t;for(;Ft&&Ft.parentNode;){if(Ft.parentNode===document)return!0;Ft=Ft.parentNode instanceof ShadowRoot?Ft.parentNode.host:Ft.parentNode}return!1})(J))return;const Mt=($t=>{const Ft=window.getComputedStyle($t);return{top:parseFloat(Ft.scrollMarginTop)||0,right:parseFloat(Ft.scrollMarginRight)||0,bottom:parseFloat(Ft.scrollMarginBottom)||0,left:parseFloat(Ft.scrollMarginLeft)||0}})(J);if(($t=>typeof $t=="object"&&typeof $t.behavior=="function")(Y))return Y.behavior(C(J,Y));const ct=typeof Y=="boolean"||Y==null?void 0:Y.behavior;for(const{el:$t,top:Ft,left:_t}of C(J,Z(Y))){const Ct=Ft-Mt.top+Mt.bottom,xt=_t-Mt.left+Mt.right;$t.scroll({top:Ct,left:xt,behavior:ct})}}},71523:function(j,S,p){"use strict";p.d(S,{P:function(){return I},Q:function(){return E}});function E(D){const P=String(D||"").trim();return P?P.split(/[ \t\n\r\f]+/g):[]}function I(D){return D.join(" ").trim()}},10502:function(j,S,p){"use strict";p.d(S,{O:function(){return I}});const E=function(J,Y,Mt,ct,$t){const Ft=I(Y);if(Mt!=null&&(typeof Mt!="number"||Mt<0||Mt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(ct!=null&&(!E(ct)||!ct.children))throw new Error("Expected parent node");if(ct==null!=(Mt==null))throw new Error("Expected both parent and index");return lt(J)?Ft.call($t,J,Mt,ct):!1},I=function(J){if(J==null)return Z;if(typeof J=="function")return C(J);if(typeof J=="object")return Array.isArray(J)?D(J):P(J);if(typeof J=="string")return V(J);throw new Error("Expected function, string, or object as test")};function D(J){const Y=[];let Mt=-1;for(;++Mt<J.length;)Y[Mt]=I(J[Mt]);return C(ct);function ct(...$t){let Ft=-1;for(;++Ft<Y.length;)if(Y[Ft].apply(this,$t))return!0;return!1}}function P(J){const Y=J;return C(Mt);function Mt(ct){const $t=ct;let Ft;for(Ft in J)if($t[Ft]!==Y[Ft])return!1;return!0}}function V(J){return C(Y);function Y(Mt){return Mt&&Mt.type===J}}function C(J){return Y;function Y(Mt,ct,$t){return!!(lt(Mt)&&J.call(this,Mt,typeof ct=="number"?ct:void 0,$t||void 0))}}function Z(){return!0}function lt(J){return J!==null&&typeof J=="object"&&"type"in J}},17970:function(j,S,p){"use strict";p.d(S,{FK:function(){return P},Pk:function(){return I},rb:function(){return E}});const E=D("end"),I=D("start");function D(V){return C;function C(Z){const lt=Z&&Z.position&&Z.position[V]||{};if(typeof lt.line=="number"&<.line>0&&typeof lt.column=="number"&<.column>0)return{line:lt.line,column:lt.column,offset:typeof lt.offset=="number"&<.offset>-1?lt.offset:void 0}}}function P(V){const C=I(V),Z=E(V);if(C&&Z)return{start:C,end:Z}}},2348:function(j,S,p){"use strict";p.d(S,{AM:function(){return C},S4:function(){return Z}});var E=p(10502);function I(J){return J}const D=[],P=!0,V=!1,C="skip";function Z(J,Y,Mt,ct){let $t;typeof Y=="function"&&typeof Mt!="function"?(ct=Mt,Mt=Y):$t=Y;const Ft=(0,E.O)($t),_t=ct?-1:1;Ct(J,void 0,[])();function Ct(xt,St,ft){const vt=xt&&typeof xt=="object"?xt:{};if(typeof vt.type=="string"){const st=typeof vt.tagName=="string"?vt.tagName:typeof vt.name=="string"?vt.name:void 0;Object.defineProperty(ot,"name",{value:"node ("+(xt.type+(st?"<"+st+">":""))+")"})}return ot;function ot(){let st=D,q,wt,Bt;if((!Y||Ft(xt,St,ft[ft.length-1]||void 0))&&(st=lt(Mt(xt,ft)),st[0]===V))return st;if("children"in xt&&xt.children){const pt=xt;if(pt.children&&st[0]!==C)for(wt=(ct?pt.children.length:-1)+_t,Bt=ft.concat(pt);wt>-1&&wt<pt.children.length;){const Ht=pt.children[wt];if(q=Ct(Ht,wt,Bt)(),q[0]===V)return q;wt=typeof q[1]=="number"?q[1]:wt+_t}}return st}}}function lt(J){return Array.isArray(J)?J:typeof J=="number"?[P,J]:J==null?D:[J]}},10528:function(j,S,p){"use strict";p.d(S,{Vn:function(){return I}});var E=p(2348);function I(D,P,V,C){let Z,lt,J;typeof P=="function"&&typeof V!="function"?(lt=void 0,J=P,Z=V):(lt=P,J=V,Z=C),(0,E.S4)(D,lt,Y,Z);function Y(Mt,ct){const $t=ct[ct.length-1],Ft=$t?$t.children.indexOf(Mt):void 0;return J(Mt,Ft,$t)}}},43309:function(j,S,p){"use strict";p.d(S,{t:function(){return E}});const E={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(j){"use strict";j.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(j){"use strict";j.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"}')}}]);
|
|
|
}()); |