UNPKG

@finos/legend-application-pure-ide-deployment

Version:
2 lines 7.17 MB
/*! For license information please see vendor.53ba62a0.js.LICENSE.txt */ (globalThis.webpackChunk_finos_legend_application_pure_ide_deployment=globalThis.webpackChunk_finos_legend_application_pure_ide_deployment||[]).push([[121],{64:(e,t,i)=>{"use strict";i.d(t,{GP:()=>D});var n=i(16659),r=i(20627),s=i(88637),o=i(5886),a=i(82278),l=i(75390);var c=i(28139),h=i(18494);function u(e,t){const i=(0,h.a)(e,t?.in);return function(e,t,i){const[n,r]=(0,o.x)(i?.in,e,t),c=(0,l.o)(n),h=(0,l.o)(r),u=+c-(0,s.G)(c),d=+h-(0,s.G)(h);return Math.round((u-d)/a.w4)}(i,(0,c.D)(i))+1}var d=i(57941),g=i(21919),p=i(87325),f=i(15794);function m(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const v={y(e,t){const i=e.getFullYear(),n=i>0?i:1-i;return m("yy"===t?n%100:n,t.length)},M(e,t){const i=e.getMonth();return"M"===t?String(i+1):m(i+1,2)},d:(e,t)=>m(e.getDate(),t.length),a(e,t){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(e,t)=>m(e.getHours()%12||12,t.length),H:(e,t)=>m(e.getHours(),t.length),m:(e,t)=>m(e.getMinutes(),t.length),s:(e,t)=>m(e.getSeconds(),t.length),S(e,t){const i=t.length,n=e.getMilliseconds();return m(Math.trunc(n*Math.pow(10,i-3)),t.length)}},y={G:function(e,t,i){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});default:return i.era(n,{width:"wide"})}},y:function(e,t,i){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return i.ordinalNumber(n,{unit:"year"})}return v.y(e,t)},Y:function(e,t,i,n){const r=(0,f.h)(e,n),s=r>0?r:1-r;return"YY"===t?m(s%100,2):"Yo"===t?i.ordinalNumber(s,{unit:"year"}):m(s,t.length)},R:function(e,t){return m((0,g.p)(e),t.length)},u:function(e,t){return m(e.getFullYear(),t.length)},Q:function(e,t,i){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return m(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,i){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return m(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,i){const n=e.getMonth();switch(t){case"M":case"MM":return v.M(e,t);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,i){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return m(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,i,n){const r=(0,p.N)(e,n);return"wo"===t?i.ordinalNumber(r,{unit:"week"}):m(r,t.length)},I:function(e,t,i){const n=(0,d.s)(e);return"Io"===t?i.ordinalNumber(n,{unit:"week"}):m(n,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getDate(),{unit:"date"}):v.d(e,t)},D:function(e,t,i){const n=u(e);return"Do"===t?i.ordinalNumber(n,{unit:"dayOfYear"}):m(n,t.length)},E:function(e,t,i){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,i,n){const r=e.getDay(),s=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return m(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,i,n){const r=e.getDay(),s=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return m(s,t.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,i){const n=e.getDay(),r=0===n?7:n;switch(t){case"i":return String(r);case"ii":return m(r,t.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,i){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,i){const n=e.getHours();let r;switch(r=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,i){const n=e.getHours();let r;switch(r=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",t){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,i){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),i.ordinalNumber(t,{unit:"hour"})}return v.h(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getHours(),{unit:"hour"}):v.H(e,t)},K:function(e,t,i){const n=e.getHours()%12;return"Ko"===t?i.ordinalNumber(n,{unit:"hour"}):m(n,t.length)},k:function(e,t,i){let n=e.getHours();return 0===n&&(n=24),"ko"===t?i.ordinalNumber(n,{unit:"hour"}):m(n,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getMinutes(),{unit:"minute"}):v.m(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getSeconds(),{unit:"second"}):v.s(e,t)},S:function(e,t){return v.S(e,t)},X:function(e,t,i){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return b(n);case"XXXX":case"XX":return w(n);default:return w(n,":")}},x:function(e,t,i){const n=e.getTimezoneOffset();switch(t){case"x":return b(n);case"xxxx":case"xx":return w(n);default:return w(n,":")}},O:function(e,t,i){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_(n,":");default:return"GMT"+w(n,":")}},z:function(e,t,i){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_(n,":");default:return"GMT"+w(n,":")}},t:function(e,t,i){return m(Math.trunc(+e/1e3),t.length)},T:function(e,t,i){return m(+e,t.length)}};function _(e,t=""){const i=e>0?"-":"+",n=Math.abs(e),r=Math.trunc(n/60),s=n%60;return 0===s?i+String(r):i+String(r)+t+m(s,2)}function b(e,t){return e%60==0?(e>0?"-":"+")+m(Math.abs(e)/60,2):w(e,t)}function w(e,t=""){const i=e>0?"-":"+",n=Math.abs(e);return i+m(Math.trunc(n/60),2)+t+m(n%60,2)}var C=i(45325),x=i(27492),S=i(98179);const k=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L=/^'([^]*?)'?$/,T=/''/g,A=/[a-zA-Z]/;function D(e,t,i){const s=(0,r.q)(),o=i?.locale??s.locale??n.c,a=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,c=(0,h.a)(e,i?.in);if(!(0,S.f)(c))throw new RangeError("Invalid time value");let u=t.match(E).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,C.m[t])(e,o.formatLong):e}).join("").match(k).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:M(e)};if(y[t])return{isToken:!0,value:e};if(t.match(A))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(u=o.localize.preprocessor(c,u));const d={firstWeekContainsDate:a,weekStartsOn:l,locale:o};return u.map(n=>{if(!n.isToken)return n.value;const r=n.value;return(!i?.useAdditionalWeekYearTokens&&(0,x.xM)(r)||!i?.useAdditionalDayOfYearTokens&&(0,x.ef)(r))&&(0,x.Ss)(r,t,String(e)),(0,y[r[0]])(c,r,o.localize,d)}).join("")}function M(e){const t=e.match(L);return t?t[1].replace(T,"'"):e}},304:(e,t,i)=>{"use strict";e.exports=i(13772)},481:(e,t,i)=>{"use strict";i.d(t,{A:()=>R});var n=i(12926),r=i(97377),s=i(6401);const o=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(i=>{e[i]=t}),e),{}),i=e=>Object.keys(e).reduce((i,n)=>t[n]?(0,s.A)(i,t[n](e)):i,{});return i.propTypes={},i.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),i};var a=i(14009);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,r.Ay)({prop:e,themeKey:"borders",transform:t})}const h=c("border",l),u=c("borderTop",l),d=c("borderRight",l),g=c("borderBottom",l),p=c("borderLeft",l),f=c("borderColor"),m=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),_=c("borderLeftColor"),b=c("outline",l),w=c("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),i=e=>({borderRadius:(0,n._W)(t,e)});return(0,a.NI)(e,e.borderRadius,i)}return null};C.propTypes={},C.filterProps=["borderRadius"],o(h,u,d,g,p,f,m,v,y,_,C,b,w);const x=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.MA)(e.theme,"spacing",8,"gap"),i=e=>({gap:(0,n._W)(t,e)});return(0,a.NI)(e,e.gap,i)}return null};x.propTypes={},x.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.MA)(e.theme,"spacing",8,"columnGap"),i=e=>({columnGap:(0,n._W)(t,e)});return(0,a.NI)(e,e.columnGap,i)}return null};S.propTypes={},S.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.MA)(e.theme,"spacing",8,"rowGap"),i=e=>({rowGap:(0,n._W)(t,e)});return(0,a.NI)(e,e.rowGap,i)}return null};function E(e,t){return"grey"===t?t:e}function L(e){return e<=1&&0!==e?100*e+"%":e}k.propTypes={},k.filterProps=["rowGap"],o(x,S,k,(0,r.Ay)({prop:"gridColumn"}),(0,r.Ay)({prop:"gridRow"}),(0,r.Ay)({prop:"gridAutoFlow"}),(0,r.Ay)({prop:"gridAutoColumns"}),(0,r.Ay)({prop:"gridAutoRows"}),(0,r.Ay)({prop:"gridTemplateColumns"}),(0,r.Ay)({prop:"gridTemplateRows"}),(0,r.Ay)({prop:"gridTemplateAreas"}),(0,r.Ay)({prop:"gridArea"})),o((0,r.Ay)({prop:"color",themeKey:"palette",transform:E}),(0,r.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),(0,r.Ay)({prop:"backgroundColor",themeKey:"palette",transform:E}));const T=(0,r.Ay)({prop:"width",transform:L}),A=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const i=e.theme?.breakpoints?.values?.[t]||a.zu[t];return i?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:L(t)}};return(0,a.NI)(e,e.maxWidth,t)}return null};A.filterProps=["maxWidth"];const D=(0,r.Ay)({prop:"minWidth",transform:L}),M=(0,r.Ay)({prop:"height",transform:L}),I=(0,r.Ay)({prop:"maxHeight",transform:L}),N=(0,r.Ay)({prop:"minHeight",transform:L}),R=((0,r.Ay)({prop:"size",cssProperty:"width",transform:L}),(0,r.Ay)({prop:"size",cssProperty:"height",transform:L}),o(T,A,D,M,I,N,(0,r.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:k},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:L},maxWidth:{style:A},minWidth:{transform:L},height:{transform:L},maxHeight:{transform:L},minHeight:{transform:L},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},524:(e,t,i)=>{"use strict";e.exports=i(90320)},600:(e,t,i)=>{"use strict";var n=i(70461).rotr32;function r(e,t,i){return e&t^~e&i}function s(e,t,i){return e&t^e&i^t&i}function o(e,t,i){return e^t^i}t.ft_1=function(e,t,i,n){return 0===e?r(t,i,n):1===e||3===e?o(t,i,n):2===e?s(t,i,n):void 0},t.ch32=r,t.maj32=s,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},720:e=>{var t;self,t=()=>(()=>{"use strict";var e={345:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)}})),this._event}fire(e,t){const i=[];for(let e=0;e<this._listeners.length;e++)i.push(this._listeners[e]);for(let n=0;n<i.length;n++)i[n].call(void 0,e,t)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},t.forwardEvent=function(e,t){return e(e=>t.fire(e))}},859:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,i),s.exports}var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.SearchAddon=void 0;const t=i(345),r=i(859),s=" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?";class o extends r.Disposable{constructor(e){var i;super(),this._highlightedLines=new Set,this._highlightDecorations=[],this._selectedDecoration=this.register(new r.MutableDisposable),this._linesCacheTimeoutId=0,this._onDidChangeResults=this.register(new t.EventEmitter),this.onDidChangeResults=this._onDidChangeResults.event,this._highlightLimit=null!==(i=null==e?void 0:e.highlightLimit)&&void 0!==i?i:1e3}activate(e){this._terminal=e,this.register(this._terminal.onWriteParsed(()=>this._updateMatches())),this.register(this._terminal.onResize(()=>this._updateMatches())),this.register((0,r.toDisposable)(()=>this.clearDecorations()))}_updateMatches(){var e;this._highlightTimeout&&window.clearTimeout(this._highlightTimeout),this._cachedSearchTerm&&(null===(e=this._lastSearchOptions)||void 0===e?void 0:e.decorations)&&(this._highlightTimeout=setTimeout(()=>{const e=this._cachedSearchTerm;this._cachedSearchTerm=void 0,this.findPrevious(e,Object.assign(Object.assign({},this._lastSearchOptions),{incremental:!0,noScroll:!0}))},200))}clearDecorations(e){this._selectedDecoration.clear(),(0,r.disposeArray)(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear(),e||(this._cachedSearchTerm=void 0)}findNext(e,t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");this._lastSearchOptions=t,(null==t?void 0:t.decorations)&&(void 0!==this._cachedSearchTerm&&e===this._cachedSearchTerm||this._highlightAllMatches(e,t));const i=this._findNextAndSelect(e,t);return this._fireResults(t),this._cachedSearchTerm=e,i}_highlightAllMatches(e,t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");if(!e||0===e.length)return void this.clearDecorations();t=t||{},this.clearDecorations(!0);const i=[];let n,r=this._find(e,0,0,t);for(;r&&((null==n?void 0:n.row)!==r.row||(null==n?void 0:n.col)!==r.col)&&!(i.length>=this._highlightLimit);)n=r,i.push(n),r=this._find(e,n.col+n.term.length>=this._terminal.cols?n.row+1:n.row,n.col+n.term.length>=this._terminal.cols?0:n.col+1,t);for(const e of i){const i=this._createResultDecoration(e,t.decorations);i&&(this._highlightedLines.add(i.marker.line),this._highlightDecorations.push({decoration:i,match:e,dispose(){i.dispose()}}))}}_find(e,t,i,n){var r;if(!this._terminal||!e||0===e.length)return null===(r=this._terminal)||void 0===r||r.clearSelection(),void this.clearDecorations();if(i>this._terminal.cols)throw new Error(`Invalid col: ${i} to search in terminal of ${this._terminal.cols} cols`);let s;this._initLinesCache();const o={startRow:t,startCol:i};if(s=this._findInLine(e,o,n),!s)for(let i=t+1;i<this._terminal.buffer.active.baseY+this._terminal.rows&&(o.startRow=i,o.startCol=0,s=this._findInLine(e,o,n),!s);i++);return s}_findNextAndSelect(e,t){var i;if(!this._terminal||!e||0===e.length)return null===(i=this._terminal)||void 0===i||i.clearSelection(),this.clearDecorations(),!1;const n=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=0,s=0;n&&(this._cachedSearchTerm===e?(r=n.end.x,s=n.end.y):(r=n.start.x,s=n.start.y)),this._initLinesCache();const o={startRow:s,startCol:r};let a=this._findInLine(e,o,t);if(!a)for(let i=s+1;i<this._terminal.buffer.active.baseY+this._terminal.rows&&(o.startRow=i,o.startCol=0,a=this._findInLine(e,o,t),!a);i++);if(!a&&0!==s)for(let i=0;i<s&&(o.startRow=i,o.startCol=0,a=this._findInLine(e,o,t),!a);i++);return!a&&n&&(o.startRow=n.start.y,o.startCol=0,a=this._findInLine(e,o,t)),this._selectResult(a,null==t?void 0:t.decorations,null==t?void 0:t.noScroll)}findPrevious(e,t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");this._lastSearchOptions=t,(null==t?void 0:t.decorations)&&(void 0!==this._cachedSearchTerm&&e===this._cachedSearchTerm||this._highlightAllMatches(e,t));const i=this._findPreviousAndSelect(e,t);return this._fireResults(t),this._cachedSearchTerm=e,i}_fireResults(e){if(null==e?void 0:e.decorations){let e=-1;if(this._selectedDecoration.value){const t=this._selectedDecoration.value.match;for(let i=0;i<this._highlightDecorations.length;i++){const n=this._highlightDecorations[i].match;if(n.row===t.row&&n.col===t.col&&n.size===t.size){e=i;break}}}this._onDidChangeResults.fire({resultIndex:e,resultCount:this._highlightDecorations.length})}}_findPreviousAndSelect(e,t){var i;if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");if(!this._terminal||!e||0===e.length)return null===(i=this._terminal)||void 0===i||i.clearSelection(),this.clearDecorations(),!1;const n=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=this._terminal.buffer.active.baseY+this._terminal.rows-1,s=this._terminal.cols;const o=!0;this._initLinesCache();const a={startRow:r,startCol:s};let l;if(n&&(a.startRow=r=n.start.y,a.startCol=s=n.start.x,this._cachedSearchTerm!==e&&(l=this._findInLine(e,a,t,!1),l||(a.startRow=r=n.end.y,a.startCol=s=n.end.x))),l||(l=this._findInLine(e,a,t,o)),!l){a.startCol=Math.max(a.startCol,this._terminal.cols);for(let i=r-1;i>=0&&(a.startRow=i,l=this._findInLine(e,a,t,o),!l);i--);}if(!l&&r!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let i=this._terminal.buffer.active.baseY+this._terminal.rows-1;i>=r&&(a.startRow=i,l=this._findInLine(e,a,t,o),!l);i--);return this._selectResult(l,null==t?void 0:t.decorations,null==t?void 0:t.noScroll)}_initLinesCache(){const e=this._terminal;this._linesCache||(this._linesCache=new Array(e.buffer.active.length),this._cursorMoveListener=e.onCursorMove(()=>this._destroyLinesCache()),this._resizeListener=e.onResize(()=>this._destroyLinesCache())),window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=window.setTimeout(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._cursorMoveListener&&(this._cursorMoveListener.dispose(),this._cursorMoveListener=void 0),this._resizeListener&&(this._resizeListener.dispose(),this._resizeListener=void 0),this._linesCacheTimeoutId&&(window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=0)}_isWholeWord(e,t,i){return(0===e||s.includes(t[e-1]))&&(e+i.length===t.length||s.includes(t[e+i.length]))}_findInLine(e,t,i={},n=!1){var r;const s=this._terminal,o=t.startRow,a=t.startCol,l=s.buffer.active.getLine(o);if(null==l?void 0:l.isWrapped)return n?void(t.startCol+=s.cols):(t.startRow--,t.startCol+=s.cols,this._findInLine(e,t,i));let c=null===(r=this._linesCache)||void 0===r?void 0:r[o];c||(c=this._translateBufferLineToStringWithWrap(o,!0),this._linesCache&&(this._linesCache[o]=c));const[h,u]=c,d=this._bufferColsToStringOffset(o,a),g=i.caseSensitive?e:e.toLowerCase(),p=i.caseSensitive?h:h.toLowerCase();let f=-1;if(i.regex){const t=RegExp(g,"g");let i;if(n)for(;i=t.exec(p.slice(0,d));)f=t.lastIndex-i[0].length,e=i[0],t.lastIndex-=e.length-1;else i=t.exec(p.slice(d)),i&&i[0].length>0&&(f=d+(t.lastIndex-i[0].length),e=i[0])}else n?d-g.length>=0&&(f=p.lastIndexOf(g,d-g.length)):f=p.indexOf(g,d);if(f>=0){if(i.wholeWord&&!this._isWholeWord(f,p,e))return;let t=0;for(;t<u.length-1&&f>=u[t+1];)t++;let n=t;for(;n<u.length-1&&f+e.length>=u[n+1];)n++;const r=f-u[t],a=f+e.length-u[n],l=this._stringLengthToBufferSize(o+t,r);return{term:e,col:l,row:o+t,size:this._stringLengthToBufferSize(o+n,a)-l+s.cols*(n-t)}}}_stringLengthToBufferSize(e,t){const i=this._terminal.buffer.active.getLine(e);if(!i)return 0;for(let e=0;e<t;e++){const n=i.getCell(e);if(!n)break;const r=n.getChars();r.length>1&&(t-=r.length-1);const s=i.getCell(e+1);s&&0===s.getWidth()&&t++}return t}_bufferColsToStringOffset(e,t){const i=this._terminal;let n=e,r=0,s=i.buffer.active.getLine(n);for(;t>0&&s;){for(let e=0;e<t&&e<i.cols;e++){const t=s.getCell(e);if(!t)break;t.getWidth()&&(r+=0===t.getCode()?1:t.getChars().length)}if(n++,s=i.buffer.active.getLine(n),s&&!s.isWrapped)break;t-=i.cols}return r}_translateBufferLineToStringWithWrap(e,t){var i;const n=this._terminal,r=[],s=[0];let o=n.buffer.active.getLine(e);for(;o;){const a=n.buffer.active.getLine(e+1),l=!!a&&a.isWrapped;let c=o.translateToString(!l&&t);if(l&&a){const e=o.getCell(o.length-1);e&&0===e.getCode()&&1===e.getWidth()&&2===(null===(i=a.getCell(0))||void 0===i?void 0:i.getWidth())&&(c=c.slice(0,-1))}if(r.push(c),!l)break;s.push(s[s.length-1]+c.length),e++,o=a}return[r.join(""),s]}_selectResult(e,t,i){const n=this._terminal;if(this._selectedDecoration.clear(),!e)return n.clearSelection(),!1;if(n.select(e.col,e.row,e.size),t){const i=n.registerMarker(-n.buffer.active.baseY-n.buffer.active.cursorY+e.row);if(i){const s=n.registerDecoration({marker:i,x:e.col,width:e.size,backgroundColor:t.activeMatchBackground,layer:"top",overviewRulerOptions:{color:t.activeMatchColorOverviewRuler}});if(s){const n=[];n.push(i),n.push(s.onRender(e=>this._applyStyles(e,t.activeMatchBorder,!0))),n.push(s.onDispose(()=>(0,r.disposeArray)(n))),this._selectedDecoration.value={decoration:s,match:e,dispose(){s.dispose()}}}}}if(!i&&(e.row>=n.buffer.active.viewportY+n.rows||e.row<n.buffer.active.viewportY)){let t=e.row-n.buffer.active.viewportY;t-=Math.floor(n.rows/2),n.scrollLines(t)}return!0}_applyStyles(e,t,i){e.classList.contains("xterm-find-result-decoration")||(e.classList.add("xterm-find-result-decoration"),t&&(e.style.outline=`1px solid ${t}`)),i&&e.classList.add("xterm-find-active-result-decoration")}_createResultDecoration(e,t){const i=this._terminal,n=i.registerMarker(-i.buffer.active.baseY-i.buffer.active.cursorY+e.row);if(!n)return;const s=i.registerDecoration({marker:n,x:e.col,width:e.size,backgroundColor:t.matchBackground,overviewRulerOptions:this._highlightedLines.has(n.line)?void 0:{color:t.matchOverviewRuler,position:"center"}});if(s){const e=[];e.push(n),e.push(s.onRender(e=>this._applyStyles(e,t.matchBorder,!1))),e.push(s.onDispose(()=>(0,r.disposeArray)(e)))}return s}}e.SearchAddon=o})(),n})(),e.exports=t()},859:(e,t,i)=>{"use strict";i.d(t,{A:()=>T});var n=i(65133),r=i(33276),s=i(55841),o=i(50123);const a=function(){try{var e=(0,o.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var l=i(26979),c=Object.prototype.hasOwnProperty;const h=function(e,t,i){var n=e[t];c.call(e,t)&&(0,l.A)(n,i)&&(void 0!==i||t in e)||function(e,t,i){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}(e,t,i)};var u=i(60371),d=i(85378),g=i(97942),p=i(9322);const f=function(e,t,i,n){if(!(0,g.A)(e))return e;for(var r=-1,s=(t=(0,u.A)(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var l=(0,p.A)(t[r]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(r!=o){var f=a[l];void 0===(c=n?n(f,l,a):void 0)&&(c=(0,g.A)(f)?f:(0,d.A)(t[r+1])?[]:{})}h(a,l,c),a=a[l]}return e};var m=i(64494),v=i(53271);const y=(0,i(67244).A)(Object.getPrototypeOf,Object);var _=i(34402),b=i(11276);const w=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,v.A)(t,(0,_.A)(e)),e=y(e);return t}:b.A;var C=i(77252),x=i(71140);var S=Object.prototype.hasOwnProperty;const k=function(e){if(!(0,g.A)(e))return function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}(e);var t=(0,x.A)(e),i=[];for(var n in e)("constructor"!=n||!t&&S.call(e,n))&&i.push(n);return i};var E=i(31475);const L=function(e){return(0,E.A)(e)?(0,C.A)(e,!0):k(e)},T=function(e,t){if(null==e)return{};var i=(0,n.A)(function(e){return(0,m.A)(e,L,w)}(e),function(e){return[e]});return t=(0,r.A)(t),function(e,t,i){for(var n=-1,r=t.length,o={};++n<r;){var a=t[n],l=(0,s.A)(e,a);i(l,a)&&f(o,(0,u.A)(a,e),l)}return o}(e,i,function(e,i){return t(e,i[0])})}},1154:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=c,t.addEvent=function(e,t,i,n){if(!e)return;const r={capture:!0,...n};e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&c(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const i=l(e,t,"px");return{[(0,r.browserPrefixToKey)("transform",r.default)]:i}},t.createSVGTransform=function(e,t){return l(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,n.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,n.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=l,t.innerHeight=function(e){let t=e.clientHeight;const i=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,n.int)(i.paddingTop),t-=(0,n.int)(i.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const i=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,n.int)(i.paddingLeft),t-=(0,n.int)(i.paddingRight),t},t.matchesSelector=a,t.matchesSelectorAndParentsTo=function(e,t,i){let n=e;do{if(a(n,t))return!0;if(n===i)return!1;n=n.parentNode}while(n);return!1},t.offsetXYFromParent=function(e,t,i){const n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-n.left)/i,y:(e.clientY+t.scrollTop-n.top)/i}},t.outerHeight=function(e){let t=e.clientHeight;const i=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,n.int)(i.borderTopWidth),t+=(0,n.int)(i.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const i=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,n.int)(i.borderLeftWidth),t+=(0,n.int)(i.borderRightWidth),t},t.removeClassName=h,t.removeEvent=function(e,t,i,n){if(!e)return;const r={capture:!0,...n};e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var n=i(37201),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=s(t);if(i&&i.has(e))return i.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,i&&i.set(e,n),n}(i(25615));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(s=function(e){return e?i:t})(e)}let o="";function a(e,t){return o||(o=(0,n.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,n.isFunction)(e[t])})),!!(0,n.isFunction)(e[o])&&e[o](t)}function l(e,t,i){let{x:n,y:r}=e,s="translate(".concat(n).concat(i,",").concat(r).concat(i,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+i),n="".concat("string"==typeof t.y?t.y:t.y+i);s="translate(".concat(e,", ").concat(n,")")+s}return s}function c(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function h(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},1268:(e,t,i)=>{"use strict";i.d(t,{B6:()=>x,Fd:()=>y,LC:()=>f,P8:()=>p,Pi:()=>g,er:()=>u,iZ:()=>_,n4:()=>d,o1:()=>b,pD:()=>m,su:()=>c,uJ:()=>v});var n=i(80041),r=i(54835),s=i(60942),o=i(69958),a=i(60891),l=i(5839);function c(e){return(0,l.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return n._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(w(e.authority,t.authority))return n._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(c(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(c(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!w(e.authority,t.authority))return;if(e.scheme===r.ny.file){const i=s.V8(c(e),c(t));return o.uF?n.TH(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);e<t&&(i.charCodeAt(e)===a.charCodeAt(e)||i.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);i=a.substr(0,e)+i.substr(e)}return s.SA.relative(i,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const i=l.r.file(s.hd(c(e),t));return e.with({authority:i.authority,path:i.path})}return t=n.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const i=c(e);return i.length>n.Zn(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return C(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let i=!1;if(e.scheme===r.ny.file){const r=c(e);i=void 0!==r&&r.length===n.Zn(r).length&&r[r.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||C(e,t)?e:e.with({path:e.path+"/"})}}const u=new h(()=>!1),d=(new h(e=>e.scheme!==r.ny.file||!o.j9),new h(e=>!0),u.isEqual.bind(u)),g=(u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u)),p=u.basename.bind(u),f=u.extname.bind(u),m=u.dirname.bind(u),v=u.joinPath.bind(u),y=u.normalizePath.bind(u),_=u.relativePath.bind(u),b=u.resolvePath.bind(u),w=(u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),C=u.hasTrailingPathSeparator.bind(u);var x;u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u),function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)});const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(x||(x={}))},1485:(e,t,i)=>{"use strict";i.d(t,{Zk:()=>l,iP:()=>Fe,q7:()=>R,tM:()=>Be});var n=i(57977),r=i(52483),s=i(17186),o=i(74823),a=function(){var e=(0,o.K2)(function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},"o"),t=[1,2],i=[1,3],n=[1,4],r=[2,4],s=[1,9],a=[1,11],l=[1,16],c=[1,17],h=[1,18],u=[1,19],d=[1,32],g=[1,20],p=[1,21],f=[1,22],m=[1,23],v=[1,24],y=[1,26],_=[1,27],b=[1,28],w=[1,29],C=[1,30],x=[1,31],S=[1,34],k=[1,35],E=[1,36],L=[1,37],T=[1,33],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],D=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],I={trace:(0,o.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,o.K2)(function(e,t,i,n,r,s,o){var a=s.length-1;switch(r){case 3:return n.setRootDoc(s[a]),s[a];case 4:this.$=[];break;case 5:"nl"!=s[a]&&(s[a-1].push(s[a]),this.$=s[a-1]);break;case 6:case 7:case 12:this.$=s[a];break;case 8:this.$="nl";break;case 13:const e=s[a-1];e.description=n.trimColon(s[a]),this.$=e;break;case 14:this.$={stmt:"relation",state1:s[a-2],state2:s[a]};break;case 15:const t=n.trimColon(s[a]);this.$={stmt:"relation",state1:s[a-3],state2:s[a-1],description:t};break;case 19:this.$={stmt:"state",id:s[a-3],type:"default",description:"",doc:s[a-1]};break;case 20:var l=s[a],c=s[a-2].trim();if(s[a].match(":")){var h=s[a].split(":");l=h[0],c=[c,h[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:s[a-3],type:"default",description:s[a-5],doc:s[a-1]};break;case 22:this.$={stmt:"state",id:s[a],type:"fork"};break;case 23:this.$={stmt:"state",id:s[a],type:"join"};break;case 24:this.$={stmt:"state",id:s[a],type:"choice"};break;case 25:this.$={stmt:"state",id:n.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:s[a-1].trim(),note:{position:s[a-2].trim(),text:s[a].trim()}};break;case 29:this.$=s[a].trim(),n.setAccTitle(this.$);break;case 30:case 31:this.$=s[a].trim(),n.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:s[a-1].trim(),classes:s[a].trim()};break;case 34:this.$={stmt:"style",id:s[a-1].trim(),styleClass:s[a].trim()};break;case 35:this.$={stmt:"applyClass",id:s[a-1].trim(),styleClass:s[a].trim()};break;case 36:n.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:n.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:n.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:n.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:s[a].trim(),type:"default",description:""};break;case 44:case 45:this.$={stmt:"state",id:s[a-2].trim(),classes:[s[a].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:t,5:i,6:n},{1:[3]},{3:5,4:t,5:i,6:n},{3:6,4:t,5:i,6:n},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:u,24:d,25:g,26:p,27:f,28:m,29:v,32:25,33:y,35:_,37:b,38:w,42:C,45:x,48:S,49:k,50:E,51:L,54:T},e(A,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:u,24:d,25:g,26:p,27:f,28:m,29:v,32:25,33:y,35:_,37:b,38:w,42:C,45:x,48:S,49:k,50:E,51:L,54:T},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,39],15:[1,40]}),e(A,[2,16]),{18:[1,41]},e(A,[2,18],{20:[1,42]}),{23:[1,43]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},e(A,[2,28]),{34:[1,48]},{36:[1,49]},e(A,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},e(D,[2,42],{55:[1,54]}),e(D,[2,43],{55:[1,55]}),e(A,[2,36]),e(A,[2,37]),e(A,[2,38]),e(A,[2,39]),e(A,[2,6]),e(A,[2,13]),{13:56,24:d,54:T},e(A,[2,17]),e(M,r,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},e(A,[2,29]),e(A,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},e(A,[2,14],{14:[1,67]}),{4:s,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,68],22:u,24:d,25:g,26:p,27:f,28:m,29:v,32:25,33:y,35:_,37:b,38:w,42:C,45:x,48:S,49:k,50:E,51:L,54:T},e(A,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},e(A,[2,32]),e(A,[2,33]),e(A,[2,34]),e(A,[2,35]),e(D,[2,44]),e(D,[2,45]),e(A,[2,15]),e(A,[2,19]),e(M,r,{7:72}),e(A,[2,26]),e(A,[2,27]),{4:s,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,73],22:u,24:d,25:g,26:p,27:f,28:m,29:v,32:25,33:y,35:_,37:b,38:w,42:C,45:x,48:S,49:k,50:E,51:L,54:T},e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:(0,o.K2)(function(e,t){if(!t.recoverable){var i=new Error(e);throw i.hash=t,i}this.trace(e)},"parseError"),parse:(0,o.K2)(function(e){var t=this,i=[0],n=[],r=[null],s=[],a=this.table,l="",c=0,h=0,u=0,d=s.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(p.yy[f]=this.yy[f]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var m=g.yylloc;s.push(m);var v=g.options&&g.options.ranges;function y(){var e;return"number"!=typeof(e=n.pop()||g.lex()||1)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K2)(function(e){i.length=i.length-2*e,r.length=r.length-e,s.length=s.length-e},"popStack"),(0,o.K2)(y,"lex");for(var _,b,w,C,x,S,k,E,L,T={};;){if(w=i[i.length-1],this.defaultActions[w]?C=this.defaultActions[w]:(null==_&&(_=y()),C=a[w]&&a[w][_]),void 0===C||!C.length||!C[0]){var A;for(S in L=[],a[w])this.terminals_[S]&&S>2&&L.push("'"+this.terminals_[S]+"'");A=g.showPosition?"Parse error on line "+(c+1)+":\n"+g.showPosition()+"\nExpecting "+L.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:g.match,token:this.terminals_[_]||_,line:g.yylineno,loc:m,expected:L})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(C[0]){case 1:i.push(_),r.push(g.yytext),s.push(g.yylloc),i.push(C[1]),_=null,b?(_=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[C[1]][1],T.$=r[r.length-k],T._$={first_line:s[s.length-(k||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(k||1)].first_column,last_column:s[s.length-1].last_column},v&&(T._$.range=[s[s.length-(k||1)].range[0],s[s.length-1].range[1]]),void 0!==(x=this.performAction.apply(T,[l,h,c,p.yy,C[1],r,s].concat(d))))return x;k&&(i=i.slice(0,-1*k*2),r=r.slice(0,-1*k),s=s.slice(0,-1*k)),i.push(this.productions_[C[1]][0]),r.push(T.$),s.push(T._$),E=a[i[i.length-2]][i[i.length-1]],i.push(E);break;case 3:return!0}}return!0},"parse")},N=function(){return{EOF:1,parseError:(0,o.K2)(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:(0,o.K2)(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,o.K2)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,o.K2)(function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,o.K2)(function(){return this._more=!0,this},"more"),reject:(0,o.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,o.K2)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,o.K2)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,o.K2)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,o.K2)(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,o.K2)(function(e,t){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in r)this[s]=r[s];return!1}return!1},"test_match"),next:(0,o.K2)(function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,o.K2)(functio